Changeset 2279


Ignore:
Timestamp:
2001-04-04T16:42:05+12:00 (23 years ago)
Author:
jrm21
Message:

configure now allows an argument to give a path to non-std location of gdbm library.
Other changes to allow darwin (Mac OS X) support include adding config.* to guess the system type.

Location:
trunk/gsdl
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/configure

    r2214 r2279  
    1818ac_help="$ac_help
    1919  --enable-z3950          Enable Z39.50 client support"
     20ac_help="$ac_help
     21  --with-gdbm=dir         Use local gdbm library and headers"
    2022ac_help="$ac_help
    2123  --with-dmalloc          use dmalloc, as in
     
    534536
    535537
    536 if test "$program_transform_name" = s,x,x,; then
    537   program_transform_name=
    538 else
    539   # Double any \ or $.  echo might interpret backslashes.
    540   cat <<\EOF_SED > conftestsed
    541 s,\\,\\\\,g; s,\$,$$,g
    542 EOF_SED
    543   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
    544   rm -f conftestsed
    545 fi
    546 test "$program_prefix" != NONE &&
    547   program_transform_name="s,^,${program_prefix},; $program_transform_name"
    548 # Use a double $ so make ignores it.
    549 test "$program_suffix" != NONE &&
    550   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
    551 
    552 # sed with no file args requires a program.
    553 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
    554 
    555538
    556539PACKAGE=gsdl
     
    619602
    620603
     604# Check whether --with-gdbm or --without-gdbm was given.
     605if test "${with_gdbm+set}" = set; then
     606  withval="$with_gdbm"
     607  gdbmdir=$withval
     608fi
     609
     610
     611
     612
    621613LDFLAGS=
    622614if test -z "$CFLAGS"; then
     
    628620set dummy gcc; ac_word=$2
    629621echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    630 echo "configure:631: checking for $ac_word" >&5
     622echo "configure:623: checking for $ac_word" >&5
    631623if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    632624  echo $ac_n "(cached) $ac_c" 1>&6
     
    658650set dummy cc; ac_word=$2
    659651echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    660 echo "configure:661: checking for $ac_word" >&5
     652echo "configure:653: checking for $ac_word" >&5
    661653if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    662654  echo $ac_n "(cached) $ac_c" 1>&6
     
    709701set dummy cl; ac_word=$2
    710702echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    711 echo "configure:712: checking for $ac_word" >&5
     703echo "configure:704: checking for $ac_word" >&5
    712704if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    713705  echo $ac_n "(cached) $ac_c" 1>&6
     
    741733
    742734echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    743 echo "configure:744: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     735echo "configure:736: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    744736
    745737ac_ext=c
     
    752744cat > conftest.$ac_ext << EOF
    753745
    754 #line 755 "configure"
     746#line 747 "configure"
    755747#include "confdefs.h"
    756748
    757749main(){return(0);}
    758750EOF
    759 if { (eval echo configure:760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     751if { (eval echo configure:752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    760752  ac_cv_prog_cc_works=yes
    761753  # If we can't run a trivial program, we are probably using a cross compiler.
     
    783775fi
    784776echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    785 echo "configure:786: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     777echo "configure:778: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    786778echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    787779cross_compiling=$ac_cv_prog_cc_cross
    788780
    789781echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    790 echo "configure:791: checking whether we are using GNU C" >&5
     782echo "configure:783: checking whether we are using GNU C" >&5
    791783if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    792784  echo $ac_n "(cached) $ac_c" 1>&6
     
    797789#endif
    798790EOF
    799 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     791if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    800792  ac_cv_prog_gcc=yes
    801793else
     
    816808CFLAGS=
    817809echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    818 echo "configure:819: checking whether ${CC-cc} accepts -g" >&5
     810echo "configure:811: checking whether ${CC-cc} accepts -g" >&5
    819811if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    820812  echo $ac_n "(cached) $ac_c" 1>&6
     
    852844set dummy $ac_prog; ac_word=$2
    853845echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    854 echo "configure:855: checking for $ac_word" >&5
     846echo "configure:847: checking for $ac_word" >&5
    855847if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
    856848  echo $ac_n "(cached) $ac_c" 1>&6
     
    884876
    885877echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    886 echo "configure:887: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
     878echo "configure:879: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
    887879
    888880ac_ext=C
     
    895887cat > conftest.$ac_ext << EOF
    896888
    897 #line 898 "configure"
     889#line 890 "configure"
    898890#include "confdefs.h"
    899891
    900892int main(){return(0);}
    901893EOF
    902 if { (eval echo configure:903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     894if { (eval echo configure:895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    903895  ac_cv_prog_cxx_works=yes
    904896  # If we can't run a trivial program, we are probably using a cross compiler.
     
    926918fi
    927919echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    928 echo "configure:929: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
     920echo "configure:921: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
    929921echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
    930922cross_compiling=$ac_cv_prog_cxx_cross
    931923
    932924echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
    933 echo "configure:934: checking whether we are using GNU C++" >&5
     925echo "configure:926: checking whether we are using GNU C++" >&5
    934926if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    935927  echo $ac_n "(cached) $ac_c" 1>&6
     
    940932#endif
    941933EOF
    942 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     934if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    943935  ac_cv_prog_gxx=yes
    944936else
     
    959951CXXFLAGS=
    960952echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
    961 echo "configure:962: checking whether ${CXX-g++} accepts -g" >&5
     953echo "configure:954: checking whether ${CXX-g++} accepts -g" >&5
    962954if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    963955  echo $ac_n "(cached) $ac_c" 1>&6
     
    995987set dummy $ac_prog; ac_word=$2
    996988echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    997 echo "configure:998: checking for $ac_word" >&5
     989echo "configure:990: checking for $ac_word" >&5
    998990if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
    999991  echo $ac_n "(cached) $ac_c" 1>&6
     
    10291021set dummy $ac_prog; ac_word=$2
    10301022echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1031 echo "configure:1032: checking for $ac_word" >&5
     1023echo "configure:1024: checking for $ac_word" >&5
    10321024if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
    10331025  echo $ac_n "(cached) $ac_c" 1>&6
     
    10781070ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
    10791071
     1072
     1073# Do some error checking and defaulting for the host and target type.
     1074# The inputs are:
     1075#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
     1076#
     1077# The rules are:
     1078# 1. You are not allowed to specify --host, --target, and nonopt at the
     1079#    same time.
     1080# 2. Host defaults to nonopt.
     1081# 3. If nonopt is not specified, then host defaults to the current host,
     1082#    as determined by config.guess.
     1083# 4. Target and build default to nonopt.
     1084# 5. If nonopt is not specified, then target and build default to host.
     1085
     1086# The aliases save the names the user supplied, while $host etc.
     1087# will get canonicalized.
     1088case $host---$target---$nonopt in
     1089NONE---*---* | *---NONE---* | *---*---NONE) ;;
     1090*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
     1091esac
     1092
     1093
     1094# Make sure we can run config.sub.
     1095if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
     1096else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
     1097fi
     1098
     1099echo $ac_n "checking host system type""... $ac_c" 1>&6
     1100echo "configure:1101: checking host system type" >&5
     1101
     1102host_alias=$host
     1103case "$host_alias" in
     1104NONE)
     1105  case $nonopt in
     1106  NONE)
     1107    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
     1108    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
     1109    fi ;;
     1110  *) host_alias=$nonopt ;;
     1111  esac ;;
     1112esac
     1113
     1114host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
     1115host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     1116host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     1117host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     1118echo "$ac_t""$host" 1>&6
     1119
     1120echo $ac_n "checking target system type""... $ac_c" 1>&6
     1121echo "configure:1122: checking target system type" >&5
     1122
     1123target_alias=$target
     1124case "$target_alias" in
     1125NONE)
     1126  case $nonopt in
     1127  NONE) target_alias=$host_alias ;;
     1128  *) target_alias=$nonopt ;;
     1129  esac ;;
     1130esac
     1131
     1132target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
     1133target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     1134target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     1135target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     1136echo "$ac_t""$target" 1>&6
     1137
     1138echo $ac_n "checking build system type""... $ac_c" 1>&6
     1139echo "configure:1140: checking build system type" >&5
     1140
     1141build_alias=$build
     1142case "$build_alias" in
     1143NONE)
     1144  case $nonopt in
     1145  NONE) build_alias=$host_alias ;;
     1146  *) build_alias=$nonopt ;;
     1147  esac ;;
     1148esac
     1149
     1150build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
     1151build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     1152build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     1153build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     1154echo "$ac_t""$build" 1>&6
     1155
     1156test "$host_alias" != "$target_alias" &&
     1157  test "$program_prefix$program_suffix$program_transform_name" = \
     1158    NONENONEs,x,x, &&
     1159  program_prefix=${target_alias}-
     1160
    10801161# Find a good install program.  We prefer a C program (faster),
    10811162# so one script is as good as another.  But avoid the broken or
     
    10901171# ./install, which can be erroneously created by make from ./install.sh.
    10911172echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    1092 echo "configure:1093: checking for a BSD compatible install" >&5
     1173echo "configure:1174: checking for a BSD compatible install" >&5
    10931174if test -z "$INSTALL"; then
    10941175if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    11431224
    11441225echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
    1145 echo "configure:1146: checking whether ln -s works" >&5
     1226echo "configure:1227: checking whether ln -s works" >&5
    11461227if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
    11471228  echo $ac_n "(cached) $ac_c" 1>&6
     
    11641245
    11651246echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    1166 echo "configure:1167: checking whether ${MAKE-make} sets \${MAKE}" >&5
     1247echo "configure:1248: checking whether ${MAKE-make} sets \${MAKE}" >&5
    11671248set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    11681249if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    11931274set dummy ranlib; ac_word=$2
    11941275echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1195 echo "configure:1196: checking for $ac_word" >&5
     1276echo "configure:1277: checking for $ac_word" >&5
    11961277if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
    11971278  echo $ac_n "(cached) $ac_c" 1>&6
     
    12551336
    12561337echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    1257 echo "configure:1258: checking how to run the C preprocessor" >&5
     1338echo "configure:1339: checking how to run the C preprocessor" >&5
    12581339# On Suns, sometimes $CPP names a directory.
    12591340if test -n "$CPP" && test -d "$CPP"; then
     
    12701351  # not just through cpp.
    12711352  cat > conftest.$ac_ext <<EOF
    1272 #line 1273 "configure"
     1353#line 1354 "configure"
    12731354#include "confdefs.h"
    12741355#include <assert.h>
     
    12761357EOF
    12771358ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1278 { (eval echo configure:1279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1359{ (eval echo configure:1360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    12791360ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    12801361if test -z "$ac_err"; then
     
    12871368  CPP="${CC-cc} -E -traditional-cpp"
    12881369  cat > conftest.$ac_ext <<EOF
    1289 #line 1290 "configure"
     1370#line 1371 "configure"
    12901371#include "confdefs.h"
    12911372#include <assert.h>
     
    12931374EOF
    12941375ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1295 { (eval echo configure:1296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1376{ (eval echo configure:1377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    12961377ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    12971378if test -z "$ac_err"; then
     
    13041385  CPP="${CC-cc} -nologo -E"
    13051386  cat > conftest.$ac_ext <<EOF
    1306 #line 1307 "configure"
     1387#line 1388 "configure"
    13071388#include "confdefs.h"
    13081389#include <assert.h>
     
    13101391EOF
    13111392ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1312 { (eval echo configure:1313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1393{ (eval echo configure:1394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    13131394ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    13141395if test -z "$ac_err"; then
     
    13351416
    13361417echo $ac_n "checking for AIX""... $ac_c" 1>&6
    1337 echo "configure:1338: checking for AIX" >&5
     1418echo "configure:1419: checking for AIX" >&5
    13381419cat > conftest.$ac_ext <<EOF
    1339 #line 1340 "configure"
     1420#line 1421 "configure"
    13401421#include "confdefs.h"
    13411422#ifdef _AIX
     
    13591440
    13601441echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
    1361 echo "configure:1362: checking for POSIXized ISC" >&5
     1442echo "configure:1443: checking for POSIXized ISC" >&5
    13621443if test -d /etc/conf/kconfig.d &&
    13631444  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
     
    13811462ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
    13821463echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
    1383 echo "configure:1384: checking for minix/config.h" >&5
     1464echo "configure:1465: checking for minix/config.h" >&5
    13841465if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    13851466  echo $ac_n "(cached) $ac_c" 1>&6
    13861467else
    13871468  cat > conftest.$ac_ext <<EOF
    1388 #line 1389 "configure"
     1469#line 1470 "configure"
    13891470#include "confdefs.h"
    13901471#include <minix/config.h>
    13911472EOF
    13921473ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1393 { (eval echo configure:1394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1474{ (eval echo configure:1475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    13941475ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    13951476if test -z "$ac_err"; then
     
    14291510
    14301511echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
    1431 echo "configure:1432: checking for ${CC-cc} option to accept ANSI C" >&5
     1512echo "configure:1513: checking for ${CC-cc} option to accept ANSI C" >&5
    14321513if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
    14331514  echo $ac_n "(cached) $ac_c" 1>&6
     
    14451526  CFLAGS="$ac_save_CFLAGS $ac_arg"
    14461527  cat > conftest.$ac_ext <<EOF
    1447 #line 1448 "configure"
     1528#line 1529 "configure"
    14481529#include "confdefs.h"
    14491530#if !defined(__STDC__) || __STDC__ != 1
     
    14571538; return 0; }
    14581539EOF
    1459 if { (eval echo configure:1460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1540if { (eval echo configure:1541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    14601541  rm -rf conftest*
    14611542  ac_cv_prog_cc_stdc="$ac_arg"; break
     
    14781559
    14791560echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
    1480 echo "configure:1481: checking for function prototypes" >&5
     1561echo "configure:1562: checking for function prototypes" >&5
    14811562if test "$ac_cv_prog_cc_stdc" != no; then
    14821563  echo "$ac_t""yes" 1>&6
     
    14921573
    14931574echo $ac_n "checking for working const""... $ac_c" 1>&6
    1494 echo "configure:1495: checking for working const" >&5
     1575echo "configure:1576: checking for working const" >&5
    14951576if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    14961577  echo $ac_n "(cached) $ac_c" 1>&6
    14971578else
    14981579  cat > conftest.$ac_ext <<EOF
    1499 #line 1500 "configure"
     1580#line 1581 "configure"
    15001581#include "confdefs.h"
    15011582
     
    15461627; return 0; }
    15471628EOF
    1548 if { (eval echo configure:1549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1629if { (eval echo configure:1630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    15491630  rm -rf conftest*
    15501631  ac_cv_c_const=yes
     
    15671648
    15681649echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    1569 echo "configure:1570: checking for ANSI C header files" >&5
     1650echo "configure:1651: checking for ANSI C header files" >&5
    15701651if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    15711652  echo $ac_n "(cached) $ac_c" 1>&6
    15721653else
    15731654  cat > conftest.$ac_ext <<EOF
    1574 #line 1575 "configure"
     1655#line 1656 "configure"
    15751656#include "confdefs.h"
    15761657#include <stdlib.h>
     
    15801661EOF
    15811662ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1582 { (eval echo configure:1583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1663{ (eval echo configure:1664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    15831664ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    15841665if test -z "$ac_err"; then
     
    15971678  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    15981679cat > conftest.$ac_ext <<EOF
    1599 #line 1600 "configure"
     1680#line 1681 "configure"
    16001681#include "confdefs.h"
    16011682#include <string.h>
     
    16151696  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    16161697cat > conftest.$ac_ext <<EOF
    1617 #line 1618 "configure"
     1698#line 1699 "configure"
    16181699#include "confdefs.h"
    16191700#include <stdlib.h>
     
    16361717else
    16371718  cat > conftest.$ac_ext <<EOF
    1638 #line 1639 "configure"
     1719#line 1720 "configure"
    16391720#include "confdefs.h"
    16401721#include <ctype.h>
     
    16471728
    16481729EOF
    1649 if { (eval echo configure:1650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1730if { (eval echo configure:1731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    16501731then
    16511732  :
     
    16711752
    16721753echo $ac_n "checking for off_t""... $ac_c" 1>&6
    1673 echo "configure:1674: checking for off_t" >&5
     1754echo "configure:1755: checking for off_t" >&5
    16741755if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
    16751756  echo $ac_n "(cached) $ac_c" 1>&6
    16761757else
    16771758  cat > conftest.$ac_ext <<EOF
    1678 #line 1679 "configure"
     1759#line 1760 "configure"
    16791760#include "confdefs.h"
    16801761#include <sys/types.h>
     
    17041785
    17051786echo $ac_n "checking for size_t""... $ac_c" 1>&6
    1706 echo "configure:1707: checking for size_t" >&5
     1787echo "configure:1788: checking for size_t" >&5
    17071788if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
    17081789  echo $ac_n "(cached) $ac_c" 1>&6
    17091790else
    17101791  cat > conftest.$ac_ext <<EOF
    1711 #line 1712 "configure"
     1792#line 1793 "configure"
    17121793#include "confdefs.h"
    17131794#include <sys/types.h>
     
    17371818
    17381819echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
    1739 echo "configure:1740: checking whether time.h and sys/time.h may both be included" >&5
     1820echo "configure:1821: checking whether time.h and sys/time.h may both be included" >&5
    17401821if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
    17411822  echo $ac_n "(cached) $ac_c" 1>&6
    17421823else
    17431824  cat > conftest.$ac_ext <<EOF
    1744 #line 1745 "configure"
     1825#line 1826 "configure"
    17451826#include "confdefs.h"
    17461827#include <sys/types.h>
     
    17511832; return 0; }
    17521833EOF
    1753 if { (eval echo configure:1754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1834if { (eval echo configure:1835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    17541835  rm -rf conftest*
    17551836  ac_cv_header_time=yes
     
    17721853
    17731854echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
    1774 echo "configure:1775: checking whether struct tm is in sys/time.h or time.h" >&5
     1855echo "configure:1856: checking whether struct tm is in sys/time.h or time.h" >&5
    17751856if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
    17761857  echo $ac_n "(cached) $ac_c" 1>&6
    17771858else
    17781859  cat > conftest.$ac_ext <<EOF
    1779 #line 1780 "configure"
     1860#line 1861 "configure"
    17801861#include "confdefs.h"
    17811862#include <sys/types.h>
     
    17851866; return 0; }
    17861867EOF
    1787 if { (eval echo configure:1788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1868if { (eval echo configure:1869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    17881869  rm -rf conftest*
    17891870  ac_cv_struct_tm=time.h
     
    18081889if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
    18091890cat > conftest.$ac_ext <<EOF
    1810 #line 1811 "configure"
     1891#line 1892 "configure"
    18111892#include "confdefs.h"
    18121893#include <stdio.h>
     
    18161897; return 0; }
    18171898EOF
    1818 if { (eval echo configure:1819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1899if { (eval echo configure:1900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    18191900  :
    18201901else
     
    18291910
    18301911echo $ac_n "checking for main in -lg""... $ac_c" 1>&6
    1831 echo "configure:1832: checking for main in -lg" >&5
     1912echo "configure:1913: checking for main in -lg" >&5
    18321913ac_lib_var=`echo g'_'main | sed 'y%./+-%__p_%'`
    18331914if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    18371918LIBS="-lg  $LIBS"
    18381919cat > conftest.$ac_ext <<EOF
    1839 #line 1840 "configure"
     1920#line 1921 "configure"
    18401921#include "confdefs.h"
    18411922
     
    18441925; return 0; }
    18451926EOF
    1846 if { (eval echo configure:1847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1927if { (eval echo configure:1928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    18471928  rm -rf conftest*
    18481929  eval "ac_cv_lib_$ac_lib_var=yes"
     
    18721953
    18731954echo $ac_n "checking for main in -lgdbm""... $ac_c" 1>&6
    1874 echo "configure:1875: checking for main in -lgdbm" >&5
     1955echo "configure:1956: checking for main in -lgdbm" >&5
    18751956ac_lib_var=`echo gdbm'_'main | sed 'y%./+-%__p_%'`
    18761957if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    18801961LIBS="-lgdbm  $LIBS"
    18811962cat > conftest.$ac_ext <<EOF
    1882 #line 1883 "configure"
     1963#line 1964 "configure"
    18831964#include "confdefs.h"
    18841965
     
    18871968; return 0; }
    18881969EOF
    1889 if { (eval echo configure:1890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1970if { (eval echo configure:1971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    18901971  rm -rf conftest*
    18911972  eval "ac_cv_lib_$ac_lib_var=yes"
     
    19151996
    19161997echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
    1917 echo "configure:1918: checking for main in -lm" >&5
     1998echo "configure:1999: checking for main in -lm" >&5
    19181999ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
    19192000if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    19232004LIBS="-lm  $LIBS"
    19242005cat > conftest.$ac_ext <<EOF
    1925 #line 1926 "configure"
     2006#line 2007 "configure"
    19262007#include "confdefs.h"
    19272008
     
    19302011; return 0; }
    19312012EOF
    1932 if { (eval echo configure:1933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2013if { (eval echo configure:2014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    19332014  rm -rf conftest*
    19342015  eval "ac_cv_lib_$ac_lib_var=yes"
     
    19582039
    19592040echo $ac_n "checking for main in -lstdc++""... $ac_c" 1>&6
    1960 echo "configure:1961: checking for main in -lstdc++" >&5
     2041echo "configure:2042: checking for main in -lstdc++" >&5
    19612042ac_lib_var=`echo stdc++'_'main | sed 'y%./+-%__p_%'`
    19622043if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    19662047LIBS="-lstdc++  $LIBS"
    19672048cat > conftest.$ac_ext <<EOF
    1968 #line 1969 "configure"
     2049#line 2050 "configure"
    19692050#include "confdefs.h"
    19702051
     
    19732054; return 0; }
    19742055EOF
    1975 if { (eval echo configure:1976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2056if { (eval echo configure:2057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    19762057  rm -rf conftest*
    19772058  eval "ac_cv_lib_$ac_lib_var=yes"
     
    20012082
    20022083echo $ac_n "checking for main in -lcrypt""... $ac_c" 1>&6
    2003 echo "configure:2004: checking for main in -lcrypt" >&5
     2084echo "configure:2085: checking for main in -lcrypt" >&5
    20042085ac_lib_var=`echo crypt'_'main | sed 'y%./+-%__p_%'`
    20052086if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    20092090LIBS="-lcrypt  $LIBS"
    20102091cat > conftest.$ac_ext <<EOF
    2011 #line 2012 "configure"
     2092#line 2093 "configure"
    20122093#include "confdefs.h"
    20132094
     
    20162097; return 0; }
    20172098EOF
    2018 if { (eval echo configure:2019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2099if { (eval echo configure:2100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    20192100  rm -rf conftest*
    20202101  eval "ac_cv_lib_$ac_lib_var=yes"
     
    20502131ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    20512132echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
    2052 echo "configure:2053: checking for $ac_hdr that defines DIR" >&5
     2133echo "configure:2134: checking for $ac_hdr that defines DIR" >&5
    20532134if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
    20542135  echo $ac_n "(cached) $ac_c" 1>&6
    20552136else
    20562137  cat > conftest.$ac_ext <<EOF
    2057 #line 2058 "configure"
     2138#line 2139 "configure"
    20582139#include "confdefs.h"
    20592140#include <sys/types.h>
     
    20632144; return 0; }
    20642145EOF
    2065 if { (eval echo configure:2066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2146if { (eval echo configure:2147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    20662147  rm -rf conftest*
    20672148  eval "ac_cv_header_dirent_$ac_safe=yes"
     
    20882169if test $ac_header_dirent = dirent.h; then
    20892170echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
    2090 echo "configure:2091: checking for opendir in -ldir" >&5
     2171echo "configure:2172: checking for opendir in -ldir" >&5
    20912172ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
    20922173if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    20962177LIBS="-ldir  $LIBS"
    20972178cat > conftest.$ac_ext <<EOF
    2098 #line 2099 "configure"
     2179#line 2180 "configure"
    20992180#include "confdefs.h"
    21002181/* Override any gcc2 internal prototype to avoid an error.  */
     
    21072188; return 0; }
    21082189EOF
    2109 if { (eval echo configure:2110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2190if { (eval echo configure:2191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    21102191  rm -rf conftest*
    21112192  eval "ac_cv_lib_$ac_lib_var=yes"
     
    21292210else
    21302211echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
    2131 echo "configure:2132: checking for opendir in -lx" >&5
     2212echo "configure:2213: checking for opendir in -lx" >&5
    21322213ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
    21332214if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    21372218LIBS="-lx  $LIBS"
    21382219cat > conftest.$ac_ext <<EOF
    2139 #line 2140 "configure"
     2220#line 2221 "configure"
    21402221#include "confdefs.h"
    21412222/* Override any gcc2 internal prototype to avoid an error.  */
     
    21482229; return 0; }
    21492230EOF
    2150 if { (eval echo configure:2151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2231if { (eval echo configure:2232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    21512232  rm -rf conftest*
    21522233  eval "ac_cv_lib_$ac_lib_var=yes"
     
    21712252
    21722253echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    2173 echo "configure:2174: checking for ANSI C header files" >&5
     2254echo "configure:2255: checking for ANSI C header files" >&5
    21742255if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    21752256  echo $ac_n "(cached) $ac_c" 1>&6
    21762257else
    21772258  cat > conftest.$ac_ext <<EOF
    2178 #line 2179 "configure"
     2259#line 2260 "configure"
    21792260#include "confdefs.h"
    21802261#include <stdlib.h>
     
    21842265EOF
    21852266ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2186 { (eval echo configure:2187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2267{ (eval echo configure:2268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    21872268ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    21882269if test -z "$ac_err"; then
     
    22012282  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    22022283cat > conftest.$ac_ext <<EOF
    2203 #line 2204 "configure"
     2284#line 2285 "configure"
    22042285#include "confdefs.h"
    22052286#include <string.h>
     
    22192300  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    22202301cat > conftest.$ac_ext <<EOF
    2221 #line 2222 "configure"
     2302#line 2303 "configure"
    22222303#include "confdefs.h"
    22232304#include <stdlib.h>
     
    22402321else
    22412322  cat > conftest.$ac_ext <<EOF
    2242 #line 2243 "configure"
     2323#line 2324 "configure"
    22432324#include "confdefs.h"
    22442325#include <ctype.h>
     
    22512332
    22522333EOF
    2253 if { (eval echo configure:2254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2334if { (eval echo configure:2335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    22542335then
    22552336  :
     
    22782359ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    22792360echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2280 echo "configure:2281: checking for $ac_hdr" >&5
     2361echo "configure:2362: checking for $ac_hdr" >&5
    22812362if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    22822363  echo $ac_n "(cached) $ac_c" 1>&6
    22832364else
    22842365  cat > conftest.$ac_ext <<EOF
    2285 #line 2286 "configure"
     2366#line 2367 "configure"
    22862367#include "confdefs.h"
    22872368#include <$ac_hdr>
    22882369EOF
    22892370ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2290 { (eval echo configure:2291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2371{ (eval echo configure:2372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    22912372ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    22922373if test -z "$ac_err"; then
     
    23152396
    23162397cat > conftest.$ac_ext <<EOF
    2317 #line 2318 "configure"
     2398#line 2399 "configure"
    23182399#include "confdefs.h"
    23192400#include <stdio.h>
     
    23302411
    23312412cat > conftest.$ac_ext <<EOF
    2332 #line 2333 "configure"
     2413#line 2414 "configure"
    23332414#include "confdefs.h"
    23342415#include <stdio.h>
     
    23452426
    23462427cat > conftest.$ac_ext <<EOF
    2347 #line 2348 "configure"
     2428#line 2429 "configure"
    23482429#include "confdefs.h"
    23492430#include <sys/procfs.h>
     
    23632444# for constant arguments.  Useless!
    23642445echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
    2365 echo "configure:2366: checking for working alloca.h" >&5
     2446echo "configure:2447: checking for working alloca.h" >&5
    23662447if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
    23672448  echo $ac_n "(cached) $ac_c" 1>&6
    23682449else
    23692450  cat > conftest.$ac_ext <<EOF
    2370 #line 2371 "configure"
     2451#line 2452 "configure"
    23712452#include "confdefs.h"
    23722453#include <alloca.h>
     
    23752456; return 0; }
    23762457EOF
    2377 if { (eval echo configure:2378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2458if { (eval echo configure:2459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    23782459  rm -rf conftest*
    23792460  ac_cv_header_alloca_h=yes
     
    23962477
    23972478echo $ac_n "checking for alloca""... $ac_c" 1>&6
    2398 echo "configure:2399: checking for alloca" >&5
     2479echo "configure:2480: checking for alloca" >&5
    23992480if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
    24002481  echo $ac_n "(cached) $ac_c" 1>&6
    24012482else
    24022483  cat > conftest.$ac_ext <<EOF
    2403 #line 2404 "configure"
     2484#line 2485 "configure"
    24042485#include "confdefs.h"
    24052486
     
    24292510; return 0; }
    24302511EOF
    2431 if { (eval echo configure:2432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2512if { (eval echo configure:2513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    24322513  rm -rf conftest*
    24332514  ac_cv_func_alloca_works=yes
     
    24612542
    24622543echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
    2463 echo "configure:2464: checking whether alloca needs Cray hooks" >&5
     2544echo "configure:2545: checking whether alloca needs Cray hooks" >&5
    24642545if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
    24652546  echo $ac_n "(cached) $ac_c" 1>&6
    24662547else
    24672548  cat > conftest.$ac_ext <<EOF
    2468 #line 2469 "configure"
     2549#line 2550 "configure"
    24692550#include "confdefs.h"
    24702551#if defined(CRAY) && ! defined(CRAY2)
     
    24912572for ac_func in _getb67 GETB67 getb67; do
    24922573  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2493 echo "configure:2494: checking for $ac_func" >&5
     2574echo "configure:2575: checking for $ac_func" >&5
    24942575if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    24952576  echo $ac_n "(cached) $ac_c" 1>&6
    24962577else
    24972578  cat > conftest.$ac_ext <<EOF
    2498 #line 2499 "configure"
     2579#line 2580 "configure"
    24992580#include "confdefs.h"
    25002581/* System header to define __stub macros and hopefully few prototypes,
     
    25192600; return 0; }
    25202601EOF
    2521 if { (eval echo configure:2522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2602if { (eval echo configure:2603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    25222603  rm -rf conftest*
    25232604  eval "ac_cv_func_$ac_func=yes"
     
    25462627
    25472628echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
    2548 echo "configure:2549: checking stack direction for C alloca" >&5
     2629echo "configure:2630: checking stack direction for C alloca" >&5
    25492630if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
    25502631  echo $ac_n "(cached) $ac_c" 1>&6
     
    25542635else
    25552636  cat > conftest.$ac_ext <<EOF
    2556 #line 2557 "configure"
     2637#line 2638 "configure"
    25572638#include "confdefs.h"
    25582639find_stack_direction ()
     
    25732654}
    25742655EOF
    2575 if { (eval echo configure:2576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2656if { (eval echo configure:2657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    25762657then
    25772658  ac_cv_c_stack_direction=1
     
    25962677if test $ac_cv_prog_gcc = yes; then
    25972678    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
    2598 echo "configure:2599: checking whether ${CC-cc} needs -traditional" >&5
     2679echo "configure:2680: checking whether ${CC-cc} needs -traditional" >&5
    25992680if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
    26002681  echo $ac_n "(cached) $ac_c" 1>&6
     
    26022683    ac_pattern="Autoconf.*'x'"
    26032684  cat > conftest.$ac_ext <<EOF
    2604 #line 2605 "configure"
     2685#line 2686 "configure"
    26052686#include "confdefs.h"
    26062687#include <sgtty.h>
     
    26202701  if test $ac_cv_prog_gcc_traditional = no; then
    26212702    cat > conftest.$ac_ext <<EOF
    2622 #line 2623 "configure"
     2703#line 2704 "configure"
    26232704#include "confdefs.h"
    26242705#include <termio.h>
     
    26422723
    26432724echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
    2644 echo "configure:2645: checking return type of signal handlers" >&5
     2725echo "configure:2726: checking return type of signal handlers" >&5
    26452726if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
    26462727  echo $ac_n "(cached) $ac_c" 1>&6
    26472728else
    26482729  cat > conftest.$ac_ext <<EOF
    2649 #line 2650 "configure"
     2730#line 2731 "configure"
    26502731#include "confdefs.h"
    26512732#include <sys/types.h>
     
    26642745; return 0; }
    26652746EOF
    2666 if { (eval echo configure:2667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2747if { (eval echo configure:2748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    26672748  rm -rf conftest*
    26682749  ac_cv_type_signal=void
     
    26832764
    26842765echo $ac_n "checking for vprintf""... $ac_c" 1>&6
    2685 echo "configure:2686: checking for vprintf" >&5
     2766echo "configure:2767: checking for vprintf" >&5
    26862767if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
    26872768  echo $ac_n "(cached) $ac_c" 1>&6
    26882769else
    26892770  cat > conftest.$ac_ext <<EOF
    2690 #line 2691 "configure"
     2771#line 2772 "configure"
    26912772#include "confdefs.h"
    26922773/* System header to define __stub macros and hopefully few prototypes,
     
    27112792; return 0; }
    27122793EOF
    2713 if { (eval echo configure:2714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2794if { (eval echo configure:2795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    27142795  rm -rf conftest*
    27152796  eval "ac_cv_func_vprintf=yes"
     
    27352816if test "$ac_cv_func_vprintf" != yes; then
    27362817echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
    2737 echo "configure:2738: checking for _doprnt" >&5
     2818echo "configure:2819: checking for _doprnt" >&5
    27382819if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
    27392820  echo $ac_n "(cached) $ac_c" 1>&6
    27402821else
    27412822  cat > conftest.$ac_ext <<EOF
    2742 #line 2743 "configure"
     2823#line 2824 "configure"
    27432824#include "confdefs.h"
    27442825/* System header to define __stub macros and hopefully few prototypes,
     
    27632844; return 0; }
    27642845EOF
    2765 if { (eval echo configure:2766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2846if { (eval echo configure:2847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    27662847  rm -rf conftest*
    27672848  eval "ac_cv_func__doprnt=yes"
     
    27902871do
    27912872echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2792 echo "configure:2793: checking for $ac_func" >&5
     2873echo "configure:2874: checking for $ac_func" >&5
    27932874if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    27942875  echo $ac_n "(cached) $ac_c" 1>&6
    27952876else
    27962877  cat > conftest.$ac_ext <<EOF
    2797 #line 2798 "configure"
     2878#line 2879 "configure"
    27982879#include "confdefs.h"
    27992880/* System header to define __stub macros and hopefully few prototypes,
     
    28182899; return 0; }
    28192900EOF
    2820 if { (eval echo configure:2821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2901if { (eval echo configure:2902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    28212902  rm -rf conftest*
    28222903  eval "ac_cv_func_$ac_func=yes"
     
    28452926do
    28462927echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2847 echo "configure:2848: checking for $ac_func" >&5
     2928echo "configure:2929: checking for $ac_func" >&5
    28482929if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    28492930  echo $ac_n "(cached) $ac_c" 1>&6
    28502931else
    28512932  cat > conftest.$ac_ext <<EOF
    2852 #line 2853 "configure"
     2933#line 2934 "configure"
    28532934#include "confdefs.h"
    28542935/* System header to define __stub macros and hopefully few prototypes,
     
    28732954; return 0; }
    28742955EOF
    2875 if { (eval echo configure:2876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2956if { (eval echo configure:2957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    28762957  rm -rf conftest*
    28772958  eval "ac_cv_func_$ac_func=yes"
     
    29042985# ---------------------------------------------------------------------------
    29052986echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&6
    2906 echo "configure:2907: checking for HP-UX needing gmalloc" >&5
     2987echo "configure:2988: checking for HP-UX needing gmalloc" >&5
    29072988if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
    29082989  echo "$ac_t""yes" 1>&6
     
    29172998do
    29182999echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2919 echo "configure:2920: checking for $ac_func" >&5
     3000echo "configure:3001: checking for $ac_func" >&5
    29203001if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    29213002  echo $ac_n "(cached) $ac_c" 1>&6
    29223003else
    29233004  cat > conftest.$ac_ext <<EOF
    2924 #line 2925 "configure"
     3005#line 3006 "configure"
    29253006#include "confdefs.h"
    29263007/* System header to define __stub macros and hopefully few prototypes,
     
    29453026; return 0; }
    29463027EOF
    2947 if { (eval echo configure:2948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3028if { (eval echo configure:3029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    29483029  rm -rf conftest*
    29493030  eval "ac_cv_func_$ac_func=yes"
     
    29723053
    29733054echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6
    2974 echo "configure:2975: checking if malloc debugging is wanted" >&5
     3055echo "configure:3056: checking if malloc debugging is wanted" >&5
    29753056# Check whether --with-dmalloc or --without-dmalloc was given.
    29763057if test "${with_dmalloc+set}" = set; then
     
    29933074
    29943075echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6
    2995 echo "configure:2996: checking which of rx or regex is wanted" >&5
     3076echo "configure:3077: checking which of rx or regex is wanted" >&5
    29963077# Check whether --with-regex or --without-regex was given.
    29973078if test "${with_regex+set}" = set; then
     
    30113092  echo "$ac_t""rx" 1>&6
    30123093  echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6
    3013 echo "configure:3014: checking for re_rx_search" >&5
     3094echo "configure:3095: checking for re_rx_search" >&5
    30143095if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then
    30153096  echo $ac_n "(cached) $ac_c" 1>&6
    30163097else
    30173098  cat > conftest.$ac_ext <<EOF
    3018 #line 3019 "configure"
     3099#line 3100 "configure"
    30193100#include "confdefs.h"
    30203101/* System header to define __stub macros and hopefully few prototypes,
     
    30393120; return 0; }
    30403121EOF
    3041 if { (eval echo configure:3042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3122if { (eval echo configure:3123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    30423123  rm -rf conftest*
    30433124  eval "ac_cv_func_re_rx_search=yes"
     
    30783159
    30793160
    3080 echo $ac_n "checking "that the GDBM library is available"""... $ac_c" 1>&6
    3081 echo "configure:3082: checking "that the GDBM library is available"" >&5
    3082 cat > conftest.$ac_ext <<EOF
    3083 #line 3084 "configure"
     3161
     3162echo $ac_n "checking that the GDBM library is available""... $ac_c" 1>&6
     3163echo "configure:3164: checking that the GDBM library is available" >&5
     3164if test ! -z $gdbmdir ; then
     3165  # look in given directory for header file
     3166  if test -e $gdbmdir/include/gdbm.h ; then
     3167    GDBM_INCLUDE="-I$gdbmdir/include" ;
     3168  elif test -e $gdbmdir/gdbm.h ; then
     3169    GDBM_INCLUDE="-I$gdbmdir" ;
     3170  fi
     3171
     3172  # look in given directory for library
     3173  if test -e $gdbmdir/libgdbm.a ; then
     3174    GDBM_LIBPATH="-L$gdbmdir" ;
     3175  elif test -e $gdbmdir/lib/libgdbm.a ; then
     3176    GDBM_LIBPATH="-L$gdbmdir/lib" ;
     3177  elif test -e $gdbmdir/.libs/libgdbm.a ; then
     3178    GDBM_LIBPATH="-L$gdbmdir/.libs" ;
     3179  fi
     3180
     3181  if test ! -z $GDBM_LIBPATH -a ! -z $GDBM_INCLUDE ; then
     3182    echo "$ac_t""$gdbmdir" 1>&6 ;
     3183    cat >> confdefs.h <<\EOF
     3184#define HAVE_LIBGDBM  1
     3185EOF
     3186
     3187  else
     3188    echo "$ac_t""can't find both gdbm.h and libgdbm.a in $gdbmdir" 1>&6;
     3189    echo $ac_n "checking looking for GDBM library in default locations""... $ac_c" 1>&6
     3190echo "configure:3191: checking looking for GDBM library in default locations" >&5
     3191  fi
     3192fi
     3193
     3194if test -z $GDBM_INCLUDE ; then
     3195  # try in system directory
     3196  cat > conftest.$ac_ext <<EOF
     3197#line 3198 "configure"
    30843198#include "confdefs.h"
    30853199#include <gdbm.h>
     
    30893203; return 0; }
    30903204EOF
    3091 if { (eval echo configure:3092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3205if { (eval echo configure:3206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    30923206  rm -rf conftest*
    30933207  success=yes
     
    30973211  rm -rf conftest*
    30983212  success=no
    3099 
    3100 fi
    3101 rm -f conftest*
    3102 echo "$ac_t""$success" 1>&6
    3103 if test $success = "no"; then
    3104 { echo "configure: error: "GDBM Library not available - cannot install"" 1>&2; exit 1; }
    3105 fi
    3106 
    3107 echo $ac_n "checking "that Perl 5 is available"""... $ac_c" 1>&6
    3108 echo "configure:3109: checking "that Perl 5 is available"" >&5
     3213 
     3214fi
     3215rm -f conftest*
     3216  echo "$ac_t""$success" 1>&6
     3217  if test $success = "no"; then
     3218  { echo "configure: error: GDBM Library not available - cannot install" 1>&2; exit 1; }
     3219  fi
     3220  GDBM_LIBPATH=
     3221  GDBM_INCLUDE=
     3222fi
     3223
     3224
     3225
     3226
     3227echo $ac_n "checking that Perl 5 is available""... $ac_c" 1>&6
     3228echo "configure:3229: checking that Perl 5 is available" >&5
    31093229success="no"
    31103230pl_path="$PATH"
     
    31363256success=no
    31373257echo $ac_n "checking "whether STL library has known faults"""... $ac_c" 1>&6
    3138 echo "configure:3139: checking "whether STL library has known faults"" >&5
     3258echo "configure:3259: checking "whether STL library has known faults"" >&5
    31393259
    31403260cat > conftest.$ac_ext <<EOF
    3141 #line 3142 "configure"
     3261#line 3262 "configure"
    31423262#include "confdefs.h"
    31433263#include <vector>
     
    31473267; return 0; }
    31483268EOF
    3149 if { (eval echo configure:3150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3269if { (eval echo configure:3270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    31503270  rm -rf conftest*
    31513271  success=yes
     
    31583278if test $success = "no"; then
    31593279cat > conftest.$ac_ext <<EOF
    3160 #line 3161 "configure"
     3280#line 3281 "configure"
    31613281#include "confdefs.h"
    31623282#include <vector.h>
     
    31663286; return 0; }
    31673287EOF
    3168 if { (eval echo configure:3169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3288if { (eval echo configure:3289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    31693289  rm -rf conftest*
    31703290  success="yes"
     
    31783298if test $success = "no"; then
    31793299cat > conftest.$ac_ext <<EOF
    3180 #line 3181 "configure"
     3300#line 3301 "configure"
    31813301#include "confdefs.h"
    31823302#include <ospace\\std\\vector>
     
    31863306; return 0; }
    31873307EOF
    3188 if { (eval echo configure:3189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3308if { (eval echo configure:3309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    31893309  rm -rf conftest*
    31903310  success="yes"
     
    32133333
    32143334# ---------------------------------------------------------------------------
    3215 
     3335ac_configure_args="$ac_configure_args --host=$host --target=$target"
    32163336subdirs="packages"
    32173337
     
    33653485s%@AWK@%$AWK%g
    33663486s%@YACC@%$YACC%g
     3487s%@host@%$host%g
     3488s%@host_alias@%$host_alias%g
     3489s%@host_cpu@%$host_cpu%g
     3490s%@host_vendor@%$host_vendor%g
     3491s%@host_os@%$host_os%g
     3492s%@target@%$target%g
     3493s%@target_alias@%$target_alias%g
     3494s%@target_cpu@%$target_cpu%g
     3495s%@target_vendor@%$target_vendor%g
     3496s%@target_os@%$target_os%g
     3497s%@build@%$build%g
     3498s%@build_alias@%$build_alias%g
     3499s%@build_cpu@%$build_cpu%g
     3500s%@build_vendor@%$build_vendor%g
     3501s%@build_os@%$build_os%g
    33673502s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
    33683503s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
     
    33773512s%@ALLOCA@%$ALLOCA%g
    33783513s%@LIBOBJS@%$LIBOBJS%g
     3514s%@GDBM_LIBPATH@%$GDBM_LIBPATH%g
     3515s%@GDBM_INCLUDE@%$GDBM_INCLUDE%g
    33793516s%@gsdlos@%$gsdlos%g
    33803517s%@subdirs@%$subdirs%g
  • trunk/gsdl/configure.in

    r2214 r2279  
    22AC_INIT(lib/text_t.h)
    33AC_CONFIG_HEADER(config.h)
    4 AC_ARG_PROGRAM
    54
    65PACKAGE=gsdl
     
    3938AC_SUBST(USE_Z3950)
    4039
     40dnl
     41dnl look for libgdbm if not in standard location
     42dnl
     43AC_ARG_WITH(gdbm, [  --with-gdbm=dir         Use local gdbm library and headers], gdbmdir=$withval)
     44
     45
     46
    4147dnl Checks for programs.
    4248LDFLAGS=
     
    5157AC_PROG_AWK
    5258AC_PROG_YACC
     59dnl get $target_cpu, $target_vendor, and $target_os
     60dnl (as well as host_*)
     61AC_CANONICAL_SYSTEM
     62dnl do we actually want this? It adds a prefix based on host, system etc
     63dnl AC_ARG_PROGRAM
    5364AC_PROG_INSTALL
    5465AC_PROG_LN_S
     
    174185dnl Check that the GDBM library is available
    175186dnl
    176 AC_MSG_CHECKING("that the GDBM library is available")
    177 AC_TRY_COMPILE(
    178 [#include <gdbm.h>
     187dnl check libgdbm manually, in case it's not in the standard location.
     188
     189AC_MSG_CHECKING(that the GDBM library is available)
     190if test ! -z $gdbmdir ; then
     191  # look in given directory for header file
     192  if test -e $gdbmdir/include/gdbm.h ; then
     193    GDBM_INCLUDE="-I$gdbmdir/include" ;
     194  elif test -e $gdbmdir/gdbm.h ; then
     195    GDBM_INCLUDE="-I$gdbmdir" ;
     196  fi
     197
     198  # look in given directory for library
     199  if test -e $gdbmdir/libgdbm.a ; then
     200    GDBM_LIBPATH="-L$gdbmdir" ;
     201  elif test -e $gdbmdir/lib/libgdbm.a ; then
     202    GDBM_LIBPATH="-L$gdbmdir/lib" ;
     203  elif test -e $gdbmdir/.libs/libgdbm.a ; then
     204    GDBM_LIBPATH="-L$gdbmdir/.libs" ;
     205  fi
     206
     207  if test ! -z $GDBM_LIBPATH -a ! -z $GDBM_INCLUDE ; then
     208    AC_MSG_RESULT($gdbmdir) ;
     209    AC_DEFINE(HAVE_LIBGDBM , 1)
     210  else
     211    AC_MSG_RESULT(can't find both gdbm.h and libgdbm.a in $gdbmdir);
     212    AC_MSG_CHECKING(   looking for GDBM library in default locations)
     213  fi
     214fi
     215
     216if test -z $GDBM_INCLUDE ; then
     217  # try in system directory
     218  AC_TRY_COMPILE(
     219  [#include <gdbm.h>
    179220],
    180 [],
    181 success=yes,
    182 success=no
    183 )
    184 AC_MSG_RESULT($success)
    185 if test $success = "no"; then
    186 AC_MSG_ERROR("GDBM Library not available - cannot install")
    187 fi
     221  [],
     222  success=yes,
     223  success=no
     224  )
     225  AC_MSG_RESULT($success)
     226  if test $success = "no"; then
     227  AC_MSG_ERROR(GDBM Library not available - cannot install)
     228  fi
     229  GDBM_LIBPATH=
     230  GDBM_INCLUDE=
     231fi
     232
     233AC_SUBST(GDBM_LIBPATH)
     234AC_SUBST(GDBM_INCLUDE)
    188235
    189236dnl
    190237dnl Now check that Perl is actually around, and can be found
    191238dnl
    192 AC_MSG_CHECKING("that Perl 5 is available")
     239AC_MSG_CHECKING(that Perl 5 is available)
    193240success="no"
    194241pl_path="$PATH"
     
    282329
    283330# ---------------------------------------------------------------------------
    284 
     331dnl for Darwin, as our packages don't (yet) correctly guess our system type.
     332ac_configure_args="$ac_configure_args --host=$host --target=$target"
    285333AC_CONFIG_SUBDIRS(packages)
    286334
Note: See TracChangeset for help on using the changeset viewer.