Changeset 3284


Ignore:
Timestamp:
Aug 18, 2003, 10:48:13 PM (17 years ago)
Author:
landonf (Landon Fuller)
Message:

Remove autoconf check for md5 binary
Add autoconf check for a working md5 library (either libmd or openssl's libcrypto)

Location:
trunk/base
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/Mk/dports.autoconf.mk.in

    r2941 r3284  
    1919
    2020LIBS                    = @LIBS@
     21MD5_LIBS                = @MD5_LIBS@
    2122INSTALL                 = @INSTALL@
    22 MD5                     = @MD5@
    2323MTREE                   = @MTREE@
    2424
  • trunk/base/aclocal.m4

    r3279 r3284  
    109109])
    110110
    111 # OD_PROG_MD5
    112 #---------------------------------------
    113 AC_DEFUN([OD_PROG_MD5],[
    114 
    115         AC_PATH_PROG([MD5], [md5], ,  [/usr/bin:/usr/sbin:/bin:/sbin])
    116 
    117         if test "x$MD5" = "x" ; then
    118                 AC_CONFIG_SUBDIRS([src/programs/md5])
    119                 MD5='${prefix}/bin/md5'
    120                 REPLACEMENT_PROGS="$REPLACEMENT_PROGS md5"
    121         fi
    122 
    123         AC_SUBST(MD5)
     111# OD_LIB_MD5
     112#---------------------------------------
     113# Check for an md5 implementation
     114AC_DEFUN([OD_LIB_MD5],[
     115
     116        # Check for libmd, which is prefered
     117        AC_CHECK_LIB([md], [MD5Update],[
     118                AC_CHECK_HEADERS([md5.h], ,[
     119                        AC_MSG_ERROR([libmd was found, but md5.h is missing.])])
     120                AC_DEFINE([HAVE_LIBMD], ,[Define if you have the `md' library (-lmd).])
     121                MD5_LIBS="-lmd"]
     122        )
     123        if test "x$MD5_LIBS" = "x" ; then
     124                # If libmd is not found, check for libcrypto from OpenSSL
     125                AC_CHECK_LIB([crypto], [MD5_Update],[
     126                        AC_CHECK_HEADERS([openssl/md5.h],,[
     127                                AC_MSG_ERROR([libcrypt was found, but header file openssl/md5.h is missing.])])
     128                                AC_DEFINE([HAVE_LIBCRYPTO],,[Define if you have the `crypto' library (-lcrypto).])
     129                        MD5_LIBS="-lcrypto"
     130                ], [
     131                        AC_MSG_ERROR([Neither OpenSSL or libmd were found. A working md5 implementation is required.])
     132                ])
     133        fi
     134        if test "x$MD5_LIBS" = "x"; then
     135                AC_MSG_ERROR([Neither OpenSSL or libmd were found. A working md5 implementation is required.])
     136        fi
     137        AC_SUBST([MD5_LIBS])
    124138])
    125139
  • trunk/base/configure

    r3280 r3284  
    108108
    109109ac_unique_file="src/pextlib1.0/Pextlib.c"
    110 ac_subdirs_all="$ac_subdirs_all src/programs/md5"
    111110ac_subdirs_all="$ac_subdirs_all src/programs/mtree"
    112111ac_default_prefix=/opt/local
     
    885884for ac_site_file in $CONFIG_SITE; do
    886885  if test -r "$ac_site_file"; then
    887     { echo "$as_me:887: loading site script $ac_site_file" >&5
     886    { echo "$as_me:886: loading site script $ac_site_file" >&5
    888887echo "$as_me: loading site script $ac_site_file" >&6;}
    889888    cat "$ac_site_file" >&5
     
    896895  # files actually), so we avoid doing that.
    897896  if test -f "$cache_file"; then
    898     { echo "$as_me:898: loading cache $cache_file" >&5
     897    { echo "$as_me:897: loading cache $cache_file" >&5
    899898echo "$as_me: loading cache $cache_file" >&6;}
    900899    case $cache_file in
     
    904903  fi
    905904else
    906   { echo "$as_me:906: creating cache $cache_file" >&5
     905  { echo "$as_me:905: creating cache $cache_file" >&5
    907906echo "$as_me: creating cache $cache_file" >&6;}
    908907  >$cache_file
     
    920919  case $ac_old_set,$ac_new_set in
    921920    set,)
    922       { echo "$as_me:922: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
     921      { echo "$as_me:921: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
    923922echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
    924923      ac_cache_corrupted=: ;;
    925924    ,set)
    926       { echo "$as_me:926: error: \`$ac_var' was not set in the previous run" >&5
     925      { echo "$as_me:925: error: \`$ac_var' was not set in the previous run" >&5
    927926echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
    928927      ac_cache_corrupted=: ;;
     
    930929    *)
    931930      if test "x$ac_old_val" != "x$ac_new_val"; then
    932         { echo "$as_me:932: error: \`$ac_var' has changed since the previous run:" >&5
     931        { echo "$as_me:931: error: \`$ac_var' has changed since the previous run:" >&5
    933932echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
    934         { echo "$as_me:934:   former value:  $ac_old_val" >&5
     933        { echo "$as_me:933:   former value:  $ac_old_val" >&5
    935934echo "$as_me:   former value:  $ac_old_val" >&2;}
    936         { echo "$as_me:936:   current value: $ac_new_val" >&5
     935        { echo "$as_me:935:   current value: $ac_new_val" >&5
    937936echo "$as_me:   current value: $ac_new_val" >&2;}
    938937        ac_cache_corrupted=:
     
    953952done
    954953if $ac_cache_corrupted; then
    955   { echo "$as_me:955: error: changes in the environment can compromise the build" >&5
     954  { echo "$as_me:954: error: changes in the environment can compromise the build" >&5
    956955echo "$as_me: error: changes in the environment can compromise the build" >&2;}
    957   { { echo "$as_me:957: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
     956  { { echo "$as_me:956: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
    958957echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
    959958   { (exit 1); exit 1; }; }
     
    975974echo  "exit 0"   >>conftest.sh
    976975chmod +x conftest.sh
    977 if { (echo "$as_me:977: PATH=\".;.\"; conftest.sh") >&5
     976if { (echo "$as_me:976: PATH=\".;.\"; conftest.sh") >&5
    978977  (PATH=".;."; conftest.sh) 2>&5
    979978  ac_status=$?
    980   echo "$as_me:980: \$? = $ac_status" >&5
     979  echo "$as_me:979: \$? = $ac_status" >&5
    981980  (exit $ac_status); }; then
    982981  ac_path_separator=';'
     
    10061005done
    10071006if test -z "$ac_aux_dir"; then
    1008   { { echo "$as_me:1008: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
     1007  { { echo "$as_me:1007: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
    10091008echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
    10101009   { (exit 1); exit 1; }; }
     
    10161015# Make sure we can run config.sub.
    10171016$ac_config_sub sun4 >/dev/null 2>&1 ||
    1018   { { echo "$as_me:1018: error: cannot run $ac_config_sub" >&5
     1017  { { echo "$as_me:1017: error: cannot run $ac_config_sub" >&5
    10191018echo "$as_me: error: cannot run $ac_config_sub" >&2;}
    10201019   { (exit 1); exit 1; }; }
    10211020
    1022 echo "$as_me:1022: checking build system type" >&5
     1021echo "$as_me:1021: checking build system type" >&5
    10231022echo $ECHO_N "checking build system type... $ECHO_C" >&6
    10241023if test "${ac_cv_build+set}" = set; then
     
    10291028  ac_cv_build_alias=`$ac_config_guess`
    10301029test -z "$ac_cv_build_alias" &&
    1031   { { echo "$as_me:1031: error: cannot guess build type; you must specify one" >&5
     1030  { { echo "$as_me:1030: error: cannot guess build type; you must specify one" >&5
    10321031echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
    10331032   { (exit 1); exit 1; }; }
    10341033ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
    1035   { { echo "$as_me:1035: error: $ac_config_sub $ac_cv_build_alias failed." >&5
     1034  { { echo "$as_me:1034: error: $ac_config_sub $ac_cv_build_alias failed." >&5
    10361035echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
    10371036   { (exit 1); exit 1; }; }
    10381037
    10391038fi
    1040 echo "$as_me:1040: result: $ac_cv_build" >&5
     1039echo "$as_me:1039: result: $ac_cv_build" >&5
    10411040echo "${ECHO_T}$ac_cv_build" >&6
    10421041build=$ac_cv_build
     
    10451044build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    10461045
    1047 echo "$as_me:1047: checking host system type" >&5
     1046echo "$as_me:1046: checking host system type" >&5
    10481047echo $ECHO_N "checking host system type... $ECHO_C" >&6
    10491048if test "${ac_cv_host+set}" = set; then
     
    10541053  ac_cv_host_alias=$ac_cv_build_alias
    10551054ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
    1056   { { echo "$as_me:1056: error: $ac_config_sub $ac_cv_host_alias failed" >&5
     1055  { { echo "$as_me:1055: error: $ac_config_sub $ac_cv_host_alias failed" >&5
    10571056echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
    10581057   { (exit 1); exit 1; }; }
    10591058
    10601059fi
    1061 echo "$as_me:1061: result: $ac_cv_host" >&5
     1060echo "$as_me:1060: result: $ac_cv_host" >&5
    10621061echo "${ECHO_T}$ac_cv_host" >&6
    10631062host=$ac_cv_host
     
    10661065host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    10671066
    1068 echo "$as_me:1068: checking target system type" >&5
     1067echo "$as_me:1067: checking target system type" >&5
    10691068echo $ECHO_N "checking target system type... $ECHO_C" >&6
    10701069if test "${ac_cv_target+set}" = set; then
     
    10751074  ac_cv_target_alias=$ac_cv_host_alias
    10761075ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
    1077   { { echo "$as_me:1077: error: $ac_config_sub $ac_cv_target_alias failed" >&5
     1076  { { echo "$as_me:1076: error: $ac_config_sub $ac_cv_target_alias failed" >&5
    10781077echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
    10791078   { (exit 1); exit 1; }; }
    10801079
    10811080fi
    1082 echo "$as_me:1082: result: $ac_cv_target" >&5
     1081echo "$as_me:1081: result: $ac_cv_target" >&5
    10831082echo "${ECHO_T}$ac_cv_target" >&6
    10841083target=$ac_cv_target
     
    11031102  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    11041103set dummy ${ac_tool_prefix}gcc; ac_word=$2
    1105 echo "$as_me:1105: checking for $ac_word" >&5
     1104echo "$as_me:1104: checking for $ac_word" >&5
    11061105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    11071106if test "${ac_cv_prog_CC+set}" = set; then
     
    11181117  $as_executable_p "$ac_dir/$ac_word" || continue
    11191118ac_cv_prog_CC="${ac_tool_prefix}gcc"
    1120 echo "$as_me:1120: found $ac_dir/$ac_word" >&5
     1119echo "$as_me:1119: found $ac_dir/$ac_word" >&5
    11211120break
    11221121done
     
    11261125CC=$ac_cv_prog_CC
    11271126if test -n "$CC"; then
    1128   echo "$as_me:1128: result: $CC" >&5
     1127  echo "$as_me:1127: result: $CC" >&5
    11291128echo "${ECHO_T}$CC" >&6
    11301129else
    1131   echo "$as_me:1131: result: no" >&5
     1130  echo "$as_me:1130: result: no" >&5
    11321131echo "${ECHO_T}no" >&6
    11331132fi
     
    11381137  # Extract the first word of "gcc", so it can be a program name with args.
    11391138set dummy gcc; ac_word=$2
    1140 echo "$as_me:1140: checking for $ac_word" >&5
     1139echo "$as_me:1139: checking for $ac_word" >&5
    11411140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    11421141if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     
    11531152  $as_executable_p "$ac_dir/$ac_word" || continue
    11541153ac_cv_prog_ac_ct_CC="gcc"
    1155 echo "$as_me:1155: found $ac_dir/$ac_word" >&5
     1154echo "$as_me:1154: found $ac_dir/$ac_word" >&5
    11561155break
    11571156done
     
    11611160ac_ct_CC=$ac_cv_prog_ac_ct_CC
    11621161if test -n "$ac_ct_CC"; then
    1163   echo "$as_me:1163: result: $ac_ct_CC" >&5
     1162  echo "$as_me:1162: result: $ac_ct_CC" >&5
    11641163echo "${ECHO_T}$ac_ct_CC" >&6
    11651164else
    1166   echo "$as_me:1166: result: no" >&5
     1165  echo "$as_me:1165: result: no" >&5
    11671166echo "${ECHO_T}no" >&6
    11681167fi
     
    11771176  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
    11781177set dummy ${ac_tool_prefix}cc; ac_word=$2
    1179 echo "$as_me:1179: checking for $ac_word" >&5
     1178echo "$as_me:1178: checking for $ac_word" >&5
    11801179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    11811180if test "${ac_cv_prog_CC+set}" = set; then
     
    11921191  $as_executable_p "$ac_dir/$ac_word" || continue
    11931192ac_cv_prog_CC="${ac_tool_prefix}cc"
    1194 echo "$as_me:1194: found $ac_dir/$ac_word" >&5
     1193echo "$as_me:1193: found $ac_dir/$ac_word" >&5
    11951194break
    11961195done
     
    12001199CC=$ac_cv_prog_CC
    12011200if test -n "$CC"; then
    1202   echo "$as_me:1202: result: $CC" >&5
     1201  echo "$as_me:1201: result: $CC" >&5
    12031202echo "${ECHO_T}$CC" >&6
    12041203else
    1205   echo "$as_me:1205: result: no" >&5
     1204  echo "$as_me:1204: result: no" >&5
    12061205echo "${ECHO_T}no" >&6
    12071206fi
     
    12121211  # Extract the first word of "cc", so it can be a program name with args.
    12131212set dummy cc; ac_word=$2
    1214 echo "$as_me:1214: checking for $ac_word" >&5
     1213echo "$as_me:1213: checking for $ac_word" >&5
    12151214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    12161215if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     
    12271226  $as_executable_p "$ac_dir/$ac_word" || continue
    12281227ac_cv_prog_ac_ct_CC="cc"
    1229 echo "$as_me:1229: found $ac_dir/$ac_word" >&5
     1228echo "$as_me:1228: found $ac_dir/$ac_word" >&5
    12301229break
    12311230done
     
    12351234ac_ct_CC=$ac_cv_prog_ac_ct_CC
    12361235if test -n "$ac_ct_CC"; then
    1237   echo "$as_me:1237: result: $ac_ct_CC" >&5
     1236  echo "$as_me:1236: result: $ac_ct_CC" >&5
    12381237echo "${ECHO_T}$ac_ct_CC" >&6
    12391238else
    1240   echo "$as_me:1240: result: no" >&5
     1239  echo "$as_me:1239: result: no" >&5
    12411240echo "${ECHO_T}no" >&6
    12421241fi
     
    12511250  # Extract the first word of "cc", so it can be a program name with args.
    12521251set dummy cc; ac_word=$2
    1253 echo "$as_me:1253: checking for $ac_word" >&5
     1252echo "$as_me:1252: checking for $ac_word" >&5
    12541253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    12551254if test "${ac_cv_prog_CC+set}" = set; then
     
    12711270fi
    12721271ac_cv_prog_CC="cc"
    1273 echo "$as_me:1273: found $ac_dir/$ac_word" >&5
     1272echo "$as_me:1272: found $ac_dir/$ac_word" >&5
    12741273break
    12751274done
     
    12931292CC=$ac_cv_prog_CC
    12941293if test -n "$CC"; then
    1295   echo "$as_me:1295: result: $CC" >&5
     1294  echo "$as_me:1294: result: $CC" >&5
    12961295echo "${ECHO_T}$CC" >&6
    12971296else
    1298   echo "$as_me:1298: result: no" >&5
     1297  echo "$as_me:1297: result: no" >&5
    12991298echo "${ECHO_T}no" >&6
    13001299fi
     
    13071306    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    13081307set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    1309 echo "$as_me:1309: checking for $ac_word" >&5
     1308echo "$as_me:1308: checking for $ac_word" >&5
    13101309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    13111310if test "${ac_cv_prog_CC+set}" = set; then
     
    13221321  $as_executable_p "$ac_dir/$ac_word" || continue
    13231322ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    1324 echo "$as_me:1324: found $ac_dir/$ac_word" >&5
     1323echo "$as_me:1323: found $ac_dir/$ac_word" >&5
    13251324break
    13261325done
     
    13301329CC=$ac_cv_prog_CC
    13311330if test -n "$CC"; then
    1332   echo "$as_me:1332: result: $CC" >&5
     1331  echo "$as_me:1331: result: $CC" >&5
    13331332echo "${ECHO_T}$CC" >&6
    13341333else
    1335   echo "$as_me:1335: result: no" >&5
     1334  echo "$as_me:1334: result: no" >&5
    13361335echo "${ECHO_T}no" >&6
    13371336fi
     
    13461345  # Extract the first word of "$ac_prog", so it can be a program name with args.
    13471346set dummy $ac_prog; ac_word=$2
    1348 echo "$as_me:1348: checking for $ac_word" >&5
     1347echo "$as_me:1347: checking for $ac_word" >&5
    13491348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    13501349if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     
    13611360  $as_executable_p "$ac_dir/$ac_word" || continue
    13621361ac_cv_prog_ac_ct_CC="$ac_prog"
    1363 echo "$as_me:1363: found $ac_dir/$ac_word" >&5
     1362echo "$as_me:1362: found $ac_dir/$ac_word" >&5
    13641363break
    13651364done
     
    13691368ac_ct_CC=$ac_cv_prog_ac_ct_CC
    13701369if test -n "$ac_ct_CC"; then
    1371   echo "$as_me:1371: result: $ac_ct_CC" >&5
     1370  echo "$as_me:1370: result: $ac_ct_CC" >&5
    13721371echo "${ECHO_T}$ac_ct_CC" >&6
    13731372else
    1374   echo "$as_me:1374: result: no" >&5
     1373  echo "$as_me:1373: result: no" >&5
    13751374echo "${ECHO_T}no" >&6
    13761375fi
     
    13841383fi
    13851384
    1386 test -z "$CC" && { { echo "$as_me:1386: error: no acceptable cc found in \$PATH" >&5
     1385test -z "$CC" && { { echo "$as_me:1385: error: no acceptable cc found in \$PATH" >&5
    13871386echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
    13881387   { (exit 1); exit 1; }; }
    13891388
    13901389# Provide some information about the compiler.
    1391 echo "$as_me:1391:" \
     1390echo "$as_me:1390:" \
    13921391     "checking for C compiler version" >&5
    13931392ac_compiler=`set X $ac_compile; echo $2`
    1394 { (eval echo "$as_me:1394: \"$ac_compiler --version </dev/null >&5\"") >&5
     1393{ (eval echo "$as_me:1393: \"$ac_compiler --version </dev/null >&5\"") >&5
    13951394  (eval $ac_compiler --version </dev/null >&5) 2>&5
    13961395  ac_status=$?
    1397   echo "$as_me:1397: \$? = $ac_status" >&5
     1396  echo "$as_me:1396: \$? = $ac_status" >&5
    13981397  (exit $ac_status); }
    1399 { (eval echo "$as_me:1399: \"$ac_compiler -v </dev/null >&5\"") >&5
     1398{ (eval echo "$as_me:1398: \"$ac_compiler -v </dev/null >&5\"") >&5
    14001399  (eval $ac_compiler -v </dev/null >&5) 2>&5
    14011400  ac_status=$?
    1402   echo "$as_me:1402: \$? = $ac_status" >&5
     1401  echo "$as_me:1401: \$? = $ac_status" >&5
    14031402  (exit $ac_status); }
    1404 { (eval echo "$as_me:1404: \"$ac_compiler -V </dev/null >&5\"") >&5
     1403{ (eval echo "$as_me:1403: \"$ac_compiler -V </dev/null >&5\"") >&5
    14051404  (eval $ac_compiler -V </dev/null >&5) 2>&5
    14061405  ac_status=$?
    1407   echo "$as_me:1407: \$? = $ac_status" >&5
     1406  echo "$as_me:1406: \$? = $ac_status" >&5
    14081407  (exit $ac_status); }
    14091408
    14101409cat >conftest.$ac_ext <<_ACEOF
    1411 #line 1411 "configure"
     1410#line 1410 "configure"
    14121411#include "confdefs.h"
    14131412
     
    14251424# It will help us diagnose broken compilers, and finding out an intuition
    14261425# of exeext.
    1427 echo "$as_me:1427: checking for C compiler default output" >&5
     1426echo "$as_me:1426: checking for C compiler default output" >&5
    14281427echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
    14291428ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    1430 if { (eval echo "$as_me:1430: \"$ac_link_default\"") >&5
     1429if { (eval echo "$as_me:1429: \"$ac_link_default\"") >&5
    14311430  (eval $ac_link_default) 2>&5
    14321431  ac_status=$?
    1433   echo "$as_me:1433: \$? = $ac_status" >&5
     1432  echo "$as_me:1432: \$? = $ac_status" >&5
    14341433  (exit $ac_status); }; then
    14351434  # Find the output, starting from the most likely.  This scheme is
     
    14541453  echo "$as_me: failed program was:" >&5
    14551454cat conftest.$ac_ext >&5
    1456 { { echo "$as_me:1456: error: C compiler cannot create executables" >&5
     1455{ { echo "$as_me:1455: error: C compiler cannot create executables" >&5
    14571456echo "$as_me: error: C compiler cannot create executables" >&2;}
    14581457   { (exit 77); exit 77; }; }
     
    14601459
    14611460ac_exeext=$ac_cv_exeext
    1462 echo "$as_me:1462: result: $ac_file" >&5
     1461echo "$as_me:1461: result: $ac_file" >&5
    14631462echo "${ECHO_T}$ac_file" >&6
    14641463
    14651464# Check the compiler produces executables we can run.  If not, either
    14661465# the compiler is broken, or we cross compile.
    1467 echo "$as_me:1467: checking whether the C compiler works" >&5
     1466echo "$as_me:1466: checking whether the C compiler works" >&5
    14681467echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
    14691468# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
     
    14711470if test "$cross_compiling" != yes; then
    14721471  if { ac_try='./$ac_file'
    1473   { (eval echo "$as_me:1473: \"$ac_try\"") >&5
     1472  { (eval echo "$as_me:1472: \"$ac_try\"") >&5
    14741473  (eval $ac_try) 2>&5
    14751474  ac_status=$?
    1476   echo "$as_me:1476: \$? = $ac_status" >&5
     1475  echo "$as_me:1475: \$? = $ac_status" >&5
    14771476  (exit $ac_status); }; }; then
    14781477    cross_compiling=no
     
    14811480        cross_compiling=yes
    14821481    else
    1483         { { echo "$as_me:1483: error: cannot run C compiled programs.
     1482        { { echo "$as_me:1482: error: cannot run C compiled programs.
    14841483If you meant to cross compile, use \`--host'." >&5
    14851484echo "$as_me: error: cannot run C compiled programs.
     
    14891488  fi
    14901489fi
    1491 echo "$as_me:1491: result: yes" >&5
     1490echo "$as_me:1490: result: yes" >&5
    14921491echo "${ECHO_T}yes" >&6
    14931492
     
    14961495# Check the compiler produces executables we can run.  If not, either
    14971496# the compiler is broken, or we cross compile.
    1498 echo "$as_me:1498: checking whether we are cross compiling" >&5
     1497echo "$as_me:1497: checking whether we are cross compiling" >&5
    14991498echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
    1500 echo "$as_me:1500: result: $cross_compiling" >&5
     1499echo "$as_me:1499: result: $cross_compiling" >&5
    15011500echo "${ECHO_T}$cross_compiling" >&6
    15021501
    1503 echo "$as_me:1503: checking for executable suffix" >&5
     1502echo "$as_me:1502: checking for executable suffix" >&5
    15041503echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
    1505 if { (eval echo "$as_me:1505: \"$ac_link\"") >&5
     1504if { (eval echo "$as_me:1504: \"$ac_link\"") >&5
    15061505  (eval $ac_link) 2>&5
    15071506  ac_status=$?
    1508   echo "$as_me:1508: \$? = $ac_status" >&5
     1507  echo "$as_me:1507: \$? = $ac_status" >&5
    15091508  (exit $ac_status); }; then
    15101509  # If both `conftest.exe' and `conftest' are `present' (well, observable)
     
    15221521done
    15231522else
    1524   { { echo "$as_me:1524: error: cannot compute EXEEXT: cannot compile and link" >&5
     1523  { { echo "$as_me:1523: error: cannot compute EXEEXT: cannot compile and link" >&5
    15251524echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
    15261525   { (exit 1); exit 1; }; }
     
    15281527
    15291528rm -f conftest$ac_cv_exeext
    1530 echo "$as_me:1530: result: $ac_cv_exeext" >&5
     1529echo "$as_me:1529: result: $ac_cv_exeext" >&5
    15311530echo "${ECHO_T}$ac_cv_exeext" >&6
    15321531
     
    15341533EXEEXT=$ac_cv_exeext
    15351534ac_exeext=$EXEEXT
    1536 echo "$as_me:1536: checking for object suffix" >&5
     1535echo "$as_me:1535: checking for object suffix" >&5
    15371536echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
    15381537if test "${ac_cv_objext+set}" = set; then
     
    15401539else
    15411540  cat >conftest.$ac_ext <<_ACEOF
    1542 #line 1542 "configure"
     1541#line 1541 "configure"
    15431542#include "confdefs.h"
    15441543
     
    15521551_ACEOF
    15531552rm -f conftest.o conftest.obj
    1554 if { (eval echo "$as_me:1554: \"$ac_compile\"") >&5
     1553if { (eval echo "$as_me:1553: \"$ac_compile\"") >&5
    15551554  (eval $ac_compile) 2>&5
    15561555  ac_status=$?
    1557   echo "$as_me:1557: \$? = $ac_status" >&5
     1556  echo "$as_me:1556: \$? = $ac_status" >&5
    15581557  (exit $ac_status); }; then
    15591558  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
     
    15671566  echo "$as_me: failed program was:" >&5
    15681567cat conftest.$ac_ext >&5
    1569 { { echo "$as_me:1569: error: cannot compute OBJEXT: cannot compile" >&5
     1568{ { echo "$as_me:1568: error: cannot compute OBJEXT: cannot compile" >&5
    15701569echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
    15711570   { (exit 1); exit 1; }; }
     
    15741573rm -f conftest.$ac_cv_objext conftest.$ac_ext
    15751574fi
    1576 echo "$as_me:1576: result: $ac_cv_objext" >&5
     1575echo "$as_me:1575: result: $ac_cv_objext" >&5
    15771576echo "${ECHO_T}$ac_cv_objext" >&6
    15781577OBJEXT=$ac_cv_objext
    15791578ac_objext=$OBJEXT
    1580 echo "$as_me:1580: checking whether we are using the GNU C compiler" >&5
     1579echo "$as_me:1579: checking whether we are using the GNU C compiler" >&5
    15811580echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
    15821581if test "${ac_cv_c_compiler_gnu+set}" = set; then
     
    15841583else
    15851584  cat >conftest.$ac_ext <<_ACEOF
    1586 #line 1586 "configure"
     1585#line 1585 "configure"
    15871586#include "confdefs.h"
    15881587
     
    15991598_ACEOF
    16001599rm -f conftest.$ac_objext
    1601 if { (eval echo "$as_me:1601: \"$ac_compile\"") >&5
     1600if { (eval echo "$as_me:1600: \"$ac_compile\"") >&5
    16021601  (eval $ac_compile) 2>&5
    16031602  ac_status=$?
    1604   echo "$as_me:1604: \$? = $ac_status" >&5
     1603  echo "$as_me:1603: \$? = $ac_status" >&5
    16051604  (exit $ac_status); } &&
    16061605         { ac_try='test -s conftest.$ac_objext'
    1607   { (eval echo "$as_me:1607: \"$ac_try\"") >&5
     1606  { (eval echo "$as_me:1606: \"$ac_try\"") >&5
    16081607  (eval $ac_try) 2>&5
    16091608  ac_status=$?
    1610   echo "$as_me:1610: \$? = $ac_status" >&5
     1609  echo "$as_me:1609: \$? = $ac_status" >&5
    16111610  (exit $ac_status); }; }; then
    16121611  ac_compiler_gnu=yes
     
    16201619
    16211620fi
    1622 echo "$as_me:1622: result: $ac_cv_c_compiler_gnu" >&5
     1621echo "$as_me:1621: result: $ac_cv_c_compiler_gnu" >&5
    16231622echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
    16241623GCC=`test $ac_compiler_gnu = yes && echo yes`
     
    16261625ac_save_CFLAGS=$CFLAGS
    16271626CFLAGS="-g"
    1628 echo "$as_me:1628: checking whether $CC accepts -g" >&5
     1627echo "$as_me:1627: checking whether $CC accepts -g" >&5
    16291628echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
    16301629if test "${ac_cv_prog_cc_g+set}" = set; then
     
    16321631else
    16331632  cat >conftest.$ac_ext <<_ACEOF
    1634 #line 1634 "configure"
     1633#line 1633 "configure"
    16351634#include "confdefs.h"
    16361635
     
    16441643_ACEOF
    16451644rm -f conftest.$ac_objext
    1646 if { (eval echo "$as_me:1646: \"$ac_compile\"") >&5
     1645if { (eval echo "$as_me:1645: \"$ac_compile\"") >&5
    16471646  (eval $ac_compile) 2>&5
    16481647  ac_status=$?
    1649   echo "$as_me:1649: \$? = $ac_status" >&5
     1648  echo "$as_me:1648: \$? = $ac_status" >&5
    16501649  (exit $ac_status); } &&
    16511650         { ac_try='test -s conftest.$ac_objext'
    1652   { (eval echo "$as_me:1652: \"$ac_try\"") >&5
     1651  { (eval echo "$as_me:1651: \"$ac_try\"") >&5
    16531652  (eval $ac_try) 2>&5
    16541653  ac_status=$?
    1655   echo "$as_me:1655: \$? = $ac_status" >&5
     1654  echo "$as_me:1654: \$? = $ac_status" >&5
    16561655  (exit $ac_status); }; }; then
    16571656  ac_cv_prog_cc_g=yes
     
    16631662rm -f conftest.$ac_objext conftest.$ac_ext
    16641663fi
    1665 echo "$as_me:1665: result: $ac_cv_prog_cc_g" >&5
     1664echo "$as_me:1664: result: $ac_cv_prog_cc_g" >&5
    16661665echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
    16671666if test "$ac_test_CFLAGS" = set; then
     
    16901689_ACEOF
    16911690rm -f conftest.$ac_objext
    1692 if { (eval echo "$as_me:1692: \"$ac_compile\"") >&5
     1691if { (eval echo "$as_me:1691: \"$ac_compile\"") >&5
    16931692  (eval $ac_compile) 2>&5
    16941693  ac_status=$?
    1695   echo "$as_me:1695: \$? = $ac_status" >&5
     1694  echo "$as_me:1694: \$? = $ac_status" >&5
    16961695  (exit $ac_status); } &&
    16971696         { ac_try='test -s conftest.$ac_objext'
    1698   { (eval echo "$as_me:1698: \"$ac_try\"") >&5
     1697  { (eval echo "$as_me:1697: \"$ac_try\"") >&5
    16991698  (eval $ac_try) 2>&5
    17001699  ac_status=$?
    1701   echo "$as_me:1701: \$? = $ac_status" >&5
     1700  echo "$as_me:1700: \$? = $ac_status" >&5
    17021701  (exit $ac_status); }; }; then
    17031702  for ac_declaration in \
     
    17111710do
    17121711  cat >conftest.$ac_ext <<_ACEOF
    1713 #line 1713 "configure"
     1712#line 1712 "configure"
    17141713#include "confdefs.h"
    17151714#include <stdlib.h>
     
    17241723_ACEOF
    17251724rm -f conftest.$ac_objext
    1726 if { (eval echo "$as_me:1726: \"$ac_compile\"") >&5
     1725if { (eval echo "$as_me:1725: \"$ac_compile\"") >&5
    17271726  (eval $ac_compile) 2>&5
    17281727  ac_status=$?
    1729   echo "$as_me:1729: \$? = $ac_status" >&5
     1728  echo "$as_me:1728: \$? = $ac_status" >&5
    17301729  (exit $ac_status); } &&
    17311730         { ac_try='test -s conftest.$ac_objext'
    1732   { (eval echo "$as_me:1732: \"$ac_try\"") >&5
     1731  { (eval echo "$as_me:1731: \"$ac_try\"") >&5
    17331732  (eval $ac_try) 2>&5
    17341733  ac_status=$?
    1735   echo "$as_me:1735: \$? = $ac_status" >&5
     1734  echo "$as_me:1734: \$? = $ac_status" >&5
    17361735  (exit $ac_status); }; }; then
    17371736  :
     
    17431742rm -f conftest.$ac_objext conftest.$ac_ext
    17441743  cat >conftest.$ac_ext <<_ACEOF
    1745 #line 1745 "configure"
     1744#line 1744 "configure"
    17461745#include "confdefs.h"
    17471746$ac_declaration
     
    17551754_ACEOF
    17561755rm -f conftest.$ac_objext
    1757 if { (eval echo "$as_me:1757: \"$ac_compile\"") >&5
     1756if { (eval echo "$as_me:1756: \"$ac_compile\"") >&5
    17581757  (eval $ac_compile) 2>&5
    17591758  ac_status=$?
    1760   echo "$as_me:1760: \$? = $ac_status" >&5
     1759  echo "$as_me:1759: \$? = $ac_status" >&5
    17611760  (exit $ac_status); } &&
    17621761         { ac_try='test -s conftest.$ac_objext'
    1763   { (eval echo "$as_me:1763: \"$ac_try\"") >&5
     1762  { (eval echo "$as_me:1762: \"$ac_try\"") >&5
    17641763  (eval $ac_try) 2>&5
    17651764  ac_status=$?
    1766   echo "$as_me:1766: \$? = $ac_status" >&5
     1765  echo "$as_me:1765: \$? = $ac_status" >&5
    17671766  (exit $ac_status); }; }; then
    17681767  break
     
    18031802# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
    18041803# ./install, which can be erroneously created by make from ./install.sh.
    1805 echo "$as_me:1805: checking for a BSD compatible install" >&5
     1804echo "$as_me:1804: checking for a BSD compatible install" >&5
    18061805echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
    18071806if test -z "$INSTALL"; then
     
    18521851  fi
    18531852fi
    1854 echo "$as_me:1854: result: $INSTALL" >&5
     1853echo "$as_me:1853: result: $INSTALL" >&5
    18551854echo "${ECHO_T}$INSTALL" >&6
    18561855
     
    18631862test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    18641863
    1865 echo "$as_me:1865: checking whether ${MAKE-make} sets \${MAKE}" >&5
     1864echo "$as_me:1864: checking whether ${MAKE-make} sets \${MAKE}" >&5
    18661865echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
    18671866set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
     
    18831882fi
    18841883if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
    1885   echo "$as_me:1885: result: yes" >&5
     1884  echo "$as_me:1884: result: yes" >&5
    18861885echo "${ECHO_T}yes" >&6
    18871886  SET_MAKE=
    18881887else
    1889   echo "$as_me:1889: result: no" >&5
     1888  echo "$as_me:1888: result: no" >&5
    18901889echo "${ECHO_T}no" >&6
    18911890  SET_MAKE="MAKE=${MAKE-make}"
    18921891fi
    18931892
    1894         # Extract the first word of "md5", so it can be a program name with args.
    1895 set dummy md5; ac_word=$2
    1896 echo "$as_me:1896: checking for $ac_word" >&5
    1897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1898 if test "${ac_cv_path_MD5+set}" = set; then
    1899   echo $ECHO_N "(cached) $ECHO_C" >&6
    1900 else
    1901   case $MD5 in
    1902   [\\/]* | ?:[\\/]*)
    1903   ac_cv_path_MD5="$MD5" # Let the user override the test with a path.
    1904   ;;
    1905   *)
    1906   ac_save_IFS=$IFS; IFS=$ac_path_separator
    1907 ac_dummy="/usr/bin:/usr/sbin:/bin:/sbin"
    1908 for ac_dir in $ac_dummy; do
    1909   IFS=$ac_save_IFS
    1910   test -z "$ac_dir" && ac_dir=.
    1911   if $as_executable_p "$ac_dir/$ac_word"; then
    1912    ac_cv_path_MD5="$ac_dir/$ac_word"
    1913    echo "$as_me:1913: found $ac_dir/$ac_word" >&5
    1914    break
    1915 fi
    1916 done
    1917 
    1918   ;;
    1919 esac
    1920 fi
    1921 MD5=$ac_cv_path_MD5
    1922 
    1923 if test -n "$MD5"; then
    1924   echo "$as_me:1924: result: $MD5" >&5
    1925 echo "${ECHO_T}$MD5" >&6
    1926 else
    1927   echo "$as_me:1927: result: no" >&5
    1928 echo "${ECHO_T}no" >&6
    1929 fi
    1930 
    1931         if test "x$MD5" = "x" ; then
    1932 
    1933 subdirs="$subdirs src/programs/md5"
    1934 
    1935                 MD5='${prefix}/bin/md5'
    1936                 REPLACEMENT_PROGS="$REPLACEMENT_PROGS md5"
    1937         fi
    1938 
    19391893        # Extract the first word of "mtree", so it can be a program name with args.
    19401894set dummy mtree; ac_word=$2
    1941 echo "$as_me:1941: checking for $ac_word" >&5
     1895echo "$as_me:1895: checking for $ac_word" >&5
    19421896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    19431897if test "${ac_cv_path_MTREE+set}" = set; then
     
    19561910  if $as_executable_p "$ac_dir/$ac_word"; then
    19571911   ac_cv_path_MTREE="$ac_dir/$ac_word"
    1958    echo "$as_me:1958: found $ac_dir/$ac_word" >&5
     1912   echo "$as_me:1912: found $ac_dir/$ac_word" >&5
    19591913   break
    19601914fi
     
    19671921
    19681922if test -n "$MTREE"; then
    1969   echo "$as_me:1969: result: $MTREE" >&5
     1923  echo "$as_me:1923: result: $MTREE" >&5
    19701924echo "${ECHO_T}$MTREE" >&6
    19711925else
    1972   echo "$as_me:1972: result: no" >&5
     1926  echo "$as_me:1926: result: no" >&5
    19731927echo "${ECHO_T}no" >&6
    19741928fi
     
    19831937        fi
    19841938
    1985 # Check for paths
    1986 
    1987 # Check whether --with-dports-dir or --without-dports-dir was given.
    1988 if test "${with_dports_dir+set}" = set; then
    1989   withval="$with_dports_dir"
    1990    dportsdir="$withval"
    1991 fi;
    1992 
    1993         echo "$as_me:1993: checking for dports tree" >&5
    1994 echo $ECHO_N "checking for dports tree... $ECHO_C" >&6
    1995 
    1996         if test "x$dportsdir" != "x" ; then
    1997           if test -d "$dportsdir" -a -e "$dportsdir/PortIndex" ; then
    1998                 :
    1999           else
    2000                 { { echo "$as_me:2000: error: $dportsdir not a valid dports tree" >&5
    2001 echo "$as_me: error: $dportsdir not a valid dports tree" >&2;}
    2002    { (exit 1); exit 1; }; }
    2003           fi
    2004         else
    2005                                 if test "x/usr/dports" != "x" ; then
    2006                   if test -d "/usr/dports" -a -e "/usr/dports/PortIndex" ; then
    2007                         dportsdir=/usr/dports
    2008                   fi
    2009                 fi
    2010         fi
    2011 
    2012         if test "x$dportsdir" != "x" ; then
    2013                 echo "$as_me:2013: result: $dportsdir" >&5
    2014 echo "${ECHO_T}$dportsdir" >&6
    2015                 DPORTSDIR="$dportsdir"
    2016 
    2017         else
    2018                 { echo "$as_me:2018: WARNING: No dports tree found" >&5
    2019 echo "$as_me: WARNING: No dports tree found" >&2;}
    2020         fi
    2021 
    2022         echo "$as_me:2022: checking for ports config directory" >&5
    2023 echo $ECHO_N "checking for ports config directory... $ECHO_C" >&6
    2024 
    2025         if test "$prefix" != "NONE" ; then
    2026                                 portconfigdir='${sysconfdir}/ports'
    2027         else
    2028                                 portconfigdir='/etc/ports'
    2029         fi
    2030 
    2031         echo "$as_me:2031: result: $portconfigdir" >&5
    2032 echo "${ECHO_T}$portconfigdir" >&6
    2033         PORTCONFIGDIR="$portconfigdir"
    2034 
    2035 # Check for install ownership
    2036 
    2037 # Check whether --with-install-user or --without-install-user was given.
    2038 if test "${with_install_user+set}" = set; then
    2039   withval="$with_install_user"
    2040    DSTUSR=$withval
    2041 fi;
    2042 
    2043         echo "$as_me:2043: checking for install user" >&5
    2044 echo $ECHO_N "checking for install user... $ECHO_C" >&6
    2045         if test "x$DSTUSR" = "x" ; then
    2046            DSTUSR=root
    2047         fi
    2048 
    2049         echo "$as_me:2049: result: $DSTUSR" >&5
    2050 echo "${ECHO_T}$DSTUSR" >&6
    2051 
    2052 # Check whether --with-install-group or --without-install-group was given.
    2053 if test "${with_install_group+set}" = set; then
    2054   withval="$with_install_group"
    2055    DSTGRP=$withval
    2056 fi;
    2057 
    2058         echo "$as_me:2058: checking for install group" >&5
    2059 echo $ECHO_N "checking for install group... $ECHO_C" >&6
    2060         if test "x$DSTGRP" = "x" ; then
    2061 
    2062            case $host_os in
    2063            darwin*)
    2064                 DSTGRP="admin"
    2065                 ;;
    2066            *)
    2067                 DSTGRP="wheel"
    2068                 ;;
    2069            esac
    2070         fi
    2071 
    2072         echo "$as_me:2072: result: $DSTGRP" >&5
    2073 echo "${ECHO_T}$DSTGRP" >&6
    2074 
    2075 # Check for standard header files.
     1939# Check for md5 implementation
    20761940
    20771941ac_ext=c
     
    20801944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    20811945ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2082 echo "$as_me:2082: checking how to run the C preprocessor" >&5
     1946echo "$as_me:1946: checking how to run the C preprocessor" >&5
    20831947echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
    20841948# On Suns, sometimes $CPP names a directory.
     
    21011965  # not just through cpp. "Syntax error" is here to catch this case.
    21021966  cat >conftest.$ac_ext <<_ACEOF
    2103 #line 2103 "configure"
     1967#line 1967 "configure"
    21041968#include "confdefs.h"
    21051969#include <assert.h>
    21061970                     Syntax error
    21071971_ACEOF
    2108 if { (eval echo "$as_me:2108: \"$ac_cpp conftest.$ac_ext\"") >&5
     1972if { (eval echo "$as_me:1972: \"$ac_cpp conftest.$ac_ext\"") >&5
    21091973  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    21101974  ac_status=$?
     
    21121976  rm -f conftest.er1
    21131977  cat conftest.err >&5
    2114   echo "$as_me:2114: \$? = $ac_status" >&5
     1978  echo "$as_me:1978: \$? = $ac_status" >&5
    21151979  (exit $ac_status); } >/dev/null; then
    21161980  if test -s conftest.err; then
     
    21351999  # can be detected and how.
    21362000  cat >conftest.$ac_ext <<_ACEOF
    2137 #line 2137 "configure"
     2001#line 2001 "configure"
    21382002#include "confdefs.h"
    21392003#include <ac_nonexistent.h>
    21402004_ACEOF
    2141 if { (eval echo "$as_me:2141: \"$ac_cpp conftest.$ac_ext\"") >&5
     2005if { (eval echo "$as_me:2005: \"$ac_cpp conftest.$ac_ext\"") >&5
    21422006  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    21432007  ac_status=$?
     
    21452009  rm -f conftest.er1
    21462010  cat conftest.err >&5
    2147   echo "$as_me:2147: \$? = $ac_status" >&5
     2011  echo "$as_me:2011: \$? = $ac_status" >&5
    21482012  (exit $ac_status); } >/dev/null; then
    21492013  if test -s conftest.err; then
     
    21822046  ac_cv_prog_CPP=$CPP
    21832047fi
    2184 echo "$as_me:2184: result: $CPP" >&5
     2048echo "$as_me:2048: result: $CPP" >&5
    21852049echo "${ECHO_T}$CPP" >&6
    21862050ac_preproc_ok=false
     
    21922056  # not just through cpp. "Syntax error" is here to catch this case.
    21932057  cat >conftest.$ac_ext <<_ACEOF
    2194 #line 2194 "configure"
     2058#line 2058 "configure"
    21952059#include "confdefs.h"
    21962060#include <assert.h>
    21972061                     Syntax error
    21982062_ACEOF
    2199 if { (eval echo "$as_me:2199: \"$ac_cpp conftest.$ac_ext\"") >&5
     2063if { (eval echo "$as_me:2063: \"$ac_cpp conftest.$ac_ext\"") >&5
    22002064  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    22012065  ac_status=$?
     
    22032067  rm -f conftest.er1
    22042068  cat conftest.err >&5
    2205   echo "$as_me:2205: \$? = $ac_status" >&5
     2069  echo "$as_me:2069: \$? = $ac_status" >&5
    22062070  (exit $ac_status); } >/dev/null; then
    22072071  if test -s conftest.err; then
     
    22262090  # can be detected and how.
    22272091  cat >conftest.$ac_ext <<_ACEOF
    2228 #line 2228 "configure"
     2092#line 2092 "configure"
    22292093#include "confdefs.h"
    22302094#include <ac_nonexistent.h>
    22312095_ACEOF
    2232 if { (eval echo "$as_me:2232: \"$ac_cpp conftest.$ac_ext\"") >&5
     2096if { (eval echo "$as_me:2096: \"$ac_cpp conftest.$ac_ext\"") >&5
    22332097  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    22342098  ac_status=$?
     
    22362100  rm -f conftest.er1
    22372101  cat conftest.err >&5
    2238   echo "$as_me:2238: \$? = $ac_status" >&5
     2102  echo "$as_me:2102: \$? = $ac_status" >&5
    22392103  (exit $ac_status); } >/dev/null; then
    22402104  if test -s conftest.err; then
     
    22642128  :
    22652129else
    2266   { { echo "$as_me:2266: error: C preprocessor \"$CPP\" fails sanity check" >&5
     2130  { { echo "$as_me:2130: error: C preprocessor \"$CPP\" fails sanity check" >&5
    22672131echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
    22682132   { (exit 1); exit 1; }; }
     
    22752139ac_compiler_gnu=$ac_cv_c_compiler_gnu
    22762140
    2277 echo "$as_me:2277: checking for ANSI C header files" >&5
    2278 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    2279 if test "${ac_cv_header_stdc+set}" = set; then
     2141        # Check for libmd, which is prefered
     2142        echo "$as_me:2142: checking for MD5Update in -lmd" >&5
     2143echo $ECHO_N "checking for MD5Update in -lmd... $ECHO_C" >&6
     2144if test "${ac_cv_lib_md_MD5Update+set}" = set; then
    22802145  echo $ECHO_N "(cached) $ECHO_C" >&6
    22812146else
     2147  ac_check_lib_save_LIBS=$LIBS
     2148LIBS="-lmd  $LIBS"
     2149cat >conftest.$ac_ext <<_ACEOF
     2150#line 2150 "configure"
     2151#include "confdefs.h"
     2152
     2153/* Override any gcc2 internal prototype to avoid an error.  */
     2154#ifdef __cplusplus
     2155extern "C"
     2156#endif
     2157/* We use char because int might match the return type of a gcc2
     2158   builtin and then its argument prototype would still apply.  */
     2159char MD5Update ();
     2160int
     2161main ()
     2162{
     2163MD5Update ();
     2164  ;
     2165  return 0;
     2166}
     2167_ACEOF
     2168rm -f conftest.$ac_objext conftest$ac_exeext
     2169if { (eval echo "$as_me:2169: \"$ac_link\"") >&5
     2170  (eval $ac_link) 2>&5
     2171  ac_status=$?
     2172  echo "$as_me:2172: \$? = $ac_status" >&5
     2173  (exit $ac_status); } &&
     2174         { ac_try='test -s conftest$ac_exeext'
     2175  { (eval echo "$as_me:2175: \"$ac_try\"") >&5
     2176  (eval $ac_try) 2>&5
     2177  ac_status=$?
     2178  echo "$as_me:2178: \$? = $ac_status" >&5
     2179  (exit $ac_status); }; }; then
     2180  ac_cv_lib_md_MD5Update=yes
     2181else
     2182  echo "$as_me: failed program was:" >&5
     2183cat conftest.$ac_ext >&5
     2184ac_cv_lib_md_MD5Update=no
     2185fi
     2186rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     2187LIBS=$ac_check_lib_save_LIBS
     2188fi
     2189echo "$as_me:2189: result: $ac_cv_lib_md_MD5Update" >&5
     2190echo "${ECHO_T}$ac_cv_lib_md_MD5Update" >&6
     2191if test $ac_cv_lib_md_MD5Update = yes; then
     2192
     2193for ac_header in md5.h
     2194do
     2195as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     2196echo "$as_me:2196: checking for $ac_header" >&5
     2197echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     2198if eval "test \"\${$as_ac_Header+set}\" = set"; then
     2199  echo $ECHO_N "(cached) $ECHO_C" >&6
     2200else
    22822201  cat >conftest.$ac_ext <<_ACEOF
    2283 #line 2283 "configure"
     2202#line 2202 "configure"
    22842203#include "confdefs.h"
    2285 #include <stdlib.h>
    2286 #include <stdarg.h>
    2287 #include <string.h>
    2288 #include <float.h>
    2289 
     2204#include <$ac_header>
    22902205_ACEOF
    2291 if { (eval echo "$as_me:2291: \"$ac_cpp conftest.$ac_ext\"") >&5
     2206if { (eval echo "$as_me:2206: \"$ac_cpp conftest.$ac_ext\"") >&5
    22922207  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    22932208  ac_status=$?
     
    22952210  rm -f conftest.er1
    22962211  cat conftest.err >&5
    2297   echo "$as_me:2297: \$? = $ac_status" >&5
     2212  echo "$as_me:2212: \$? = $ac_status" >&5
    22982213  (exit $ac_status); } >/dev/null; then
    22992214  if test -s conftest.err; then
     
    23062221fi
    23072222if test -z "$ac_cpp_err"; then
     2223  eval "$as_ac_Header=yes"
     2224else
     2225  echo "$as_me: failed program was:" >&5
     2226  cat conftest.$ac_ext >&5
     2227  eval "$as_ac_Header=no"
     2228fi
     2229rm -f conftest.err conftest.$ac_ext
     2230fi
     2231echo "$as_me:2231: result: `eval echo '${'$as_ac_Header'}'`" >&5
     2232echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     2233if test `eval echo '${'$as_ac_Header'}'` = yes; then
     2234  cat >>confdefs.h <<EOF
     2235#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     2236EOF
     2237
     2238else
     2239
     2240                        { { echo "$as_me:2240: error: libmd was found, but md5.h is missing." >&5
     2241echo "$as_me: error: libmd was found, but md5.h is missing." >&2;}
     2242   { (exit 1); exit 1; }; }
     2243fi
     2244done
     2245
     2246cat >>confdefs.h <<\EOF
     2247#define HAVE_LIBMD
     2248EOF
     2249
     2250                MD5_LIBS="-lmd"
     2251
     2252fi
     2253
     2254        if test "x$MD5_LIBS" = "x" ; then
     2255                # If libmd is not found, check for libcrypto from OpenSSL
     2256                echo "$as_me:2256: checking for MD5_Update in -lcrypto" >&5
     2257echo $ECHO_N "checking for MD5_Update in -lcrypto... $ECHO_C" >&6
     2258if test "${ac_cv_lib_crypto_MD5_Update+set}" = set; then
     2259  echo $ECHO_N "(cached) $ECHO_C" >&6
     2260else
     2261  ac_check_lib_save_LIBS=$LIBS
     2262LIBS="-lcrypto  $LIBS"
     2263cat >conftest.$ac_ext <<_ACEOF
     2264#line 2264 "configure"
     2265#include "confdefs.h"
     2266
     2267/* Override any gcc2 internal prototype to avoid an error.  */
     2268#ifdef __cplusplus
     2269extern "C"
     2270#endif
     2271/* We use char because int might match the return type of a gcc2
     2272   builtin and then its argument prototype would still apply.  */
     2273char MD5_Update ();
     2274int
     2275main ()
     2276{
     2277MD5_Update ();
     2278  ;
     2279  return 0;
     2280}
     2281_ACEOF
     2282rm -f conftest.$ac_objext conftest$ac_exeext
     2283if { (eval echo "$as_me:2283: \"$ac_link\"") >&5
     2284  (eval $ac_link) 2>&5
     2285  ac_status=$?
     2286  echo "$as_me:2286: \$? = $ac_status" >&5
     2287  (exit $ac_status); } &&
     2288         { ac_try='test -s conftest$ac_exeext'
     2289  { (eval echo "$as_me:2289: \"$ac_try\"") >&5
     2290  (eval $ac_try) 2>&5
     2291  ac_status=$?
     2292  echo "$as_me:2292: \$? = $ac_status" >&5
     2293  (exit $ac_status); }; }; then
     2294  ac_cv_lib_crypto_MD5_Update=yes
     2295else
     2296  echo "$as_me: failed program was:" >&5
     2297cat conftest.$ac_ext >&5
     2298ac_cv_lib_crypto_MD5_Update=no
     2299fi
     2300rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     2301LIBS=$ac_check_lib_save_LIBS
     2302fi
     2303echo "$as_me:2303: result: $ac_cv_lib_crypto_MD5_Update" >&5
     2304echo "${ECHO_T}$ac_cv_lib_crypto_MD5_Update" >&6
     2305if test $ac_cv_lib_crypto_MD5_Update = yes; then
     2306
     2307for ac_header in openssl/md5.h
     2308do
     2309as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     2310echo "$as_me:2310: checking for $ac_header" >&5
     2311echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     2312if eval "test \"\${$as_ac_Header+set}\" = set"; then
     2313  echo $ECHO_N "(cached) $ECHO_C" >&6
     2314else
     2315  cat >conftest.$ac_ext <<_ACEOF
     2316#line 2316 "configure"
     2317#include "confdefs.h"
     2318#include <$ac_header>
     2319_ACEOF
     2320if { (eval echo "$as_me:2320: \"$ac_cpp conftest.$ac_ext\"") >&5
     2321  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2322  ac_status=$?
     2323  egrep -v '^ *\+' conftest.er1 >conftest.err
     2324  rm -f conftest.er1
     2325  cat conftest.err >&5
     2326  echo "$as_me:2326: \$? = $ac_status" >&5
     2327  (exit $ac_status); } >/dev/null; then
     2328  if test -s conftest.err; then
     2329    ac_cpp_err=$ac_c_preproc_warn_flag
     2330  else
     2331    ac_cpp_err=
     2332  fi
     2333else
     2334  ac_cpp_err=yes
     2335fi
     2336if test -z "$ac_cpp_err"; then
     2337  eval "$as_ac_Header=yes"
     2338else
     2339  echo "$as_me: failed program was:" >&5
     2340  cat conftest.$ac_ext >&5
     2341  eval "$as_ac_Header=no"
     2342fi
     2343rm -f conftest.err conftest.$ac_ext
     2344fi
     2345echo "$as_me:2345: result: `eval echo '${'$as_ac_Header'}'`" >&5
     2346echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     2347if test `eval echo '${'$as_ac_Header'}'` = yes; then
     2348  cat >>confdefs.h <<EOF
     2349#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     2350EOF
     2351
     2352else
     2353
     2354                                { { echo "$as_me:2354: error: libcrypt was found, but header file openssl/md5.h is missing." >&5
     2355echo "$as_me: error: libcrypt was found, but header file openssl/md5.h is missing." >&2;}
     2356   { (exit 1); exit 1; }; }
     2357fi
     2358done
     2359
     2360cat >>confdefs.h <<\EOF
     2361#define HAVE_LIBCRYPTO
     2362EOF
     2363
     2364                        MD5_LIBS="-lcrypto"
     2365
     2366else
     2367
     2368                        { { echo "$as_me:2368: error: Neither OpenSSL or libmd were found. A working md5 implementation is required." >&5
     2369echo "$as_me: error: Neither OpenSSL or libmd were found. A working md5 implementation is required." >&2;}
     2370   { (exit 1); exit 1; }; }
     2371
     2372fi
     2373
     2374        fi
     2375        if test "x$MD5_LIBS" = "x"; then
     2376                { { echo "$as_me:2376: error: Neither OpenSSL or libmd were found. A working md5 implementation is required." >&5
     2377echo "$as_me: error: Neither OpenSSL or libmd were found. A working md5 implementation is required." >&2;}
     2378   { (exit 1); exit 1; }; }
     2379        fi
     2380
     2381# Check for paths
     2382
     2383# Check whether --with-dports-dir or --without-dports-dir was given.
     2384if test "${with_dports_dir+set}" = set; then
     2385  withval="$with_dports_dir"
     2386   dportsdir="$withval"
     2387fi;
     2388
     2389        echo "$as_me:2389: checking for dports tree" >&5
     2390echo $ECHO_N "checking for dports tree... $ECHO_C" >&6
     2391
     2392        if test "x$dportsdir" != "x" ; then
     2393          if test -d "$dportsdir" -a -e "$dportsdir/PortIndex" ; then
     2394                :
     2395          else
     2396                { { echo "$as_me:2396: error: $dportsdir not a valid dports tree" >&5
     2397echo "$as_me: error: $dportsdir not a valid dports tree" >&2;}
     2398   { (exit 1); exit 1; }; }
     2399          fi
     2400        else
     2401                                if test "x/usr/dports" != "x" ; then
     2402                  if test -d "/usr/dports" -a -e "/usr/dports/PortIndex" ; then
     2403                        dportsdir=/usr/dports
     2404                  fi
     2405                fi
     2406        fi
     2407
     2408        if test "x$dportsdir" != "x" ; then
     2409                echo "$as_me:2409: result: $dportsdir" >&5
     2410echo "${ECHO_T}$dportsdir" >&6
     2411                DPORTSDIR="$dportsdir"
     2412
     2413        else
     2414                { echo "$as_me:2414: WARNING: No dports tree found" >&5
     2415echo "$as_me: WARNING: No dports tree found" >&2;}
     2416        fi
     2417
     2418        echo "$as_me:2418: checking for ports config directory" >&5
     2419echo $ECHO_N "checking for ports config directory... $ECHO_C" >&6
     2420
     2421        if test "$prefix" != "NONE" ; then
     2422                                portconfigdir='${sysconfdir}/ports'
     2423        else
     2424                                portconfigdir='/etc/ports'
     2425        fi
     2426
     2427        echo "$as_me:2427: result: $portconfigdir" >&5
     2428echo "${ECHO_T}$portconfigdir" >&6
     2429        PORTCONFIGDIR="$portconfigdir"
     2430
     2431# Check for install ownership
     2432
     2433# Check whether --with-install-user or --without-install-user was given.
     2434if test "${with_install_user+set}" = set; then
     2435  withval="$with_install_user"
     2436   DSTUSR=$withval
     2437fi;
     2438
     2439        echo "$as_me:2439: checking for install user" >&5
     2440echo $ECHO_N "checking for install user... $ECHO_C" >&6
     2441        if test "x$DSTUSR" = "x" ; then
     2442           DSTUSR=root
     2443        fi
     2444
     2445        echo "$as_me:2445: result: $DSTUSR" >&5
     2446echo "${ECHO_T}$DSTUSR" >&6
     2447
     2448# Check whether --with-install-group or --without-install-group was given.
     2449if test "${with_install_group+set}" = set; then
     2450  withval="$with_install_group"
     2451   DSTGRP=$withval
     2452fi;
     2453
     2454        echo "$as_me:2454: checking for install group" >&5
     2455echo $ECHO_N "checking for install group... $ECHO_C" >&6
     2456        if test "x$DSTGRP" = "x" ; then
     2457
     2458           case $host_os in
     2459           darwin*)
     2460                DSTGRP="admin"
     2461                ;;
     2462           *)
     2463                DSTGRP="wheel"
     2464                ;;
     2465           esac
     2466        fi
     2467
     2468        echo "$as_me:2468: result: $DSTGRP" >&5
     2469echo "${ECHO_T}$DSTGRP" >&6
     2470
     2471# Check for standard header files.
     2472echo "$as_me:2472: checking for ANSI C header files" >&5
     2473echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     2474if test "${ac_cv_header_stdc+set}" = set; then
     2475  echo $ECHO_N "(cached) $ECHO_C" >&6
     2476else
     2477  cat >conftest.$ac_ext <<_ACEOF
     2478#line 2478 "configure"
     2479#include "confdefs.h"
     2480#include <stdlib.h>
     2481#include <stdarg.h>
     2482#include <string.h>
     2483#include <float.h>
     2484
     2485_ACEOF
     2486if { (eval echo "$as_me:2486: \"$ac_cpp conftest.$ac_ext\"") >&5
     2487  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2488  ac_status=$?
     2489  egrep -v '^ *\+' conftest.er1 >conftest.err
     2490  rm -f conftest.er1
     2491  cat conftest.err >&5
     2492  echo "$as_me:2492: \$? = $ac_status" >&5
     2493  (exit $ac_status); } >/dev/null; then
     2494  if test -s conftest.err; then
     2495    ac_cpp_err=$ac_c_preproc_warn_flag
     2496  else
     2497    ac_cpp_err=
     2498  fi
     2499else
     2500  ac_cpp_err=yes
     2501fi
     2502if test -z "$ac_cpp_err"; then
    23082503  ac_cv_header_stdc=yes
    23092504else
     
    23172512  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    23182513  cat >conftest.$ac_ext <<_ACEOF
    2319 #line 2319 "configure"
     2514#line 2514 "configure"
    23202515#include "confdefs.h"
    23212516#include <string.h>
     
    23352530  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    23362531  cat >conftest.$ac_ext <<_ACEOF
    2337 #line 2337 "configure"
     2532#line 2532 "configure"
    23382533#include "confdefs.h"
    23392534#include <stdlib.h>
     
    23562551else
    23572552  cat >conftest.$ac_ext <<_ACEOF
    2358 #line 2358 "configure"
     2553#line 2553 "configure"
    23592554#include "confdefs.h"
    23602555#include <ctype.h>
     
    23822577_ACEOF
    23832578rm -f conftest$ac_exeext
    2384 if { (eval echo "$as_me:2384: \"$ac_link\"") >&5
     2579if { (eval echo "$as_me:2579: \"$ac_link\"") >&5
    23852580  (eval $ac_link) 2>&5
    23862581  ac_status=$?
    2387   echo "$as_me:2387: \$? = $ac_status" >&5
     2582  echo "$as_me:2582: \$? = $ac_status" >&5
    23882583  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    2389   { (eval echo "$as_me:2389: \"$ac_try\"") >&5
     2584  { (eval echo "$as_me:2584: \"$ac_try\"") >&5
    23902585  (eval $ac_try) 2>&5
    23912586  ac_status=$?
    2392   echo "$as_me:2392: \$? = $ac_status" >&5
     2587  echo "$as_me:2587: \$? = $ac_status" >&5
    23932588  (exit $ac_status); }; }; then
    23942589  :
     
    24032598fi
    24042599fi
    2405 echo "$as_me:2405: result: $ac_cv_header_stdc" >&5
     2600echo "$as_me:2600: result: $ac_cv_header_stdc" >&5
    24062601echo "${ECHO_T}$ac_cv_header_stdc" >&6
    24072602if test $ac_cv_header_stdc = yes; then
     
    24162611for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
    24172612  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
    2418 echo "$as_me:2418: checking for $ac_hdr that defines DIR" >&5
     2613echo "$as_me:2613: checking for $ac_hdr that defines DIR" >&5
    24192614echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
    24202615if eval "test \"\${$as_ac_Header+set}\" = set"; then
     
    24222617else
    24232618  cat >conftest.$ac_ext <<_ACEOF
    2424 #line 2424 "configure"
     2619#line 2619 "configure"
    24252620#include "confdefs.h"
    24262621#include <sys/types.h>
     
    24372632_ACEOF
    24382633rm -f conftest.$ac_objext
    2439 if { (eval echo "$as_me:2439: \"$ac_compile\"") >&5
     2634if { (eval echo "$as_me:2634: \"$ac_compile\"") >&5
    24402635  (eval $ac_compile) 2>&5
    24412636  ac_status=$?
    2442   echo "$as_me:2442: \$? = $ac_status" >&5
     2637  echo "$as_me:2637: \$? = $ac_status" >&5
    24432638  (exit $ac_status); } &&
    24442639         { ac_try='test -s conftest.$ac_objext'
    2445   { (eval echo "$as_me:2445: \"$ac_try\"") >&5
     2640  { (eval echo "$as_me:2640: \"$ac_try\"") >&5
    24462641  (eval $ac_try) 2>&5
    24472642  ac_status=$?
    2448   echo "$as_me:2448: \$? = $ac_status" >&5
     2643  echo "$as_me:2643: \$? = $ac_status" >&5
    24492644  (exit $ac_status); }; }; then
    24502645  eval "$as_ac_Header=yes"
     
    24562651rm -f conftest.$ac_objext conftest.$ac_ext
    24572652fi
    2458 echo "$as_me:2458: result: `eval echo '${'$as_ac_Header'}'`" >&5
     2653echo "$as_me:2653: result: `eval echo '${'$as_ac_Header'}'`" >&5
    24592654echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    24602655if test `eval echo '${'$as_ac_Header'}'` = yes; then
     
    24692664# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
    24702665if test $ac_header_dirent = dirent.h; then
    2471   echo "$as_me:2471: checking for opendir in -ldir" >&5
     2666  echo "$as_me:2666: checking for opendir in -ldir" >&5
    24722667echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
    24732668if test "${ac_cv_lib_dir_opendir+set}" = set; then
     
    24772672LIBS="-ldir  $LIBS"
    24782673cat >conftest.$ac_ext <<_ACEOF
    2479 #line 2479 "configure"
     2674#line 2674 "configure"
    24802675#include "confdefs.h"
    24812676
     
    24962691_ACEOF
    24972692rm -f conftest.$ac_objext conftest$ac_exeext
    2498 if { (eval echo "$as_me:2498: \"$ac_link\"") >&5
     2693if { (eval echo "$as_me:2693: \"$ac_link\"") >&5
    24992694  (eval $ac_link) 2>&5
    25002695  ac_status=$?
    2501   echo "$as_me:2501: \$? = $ac_status" >&5
     2696  echo "$as_me:2696: \$? = $ac_status" >&5
    25022697  (exit $ac_status); } &&
    25032698         { ac_try='test -s conftest$ac_exeext'
    2504   { (eval echo "$as_me:2504: \"$ac_try\"") >&5
     2699  { (eval echo "$as_me:2699: \"$ac_try\"") >&5
    25052700  (eval $ac_try) 2>&5
    25062701  ac_status=$?
    2507   echo "$as_me:2507: \$? = $ac_status" >&5
     2702  echo "$as_me:2702: \$? = $ac_status" >&5
    25082703  (exit $ac_status); }; }; then
    25092704  ac_cv_lib_dir_opendir=yes
     
    25162711LIBS=$ac_check_lib_save_LIBS
    25172712fi
    2518 echo "$as_me:2518: result: $ac_cv_lib_dir_opendir" >&5
     2713echo "$as_me:2713: result: $ac_cv_lib_dir_opendir" >&5
    25192714echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
    25202715if test $ac_cv_lib_dir_opendir = yes; then
     
    25232718
    25242719else
    2525   echo "$as_me:2525: checking for opendir in -lx" >&5
     2720  echo "$as_me:2720: checking for opendir in -lx" >&5
    25262721echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
    25272722if test "${ac_cv_lib_x_opendir+set}" = set; then
     
    25312726LIBS="-lx  $LIBS"
    25322727cat >conftest.$ac_ext <<_ACEOF
    2533 #line 2533 "configure"
     2728#line 2728 "configure"
    25342729#include "confdefs.h"
    25352730
     
    25502745_ACEOF
    25512746rm -f conftest.$ac_objext conftest$ac_exeext
    2552 if { (eval echo "$as_me:2552: \"$ac_link\"") >&5
     2747if { (eval echo "$as_me:2747: \"$ac_link\"") >&5
    25532748  (eval $ac_link) 2>&5
    25542749  ac_status=$?
    2555   echo "$as_me:2555: \$? = $ac_status" >&5
     2750  echo "$as_me:2750: \$? = $ac_status" >&5
    25562751  (exit $ac_status); } &&
    25572752         { ac_try='test -s conftest$ac_exeext'
    2558   { (eval echo "$as_me:2558: \"$ac_try\"") >&5
     2753  { (eval echo "$as_me:2753: \"$ac_try\"") >&5
    25592754  (eval $ac_try) 2>&5
    25602755  ac_status=$?
    2561   echo "$as_me:2561: \$? = $ac_status" >&5
     2756  echo "$as_me:2756: \$? = $ac_status" >&5
    25622757  (exit $ac_status); }; }; then
    25632758  ac_cv_lib_x_opendir=yes
     
    25702765LIBS=$ac_check_lib_save_LIBS
    25712766fi
    2572 echo "$as_me:2572: result: $ac_cv_lib_x_opendir" >&5
     2767echo "$as_me:2767: result: $ac_cv_lib_x_opendir" >&5
    25732768echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
    25742769if test $ac_cv_lib_x_opendir = yes; then
     
    25782773fi
    25792774
    2580 echo "$as_me:2580: checking for sys/wait.h that is POSIX.1 compatible" >&5
     2775echo "$as_me:2775: checking for sys/wait.h that is POSIX.1 compatible" >&5
    25812776echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
    25822777if test "${ac_cv_header_sys_wait_h+set}" = set; then
     
    25842779else
    25852780  cat >conftest.$ac_ext <<_ACEOF
    2586 #line 2586 "configure"
     2781#line 2781 "configure"
    25872782#include "confdefs.h"
    25882783#include <sys/types.h>
     
    26062801_ACEOF
    26072802rm -f conftest.$ac_objext
    2608 if { (eval echo "$as_me:2608: \"$ac_compile\"") >&5
     2803if { (eval echo "$as_me:2803: \"$ac_compile\"") >&5
    26092804  (eval $ac_compile) 2>&5
    26102805  ac_status=$?
    2611   echo "$as_me:2611: \$? = $ac_status" >&5
     2806  echo "$as_me:2806: \$? = $ac_status" >&5
    26122807  (exit $ac_status); } &&
    26132808         { ac_try='test -s conftest.$ac_objext'
    2614   { (eval echo "$as_me:2614: \"$ac_try\"") >&5
     2809  { (eval echo "$as_me:2809: \"$ac_try\"") >&5
    26152810  (eval $ac_try) 2>&5
    26162811  ac_status=$?
    2617   echo "$as_me:2617: \$? = $ac_status" >&5
     2812  echo "$as_me:2812: \$? = $ac_status" >&5
    26182813  (exit $ac_status); }; }; then
    26192814  ac_cv_header_sys_wait_h=yes
     
    26252820rm -f conftest.$ac_objext conftest.$ac_ext
    26262821fi
    2627 echo "$as_me:2627: result: $ac_cv_header_sys_wait_h" >&5
     2822echo "$as_me:2822: result: $ac_cv_header_sys_wait_h" >&5
    26282823echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
    26292824if test $ac_cv_header_sys_wait_h = yes; then
     
    26352830fi
    26362831
    2637 echo "$as_me:2637: checking whether stat file-mode macros are broken" >&5
     2832echo "$as_me:2832: checking whether stat file-mode macros are broken" >&5
    26382833echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
    26392834if test "${ac_cv_header_stat_broken+set}" = set; then
     
    26412836else
    26422837  cat >conftest.$ac_ext <<_ACEOF
    2643 #line 2643 "configure"
     2838#line 2838 "configure"
    26442839#include "confdefs.h"
    26452840#include <sys/types.h>
     
    26802875
    26812876fi
    2682 echo "$as_me:2682: result: $ac_cv_header_stat_broken" >&5
     2877echo "$as_me:2877: result: $ac_cv_header_stat_broken" >&5
    26832878echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
    26842879if test $ac_cv_header_stat_broken = yes; then
     
    26932888do
    26942889as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    2695 echo "$as_me:2695: checking for $ac_header" >&5
     2890echo "$as_me:2890: checking for $ac_header" >&5
    26962891echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    26972892if eval "test \"\${$as_ac_Header+set}\" = set"; then
     
    26992894else
    27002895  cat >conftest.$ac_ext <<_ACEOF
    2701 #line 2701 "configure"
     2896#line 2896 "configure"
    27022897#include "confdefs.h"
    27032898#include <$ac_header>
    27042899_ACEOF
    2705 if { (eval echo "$as_me:2705: \"$ac_cpp conftest.$ac_ext\"") >&5
     2900if { (eval echo "$as_me:2900: \"$ac_cpp conftest.$ac_ext\"") >&5
    27062901  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    27072902  ac_status=$?
     
    27092904  rm -f conftest.er1
    27102905  cat conftest.err >&5
    2711   echo "$as_me:2711: \$? = $ac_status" >&5
     2906  echo "$as_me:2906: \$? = $ac_status" >&5
    27122907  (exit $ac_status); } >/dev/null; then
    27132908  if test -s conftest.err; then
     
    27282923rm -f conftest.err conftest.$ac_ext
    27292924fi
    2730 echo "$as_me:2730: result: `eval echo '${'$as_ac_Header'}'`" >&5
     2925echo "$as_me:2925: result: `eval echo '${'$as_ac_Header'}'`" >&5
    27312926echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    27322927if test `eval echo '${'$as_ac_Header'}'` = yes; then
     
    27472942do
    27482943as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    2749 echo "$as_me:2749: checking for $ac_header" >&5
     2944echo "$as_me:2944: checking for $ac_header" >&5
    27502945echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    27512946if eval "test \"\${$as_ac_Header+set}\" = set"; then
     
    27532948else
    27542949  cat >conftest.$ac_ext <<_ACEOF
    2755 #line 2755 "configure"
     2950#line 2950 "configure"
    27562951#include "confdefs.h"
    27572952$ac_includes_default
     
    27592954_ACEOF
    27602955rm -f conftest.$ac_objext
    2761 if { (eval echo "$as_me:2761: \"$ac_compile\"") >&5
     2956if { (eval echo "$as_me:2956: \"$ac_compile\"") >&5
    27622957  (eval $ac_compile) 2>&5
    27632958  ac_status=$?
    2764   echo "$as_me:2764: \$? = $ac_status" >&5
     2959  echo "$as_me:2959: \$? = $ac_status" >&5
    27652960  (exit $ac_status); } &&
    27662961         { ac_try='test -s conftest.$ac_objext'
    2767   { (eval echo "$as_me:2767: \"$ac_try\"") >&5
     2962  { (eval echo "$as_me:2962: \"$ac_try\"") >&5
    27682963  (eval $ac_try) 2>&5
    27692964  ac_status=$?
    2770   echo "$as_me:2770: \$? = $ac_status" >&5
     2965  echo "$as_me:2965: \$? = $ac_status" >&5
    27712966  (exit $ac_status); }; }; then
    27722967  eval "$as_ac_Header=yes"
     
    27782973rm -f conftest.$ac_objext conftest.$ac_ext
    27792974fi
    2780 echo "$as_me:2780: result: `eval echo '${'$as_ac_Header'}'`" >&5
     2975echo "$as_me:2975: result: `eval echo '${'$as_ac_Header'}'`" >&5
    27812976echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    27822977if test `eval echo '${'$as_ac_Header'}'` = yes; then
     
    27882983done
    27892984
    2790 echo "$as_me:2790: checking whether closedir returns void" >&5
     2985echo "$as_me:2985: checking whether closedir returns void" >&5
    27912986echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
    27922987if test "${ac_cv_func_closedir_void+set}" = set; then
     
    27972992else
    27982993  cat >conftest.$ac_ext <<_ACEOF
    2799 #line 2799 "configure"
     2994#line 2994 "configure"
    28002995#include "confdefs.h"
    28012996$ac_includes_default
     
    28143009_ACEOF
    28153010rm -f conftest$ac_exeext
    2816 if { (eval echo "$as_me:2816: \"$ac_link\"") >&5
     3011if { (eval echo "$as_me:3011: \"$ac_link\"") >&5
    28173012  (eval $ac_link) 2>&5
    28183013  ac_status=$?
    2819   echo "$as_me:2819: \$? = $ac_status" >&5
     3014  echo "$as_me:3014: \$? = $ac_status" >&5
    28203015  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    2821   { (eval echo "$as_me:2821: \"$ac_try\"") >&5
     3016  { (eval echo "$as_me:3016: \"$ac_try\"") >&5
    28223017  (eval $ac_try) 2>&5
    28233018  ac_status=$?
    2824   echo "$as_me:2824: \$? = $ac_status" >&5
     3019  echo "$as_me:3019: \$? = $ac_status" >&5
    28253020  (exit $ac_status); }; }; then
    28263021  ac_cv_func_closedir_void=no
     
    28343029fi
    28353030fi
    2836 echo "$as_me:2836: result: $ac_cv_func_closedir_void" >&5
     3031echo "$as_me:3031: result: $ac_cv_func_closedir_void" >&5
    28373032echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
    28383033if test $ac_cv_func_closedir_void = yes; then
     
    28443039fi
    28453040
    2846 echo "$as_me:2846: checking for pid_t" >&5
     3041echo "$as_me:3041: checking for pid_t" >&5
    28473042echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
    28483043if test "${ac_cv_type_pid_t+set}" = set; then
     
    28503045else
    28513046  cat >conftest.$ac_ext <<_ACEOF
    2852 #line 2852 "configure"
     3047#line 3047 "configure"
    28533048#include "confdefs.h"
    28543049$ac_includes_default
     
    28653060_ACEOF
    28663061rm -f conftest.$ac_objext
    2867 if { (eval echo "$as_me:2867: \"$ac_compile\"") >&5
     3062if { (eval echo "$as_me:3062: \"$ac_compile\"") >&5
    28683063  (eval $ac_compile) 2>&5
    28693064  ac_status=$?
    2870   echo "$as_me:2870: \$? = $ac_status" >&5
     3065  echo "$as_me:3065: \$? = $ac_status" >&5
    28713066  (exit $ac_status); } &&
    28723067         { ac_try='test -s conftest.$ac_objext'
    2873   { (eval echo "$as_me:2873: \"$ac_try\"") >&5
     3068  { (eval echo "$as_me:3068: \"$ac_try\"") >&5
    28743069  (eval $ac_try) 2>&5
    28753070  ac_status=$?
    2876   echo "$as_me:2876: \$? = $ac_status" >&5
     3071  echo "$as_me:3071: \$? = $ac_status" >&5
    28773072  (exit $ac_status); }; }; then
    28783073  ac_cv_type_pid_t=yes
     
    28843079rm -f conftest.$ac_objext conftest.$ac_ext
    28853080fi
    2886 echo "$as_me:2886: result: $ac_cv_type_pid_t" >&5
     3081echo "$as_me:3081: result: $ac_cv_type_pid_t" >&5
    28873082echo "${ECHO_T}$ac_cv_type_pid_t" >&6
    28883083if test $ac_cv_type_pid_t = yes; then
     
    28993094do
    29003095as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    2901 echo "$as_me:2901: checking for $ac_header" >&5
     3096echo "$as_me:3096: checking for $ac_header" >&5
    29023097echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    29033098if eval "test \"\${$as_ac_Header+set}\" = set"; then
     
    29053100else
    29063101  cat >conftest.$ac_ext <<_ACEOF
    2907 #line 2907 "configure"
     3102#line 3102 "configure"
    29083103#include "confdefs.h"
    29093104#include <$ac_header>
    29103105_ACEOF
    2911 if { (eval echo "$as_me:2911: \"$ac_cpp conftest.$ac_ext\"") >&5
     3106if { (eval echo "$as_me:3106: \"$ac_cpp conftest.$ac_ext\"") >&5
    29123107  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    29133108  ac_status=$?
     
    29153110  rm -f conftest.er1
    29163111  cat conftest.err >&5
    2917   echo "$as_me:2917: \$? = $ac_status" >&5
     3112  echo "$as_me:3112: \$? = $ac_status" >&5
    29183113  (exit $ac_status); } >/dev/null; then
    29193114  if test -s conftest.err; then
     
    29343129rm -f conftest.err conftest.$ac_ext
    29353130fi
    2936 echo "$as_me:2936: result: `eval echo '${'$as_ac_Header'}'`" >&5
     3131echo "$as_me:3131: result: `eval echo '${'$as_ac_Header'}'`" >&5
    29373132echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    29383133if test `eval echo '${'$as_ac_Header'}'` = yes; then
     
    29473142do
    29483143as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    2949 echo "$as_me:2949: checking for $ac_func" >&5
     3144echo "$as_me:3144: checking for $ac_func" >&5
    29503145echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    29513146if eval "test \"\${$as_ac_var+set}\" = set"; then
     
    29533148else
    29543149  cat >conftest.$ac_ext <<_ACEOF
    2955 #line 2955 "configure"
     3150#line 3150 "configure"
    29563151#include "confdefs.h"
    29573152/* System header to define __stub macros and hopefully few prototypes,
     
    29843179_ACEOF
    29853180rm -f conftest.$ac_objext conftest$ac_exeext
    2986 if { (eval echo "$as_me:2986: \"$ac_link\"") >&5
     3181if { (eval echo "$as_me:3181: \"$ac_link\"") >&5
    29873182  (eval $ac_link) 2>&5
    29883183  ac_status=$?
    2989   echo "$as_me:2989: \$? = $ac_status" >&5
     3184  echo "$as_me:3184: \$? = $ac_status" >&5
    29903185  (exit $ac_status); } &&
    29913186         { ac_try='test -s conftest$ac_exeext'
    2992   { (eval echo "$as_me:2992: \"$ac_try\"") >&5
     3187  { (eval echo "$as_me:3187: \"$ac_try\"") >&5
    29933188  (eval $ac_try) 2>&5
    29943189  ac_status=$?
    2995   echo "$as_me:2995: \$? = $ac_status" >&5
     3190  echo "$as_me:3190: \$? = $ac_status" >&5
    29963191  (exit $ac_status); }; }; then
    29973192  eval "$as_ac_var=yes"
     
    30033198rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    30043199fi
    3005 echo "$as_me:3005: result: `eval echo '${'$as_ac_var'}'`" >&5
     3200echo "$as_me:3200: result: `eval echo '${'$as_ac_var'}'`" >&5
    30063201echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    30073202if test `eval echo '${'$as_ac_var'}'` = yes; then
     
    30153210ac_cv_func_fork_works=$ac_cv_func_fork
    30163211if test "x$ac_cv_func_fork" = xyes; then
    3017   echo "$as_me:3017: checking for working fork" >&5
     3212  echo "$as_me:3212: checking for working fork" >&5
    30183213echo $ECHO_N "checking for working fork... $ECHO_C" >&6
    30193214if test "${ac_cv_func_fork_works+set}" = set; then
     
    30383233_ACEOF
    30393234rm -f conftest$ac_exeext
    3040 if { (eval echo "$as_me:3040: \"$ac_link\"") >&5
     3235if { (eval echo "$as_me:3235: \"$ac_link\"") >&5
    30413236  (eval $ac_link) 2>&5
    30423237  ac_status=$?
    3043   echo "$as_me:3043: \$? = $ac_status" >&5
     3238  echo "$as_me:3238: \$? = $ac_status" >&5
    30443239  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    3045   { (eval echo "$as_me:3045: \"$ac_try\"") >&5
     3240  { (eval echo "$as_me:3240: \"$ac_try\"") >&5
    30463241  (eval $ac_try) 2>&5
    30473242  ac_status=$?
    3048   echo "$as_me:3048: \$? = $ac_status" >&5
     3243  echo "$as_me:3243: \$? = $ac_status" >&5
    30493244  (exit $ac_status); }; }; then
    30503245  ac_cv_func_fork_works=yes
     
    30583253fi
    30593254fi
    3060 echo "$as_me:3060: result: $ac_cv_func_fork_works" >&5
     3255echo "$as_me:3255: result: $ac_cv_func_fork_works" >&5
    30613256echo "${ECHO_T}$ac_cv_func_fork_works" >&6
    30623257
     
    30723267      ;;
    30733268  esac
    3074   { echo "$as_me:3074: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
     3269  { echo "$as_me:3269: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
    30753270echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
    30763271fi
    30773272ac_cv_func_vfork_works=$ac_cv_func_vfork
    30783273if test "x$ac_cv_func_vfork" = xyes; then
    3079   echo "$as_me:3079: checking for working vfork" >&5
     3274  echo "$as_me:3274: checking for working vfork" >&5
    30803275echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
    30813276if test "${ac_cv_func_vfork_works+set}" = set; then
     
    30863281else
    30873282  cat >conftest.$ac_ext <<_ACEOF
    3088 #line 3088 "configure"
     3283#line 3283 "configure"
    30893284#include "confdefs.h"
    30903285/* Thanks to Paul Eggert for this test.  */
     
    31833378_ACEOF
    31843379rm -f conftest$ac_exeext
    3185 if { (eval echo "$as_me:3185: \"$ac_link\"") >&5
     3380if { (eval echo "$as_me:3380: \"$ac_link\"") >&5
    31863381  (eval $ac_link) 2>&5
    31873382  ac_status=$?
    3188   echo "$as_me:3188: \$? = $ac_status" >&5
     3383  echo "$as_me:3383: \$? = $ac_status" >&5
    31893384  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    3190   { (eval echo "$as_me:3190: \"$ac_try\"") >&5
     3385  { (eval echo "$as_me:3385: \"$ac_try\"") >&5
    31913386  (eval $ac_try) 2>&5
    31923387  ac_status=$?
    3193   echo "$as_me:3193: \$? = $ac_status" >&5
     3388  echo "$as_me:3388: \$? = $ac_status" >&5
    31943389  (exit $ac_status); }; }; then
    31953390  ac_cv_func_vfork_works=yes
     
    32033398fi
    32043399fi
    3205 echo "$as_me:3205: result: $ac_cv_func_vfork_works" >&5
     3400echo "$as_me:3400: result: $ac_cv_func_vfork_works" >&5
    32063401echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
    32073402
     
    32093404if test "x$ac_cv_func_fork_works" = xcross; then
    32103405  ac_cv_func_vfork_works=ac_cv_func_vfork
    3211   { echo "$as_me:3211: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
     3406  { echo "$as_me:3406: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
    32123407echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
    32133408fi
     
    32343429fi
    32353430
    3236 echo "$as_me:3236: checking whether strerror_r is declared" >&5
     3431echo "$as_me:3431: checking whether strerror_r is declared" >&5
    32373432echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
    32383433if test "${ac_cv_have_decl_strerror_r+set}" = set; then
     
    32403435else
    32413436  cat >conftest.$ac_ext <<_ACEOF
    3242 #line 3242 "configure"
     3437#line 3437 "configure"
    32433438#include "confdefs.h"
    32443439$ac_includes_default
     
    32553450_ACEOF
    32563451rm -f conftest.$ac_objext
    3257 if { (eval echo "$as_me:3257: \"$ac_compile\"") >&5
     3452if { (eval echo "$as_me:3452: \"$ac_compile\"") >&5
    32583453  (eval $ac_compile) 2>&5
    32593454  ac_status=$?
    3260   echo "$as_me:3260: \$? = $ac_status" >&5
     3455  echo "$as_me:3455: \$? = $ac_status" >&5
    32613456  (exit $ac_status); } &&
    32623457         { ac_try='test -s conftest.$ac_objext'
    3263   { (eval echo "$as_me:3263: \"$ac_try\"") >&5
     3458  { (eval echo "$as_me:3458: \"$ac_try\"") >&5
    32643459  (eval $ac_try) 2>&5
    32653460  ac_status=$?
    3266   echo "$as_me:3266: \$? = $ac_status" >&5
     3461  echo "$as_me:3461: \$? = $ac_status" >&5
    32673462  (exit $ac_status); }; }; then
    32683463  ac_cv_have_decl_strerror_r=yes
     
    32743469rm -f conftest.$ac_objext conftest.$ac_ext
    32753470fi
    3276 echo "$as_me:3276: result: $ac_cv_have_decl_strerror_r" >&5
     3471echo "$as_me:3471: result: $ac_cv_have_decl_strerror_r" >&5
    32773472echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
    32783473if test $ac_cv_have_decl_strerror_r = yes; then
     
    32923487do
    32933488as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    3294 echo "$as_me:3294: checking for $ac_func" >&5
     3489echo "$as_me:3489: checking for $ac_func" >&5
    32953490echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    32963491if eval "test \"\${$as_ac_var+set}\" = set"; then
     
    32983493else
    32993494  cat >conftest.$ac_ext <<_ACEOF
    3300 #line 3300 "configure"
     3495#line 3495 "configure"
    33013496#include "confdefs.h"
    33023497/* System header to define __stub macros and hopefully few prototypes,
     
    33293524_ACEOF
    33303525rm -f conftest.$ac_objext conftest$ac_exeext
    3331 if { (eval echo "$as_me:3331: \"$ac_link\"") >&5
     3526if { (eval echo "$as_me:3526: \"$ac_link\"") >&5
    33323527  (eval $ac_link) 2>&5
    33333528  ac_status=$?
    3334   echo "$as_me:3334: \$? = $ac_status" >&5
     3529  echo "$as_me:3529: \$? = $ac_status" >&5
    33353530  (exit $ac_status); } &&
    33363531         { ac_try='test -s conftest$ac_exeext'
    3337   { (eval echo "$as_me:3337: \"$ac_try\"") >&5
     3532  { (eval echo "$as_me:3532: \"$ac_try\"") >&5
    33383533  (eval $ac_try) 2>&5
    33393534  ac_status=$?
    3340   echo "$as_me:3340: \$? = $ac_status" >&5
     3535  echo "$as_me:3535: \$? = $ac_status" >&5
    33413536  (exit $ac_status); }; }; then
    33423537  eval "$as_ac_var=yes"
     
    33483543rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    33493544fi
    3350 echo "$as_me:3350: result: `eval echo '${'$as_ac_var'}'`" >&5
     3545echo "$as_me:3545: result: `eval echo '${'$as_ac_var'}'`" >&5
    33513546echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    33523547if test `eval echo '${'$as_ac_var'}'` = yes; then
     
    33593554
    33603555if test $ac_cv_func_strerror_r = yes; then
    3361   echo "$as_me:3361: checking for working strerror_r" >&5
     3556  echo "$as_me:3556: checking for working strerror_r" >&5
    33623557echo $ECHO_N "checking for working strerror_r... $ECHO_C" >&6
    33633558if test "${ac_cv_func_strerror_r_works+set}" = set; then
     
    33663561
    33673562    cat >conftest.$ac_ext <<_ACEOF
    3368 #line 3368 "configure"
     3563#line 3563 "configure"
    33693564#include "confdefs.h"
    33703565$ac_includes_default
     
    33813576_ACEOF
    33823577rm -f conftest.$ac_objext
    3383 if { (eval echo "$as_me:3383: \"$ac_compile\"") >&5
     3578if { (eval echo "$as_me:3578: \"$ac_compile\"") >&5
    33843579  (eval $ac_compile) 2>&5
    33853580  ac_status=$?
    3386   echo "$as_me:3386: \$? = $ac_status" >&5
     3581  echo "$as_me:3581: \$? = $ac_status" >&5
    33873582  (exit $ac_status); } &&
    33883583         { ac_try='test -s conftest.$ac_objext'
    3389   { (eval echo "$as_me:3389: \"$ac_try\"") >&5
     3584  { (eval echo "$as_me:3584: \"$ac_try\"") >&5
    33903585  (eval $ac_try) 2>&5
    33913586  ac_status=$?
    3392   echo "$as_me:3392: \$? = $ac_status" >&5
     3587  echo "$as_me:3587: \$? = $ac_status" >&5
    33933588  (exit $ac_status); }; }; then
    33943589  ac_cv_func_strerror_r_works=yes
     
    34103605else
    34113606  cat >conftest.$ac_ext <<_ACEOF
    3412 #line 3412 "configure"
     3607#line 3607 "configure"
    34133608#include "confdefs.h"
    34143609$ac_includes_default
     
    34253620_ACEOF
    34263621rm -f conftest$ac_exeext
    3427 if { (eval echo "$as_me:3427: \"$ac_link\"") >&5
     3622if { (eval echo "$as_me:3622: \"$ac_link\"") >&5
    34283623  (eval $ac_link) 2>&5
    34293624  ac_status=$?
    3430   echo "$as_me:3430: \$? = $ac_status" >&5
     3625  echo "$as_me:3625: \$? = $ac_status" >&5
    34313626  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    3432   { (eval echo "$as_me:3432: \"$ac_try\"") >&5
     3627  { (eval echo "$as_me:3627: \"$ac_try\"") >&5
    34333628  (eval $ac_try) 2>&5
    34343629  ac_status=$?
    3435   echo "$as_me:3435: \$? = $ac_status" >&5
     3630  echo "$as_me:3630: \$? = $ac_status" >&5
    34363631  (exit $ac_status); }; }; then
    34373632  ac_cv_func_strerror_r_works=yes
     
    34473642
    34483643fi
    3449 echo "$as_me:3449: result: $ac_cv_func_strerror_r_works" >&5
     3644echo "$as_me:3644: result: $ac_cv_func_strerror_r_works" >&5
    34503645echo "${ECHO_T}$ac_cv_func_strerror_r_works" >&6
    34513646  if test $ac_cv_func_strerror_r_works = yes; then
     
    34613656do
    34623657as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    3463 echo "$as_me:3463: checking for $ac_func" >&5
     3658echo "$as_me:3658: checking for $ac_func" >&5
    34643659echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    34653660if eval "test \"\${$as_ac_var+set}\" = set"; then
     
    34673662else
    34683663  cat >conftest.$ac_ext <<_ACEOF
    3469 #line 3469 "configure"
     3664#line 3664 "configure"
    34703665#include "confdefs.h"
    34713666/* System header to define __stub macros and hopefully few prototypes,
     
    34983693_ACEOF
    34993694rm -f conftest.$ac_objext conftest$ac_exeext
    3500 if { (eval echo "$as_me:3500: \"$ac_link\"") >&5
     3695if { (eval echo "$as_me:3695: \"$ac_link\"") >&5
    35013696  (eval $ac_link) 2>&5
    35023697  ac_status=$?
    3503   echo "$as_me:3503: \$? = $ac_status" >&5
     3698  echo "$as_me:3698: \$? = $ac_status" >&5
    35043699  (exit $ac_status); } &&
    35053700         { ac_try='test -s conftest$ac_exeext'
    3506   { (eval echo "$as_me:3506: \"$ac_try\"") >&5
     3701  { (eval echo "$as_me:3701: \"$ac_try\"") >&5
    35073702  (eval $ac_try) 2>&5
    35083703  ac_status=$?
    3509   echo "$as_me:3509: \$? = $ac_status" >&5
     3704  echo "$as_me:3704: \$? = $ac_status" >&5
    35103705  (exit $ac_status); }; }; then
    35113706  eval "$as_ac_var=yes"
     
    35173712rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    35183713fi
    3519 echo "$as_me:3519: result: `eval echo '${'$as_ac_var'}'`" >&5
     3714echo "$as_me:3714: result: `eval echo '${'$as_ac_var'}'`" >&5
    35203715echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    35213716if test `eval echo '${'$as_ac_var'}'` = yes; then
     
    35303725CYGPATH=echo
    35313726
    3532     echo "$as_me:3532: checking for Tcl public headers" >&5
     3727    echo "$as_me:3727: checking for Tcl public headers" >&5
    35333728echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6
    35343729
     
    35433738            ac_cv_c_tclh=${with_tclinclude}
    35443739        else
    3545             { { echo "$as_me:3545: error: ${with_tclinclude} directory does not contain Tcl public header file tcl.h" >&5
     3740            { { echo "$as_me:3740: error: ${with_tclinclude} directory does not contain Tcl public header file tcl.h" >&5
    35463741echo "$as_me: error: ${with_tclinclude} directory does not contain Tcl public header file tcl.h" >&2;}
    35473742   { (exit 1); exit 1; }; }
     
    35773772
    35783773    if test x"${ac_cv_c_tclh}" = x ; then
    3579         { { echo "$as_me:3579: error: tcl.h not found.  Please specify its location with --with-tclinclude" >&5
     3774        { { echo "$as_me:3774: error: tcl.h not found.  Please specify its location with --with-tclinclude" >&5
    35803775echo "$as_me: error: tcl.h not found.  Please specify its location with --with-tclinclude" >&2;}
    35813776   { (exit 1); exit 1; }; }
    35823777    else
    3583         echo "$as_me:3583: result: ${ac_cv_c_tclh}" >&5
     3778        echo "$as_me:3778: result: ${ac_cv_c_tclh}" >&5
    35843779echo "${ECHO_T}${ac_cv_c_tclh}" >&6
    35853780    fi
     
    36083803  with_tclconfig=${withval}
    36093804fi;
    3610         echo "$as_me:3610: checking for Tcl configuration" >&5
     3805        echo "$as_me:3805: checking for Tcl configuration" >&5
    36113806echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
    36123807        if test "${ac_cv_c_tclconfig+set}" = set; then
     
    36193814                    ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
    36203815                else
    3621                     { { echo "$as_me:3621: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
     3816                    { { echo "$as_me:3816: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
    36223817echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
    36233818   { (exit 1); exit 1; }; }
     
    36733868        if test x"${ac_cv_c_tclconfig}" = x ; then
    36743869            TCL_BIN_DIR="# no Tcl configs found"
    3675             { echo "$as_me:3675: WARNING: Can't find Tcl configuration definitions" >&5
     3870            { echo "$as_me:3870: WARNING: Can't find Tcl configuration definitions" >&5
    36763871echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
    36773872            exit 0
     
    36793874            no_tcl=
    36803875            TCL_BIN_DIR=${ac_cv_c_tclconfig}
    3681             echo "$as_me:3681: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
     3876            echo "$as_me:3876: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
    36823877echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6
    36833878        fi
    36843879    fi
    36853880
    3686     echo "$as_me:3686: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
     3881    echo "$as_me:3881: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
    36873882echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6
    36883883
    36893884    if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
    3690         echo "$as_me:3690: result: loading" >&5
     3885        echo "$as_me:3885: result: loading" >&5
    36913886echo "${ECHO_T}loading" >&6
    36923887        . $TCL_BIN_DIR/tclConfig.sh
    36933888    else
    3694         echo "$as_me:3694: result: file not found" >&5
     3889        echo "$as_me:3889: result: file not found" >&5
    36953890echo "${ECHO_T}file not found" >&6
    36963891    fi
     
    37263921# Extract the first word of "tclsh tclsh$TCL_VERSION", so it can be a program name with args.
    37273922set dummy tclsh tclsh$TCL_VERSION; ac_word=$2
    3728 echo "$as_me:3728: checking for $ac_word" >&5
     3923echo "$as_me:3923: checking for $ac_word" >&5
    37293924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    37303925if test "${ac_cv_path_TCLSH+set}" = set; then
     
    37433938  if $as_executable_p "$ac_dir/$ac_word"; then
    37443939   ac_cv_path_TCLSH="$ac_dir/$ac_word"
    3745    echo "$as_me:3745: found $ac_dir/$ac_word" >&5
     3940   echo "$as_me:3940: found $ac_dir/$ac_word" >&5
    37463941   break
    37473942fi
     
    37543949
    37553950if test -n "$TCLSH"; then
    3756   echo "$as_me:3756: result: $TCLSH" >&5
     3951  echo "$as_me:3951: result: $TCLSH" >&5
    37573952echo "${ECHO_T}$TCLSH" >&6
    37583953else
    3759   echo "$as_me:3759: result: no" >&5
     3954  echo "$as_me:3954: result: no" >&5
    37603955echo "${ECHO_T}no" >&6
    37613956fi
     
    37633958# Check for Tcl package path
    37643959
    3765     echo "$as_me:3765: checking for Tcl package directory" >&5
     3960    echo "$as_me:3960: checking for Tcl package directory" >&5
    37663961echo $ECHO_N "checking for Tcl package directory... $ECHO_C" >&6
    37673962
     
    38144009
    38154010    if test x"${ac_cv_c_tclpkgd}" = x ; then
    3816         { { echo "$as_me:3816: error: Tcl package directory not found.  Please specify its location with --with-tclpackagedir" >&5
     4011        { { echo "$as_me:4011: error: Tcl package directory not found.  Please specify its location with --with-tclpackagedir" >&5
    38174012echo "$as_me: error: Tcl package directory not found.  Please specify its location with --with-tclpackagedir" >&2;}
    38184013   { (exit 1); exit 1; }; }
    38194014    else
    3820         echo "$as_me:3820: result: ${ac_cv_c_tclpkgd}" >&5
     4015        echo "$as_me:4015: result: ${ac_cv_c_tclpkgd}" >&5
    38214016echo "${ECHO_T}${ac_cv_c_tclpkgd}" >&6
    38224017    fi
     
    38304025# Allows building of shared libraries
    38314026
    3832     echo "$as_me:3832: checking how to build libraries" >&5
     4027    echo "$as_me:4027: checking how to build libraries" >&5
    38334028echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6
    38344029    # Check whether --enable-shared or --disable-shared was given.
     
    38484043
    38494044    if test "$tcl_ok" = "yes" ; then
    3850         echo "$as_me:3850: result: shared" >&5
     4045        echo "$as_me:4045: result: shared" >&5
    38514046echo "${ECHO_T}shared" >&6
    38524047        SHARED_BUILD=1
    38534048    else
    3854         echo "$as_me:3854: result: static" >&5
     4049        echo "$as_me:4049: result: static" >&5
    38554050echo "${ECHO_T}static" >&6
    38564051        SHARED_BUILD=0
     
    39734168ac_clean_files_save=$ac_clean_files
    39744169ac_clean_files="$ac_clean_files $CONFIG_STATUS"
    3975 { echo "$as_me:3975: creating $CONFIG_STATUS" >&5
     4170{ echo "$as_me:4170: creating $CONFIG_STATUS" >&5
    39764171echo "$as_me: creating $CONFIG_STATUS" >&6;}
    39774172cat >$CONFIG_STATUS <<_ACEOF
     
    41464341  --he | --h)
    41474342    # Conflict between --help and --header
    4148     { { echo "$as_me:4148: error: ambiguous option: $1
     4343    { { echo "$as_me:4343: error: ambiguous option: $1
    41494344Try \`$0 --help' for more information." >&5
    41504345echo "$as_me: error: ambiguous option: $1
     
    41654360
    41664361  # This is an error.
    4167   -*) { { echo "$as_me:4167: error: unrecognized option: $1
     4362  -*) { { echo "$as_me:4362: error: unrecognized option: $1
    41684363Try \`$0 --help' for more information." >&5
    41694364echo "$as_me: error: unrecognized option: $1
     
    42104405  "src/port/portindex" ) CONFIG_FILES="$CONFIG_FILES src/port/portindex:src/port/portindex.tcl" ;;
    42114406  "src/pextlib1.0/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/pextlib1.0/config.h" ;;
    4212   *) { { echo "$as_me:4212: error: invalid argument: $ac_config_target" >&5
     4407  *) { { echo "$as_me:4407: error: invalid argument: $ac_config_target" >&5
    42134408echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
    42144409   { (exit 1); exit 1; }; };;
     
    43144509s,@INSTALL_DATA@,$INSTALL_DATA,;t t
    43154510s,@SET_MAKE@,$SET_MAKE,;t t
    4316 s,@MD5@,$MD5,;t t
     4511s,@MTREE@,$MTREE,;t t
    43174512s,@subdirs@,$subdirs,;t t
    4318 s,@MTREE@,$MTREE,;t t
    43194513s,@REPLACEMENT_PROGS@,$REPLACEMENT_PROGS,;t t
     4514s,@CPP@,$CPP,;t t
     4515s,@MD5_LIBS@,$MD5_LIBS,;t t
    43204516s,@DPORTSDIR@,$DPORTSDIR,;t t
    43214517s,@PORTCONFIGDIR@,$PORTCONFIGDIR,;t t
    43224518s,@DSTUSR@,$DSTUSR,;t t
    43234519s,@DSTGRP@,$DSTGRP,;t t
    4324 s,@CPP@,$CPP,;t t
    43254520s,@TCL_INCLUDES@,$TCL_INCLUDES,;t t
    43264521s,@TCL_VERSION@,$TCL_VERSION,;t t
     
    44614656
    44624657  if test x"$ac_file" != x-; then
    4463     { echo "$as_me:4463: creating $ac_file" >&5
     4658    { echo "$as_me:4658: creating $ac_file" >&5
    44644659echo "$as_me: creating $ac_file" >&6;}
    44654660    rm -f "$ac_file"
     
    44794674      [\\/$]*)
    44804675         # Absolute (can't be DOS-style, as IFS=:)
    4481          test -f "$f" || { { echo "$as_me:4481: error: cannot find input file: $f" >&5
     4676         test -f "$f" || { { echo "$as_me:4676: error: cannot find input file: $f" >&5
    44824677echo "$as_me: error: cannot find input file: $f" >&2;}
    44834678   { (exit 1); exit 1; }; }
     
    44924687         else
    44934688           # /dev/null tree
    4494            { { echo "$as_me:4494: error: cannot find input file: $f" >&5
     4689           { { echo "$as_me:4689: error: cannot find input file: $f" >&5
    44954690echo "$as_me: error: cannot find input file: $f" >&2;}
    44964691   { (exit 1); exit 1; }; }
     
    45534748  esac
    45544749
    4555   test x"$ac_file" != x- && { echo "$as_me:4555: creating $ac_file" >&5
     4750  test x"$ac_file" != x- && { echo "$as_me:4750: creating $ac_file" >&5
    45564751echo "$as_me: creating $ac_file" >&6;}
    45574752
     
    45644759      [\\/$]*)
    45654760         # Absolute (can't be DOS-style, as IFS=:)
    4566          test -f "$f" || { { echo "$as_me:4566: error: cannot find input file: $f" >&5
     4761         test -f "$f" || { { echo "$as_me:4761: error: cannot find input file: $f" >&5
    45674762echo "$as_me: error: cannot find input file: $f" >&2;}
    45684763   { (exit 1); exit 1; }; }
     
    45774772         else
    45784773           # /dev/null tree
    4579            { { echo "$as_me:4579: error: cannot find input file: $f" >&5
     4774           { { echo "$as_me:4774: error: cannot find input file: $f" >&5
    45804775echo "$as_me: error: cannot find input file: $f" >&2;}
    45814776   { (exit 1); exit 1; }; }
     
    46944889  if test x"$ac_file" != x-; then
    46954890    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
    4696       { echo "$as_me:4696: $ac_file is unchanged" >&5
     4891      { echo "$as_me:4891: $ac_file is unchanged" >&5
    46974892echo "$as_me: $ac_file is unchanged" >&6;}
    46984893    else
     
    47984993    test -d $srcdir/$ac_subdir || continue
    47994994
    4800     { echo "$as_me:4800: configuring in $ac_subdir" >&5
     4995    { echo "$as_me:4995: configuring in $ac_subdir" >&5
    48014996echo "$as_me: configuring in $ac_subdir" >&6;}
    48024997    case $srcdir in
     
    48205015       if test -d ./$ac_subdir; then :;
    48215016       else
    4822          { { echo "$as_me:4822: error: cannot create \`pwd\`/$ac_subdir" >&5
     5017         { { echo "$as_me:5017: error: cannot create \`pwd\`/$ac_subdir" >&5
    48235018echo "$as_me: error: cannot create \`pwd\`/$ac_subdir" >&2;}
    48245019   { (exit 1); exit 1; }; }
     
    48515046      ac_sub_configure=$ac_configure
    48525047    else
    4853       { echo "$as_me:4853: WARNING: no configuration information is in $ac_subdir" >&5
     5048      { echo "$as_me:5048: WARNING: no configuration information is in $ac_subdir" >&5
    48545049echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2;}
    48555050      ac_sub_configure=
     
    48655060      esac
    48665061
    4867       { echo "$as_me:4867: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" >&5
     5062      { echo "$as_me:5062: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" >&5
    48685063echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" >&6;}
    48695064      # The eval makes quoting arguments work.
    48705065      eval $ac_sub_configure $ac_sub_configure_args \
    48715066           --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir ||
    4872         { { echo "$as_me:4872: error: $ac_sub_configure failed for $ac_subdir" >&5
     5067        { { echo "$as_me:5067: error: $ac_sub_configure failed for $ac_subdir" >&5
    48735068echo "$as_me: error: $ac_sub_configure failed for $ac_subdir" >&2;}
    48745069   { (exit 1); exit 1; }; }
  • trunk/base/configure.ac

    r3280 r3284  
    1111AC_PROG_MAKE_SET
    1212
    13 OD_PROG_MD5
    1413OD_PROG_MTREE
    1514
    1615AC_SUBST(REPLACEMENT_PROGS)
     16
     17# Check for md5 implementation
     18OD_LIB_MD5
    1719
    1820# Check for paths
     
    3941AC_FUNC_STRERROR_R
    4042AC_CHECK_FUNCS([bzero memset dup2 regcomp strdup strerror strtol fgetln lockf flock])
    41 
    4243
    4344# Check for Tcl public headers
  • trunk/base/src/pextlib1.0/config.h.in

    r2844 r3284  
    3535#undef HAVE_INTTYPES_H
    3636
     37/* Define if you have the `crypto' library (-lcrypto). */
     38#undef HAVE_LIBCRYPTO
     39
     40/* Define if you have the `md' library (-lmd). */
     41#undef HAVE_LIBMD
     42
    3743/* Define if you have the <limits.h> header file. */
    3844#undef HAVE_LIMITS_H
     
    4046/* Define if you have the `lockf' function. */
    4147#undef HAVE_LOCKF
     48
     49/* Define if you have the <md5.h> header file. */
     50#undef HAVE_MD5_H
    4251
    4352/* Define if you have the <memory.h> header file. */
     
    4958/* Define if you have the <ndir.h> header file, and it defines `DIR'. */
    5059#undef HAVE_NDIR_H
     60
     61/* Define if you have the <openssl/md5.h> header file. */
     62#undef HAVE_OPENSSL_MD5_H
    5163
    5264/* Define if you have the <paths.h> header file. */
Note: See TracChangeset for help on using the changeset viewer.