[BACK]Return to configure CVS log [TXT][DIR] Up to [local] / OpenXM / src / ox_pari

Diff for /OpenXM/src/ox_pari/configure between version 1.1 and 1.3

version 1.1, 2016/09/22 10:20:30 version 1.3, 2016/09/26 13:05:17
Line 195  test -x / || exit 1"
Line 195  test -x / || exit 1"
   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO    as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO    as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&    eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1    test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
 test \$(( 1 + 1 )) = 2 || exit 1"  
   if (eval "$as_required") 2>/dev/null; then :    if (eval "$as_required") 2>/dev/null; then :
   as_have_required=yes    as_have_required=yes
 else  else
Line 583  PACKAGE_BUGREPORT=''
Line 582  PACKAGE_BUGREPORT=''
 PACKAGE_URL=''  PACKAGE_URL=''
   
 ac_unique_file="ox_pari.c"  ac_unique_file="ox_pari.c"
 # Factoring default headers for most tests.  
 ac_includes_default="\  
 #include <stdio.h>  
 #ifdef HAVE_SYS_TYPES_H  
 # include <sys/types.h>  
 #endif  
 #ifdef HAVE_SYS_STAT_H  
 # include <sys/stat.h>  
 #endif  
 #ifdef STDC_HEADERS  
 # include <stdlib.h>  
 # include <stddef.h>  
 #else  
 # ifdef HAVE_STDLIB_H  
 #  include <stdlib.h>  
 # endif  
 #endif  
 #ifdef HAVE_STRING_H  
 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H  
 #  include <memory.h>  
 # endif  
 # include <string.h>  
 #endif  
 #ifdef HAVE_STRINGS_H  
 # include <strings.h>  
 #endif  
 #ifdef HAVE_INTTYPES_H  
 # include <inttypes.h>  
 #endif  
 #ifdef HAVE_STDINT_H  
 # include <stdint.h>  
 #endif  
 #ifdef HAVE_UNISTD_H  
 # include <unistd.h>  
 #endif"  
   
 ac_subst_vars='am__EXEEXT_FALSE  ac_subst_vars='am__EXEEXT_FALSE
 am__EXEEXT_TRUE  am__EXEEXT_TRUE
 LTLIBOBJS  LTLIBOBJS
 LIBOBJS  LIBOBJS
 EGREP  OXLIBS
 GREP  LN_S
 X_EXTRA_LIBS  
 X_LIBS  
 X_PRE_LIBS  
 X_CFLAGS  
 CPP  
 XMKMF  
 am__fastdepCC_FALSE  am__fastdepCC_FALSE
 am__fastdepCC_TRUE  am__fastdepCC_TRUE
 CCDEPMODE  CCDEPMODE
Line 734  enable_option_checking
Line 691  enable_option_checking
 enable_silent_rules  enable_silent_rules
 enable_maintainer_mode  enable_maintainer_mode
 enable_dependency_tracking  enable_dependency_tracking
 with_x  
 enable_shared  enable_shared
 '  '
       ac_precious_vars='build_alias        ac_precious_vars='build_alias
Line 744  CC
Line 700  CC
 CFLAGS  CFLAGS
 LDFLAGS  LDFLAGS
 LIBS  LIBS
 CPPFLAGS  CPPFLAGS'
 XMKMF  
 CPP'  
   
   
 # Initialize some variables set by options.  # Initialize some variables set by options.
Line 1349  Program names:
Line 1303  Program names:
   --program-suffix=SUFFIX            append SUFFIX to installed program names    --program-suffix=SUFFIX            append SUFFIX to installed program names
   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names    --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
   
 X features:  
   --x-includes=DIR    X include files are in DIR  
   --x-libraries=DIR   X library files are in DIR  
   
 System types:  System types:
   --build=BUILD     configure for building on BUILD [guessed]    --build=BUILD     configure for building on BUILD [guessed]
   --host=HOST       cross-compile to build programs to run on HOST [BUILD]    --host=HOST       cross-compile to build programs to run on HOST [BUILD]
Line 1381  Optional Features:
Line 1331  Optional Features:
                           speeds up one-time build                            speeds up one-time build
   --enable-shared         enable linking with shared libraries.  [yes]    --enable-shared         enable linking with shared libraries.  [yes]
   
 Optional Packages:  
   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]  
   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)  
   --with-x                use the X Window System  
   
 Some influential environment variables:  Some influential environment variables:
   CC          C compiler command    CC          C compiler command
   CFLAGS      C compiler flags    CFLAGS      C compiler flags
Line 1394  Some influential environment variables:
Line 1339  Some influential environment variables:
   LIBS        libraries to pass to the linker, e.g. -l<library>    LIBS        libraries to pass to the linker, e.g. -l<library>
   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if    CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
               you have headers in a nonstandard directory <include dir>                you have headers in a nonstandard directory <include dir>
   XMKMF       Path to xmkmf, Makefile generator for X Window System  
   CPP         C preprocessor  
   
 Use these variables to override the choices made by `configure' or to help  Use these variables to override the choices made by `configure' or to help
 it to find libraries and programs with nonstandard names/locations.  it to find libraries and programs with nonstandard names/locations.
Line 1515  fi
Line 1458  fi
   
 } # ac_fn_c_try_compile  } # ac_fn_c_try_compile
   
 # ac_fn_c_try_cpp LINENO  
 # ----------------------  
 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.  
 ac_fn_c_try_cpp ()  
 {  
   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack  
   if { { ac_try="$ac_cpp conftest.$ac_ext"  
 case "(($ac_try" in  
   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;  
   *) ac_try_echo=$ac_try;;  
 esac  
 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""  
 $as_echo "$ac_try_echo"; } >&5  
   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err  
   ac_status=$?  
   if test -s conftest.err; then  
     grep -v '^ *+' conftest.err >conftest.er1  
     cat conftest.er1 >&5  
     mv -f conftest.er1 conftest.err  
   fi  
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5  
   test $ac_status = 0; } > conftest.i && {  
          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||  
          test ! -s conftest.err  
        }; then :  
   ac_retval=0  
 else  
   $as_echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
     ac_retval=1  
 fi  
   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno  
   as_fn_set_status $ac_retval  
   
 } # ac_fn_c_try_cpp  
   
 # ac_fn_c_try_link LINENO  # ac_fn_c_try_link LINENO
 # -----------------------  # -----------------------
 # Try to link conftest.$ac_ext, and return whether this succeeded.  # Try to link conftest.$ac_ext, and return whether this succeeded.
Line 1664  $as_echo "$ac_res" >&6; }
Line 1570  $as_echo "$ac_res" >&6; }
   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno    eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   
 } # ac_fn_c_check_func  } # ac_fn_c_check_func
   
 # ac_fn_c_try_run LINENO  
 # ----------------------  
 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes  
 # that executables *can* be run.  
 ac_fn_c_try_run ()  
 {  
   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack  
   if { { ac_try="$ac_link"  
 case "(($ac_try" in  
   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;  
   *) ac_try_echo=$ac_try;;  
 esac  
 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""  
 $as_echo "$ac_try_echo"; } >&5  
   (eval "$ac_link") 2>&5  
   ac_status=$?  
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5  
   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'  
   { { case "(($ac_try" in  
   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;  
   *) ac_try_echo=$ac_try;;  
 esac  
 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""  
 $as_echo "$ac_try_echo"; } >&5  
   (eval "$ac_try") 2>&5  
   ac_status=$?  
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5  
   test $ac_status = 0; }; }; then :  
   ac_retval=0  
 else  
   $as_echo "$as_me: program exited with status $ac_status" >&5  
        $as_echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
        ac_retval=$ac_status  
 fi  
   rm -rf conftest.dSYM conftest_ipa8_conftest.oo  
   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno  
   as_fn_set_status $ac_retval  
   
 } # ac_fn_c_try_run  
   
 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES  
 # --------------------------------------------  
 # Tries to find the compile-time value of EXPR in a program that includes  
 # INCLUDES, setting VAR accordingly. Returns whether the value could be  
 # computed  
 ac_fn_c_compute_int ()  
 {  
   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack  
   if test "$cross_compiling" = yes; then  
     # Depending upon the size, compute the lo and hi bounds.  
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext  
 /* end confdefs.h.  */  
 $4  
 int  
 main ()  
 {  
 static int test_array [1 - 2 * !(($2) >= 0)];  
 test_array [0] = 0;  
 return test_array [0];  
   
   ;  
   return 0;  
 }  
 _ACEOF  
 if ac_fn_c_try_compile "$LINENO"; then :  
   ac_lo=0 ac_mid=0  
   while :; do  
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext  
 /* end confdefs.h.  */  
 $4  
 int  
 main ()  
 {  
 static int test_array [1 - 2 * !(($2) <= $ac_mid)];  
 test_array [0] = 0;  
 return test_array [0];  
   
   ;  
   return 0;  
 }  
 _ACEOF  
 if ac_fn_c_try_compile "$LINENO"; then :  
   ac_hi=$ac_mid; break  
 else  
   as_fn_arith $ac_mid + 1 && ac_lo=$as_val  
                         if test $ac_lo -le $ac_mid; then  
                           ac_lo= ac_hi=  
                           break  
                         fi  
                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val  
 fi  
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext  
   done  
 else  
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext  
 /* end confdefs.h.  */  
 $4  
 int  
 main ()  
 {  
 static int test_array [1 - 2 * !(($2) < 0)];  
 test_array [0] = 0;  
 return test_array [0];  
   
   ;  
   return 0;  
 }  
 _ACEOF  
 if ac_fn_c_try_compile "$LINENO"; then :  
   ac_hi=-1 ac_mid=-1  
   while :; do  
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext  
 /* end confdefs.h.  */  
 $4  
 int  
 main ()  
 {  
 static int test_array [1 - 2 * !(($2) >= $ac_mid)];  
 test_array [0] = 0;  
 return test_array [0];  
   
   ;  
   return 0;  
 }  
 _ACEOF  
 if ac_fn_c_try_compile "$LINENO"; then :  
   ac_lo=$ac_mid; break  
 else  
   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val  
                         if test $ac_mid -le $ac_hi; then  
                           ac_lo= ac_hi=  
                           break  
                         fi  
                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val  
 fi  
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext  
   done  
 else  
   ac_lo= ac_hi=  
 fi  
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext  
 fi  
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext  
 # Binary search between lo and hi bounds.  
 while test "x$ac_lo" != "x$ac_hi"; do  
   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val  
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext  
 /* end confdefs.h.  */  
 $4  
 int  
 main ()  
 {  
 static int test_array [1 - 2 * !(($2) <= $ac_mid)];  
 test_array [0] = 0;  
 return test_array [0];  
   
   ;  
   return 0;  
 }  
 _ACEOF  
 if ac_fn_c_try_compile "$LINENO"; then :  
   ac_hi=$ac_mid  
 else  
   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val  
 fi  
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext  
 done  
 case $ac_lo in #((  
 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;  
 '') ac_retval=1 ;;  
 esac  
   else  
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext  
 /* end confdefs.h.  */  
 $4  
 static long int longval () { return $2; }  
 static unsigned long int ulongval () { return $2; }  
 #include <stdio.h>  
 #include <stdlib.h>  
 int  
 main ()  
 {  
   
   FILE *f = fopen ("conftest.val", "w");  
   if (! f)  
     return 1;  
   if (($2) < 0)  
     {  
       long int i = longval ();  
       if (i != ($2))  
         return 1;  
       fprintf (f, "%ld", i);  
     }  
   else  
     {  
       unsigned long int i = ulongval ();  
       if (i != ($2))  
         return 1;  
       fprintf (f, "%lu", i);  
     }  
   /* Do not output a trailing newline, as this causes \r\n confusion  
      on some platforms.  */  
   return ferror (f) || fclose (f) != 0;  
   
   ;  
   return 0;  
 }  
 _ACEOF  
 if ac_fn_c_try_run "$LINENO"; then :  
   echo >>conftest.val; read $3 <conftest.val; ac_retval=0  
 else  
   ac_retval=1  
 fi  
 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \  
   conftest.$ac_objext conftest.beam conftest.$ac_ext  
 rm -f conftest.val  
   
   fi  
   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno  
   as_fn_set_status $ac_retval  
   
 } # ac_fn_c_compute_int  
   
 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES  
 # -------------------------------------------------------  
 # Tests whether HEADER exists and can be compiled using the include files in  
 # INCLUDES, setting the cache variable VAR accordingly.  
 ac_fn_c_check_header_compile ()  
 {  
   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack  
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5  
 $as_echo_n "checking for $2... " >&6; }  
 if eval \${$3+:} false; then :  
   $as_echo_n "(cached) " >&6  
 else  
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext  
 /* end confdefs.h.  */  
 $4  
 #include <$2>  
 _ACEOF  
 if ac_fn_c_try_compile "$LINENO"; then :  
   eval "$3=yes"  
 else  
   eval "$3=no"  
 fi  
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext  
 fi  
 eval ac_res=\$$3  
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5  
 $as_echo "$ac_res" >&6; }  
   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno  
   
 } # ac_fn_c_check_header_compile  
 cat >config.log <<_ACEOF  cat >config.log <<_ACEOF
 This file contains any messages produced by compilers while  This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.  running configure, to aid debugging if configure makes a mistake.
Line 4056  fi
Line 3706  fi
   
   
   
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 ac_ext=c  $as_echo_n "checking whether ln -s works... " >&6; }
 ac_cpp='$CPP $CPPFLAGS'  LN_S=$as_ln_s
 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'  if test "$LN_S" = "ln -s"; then
 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'  
 ac_compiler_gnu=$ac_cv_c_compiler_gnu  
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5  
 $as_echo_n "checking how to run the C preprocessor... " >&6; }  
 # On Suns, sometimes $CPP names a directory.  
 if test -n "$CPP" && test -d "$CPP"; then  
   CPP=  
 fi  
 if test -z "$CPP"; then  
   if ${ac_cv_prog_CPP+:} false; then :  
   $as_echo_n "(cached) " >&6  
 else  
       # Double quotes because CPP needs to be expanded  
     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"  
     do  
       ac_preproc_ok=false  
 for ac_c_preproc_warn_flag in '' yes  
 do  
   # Use a header file that comes with gcc, so configuring glibc  
   # with a fresh cross-compiler works.  
   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  
   # <limits.h> exists even on freestanding compilers.  
   # On the NeXT, cc -E runs the code through the compiler's parser,  
   # not just through cpp. "Syntax error" is here to catch this case.  
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext  
 /* end confdefs.h.  */  
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
                      Syntax error  
 _ACEOF  
 if ac_fn_c_try_cpp "$LINENO"; then :  
   
 else  
   # Broken: fails on valid input.  
 continue  
 fi  
 rm -f conftest.err conftest.i conftest.$ac_ext  
   
   # OK, works on sane cases.  Now check whether nonexistent headers  
   # can be detected and how.  
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext  
 /* end confdefs.h.  */  
 #include <ac_nonexistent.h>  
 _ACEOF  
 if ac_fn_c_try_cpp "$LINENO"; then :  
   # Broken: success on invalid input.  
 continue  
 else  
   # Passes both tests.  
 ac_preproc_ok=:  
 break  
 fi  
 rm -f conftest.err conftest.i conftest.$ac_ext  
   
 done  
 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.  
 rm -f conftest.i conftest.err conftest.$ac_ext  
 if $ac_preproc_ok; then :  
   break  
 fi  
   
     done  
     ac_cv_prog_CPP=$CPP  
   
 fi  
   CPP=$ac_cv_prog_CPP  
 else  
   ac_cv_prog_CPP=$CPP  
 fi  
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5  
 $as_echo "$CPP" >&6; }  
 ac_preproc_ok=false  
 for ac_c_preproc_warn_flag in '' yes  
 do  
   # Use a header file that comes with gcc, so configuring glibc  
   # with a fresh cross-compiler works.  
   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  
   # <limits.h> exists even on freestanding compilers.  
   # On the NeXT, cc -E runs the code through the compiler's parser,  
   # not just through cpp. "Syntax error" is here to catch this case.  
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext  
 /* end confdefs.h.  */  
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
                      Syntax error  
 _ACEOF  
 if ac_fn_c_try_cpp "$LINENO"; then :  
   
 else  
   # Broken: fails on valid input.  
 continue  
 fi  
 rm -f conftest.err conftest.i conftest.$ac_ext  
   
   # OK, works on sane cases.  Now check whether nonexistent headers  
   # can be detected and how.  
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext  
 /* end confdefs.h.  */  
 #include <ac_nonexistent.h>  
 _ACEOF  
 if ac_fn_c_try_cpp "$LINENO"; then :  
   # Broken: success on invalid input.  
 continue  
 else  
   # Passes both tests.  
 ac_preproc_ok=:  
 break  
 fi  
 rm -f conftest.err conftest.i conftest.$ac_ext  
   
 done  
 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.  
 rm -f conftest.i conftest.err conftest.$ac_ext  
 if $ac_preproc_ok; then :  
   
 else  
   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5  
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}  
 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check  
 See \`config.log' for more details" "$LINENO" 5; }  
 fi  
   
 ac_ext=c  
 ac_cpp='$CPP $CPPFLAGS'  
 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'  
 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'  
 ac_compiler_gnu=$ac_cv_c_compiler_gnu  
   
   
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5  
 $as_echo_n "checking for X... " >&6; }  
   
   
 # Check whether --with-x was given.  
 if test "${with_x+set}" = set; then :  
   withval=$with_x;  
 fi  
   
 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.  
 if test "x$with_x" = xno; then  
   # The user explicitly disabled X.  
   have_x=disabled  
 else  
   case $x_includes,$x_libraries in #(  
     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(  
     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :  
   $as_echo_n "(cached) " >&6  
 else  
   # One or both of the vars are not set, and there is no cached value.  
 ac_x_includes=no ac_x_libraries=no  
 rm -f -r conftest.dir  
 if mkdir conftest.dir; then  
   cd conftest.dir  
   cat >Imakefile <<'_ACEOF'  
 incroot:  
         @echo incroot='${INCROOT}'  
 usrlibdir:  
         @echo usrlibdir='${USRLIBDIR}'  
 libdir:  
         @echo libdir='${LIBDIR}'  
 _ACEOF  
   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then  
     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.  
     for ac_var in incroot usrlibdir libdir; do  
       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"  
     done  
     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.  
     for ac_extension in a so sl dylib la dll; do  
       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&  
          test -f "$ac_im_libdir/libX11.$ac_extension"; then  
         ac_im_usrlibdir=$ac_im_libdir; break  
       fi  
     done  
     # Screen out bogus values from the imake configuration.  They are  
     # bogus both because they are the default anyway, and because  
     # using them would break gcc on systems where it needs fixed includes.  
     case $ac_im_incroot in  
         /usr/include) ac_x_includes= ;;  
         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;  
     esac  
     case $ac_im_usrlibdir in  
         /usr/lib | /usr/lib64 | /lib | /lib64) ;;  
         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;  
     esac  
   fi  
   cd ..  
   rm -f -r conftest.dir  
 fi  
   
 # Standard set of common directories for X headers.  
 # Check X11 before X11Rn because it is often a symlink to the current release.  
 ac_x_header_dirs='  
 /usr/X11/include  
 /usr/X11R7/include  
 /usr/X11R6/include  
 /usr/X11R5/include  
 /usr/X11R4/include  
   
 /usr/include/X11  
 /usr/include/X11R7  
 /usr/include/X11R6  
 /usr/include/X11R5  
 /usr/include/X11R4  
   
 /usr/local/X11/include  
 /usr/local/X11R7/include  
 /usr/local/X11R6/include  
 /usr/local/X11R5/include  
 /usr/local/X11R4/include  
   
 /usr/local/include/X11  
 /usr/local/include/X11R7  
 /usr/local/include/X11R6  
 /usr/local/include/X11R5  
 /usr/local/include/X11R4  
   
 /usr/X386/include  
 /usr/x386/include  
 /usr/XFree86/include/X11  
   
 /usr/include  
 /usr/local/include  
 /usr/unsupported/include  
 /usr/athena/include  
 /usr/local/x11r5/include  
 /usr/lpp/Xamples/include  
   
 /usr/openwin/include  
 /usr/openwin/share/include'  
   
 if test "$ac_x_includes" = no; then  
   # Guess where to find include files, by looking for Xlib.h.  
   # First, try using that file with no special directory specified.  
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext  
 /* end confdefs.h.  */  
 #include <X11/Xlib.h>  
 _ACEOF  
 if ac_fn_c_try_cpp "$LINENO"; then :  
   # We can compile using X headers with no special include directory.  
 ac_x_includes=  
 else  
   for ac_dir in $ac_x_header_dirs; do  
   if test -r "$ac_dir/X11/Xlib.h"; then  
     ac_x_includes=$ac_dir  
     break  
   fi  
 done  
 fi  
 rm -f conftest.err conftest.i conftest.$ac_ext  
 fi # $ac_x_includes = no  
   
 if test "$ac_x_libraries" = no; then  
   # Check for the libraries.  
   # See if we find them without any special options.  
   # Don't add to $LIBS permanently.  
   ac_save_LIBS=$LIBS  
   LIBS="-lX11 $LIBS"  
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext  
 /* end confdefs.h.  */  
 #include <X11/Xlib.h>  
 int  
 main ()  
 {  
 XrmInitialize ()  
   ;  
   return 0;  
 }  
 _ACEOF  
 if ac_fn_c_try_link "$LINENO"; then :  
   LIBS=$ac_save_LIBS  
 # We can link X programs with no special library path.  
 ac_x_libraries=  
 else  
   LIBS=$ac_save_LIBS  
 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`  
 do  
   # Don't even attempt the hair of trying to link an X program!  
   for ac_extension in a so sl dylib la dll; do  
     if test -r "$ac_dir/libX11.$ac_extension"; then  
       ac_x_libraries=$ac_dir  
       break 2  
     fi  
   done  
 done  
 fi  
 rm -f core conftest.err conftest.$ac_objext \  
     conftest$ac_exeext conftest.$ac_ext  
 fi # $ac_x_libraries = no  
   
 case $ac_x_includes,$ac_x_libraries in #(  
   no,* | *,no | *\'*)  
     # Didn't find X, or a directory has "'" in its name.  
     ac_cv_have_x="have_x=no";; #(  
   *)  
     # Record where we found X for the cache.  
     ac_cv_have_x="have_x=yes\  
         ac_x_includes='$ac_x_includes'\  
         ac_x_libraries='$ac_x_libraries'"  
 esac  
 fi  
 ;; #(  
     *) have_x=yes;;  
   esac  
   eval "$ac_cv_have_x"  
 fi # $with_x != no  
   
 if test "$have_x" != yes; then  
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5  
 $as_echo "$have_x" >&6; }  
   no_x=yes  
 else  
   # If each of the values was on the command line, it overrides each guess.  
   test "x$x_includes" = xNONE && x_includes=$ac_x_includes  
   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries  
   # Update the cache value to reflect the command line values.  
   ac_cv_have_x="have_x=yes\  
         ac_x_includes='$x_includes'\  
         ac_x_libraries='$x_libraries'"  
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5  
 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }  
 fi  
   
 if test "$no_x" = yes; then  
   # Not all programs may use this symbol, but it does not hurt to define it.  
   
 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h  
   
   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=  
 else  
   if test -n "$x_includes"; then  
     X_CFLAGS="$X_CFLAGS -I$x_includes"  
   fi  
   
   # It would also be nice to do this for all -L options, not just this one.  
   if test -n "$x_libraries"; then  
     X_LIBS="$X_LIBS -L$x_libraries"  
     # For Solaris; some versions of Sun CC require a space after -R and  
     # others require no space.  Words are not sufficient . . . .  
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5  
 $as_echo_n "checking whether -R must be followed by a space... " >&6; }  
     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"  
     ac_xsave_c_werror_flag=$ac_c_werror_flag  
     ac_c_werror_flag=yes  
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext  
 /* end confdefs.h.  */  
   
 int  
 main ()  
 {  
   
   ;  
   return 0;  
 }  
 _ACEOF  
 if ac_fn_c_try_link "$LINENO"; then :  
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5  
 $as_echo "no" >&6; }  
        X_LIBS="$X_LIBS -R$x_libraries"  
 else  
   LIBS="$ac_xsave_LIBS -R $x_libraries"  
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext  
 /* end confdefs.h.  */  
   
 int  
 main ()  
 {  
   
   ;  
   return 0;  
 }  
 _ACEOF  
 if ac_fn_c_try_link "$LINENO"; then :  
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 $as_echo "yes" >&6; }  $as_echo "yes" >&6; }
           X_LIBS="$X_LIBS -R $x_libraries"  
 else  else
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 $as_echo "neither works" >&6; }  $as_echo "no, using $LN_S" >&6; }
 fi  fi
 rm -f core conftest.err conftest.$ac_objext \  
     conftest$ac_exeext conftest.$ac_ext  
 fi  
 rm -f core conftest.err conftest.$ac_objext \  
     conftest$ac_exeext conftest.$ac_ext  
     ac_c_werror_flag=$ac_xsave_c_werror_flag  
     LIBS=$ac_xsave_LIBS  
   fi  
   
   # Check for system-dependent libraries X programs must link with.  
   # Do this before checking for the system-independent R6 libraries  
   # (-lICE), since we may need -lsocket or whatever for X linking.  
   
   if test "$ISC" = yes; then  
     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"  
   else  
     # Martyn Johnson says this is needed for Ultrix, if the X  
     # libraries were built with DECnet support.  And Karl Berry says  
     # the Alpha needs dnet_stub (dnet does not exist).  
     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"  
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext  
 /* end confdefs.h.  */  
   
 /* Override any GCC internal prototype to avoid an error.  
    Use char because int might match the return type of a GCC  
    builtin and then its argument prototype would still apply.  */  
 #ifdef __cplusplus  
 extern "C"  
 #endif  
 char XOpenDisplay ();  
 int  
 main ()  
 {  
 return XOpenDisplay ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 if ac_fn_c_try_link "$LINENO"; then :  
   
 else  
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5  
 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }  
 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :  
   $as_echo_n "(cached) " >&6  
 else  
   ac_check_lib_save_LIBS=$LIBS  
 LIBS="-ldnet  $LIBS"  
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext  
 /* end confdefs.h.  */  
   
 /* Override any GCC internal prototype to avoid an error.  
    Use char because int might match the return type of a GCC  
    builtin and then its argument prototype would still apply.  */  
 #ifdef __cplusplus  
 extern "C"  
 #endif  
 char dnet_ntoa ();  
 int  
 main ()  
 {  
 return dnet_ntoa ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 if ac_fn_c_try_link "$LINENO"; then :  
   ac_cv_lib_dnet_dnet_ntoa=yes  
 else  
   ac_cv_lib_dnet_dnet_ntoa=no  
 fi  
 rm -f core conftest.err conftest.$ac_objext \  
     conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5  
 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }  
 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :  
   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"  
 fi  
   
     if test $ac_cv_lib_dnet_dnet_ntoa = no; then  
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5  
 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }  
 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :  
   $as_echo_n "(cached) " >&6  
 else  
   ac_check_lib_save_LIBS=$LIBS  
 LIBS="-ldnet_stub  $LIBS"  
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext  
 /* end confdefs.h.  */  
   
 /* Override any GCC internal prototype to avoid an error.  
    Use char because int might match the return type of a GCC  
    builtin and then its argument prototype would still apply.  */  
 #ifdef __cplusplus  
 extern "C"  
 #endif  
 char dnet_ntoa ();  
 int  
 main ()  
 {  
 return dnet_ntoa ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 if ac_fn_c_try_link "$LINENO"; then :  
   ac_cv_lib_dnet_stub_dnet_ntoa=yes  
 else  
   ac_cv_lib_dnet_stub_dnet_ntoa=no  
 fi  
 rm -f core conftest.err conftest.$ac_objext \  
     conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5  
 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }  
 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :  
   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"  
 fi  
   
     fi  
 fi  
 rm -f core conftest.err conftest.$ac_objext \  
     conftest$ac_exeext conftest.$ac_ext  
     LIBS="$ac_xsave_LIBS"  
   
     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,  
     # to get the SysV transport functions.  
     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)  
     # needs -lnsl.  
     # The nsl library prevents programs from opening the X display  
     # on Irix 5.2, according to T.E. Dickey.  
     # The functions gethostbyname, getservbyname, and inet_addr are  
     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.  
     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"  
 if test "x$ac_cv_func_gethostbyname" = xyes; then :  
   
 fi  
   
     if test $ac_cv_func_gethostbyname = no; then  
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5  
 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }  
 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :  
   $as_echo_n "(cached) " >&6  
 else  
   ac_check_lib_save_LIBS=$LIBS  
 LIBS="-lnsl  $LIBS"  
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext  
 /* end confdefs.h.  */  
   
 /* Override any GCC internal prototype to avoid an error.  
    Use char because int might match the return type of a GCC  
    builtin and then its argument prototype would still apply.  */  
 #ifdef __cplusplus  
 extern "C"  
 #endif  
 char gethostbyname ();  
 int  
 main ()  
 {  
 return gethostbyname ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 if ac_fn_c_try_link "$LINENO"; then :  
   ac_cv_lib_nsl_gethostbyname=yes  
 else  
   ac_cv_lib_nsl_gethostbyname=no  
 fi  
 rm -f core conftest.err conftest.$ac_objext \  
     conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5  
 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }  
 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :  
   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"  
 fi  
   
       if test $ac_cv_lib_nsl_gethostbyname = no; then  
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5  
 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }  
 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :  
   $as_echo_n "(cached) " >&6  
 else  
   ac_check_lib_save_LIBS=$LIBS  
 LIBS="-lbsd  $LIBS"  
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext  
 /* end confdefs.h.  */  
   
 /* Override any GCC internal prototype to avoid an error.  
    Use char because int might match the return type of a GCC  
    builtin and then its argument prototype would still apply.  */  
 #ifdef __cplusplus  
 extern "C"  
 #endif  
 char gethostbyname ();  
 int  
 main ()  
 {  
 return gethostbyname ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 if ac_fn_c_try_link "$LINENO"; then :  
   ac_cv_lib_bsd_gethostbyname=yes  
 else  
   ac_cv_lib_bsd_gethostbyname=no  
 fi  
 rm -f core conftest.err conftest.$ac_objext \  
     conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5  
 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }  
 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :  
   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"  
 fi  
   
       fi  
     fi  
   
     # lieder@skyler.mavd.honeywell.com says without -lsocket,  
     # socket/setsockopt and other routines are undefined under SCO ODT  
     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary  
     # on later versions), says Simon Leinen: it contains gethostby*  
     # variants that don't use the name server (or something).  -lsocket  
     # must be given before -lnsl if both are needed.  We assume that  
     # if connect needs -lnsl, so does gethostbyname.  
     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"  
 if test "x$ac_cv_func_connect" = xyes; then :  
   
 fi  
   
     if test $ac_cv_func_connect = no; then  
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5  
 $as_echo_n "checking for connect in -lsocket... " >&6; }  
 if ${ac_cv_lib_socket_connect+:} false; then :  
   $as_echo_n "(cached) " >&6  
 else  
   ac_check_lib_save_LIBS=$LIBS  
 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"  
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext  
 /* end confdefs.h.  */  
   
 /* Override any GCC internal prototype to avoid an error.  
    Use char because int might match the return type of a GCC  
    builtin and then its argument prototype would still apply.  */  
 #ifdef __cplusplus  
 extern "C"  
 #endif  
 char connect ();  
 int  
 main ()  
 {  
 return connect ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 if ac_fn_c_try_link "$LINENO"; then :  
   ac_cv_lib_socket_connect=yes  
 else  
   ac_cv_lib_socket_connect=no  
 fi  
 rm -f core conftest.err conftest.$ac_objext \  
     conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5  
 $as_echo "$ac_cv_lib_socket_connect" >&6; }  
 if test "x$ac_cv_lib_socket_connect" = xyes; then :  
   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"  
 fi  
   
     fi  
   
     # Guillermo Gomez says -lposix is necessary on A/UX.  
     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"  
 if test "x$ac_cv_func_remove" = xyes; then :  
   
 fi  
   
     if test $ac_cv_func_remove = no; then  
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5  
 $as_echo_n "checking for remove in -lposix... " >&6; }  
 if ${ac_cv_lib_posix_remove+:} false; then :  
   $as_echo_n "(cached) " >&6  
 else  
   ac_check_lib_save_LIBS=$LIBS  
 LIBS="-lposix  $LIBS"  
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext  
 /* end confdefs.h.  */  
   
 /* Override any GCC internal prototype to avoid an error.  
    Use char because int might match the return type of a GCC  
    builtin and then its argument prototype would still apply.  */  
 #ifdef __cplusplus  
 extern "C"  
 #endif  
 char remove ();  
 int  
 main ()  
 {  
 return remove ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 if ac_fn_c_try_link "$LINENO"; then :  
   ac_cv_lib_posix_remove=yes  
 else  
   ac_cv_lib_posix_remove=no  
 fi  
 rm -f core conftest.err conftest.$ac_objext \  
     conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5  
 $as_echo "$ac_cv_lib_posix_remove" >&6; }  
 if test "x$ac_cv_lib_posix_remove" = xyes; then :  
   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"  
 fi  
   
     fi  
   
     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.  
     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"  
 if test "x$ac_cv_func_shmat" = xyes; then :  
   
 fi  
   
     if test $ac_cv_func_shmat = no; then  
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5  
 $as_echo_n "checking for shmat in -lipc... " >&6; }  
 if ${ac_cv_lib_ipc_shmat+:} false; then :  
   $as_echo_n "(cached) " >&6  
 else  
   ac_check_lib_save_LIBS=$LIBS  
 LIBS="-lipc  $LIBS"  
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext  
 /* end confdefs.h.  */  
   
 /* Override any GCC internal prototype to avoid an error.  
    Use char because int might match the return type of a GCC  
    builtin and then its argument prototype would still apply.  */  
 #ifdef __cplusplus  
 extern "C"  
 #endif  
 char shmat ();  
 int  
 main ()  
 {  
 return shmat ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 if ac_fn_c_try_link "$LINENO"; then :  
   ac_cv_lib_ipc_shmat=yes  
 else  
   ac_cv_lib_ipc_shmat=no  
 fi  
 rm -f core conftest.err conftest.$ac_objext \  
     conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5  
 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }  
 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :  
   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"  
 fi  
   
     fi  
   fi  
   
   # Check for libraries that X11R6 Xt/Xaw programs need.  
   ac_save_LDFLAGS=$LDFLAGS  
   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"  
   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to  
   # check for ICE first), but we must link in the order -lSM -lICE or  
   # we get undefined symbols.  So assume we have SM if we have ICE.  
   # These have to be linked with before -lX11, unlike the other  
   # libraries we check for below, so use a different variable.  
   # John Interrante, Karl Berry  
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5  
 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }  
 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :  
   $as_echo_n "(cached) " >&6  
 else  
   ac_check_lib_save_LIBS=$LIBS  
 LIBS="-lICE $X_EXTRA_LIBS $LIBS"  
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext  
 /* end confdefs.h.  */  
   
 /* Override any GCC internal prototype to avoid an error.  
    Use char because int might match the return type of a GCC  
    builtin and then its argument prototype would still apply.  */  
 #ifdef __cplusplus  
 extern "C"  
 #endif  
 char IceConnectionNumber ();  
 int  
 main ()  
 {  
 return IceConnectionNumber ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 if ac_fn_c_try_link "$LINENO"; then :  
   ac_cv_lib_ICE_IceConnectionNumber=yes  
 else  
   ac_cv_lib_ICE_IceConnectionNumber=no  
 fi  
 rm -f core conftest.err conftest.$ac_objext \  
     conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5  
 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }  
 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :  
   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"  
 fi  
   
   LDFLAGS=$ac_save_LDFLAGS  
   
 fi  
   
   
 if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then  
     if test "${ac_cv_prog_cc_g}" = yes; then  
         CFLAGS="-g -O"  
     else  
         CFLAGS="-O"  
     fi  
 elif test `basename ./"${CC}"` = "icc" ; then  
     CFLAGS="-g -O"  
 fi  
   
 # Check whether --enable-shared was given.  # Check whether --enable-shared was given.
 if test "${enable_shared+set}" = set; then :  if test "${enable_shared+set}" = set; then :
   enableval=$enable_shared;    enableval=$enable_shared;
Line 4901  if test "${enable_shared:=yes}" != no ; then
Line 3730  if test "${enable_shared:=yes}" != no ; then
    true     true
 fi  fi
   
 LIBS='-lox -lmpfr -lgmp -lgc -lpari'  OXLIBS='-lox -lmpfr -lgmp -lgc -lpari'
 if test "${enable_shared}" = no ; then  if test "${enable_shared}" = no ; then
     LIBS='${libdir}/libox.a ${libdir}/libmpfr.a ${libdir}/libgmp.a ${libdir}/libgc.a ${libdir}/libpari.a'      OXLIBS='${libdir}/libox.a ${libdir}/libmpfr.a ${libdir}/libgmp.a ${libdir}/libgc.a ${libdir}/libpari.a'
 fi  fi
   
   
 $as_echo "#define _POSIX_C_SOURCE 1" >>confdefs.h  $as_echo "#define _POSIX_C_SOURCE 1" >>confdefs.h
   
   
   
 for ac_func in sigaction  for ac_func in sigaction
 do :  do :
   ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"    ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
Line 4920  _ACEOF
Line 3750  _ACEOF
   
 fi  fi
 done  done
   
 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"  
 if test "x$ac_cv_func_socket" = xyes; then :  
   
 else  
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5  
 $as_echo_n "checking for socket in -lsocket... " >&6; }  
 if ${ac_cv_lib_socket_socket+:} false; then :  
   $as_echo_n "(cached) " >&6  
 else  
   ac_check_lib_save_LIBS=$LIBS  
 LIBS="-lsocket  $LIBS"  
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext  
 /* end confdefs.h.  */  
   
 /* Override any GCC internal prototype to avoid an error.  
    Use char because int might match the return type of a GCC  
    builtin and then its argument prototype would still apply.  */  
 #ifdef __cplusplus  
 extern "C"  
 #endif  
 char socket ();  
 int  
 main ()  
 {  
 return socket ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 if ac_fn_c_try_link "$LINENO"; then :  
   ac_cv_lib_socket_socket=yes  
 else  
   ac_cv_lib_socket_socket=no  
 fi  
 rm -f core conftest.err conftest.$ac_objext \  
     conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5  
 $as_echo "$ac_cv_lib_socket_socket" >&6; }  
 if test "x$ac_cv_lib_socket_socket" = xyes; then :  
   cat >>confdefs.h <<_ACEOF  
 #define HAVE_LIBSOCKET 1  
 _ACEOF  
   
   LIBS="-lsocket $LIBS"  
   
 fi  
   
 fi  
   
 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"  
 if test "x$ac_cv_func_gethostbyname" = xyes; then :  
   
 else  
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5  
 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }  
 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :  
   $as_echo_n "(cached) " >&6  
 else  
   ac_check_lib_save_LIBS=$LIBS  
 LIBS="-lnsl  $LIBS"  
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext  
 /* end confdefs.h.  */  
   
 /* Override any GCC internal prototype to avoid an error.  
    Use char because int might match the return type of a GCC  
    builtin and then its argument prototype would still apply.  */  
 #ifdef __cplusplus  
 extern "C"  
 #endif  
 char gethostbyname ();  
 int  
 main ()  
 {  
 return gethostbyname ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 if ac_fn_c_try_link "$LINENO"; then :  
   ac_cv_lib_nsl_gethostbyname=yes  
 else  
   ac_cv_lib_nsl_gethostbyname=no  
 fi  
 rm -f core conftest.err conftest.$ac_objext \  
     conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5  
 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }  
 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :  
   cat >>confdefs.h <<_ACEOF  
 #define HAVE_LIBNSL 1  
 _ACEOF  
   
   LIBS="-lnsl $LIBS"  
   
 fi  
   
 fi  
   
   
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5  
 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }  
 if ${ac_cv_path_GREP+:} false; then :  
   $as_echo_n "(cached) " >&6  
 else  
   if test -z "$GREP"; then  
   ac_path_GREP_found=false  
   # Loop through the user's path and test for each of PROGNAME-LIST  
   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR  
 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin  
 do  
   IFS=$as_save_IFS  
   test -z "$as_dir" && as_dir=.  
     for ac_prog in grep ggrep; do  
     for ac_exec_ext in '' $ac_executable_extensions; do  
       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"  
       as_fn_executable_p "$ac_path_GREP" || continue  
 # Check for GNU ac_path_GREP and select it if it is found.  
   # Check for GNU $ac_path_GREP  
 case `"$ac_path_GREP" --version 2>&1` in  
 *GNU*)  
   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;  
 *)  
   ac_count=0  
   $as_echo_n 0123456789 >"conftest.in"  
   while :  
   do  
     cat "conftest.in" "conftest.in" >"conftest.tmp"  
     mv "conftest.tmp" "conftest.in"  
     cp "conftest.in" "conftest.nl"  
     $as_echo 'GREP' >> "conftest.nl"  
     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break  
     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break  
     as_fn_arith $ac_count + 1 && ac_count=$as_val  
     if test $ac_count -gt ${ac_path_GREP_max-0}; then  
       # Best one so far, save it but keep looking for a better one  
       ac_cv_path_GREP="$ac_path_GREP"  
       ac_path_GREP_max=$ac_count  
     fi  
     # 10*(2^10) chars as input seems more than enough  
     test $ac_count -gt 10 && break  
   done  
   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;  
 esac  
   
       $ac_path_GREP_found && break 3  
     done  
   done  
   done  
 IFS=$as_save_IFS  
   if test -z "$ac_cv_path_GREP"; then  
     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5  
   fi  
 else  
   ac_cv_path_GREP=$GREP  
 fi  
   
 fi  
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5  
 $as_echo "$ac_cv_path_GREP" >&6; }  
  GREP="$ac_cv_path_GREP"  
   
   
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5  
 $as_echo_n "checking for egrep... " >&6; }  
 if ${ac_cv_path_EGREP+:} false; then :  
   $as_echo_n "(cached) " >&6  
 else  
   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1  
    then ac_cv_path_EGREP="$GREP -E"  
    else  
      if test -z "$EGREP"; then  
   ac_path_EGREP_found=false  
   # Loop through the user's path and test for each of PROGNAME-LIST  
   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR  
 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin  
 do  
   IFS=$as_save_IFS  
   test -z "$as_dir" && as_dir=.  
     for ac_prog in egrep; do  
     for ac_exec_ext in '' $ac_executable_extensions; do  
       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"  
       as_fn_executable_p "$ac_path_EGREP" || continue  
 # Check for GNU ac_path_EGREP and select it if it is found.  
   # Check for GNU $ac_path_EGREP  
 case `"$ac_path_EGREP" --version 2>&1` in  
 *GNU*)  
   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;  
 *)  
   ac_count=0  
   $as_echo_n 0123456789 >"conftest.in"  
   while :  
   do  
     cat "conftest.in" "conftest.in" >"conftest.tmp"  
     mv "conftest.tmp" "conftest.in"  
     cp "conftest.in" "conftest.nl"  
     $as_echo 'EGREP' >> "conftest.nl"  
     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break  
     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break  
     as_fn_arith $ac_count + 1 && ac_count=$as_val  
     if test $ac_count -gt ${ac_path_EGREP_max-0}; then  
       # Best one so far, save it but keep looking for a better one  
       ac_cv_path_EGREP="$ac_path_EGREP"  
       ac_path_EGREP_max=$ac_count  
     fi  
     # 10*(2^10) chars as input seems more than enough  
     test $ac_count -gt 10 && break  
   done  
   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;  
 esac  
   
       $ac_path_EGREP_found && break 3  
     done  
   done  
   done  
 IFS=$as_save_IFS  
   if test -z "$ac_cv_path_EGREP"; then  
     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5  
   fi  
 else  
   ac_cv_path_EGREP=$EGREP  
 fi  
   
    fi  
 fi  
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5  
 $as_echo "$ac_cv_path_EGREP" >&6; }  
  EGREP="$ac_cv_path_EGREP"  
   
   
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5  
 $as_echo_n "checking for ANSI C header files... " >&6; }  
 if ${ac_cv_header_stdc+:} false; then :  
   $as_echo_n "(cached) " >&6  
 else  
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext  
 /* end confdefs.h.  */  
 #include <stdlib.h>  
 #include <stdarg.h>  
 #include <string.h>  
 #include <float.h>  
   
 int  
 main ()  
 {  
   
   ;  
   return 0;  
 }  
 _ACEOF  
 if ac_fn_c_try_compile "$LINENO"; then :  
   ac_cv_header_stdc=yes  
 else  
   ac_cv_header_stdc=no  
 fi  
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext  
   
 if test $ac_cv_header_stdc = yes; then  
   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.  
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext  
 /* end confdefs.h.  */  
 #include <string.h>  
   
 _ACEOF  
 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  
   $EGREP "memchr" >/dev/null 2>&1; then :  
   
 else  
   ac_cv_header_stdc=no  
 fi  
 rm -f conftest*  
   
 fi  
   
 if test $ac_cv_header_stdc = yes; then  
   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.  
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext  
 /* end confdefs.h.  */  
 #include <stdlib.h>  
   
 _ACEOF  
 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  
   $EGREP "free" >/dev/null 2>&1; then :  
   
 else  
   ac_cv_header_stdc=no  
 fi  
 rm -f conftest*  
   
 fi  
   
 if test $ac_cv_header_stdc = yes; then  
   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.  
   if test "$cross_compiling" = yes; then :  
   :  
 else  
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext  
 /* end confdefs.h.  */  
 #include <ctype.h>  
 #include <stdlib.h>  
 #if ((' ' & 0x0FF) == 0x020)  
 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')  
 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))  
 #else  
 # define ISLOWER(c) \  
                    (('a' <= (c) && (c) <= 'i') \  
                      || ('j' <= (c) && (c) <= 'r') \  
                      || ('s' <= (c) && (c) <= 'z'))  
 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))  
 #endif  
   
 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))  
 int  
 main ()  
 {  
   int i;  
   for (i = 0; i < 256; i++)  
     if (XOR (islower (i), ISLOWER (i))  
         || toupper (i) != TOUPPER (i))  
       return 2;  
   return 0;  
 }  
 _ACEOF  
 if ac_fn_c_try_run "$LINENO"; then :  
   
 else  
   ac_cv_header_stdc=no  
 fi  
 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \  
   conftest.$ac_objext conftest.beam conftest.$ac_ext  
 fi  
   
 fi  
 fi  
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5  
 $as_echo "$ac_cv_header_stdc" >&6; }  
 if test $ac_cv_header_stdc = yes; then  
   
 $as_echo "#define STDC_HEADERS 1" >>confdefs.h  
   
 fi  
   
 # On IRIX 5.3, sys/types and inttypes.h are conflicting.  
 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \  
                   inttypes.h stdint.h unistd.h  
 do :  
   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`  
 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default  
 "  
 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :  
   cat >>confdefs.h <<_ACEOF  
 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1  
 _ACEOF  
   
 fi  
   
 done  
   
   
 # The cast to long int works around a bug in the HP C Compiler  
 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects  
 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.  
 # This bug is HP SR number 8606223364.  
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5  
 $as_echo_n "checking size of long... " >&6; }  
 if ${ac_cv_sizeof_long+:} false; then :  
   $as_echo_n "(cached) " >&6  
 else  
   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :  
   
 else  
   if test "$ac_cv_type_long" = yes; then  
      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5  
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}  
 as_fn_error 77 "cannot compute sizeof (long)  
 See \`config.log' for more details" "$LINENO" 5; }  
    else  
      ac_cv_sizeof_long=0  
    fi  
 fi  
   
 fi  
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5  
 $as_echo "$ac_cv_sizeof_long" >&6; }  
   
   
   
 cat >>confdefs.h <<_ACEOF  
 #define SIZEOF_LONG $ac_cv_sizeof_long  
 _ACEOF  
   
   
 ac_config_files="$ac_config_files Makefile"  ac_config_files="$ac_config_files Makefile"

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.3

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>