Develop and Download Open Source Software

Browse CVS Repository

Diff of /freewnn/FreeWnn/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.9 by ura, Sun Jan 16 07:15:50 2000 UTC revision 1.10 by ura, Sun Jan 16 07:30:00 2000 UTC
# Line 524  fi Line 524  fi
524    
525    
526    
527    
528  case "$top_srcdir" in  case "$top_srcdir" in
529    .)  abs_top_srcdir=`pwd` ;;    .)  abs_top_srcdir=`pwd` ;;
530    /*) abs_top_srcdir=top_srcdir;;    /*) abs_top_srcdir=top_srcdir;;
# Line 537  esac Line 538  esac
538  # Extract the first word of "gcc", so it can be a program name with args.  # Extract the first word of "gcc", so it can be a program name with args.
539  set dummy gcc; ac_word=$2  set dummy gcc; ac_word=$2
540  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
541  echo "configure:541: checking for $ac_word" >&5  echo "configure:542: checking for $ac_word" >&5
542  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
543    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
544  else  else
# Line 567  if test -z "$CC"; then Line 568  if test -z "$CC"; then
568    # Extract the first word of "cc", so it can be a program name with args.    # Extract the first word of "cc", so it can be a program name with args.
569  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
570  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
571  echo "configure:571: checking for $ac_word" >&5  echo "configure:572: checking for $ac_word" >&5
572  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
573    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
574  else  else
# Line 618  fi Line 619  fi
619        # Extract the first word of "cl", so it can be a program name with args.        # Extract the first word of "cl", so it can be a program name with args.
620  set dummy cl; ac_word=$2  set dummy cl; ac_word=$2
621  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
622  echo "configure:622: checking for $ac_word" >&5  echo "configure:623: checking for $ac_word" >&5
623  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
624    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
625  else  else
# Line 650  fi Line 651  fi
651  fi  fi
652    
653  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
654  echo "configure:654: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  echo "configure:655: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
655    
656  ac_ext=c  ac_ext=c
657  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
# Line 661  cross_compiling=$ac_cv_prog_cc_cross Line 662  cross_compiling=$ac_cv_prog_cc_cross
662    
663  cat > conftest.$ac_ext << EOF  cat > conftest.$ac_ext << EOF
664    
665  #line 665 "configure"  #line 666 "configure"
666  #include "confdefs.h"  #include "confdefs.h"
667    
668  main(){return(0);}  main(){return(0);}
669  EOF  EOF
670  if { (eval echo configure:670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
671    ac_cv_prog_cc_works=yes    ac_cv_prog_cc_works=yes
672    # If we can't run a trivial program, we are probably using a cross compiler.    # If we can't run a trivial program, we are probably using a cross compiler.
673    if (./conftest; exit) 2>/dev/null; then    if (./conftest; exit) 2>/dev/null; then
# Line 692  if test $ac_cv_prog_cc_works = no; then Line 693  if test $ac_cv_prog_cc_works = no; then
693    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
694  fi  fi
695  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
696  echo "configure:696: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5  echo "configure:697: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
697  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
698  cross_compiling=$ac_cv_prog_cc_cross  cross_compiling=$ac_cv_prog_cc_cross
699    
700  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
701  echo "configure:701: checking whether we are using GNU C" >&5  echo "configure:702: checking whether we are using GNU C" >&5
702  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
703    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
704  else  else
# Line 706  else Line 707  else
707    yes;    yes;
708  #endif  #endif
709  EOF  EOF
710  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
711    ac_cv_prog_gcc=yes    ac_cv_prog_gcc=yes
712  else  else
713    ac_cv_prog_gcc=no    ac_cv_prog_gcc=no
# Line 725  ac_test_CFLAGS="${CFLAGS+set}" Line 726  ac_test_CFLAGS="${CFLAGS+set}"
726  ac_save_CFLAGS="$CFLAGS"  ac_save_CFLAGS="$CFLAGS"
727  CFLAGS=  CFLAGS=
728  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
729  echo "configure:729: checking whether ${CC-cc} accepts -g" >&5  echo "configure:730: checking whether ${CC-cc} accepts -g" >&5
730  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
731    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
732  else  else
# Line 757  else Line 758  else
758  fi  fi
759    
760  echo $ac_n "checking for cpp""... $ac_c" 1>&6  echo $ac_n "checking for cpp""... $ac_c" 1>&6
761  echo "configure:761: checking for cpp" >&5  echo "configure:762: checking for cpp" >&5
762  hosttype=`uname`  hosttype=`uname`
763  CCOPTIONS=""  CCOPTIONS=""
764  CDEBUGFLAGS=-O  CDEBUGFLAGS=-O
# Line 866  case $hosttype in Line 867  case $hosttype in
867      ;;      ;;
868  esac  esac
869  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
870  echo "configure:870: checking how to run the C preprocessor" >&5  echo "configure:871: checking how to run the C preprocessor" >&5
871  # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
872  if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
873    CPP=    CPP=
# Line 881  else Line 882  else
882    # On the NeXT, cc -E runs the code through the compiler's parser,    # On the NeXT, cc -E runs the code through the compiler's parser,
883    # not just through cpp.    # not just through cpp.
884    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
885  #line 885 "configure"  #line 886 "configure"
886  #include "confdefs.h"  #include "confdefs.h"
887  #include <assert.h>  #include <assert.h>
888  Syntax Error  Syntax Error
889  EOF  EOF
890  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
891  { (eval echo configure:891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
892  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
893  if test -z "$ac_err"; then  if test -z "$ac_err"; then
894    :    :
# Line 898  else Line 899  else
899    rm -rf conftest*    rm -rf conftest*
900    CPP="${CC-cc} -E -traditional-cpp"    CPP="${CC-cc} -E -traditional-cpp"
901    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
902  #line 902 "configure"  #line 903 "configure"
903  #include "confdefs.h"  #include "confdefs.h"
904  #include <assert.h>  #include <assert.h>
905  Syntax Error  Syntax Error
906  EOF  EOF
907  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
908  { (eval echo configure:908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
909  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
910  if test -z "$ac_err"; then  if test -z "$ac_err"; then
911    :    :
# Line 915  else Line 916  else
916    rm -rf conftest*    rm -rf conftest*
917    CPP="${CC-cc} -nologo -E"    CPP="${CC-cc} -nologo -E"
918    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
919  #line 919 "configure"  #line 920 "configure"
920  #include "confdefs.h"  #include "confdefs.h"
921  #include <assert.h>  #include <assert.h>
922  Syntax Error  Syntax Error
923  EOF  EOF
924  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
925  { (eval echo configure:925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
926  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
927  if test -z "$ac_err"; then  if test -z "$ac_err"; then
928    :    :
# Line 977  ac_configure=$ac_aux_dir/configure # Thi Line 978  ac_configure=$ac_aux_dir/configure # Thi
978  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
979  # ./install, which can be erroneously created by make from ./install.sh.  # ./install, which can be erroneously created by make from ./install.sh.
980  echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6  echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
981  echo "configure:981: checking for a BSD compatible install" >&5  echo "configure:982: checking for a BSD compatible install" >&5
982  if test -z "$INSTALL"; then  if test -z "$INSTALL"; then
983  if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
984    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1030  test -z "$INSTALL_SCRIPT" && INSTALL_SCR Line 1031  test -z "$INSTALL_SCRIPT" && INSTALL_SCR
1031  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1032    
1033  echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6  echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1034  echo "configure:1034: checking whether ln -s works" >&5  echo "configure:1035: checking whether ln -s works" >&5
1035  if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1036    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1037  else  else
# Line 1051  else Line 1052  else
1052  fi  fi
1053    
1054  echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6  echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1055  echo "configure:1055: checking whether ${MAKE-make} sets \${MAKE}" >&5  echo "configure:1056: checking whether ${MAKE-make} sets \${MAKE}" >&5
1056  set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`  set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1057  if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1058    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1080  fi Line 1081  fi
1081  # Extract the first word of "ranlib", so it can be a program name with args.  # Extract the first word of "ranlib", so it can be a program name with args.
1082  set dummy ranlib; ac_word=$2  set dummy ranlib; ac_word=$2
1083  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1084  echo "configure:1084: checking for $ac_word" >&5  echo "configure:1085: checking for $ac_word" >&5
1085  if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1086    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1087  else  else
# Line 1112  fi Line 1113  fi
1113    
1114    
1115  echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6  echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
1116  echo "configure:1116: checking for crypt in -lcrypt" >&5  echo "configure:1117: checking for crypt in -lcrypt" >&5
1117  ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`  ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
1118  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1119    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1120  else Line 1121  else
1121    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1122  LIBS="-lcrypt  $LIBS"  LIBS="-lcrypt  $LIBS"
1123  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1124  #line 1124 "configure"  #line 1125 "configure"
1125  #include "confdefs.h"  #include "confdefs.h"
1126  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1127  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 1131  int main() { Line 1132  int main() {
1132  crypt()  crypt()
1133  ; return 0; }  ; return 0; }
1134  EOF  EOF
1135  if { (eval echo configure:1135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1136    rm -rf conftest*    rm -rf conftest*
1137    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1138  else  else
# Line 1159  else Line 1160  else
1160  fi  fi
1161    
1162  echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6  echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1163  echo "configure:1163: checking for connect in -lsocket" >&5  echo "configure:1164: checking for connect in -lsocket" >&5
1164  ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`  ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1165  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1166    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1167  else Line 1168  else
1168    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1169  LIBS="-lsocket  $LIBS"  LIBS="-lsocket  $LIBS"
1170  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1171  #line 1171 "configure"  #line 1172 "configure"
1172  #include "confdefs.h"  #include "confdefs.h"
1173  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1174  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 1178  int main() { Line 1179  int main() {
1179  connect()  connect()
1180  ; return 0; }  ; return 0; }
1181  EOF  EOF
1182  if { (eval echo configure:1182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1183    rm -rf conftest*    rm -rf conftest*
1184    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1185  else  else
# Line 1206  else Line 1207  else
1207  fi  fi
1208    
1209  echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6  echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1210  echo "configure:1210: checking for gethostbyname in -lnsl" >&5  echo "configure:1211: checking for gethostbyname in -lnsl" >&5
1211  ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`  ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1212  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1213    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1214  else Line 1215  else
1215    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1216  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
1217  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1218  #line 1218 "configure"  #line 1219 "configure"
1219  #include "confdefs.h"  #include "confdefs.h"
1220  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1221  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 1225  int main() { Line 1226  int main() {
1226  gethostbyname()  gethostbyname()
1227  ; return 0; }  ; return 0; }
1228  EOF  EOF
1229  if { (eval echo configure:1229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1230    rm -rf conftest*    rm -rf conftest*
1231    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1232  else  else
# Line 1258  fi Line 1259  fi
1259  # Uses ac_ vars as temps to allow command line to override cache and checks.  # Uses ac_ vars as temps to allow command line to override cache and checks.
1260  # --without-x overrides everything else, but does not touch the cache.  # --without-x overrides everything else, but does not touch the cache.
1261  echo $ac_n "checking for X""... $ac_c" 1>&6  echo $ac_n "checking for X""... $ac_c" 1>&6
1262  echo "configure:1262: checking for X" >&5  echo "configure:1263: checking for X" >&5
1263    
1264  # Check whether --with-x or --without-x was given.  # Check whether --with-x or --without-x was given.
1265  if test "${with_x+set}" = set; then  if test "${with_x+set}" = set; then
# Line 1320  if test "$ac_x_includes" = NO; then Line 1321  if test "$ac_x_includes" = NO; then
1321    
1322    # First, try using that file with no special directory specified.    # First, try using that file with no special directory specified.
1323  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1324  #line 1324 "configure"  #line 1325 "configure"
1325  #include "confdefs.h"  #include "confdefs.h"
1326  #include <$x_direct_test_include>  #include <$x_direct_test_include>
1327  EOF  EOF
1328  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1329  { (eval echo configure:1329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1330  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1331  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1332    rm -rf conftest*    rm -rf conftest*
# Line 1394  if test "$ac_x_libraries" = NO; then Line 1395  if test "$ac_x_libraries" = NO; then
1395    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1396    LIBS="-l$x_direct_test_library $LIBS"    LIBS="-l$x_direct_test_library $LIBS"
1397  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1398  #line 1398 "configure"  #line 1399 "configure"
1399  #include "confdefs.h"  #include "confdefs.h"
1400    
1401  int main() {  int main() {
1402  ${x_direct_test_function}()  ${x_direct_test_function}()
1403  ; return 0; }  ; return 0; }
1404  EOF  EOF
1405  if { (eval echo configure:1405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1406    rm -rf conftest*    rm -rf conftest*
1407    LIBS="$ac_save_LIBS"    LIBS="$ac_save_LIBS"
1408  # We can link X programs with no special library path.  # We can link X programs with no special library path.
# Line 1488  else Line 1489  else
1489  fi  fi
1490    
1491  echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6  echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1492  echo "configure:1492: checking for ANSI C header files" >&5  echo "configure:1493: checking for ANSI C header files" >&5
1493  if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1494    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1495  else  else
1496    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1497  #line 1497 "configure"  #line 1498 "configure"
1498  #include "confdefs.h"  #include "confdefs.h"
1499  #include <stdlib.h>  #include <stdlib.h>
1500  #include <stdarg.h>  #include <stdarg.h>
# Line 1501  else Line 1502  else
1502  #include <float.h>  #include <float.h>
1503  EOF  EOF
1504  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1505  { (eval echo configure:1505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1506  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1507  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1508    rm -rf conftest*    rm -rf conftest*
# Line 1518  rm -f conftest* Line 1519  rm -f conftest*
1519  if test $ac_cv_header_stdc = yes; then  if test $ac_cv_header_stdc = yes; then
1520    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1521  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1522  #line 1522 "configure"  #line 1523 "configure"
1523  #include "confdefs.h"  #include "confdefs.h"
1524  #include <string.h>  #include <string.h>
1525  EOF  EOF
# Line 1536  fi Line 1537  fi
1537  if test $ac_cv_header_stdc = yes; then  if test $ac_cv_header_stdc = yes; then
1538    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1539  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1540  #line 1540 "configure"  #line 1541 "configure"
1541  #include "confdefs.h"  #include "confdefs.h"
1542  #include <stdlib.h>  #include <stdlib.h>
1543  EOF  EOF
# Line 1557  if test "$cross_compiling" = yes; then Line 1558  if test "$cross_compiling" = yes; then
1558    :    :
1559  else  else
1560    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1561  #line 1561 "configure"  #line 1562 "configure"
1562  #include "confdefs.h"  #include "confdefs.h"
1563  #include <ctype.h>  #include <ctype.h>
1564  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# Line 1568  if (XOR (islower (i), ISLOWER (i)) || to Line 1569  if (XOR (islower (i), ISLOWER (i)) || to
1569  exit (0); }  exit (0); }
1570    
1571  EOF  EOF
1572  if { (eval echo configure:1572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:1573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1573  then  then
1574    :    :
1575  else  else
# Line 1592  EOF Line 1593  EOF
1593  fi  fi
1594    
1595  echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6  echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1596  echo "configure:1596: checking for sys/wait.h that is POSIX.1 compatible" >&5  echo "configure:1597: checking for sys/wait.h that is POSIX.1 compatible" >&5
1597  if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1598    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1599  else  else
1600    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1601  #line 1601 "configure"  #line 1602 "configure"
1602  #include "confdefs.h"  #include "confdefs.h"
1603  #include <sys/types.h>  #include <sys/types.h>
1604  #include <sys/wait.h>  #include <sys/wait.h>
# Line 1613  wait (&s); Line 1614  wait (&s);
1614  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1615  ; return 0; }  ; return 0; }
1616  EOF  EOF
1617  if { (eval echo configure:1617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:1618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1618    rm -rf conftest*    rm -rf conftest*
1619    ac_cv_header_sys_wait_h=yes    ac_cv_header_sys_wait_h=yes
1620  else  else
# Line 1637  for ac_hdr in fcntl.h limits.h malloc.h Line 1638  for ac_hdr in fcntl.h limits.h malloc.h
1638  do  do
1639  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1640  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1641  echo "configure:1641: checking for $ac_hdr" >&5  echo "configure:1642: checking for $ac_hdr" >&5
1642  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1643    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1644  else  else
1645    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1646  #line 1646 "configure"  #line 1647 "configure"
1647  #include "confdefs.h"  #include "confdefs.h"
1648  #include <$ac_hdr>  #include <$ac_hdr>
1649  EOF  EOF
1650  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1651  { (eval echo configure:1651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1652  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1653  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1654    rm -rf conftest*    rm -rf conftest*
# Line 1675  done Line 1676  done
1676    
1677    
1678  echo $ac_n "checking for mode_t""... $ac_c" 1>&6  echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1679  echo "configure:1679: checking for mode_t" >&5  echo "configure:1680: checking for mode_t" >&5
1680  if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
1681    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1682  else  else
1683    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1684  #line 1684 "configure"  #line 1685 "configure"
1685  #include "confdefs.h"  #include "confdefs.h"
1686  #include <sys/types.h>  #include <sys/types.h>
1687  #if STDC_HEADERS  #if STDC_HEADERS
# Line 1708  EOF Line 1709  EOF
1709  fi  fi
1710    
1711  echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6  echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1712  echo "configure:1712: checking whether time.h and sys/time.h may both be included" >&5  echo "configure:1713: checking whether time.h and sys/time.h may both be included" >&5
1713  if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1714    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1715  else  else
1716    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1717  #line 1717 "configure"  #line 1718 "configure"
1718  #include "confdefs.h"  #include "confdefs.h"
1719  #include <sys/types.h>  #include <sys/types.h>
1720  #include <sys/time.h>  #include <sys/time.h>
# Line 1722  int main() { Line 1723  int main() {
1723  struct tm *tp;  struct tm *tp;
1724  ; return 0; }  ; return 0; }
1725  EOF  EOF
1726  if { (eval echo configure:1726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:1727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1727    rm -rf conftest*    rm -rf conftest*
1728    ac_cv_header_time=yes    ac_cv_header_time=yes
1729  else  else
# Line 1742  EOF Line 1743  EOF
1743    
1744  fi  fi
1745    
1746    echo $ac_n "checking for time_t""... $ac_c" 1>&6
1747    echo "configure:1748: checking for time_t" >&5
1748    if eval "test \"`echo '$''{'ac_cv_type_time_t'+set}'`\" = set"; then
1749      echo $ac_n "(cached) $ac_c" 1>&6
1750    else
1751      cat > conftest.$ac_ext <<EOF
1752    #line 1753 "configure"
1753    #include "confdefs.h"
1754    #include <sys/types.h>
1755    #if STDC_HEADERS
1756    #include <stdlib.h>
1757    #include <stddef.h>
1758    #endif
1759    EOF
1760    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1761      egrep "(^|[^a-zA-Z_0-9])time_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1762      rm -rf conftest*
1763      ac_cv_type_time_t=yes
1764    else
1765      rm -rf conftest*
1766      ac_cv_type_time_t=no
1767    fi
1768    rm -f conftest*
1769    
1770    fi
1771    echo "$ac_t""$ac_cv_type_time_t" 1>&6
1772    if test $ac_cv_type_time_t = no; then
1773      cat >> confdefs.h <<\EOF
1774    #define time_t long
1775    EOF
1776    
1777    fi
1778    
1779    echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
1780    echo "configure:1781: checking for socklen_t" >&5
1781    if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
1782      echo $ac_n "(cached) $ac_c" 1>&6
1783    else
1784      cat > conftest.$ac_ext <<EOF
1785    #line 1786 "configure"
1786    #include "confdefs.h"
1787    #include <sys/types.h>
1788    #if STDC_HEADERS
1789    #include <stdlib.h>
1790    #include <stddef.h>
1791    #endif
1792    EOF
1793    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1794      egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1795      rm -rf conftest*
1796      ac_cv_type_socklen_t=yes
1797    else
1798      rm -rf conftest*
1799      ac_cv_type_socklen_t=no
1800    fi
1801    rm -f conftest*
1802    
1803    fi
1804    echo "$ac_t""$ac_cv_type_socklen_t" 1>&6
1805    if test $ac_cv_type_socklen_t = no; then
1806      cat >> confdefs.h <<\EOF
1807    #define socklen_t int
1808    EOF
1809    
1810    fi
1811    
1812    
1813    
1814    echo $ac_n "checking for RAND_MAX""... $ac_c" 1>&6
1815    echo "configure:1816: checking for RAND_MAX" >&5
1816    cat > conftest.$ac_ext <<EOF
1817    #line 1818 "configure"
1818    #include "confdefs.h"
1819    #include <stdlib.h>
1820    #ifdef RAND_MAX
1821    yes
1822    #endif
1823    
1824    EOF
1825    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1826      egrep "yes" >/dev/null 2>&1; then
1827      rm -rf conftest*
1828      cat >> confdefs.h <<\EOF
1829    #define HAVE_RAND_MAX 1
1830    EOF
1831    
1832    fi
1833    rm -f conftest*
1834    
1835    
1836  if test $ac_cv_prog_gcc = yes; then  if test $ac_cv_prog_gcc = yes; then
1837      echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6      echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1838  echo "configure:1749: checking whether ${CC-cc} needs -traditional" >&5  echo "configure:1839: checking whether ${CC-cc} needs -traditional" >&5
1839  if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1840    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1841  else  else
1842      ac_pattern="Autoconf.*'x'"      ac_pattern="Autoconf.*'x'"
1843    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1844  #line 1755 "configure"  #line 1845 "configure"
1845  #include "confdefs.h"  #include "confdefs.h"
1846  #include <sgtty.h>  #include <sgtty.h>
1847  Autoconf TIOCGETP  Autoconf TIOCGETP
# Line 1769  rm -f conftest* Line 1859  rm -f conftest*
1859    
1860    if test $ac_cv_prog_gcc_traditional = no; then    if test $ac_cv_prog_gcc_traditional = no; then
1861      cat > conftest.$ac_ext <<EOF      cat > conftest.$ac_ext <<EOF
1862  #line 1773 "configure"  #line 1863 "configure"
1863  #include "confdefs.h"  #include "confdefs.h"
1864  #include <termio.h>  #include <termio.h>
1865  Autoconf TCGETA  Autoconf TCGETA
# Line 1791  echo "$ac_t""$ac_cv_prog_gcc_traditional Line 1881  echo "$ac_t""$ac_cv_prog_gcc_traditional
1881  fi  fi
1882    
1883  echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6  echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
1884  echo "configure:1795: checking for 8-bit clean memcmp" >&5  echo "configure:1885: checking for 8-bit clean memcmp" >&5
1885  if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
1886    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1887  else  else
# Line 1799  else Line 1889  else
1889    ac_cv_func_memcmp_clean=no    ac_cv_func_memcmp_clean=no
1890  else  else
1891    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1892  #line 1803 "configure"  #line 1893 "configure"
1893  #include "confdefs.h"  #include "confdefs.h"
1894    
1895  main()  main()
# Line 1809  main() Line 1899  main()
1899  }  }
1900    
1901  EOF  EOF
1902  if { (eval echo configure:1813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:1903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1903  then  then
1904    ac_cv_func_memcmp_clean=yes    ac_cv_func_memcmp_clean=yes
1905  else  else
# Line 1827  echo "$ac_t""$ac_cv_func_memcmp_clean" 1 Line 1917  echo "$ac_t""$ac_cv_func_memcmp_clean" 1
1917  test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"  test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
1918    
1919  echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6  echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1920  echo "configure:1831: checking return type of signal handlers" >&5  echo "configure:1921: checking return type of signal handlers" >&5
1921  if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1922    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1923  else  else
1924    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1925  #line 1836 "configure"  #line 1926 "configure"
1926  #include "confdefs.h"  #include "confdefs.h"
1927  #include <sys/types.h>  #include <sys/types.h>
1928  #include <signal.h>  #include <signal.h>
# Line 1849  int main() { Line 1939  int main() {
1939  int i;  int i;
1940  ; return 0; }  ; return 0; }
1941  EOF  EOF
1942  if { (eval echo configure:1853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:1943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1943    rm -rf conftest*    rm -rf conftest*
1944    ac_cv_type_signal=void    ac_cv_type_signal=void
1945  else  else
# Line 1868  EOF Line 1958  EOF
1958    
1959    
1960  echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6  echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
1961  echo "configure:1872: checking for wait3 that fills in rusage" >&5  echo "configure:1962: checking for wait3 that fills in rusage" >&5
1962  if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
1963    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1964  else  else
# Line 1876  else Line 1966  else
1966    ac_cv_func_wait3_rusage=no    ac_cv_func_wait3_rusage=no
1967  else  else
1968    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1969  #line 1880 "configure"  #line 1970 "configure"
1970  #include "confdefs.h"  #include "confdefs.h"
1971  #include <sys/types.h>  #include <sys/types.h>
1972  #include <sys/time.h>  #include <sys/time.h>
# Line 1907  main() { Line 1997  main() {
1997    }    }
1998  }  }
1999  EOF  EOF
2000  if { (eval echo configure:1911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:2001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2001  then  then
2002    ac_cv_func_wait3_rusage=yes    ac_cv_func_wait3_rusage=yes
2003  else  else
# Line 1932  fi Line 2022  fi
2022  for ac_func in gethostname mkdir select socket strtol  for ac_func in gethostname mkdir select socket strtol
2023  do  do
2024  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2025  echo "configure:1936: checking for $ac_func" >&5  echo "configure:2026: checking for $ac_func" >&5
2026  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2027    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2028  else  else
2029    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2030  #line 1941 "configure"  #line 2031 "configure"
2031  #include "confdefs.h"  #include "confdefs.h"
2032  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2033      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 1960  $ac_func(); Line 2050  $ac_func();
2050    
2051  ; return 0; }  ; return 0; }
2052  EOF  EOF
2053  if { (eval echo configure:1964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2054    rm -rf conftest*    rm -rf conftest*
2055    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
2056  else  else
# Line 1984  else Line 2074  else
2074  fi  fi
2075  done  done
2076    
2077    for ac_func in drand48
2078    do
2079    echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2080    echo "configure:2081: checking for $ac_func" >&5
2081    if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2082      echo $ac_n "(cached) $ac_c" 1>&6
2083    else
2084      cat > conftest.$ac_ext <<EOF
2085    #line 2086 "configure"
2086    #include "confdefs.h"
2087    /* System header to define __stub macros and hopefully few prototypes,
2088        which can conflict with char $ac_func(); below.  */
2089    #include <assert.h>
2090    /* Override any gcc2 internal prototype to avoid an error.  */
2091    /* We use char because int might match the return type of a gcc2
2092        builtin and then its argument prototype would still apply.  */
2093    char $ac_func();
2094    
2095    int main() {
2096    
2097    /* The GNU C library defines this for functions which it implements
2098        to always fail with ENOSYS.  Some functions are actually named
2099        something starting with __ and the normal name is an alias.  */
2100    #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2101    choke me
2102    #else
2103    $ac_func();
2104    #endif
2105    
2106    ; return 0; }
2107    EOF
2108    if { (eval echo configure:2109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2109      rm -rf conftest*
2110      eval "ac_cv_func_$ac_func=yes"
2111    else
2112      echo "configure: failed program was:" >&5
2113      cat conftest.$ac_ext >&5
2114      rm -rf conftest*
2115      eval "ac_cv_func_$ac_func=no"
2116    fi
2117    rm -f conftest*
2118    fi
2119    
2120    if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2121      echo "$ac_t""yes" 1>&6
2122        ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2123      cat >> confdefs.h <<EOF
2124    #define $ac_tr_func 1
2125    EOF
2126    
2127    else
2128      echo "$ac_t""no" 1>&6
2129    fi
2130    done
2131    
2132    
2133    

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26