~ubuntu-branches/debian/squeeze/ntp/squeeze-201010051545

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2009-01-05 21:10:03 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090105211003-mh6zc3um4k1uhsj7
Tags: 1:4.2.4p4+dfsg-8
It did not properly check the return value of EVP_VerifyFinal
which results in an malformed DSA signature being treated as
a good signature rather than as an error.  (CVE-2009-0021)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.59 for ntp 4.2.0a.
 
3
# Generated by GNU Autoconf 2.59 for ntp 4.2.4p4.
4
4
#
5
5
# Copyright (C) 2003 Free Software Foundation, Inc.
6
6
# This configure script is free software; the Free Software Foundation
241
241
$as_unset CDPATH
242
242
 
243
243
 
 
244
 
 
245
# Check that we are running under the correct shell.
 
246
SHELL=${CONFIG_SHELL-/bin/sh}
 
247
 
 
248
case X$ECHO in
 
249
X*--fallback-echo)
 
250
  # Remove one level of quotation (which was required for Make).
 
251
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
252
  ;;
 
253
esac
 
254
 
 
255
echo=${ECHO-echo}
 
256
if test "X$1" = X--no-reexec; then
 
257
  # Discard the --no-reexec flag, and continue.
 
258
  shift
 
259
elif test "X$1" = X--fallback-echo; then
 
260
  # Avoid inline document here, it may be left over
 
261
  :
 
262
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
263
  # Yippee, $echo works!
 
264
  :
 
265
else
 
266
  # Restart under the correct shell.
 
267
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
268
fi
 
269
 
 
270
if test "X$1" = X--fallback-echo; then
 
271
  # used as fallback echo
 
272
  shift
 
273
  cat <<EOF
 
274
$*
 
275
EOF
 
276
  exit 0
 
277
fi
 
278
 
 
279
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
280
# if CDPATH is set.
 
281
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
282
 
 
283
if test -z "$ECHO"; then
 
284
if test "X${echo_test_string+set}" != Xset; then
 
285
# find a string as large as possible, as long as the shell can cope with it
 
286
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
287
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
288
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
289
       echo_test_string=`eval $cmd` &&
 
290
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
291
    then
 
292
      break
 
293
    fi
 
294
  done
 
295
fi
 
296
 
 
297
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
298
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
299
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
300
  :
 
301
else
 
302
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
303
  # backslashes.  This makes it impossible to quote backslashes using
 
304
  #   echo "$something" | sed 's/\\/\\\\/g'
 
305
  #
 
306
  # So, first we look for a working echo in the user's PATH.
 
307
 
 
308
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
309
  for dir in $PATH /usr/ucb; do
 
310
    IFS="$lt_save_ifs"
 
311
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
312
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
313
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
314
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
315
      echo="$dir/echo"
 
316
      break
 
317
    fi
 
318
  done
 
319
  IFS="$lt_save_ifs"
 
320
 
 
321
  if test "X$echo" = Xecho; then
 
322
    # We didn't find a better echo, so look for alternatives.
 
323
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
324
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
325
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
326
      # This shell has a builtin print -r that does the trick.
 
327
      echo='print -r'
 
328
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
329
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
330
      # If we have ksh, try running configure again with it.
 
331
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
332
      export ORIGINAL_CONFIG_SHELL
 
333
      CONFIG_SHELL=/bin/ksh
 
334
      export CONFIG_SHELL
 
335
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
336
    else
 
337
      # Try using printf.
 
338
      echo='printf %s\n'
 
339
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
340
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
341
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
342
        # Cool, printf works
 
343
        :
 
344
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
345
           test "X$echo_testing_string" = 'X\t' &&
 
346
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
347
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
348
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
349
        export CONFIG_SHELL
 
350
        SHELL="$CONFIG_SHELL"
 
351
        export SHELL
 
352
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
353
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
354
           test "X$echo_testing_string" = 'X\t' &&
 
355
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
356
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
357
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
358
      else
 
359
        # maybe with a smaller string...
 
360
        prev=:
 
361
 
 
362
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
363
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
364
          then
 
365
            break
 
366
          fi
 
367
          prev="$cmd"
 
368
        done
 
369
 
 
370
        if test "$prev" != 'sed 50q "$0"'; then
 
371
          echo_test_string=`eval $prev`
 
372
          export echo_test_string
 
373
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
374
        else
 
375
          # Oops.  We lost completely, so just stick with echo.
 
376
          echo=echo
 
377
        fi
 
378
      fi
 
379
    fi
 
380
  fi
 
381
fi
 
382
fi
 
383
 
 
384
# Copy echo and quote the copy suitably for passing to libtool from
 
385
# the Makefile, instead of quoting the original, which is used later.
 
386
ECHO=$echo
 
387
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
388
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
389
fi
 
390
 
 
391
 
 
392
 
 
393
 
 
394
tagnames=${tagnames+${tagnames},}CXX
 
395
 
 
396
tagnames=${tagnames+${tagnames},}F77
 
397
 
244
398
# Name of the host.
245
399
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246
400
# so uname gets run too.
267
421
# Identity of this package.
268
422
PACKAGE_NAME='ntp'
269
423
PACKAGE_TARNAME='ntp'
270
 
PACKAGE_VERSION='4.2.0a'
271
 
PACKAGE_STRING='ntp 4.2.0a'
 
424
PACKAGE_VERSION='4.2.4p4'
 
425
PACKAGE_STRING='ntp 4.2.4p4'
272
426
PACKAGE_BUGREPORT=''
273
427
 
274
428
# Factoring default headers for most tests.
309
463
#endif"
310
464
 
311
465
ac_subdirs_all="$ac_subdirs_all arlib"
312
 
ac_subdirs_all="$ac_subdirs_all sntp"
313
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LN_S RANLIB ac_ct_RANLIB PATH_SH PATH_PERL READLINE_LIBS U ANSI2KNR LIBOBJS LIBPARSE MAKE_LIBPARSE MAKE_LIBPARSE_KERNEL MAKE_CHECK_Y2K OPENSSL OPENSSL_INC OPENSSL_LIB MAKE_NTP_KEYGEN LCRYPTO EF_PROGS EF_LIBS MAKE_SNTP TESTDCF DCFD MAKE_PARSEKMODULE PROPDELAY CHUTEST CLKTEST MAKE_ADJTIMED MAKE_NTPTIME MAKE_TICKADJ MAKE_TIMETRIM MAKE_LIBNTPSIM MAKE_NTPDSIM ARLIB_DIR subdirs LTLIBOBJS'
 
466
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LIBOPTS_DIR INSTALL_LIBOPTS_TRUE INSTALL_LIBOPTS_FALSE NEED_LIBOPTS_TRUE NEED_LIBOPTS_FALSE LIBOPTS_LDADD LIBOPTS_CFLAGS BINSUBDIR subdirs ARLIB_DIR LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PATH_SH PATH_PERL READLINE_LIBS U ANSI2KNR LIBPARSE MAKE_LIBPARSE MAKE_LIBPARSE_KERNEL MAKE_CHECK_Y2K OPENSSL OPENSSL_INC OPENSSL_LIB LCRYPTO EF_PROGS EF_LIBS MAKE_CHECK_LAYOUT TESTDCF DCFD MAKE_PARSEKMODULE PROPDELAY CHUTEST CLKTEST MAKE_ADJTIMED MAKE_NTPTIME MAKE_TICKADJ MAKE_TIMETRIM MAKE_LIBNTPSIM MAKE_NTPDSIM LIBOBJS LTLIBOBJS'
314
467
ac_subst_files=''
315
468
 
316
469
# Initialize some variables set by options.
771
924
ac_env_CPP_value=$CPP
772
925
ac_cv_env_CPP_set=${CPP+set}
773
926
ac_cv_env_CPP_value=$CPP
 
927
ac_env_CXX_set=${CXX+set}
 
928
ac_env_CXX_value=$CXX
 
929
ac_cv_env_CXX_set=${CXX+set}
 
930
ac_cv_env_CXX_value=$CXX
 
931
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
932
ac_env_CXXFLAGS_value=$CXXFLAGS
 
933
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
934
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
935
ac_env_CXXCPP_set=${CXXCPP+set}
 
936
ac_env_CXXCPP_value=$CXXCPP
 
937
ac_cv_env_CXXCPP_set=${CXXCPP+set}
 
938
ac_cv_env_CXXCPP_value=$CXXCPP
 
939
ac_env_F77_set=${F77+set}
 
940
ac_env_F77_value=$F77
 
941
ac_cv_env_F77_set=${F77+set}
 
942
ac_cv_env_F77_value=$F77
 
943
ac_env_FFLAGS_set=${FFLAGS+set}
 
944
ac_env_FFLAGS_value=$FFLAGS
 
945
ac_cv_env_FFLAGS_set=${FFLAGS+set}
 
946
ac_cv_env_FFLAGS_value=$FFLAGS
774
947
 
775
948
#
776
949
# Report the --help message.
779
952
  # Omit some internal or obsolete options to make the list less imposing.
780
953
  # This message is too long to be a string in the A/UX 3.1 sh.
781
954
  cat <<_ACEOF
782
 
\`configure' configures ntp 4.2.0a to adapt to many kinds of systems.
 
955
\`configure' configures ntp 4.2.4p4 to adapt to many kinds of systems.
783
956
 
784
957
Usage: $0 [OPTION]... [VAR=VALUE]...
785
958
 
845
1018
 
846
1019
if test -n "$ac_init_help"; then
847
1020
  case $ac_init_help in
848
 
     short | recursive ) echo "Configuration of ntp 4.2.0a:";;
 
1021
     short | recursive ) echo "Configuration of ntp 4.2.4p4:";;
849
1022
   esac
850
1023
  cat <<\_ACEOF
851
1024
 
852
1025
Optional Features:
853
1026
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
854
1027
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
855
 
  --disable-dependency-tracking Speeds up one-time builds
856
 
  --enable-dependency-tracking  Do not reject slow dependency extractors
857
 
  --enable-clockctl       Use /dev/clockctl for non-root clock control
858
 
  --enable-linuxcaps      Use Linux capabilities for non-root clock control
 
1028
  --disable-dependency-tracking  speeds up one-time build
 
1029
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1030
  --enable-local-libopts  Force using the supplied libopts tearoff code
 
1031
  --disable-libopts-install
 
1032
                          Do not install libopts with client installation
 
1033
  --disable-optional-args not wanting optional option args
 
1034
  --enable-clockctl       s Use /dev/clockctl for non-root clock control
 
1035
  --enable-linuxcaps      s Use Linux capabilities for non-root clock control
 
1036
  --enable-shared[=PKGS]
 
1037
                          build shared libraries [default=no]
 
1038
  --enable-static[=PKGS]
 
1039
                          build static libraries [default=yes]
 
1040
  --enable-fast-install[=PKGS]
 
1041
                          optimize for fast installation [default=yes]
 
1042
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1043
  --enable-getifaddrs     s Enable the use of getifaddrs() [yes|no|glibc].
 
1044
                          glibc: Use getifaddrs() in glibc if you know it
 
1045
                          supports IPv6.
859
1046
  --enable-debugging      + include debugging code
 
1047
  --enable-debug-timing   - include processing time debugging code (costs
 
1048
                          performance)
860
1049
  --enable-dst-minutes=60 + minutes per DST adjustment
861
1050
  --enable-BANCOMM        - Datum/Bancomm bc635/VME interface
862
1051
  --enable-GPSVME         - TrueTime GPS receiver/VME interface
881
1070
  --enable-JUPITER        s Rockwell Jupiter GPS receiver
882
1071
  --enable-LEITCH         + Leitch CSD 5300 Master Clock System Driver
883
1072
  --enable-LOCAL-CLOCK    + local clock reference
884
 
  --enable-MSFEES         + EES M201 MSF receiver
885
1073
  --enable-MX4200         s Magnavox MX4200 GPS receiver
886
1074
  --enable-NEOCLOCK4X     + NeoClock4X DCF77 / TDF receiver
887
1075
  --enable-NMEA           + NMEA GPS receiver
889
1077
  --enable-PALISADE       s Palisade clock
890
1078
  --enable-PCF            + Conrad parallel port radio clock
891
1079
  --enable-PST            + PST/Traconex 1020 WWV/WWVH receiver
892
 
  --enable-PTBACTS        s PTB modem service
893
1080
  --enable-RIPENCC        - RIPENCC specific Trimble driver
894
1081
  --enable-SHM            s SHM clock attached thru shared memory
895
1082
  --enable-SPECTRACOM     + Spectracom 8170/Netclock/2 WWVB receiver
896
1083
  --enable-TPRO           s KSI/Odetics TPRO/S GPS receiver/IRIG interface
897
 
  --enable-TRAK           + TRAK 8810 GPS receiver
898
1084
  --enable-TRUETIME       s Kinemetrics/TrueTime receivers
899
1085
  --enable-TT560          - TrueTime 560 IRIG-B decoder
900
1086
  --enable-ULINK          + Ultralink WWVB receiver
901
 
  --enable-USNO           s USNO modem service
902
1087
  --enable-WWV            s WWV Audio receiver
903
1088
  --enable-ZYFER          + Zyfer GPStarplus receiver
904
1089
  --enable-parse-clocks   - include all suitable PARSE clocks:
919
1104
  --enable-tick=VALUE     s force a value for 'tick'
920
1105
  --enable-tickadj=VALUE  s force a value for 'tickadj'
921
1106
  --enable-simulator      - build/install the NTPD simulator?
922
 
  --enable-udp-wildcard   s use UDP wildcard delivery
923
1107
  --enable-slew-always    s always slew the time
924
1108
  --enable-step-slew      s step and slew the time
925
1109
  --enable-ntpdate-step   s if ntpdate should step the time
928
1112
  --enable-kernel-fll-bug s if we should avoid a kernel FLL bug
929
1113
  --enable-irig-sawtooth  s if we should enable the IRIG sawtooth filter
930
1114
  --enable-nist           - if we should enable the NIST lockclock scheme
931
 
  --enable-errorcache     - if we should enable caching bad IP destinations
932
 
  --enable-ipv6           use IPv6?
 
1115
  --enable-ipv6           s use IPv6?
933
1116
 
934
1117
Optional Packages:
935
1118
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
936
1119
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1120
  --with-autoopts-config  specify the config-info script
 
1121
  --with-regex-header     a reg expr header is specified
 
1122
  --with-libregex         libregex installation prefix
 
1123
  --with-libregex-cflags  libregex compile flags
 
1124
  --with-libregex-libs    libregex link command arguments
 
1125
  --with-binsubdir        bin ={bin,sbin}
 
1126
  --with-arlib            - Compile the async resolver library?
 
1127
  --without-rpath         s Disable auto-added -R linker paths
 
1128
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1129
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1130
                          both]
 
1131
  --with-tags[=TAGS]
 
1132
                          include additional configurations [automatic]
937
1133
  --with-openssl-libdir   + =/something/reasonable
938
1134
  --with-openssl-incdir   + =/something/reasonable
939
1135
  --with-crypto           + =openssl
940
1136
  --with-electricfence    - compile with ElectricFence malloc debugger
941
 
  --with-sntp             - Build SNTP?
942
 
  --with-kame=PATH      use Kame IPv6 default path /usr/local/v6
943
 
  --with-arlib            - Compile the async resolver library?
 
1137
  --with-kame             - =/usr/local/v6
944
1138
 
945
1139
Some influential environment variables:
946
1140
  CC          C compiler command
950
1144
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
951
1145
              headers in a nonstandard directory <include dir>
952
1146
  CPP         C preprocessor
 
1147
  CXX         C++ compiler command
 
1148
  CXXFLAGS    C++ compiler flags
 
1149
  CXXCPP      C++ preprocessor
 
1150
  F77         Fortran 77 compiler command
 
1151
  FFLAGS      Fortran 77 compiler flags
953
1152
 
954
1153
Use these variables to override the choices made by `configure' or to help
955
1154
it to find libraries and programs with nonstandard names/locations.
1042
1241
    else
1043
1242
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1044
1243
    fi
1045
 
    cd "$ac_popdir"
 
1244
    cd $ac_popdir
1046
1245
  done
1047
1246
fi
1048
1247
 
1049
1248
test -n "$ac_init_help" && exit 0
1050
1249
if $ac_init_version; then
1051
1250
  cat <<\_ACEOF
1052
 
ntp configure 4.2.0a
 
1251
ntp configure 4.2.4p4
1053
1252
generated by GNU Autoconf 2.59
1054
1253
 
1055
1254
Copyright (C) 2003 Free Software Foundation, Inc.
1063
1262
This file contains any messages produced by compilers while
1064
1263
running configure, to aid debugging if configure makes a mistake.
1065
1264
 
1066
 
It was created by ntp $as_me 4.2.0a, which was
 
1265
It was created by ntp $as_me 4.2.4p4, which was
1067
1266
generated by GNU Autoconf 2.59.  Invocation command line was
1068
1267
 
1069
1268
  $ $0 $@
1399
1598
 
1400
1599
 
1401
1600
 
1402
 
am__api_version="1.7"
 
1601
am__api_version="1.9"
1403
1602
ac_aux_dir=
1404
1603
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1405
1604
  if test -f $ac_dir/install-sh; then
1562
1761
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1563
1762
rm conftest.sed
1564
1763
 
1565
 
 
1566
1764
# expand $ac_aux_dir to an absolute path
1567
1765
am_aux_dir=`cd $ac_aux_dir && pwd`
1568
1766
 
1576
1774
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1577
1775
fi
1578
1776
 
 
1777
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
1778
  # We used to keeping the `.' as first argument, in order to
 
1779
  # allow $(mkdir_p) to be used without argument.  As in
 
1780
  #   $(mkdir_p) $(somedir)
 
1781
  # where $(somedir) is conditionally defined.  However this is wrong
 
1782
  # for two reasons:
 
1783
  #  1. if the package is installed by a user who cannot write `.'
 
1784
  #     make install will fail,
 
1785
  #  2. the above comment should most certainly read
 
1786
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
1787
  #     so it does not work when $(somedir) is undefined and
 
1788
  #     $(DESTDIR) is not.
 
1789
  #  To support the latter case, we have to write
 
1790
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
1791
  #  so the `.' trick is pointless.
 
1792
  mkdir_p='mkdir -p --'
 
1793
else
 
1794
  # On NextStep and OpenStep, the `mkdir' command does not
 
1795
  # recognize any option.  It will interpret all options as
 
1796
  # directories to create, and then abort because `.' already
 
1797
  # exists.
 
1798
  for d in ./-p ./--version;
 
1799
  do
 
1800
    test -d $d && rmdir $d
 
1801
  done
 
1802
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
1803
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
1804
    mkdir_p='$(mkinstalldirs)'
 
1805
  else
 
1806
    mkdir_p='$(install_sh) -d'
 
1807
  fi
 
1808
fi
 
1809
 
1579
1810
for ac_prog in gawk mawk nawk awk
1580
1811
do
1581
1812
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1654
1885
fi
1655
1886
rmdir .tst 2>/dev/null
1656
1887
 
1657
 
 # test to see if srcdir already configured
 
1888
# test to see if srcdir already configured
1658
1889
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1659
1890
   test -f $srcdir/config.status; then
1660
1891
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1674
1905
 
1675
1906
# Define the identity of the package.
1676
1907
 PACKAGE='ntp'
1677
 
 VERSION='4.2.0a'
 
1908
 VERSION='4.2.4p4'
1678
1909
 
1679
1910
 
1680
1911
cat >>confdefs.h <<_ACEOF
1702
1933
 
1703
1934
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1704
1935
 
1705
 
 
1706
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
1707
 
 
1708
1936
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1709
1937
 
1710
1938
# Installed binaries are usually stripped using `strip' when the user
1797
2025
 
1798
2026
# We need awk for the "check" target.  The system "awk" is bad on
1799
2027
# some platforms.
 
2028
# Always define AMTAR for backward compatibility.
 
2029
 
 
2030
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2031
 
 
2032
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2033
 
 
2034
 
1800
2035
 
1801
2036
 
1802
2037
 
1865
2100
 
1866
2101
ac_cv_var_atom_ok=no
1867
2102
ac_cv_var_oncore_ok=no
 
2103
ac_cv_var_parse_ok=no
1868
2104
ac_cv_var_ripe_ncc_ok=no
1869
2105
ac_cv_var_jupiter_ok=no
1870
2106
 
2503
2739
  cat conftest.err >&5
2504
2740
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505
2741
  (exit $ac_status); } &&
2506
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2742
         { ac_try='test -z "$ac_c_werror_flag"
 
2743
                         || test ! -s conftest.err'
2507
2744
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508
2745
  (eval $ac_try) 2>&5
2509
2746
  ac_status=$?
2561
2798
  cat conftest.err >&5
2562
2799
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563
2800
  (exit $ac_status); } &&
2564
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2801
         { ac_try='test -z "$ac_c_werror_flag"
 
2802
                         || test ! -s conftest.err'
2565
2803
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566
2804
  (eval $ac_try) 2>&5
2567
2805
  ac_status=$?
2677
2915
  cat conftest.err >&5
2678
2916
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679
2917
  (exit $ac_status); } &&
2680
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2918
         { ac_try='test -z "$ac_c_werror_flag"
 
2919
                         || test ! -s conftest.err'
2681
2920
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682
2921
  (eval $ac_try) 2>&5
2683
2922
  ac_status=$?
2731
2970
  cat conftest.err >&5
2732
2971
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733
2972
  (exit $ac_status); } &&
2734
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2973
         { ac_try='test -z "$ac_c_werror_flag"
 
2974
                         || test ! -s conftest.err'
2735
2975
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736
2976
  (eval $ac_try) 2>&5
2737
2977
  ac_status=$?
2776
3016
  cat conftest.err >&5
2777
3017
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778
3018
  (exit $ac_status); } &&
2779
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3019
         { ac_try='test -z "$ac_c_werror_flag"
 
3020
                         || test ! -s conftest.err'
2780
3021
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781
3022
  (eval $ac_try) 2>&5
2782
3023
  ac_status=$?
2820
3061
  cat conftest.err >&5
2821
3062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822
3063
  (exit $ac_status); } &&
2823
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3064
         { ac_try='test -z "$ac_c_werror_flag"
 
3065
                         || test ! -s conftest.err'
2824
3066
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2825
3067
  (eval $ac_try) 2>&5
2826
3068
  ac_status=$?
2900
3142
    : > sub/conftest.c
2901
3143
    for i in 1 2 3 4 5 6; do
2902
3144
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2903
 
      : > sub/conftst$i.h
 
3145
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3146
      # Solaris 8's {/usr,}/bin/sh.
 
3147
      touch sub/conftst$i.h
2904
3148
    done
2905
3149
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2906
3150
 
2928
3172
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2929
3173
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2930
3174
      # icc doesn't choke on unknown options, it will just issue warnings
2931
 
      # (even with -Werror).  So we grep stderr for any message
2932
 
      # that says an option was ignored.
2933
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
3175
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3176
      # that says an option was ignored or not supported.
 
3177
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3178
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3179
      # The diagnosis changed in icc 8.0:
 
3180
      #   icc: Command line remark: option '-MP' not supported
 
3181
      if (grep 'ignoring option' conftest.err ||
 
3182
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2934
3183
        am_cv_CC_dependencies_compiler_type=$depmode
2935
3184
        break
2936
3185
      fi
3274
3523
  cat conftest.err >&5
3275
3524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276
3525
  (exit $ac_status); } &&
3277
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3526
         { ac_try='test -z "$ac_c_werror_flag"
 
3527
                         || test ! -s conftest.err'
3278
3528
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3279
3529
  (eval $ac_try) 2>&5
3280
3530
  ac_status=$?
3444
3694
  cat conftest.err >&5
3445
3695
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446
3696
  (exit $ac_status); } &&
3447
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3697
         { ac_try='test -z "$ac_c_werror_flag"
 
3698
                         || test ! -s conftest.err'
3448
3699
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449
3700
  (eval $ac_try) 2>&5
3450
3701
  ac_status=$?
3507
3758
  cat conftest.err >&5
3508
3759
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509
3760
  (exit $ac_status); } &&
3510
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3761
         { ac_try='test -z "$ac_c_werror_flag"
 
3762
                         || test ! -s conftest.err'
3511
3763
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512
3764
  (eval $ac_try) 2>&5
3513
3765
  ac_status=$?
4006
4258
  cat conftest.err >&5
4007
4259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008
4260
  (exit $ac_status); } &&
4009
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4261
         { ac_try='test -z "$ac_c_werror_flag"
 
4262
                         || test ! -s conftest.err'
4010
4263
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4011
4264
  (eval $ac_try) 2>&5
4012
4265
  ac_status=$?
4064
4317
  cat conftest.err >&5
4065
4318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066
4319
  (exit $ac_status); } &&
4067
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4320
         { ac_try='test -z "$ac_c_werror_flag"
 
4321
                         || test ! -s conftest.err'
4068
4322
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069
4323
  (eval $ac_try) 2>&5
4070
4324
  ac_status=$?
4180
4434
  cat conftest.err >&5
4181
4435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182
4436
  (exit $ac_status); } &&
4183
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4437
         { ac_try='test -z "$ac_c_werror_flag"
 
4438
                         || test ! -s conftest.err'
4184
4439
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185
4440
  (eval $ac_try) 2>&5
4186
4441
  ac_status=$?
4234
4489
  cat conftest.err >&5
4235
4490
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236
4491
  (exit $ac_status); } &&
4237
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4492
         { ac_try='test -z "$ac_c_werror_flag"
 
4493
                         || test ! -s conftest.err'
4238
4494
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4239
4495
  (eval $ac_try) 2>&5
4240
4496
  ac_status=$?
4279
4535
  cat conftest.err >&5
4280
4536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281
4537
  (exit $ac_status); } &&
4282
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4538
         { ac_try='test -z "$ac_c_werror_flag"
 
4539
                         || test ! -s conftest.err'
4283
4540
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4284
4541
  (eval $ac_try) 2>&5
4285
4542
  ac_status=$?
4323
4580
  cat conftest.err >&5
4324
4581
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325
4582
  (exit $ac_status); } &&
4326
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4583
         { ac_try='test -z "$ac_c_werror_flag"
 
4584
                         || test ! -s conftest.err'
4327
4585
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4328
4586
  (eval $ac_try) 2>&5
4329
4587
  ac_status=$?
4403
4661
    : > sub/conftest.c
4404
4662
    for i in 1 2 3 4 5 6; do
4405
4663
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4406
 
      : > sub/conftst$i.h
 
4664
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4665
      # Solaris 8's {/usr,}/bin/sh.
 
4666
      touch sub/conftst$i.h
4407
4667
    done
4408
4668
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4409
4669
 
4431
4691
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4432
4692
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4433
4693
      # icc doesn't choke on unknown options, it will just issue warnings
4434
 
      # (even with -Werror).  So we grep stderr for any message
4435
 
      # that says an option was ignored.
4436
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
4694
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4695
      # that says an option was ignored or not supported.
 
4696
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4697
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4698
      # The diagnosis changed in icc 8.0:
 
4699
      #   icc: Command line remark: option '-MP' not supported
 
4700
      if (grep 'ignoring option' conftest.err ||
 
4701
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4437
4702
        am_cv_CC_dependencies_compiler_type=$depmode
4438
4703
        break
4439
4704
      fi
4464
4729
fi
4465
4730
 
4466
4731
 
 
4732
# Ralf Wildenhues: With per-target flags we need CC_C_O
 
4733
if test "x$CC" != xcc; then
 
4734
  echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
 
4735
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
 
4736
else
 
4737
  echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
 
4738
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
 
4739
fi
 
4740
set dummy $CC; ac_cc=`echo $2 |
 
4741
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
4742
if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
 
4743
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4744
else
 
4745
  cat >conftest.$ac_ext <<_ACEOF
 
4746
/* confdefs.h.  */
 
4747
_ACEOF
 
4748
cat confdefs.h >>conftest.$ac_ext
 
4749
cat >>conftest.$ac_ext <<_ACEOF
 
4750
/* end confdefs.h.  */
 
4751
 
 
4752
int
 
4753
main ()
 
4754
{
 
4755
 
 
4756
  ;
 
4757
  return 0;
 
4758
}
 
4759
_ACEOF
 
4760
# Make sure it works both with $CC and with simple cc.
 
4761
# We do the test twice because some compilers refuse to overwrite an
 
4762
# existing .o file with -o, though they will create one.
 
4763
ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
 
4764
if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4765
  (eval $ac_try) 2>&5
 
4766
  ac_status=$?
 
4767
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4768
  (exit $ac_status); } &&
 
4769
   test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4770
  (eval $ac_try) 2>&5
 
4771
  ac_status=$?
 
4772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4773
  (exit $ac_status); };
 
4774
then
 
4775
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
 
4776
  if test "x$CC" != xcc; then
 
4777
    # Test first that cc exists at all.
 
4778
    if { ac_try='cc -c conftest.$ac_ext >&5'
 
4779
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4780
  (eval $ac_try) 2>&5
 
4781
  ac_status=$?
 
4782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4783
  (exit $ac_status); }; }; then
 
4784
      ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
 
4785
      if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4786
  (eval $ac_try) 2>&5
 
4787
  ac_status=$?
 
4788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4789
  (exit $ac_status); } &&
 
4790
         test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4791
  (eval $ac_try) 2>&5
 
4792
  ac_status=$?
 
4793
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4794
  (exit $ac_status); };
 
4795
      then
 
4796
        # cc works too.
 
4797
        :
 
4798
      else
 
4799
        # cc exists but doesn't like -o.
 
4800
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
4801
      fi
 
4802
    fi
 
4803
  fi
 
4804
else
 
4805
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
4806
fi
 
4807
rm -f conftest*
 
4808
 
 
4809
fi
 
4810
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
 
4811
  echo "$as_me:$LINENO: result: yes" >&5
 
4812
echo "${ECHO_T}yes" >&6
 
4813
else
 
4814
  echo "$as_me:$LINENO: result: no" >&5
 
4815
echo "${ECHO_T}no" >&6
 
4816
 
 
4817
cat >>confdefs.h <<\_ACEOF
 
4818
#define NO_MINUS_C_MINUS_O 1
 
4819
_ACEOF
 
4820
 
 
4821
fi
 
4822
 
4467
4823
 
4468
4824
ac_ext=c
4469
4825
ac_cpp='$CPP $CPPFLAGS'
4700
5056
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4701
5057
 
4702
5058
 
 
5059
# HMS: These need to be moved to AM_CPPFLAGS and/or AM_CFLAGS
4703
5060
case "$host" in
4704
5061
 *-*-amigaos)
4705
5062
    CFLAGS="$CFLAGS -Dfork=vfork -DSYS_AMIGA"
4706
5063
    ;;
 
5064
 *-*-hpux10.*)  # at least for hppa2.0-hp-hpux10.20
 
5065
    case "$GCC" in
 
5066
     yes)
 
5067
        ;;
 
5068
     *) CFLAGS="$CFLAGS -Wp,-H18816"
 
5069
        ;;
 
5070
    esac
 
5071
    ;;
4707
5072
 *-pc-cygwin*)
4708
5073
    CFLAGS="$CFLAGS -DSYS_CYGWIN32"
4709
5074
    ;;
4719
5084
    LDFLAGS="$LDFLAGS -L/SYSLOG/PUB"
4720
5085
    LIBS="$LIBS -lcurses"
4721
5086
    ;;
 
5087
 *-*-solaris*)
 
5088
    CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500 -D__EXTENSIONS__"
 
5089
    libxnet=-lxnet
 
5090
    ;;
 
5091
esac
 
5092
 
 
5093
 
 
5094
echo "$as_me:$LINENO: checking additional compiler flags" >&5
 
5095
echo $ECHO_N "checking additional compiler flags... $ECHO_C" >&6
 
5096
if test "${ac_cv_os_cflags+set}" = set; then
 
5097
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5098
else
 
5099
 
 
5100
case "${host_os}" in
 
5101
        irix6* )
 
5102
                case "${CC}" in
 
5103
                        cc )
 
5104
                                # do not use 64-bit compiler
 
5105
                                ac_cv_os_cflags="-n32 -mips3 -Wl,-woff,84"
 
5106
                                ;;
 
5107
                esac
 
5108
                ;;
 
5109
# HMS: am-utils needed this but we don't (apparently)
 
5110
#       osf[[1-3]]* )
 
5111
#               # get the right version of struct sockaddr
 
5112
#               case "${CC}" in
 
5113
#                       cc )
 
5114
#                               ac_cv_os_cflags="-std -D_SOCKADDR_LEN -D_NO_PROTO"
 
5115
#                               ;;
 
5116
#                       * )
 
5117
#                               ac_cv_os_cflags="-D_SOCKADDR_LEN -D_NO_PROTO"
 
5118
#                               ;;
 
5119
#               esac
 
5120
#               ;;
 
5121
#       osf* )
 
5122
#               # get the right version of struct sockaddr
 
5123
#               case "${CC}" in
 
5124
#                       cc )
 
5125
#                               ac_cv_os_cflags="-std -D_SOCKADDR_LEN"
 
5126
#                               ;;
 
5127
#                       * )
 
5128
#                               ac_cv_os_cflags="-D_SOCKADDR_LEN"
 
5129
#                               ;;
 
5130
#               esac
 
5131
#               ;;
 
5132
        aix[1-3]* )
 
5133
                ac_cv_os_cflags="" ;;
 
5134
        aix4.[0-2]* )
 
5135
                # turn on additional headers
 
5136
                ac_cv_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
 
5137
                ;;
 
5138
        aix* )
 
5139
                # avoid circular dependencies in yp headers
 
5140
                ac_cv_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
 
5141
                ;;
 
5142
        OFF-sunos4* )
 
5143
                # make sure passing whole structures is handled in gcc
 
5144
                case "${CC}" in
 
5145
                        gcc )
 
5146
                                ac_cv_os_cflags="-fpcc-struct-return"
 
5147
                                ;;
 
5148
                esac
 
5149
                ;;
 
5150
        sunos[34]* | solaris1* | solaris2.[0-5]* | sunos5.[0-5]* )
 
5151
                ac_cv_os_cflags="" ;;
 
5152
        solaris* | sunos* )
 
5153
                # turn on 64-bit file offset interface
 
5154
                case "${CC}" in
 
5155
                        * )
 
5156
                                ac_cv_os_cflags="-D_LARGEFILE64_SOURCE"
 
5157
                                ;;
 
5158
                esac
 
5159
                ;;
 
5160
        hpux* )
 
5161
                # use Ansi compiler on HPUX
 
5162
                case "${CC}" in
 
5163
                        cc )
 
5164
                                ac_cv_os_cflags="-Ae"
 
5165
                                ;;
 
5166
                esac
 
5167
                ;;
 
5168
        darwin* | rhapsody* )
 
5169
                ac_cv_os_cflags="-D_P1003_1B_VISIBLE"
 
5170
                ;;
 
5171
        * )
 
5172
                ac_cv_os_cflags=""
 
5173
                ;;
 
5174
esac
 
5175
 
 
5176
fi
 
5177
echo "$as_me:$LINENO: result: $ac_cv_os_cflags" >&5
 
5178
echo "${ECHO_T}$ac_cv_os_cflags" >&6
 
5179
CFLAGS="$CFLAGS $ac_cv_os_cflags"
 
5180
 
 
5181
 
 
5182
# NTP has (so far) been relying on leading-edge autogen.
 
5183
# Therefore, by default:
 
5184
# - use the version we ship with
 
5185
# - do not install it
 
5186
# - build a static copy (AC_DISABLE_SHARED - done earlier)
 
5187
case "${enable_local_libopts+set}" in
 
5188
 set) ;;
 
5189
 *) enable_local_libopts=yes ;;
 
5190
esac
 
5191
case "${enable_libopts_install+set}" in
 
5192
 set) ;;
 
5193
 *) enable_libopts_install=no ;;
 
5194
esac
 
5195
 
 
5196
  NEED_LIBOPTS_DIR=''
 
5197
 
 
5198
  LIBOPTS_DIR=libopts
 
5199
 
 
5200
  # Check whether --enable-local-libopts or --disable-local-libopts was given.
 
5201
if test "${enable_local_libopts+set}" = set; then
 
5202
  enableval="$enable_local_libopts"
 
5203
 
 
5204
    if test x$enableval = xyes ; then
 
5205
       { echo "$as_me:$LINENO: Using supplied libopts tearoff" >&5
 
5206
echo "$as_me: Using supplied libopts tearoff" >&6;}
 
5207
       LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
 
5208
       LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
 
5209
       NEED_LIBOPTS_DIR=true
 
5210
    fi
 
5211
fi;
 
5212
 
 
5213
  # Check whether --enable-libopts-install or --disable-libopts-install was given.
 
5214
if test "${enable_libopts_install+set}" = set; then
 
5215
  enableval="$enable_libopts_install"
 
5216
 
 
5217
fi;
 
5218
 
 
5219
 
 
5220
if test "X${enable_libopts_install}" != Xno; then
 
5221
  INSTALL_LIBOPTS_TRUE=
 
5222
  INSTALL_LIBOPTS_FALSE='#'
 
5223
else
 
5224
  INSTALL_LIBOPTS_TRUE='#'
 
5225
  INSTALL_LIBOPTS_FALSE=
 
5226
fi
 
5227
 
 
5228
 
 
5229
  if test -z "${NEED_LIBOPTS_DIR}" ; then
 
5230
     echo "$as_me:$LINENO: checking whether autoopts-config can be found" >&5
 
5231
echo $ECHO_N "checking whether autoopts-config can be found... $ECHO_C" >&6
 
5232
 
 
5233
# Check whether --with-autoopts-config or --without-autoopts-config was given.
 
5234
if test "${with_autoopts_config+set}" = set; then
 
5235
  withval="$with_autoopts_config"
 
5236
  lo_cv_with_autoopts_config=${with_autoopts_config}
 
5237
else
 
5238
  echo "$as_me:$LINENO: checking whether autoopts-config is specified" >&5
 
5239
echo $ECHO_N "checking whether autoopts-config is specified... $ECHO_C" >&6
 
5240
if test "${lo_cv_with_autoopts_config+set}" = set; then
 
5241
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5242
else
 
5243
  if autoopts-config --help 2>/dev/null 1>&2
 
5244
        then lo_cv_with_autoopts_config=autoopts-config
 
5245
        elif libopts-config --help 2>/dev/null 1>&2
 
5246
        then lo_cv_with_autoopts_config=libopts-config
 
5247
        else lo_cv_with_autoopts_config=no ; fi
 
5248
fi
 
5249
echo "$as_me:$LINENO: result: $lo_cv_with_autoopts_config" >&5
 
5250
echo "${ECHO_T}$lo_cv_with_autoopts_config" >&6
 
5251
 
 
5252
fi;  # end of AC_ARG_WITH
 
5253
 
 
5254
     if test "${lo_cv_test_autoopts+set}" = set; then
 
5255
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5256
else
 
5257
 
 
5258
        if test -z "${lo_cv_with_autoopts_config}" \
 
5259
                -o X"${lo_cv_with_autoopts_config}" = Xno
 
5260
        then
 
5261
           if autoopts-config --help 2>/dev/null 1>&2
 
5262
           then lo_cv_with_autoopts_config=autoopts-config
 
5263
           elif libopts-config --help 2>/dev/null 1>&2
 
5264
           then lo_cv_with_autoopts_config=libopts-config
 
5265
           else lo_cv_with_autoopts_config=false ; fi
 
5266
        fi
 
5267
        lo_cv_test_autoopts=`
 
5268
            ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
 
5269
        if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
 
5270
        then lo_cv_test_autoopts=no ; fi
 
5271
 
 
5272
fi
 
5273
 # end of CACHE_VAL
 
5274
     echo "$as_me:$LINENO: result: ${lo_cv_test_autoopts}" >&5
 
5275
echo "${ECHO_T}${lo_cv_test_autoopts}" >&6
 
5276
 
 
5277
     if test "X${lo_cv_test_autoopts}" != Xno
 
5278
     then
 
5279
        LIBOPTS_LDADD="${lo_cv_test_autoopts}"
 
5280
        LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
 
5281
     else
 
5282
        LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
 
5283
        LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
 
5284
        NEED_LIBOPTS_DIR=true
 
5285
     fi
 
5286
  fi # end of if test -z "${NEED_LIBOPTS_DIR}"
 
5287
 
 
5288
 
 
5289
 
 
5290
if test -n "${NEED_LIBOPTS_DIR}"; then
 
5291
  NEED_LIBOPTS_TRUE=
 
5292
  NEED_LIBOPTS_FALSE='#'
 
5293
else
 
5294
  NEED_LIBOPTS_TRUE='#'
 
5295
  NEED_LIBOPTS_FALSE=
 
5296
fi
 
5297
 
 
5298
 
 
5299
 
 
5300
  LIBOPTS_DIR=libopts
 
5301
 
 
5302
            ac_config_files="$ac_config_files libopts/Makefile"
 
5303
 
 
5304
 
 
5305
 
 
5306
  if test -n "${NEED_LIBOPTS_DIR}" ; then
 
5307
 
 
5308
 
 
5309
if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
 
5310
  # =================
 
5311
  # AC_HEADER_STDC
 
5312
  # =================
 
5313
  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
5314
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
5315
if test "${ac_cv_header_stdc+set}" = set; then
 
5316
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5317
else
 
5318
  cat >conftest.$ac_ext <<_ACEOF
 
5319
/* confdefs.h.  */
 
5320
_ACEOF
 
5321
cat confdefs.h >>conftest.$ac_ext
 
5322
cat >>conftest.$ac_ext <<_ACEOF
 
5323
/* end confdefs.h.  */
 
5324
#include <stdlib.h>
 
5325
#include <stdarg.h>
 
5326
#include <string.h>
 
5327
#include <float.h>
 
5328
 
 
5329
int
 
5330
main ()
 
5331
{
 
5332
 
 
5333
  ;
 
5334
  return 0;
 
5335
}
 
5336
_ACEOF
 
5337
rm -f conftest.$ac_objext
 
5338
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5339
  (eval $ac_compile) 2>conftest.er1
 
5340
  ac_status=$?
 
5341
  grep -v '^ *+' conftest.er1 >conftest.err
 
5342
  rm -f conftest.er1
 
5343
  cat conftest.err >&5
 
5344
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5345
  (exit $ac_status); } &&
 
5346
         { ac_try='test -z "$ac_c_werror_flag"
 
5347
                         || test ! -s conftest.err'
 
5348
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5349
  (eval $ac_try) 2>&5
 
5350
  ac_status=$?
 
5351
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5352
  (exit $ac_status); }; } &&
 
5353
         { ac_try='test -s conftest.$ac_objext'
 
5354
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5355
  (eval $ac_try) 2>&5
 
5356
  ac_status=$?
 
5357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5358
  (exit $ac_status); }; }; then
 
5359
  ac_cv_header_stdc=yes
 
5360
else
 
5361
  echo "$as_me: failed program was:" >&5
 
5362
sed 's/^/| /' conftest.$ac_ext >&5
 
5363
 
 
5364
ac_cv_header_stdc=no
 
5365
fi
 
5366
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5367
 
 
5368
if test $ac_cv_header_stdc = yes; then
 
5369
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
5370
  cat >conftest.$ac_ext <<_ACEOF
 
5371
/* confdefs.h.  */
 
5372
_ACEOF
 
5373
cat confdefs.h >>conftest.$ac_ext
 
5374
cat >>conftest.$ac_ext <<_ACEOF
 
5375
/* end confdefs.h.  */
 
5376
#include <string.h>
 
5377
 
 
5378
_ACEOF
 
5379
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5380
  $EGREP "memchr" >/dev/null 2>&1; then
 
5381
  :
 
5382
else
 
5383
  ac_cv_header_stdc=no
 
5384
fi
 
5385
rm -f conftest*
 
5386
 
 
5387
fi
 
5388
 
 
5389
if test $ac_cv_header_stdc = yes; then
 
5390
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
5391
  cat >conftest.$ac_ext <<_ACEOF
 
5392
/* confdefs.h.  */
 
5393
_ACEOF
 
5394
cat confdefs.h >>conftest.$ac_ext
 
5395
cat >>conftest.$ac_ext <<_ACEOF
 
5396
/* end confdefs.h.  */
 
5397
#include <stdlib.h>
 
5398
 
 
5399
_ACEOF
 
5400
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5401
  $EGREP "free" >/dev/null 2>&1; then
 
5402
  :
 
5403
else
 
5404
  ac_cv_header_stdc=no
 
5405
fi
 
5406
rm -f conftest*
 
5407
 
 
5408
fi
 
5409
 
 
5410
if test $ac_cv_header_stdc = yes; then
 
5411
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
5412
  if test "$cross_compiling" = yes; then
 
5413
  :
 
5414
else
 
5415
  cat >conftest.$ac_ext <<_ACEOF
 
5416
/* confdefs.h.  */
 
5417
_ACEOF
 
5418
cat confdefs.h >>conftest.$ac_ext
 
5419
cat >>conftest.$ac_ext <<_ACEOF
 
5420
/* end confdefs.h.  */
 
5421
#include <ctype.h>
 
5422
#if ((' ' & 0x0FF) == 0x020)
 
5423
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
5424
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
5425
#else
 
5426
# define ISLOWER(c) \
 
5427
                   (('a' <= (c) && (c) <= 'i') \
 
5428
                     || ('j' <= (c) && (c) <= 'r') \
 
5429
                     || ('s' <= (c) && (c) <= 'z'))
 
5430
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
5431
#endif
 
5432
 
 
5433
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
5434
int
 
5435
main ()
 
5436
{
 
5437
  int i;
 
5438
  for (i = 0; i < 256; i++)
 
5439
    if (XOR (islower (i), ISLOWER (i))
 
5440
        || toupper (i) != TOUPPER (i))
 
5441
      exit(2);
 
5442
  exit (0);
 
5443
}
 
5444
_ACEOF
 
5445
rm -f conftest$ac_exeext
 
5446
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5447
  (eval $ac_link) 2>&5
 
5448
  ac_status=$?
 
5449
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5450
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5451
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5452
  (eval $ac_try) 2>&5
 
5453
  ac_status=$?
 
5454
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5455
  (exit $ac_status); }; }; then
 
5456
  :
 
5457
else
 
5458
  echo "$as_me: program exited with status $ac_status" >&5
 
5459
echo "$as_me: failed program was:" >&5
 
5460
sed 's/^/| /' conftest.$ac_ext >&5
 
5461
 
 
5462
( exit $ac_status )
 
5463
ac_cv_header_stdc=no
 
5464
fi
 
5465
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5466
fi
 
5467
fi
 
5468
fi
 
5469
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
5470
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
5471
if test $ac_cv_header_stdc = yes; then
 
5472
 
 
5473
cat >>confdefs.h <<\_ACEOF
 
5474
#define STDC_HEADERS 1
 
5475
_ACEOF
 
5476
 
 
5477
fi
 
5478
 
 
5479
  # =================
 
5480
  # AC_HEADER_DIRENT
 
5481
  # =================
 
5482
 
 
5483
 
 
5484
 
 
5485
 
 
5486
 
 
5487
ac_header_dirent=no
 
5488
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
 
5489
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
 
5490
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
 
5491
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
 
5492
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5493
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5494
else
 
5495
  cat >conftest.$ac_ext <<_ACEOF
 
5496
/* confdefs.h.  */
 
5497
_ACEOF
 
5498
cat confdefs.h >>conftest.$ac_ext
 
5499
cat >>conftest.$ac_ext <<_ACEOF
 
5500
/* end confdefs.h.  */
 
5501
#include <sys/types.h>
 
5502
#include <$ac_hdr>
 
5503
 
 
5504
int
 
5505
main ()
 
5506
{
 
5507
if ((DIR *) 0)
 
5508
return 0;
 
5509
  ;
 
5510
  return 0;
 
5511
}
 
5512
_ACEOF
 
5513
rm -f conftest.$ac_objext
 
5514
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5515
  (eval $ac_compile) 2>conftest.er1
 
5516
  ac_status=$?
 
5517
  grep -v '^ *+' conftest.er1 >conftest.err
 
5518
  rm -f conftest.er1
 
5519
  cat conftest.err >&5
 
5520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5521
  (exit $ac_status); } &&
 
5522
         { ac_try='test -z "$ac_c_werror_flag"
 
5523
                         || test ! -s conftest.err'
 
5524
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5525
  (eval $ac_try) 2>&5
 
5526
  ac_status=$?
 
5527
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5528
  (exit $ac_status); }; } &&
 
5529
         { ac_try='test -s conftest.$ac_objext'
 
5530
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5531
  (eval $ac_try) 2>&5
 
5532
  ac_status=$?
 
5533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5534
  (exit $ac_status); }; }; then
 
5535
  eval "$as_ac_Header=yes"
 
5536
else
 
5537
  echo "$as_me: failed program was:" >&5
 
5538
sed 's/^/| /' conftest.$ac_ext >&5
 
5539
 
 
5540
eval "$as_ac_Header=no"
 
5541
fi
 
5542
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5543
fi
 
5544
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5545
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5546
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5547
  cat >>confdefs.h <<_ACEOF
 
5548
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
 
5549
_ACEOF
 
5550
 
 
5551
ac_header_dirent=$ac_hdr; break
 
5552
fi
 
5553
 
 
5554
done
 
5555
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
 
5556
if test $ac_header_dirent = dirent.h; then
 
5557
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
5558
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
 
5559
if test "${ac_cv_search_opendir+set}" = set; then
 
5560
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5561
else
 
5562
  ac_func_search_save_LIBS=$LIBS
 
5563
ac_cv_search_opendir=no
 
5564
cat >conftest.$ac_ext <<_ACEOF
 
5565
/* confdefs.h.  */
 
5566
_ACEOF
 
5567
cat confdefs.h >>conftest.$ac_ext
 
5568
cat >>conftest.$ac_ext <<_ACEOF
 
5569
/* end confdefs.h.  */
 
5570
 
 
5571
/* Override any gcc2 internal prototype to avoid an error.  */
 
5572
#ifdef __cplusplus
 
5573
extern "C"
 
5574
#endif
 
5575
/* We use char because int might match the return type of a gcc2
 
5576
   builtin and then its argument prototype would still apply.  */
 
5577
char opendir ();
 
5578
int
 
5579
main ()
 
5580
{
 
5581
opendir ();
 
5582
  ;
 
5583
  return 0;
 
5584
}
 
5585
_ACEOF
 
5586
rm -f conftest.$ac_objext conftest$ac_exeext
 
5587
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5588
  (eval $ac_link) 2>conftest.er1
 
5589
  ac_status=$?
 
5590
  grep -v '^ *+' conftest.er1 >conftest.err
 
5591
  rm -f conftest.er1
 
5592
  cat conftest.err >&5
 
5593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5594
  (exit $ac_status); } &&
 
5595
         { ac_try='test -z "$ac_c_werror_flag"
 
5596
                         || test ! -s conftest.err'
 
5597
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5598
  (eval $ac_try) 2>&5
 
5599
  ac_status=$?
 
5600
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5601
  (exit $ac_status); }; } &&
 
5602
         { ac_try='test -s conftest$ac_exeext'
 
5603
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5604
  (eval $ac_try) 2>&5
 
5605
  ac_status=$?
 
5606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5607
  (exit $ac_status); }; }; then
 
5608
  ac_cv_search_opendir="none required"
 
5609
else
 
5610
  echo "$as_me: failed program was:" >&5
 
5611
sed 's/^/| /' conftest.$ac_ext >&5
 
5612
 
 
5613
fi
 
5614
rm -f conftest.err conftest.$ac_objext \
 
5615
      conftest$ac_exeext conftest.$ac_ext
 
5616
if test "$ac_cv_search_opendir" = no; then
 
5617
  for ac_lib in dir; do
 
5618
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
5619
    cat >conftest.$ac_ext <<_ACEOF
 
5620
/* confdefs.h.  */
 
5621
_ACEOF
 
5622
cat confdefs.h >>conftest.$ac_ext
 
5623
cat >>conftest.$ac_ext <<_ACEOF
 
5624
/* end confdefs.h.  */
 
5625
 
 
5626
/* Override any gcc2 internal prototype to avoid an error.  */
 
5627
#ifdef __cplusplus
 
5628
extern "C"
 
5629
#endif
 
5630
/* We use char because int might match the return type of a gcc2
 
5631
   builtin and then its argument prototype would still apply.  */
 
5632
char opendir ();
 
5633
int
 
5634
main ()
 
5635
{
 
5636
opendir ();
 
5637
  ;
 
5638
  return 0;
 
5639
}
 
5640
_ACEOF
 
5641
rm -f conftest.$ac_objext conftest$ac_exeext
 
5642
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5643
  (eval $ac_link) 2>conftest.er1
 
5644
  ac_status=$?
 
5645
  grep -v '^ *+' conftest.er1 >conftest.err
 
5646
  rm -f conftest.er1
 
5647
  cat conftest.err >&5
 
5648
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5649
  (exit $ac_status); } &&
 
5650
         { ac_try='test -z "$ac_c_werror_flag"
 
5651
                         || test ! -s conftest.err'
 
5652
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5653
  (eval $ac_try) 2>&5
 
5654
  ac_status=$?
 
5655
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5656
  (exit $ac_status); }; } &&
 
5657
         { ac_try='test -s conftest$ac_exeext'
 
5658
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5659
  (eval $ac_try) 2>&5
 
5660
  ac_status=$?
 
5661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5662
  (exit $ac_status); }; }; then
 
5663
  ac_cv_search_opendir="-l$ac_lib"
 
5664
break
 
5665
else
 
5666
  echo "$as_me: failed program was:" >&5
 
5667
sed 's/^/| /' conftest.$ac_ext >&5
 
5668
 
 
5669
fi
 
5670
rm -f conftest.err conftest.$ac_objext \
 
5671
      conftest$ac_exeext conftest.$ac_ext
 
5672
  done
 
5673
fi
 
5674
LIBS=$ac_func_search_save_LIBS
 
5675
fi
 
5676
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
5677
echo "${ECHO_T}$ac_cv_search_opendir" >&6
 
5678
if test "$ac_cv_search_opendir" != no; then
 
5679
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
 
5680
 
 
5681
fi
 
5682
 
 
5683
else
 
5684
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
5685
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
 
5686
if test "${ac_cv_search_opendir+set}" = set; then
 
5687
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5688
else
 
5689
  ac_func_search_save_LIBS=$LIBS
 
5690
ac_cv_search_opendir=no
 
5691
cat >conftest.$ac_ext <<_ACEOF
 
5692
/* confdefs.h.  */
 
5693
_ACEOF
 
5694
cat confdefs.h >>conftest.$ac_ext
 
5695
cat >>conftest.$ac_ext <<_ACEOF
 
5696
/* end confdefs.h.  */
 
5697
 
 
5698
/* Override any gcc2 internal prototype to avoid an error.  */
 
5699
#ifdef __cplusplus
 
5700
extern "C"
 
5701
#endif
 
5702
/* We use char because int might match the return type of a gcc2
 
5703
   builtin and then its argument prototype would still apply.  */
 
5704
char opendir ();
 
5705
int
 
5706
main ()
 
5707
{
 
5708
opendir ();
 
5709
  ;
 
5710
  return 0;
 
5711
}
 
5712
_ACEOF
 
5713
rm -f conftest.$ac_objext conftest$ac_exeext
 
5714
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5715
  (eval $ac_link) 2>conftest.er1
 
5716
  ac_status=$?
 
5717
  grep -v '^ *+' conftest.er1 >conftest.err
 
5718
  rm -f conftest.er1
 
5719
  cat conftest.err >&5
 
5720
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5721
  (exit $ac_status); } &&
 
5722
         { ac_try='test -z "$ac_c_werror_flag"
 
5723
                         || test ! -s conftest.err'
 
5724
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5725
  (eval $ac_try) 2>&5
 
5726
  ac_status=$?
 
5727
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5728
  (exit $ac_status); }; } &&
 
5729
         { ac_try='test -s conftest$ac_exeext'
 
5730
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5731
  (eval $ac_try) 2>&5
 
5732
  ac_status=$?
 
5733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5734
  (exit $ac_status); }; }; then
 
5735
  ac_cv_search_opendir="none required"
 
5736
else
 
5737
  echo "$as_me: failed program was:" >&5
 
5738
sed 's/^/| /' conftest.$ac_ext >&5
 
5739
 
 
5740
fi
 
5741
rm -f conftest.err conftest.$ac_objext \
 
5742
      conftest$ac_exeext conftest.$ac_ext
 
5743
if test "$ac_cv_search_opendir" = no; then
 
5744
  for ac_lib in x; do
 
5745
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
5746
    cat >conftest.$ac_ext <<_ACEOF
 
5747
/* confdefs.h.  */
 
5748
_ACEOF
 
5749
cat confdefs.h >>conftest.$ac_ext
 
5750
cat >>conftest.$ac_ext <<_ACEOF
 
5751
/* end confdefs.h.  */
 
5752
 
 
5753
/* Override any gcc2 internal prototype to avoid an error.  */
 
5754
#ifdef __cplusplus
 
5755
extern "C"
 
5756
#endif
 
5757
/* We use char because int might match the return type of a gcc2
 
5758
   builtin and then its argument prototype would still apply.  */
 
5759
char opendir ();
 
5760
int
 
5761
main ()
 
5762
{
 
5763
opendir ();
 
5764
  ;
 
5765
  return 0;
 
5766
}
 
5767
_ACEOF
 
5768
rm -f conftest.$ac_objext conftest$ac_exeext
 
5769
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5770
  (eval $ac_link) 2>conftest.er1
 
5771
  ac_status=$?
 
5772
  grep -v '^ *+' conftest.er1 >conftest.err
 
5773
  rm -f conftest.er1
 
5774
  cat conftest.err >&5
 
5775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5776
  (exit $ac_status); } &&
 
5777
         { ac_try='test -z "$ac_c_werror_flag"
 
5778
                         || test ! -s conftest.err'
 
5779
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5780
  (eval $ac_try) 2>&5
 
5781
  ac_status=$?
 
5782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5783
  (exit $ac_status); }; } &&
 
5784
         { ac_try='test -s conftest$ac_exeext'
 
5785
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5786
  (eval $ac_try) 2>&5
 
5787
  ac_status=$?
 
5788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5789
  (exit $ac_status); }; }; then
 
5790
  ac_cv_search_opendir="-l$ac_lib"
 
5791
break
 
5792
else
 
5793
  echo "$as_me: failed program was:" >&5
 
5794
sed 's/^/| /' conftest.$ac_ext >&5
 
5795
 
 
5796
fi
 
5797
rm -f conftest.err conftest.$ac_objext \
 
5798
      conftest$ac_exeext conftest.$ac_ext
 
5799
  done
 
5800
fi
 
5801
LIBS=$ac_func_search_save_LIBS
 
5802
fi
 
5803
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
5804
echo "${ECHO_T}$ac_cv_search_opendir" >&6
 
5805
if test "$ac_cv_search_opendir" != no; then
 
5806
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
 
5807
 
 
5808
fi
 
5809
 
 
5810
fi
 
5811
 
 
5812
 
 
5813
  # =================
 
5814
  # AC_CHECK_HEADERS
 
5815
  # =================
 
5816
 
 
5817
 
 
5818
 
 
5819
 
 
5820
 
 
5821
 
 
5822
 
 
5823
 
 
5824
 
 
5825
 
 
5826
 
 
5827
 
 
5828
 
 
5829
 
 
5830
 
 
5831
 
 
5832
 
 
5833
 
 
5834
 
 
5835
 
 
5836
for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
 
5837
    setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
 
5838
    sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h    \
 
5839
    utime.h sysexits.h
 
5840
do
 
5841
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5842
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5843
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5844
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5845
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5846
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5847
fi
 
5848
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5849
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5850
else
 
5851
  # Is the header compilable?
 
5852
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5853
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
5854
cat >conftest.$ac_ext <<_ACEOF
 
5855
/* confdefs.h.  */
 
5856
_ACEOF
 
5857
cat confdefs.h >>conftest.$ac_ext
 
5858
cat >>conftest.$ac_ext <<_ACEOF
 
5859
/* end confdefs.h.  */
 
5860
$ac_includes_default
 
5861
#include <$ac_header>
 
5862
_ACEOF
 
5863
rm -f conftest.$ac_objext
 
5864
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5865
  (eval $ac_compile) 2>conftest.er1
 
5866
  ac_status=$?
 
5867
  grep -v '^ *+' conftest.er1 >conftest.err
 
5868
  rm -f conftest.er1
 
5869
  cat conftest.err >&5
 
5870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5871
  (exit $ac_status); } &&
 
5872
         { ac_try='test -z "$ac_c_werror_flag"
 
5873
                         || test ! -s conftest.err'
 
5874
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5875
  (eval $ac_try) 2>&5
 
5876
  ac_status=$?
 
5877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5878
  (exit $ac_status); }; } &&
 
5879
         { ac_try='test -s conftest.$ac_objext'
 
5880
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5881
  (eval $ac_try) 2>&5
 
5882
  ac_status=$?
 
5883
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5884
  (exit $ac_status); }; }; then
 
5885
  ac_header_compiler=yes
 
5886
else
 
5887
  echo "$as_me: failed program was:" >&5
 
5888
sed 's/^/| /' conftest.$ac_ext >&5
 
5889
 
 
5890
ac_header_compiler=no
 
5891
fi
 
5892
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5893
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5894
echo "${ECHO_T}$ac_header_compiler" >&6
 
5895
 
 
5896
# Is the header present?
 
5897
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5898
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
5899
cat >conftest.$ac_ext <<_ACEOF
 
5900
/* confdefs.h.  */
 
5901
_ACEOF
 
5902
cat confdefs.h >>conftest.$ac_ext
 
5903
cat >>conftest.$ac_ext <<_ACEOF
 
5904
/* end confdefs.h.  */
 
5905
#include <$ac_header>
 
5906
_ACEOF
 
5907
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5908
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5909
  ac_status=$?
 
5910
  grep -v '^ *+' conftest.er1 >conftest.err
 
5911
  rm -f conftest.er1
 
5912
  cat conftest.err >&5
 
5913
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5914
  (exit $ac_status); } >/dev/null; then
 
5915
  if test -s conftest.err; then
 
5916
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5917
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
5918
  else
 
5919
    ac_cpp_err=
 
5920
  fi
 
5921
else
 
5922
  ac_cpp_err=yes
 
5923
fi
 
5924
if test -z "$ac_cpp_err"; then
 
5925
  ac_header_preproc=yes
 
5926
else
 
5927
  echo "$as_me: failed program was:" >&5
 
5928
sed 's/^/| /' conftest.$ac_ext >&5
 
5929
 
 
5930
  ac_header_preproc=no
 
5931
fi
 
5932
rm -f conftest.err conftest.$ac_ext
 
5933
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5934
echo "${ECHO_T}$ac_header_preproc" >&6
 
5935
 
 
5936
# So?  What about this header?
 
5937
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5938
  yes:no: )
 
5939
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5940
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5941
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5942
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5943
    ac_header_preproc=yes
 
5944
    ;;
 
5945
  no:yes:* )
 
5946
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5947
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5948
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5949
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5950
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5951
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5952
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5953
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5954
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5955
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5956
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5957
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5958
    (
 
5959
      cat <<\_ASBOX
 
5960
## ------------------------------ ##
 
5961
## Report this to the ntp lists.  ##
 
5962
## ------------------------------ ##
 
5963
_ASBOX
 
5964
    ) |
 
5965
      sed "s/^/$as_me: WARNING:     /" >&2
 
5966
    ;;
 
5967
esac
 
5968
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5969
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5970
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5971
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5972
else
 
5973
  eval "$as_ac_Header=\$ac_header_preproc"
 
5974
fi
 
5975
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5976
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5977
 
 
5978
fi
 
5979
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5980
  cat >>confdefs.h <<_ACEOF
 
5981
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5982
_ACEOF
 
5983
 
 
5984
fi
 
5985
 
 
5986
done
 
5987
 
 
5988
 
 
5989
  # --------------------------------------------
 
5990
  # Verify certain entries from AC_CHECK_HEADERS
 
5991
  # --------------------------------------------
 
5992
  for f in sys_types sys_mman sys_param sys_stat sys_wait \
 
5993
           string errno stdlib memory setjmp
 
5994
  do eval as_ac_var=\${ac_cv_header_${f}_h+set}
 
5995
     test "${as_ac_var}" = set || \
 
5996
       { { echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
 
5997
echo "$as_me: error: You must have ${f}.h on your system" >&2;}
 
5998
   { (exit 1); exit 1; }; }
 
5999
  done
 
6000
 
 
6001
  # ================================================
 
6002
  # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
 
6003
  # if varargs.h is present define HAVE_VARARGS_H.
 
6004
  # ================================================
 
6005
 
 
6006
 
 
6007
for ac_header in stdarg.h varargs.h
 
6008
do
 
6009
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6010
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6011
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6012
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6013
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6014
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6015
fi
 
6016
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6017
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6018
else
 
6019
  # Is the header compilable?
 
6020
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
6021
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
6022
cat >conftest.$ac_ext <<_ACEOF
 
6023
/* confdefs.h.  */
 
6024
_ACEOF
 
6025
cat confdefs.h >>conftest.$ac_ext
 
6026
cat >>conftest.$ac_ext <<_ACEOF
 
6027
/* end confdefs.h.  */
 
6028
$ac_includes_default
 
6029
#include <$ac_header>
 
6030
_ACEOF
 
6031
rm -f conftest.$ac_objext
 
6032
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6033
  (eval $ac_compile) 2>conftest.er1
 
6034
  ac_status=$?
 
6035
  grep -v '^ *+' conftest.er1 >conftest.err
 
6036
  rm -f conftest.er1
 
6037
  cat conftest.err >&5
 
6038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6039
  (exit $ac_status); } &&
 
6040
         { ac_try='test -z "$ac_c_werror_flag"
 
6041
                         || test ! -s conftest.err'
 
6042
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6043
  (eval $ac_try) 2>&5
 
6044
  ac_status=$?
 
6045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6046
  (exit $ac_status); }; } &&
 
6047
         { ac_try='test -s conftest.$ac_objext'
 
6048
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6049
  (eval $ac_try) 2>&5
 
6050
  ac_status=$?
 
6051
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6052
  (exit $ac_status); }; }; then
 
6053
  ac_header_compiler=yes
 
6054
else
 
6055
  echo "$as_me: failed program was:" >&5
 
6056
sed 's/^/| /' conftest.$ac_ext >&5
 
6057
 
 
6058
ac_header_compiler=no
 
6059
fi
 
6060
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6061
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6062
echo "${ECHO_T}$ac_header_compiler" >&6
 
6063
 
 
6064
# Is the header present?
 
6065
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6066
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
6067
cat >conftest.$ac_ext <<_ACEOF
 
6068
/* confdefs.h.  */
 
6069
_ACEOF
 
6070
cat confdefs.h >>conftest.$ac_ext
 
6071
cat >>conftest.$ac_ext <<_ACEOF
 
6072
/* end confdefs.h.  */
 
6073
#include <$ac_header>
 
6074
_ACEOF
 
6075
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6076
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6077
  ac_status=$?
 
6078
  grep -v '^ *+' conftest.er1 >conftest.err
 
6079
  rm -f conftest.er1
 
6080
  cat conftest.err >&5
 
6081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6082
  (exit $ac_status); } >/dev/null; then
 
6083
  if test -s conftest.err; then
 
6084
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6085
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
6086
  else
 
6087
    ac_cpp_err=
 
6088
  fi
 
6089
else
 
6090
  ac_cpp_err=yes
 
6091
fi
 
6092
if test -z "$ac_cpp_err"; then
 
6093
  ac_header_preproc=yes
 
6094
else
 
6095
  echo "$as_me: failed program was:" >&5
 
6096
sed 's/^/| /' conftest.$ac_ext >&5
 
6097
 
 
6098
  ac_header_preproc=no
 
6099
fi
 
6100
rm -f conftest.err conftest.$ac_ext
 
6101
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6102
echo "${ECHO_T}$ac_header_preproc" >&6
 
6103
 
 
6104
# So?  What about this header?
 
6105
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6106
  yes:no: )
 
6107
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6108
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6109
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
6110
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
6111
    ac_header_preproc=yes
 
6112
    ;;
 
6113
  no:yes:* )
 
6114
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6115
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6116
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
6117
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
6118
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
6119
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
6120
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
6121
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6122
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6123
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6124
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
6125
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
6126
    (
 
6127
      cat <<\_ASBOX
 
6128
## ------------------------------ ##
 
6129
## Report this to the ntp lists.  ##
 
6130
## ------------------------------ ##
 
6131
_ASBOX
 
6132
    ) |
 
6133
      sed "s/^/$as_me: WARNING:     /" >&2
 
6134
    ;;
 
6135
esac
 
6136
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6137
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6138
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6139
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6140
else
 
6141
  eval "$as_ac_Header=\$ac_header_preproc"
 
6142
fi
 
6143
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6144
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6145
 
 
6146
fi
 
6147
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6148
  cat >>confdefs.h <<_ACEOF
 
6149
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6150
_ACEOF
 
6151
 break
 
6152
fi
 
6153
 
 
6154
done
 
6155
 
 
6156
  if test `eval echo '${'$as_ac_Header'}'` != yes; then
 
6157
    { { echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
 
6158
echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
 
6159
   { (exit 1); exit 1; }; }
 
6160
  fi
 
6161
 
 
6162
  # ================================================
 
6163
  # Similarly for the string.h and strings.h headers
 
6164
  # ================================================
 
6165
 
 
6166
 
 
6167
for ac_header in string.h strings.h
 
6168
do
 
6169
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6170
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6171
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6172
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6173
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6174
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6175
fi
 
6176
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6177
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6178
else
 
6179
  # Is the header compilable?
 
6180
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
6181
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
6182
cat >conftest.$ac_ext <<_ACEOF
 
6183
/* confdefs.h.  */
 
6184
_ACEOF
 
6185
cat confdefs.h >>conftest.$ac_ext
 
6186
cat >>conftest.$ac_ext <<_ACEOF
 
6187
/* end confdefs.h.  */
 
6188
$ac_includes_default
 
6189
#include <$ac_header>
 
6190
_ACEOF
 
6191
rm -f conftest.$ac_objext
 
6192
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6193
  (eval $ac_compile) 2>conftest.er1
 
6194
  ac_status=$?
 
6195
  grep -v '^ *+' conftest.er1 >conftest.err
 
6196
  rm -f conftest.er1
 
6197
  cat conftest.err >&5
 
6198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6199
  (exit $ac_status); } &&
 
6200
         { ac_try='test -z "$ac_c_werror_flag"
 
6201
                         || test ! -s conftest.err'
 
6202
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6203
  (eval $ac_try) 2>&5
 
6204
  ac_status=$?
 
6205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6206
  (exit $ac_status); }; } &&
 
6207
         { ac_try='test -s conftest.$ac_objext'
 
6208
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6209
  (eval $ac_try) 2>&5
 
6210
  ac_status=$?
 
6211
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6212
  (exit $ac_status); }; }; then
 
6213
  ac_header_compiler=yes
 
6214
else
 
6215
  echo "$as_me: failed program was:" >&5
 
6216
sed 's/^/| /' conftest.$ac_ext >&5
 
6217
 
 
6218
ac_header_compiler=no
 
6219
fi
 
6220
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6221
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6222
echo "${ECHO_T}$ac_header_compiler" >&6
 
6223
 
 
6224
# Is the header present?
 
6225
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6226
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
6227
cat >conftest.$ac_ext <<_ACEOF
 
6228
/* confdefs.h.  */
 
6229
_ACEOF
 
6230
cat confdefs.h >>conftest.$ac_ext
 
6231
cat >>conftest.$ac_ext <<_ACEOF
 
6232
/* end confdefs.h.  */
 
6233
#include <$ac_header>
 
6234
_ACEOF
 
6235
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6236
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6237
  ac_status=$?
 
6238
  grep -v '^ *+' conftest.er1 >conftest.err
 
6239
  rm -f conftest.er1
 
6240
  cat conftest.err >&5
 
6241
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6242
  (exit $ac_status); } >/dev/null; then
 
6243
  if test -s conftest.err; then
 
6244
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6245
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
6246
  else
 
6247
    ac_cpp_err=
 
6248
  fi
 
6249
else
 
6250
  ac_cpp_err=yes
 
6251
fi
 
6252
if test -z "$ac_cpp_err"; then
 
6253
  ac_header_preproc=yes
 
6254
else
 
6255
  echo "$as_me: failed program was:" >&5
 
6256
sed 's/^/| /' conftest.$ac_ext >&5
 
6257
 
 
6258
  ac_header_preproc=no
 
6259
fi
 
6260
rm -f conftest.err conftest.$ac_ext
 
6261
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6262
echo "${ECHO_T}$ac_header_preproc" >&6
 
6263
 
 
6264
# So?  What about this header?
 
6265
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6266
  yes:no: )
 
6267
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6268
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6269
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
6270
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
6271
    ac_header_preproc=yes
 
6272
    ;;
 
6273
  no:yes:* )
 
6274
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6275
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6276
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
6277
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
6278
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
6279
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
6280
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
6281
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6282
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6283
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6284
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
6285
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
6286
    (
 
6287
      cat <<\_ASBOX
 
6288
## ------------------------------ ##
 
6289
## Report this to the ntp lists.  ##
 
6290
## ------------------------------ ##
 
6291
_ASBOX
 
6292
    ) |
 
6293
      sed "s/^/$as_me: WARNING:     /" >&2
 
6294
    ;;
 
6295
esac
 
6296
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6297
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6298
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6299
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6300
else
 
6301
  eval "$as_ac_Header=\$ac_header_preproc"
 
6302
fi
 
6303
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6304
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6305
 
 
6306
fi
 
6307
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6308
  cat >>confdefs.h <<_ACEOF
 
6309
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6310
_ACEOF
 
6311
 break
 
6312
fi
 
6313
 
 
6314
done
 
6315
 
 
6316
  if test `eval echo '${'$as_ac_Header'}'` != yes; then
 
6317
    { { echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
 
6318
echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
 
6319
   { (exit 1); exit 1; }; }
 
6320
  fi
 
6321
 
 
6322
  # =====================
 
6323
  # ...and limits headers
 
6324
  # =====================
 
6325
 
 
6326
 
 
6327
 
 
6328
for ac_header in limits.h sys/limits.h values.h
 
6329
do
 
6330
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6331
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6332
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6333
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6334
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6335
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6336
fi
 
6337
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6338
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6339
else
 
6340
  # Is the header compilable?
 
6341
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
6342
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
6343
cat >conftest.$ac_ext <<_ACEOF
 
6344
/* confdefs.h.  */
 
6345
_ACEOF
 
6346
cat confdefs.h >>conftest.$ac_ext
 
6347
cat >>conftest.$ac_ext <<_ACEOF
 
6348
/* end confdefs.h.  */
 
6349
$ac_includes_default
 
6350
#include <$ac_header>
 
6351
_ACEOF
 
6352
rm -f conftest.$ac_objext
 
6353
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6354
  (eval $ac_compile) 2>conftest.er1
 
6355
  ac_status=$?
 
6356
  grep -v '^ *+' conftest.er1 >conftest.err
 
6357
  rm -f conftest.er1
 
6358
  cat conftest.err >&5
 
6359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6360
  (exit $ac_status); } &&
 
6361
         { ac_try='test -z "$ac_c_werror_flag"
 
6362
                         || test ! -s conftest.err'
 
6363
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6364
  (eval $ac_try) 2>&5
 
6365
  ac_status=$?
 
6366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6367
  (exit $ac_status); }; } &&
 
6368
         { ac_try='test -s conftest.$ac_objext'
 
6369
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6370
  (eval $ac_try) 2>&5
 
6371
  ac_status=$?
 
6372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6373
  (exit $ac_status); }; }; then
 
6374
  ac_header_compiler=yes
 
6375
else
 
6376
  echo "$as_me: failed program was:" >&5
 
6377
sed 's/^/| /' conftest.$ac_ext >&5
 
6378
 
 
6379
ac_header_compiler=no
 
6380
fi
 
6381
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6382
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6383
echo "${ECHO_T}$ac_header_compiler" >&6
 
6384
 
 
6385
# Is the header present?
 
6386
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6387
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
6388
cat >conftest.$ac_ext <<_ACEOF
 
6389
/* confdefs.h.  */
 
6390
_ACEOF
 
6391
cat confdefs.h >>conftest.$ac_ext
 
6392
cat >>conftest.$ac_ext <<_ACEOF
 
6393
/* end confdefs.h.  */
 
6394
#include <$ac_header>
 
6395
_ACEOF
 
6396
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6397
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6398
  ac_status=$?
 
6399
  grep -v '^ *+' conftest.er1 >conftest.err
 
6400
  rm -f conftest.er1
 
6401
  cat conftest.err >&5
 
6402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6403
  (exit $ac_status); } >/dev/null; then
 
6404
  if test -s conftest.err; then
 
6405
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6406
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
6407
  else
 
6408
    ac_cpp_err=
 
6409
  fi
 
6410
else
 
6411
  ac_cpp_err=yes
 
6412
fi
 
6413
if test -z "$ac_cpp_err"; then
 
6414
  ac_header_preproc=yes
 
6415
else
 
6416
  echo "$as_me: failed program was:" >&5
 
6417
sed 's/^/| /' conftest.$ac_ext >&5
 
6418
 
 
6419
  ac_header_preproc=no
 
6420
fi
 
6421
rm -f conftest.err conftest.$ac_ext
 
6422
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6423
echo "${ECHO_T}$ac_header_preproc" >&6
 
6424
 
 
6425
# So?  What about this header?
 
6426
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6427
  yes:no: )
 
6428
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6429
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6430
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
6431
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
6432
    ac_header_preproc=yes
 
6433
    ;;
 
6434
  no:yes:* )
 
6435
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6436
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6437
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
6438
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
6439
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
6440
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
6441
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
6442
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6443
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6444
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6445
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
6446
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
6447
    (
 
6448
      cat <<\_ASBOX
 
6449
## ------------------------------ ##
 
6450
## Report this to the ntp lists.  ##
 
6451
## ------------------------------ ##
 
6452
_ASBOX
 
6453
    ) |
 
6454
      sed "s/^/$as_me: WARNING:     /" >&2
 
6455
    ;;
 
6456
esac
 
6457
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6458
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6459
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6460
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6461
else
 
6462
  eval "$as_ac_Header=\$ac_header_preproc"
 
6463
fi
 
6464
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6465
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6466
 
 
6467
fi
 
6468
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6469
  cat >>confdefs.h <<_ACEOF
 
6470
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6471
_ACEOF
 
6472
 break
 
6473
fi
 
6474
 
 
6475
done
 
6476
 
 
6477
  if test `eval echo '${'$as_ac_Header'}'` != yes; then
 
6478
    { { echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
 
6479
echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
 
6480
   { (exit 1); exit 1; }; }
 
6481
  fi
 
6482
 
 
6483
  # ========================
 
6484
  # ...and int types headers
 
6485
  # ========================
 
6486
 
 
6487
 
 
6488
for ac_header in stdint.h inttypes.h
 
6489
do
 
6490
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6491
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6492
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6493
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6494
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6495
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6496
fi
 
6497
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6498
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6499
else
 
6500
  # Is the header compilable?
 
6501
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
6502
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
6503
cat >conftest.$ac_ext <<_ACEOF
 
6504
/* confdefs.h.  */
 
6505
_ACEOF
 
6506
cat confdefs.h >>conftest.$ac_ext
 
6507
cat >>conftest.$ac_ext <<_ACEOF
 
6508
/* end confdefs.h.  */
 
6509
$ac_includes_default
 
6510
#include <$ac_header>
 
6511
_ACEOF
 
6512
rm -f conftest.$ac_objext
 
6513
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6514
  (eval $ac_compile) 2>conftest.er1
 
6515
  ac_status=$?
 
6516
  grep -v '^ *+' conftest.er1 >conftest.err
 
6517
  rm -f conftest.er1
 
6518
  cat conftest.err >&5
 
6519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6520
  (exit $ac_status); } &&
 
6521
         { ac_try='test -z "$ac_c_werror_flag"
 
6522
                         || test ! -s conftest.err'
 
6523
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6524
  (eval $ac_try) 2>&5
 
6525
  ac_status=$?
 
6526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6527
  (exit $ac_status); }; } &&
 
6528
         { ac_try='test -s conftest.$ac_objext'
 
6529
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6530
  (eval $ac_try) 2>&5
 
6531
  ac_status=$?
 
6532
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6533
  (exit $ac_status); }; }; then
 
6534
  ac_header_compiler=yes
 
6535
else
 
6536
  echo "$as_me: failed program was:" >&5
 
6537
sed 's/^/| /' conftest.$ac_ext >&5
 
6538
 
 
6539
ac_header_compiler=no
 
6540
fi
 
6541
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6542
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6543
echo "${ECHO_T}$ac_header_compiler" >&6
 
6544
 
 
6545
# Is the header present?
 
6546
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6547
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
6548
cat >conftest.$ac_ext <<_ACEOF
 
6549
/* confdefs.h.  */
 
6550
_ACEOF
 
6551
cat confdefs.h >>conftest.$ac_ext
 
6552
cat >>conftest.$ac_ext <<_ACEOF
 
6553
/* end confdefs.h.  */
 
6554
#include <$ac_header>
 
6555
_ACEOF
 
6556
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6557
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6558
  ac_status=$?
 
6559
  grep -v '^ *+' conftest.er1 >conftest.err
 
6560
  rm -f conftest.er1
 
6561
  cat conftest.err >&5
 
6562
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6563
  (exit $ac_status); } >/dev/null; then
 
6564
  if test -s conftest.err; then
 
6565
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6566
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
6567
  else
 
6568
    ac_cpp_err=
 
6569
  fi
 
6570
else
 
6571
  ac_cpp_err=yes
 
6572
fi
 
6573
if test -z "$ac_cpp_err"; then
 
6574
  ac_header_preproc=yes
 
6575
else
 
6576
  echo "$as_me: failed program was:" >&5
 
6577
sed 's/^/| /' conftest.$ac_ext >&5
 
6578
 
 
6579
  ac_header_preproc=no
 
6580
fi
 
6581
rm -f conftest.err conftest.$ac_ext
 
6582
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6583
echo "${ECHO_T}$ac_header_preproc" >&6
 
6584
 
 
6585
# So?  What about this header?
 
6586
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6587
  yes:no: )
 
6588
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6589
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6590
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
6591
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
6592
    ac_header_preproc=yes
 
6593
    ;;
 
6594
  no:yes:* )
 
6595
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6596
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6597
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
6598
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
6599
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
6600
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
6601
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
6602
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6603
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6604
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6605
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
6606
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
6607
    (
 
6608
      cat <<\_ASBOX
 
6609
## ------------------------------ ##
 
6610
## Report this to the ntp lists.  ##
 
6611
## ------------------------------ ##
 
6612
_ASBOX
 
6613
    ) |
 
6614
      sed "s/^/$as_me: WARNING:     /" >&2
 
6615
    ;;
 
6616
esac
 
6617
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6618
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6619
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6620
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6621
else
 
6622
  eval "$as_ac_Header=\$ac_header_preproc"
 
6623
fi
 
6624
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6625
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6626
 
 
6627
fi
 
6628
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6629
  cat >>confdefs.h <<_ACEOF
 
6630
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6631
_ACEOF
 
6632
 break
 
6633
fi
 
6634
 
 
6635
done
 
6636
 
 
6637
  echo "$as_me:$LINENO: checking for int8_t" >&5
 
6638
echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
 
6639
if test "${ac_cv_type_int8_t+set}" = set; then
 
6640
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6641
else
 
6642
  cat >conftest.$ac_ext <<_ACEOF
 
6643
/* confdefs.h.  */
 
6644
_ACEOF
 
6645
cat confdefs.h >>conftest.$ac_ext
 
6646
cat >>conftest.$ac_ext <<_ACEOF
 
6647
/* end confdefs.h.  */
 
6648
$ac_includes_default
 
6649
int
 
6650
main ()
 
6651
{
 
6652
if ((int8_t *) 0)
 
6653
  return 0;
 
6654
if (sizeof (int8_t))
 
6655
  return 0;
 
6656
  ;
 
6657
  return 0;
 
6658
}
 
6659
_ACEOF
 
6660
rm -f conftest.$ac_objext
 
6661
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6662
  (eval $ac_compile) 2>conftest.er1
 
6663
  ac_status=$?
 
6664
  grep -v '^ *+' conftest.er1 >conftest.err
 
6665
  rm -f conftest.er1
 
6666
  cat conftest.err >&5
 
6667
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6668
  (exit $ac_status); } &&
 
6669
         { ac_try='test -z "$ac_c_werror_flag"
 
6670
                         || test ! -s conftest.err'
 
6671
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6672
  (eval $ac_try) 2>&5
 
6673
  ac_status=$?
 
6674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6675
  (exit $ac_status); }; } &&
 
6676
         { ac_try='test -s conftest.$ac_objext'
 
6677
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6678
  (eval $ac_try) 2>&5
 
6679
  ac_status=$?
 
6680
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6681
  (exit $ac_status); }; }; then
 
6682
  ac_cv_type_int8_t=yes
 
6683
else
 
6684
  echo "$as_me: failed program was:" >&5
 
6685
sed 's/^/| /' conftest.$ac_ext >&5
 
6686
 
 
6687
ac_cv_type_int8_t=no
 
6688
fi
 
6689
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6690
fi
 
6691
echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
 
6692
echo "${ECHO_T}$ac_cv_type_int8_t" >&6
 
6693
if test $ac_cv_type_int8_t = yes; then
 
6694
 
 
6695
cat >>confdefs.h <<_ACEOF
 
6696
#define HAVE_INT8_T 1
 
6697
_ACEOF
 
6698
 
 
6699
 
 
6700
fi
 
6701
echo "$as_me:$LINENO: checking for uint8_t" >&5
 
6702
echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
 
6703
if test "${ac_cv_type_uint8_t+set}" = set; then
 
6704
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6705
else
 
6706
  cat >conftest.$ac_ext <<_ACEOF
 
6707
/* confdefs.h.  */
 
6708
_ACEOF
 
6709
cat confdefs.h >>conftest.$ac_ext
 
6710
cat >>conftest.$ac_ext <<_ACEOF
 
6711
/* end confdefs.h.  */
 
6712
$ac_includes_default
 
6713
int
 
6714
main ()
 
6715
{
 
6716
if ((uint8_t *) 0)
 
6717
  return 0;
 
6718
if (sizeof (uint8_t))
 
6719
  return 0;
 
6720
  ;
 
6721
  return 0;
 
6722
}
 
6723
_ACEOF
 
6724
rm -f conftest.$ac_objext
 
6725
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6726
  (eval $ac_compile) 2>conftest.er1
 
6727
  ac_status=$?
 
6728
  grep -v '^ *+' conftest.er1 >conftest.err
 
6729
  rm -f conftest.er1
 
6730
  cat conftest.err >&5
 
6731
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6732
  (exit $ac_status); } &&
 
6733
         { ac_try='test -z "$ac_c_werror_flag"
 
6734
                         || test ! -s conftest.err'
 
6735
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6736
  (eval $ac_try) 2>&5
 
6737
  ac_status=$?
 
6738
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6739
  (exit $ac_status); }; } &&
 
6740
         { ac_try='test -s conftest.$ac_objext'
 
6741
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6742
  (eval $ac_try) 2>&5
 
6743
  ac_status=$?
 
6744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6745
  (exit $ac_status); }; }; then
 
6746
  ac_cv_type_uint8_t=yes
 
6747
else
 
6748
  echo "$as_me: failed program was:" >&5
 
6749
sed 's/^/| /' conftest.$ac_ext >&5
 
6750
 
 
6751
ac_cv_type_uint8_t=no
 
6752
fi
 
6753
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6754
fi
 
6755
echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
 
6756
echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
 
6757
if test $ac_cv_type_uint8_t = yes; then
 
6758
 
 
6759
cat >>confdefs.h <<_ACEOF
 
6760
#define HAVE_UINT8_T 1
 
6761
_ACEOF
 
6762
 
 
6763
 
 
6764
fi
 
6765
echo "$as_me:$LINENO: checking for int16_t" >&5
 
6766
echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
 
6767
if test "${ac_cv_type_int16_t+set}" = set; then
 
6768
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6769
else
 
6770
  cat >conftest.$ac_ext <<_ACEOF
 
6771
/* confdefs.h.  */
 
6772
_ACEOF
 
6773
cat confdefs.h >>conftest.$ac_ext
 
6774
cat >>conftest.$ac_ext <<_ACEOF
 
6775
/* end confdefs.h.  */
 
6776
$ac_includes_default
 
6777
int
 
6778
main ()
 
6779
{
 
6780
if ((int16_t *) 0)
 
6781
  return 0;
 
6782
if (sizeof (int16_t))
 
6783
  return 0;
 
6784
  ;
 
6785
  return 0;
 
6786
}
 
6787
_ACEOF
 
6788
rm -f conftest.$ac_objext
 
6789
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6790
  (eval $ac_compile) 2>conftest.er1
 
6791
  ac_status=$?
 
6792
  grep -v '^ *+' conftest.er1 >conftest.err
 
6793
  rm -f conftest.er1
 
6794
  cat conftest.err >&5
 
6795
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6796
  (exit $ac_status); } &&
 
6797
         { ac_try='test -z "$ac_c_werror_flag"
 
6798
                         || test ! -s conftest.err'
 
6799
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6800
  (eval $ac_try) 2>&5
 
6801
  ac_status=$?
 
6802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6803
  (exit $ac_status); }; } &&
 
6804
         { ac_try='test -s conftest.$ac_objext'
 
6805
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6806
  (eval $ac_try) 2>&5
 
6807
  ac_status=$?
 
6808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6809
  (exit $ac_status); }; }; then
 
6810
  ac_cv_type_int16_t=yes
 
6811
else
 
6812
  echo "$as_me: failed program was:" >&5
 
6813
sed 's/^/| /' conftest.$ac_ext >&5
 
6814
 
 
6815
ac_cv_type_int16_t=no
 
6816
fi
 
6817
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6818
fi
 
6819
echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
 
6820
echo "${ECHO_T}$ac_cv_type_int16_t" >&6
 
6821
if test $ac_cv_type_int16_t = yes; then
 
6822
 
 
6823
cat >>confdefs.h <<_ACEOF
 
6824
#define HAVE_INT16_T 1
 
6825
_ACEOF
 
6826
 
 
6827
 
 
6828
fi
 
6829
echo "$as_me:$LINENO: checking for uint16_t" >&5
 
6830
echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
 
6831
if test "${ac_cv_type_uint16_t+set}" = set; then
 
6832
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6833
else
 
6834
  cat >conftest.$ac_ext <<_ACEOF
 
6835
/* confdefs.h.  */
 
6836
_ACEOF
 
6837
cat confdefs.h >>conftest.$ac_ext
 
6838
cat >>conftest.$ac_ext <<_ACEOF
 
6839
/* end confdefs.h.  */
 
6840
$ac_includes_default
 
6841
int
 
6842
main ()
 
6843
{
 
6844
if ((uint16_t *) 0)
 
6845
  return 0;
 
6846
if (sizeof (uint16_t))
 
6847
  return 0;
 
6848
  ;
 
6849
  return 0;
 
6850
}
 
6851
_ACEOF
 
6852
rm -f conftest.$ac_objext
 
6853
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6854
  (eval $ac_compile) 2>conftest.er1
 
6855
  ac_status=$?
 
6856
  grep -v '^ *+' conftest.er1 >conftest.err
 
6857
  rm -f conftest.er1
 
6858
  cat conftest.err >&5
 
6859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6860
  (exit $ac_status); } &&
 
6861
         { ac_try='test -z "$ac_c_werror_flag"
 
6862
                         || test ! -s conftest.err'
 
6863
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6864
  (eval $ac_try) 2>&5
 
6865
  ac_status=$?
 
6866
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6867
  (exit $ac_status); }; } &&
 
6868
         { ac_try='test -s conftest.$ac_objext'
 
6869
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6870
  (eval $ac_try) 2>&5
 
6871
  ac_status=$?
 
6872
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6873
  (exit $ac_status); }; }; then
 
6874
  ac_cv_type_uint16_t=yes
 
6875
else
 
6876
  echo "$as_me: failed program was:" >&5
 
6877
sed 's/^/| /' conftest.$ac_ext >&5
 
6878
 
 
6879
ac_cv_type_uint16_t=no
 
6880
fi
 
6881
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6882
fi
 
6883
echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
 
6884
echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
 
6885
if test $ac_cv_type_uint16_t = yes; then
 
6886
 
 
6887
cat >>confdefs.h <<_ACEOF
 
6888
#define HAVE_UINT16_T 1
 
6889
_ACEOF
 
6890
 
 
6891
 
 
6892
fi
 
6893
echo "$as_me:$LINENO: checking for int32_t" >&5
 
6894
echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
 
6895
if test "${ac_cv_type_int32_t+set}" = set; then
 
6896
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6897
else
 
6898
  cat >conftest.$ac_ext <<_ACEOF
 
6899
/* confdefs.h.  */
 
6900
_ACEOF
 
6901
cat confdefs.h >>conftest.$ac_ext
 
6902
cat >>conftest.$ac_ext <<_ACEOF
 
6903
/* end confdefs.h.  */
 
6904
$ac_includes_default
 
6905
int
 
6906
main ()
 
6907
{
 
6908
if ((int32_t *) 0)
 
6909
  return 0;
 
6910
if (sizeof (int32_t))
 
6911
  return 0;
 
6912
  ;
 
6913
  return 0;
 
6914
}
 
6915
_ACEOF
 
6916
rm -f conftest.$ac_objext
 
6917
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6918
  (eval $ac_compile) 2>conftest.er1
 
6919
  ac_status=$?
 
6920
  grep -v '^ *+' conftest.er1 >conftest.err
 
6921
  rm -f conftest.er1
 
6922
  cat conftest.err >&5
 
6923
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6924
  (exit $ac_status); } &&
 
6925
         { ac_try='test -z "$ac_c_werror_flag"
 
6926
                         || test ! -s conftest.err'
 
6927
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6928
  (eval $ac_try) 2>&5
 
6929
  ac_status=$?
 
6930
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6931
  (exit $ac_status); }; } &&
 
6932
         { ac_try='test -s conftest.$ac_objext'
 
6933
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6934
  (eval $ac_try) 2>&5
 
6935
  ac_status=$?
 
6936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6937
  (exit $ac_status); }; }; then
 
6938
  ac_cv_type_int32_t=yes
 
6939
else
 
6940
  echo "$as_me: failed program was:" >&5
 
6941
sed 's/^/| /' conftest.$ac_ext >&5
 
6942
 
 
6943
ac_cv_type_int32_t=no
 
6944
fi
 
6945
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6946
fi
 
6947
echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
 
6948
echo "${ECHO_T}$ac_cv_type_int32_t" >&6
 
6949
if test $ac_cv_type_int32_t = yes; then
 
6950
 
 
6951
cat >>confdefs.h <<_ACEOF
 
6952
#define HAVE_INT32_T 1
 
6953
_ACEOF
 
6954
 
 
6955
 
 
6956
fi
 
6957
echo "$as_me:$LINENO: checking for uint32_t" >&5
 
6958
echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
 
6959
if test "${ac_cv_type_uint32_t+set}" = set; then
 
6960
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6961
else
 
6962
  cat >conftest.$ac_ext <<_ACEOF
 
6963
/* confdefs.h.  */
 
6964
_ACEOF
 
6965
cat confdefs.h >>conftest.$ac_ext
 
6966
cat >>conftest.$ac_ext <<_ACEOF
 
6967
/* end confdefs.h.  */
 
6968
$ac_includes_default
 
6969
int
 
6970
main ()
 
6971
{
 
6972
if ((uint32_t *) 0)
 
6973
  return 0;
 
6974
if (sizeof (uint32_t))
 
6975
  return 0;
 
6976
  ;
 
6977
  return 0;
 
6978
}
 
6979
_ACEOF
 
6980
rm -f conftest.$ac_objext
 
6981
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6982
  (eval $ac_compile) 2>conftest.er1
 
6983
  ac_status=$?
 
6984
  grep -v '^ *+' conftest.er1 >conftest.err
 
6985
  rm -f conftest.er1
 
6986
  cat conftest.err >&5
 
6987
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6988
  (exit $ac_status); } &&
 
6989
         { ac_try='test -z "$ac_c_werror_flag"
 
6990
                         || test ! -s conftest.err'
 
6991
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6992
  (eval $ac_try) 2>&5
 
6993
  ac_status=$?
 
6994
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6995
  (exit $ac_status); }; } &&
 
6996
         { ac_try='test -s conftest.$ac_objext'
 
6997
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6998
  (eval $ac_try) 2>&5
 
6999
  ac_status=$?
 
7000
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7001
  (exit $ac_status); }; }; then
 
7002
  ac_cv_type_uint32_t=yes
 
7003
else
 
7004
  echo "$as_me: failed program was:" >&5
 
7005
sed 's/^/| /' conftest.$ac_ext >&5
 
7006
 
 
7007
ac_cv_type_uint32_t=no
 
7008
fi
 
7009
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7010
fi
 
7011
echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
 
7012
echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
 
7013
if test $ac_cv_type_uint32_t = yes; then
 
7014
 
 
7015
cat >>confdefs.h <<_ACEOF
 
7016
#define HAVE_UINT32_T 1
 
7017
_ACEOF
 
7018
 
 
7019
 
 
7020
fi
 
7021
echo "$as_me:$LINENO: checking for intptr_t" >&5
 
7022
echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
 
7023
if test "${ac_cv_type_intptr_t+set}" = set; then
 
7024
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7025
else
 
7026
  cat >conftest.$ac_ext <<_ACEOF
 
7027
/* confdefs.h.  */
 
7028
_ACEOF
 
7029
cat confdefs.h >>conftest.$ac_ext
 
7030
cat >>conftest.$ac_ext <<_ACEOF
 
7031
/* end confdefs.h.  */
 
7032
$ac_includes_default
 
7033
int
 
7034
main ()
 
7035
{
 
7036
if ((intptr_t *) 0)
 
7037
  return 0;
 
7038
if (sizeof (intptr_t))
 
7039
  return 0;
 
7040
  ;
 
7041
  return 0;
 
7042
}
 
7043
_ACEOF
 
7044
rm -f conftest.$ac_objext
 
7045
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7046
  (eval $ac_compile) 2>conftest.er1
 
7047
  ac_status=$?
 
7048
  grep -v '^ *+' conftest.er1 >conftest.err
 
7049
  rm -f conftest.er1
 
7050
  cat conftest.err >&5
 
7051
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7052
  (exit $ac_status); } &&
 
7053
         { ac_try='test -z "$ac_c_werror_flag"
 
7054
                         || test ! -s conftest.err'
 
7055
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7056
  (eval $ac_try) 2>&5
 
7057
  ac_status=$?
 
7058
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7059
  (exit $ac_status); }; } &&
 
7060
         { ac_try='test -s conftest.$ac_objext'
 
7061
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7062
  (eval $ac_try) 2>&5
 
7063
  ac_status=$?
 
7064
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7065
  (exit $ac_status); }; }; then
 
7066
  ac_cv_type_intptr_t=yes
 
7067
else
 
7068
  echo "$as_me: failed program was:" >&5
 
7069
sed 's/^/| /' conftest.$ac_ext >&5
 
7070
 
 
7071
ac_cv_type_intptr_t=no
 
7072
fi
 
7073
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7074
fi
 
7075
echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
 
7076
echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
 
7077
if test $ac_cv_type_intptr_t = yes; then
 
7078
 
 
7079
cat >>confdefs.h <<_ACEOF
 
7080
#define HAVE_INTPTR_T 1
 
7081
_ACEOF
 
7082
 
 
7083
 
 
7084
fi
 
7085
echo "$as_me:$LINENO: checking for uint_t" >&5
 
7086
echo $ECHO_N "checking for uint_t... $ECHO_C" >&6
 
7087
if test "${ac_cv_type_uint_t+set}" = set; then
 
7088
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7089
else
 
7090
  cat >conftest.$ac_ext <<_ACEOF
 
7091
/* confdefs.h.  */
 
7092
_ACEOF
 
7093
cat confdefs.h >>conftest.$ac_ext
 
7094
cat >>conftest.$ac_ext <<_ACEOF
 
7095
/* end confdefs.h.  */
 
7096
$ac_includes_default
 
7097
int
 
7098
main ()
 
7099
{
 
7100
if ((uint_t *) 0)
 
7101
  return 0;
 
7102
if (sizeof (uint_t))
 
7103
  return 0;
 
7104
  ;
 
7105
  return 0;
 
7106
}
 
7107
_ACEOF
 
7108
rm -f conftest.$ac_objext
 
7109
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7110
  (eval $ac_compile) 2>conftest.er1
 
7111
  ac_status=$?
 
7112
  grep -v '^ *+' conftest.er1 >conftest.err
 
7113
  rm -f conftest.er1
 
7114
  cat conftest.err >&5
 
7115
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7116
  (exit $ac_status); } &&
 
7117
         { ac_try='test -z "$ac_c_werror_flag"
 
7118
                         || test ! -s conftest.err'
 
7119
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7120
  (eval $ac_try) 2>&5
 
7121
  ac_status=$?
 
7122
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7123
  (exit $ac_status); }; } &&
 
7124
         { ac_try='test -s conftest.$ac_objext'
 
7125
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7126
  (eval $ac_try) 2>&5
 
7127
  ac_status=$?
 
7128
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7129
  (exit $ac_status); }; }; then
 
7130
  ac_cv_type_uint_t=yes
 
7131
else
 
7132
  echo "$as_me: failed program was:" >&5
 
7133
sed 's/^/| /' conftest.$ac_ext >&5
 
7134
 
 
7135
ac_cv_type_uint_t=no
 
7136
fi
 
7137
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7138
fi
 
7139
echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
 
7140
echo "${ECHO_T}$ac_cv_type_uint_t" >&6
 
7141
if test $ac_cv_type_uint_t = yes; then
 
7142
 
 
7143
cat >>confdefs.h <<_ACEOF
 
7144
#define HAVE_UINT_T 1
 
7145
_ACEOF
 
7146
 
 
7147
 
 
7148
fi
 
7149
 
 
7150
 
 
7151
  # ====================
 
7152
  # uintptr type & sizes
 
7153
  # ====================
 
7154
  echo "$as_me:$LINENO: checking for uintptr_t" >&5
 
7155
echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
 
7156
if test "${ac_cv_type_uintptr_t+set}" = set; then
 
7157
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7158
else
 
7159
  cat >conftest.$ac_ext <<_ACEOF
 
7160
/* confdefs.h.  */
 
7161
_ACEOF
 
7162
cat confdefs.h >>conftest.$ac_ext
 
7163
cat >>conftest.$ac_ext <<_ACEOF
 
7164
/* end confdefs.h.  */
 
7165
$ac_includes_default
 
7166
int
 
7167
main ()
 
7168
{
 
7169
if ((uintptr_t *) 0)
 
7170
  return 0;
 
7171
if (sizeof (uintptr_t))
 
7172
  return 0;
 
7173
  ;
 
7174
  return 0;
 
7175
}
 
7176
_ACEOF
 
7177
rm -f conftest.$ac_objext
 
7178
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7179
  (eval $ac_compile) 2>conftest.er1
 
7180
  ac_status=$?
 
7181
  grep -v '^ *+' conftest.er1 >conftest.err
 
7182
  rm -f conftest.er1
 
7183
  cat conftest.err >&5
 
7184
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7185
  (exit $ac_status); } &&
 
7186
         { ac_try='test -z "$ac_c_werror_flag"
 
7187
                         || test ! -s conftest.err'
 
7188
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7189
  (eval $ac_try) 2>&5
 
7190
  ac_status=$?
 
7191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7192
  (exit $ac_status); }; } &&
 
7193
         { ac_try='test -s conftest.$ac_objext'
 
7194
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7195
  (eval $ac_try) 2>&5
 
7196
  ac_status=$?
 
7197
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7198
  (exit $ac_status); }; }; then
 
7199
  ac_cv_type_uintptr_t=yes
 
7200
else
 
7201
  echo "$as_me: failed program was:" >&5
 
7202
sed 's/^/| /' conftest.$ac_ext >&5
 
7203
 
 
7204
ac_cv_type_uintptr_t=no
 
7205
fi
 
7206
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7207
fi
 
7208
echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
 
7209
echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
 
7210
if test $ac_cv_type_uintptr_t = yes; then
 
7211
 
 
7212
cat >>confdefs.h <<_ACEOF
 
7213
#define HAVE_UINTPTR_T 1
 
7214
_ACEOF
 
7215
 
 
7216
 
 
7217
else
 
7218
 
 
7219
cat >>confdefs.h <<\_ACEOF
 
7220
#define uintptr_t unsigned long
 
7221
_ACEOF
 
7222
 
 
7223
fi
 
7224
 
 
7225
  echo "$as_me:$LINENO: checking for char*" >&5
 
7226
echo $ECHO_N "checking for char*... $ECHO_C" >&6
 
7227
if test "${ac_cv_type_charp+set}" = set; then
 
7228
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7229
else
 
7230
  cat >conftest.$ac_ext <<_ACEOF
 
7231
/* confdefs.h.  */
 
7232
_ACEOF
 
7233
cat confdefs.h >>conftest.$ac_ext
 
7234
cat >>conftest.$ac_ext <<_ACEOF
 
7235
/* end confdefs.h.  */
 
7236
$ac_includes_default
 
7237
int
 
7238
main ()
 
7239
{
 
7240
if ((char* *) 0)
 
7241
  return 0;
 
7242
if (sizeof (char*))
 
7243
  return 0;
 
7244
  ;
 
7245
  return 0;
 
7246
}
 
7247
_ACEOF
 
7248
rm -f conftest.$ac_objext
 
7249
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7250
  (eval $ac_compile) 2>conftest.er1
 
7251
  ac_status=$?
 
7252
  grep -v '^ *+' conftest.er1 >conftest.err
 
7253
  rm -f conftest.er1
 
7254
  cat conftest.err >&5
 
7255
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7256
  (exit $ac_status); } &&
 
7257
         { ac_try='test -z "$ac_c_werror_flag"
 
7258
                         || test ! -s conftest.err'
 
7259
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7260
  (eval $ac_try) 2>&5
 
7261
  ac_status=$?
 
7262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7263
  (exit $ac_status); }; } &&
 
7264
         { ac_try='test -s conftest.$ac_objext'
 
7265
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7266
  (eval $ac_try) 2>&5
 
7267
  ac_status=$?
 
7268
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7269
  (exit $ac_status); }; }; then
 
7270
  ac_cv_type_charp=yes
 
7271
else
 
7272
  echo "$as_me: failed program was:" >&5
 
7273
sed 's/^/| /' conftest.$ac_ext >&5
 
7274
 
 
7275
ac_cv_type_charp=no
 
7276
fi
 
7277
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7278
fi
 
7279
echo "$as_me:$LINENO: result: $ac_cv_type_charp" >&5
 
7280
echo "${ECHO_T}$ac_cv_type_charp" >&6
 
7281
 
 
7282
echo "$as_me:$LINENO: checking size of char*" >&5
 
7283
echo $ECHO_N "checking size of char*... $ECHO_C" >&6
 
7284
if test "${ac_cv_sizeof_charp+set}" = set; then
 
7285
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7286
else
 
7287
  if test "$ac_cv_type_charp" = yes; then
 
7288
  # The cast to unsigned long works around a bug in the HP C Compiler
 
7289
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
7290
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
7291
  # This bug is HP SR number 8606223364.
 
7292
  if test "$cross_compiling" = yes; then
 
7293
  # Depending upon the size, compute the lo and hi bounds.
 
7294
cat >conftest.$ac_ext <<_ACEOF
 
7295
/* confdefs.h.  */
 
7296
_ACEOF
 
7297
cat confdefs.h >>conftest.$ac_ext
 
7298
cat >>conftest.$ac_ext <<_ACEOF
 
7299
/* end confdefs.h.  */
 
7300
$ac_includes_default
 
7301
int
 
7302
main ()
 
7303
{
 
7304
static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= 0)];
 
7305
test_array [0] = 0
 
7306
 
 
7307
  ;
 
7308
  return 0;
 
7309
}
 
7310
_ACEOF
 
7311
rm -f conftest.$ac_objext
 
7312
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7313
  (eval $ac_compile) 2>conftest.er1
 
7314
  ac_status=$?
 
7315
  grep -v '^ *+' conftest.er1 >conftest.err
 
7316
  rm -f conftest.er1
 
7317
  cat conftest.err >&5
 
7318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7319
  (exit $ac_status); } &&
 
7320
         { ac_try='test -z "$ac_c_werror_flag"
 
7321
                         || test ! -s conftest.err'
 
7322
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7323
  (eval $ac_try) 2>&5
 
7324
  ac_status=$?
 
7325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7326
  (exit $ac_status); }; } &&
 
7327
         { ac_try='test -s conftest.$ac_objext'
 
7328
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7329
  (eval $ac_try) 2>&5
 
7330
  ac_status=$?
 
7331
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7332
  (exit $ac_status); }; }; then
 
7333
  ac_lo=0 ac_mid=0
 
7334
  while :; do
 
7335
    cat >conftest.$ac_ext <<_ACEOF
 
7336
/* confdefs.h.  */
 
7337
_ACEOF
 
7338
cat confdefs.h >>conftest.$ac_ext
 
7339
cat >>conftest.$ac_ext <<_ACEOF
 
7340
/* end confdefs.h.  */
 
7341
$ac_includes_default
 
7342
int
 
7343
main ()
 
7344
{
 
7345
static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)];
 
7346
test_array [0] = 0
 
7347
 
 
7348
  ;
 
7349
  return 0;
 
7350
}
 
7351
_ACEOF
 
7352
rm -f conftest.$ac_objext
 
7353
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7354
  (eval $ac_compile) 2>conftest.er1
 
7355
  ac_status=$?
 
7356
  grep -v '^ *+' conftest.er1 >conftest.err
 
7357
  rm -f conftest.er1
 
7358
  cat conftest.err >&5
 
7359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7360
  (exit $ac_status); } &&
 
7361
         { ac_try='test -z "$ac_c_werror_flag"
 
7362
                         || test ! -s conftest.err'
 
7363
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7364
  (eval $ac_try) 2>&5
 
7365
  ac_status=$?
 
7366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7367
  (exit $ac_status); }; } &&
 
7368
         { ac_try='test -s conftest.$ac_objext'
 
7369
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7370
  (eval $ac_try) 2>&5
 
7371
  ac_status=$?
 
7372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7373
  (exit $ac_status); }; }; then
 
7374
  ac_hi=$ac_mid; break
 
7375
else
 
7376
  echo "$as_me: failed program was:" >&5
 
7377
sed 's/^/| /' conftest.$ac_ext >&5
 
7378
 
 
7379
ac_lo=`expr $ac_mid + 1`
 
7380
                    if test $ac_lo -le $ac_mid; then
 
7381
                      ac_lo= ac_hi=
 
7382
                      break
 
7383
                    fi
 
7384
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
7385
fi
 
7386
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7387
  done
 
7388
else
 
7389
  echo "$as_me: failed program was:" >&5
 
7390
sed 's/^/| /' conftest.$ac_ext >&5
 
7391
 
 
7392
cat >conftest.$ac_ext <<_ACEOF
 
7393
/* confdefs.h.  */
 
7394
_ACEOF
 
7395
cat confdefs.h >>conftest.$ac_ext
 
7396
cat >>conftest.$ac_ext <<_ACEOF
 
7397
/* end confdefs.h.  */
 
7398
$ac_includes_default
 
7399
int
 
7400
main ()
 
7401
{
 
7402
static int test_array [1 - 2 * !(((long) (sizeof (char*))) < 0)];
 
7403
test_array [0] = 0
 
7404
 
 
7405
  ;
 
7406
  return 0;
 
7407
}
 
7408
_ACEOF
 
7409
rm -f conftest.$ac_objext
 
7410
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7411
  (eval $ac_compile) 2>conftest.er1
 
7412
  ac_status=$?
 
7413
  grep -v '^ *+' conftest.er1 >conftest.err
 
7414
  rm -f conftest.er1
 
7415
  cat conftest.err >&5
 
7416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7417
  (exit $ac_status); } &&
 
7418
         { ac_try='test -z "$ac_c_werror_flag"
 
7419
                         || test ! -s conftest.err'
 
7420
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7421
  (eval $ac_try) 2>&5
 
7422
  ac_status=$?
 
7423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7424
  (exit $ac_status); }; } &&
 
7425
         { ac_try='test -s conftest.$ac_objext'
 
7426
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7427
  (eval $ac_try) 2>&5
 
7428
  ac_status=$?
 
7429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7430
  (exit $ac_status); }; }; then
 
7431
  ac_hi=-1 ac_mid=-1
 
7432
  while :; do
 
7433
    cat >conftest.$ac_ext <<_ACEOF
 
7434
/* confdefs.h.  */
 
7435
_ACEOF
 
7436
cat confdefs.h >>conftest.$ac_ext
 
7437
cat >>conftest.$ac_ext <<_ACEOF
 
7438
/* end confdefs.h.  */
 
7439
$ac_includes_default
 
7440
int
 
7441
main ()
 
7442
{
 
7443
static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= $ac_mid)];
 
7444
test_array [0] = 0
 
7445
 
 
7446
  ;
 
7447
  return 0;
 
7448
}
 
7449
_ACEOF
 
7450
rm -f conftest.$ac_objext
 
7451
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7452
  (eval $ac_compile) 2>conftest.er1
 
7453
  ac_status=$?
 
7454
  grep -v '^ *+' conftest.er1 >conftest.err
 
7455
  rm -f conftest.er1
 
7456
  cat conftest.err >&5
 
7457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7458
  (exit $ac_status); } &&
 
7459
         { ac_try='test -z "$ac_c_werror_flag"
 
7460
                         || test ! -s conftest.err'
 
7461
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7462
  (eval $ac_try) 2>&5
 
7463
  ac_status=$?
 
7464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7465
  (exit $ac_status); }; } &&
 
7466
         { ac_try='test -s conftest.$ac_objext'
 
7467
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7468
  (eval $ac_try) 2>&5
 
7469
  ac_status=$?
 
7470
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7471
  (exit $ac_status); }; }; then
 
7472
  ac_lo=$ac_mid; break
 
7473
else
 
7474
  echo "$as_me: failed program was:" >&5
 
7475
sed 's/^/| /' conftest.$ac_ext >&5
 
7476
 
 
7477
ac_hi=`expr '(' $ac_mid ')' - 1`
 
7478
                       if test $ac_mid -le $ac_hi; then
 
7479
                         ac_lo= ac_hi=
 
7480
                         break
 
7481
                       fi
 
7482
                       ac_mid=`expr 2 '*' $ac_mid`
 
7483
fi
 
7484
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7485
  done
 
7486
else
 
7487
  echo "$as_me: failed program was:" >&5
 
7488
sed 's/^/| /' conftest.$ac_ext >&5
 
7489
 
 
7490
ac_lo= ac_hi=
 
7491
fi
 
7492
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7493
fi
 
7494
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7495
# Binary search between lo and hi bounds.
 
7496
while test "x$ac_lo" != "x$ac_hi"; do
 
7497
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
7498
  cat >conftest.$ac_ext <<_ACEOF
 
7499
/* confdefs.h.  */
 
7500
_ACEOF
 
7501
cat confdefs.h >>conftest.$ac_ext
 
7502
cat >>conftest.$ac_ext <<_ACEOF
 
7503
/* end confdefs.h.  */
 
7504
$ac_includes_default
 
7505
int
 
7506
main ()
 
7507
{
 
7508
static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)];
 
7509
test_array [0] = 0
 
7510
 
 
7511
  ;
 
7512
  return 0;
 
7513
}
 
7514
_ACEOF
 
7515
rm -f conftest.$ac_objext
 
7516
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7517
  (eval $ac_compile) 2>conftest.er1
 
7518
  ac_status=$?
 
7519
  grep -v '^ *+' conftest.er1 >conftest.err
 
7520
  rm -f conftest.er1
 
7521
  cat conftest.err >&5
 
7522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7523
  (exit $ac_status); } &&
 
7524
         { ac_try='test -z "$ac_c_werror_flag"
 
7525
                         || test ! -s conftest.err'
 
7526
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7527
  (eval $ac_try) 2>&5
 
7528
  ac_status=$?
 
7529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7530
  (exit $ac_status); }; } &&
 
7531
         { ac_try='test -s conftest.$ac_objext'
 
7532
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7533
  (eval $ac_try) 2>&5
 
7534
  ac_status=$?
 
7535
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7536
  (exit $ac_status); }; }; then
 
7537
  ac_hi=$ac_mid
 
7538
else
 
7539
  echo "$as_me: failed program was:" >&5
 
7540
sed 's/^/| /' conftest.$ac_ext >&5
 
7541
 
 
7542
ac_lo=`expr '(' $ac_mid ')' + 1`
 
7543
fi
 
7544
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7545
done
 
7546
case $ac_lo in
 
7547
?*) ac_cv_sizeof_charp=$ac_lo;;
 
7548
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77
 
7549
See \`config.log' for more details." >&5
 
7550
echo "$as_me: error: cannot compute sizeof (char*), 77
 
7551
See \`config.log' for more details." >&2;}
 
7552
   { (exit 1); exit 1; }; } ;;
 
7553
esac
 
7554
else
 
7555
  if test "$cross_compiling" = yes; then
 
7556
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
7557
See \`config.log' for more details." >&5
 
7558
echo "$as_me: error: cannot run test program while cross compiling
 
7559
See \`config.log' for more details." >&2;}
 
7560
   { (exit 1); exit 1; }; }
 
7561
else
 
7562
  cat >conftest.$ac_ext <<_ACEOF
 
7563
/* confdefs.h.  */
 
7564
_ACEOF
 
7565
cat confdefs.h >>conftest.$ac_ext
 
7566
cat >>conftest.$ac_ext <<_ACEOF
 
7567
/* end confdefs.h.  */
 
7568
$ac_includes_default
 
7569
long longval () { return (long) (sizeof (char*)); }
 
7570
unsigned long ulongval () { return (long) (sizeof (char*)); }
 
7571
#include <stdio.h>
 
7572
#include <stdlib.h>
 
7573
int
 
7574
main ()
 
7575
{
 
7576
 
 
7577
  FILE *f = fopen ("conftest.val", "w");
 
7578
  if (! f)
 
7579
    exit (1);
 
7580
  if (((long) (sizeof (char*))) < 0)
 
7581
    {
 
7582
      long i = longval ();
 
7583
      if (i != ((long) (sizeof (char*))))
 
7584
        exit (1);
 
7585
      fprintf (f, "%ld\n", i);
 
7586
    }
 
7587
  else
 
7588
    {
 
7589
      unsigned long i = ulongval ();
 
7590
      if (i != ((long) (sizeof (char*))))
 
7591
        exit (1);
 
7592
      fprintf (f, "%lu\n", i);
 
7593
    }
 
7594
  exit (ferror (f) || fclose (f) != 0);
 
7595
 
 
7596
  ;
 
7597
  return 0;
 
7598
}
 
7599
_ACEOF
 
7600
rm -f conftest$ac_exeext
 
7601
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7602
  (eval $ac_link) 2>&5
 
7603
  ac_status=$?
 
7604
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7605
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7606
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7607
  (eval $ac_try) 2>&5
 
7608
  ac_status=$?
 
7609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7610
  (exit $ac_status); }; }; then
 
7611
  ac_cv_sizeof_charp=`cat conftest.val`
 
7612
else
 
7613
  echo "$as_me: program exited with status $ac_status" >&5
 
7614
echo "$as_me: failed program was:" >&5
 
7615
sed 's/^/| /' conftest.$ac_ext >&5
 
7616
 
 
7617
( exit $ac_status )
 
7618
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77
 
7619
See \`config.log' for more details." >&5
 
7620
echo "$as_me: error: cannot compute sizeof (char*), 77
 
7621
See \`config.log' for more details." >&2;}
 
7622
   { (exit 1); exit 1; }; }
 
7623
fi
 
7624
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7625
fi
 
7626
fi
 
7627
rm -f conftest.val
 
7628
else
 
7629
  ac_cv_sizeof_charp=0
 
7630
fi
 
7631
fi
 
7632
echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
 
7633
echo "${ECHO_T}$ac_cv_sizeof_charp" >&6
 
7634
cat >>confdefs.h <<_ACEOF
 
7635
#define SIZEOF_CHARP $ac_cv_sizeof_charp
 
7636
_ACEOF
 
7637
 
 
7638
 
 
7639
  echo "$as_me:$LINENO: checking for int" >&5
 
7640
echo $ECHO_N "checking for int... $ECHO_C" >&6
 
7641
if test "${ac_cv_type_int+set}" = set; then
 
7642
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7643
else
 
7644
  cat >conftest.$ac_ext <<_ACEOF
 
7645
/* confdefs.h.  */
 
7646
_ACEOF
 
7647
cat confdefs.h >>conftest.$ac_ext
 
7648
cat >>conftest.$ac_ext <<_ACEOF
 
7649
/* end confdefs.h.  */
 
7650
$ac_includes_default
 
7651
int
 
7652
main ()
 
7653
{
 
7654
if ((int *) 0)
 
7655
  return 0;
 
7656
if (sizeof (int))
 
7657
  return 0;
 
7658
  ;
 
7659
  return 0;
 
7660
}
 
7661
_ACEOF
 
7662
rm -f conftest.$ac_objext
 
7663
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7664
  (eval $ac_compile) 2>conftest.er1
 
7665
  ac_status=$?
 
7666
  grep -v '^ *+' conftest.er1 >conftest.err
 
7667
  rm -f conftest.er1
 
7668
  cat conftest.err >&5
 
7669
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7670
  (exit $ac_status); } &&
 
7671
         { ac_try='test -z "$ac_c_werror_flag"
 
7672
                         || test ! -s conftest.err'
 
7673
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7674
  (eval $ac_try) 2>&5
 
7675
  ac_status=$?
 
7676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7677
  (exit $ac_status); }; } &&
 
7678
         { ac_try='test -s conftest.$ac_objext'
 
7679
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7680
  (eval $ac_try) 2>&5
 
7681
  ac_status=$?
 
7682
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7683
  (exit $ac_status); }; }; then
 
7684
  ac_cv_type_int=yes
 
7685
else
 
7686
  echo "$as_me: failed program was:" >&5
 
7687
sed 's/^/| /' conftest.$ac_ext >&5
 
7688
 
 
7689
ac_cv_type_int=no
 
7690
fi
 
7691
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7692
fi
 
7693
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
 
7694
echo "${ECHO_T}$ac_cv_type_int" >&6
 
7695
 
 
7696
echo "$as_me:$LINENO: checking size of int" >&5
 
7697
echo $ECHO_N "checking size of int... $ECHO_C" >&6
 
7698
if test "${ac_cv_sizeof_int+set}" = set; then
 
7699
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7700
else
 
7701
  if test "$ac_cv_type_int" = yes; then
 
7702
  # The cast to unsigned long works around a bug in the HP C Compiler
 
7703
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
7704
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
7705
  # This bug is HP SR number 8606223364.
 
7706
  if test "$cross_compiling" = yes; then
 
7707
  # Depending upon the size, compute the lo and hi bounds.
 
7708
cat >conftest.$ac_ext <<_ACEOF
 
7709
/* confdefs.h.  */
 
7710
_ACEOF
 
7711
cat confdefs.h >>conftest.$ac_ext
 
7712
cat >>conftest.$ac_ext <<_ACEOF
 
7713
/* end confdefs.h.  */
 
7714
$ac_includes_default
 
7715
int
 
7716
main ()
 
7717
{
 
7718
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
 
7719
test_array [0] = 0
 
7720
 
 
7721
  ;
 
7722
  return 0;
 
7723
}
 
7724
_ACEOF
 
7725
rm -f conftest.$ac_objext
 
7726
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7727
  (eval $ac_compile) 2>conftest.er1
 
7728
  ac_status=$?
 
7729
  grep -v '^ *+' conftest.er1 >conftest.err
 
7730
  rm -f conftest.er1
 
7731
  cat conftest.err >&5
 
7732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7733
  (exit $ac_status); } &&
 
7734
         { ac_try='test -z "$ac_c_werror_flag"
 
7735
                         || test ! -s conftest.err'
 
7736
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7737
  (eval $ac_try) 2>&5
 
7738
  ac_status=$?
 
7739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7740
  (exit $ac_status); }; } &&
 
7741
         { ac_try='test -s conftest.$ac_objext'
 
7742
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7743
  (eval $ac_try) 2>&5
 
7744
  ac_status=$?
 
7745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7746
  (exit $ac_status); }; }; then
 
7747
  ac_lo=0 ac_mid=0
 
7748
  while :; do
 
7749
    cat >conftest.$ac_ext <<_ACEOF
 
7750
/* confdefs.h.  */
 
7751
_ACEOF
 
7752
cat confdefs.h >>conftest.$ac_ext
 
7753
cat >>conftest.$ac_ext <<_ACEOF
 
7754
/* end confdefs.h.  */
 
7755
$ac_includes_default
 
7756
int
 
7757
main ()
 
7758
{
 
7759
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
 
7760
test_array [0] = 0
 
7761
 
 
7762
  ;
 
7763
  return 0;
 
7764
}
 
7765
_ACEOF
 
7766
rm -f conftest.$ac_objext
 
7767
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7768
  (eval $ac_compile) 2>conftest.er1
 
7769
  ac_status=$?
 
7770
  grep -v '^ *+' conftest.er1 >conftest.err
 
7771
  rm -f conftest.er1
 
7772
  cat conftest.err >&5
 
7773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7774
  (exit $ac_status); } &&
 
7775
         { ac_try='test -z "$ac_c_werror_flag"
 
7776
                         || test ! -s conftest.err'
 
7777
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7778
  (eval $ac_try) 2>&5
 
7779
  ac_status=$?
 
7780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7781
  (exit $ac_status); }; } &&
 
7782
         { ac_try='test -s conftest.$ac_objext'
 
7783
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7784
  (eval $ac_try) 2>&5
 
7785
  ac_status=$?
 
7786
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7787
  (exit $ac_status); }; }; then
 
7788
  ac_hi=$ac_mid; break
 
7789
else
 
7790
  echo "$as_me: failed program was:" >&5
 
7791
sed 's/^/| /' conftest.$ac_ext >&5
 
7792
 
 
7793
ac_lo=`expr $ac_mid + 1`
 
7794
                    if test $ac_lo -le $ac_mid; then
 
7795
                      ac_lo= ac_hi=
 
7796
                      break
 
7797
                    fi
 
7798
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
7799
fi
 
7800
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7801
  done
 
7802
else
 
7803
  echo "$as_me: failed program was:" >&5
 
7804
sed 's/^/| /' conftest.$ac_ext >&5
 
7805
 
 
7806
cat >conftest.$ac_ext <<_ACEOF
 
7807
/* confdefs.h.  */
 
7808
_ACEOF
 
7809
cat confdefs.h >>conftest.$ac_ext
 
7810
cat >>conftest.$ac_ext <<_ACEOF
 
7811
/* end confdefs.h.  */
 
7812
$ac_includes_default
 
7813
int
 
7814
main ()
 
7815
{
 
7816
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
 
7817
test_array [0] = 0
 
7818
 
 
7819
  ;
 
7820
  return 0;
 
7821
}
 
7822
_ACEOF
 
7823
rm -f conftest.$ac_objext
 
7824
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7825
  (eval $ac_compile) 2>conftest.er1
 
7826
  ac_status=$?
 
7827
  grep -v '^ *+' conftest.er1 >conftest.err
 
7828
  rm -f conftest.er1
 
7829
  cat conftest.err >&5
 
7830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7831
  (exit $ac_status); } &&
 
7832
         { ac_try='test -z "$ac_c_werror_flag"
 
7833
                         || test ! -s conftest.err'
 
7834
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7835
  (eval $ac_try) 2>&5
 
7836
  ac_status=$?
 
7837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7838
  (exit $ac_status); }; } &&
 
7839
         { ac_try='test -s conftest.$ac_objext'
 
7840
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7841
  (eval $ac_try) 2>&5
 
7842
  ac_status=$?
 
7843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7844
  (exit $ac_status); }; }; then
 
7845
  ac_hi=-1 ac_mid=-1
 
7846
  while :; do
 
7847
    cat >conftest.$ac_ext <<_ACEOF
 
7848
/* confdefs.h.  */
 
7849
_ACEOF
 
7850
cat confdefs.h >>conftest.$ac_ext
 
7851
cat >>conftest.$ac_ext <<_ACEOF
 
7852
/* end confdefs.h.  */
 
7853
$ac_includes_default
 
7854
int
 
7855
main ()
 
7856
{
 
7857
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
 
7858
test_array [0] = 0
 
7859
 
 
7860
  ;
 
7861
  return 0;
 
7862
}
 
7863
_ACEOF
 
7864
rm -f conftest.$ac_objext
 
7865
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7866
  (eval $ac_compile) 2>conftest.er1
 
7867
  ac_status=$?
 
7868
  grep -v '^ *+' conftest.er1 >conftest.err
 
7869
  rm -f conftest.er1
 
7870
  cat conftest.err >&5
 
7871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7872
  (exit $ac_status); } &&
 
7873
         { ac_try='test -z "$ac_c_werror_flag"
 
7874
                         || test ! -s conftest.err'
 
7875
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7876
  (eval $ac_try) 2>&5
 
7877
  ac_status=$?
 
7878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7879
  (exit $ac_status); }; } &&
 
7880
         { ac_try='test -s conftest.$ac_objext'
 
7881
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7882
  (eval $ac_try) 2>&5
 
7883
  ac_status=$?
 
7884
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7885
  (exit $ac_status); }; }; then
 
7886
  ac_lo=$ac_mid; break
 
7887
else
 
7888
  echo "$as_me: failed program was:" >&5
 
7889
sed 's/^/| /' conftest.$ac_ext >&5
 
7890
 
 
7891
ac_hi=`expr '(' $ac_mid ')' - 1`
 
7892
                       if test $ac_mid -le $ac_hi; then
 
7893
                         ac_lo= ac_hi=
 
7894
                         break
 
7895
                       fi
 
7896
                       ac_mid=`expr 2 '*' $ac_mid`
 
7897
fi
 
7898
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7899
  done
 
7900
else
 
7901
  echo "$as_me: failed program was:" >&5
 
7902
sed 's/^/| /' conftest.$ac_ext >&5
 
7903
 
 
7904
ac_lo= ac_hi=
 
7905
fi
 
7906
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7907
fi
 
7908
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7909
# Binary search between lo and hi bounds.
 
7910
while test "x$ac_lo" != "x$ac_hi"; do
 
7911
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
7912
  cat >conftest.$ac_ext <<_ACEOF
 
7913
/* confdefs.h.  */
 
7914
_ACEOF
 
7915
cat confdefs.h >>conftest.$ac_ext
 
7916
cat >>conftest.$ac_ext <<_ACEOF
 
7917
/* end confdefs.h.  */
 
7918
$ac_includes_default
 
7919
int
 
7920
main ()
 
7921
{
 
7922
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
 
7923
test_array [0] = 0
 
7924
 
 
7925
  ;
 
7926
  return 0;
 
7927
}
 
7928
_ACEOF
 
7929
rm -f conftest.$ac_objext
 
7930
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7931
  (eval $ac_compile) 2>conftest.er1
 
7932
  ac_status=$?
 
7933
  grep -v '^ *+' conftest.er1 >conftest.err
 
7934
  rm -f conftest.er1
 
7935
  cat conftest.err >&5
 
7936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7937
  (exit $ac_status); } &&
 
7938
         { ac_try='test -z "$ac_c_werror_flag"
 
7939
                         || test ! -s conftest.err'
 
7940
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7941
  (eval $ac_try) 2>&5
 
7942
  ac_status=$?
 
7943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7944
  (exit $ac_status); }; } &&
 
7945
         { ac_try='test -s conftest.$ac_objext'
 
7946
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7947
  (eval $ac_try) 2>&5
 
7948
  ac_status=$?
 
7949
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7950
  (exit $ac_status); }; }; then
 
7951
  ac_hi=$ac_mid
 
7952
else
 
7953
  echo "$as_me: failed program was:" >&5
 
7954
sed 's/^/| /' conftest.$ac_ext >&5
 
7955
 
 
7956
ac_lo=`expr '(' $ac_mid ')' + 1`
 
7957
fi
 
7958
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7959
done
 
7960
case $ac_lo in
 
7961
?*) ac_cv_sizeof_int=$ac_lo;;
 
7962
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
 
7963
See \`config.log' for more details." >&5
 
7964
echo "$as_me: error: cannot compute sizeof (int), 77
 
7965
See \`config.log' for more details." >&2;}
 
7966
   { (exit 1); exit 1; }; } ;;
 
7967
esac
 
7968
else
 
7969
  if test "$cross_compiling" = yes; then
 
7970
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
7971
See \`config.log' for more details." >&5
 
7972
echo "$as_me: error: cannot run test program while cross compiling
 
7973
See \`config.log' for more details." >&2;}
 
7974
   { (exit 1); exit 1; }; }
 
7975
else
 
7976
  cat >conftest.$ac_ext <<_ACEOF
 
7977
/* confdefs.h.  */
 
7978
_ACEOF
 
7979
cat confdefs.h >>conftest.$ac_ext
 
7980
cat >>conftest.$ac_ext <<_ACEOF
 
7981
/* end confdefs.h.  */
 
7982
$ac_includes_default
 
7983
long longval () { return (long) (sizeof (int)); }
 
7984
unsigned long ulongval () { return (long) (sizeof (int)); }
 
7985
#include <stdio.h>
 
7986
#include <stdlib.h>
 
7987
int
 
7988
main ()
 
7989
{
 
7990
 
 
7991
  FILE *f = fopen ("conftest.val", "w");
 
7992
  if (! f)
 
7993
    exit (1);
 
7994
  if (((long) (sizeof (int))) < 0)
 
7995
    {
 
7996
      long i = longval ();
 
7997
      if (i != ((long) (sizeof (int))))
 
7998
        exit (1);
 
7999
      fprintf (f, "%ld\n", i);
 
8000
    }
 
8001
  else
 
8002
    {
 
8003
      unsigned long i = ulongval ();
 
8004
      if (i != ((long) (sizeof (int))))
 
8005
        exit (1);
 
8006
      fprintf (f, "%lu\n", i);
 
8007
    }
 
8008
  exit (ferror (f) || fclose (f) != 0);
 
8009
 
 
8010
  ;
 
8011
  return 0;
 
8012
}
 
8013
_ACEOF
 
8014
rm -f conftest$ac_exeext
 
8015
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8016
  (eval $ac_link) 2>&5
 
8017
  ac_status=$?
 
8018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8019
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
8020
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8021
  (eval $ac_try) 2>&5
 
8022
  ac_status=$?
 
8023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8024
  (exit $ac_status); }; }; then
 
8025
  ac_cv_sizeof_int=`cat conftest.val`
 
8026
else
 
8027
  echo "$as_me: program exited with status $ac_status" >&5
 
8028
echo "$as_me: failed program was:" >&5
 
8029
sed 's/^/| /' conftest.$ac_ext >&5
 
8030
 
 
8031
( exit $ac_status )
 
8032
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
 
8033
See \`config.log' for more details." >&5
 
8034
echo "$as_me: error: cannot compute sizeof (int), 77
 
8035
See \`config.log' for more details." >&2;}
 
8036
   { (exit 1); exit 1; }; }
 
8037
fi
 
8038
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
8039
fi
 
8040
fi
 
8041
rm -f conftest.val
 
8042
else
 
8043
  ac_cv_sizeof_int=0
 
8044
fi
 
8045
fi
 
8046
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
 
8047
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
 
8048
cat >>confdefs.h <<_ACEOF
 
8049
#define SIZEOF_INT $ac_cv_sizeof_int
 
8050
_ACEOF
 
8051
 
 
8052
 
 
8053
  echo "$as_me:$LINENO: checking for long" >&5
 
8054
echo $ECHO_N "checking for long... $ECHO_C" >&6
 
8055
if test "${ac_cv_type_long+set}" = set; then
 
8056
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8057
else
 
8058
  cat >conftest.$ac_ext <<_ACEOF
 
8059
/* confdefs.h.  */
 
8060
_ACEOF
 
8061
cat confdefs.h >>conftest.$ac_ext
 
8062
cat >>conftest.$ac_ext <<_ACEOF
 
8063
/* end confdefs.h.  */
 
8064
$ac_includes_default
 
8065
int
 
8066
main ()
 
8067
{
 
8068
if ((long *) 0)
 
8069
  return 0;
 
8070
if (sizeof (long))
 
8071
  return 0;
 
8072
  ;
 
8073
  return 0;
 
8074
}
 
8075
_ACEOF
 
8076
rm -f conftest.$ac_objext
 
8077
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8078
  (eval $ac_compile) 2>conftest.er1
 
8079
  ac_status=$?
 
8080
  grep -v '^ *+' conftest.er1 >conftest.err
 
8081
  rm -f conftest.er1
 
8082
  cat conftest.err >&5
 
8083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8084
  (exit $ac_status); } &&
 
8085
         { ac_try='test -z "$ac_c_werror_flag"
 
8086
                         || test ! -s conftest.err'
 
8087
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8088
  (eval $ac_try) 2>&5
 
8089
  ac_status=$?
 
8090
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8091
  (exit $ac_status); }; } &&
 
8092
         { ac_try='test -s conftest.$ac_objext'
 
8093
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8094
  (eval $ac_try) 2>&5
 
8095
  ac_status=$?
 
8096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8097
  (exit $ac_status); }; }; then
 
8098
  ac_cv_type_long=yes
 
8099
else
 
8100
  echo "$as_me: failed program was:" >&5
 
8101
sed 's/^/| /' conftest.$ac_ext >&5
 
8102
 
 
8103
ac_cv_type_long=no
 
8104
fi
 
8105
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8106
fi
 
8107
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
 
8108
echo "${ECHO_T}$ac_cv_type_long" >&6
 
8109
 
 
8110
echo "$as_me:$LINENO: checking size of long" >&5
 
8111
echo $ECHO_N "checking size of long... $ECHO_C" >&6
 
8112
if test "${ac_cv_sizeof_long+set}" = set; then
 
8113
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8114
else
 
8115
  if test "$ac_cv_type_long" = yes; then
 
8116
  # The cast to unsigned long works around a bug in the HP C Compiler
 
8117
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
8118
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
8119
  # This bug is HP SR number 8606223364.
 
8120
  if test "$cross_compiling" = yes; then
 
8121
  # Depending upon the size, compute the lo and hi bounds.
 
8122
cat >conftest.$ac_ext <<_ACEOF
 
8123
/* confdefs.h.  */
 
8124
_ACEOF
 
8125
cat confdefs.h >>conftest.$ac_ext
 
8126
cat >>conftest.$ac_ext <<_ACEOF
 
8127
/* end confdefs.h.  */
 
8128
$ac_includes_default
 
8129
int
 
8130
main ()
 
8131
{
 
8132
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
 
8133
test_array [0] = 0
 
8134
 
 
8135
  ;
 
8136
  return 0;
 
8137
}
 
8138
_ACEOF
 
8139
rm -f conftest.$ac_objext
 
8140
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8141
  (eval $ac_compile) 2>conftest.er1
 
8142
  ac_status=$?
 
8143
  grep -v '^ *+' conftest.er1 >conftest.err
 
8144
  rm -f conftest.er1
 
8145
  cat conftest.err >&5
 
8146
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8147
  (exit $ac_status); } &&
 
8148
         { ac_try='test -z "$ac_c_werror_flag"
 
8149
                         || test ! -s conftest.err'
 
8150
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8151
  (eval $ac_try) 2>&5
 
8152
  ac_status=$?
 
8153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8154
  (exit $ac_status); }; } &&
 
8155
         { ac_try='test -s conftest.$ac_objext'
 
8156
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8157
  (eval $ac_try) 2>&5
 
8158
  ac_status=$?
 
8159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8160
  (exit $ac_status); }; }; then
 
8161
  ac_lo=0 ac_mid=0
 
8162
  while :; do
 
8163
    cat >conftest.$ac_ext <<_ACEOF
 
8164
/* confdefs.h.  */
 
8165
_ACEOF
 
8166
cat confdefs.h >>conftest.$ac_ext
 
8167
cat >>conftest.$ac_ext <<_ACEOF
 
8168
/* end confdefs.h.  */
 
8169
$ac_includes_default
 
8170
int
 
8171
main ()
 
8172
{
 
8173
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
 
8174
test_array [0] = 0
 
8175
 
 
8176
  ;
 
8177
  return 0;
 
8178
}
 
8179
_ACEOF
 
8180
rm -f conftest.$ac_objext
 
8181
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8182
  (eval $ac_compile) 2>conftest.er1
 
8183
  ac_status=$?
 
8184
  grep -v '^ *+' conftest.er1 >conftest.err
 
8185
  rm -f conftest.er1
 
8186
  cat conftest.err >&5
 
8187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8188
  (exit $ac_status); } &&
 
8189
         { ac_try='test -z "$ac_c_werror_flag"
 
8190
                         || test ! -s conftest.err'
 
8191
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8192
  (eval $ac_try) 2>&5
 
8193
  ac_status=$?
 
8194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8195
  (exit $ac_status); }; } &&
 
8196
         { ac_try='test -s conftest.$ac_objext'
 
8197
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8198
  (eval $ac_try) 2>&5
 
8199
  ac_status=$?
 
8200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8201
  (exit $ac_status); }; }; then
 
8202
  ac_hi=$ac_mid; break
 
8203
else
 
8204
  echo "$as_me: failed program was:" >&5
 
8205
sed 's/^/| /' conftest.$ac_ext >&5
 
8206
 
 
8207
ac_lo=`expr $ac_mid + 1`
 
8208
                    if test $ac_lo -le $ac_mid; then
 
8209
                      ac_lo= ac_hi=
 
8210
                      break
 
8211
                    fi
 
8212
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
8213
fi
 
8214
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8215
  done
 
8216
else
 
8217
  echo "$as_me: failed program was:" >&5
 
8218
sed 's/^/| /' conftest.$ac_ext >&5
 
8219
 
 
8220
cat >conftest.$ac_ext <<_ACEOF
 
8221
/* confdefs.h.  */
 
8222
_ACEOF
 
8223
cat confdefs.h >>conftest.$ac_ext
 
8224
cat >>conftest.$ac_ext <<_ACEOF
 
8225
/* end confdefs.h.  */
 
8226
$ac_includes_default
 
8227
int
 
8228
main ()
 
8229
{
 
8230
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
 
8231
test_array [0] = 0
 
8232
 
 
8233
  ;
 
8234
  return 0;
 
8235
}
 
8236
_ACEOF
 
8237
rm -f conftest.$ac_objext
 
8238
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8239
  (eval $ac_compile) 2>conftest.er1
 
8240
  ac_status=$?
 
8241
  grep -v '^ *+' conftest.er1 >conftest.err
 
8242
  rm -f conftest.er1
 
8243
  cat conftest.err >&5
 
8244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8245
  (exit $ac_status); } &&
 
8246
         { ac_try='test -z "$ac_c_werror_flag"
 
8247
                         || test ! -s conftest.err'
 
8248
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8249
  (eval $ac_try) 2>&5
 
8250
  ac_status=$?
 
8251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8252
  (exit $ac_status); }; } &&
 
8253
         { ac_try='test -s conftest.$ac_objext'
 
8254
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8255
  (eval $ac_try) 2>&5
 
8256
  ac_status=$?
 
8257
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8258
  (exit $ac_status); }; }; then
 
8259
  ac_hi=-1 ac_mid=-1
 
8260
  while :; do
 
8261
    cat >conftest.$ac_ext <<_ACEOF
 
8262
/* confdefs.h.  */
 
8263
_ACEOF
 
8264
cat confdefs.h >>conftest.$ac_ext
 
8265
cat >>conftest.$ac_ext <<_ACEOF
 
8266
/* end confdefs.h.  */
 
8267
$ac_includes_default
 
8268
int
 
8269
main ()
 
8270
{
 
8271
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
 
8272
test_array [0] = 0
 
8273
 
 
8274
  ;
 
8275
  return 0;
 
8276
}
 
8277
_ACEOF
 
8278
rm -f conftest.$ac_objext
 
8279
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8280
  (eval $ac_compile) 2>conftest.er1
 
8281
  ac_status=$?
 
8282
  grep -v '^ *+' conftest.er1 >conftest.err
 
8283
  rm -f conftest.er1
 
8284
  cat conftest.err >&5
 
8285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8286
  (exit $ac_status); } &&
 
8287
         { ac_try='test -z "$ac_c_werror_flag"
 
8288
                         || test ! -s conftest.err'
 
8289
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8290
  (eval $ac_try) 2>&5
 
8291
  ac_status=$?
 
8292
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8293
  (exit $ac_status); }; } &&
 
8294
         { ac_try='test -s conftest.$ac_objext'
 
8295
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8296
  (eval $ac_try) 2>&5
 
8297
  ac_status=$?
 
8298
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8299
  (exit $ac_status); }; }; then
 
8300
  ac_lo=$ac_mid; break
 
8301
else
 
8302
  echo "$as_me: failed program was:" >&5
 
8303
sed 's/^/| /' conftest.$ac_ext >&5
 
8304
 
 
8305
ac_hi=`expr '(' $ac_mid ')' - 1`
 
8306
                       if test $ac_mid -le $ac_hi; then
 
8307
                         ac_lo= ac_hi=
 
8308
                         break
 
8309
                       fi
 
8310
                       ac_mid=`expr 2 '*' $ac_mid`
 
8311
fi
 
8312
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8313
  done
 
8314
else
 
8315
  echo "$as_me: failed program was:" >&5
 
8316
sed 's/^/| /' conftest.$ac_ext >&5
 
8317
 
 
8318
ac_lo= ac_hi=
 
8319
fi
 
8320
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8321
fi
 
8322
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8323
# Binary search between lo and hi bounds.
 
8324
while test "x$ac_lo" != "x$ac_hi"; do
 
8325
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
8326
  cat >conftest.$ac_ext <<_ACEOF
 
8327
/* confdefs.h.  */
 
8328
_ACEOF
 
8329
cat confdefs.h >>conftest.$ac_ext
 
8330
cat >>conftest.$ac_ext <<_ACEOF
 
8331
/* end confdefs.h.  */
 
8332
$ac_includes_default
 
8333
int
 
8334
main ()
 
8335
{
 
8336
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
 
8337
test_array [0] = 0
 
8338
 
 
8339
  ;
 
8340
  return 0;
 
8341
}
 
8342
_ACEOF
 
8343
rm -f conftest.$ac_objext
 
8344
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8345
  (eval $ac_compile) 2>conftest.er1
 
8346
  ac_status=$?
 
8347
  grep -v '^ *+' conftest.er1 >conftest.err
 
8348
  rm -f conftest.er1
 
8349
  cat conftest.err >&5
 
8350
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8351
  (exit $ac_status); } &&
 
8352
         { ac_try='test -z "$ac_c_werror_flag"
 
8353
                         || test ! -s conftest.err'
 
8354
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8355
  (eval $ac_try) 2>&5
 
8356
  ac_status=$?
 
8357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8358
  (exit $ac_status); }; } &&
 
8359
         { ac_try='test -s conftest.$ac_objext'
 
8360
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8361
  (eval $ac_try) 2>&5
 
8362
  ac_status=$?
 
8363
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8364
  (exit $ac_status); }; }; then
 
8365
  ac_hi=$ac_mid
 
8366
else
 
8367
  echo "$as_me: failed program was:" >&5
 
8368
sed 's/^/| /' conftest.$ac_ext >&5
 
8369
 
 
8370
ac_lo=`expr '(' $ac_mid ')' + 1`
 
8371
fi
 
8372
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8373
done
 
8374
case $ac_lo in
 
8375
?*) ac_cv_sizeof_long=$ac_lo;;
 
8376
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
 
8377
See \`config.log' for more details." >&5
 
8378
echo "$as_me: error: cannot compute sizeof (long), 77
 
8379
See \`config.log' for more details." >&2;}
 
8380
   { (exit 1); exit 1; }; } ;;
 
8381
esac
 
8382
else
 
8383
  if test "$cross_compiling" = yes; then
 
8384
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
8385
See \`config.log' for more details." >&5
 
8386
echo "$as_me: error: cannot run test program while cross compiling
 
8387
See \`config.log' for more details." >&2;}
 
8388
   { (exit 1); exit 1; }; }
 
8389
else
 
8390
  cat >conftest.$ac_ext <<_ACEOF
 
8391
/* confdefs.h.  */
 
8392
_ACEOF
 
8393
cat confdefs.h >>conftest.$ac_ext
 
8394
cat >>conftest.$ac_ext <<_ACEOF
 
8395
/* end confdefs.h.  */
 
8396
$ac_includes_default
 
8397
long longval () { return (long) (sizeof (long)); }
 
8398
unsigned long ulongval () { return (long) (sizeof (long)); }
 
8399
#include <stdio.h>
 
8400
#include <stdlib.h>
 
8401
int
 
8402
main ()
 
8403
{
 
8404
 
 
8405
  FILE *f = fopen ("conftest.val", "w");
 
8406
  if (! f)
 
8407
    exit (1);
 
8408
  if (((long) (sizeof (long))) < 0)
 
8409
    {
 
8410
      long i = longval ();
 
8411
      if (i != ((long) (sizeof (long))))
 
8412
        exit (1);
 
8413
      fprintf (f, "%ld\n", i);
 
8414
    }
 
8415
  else
 
8416
    {
 
8417
      unsigned long i = ulongval ();
 
8418
      if (i != ((long) (sizeof (long))))
 
8419
        exit (1);
 
8420
      fprintf (f, "%lu\n", i);
 
8421
    }
 
8422
  exit (ferror (f) || fclose (f) != 0);
 
8423
 
 
8424
  ;
 
8425
  return 0;
 
8426
}
 
8427
_ACEOF
 
8428
rm -f conftest$ac_exeext
 
8429
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8430
  (eval $ac_link) 2>&5
 
8431
  ac_status=$?
 
8432
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8433
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
8434
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8435
  (eval $ac_try) 2>&5
 
8436
  ac_status=$?
 
8437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8438
  (exit $ac_status); }; }; then
 
8439
  ac_cv_sizeof_long=`cat conftest.val`
 
8440
else
 
8441
  echo "$as_me: program exited with status $ac_status" >&5
 
8442
echo "$as_me: failed program was:" >&5
 
8443
sed 's/^/| /' conftest.$ac_ext >&5
 
8444
 
 
8445
( exit $ac_status )
 
8446
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
 
8447
See \`config.log' for more details." >&5
 
8448
echo "$as_me: error: cannot compute sizeof (long), 77
 
8449
See \`config.log' for more details." >&2;}
 
8450
   { (exit 1); exit 1; }; }
 
8451
fi
 
8452
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
8453
fi
 
8454
fi
 
8455
rm -f conftest.val
 
8456
else
 
8457
  ac_cv_sizeof_long=0
 
8458
fi
 
8459
fi
 
8460
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
 
8461
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
 
8462
cat >>confdefs.h <<_ACEOF
 
8463
#define SIZEOF_LONG $ac_cv_sizeof_long
 
8464
_ACEOF
 
8465
 
 
8466
 
 
8467
  echo "$as_me:$LINENO: checking for short" >&5
 
8468
echo $ECHO_N "checking for short... $ECHO_C" >&6
 
8469
if test "${ac_cv_type_short+set}" = set; then
 
8470
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8471
else
 
8472
  cat >conftest.$ac_ext <<_ACEOF
 
8473
/* confdefs.h.  */
 
8474
_ACEOF
 
8475
cat confdefs.h >>conftest.$ac_ext
 
8476
cat >>conftest.$ac_ext <<_ACEOF
 
8477
/* end confdefs.h.  */
 
8478
$ac_includes_default
 
8479
int
 
8480
main ()
 
8481
{
 
8482
if ((short *) 0)
 
8483
  return 0;
 
8484
if (sizeof (short))
 
8485
  return 0;
 
8486
  ;
 
8487
  return 0;
 
8488
}
 
8489
_ACEOF
 
8490
rm -f conftest.$ac_objext
 
8491
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8492
  (eval $ac_compile) 2>conftest.er1
 
8493
  ac_status=$?
 
8494
  grep -v '^ *+' conftest.er1 >conftest.err
 
8495
  rm -f conftest.er1
 
8496
  cat conftest.err >&5
 
8497
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8498
  (exit $ac_status); } &&
 
8499
         { ac_try='test -z "$ac_c_werror_flag"
 
8500
                         || test ! -s conftest.err'
 
8501
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8502
  (eval $ac_try) 2>&5
 
8503
  ac_status=$?
 
8504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8505
  (exit $ac_status); }; } &&
 
8506
         { ac_try='test -s conftest.$ac_objext'
 
8507
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8508
  (eval $ac_try) 2>&5
 
8509
  ac_status=$?
 
8510
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8511
  (exit $ac_status); }; }; then
 
8512
  ac_cv_type_short=yes
 
8513
else
 
8514
  echo "$as_me: failed program was:" >&5
 
8515
sed 's/^/| /' conftest.$ac_ext >&5
 
8516
 
 
8517
ac_cv_type_short=no
 
8518
fi
 
8519
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8520
fi
 
8521
echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
 
8522
echo "${ECHO_T}$ac_cv_type_short" >&6
 
8523
 
 
8524
echo "$as_me:$LINENO: checking size of short" >&5
 
8525
echo $ECHO_N "checking size of short... $ECHO_C" >&6
 
8526
if test "${ac_cv_sizeof_short+set}" = set; then
 
8527
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8528
else
 
8529
  if test "$ac_cv_type_short" = yes; then
 
8530
  # The cast to unsigned long works around a bug in the HP C Compiler
 
8531
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
8532
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
8533
  # This bug is HP SR number 8606223364.
 
8534
  if test "$cross_compiling" = yes; then
 
8535
  # Depending upon the size, compute the lo and hi bounds.
 
8536
cat >conftest.$ac_ext <<_ACEOF
 
8537
/* confdefs.h.  */
 
8538
_ACEOF
 
8539
cat confdefs.h >>conftest.$ac_ext
 
8540
cat >>conftest.$ac_ext <<_ACEOF
 
8541
/* end confdefs.h.  */
 
8542
$ac_includes_default
 
8543
int
 
8544
main ()
 
8545
{
 
8546
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
 
8547
test_array [0] = 0
 
8548
 
 
8549
  ;
 
8550
  return 0;
 
8551
}
 
8552
_ACEOF
 
8553
rm -f conftest.$ac_objext
 
8554
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8555
  (eval $ac_compile) 2>conftest.er1
 
8556
  ac_status=$?
 
8557
  grep -v '^ *+' conftest.er1 >conftest.err
 
8558
  rm -f conftest.er1
 
8559
  cat conftest.err >&5
 
8560
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8561
  (exit $ac_status); } &&
 
8562
         { ac_try='test -z "$ac_c_werror_flag"
 
8563
                         || test ! -s conftest.err'
 
8564
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8565
  (eval $ac_try) 2>&5
 
8566
  ac_status=$?
 
8567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8568
  (exit $ac_status); }; } &&
 
8569
         { ac_try='test -s conftest.$ac_objext'
 
8570
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8571
  (eval $ac_try) 2>&5
 
8572
  ac_status=$?
 
8573
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8574
  (exit $ac_status); }; }; then
 
8575
  ac_lo=0 ac_mid=0
 
8576
  while :; do
 
8577
    cat >conftest.$ac_ext <<_ACEOF
 
8578
/* confdefs.h.  */
 
8579
_ACEOF
 
8580
cat confdefs.h >>conftest.$ac_ext
 
8581
cat >>conftest.$ac_ext <<_ACEOF
 
8582
/* end confdefs.h.  */
 
8583
$ac_includes_default
 
8584
int
 
8585
main ()
 
8586
{
 
8587
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
 
8588
test_array [0] = 0
 
8589
 
 
8590
  ;
 
8591
  return 0;
 
8592
}
 
8593
_ACEOF
 
8594
rm -f conftest.$ac_objext
 
8595
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8596
  (eval $ac_compile) 2>conftest.er1
 
8597
  ac_status=$?
 
8598
  grep -v '^ *+' conftest.er1 >conftest.err
 
8599
  rm -f conftest.er1
 
8600
  cat conftest.err >&5
 
8601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8602
  (exit $ac_status); } &&
 
8603
         { ac_try='test -z "$ac_c_werror_flag"
 
8604
                         || test ! -s conftest.err'
 
8605
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8606
  (eval $ac_try) 2>&5
 
8607
  ac_status=$?
 
8608
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8609
  (exit $ac_status); }; } &&
 
8610
         { ac_try='test -s conftest.$ac_objext'
 
8611
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8612
  (eval $ac_try) 2>&5
 
8613
  ac_status=$?
 
8614
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8615
  (exit $ac_status); }; }; then
 
8616
  ac_hi=$ac_mid; break
 
8617
else
 
8618
  echo "$as_me: failed program was:" >&5
 
8619
sed 's/^/| /' conftest.$ac_ext >&5
 
8620
 
 
8621
ac_lo=`expr $ac_mid + 1`
 
8622
                    if test $ac_lo -le $ac_mid; then
 
8623
                      ac_lo= ac_hi=
 
8624
                      break
 
8625
                    fi
 
8626
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
8627
fi
 
8628
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8629
  done
 
8630
else
 
8631
  echo "$as_me: failed program was:" >&5
 
8632
sed 's/^/| /' conftest.$ac_ext >&5
 
8633
 
 
8634
cat >conftest.$ac_ext <<_ACEOF
 
8635
/* confdefs.h.  */
 
8636
_ACEOF
 
8637
cat confdefs.h >>conftest.$ac_ext
 
8638
cat >>conftest.$ac_ext <<_ACEOF
 
8639
/* end confdefs.h.  */
 
8640
$ac_includes_default
 
8641
int
 
8642
main ()
 
8643
{
 
8644
static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
 
8645
test_array [0] = 0
 
8646
 
 
8647
  ;
 
8648
  return 0;
 
8649
}
 
8650
_ACEOF
 
8651
rm -f conftest.$ac_objext
 
8652
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8653
  (eval $ac_compile) 2>conftest.er1
 
8654
  ac_status=$?
 
8655
  grep -v '^ *+' conftest.er1 >conftest.err
 
8656
  rm -f conftest.er1
 
8657
  cat conftest.err >&5
 
8658
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8659
  (exit $ac_status); } &&
 
8660
         { ac_try='test -z "$ac_c_werror_flag"
 
8661
                         || test ! -s conftest.err'
 
8662
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8663
  (eval $ac_try) 2>&5
 
8664
  ac_status=$?
 
8665
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8666
  (exit $ac_status); }; } &&
 
8667
         { ac_try='test -s conftest.$ac_objext'
 
8668
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8669
  (eval $ac_try) 2>&5
 
8670
  ac_status=$?
 
8671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8672
  (exit $ac_status); }; }; then
 
8673
  ac_hi=-1 ac_mid=-1
 
8674
  while :; do
 
8675
    cat >conftest.$ac_ext <<_ACEOF
 
8676
/* confdefs.h.  */
 
8677
_ACEOF
 
8678
cat confdefs.h >>conftest.$ac_ext
 
8679
cat >>conftest.$ac_ext <<_ACEOF
 
8680
/* end confdefs.h.  */
 
8681
$ac_includes_default
 
8682
int
 
8683
main ()
 
8684
{
 
8685
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
 
8686
test_array [0] = 0
 
8687
 
 
8688
  ;
 
8689
  return 0;
 
8690
}
 
8691
_ACEOF
 
8692
rm -f conftest.$ac_objext
 
8693
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8694
  (eval $ac_compile) 2>conftest.er1
 
8695
  ac_status=$?
 
8696
  grep -v '^ *+' conftest.er1 >conftest.err
 
8697
  rm -f conftest.er1
 
8698
  cat conftest.err >&5
 
8699
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8700
  (exit $ac_status); } &&
 
8701
         { ac_try='test -z "$ac_c_werror_flag"
 
8702
                         || test ! -s conftest.err'
 
8703
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8704
  (eval $ac_try) 2>&5
 
8705
  ac_status=$?
 
8706
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8707
  (exit $ac_status); }; } &&
 
8708
         { ac_try='test -s conftest.$ac_objext'
 
8709
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8710
  (eval $ac_try) 2>&5
 
8711
  ac_status=$?
 
8712
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8713
  (exit $ac_status); }; }; then
 
8714
  ac_lo=$ac_mid; break
 
8715
else
 
8716
  echo "$as_me: failed program was:" >&5
 
8717
sed 's/^/| /' conftest.$ac_ext >&5
 
8718
 
 
8719
ac_hi=`expr '(' $ac_mid ')' - 1`
 
8720
                       if test $ac_mid -le $ac_hi; then
 
8721
                         ac_lo= ac_hi=
 
8722
                         break
 
8723
                       fi
 
8724
                       ac_mid=`expr 2 '*' $ac_mid`
 
8725
fi
 
8726
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8727
  done
 
8728
else
 
8729
  echo "$as_me: failed program was:" >&5
 
8730
sed 's/^/| /' conftest.$ac_ext >&5
 
8731
 
 
8732
ac_lo= ac_hi=
 
8733
fi
 
8734
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8735
fi
 
8736
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8737
# Binary search between lo and hi bounds.
 
8738
while test "x$ac_lo" != "x$ac_hi"; do
 
8739
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
8740
  cat >conftest.$ac_ext <<_ACEOF
 
8741
/* confdefs.h.  */
 
8742
_ACEOF
 
8743
cat confdefs.h >>conftest.$ac_ext
 
8744
cat >>conftest.$ac_ext <<_ACEOF
 
8745
/* end confdefs.h.  */
 
8746
$ac_includes_default
 
8747
int
 
8748
main ()
 
8749
{
 
8750
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
 
8751
test_array [0] = 0
 
8752
 
 
8753
  ;
 
8754
  return 0;
 
8755
}
 
8756
_ACEOF
 
8757
rm -f conftest.$ac_objext
 
8758
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8759
  (eval $ac_compile) 2>conftest.er1
 
8760
  ac_status=$?
 
8761
  grep -v '^ *+' conftest.er1 >conftest.err
 
8762
  rm -f conftest.er1
 
8763
  cat conftest.err >&5
 
8764
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8765
  (exit $ac_status); } &&
 
8766
         { ac_try='test -z "$ac_c_werror_flag"
 
8767
                         || test ! -s conftest.err'
 
8768
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8769
  (eval $ac_try) 2>&5
 
8770
  ac_status=$?
 
8771
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8772
  (exit $ac_status); }; } &&
 
8773
         { ac_try='test -s conftest.$ac_objext'
 
8774
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8775
  (eval $ac_try) 2>&5
 
8776
  ac_status=$?
 
8777
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8778
  (exit $ac_status); }; }; then
 
8779
  ac_hi=$ac_mid
 
8780
else
 
8781
  echo "$as_me: failed program was:" >&5
 
8782
sed 's/^/| /' conftest.$ac_ext >&5
 
8783
 
 
8784
ac_lo=`expr '(' $ac_mid ')' + 1`
 
8785
fi
 
8786
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8787
done
 
8788
case $ac_lo in
 
8789
?*) ac_cv_sizeof_short=$ac_lo;;
 
8790
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
 
8791
See \`config.log' for more details." >&5
 
8792
echo "$as_me: error: cannot compute sizeof (short), 77
 
8793
See \`config.log' for more details." >&2;}
 
8794
   { (exit 1); exit 1; }; } ;;
 
8795
esac
 
8796
else
 
8797
  if test "$cross_compiling" = yes; then
 
8798
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
8799
See \`config.log' for more details." >&5
 
8800
echo "$as_me: error: cannot run test program while cross compiling
 
8801
See \`config.log' for more details." >&2;}
 
8802
   { (exit 1); exit 1; }; }
 
8803
else
 
8804
  cat >conftest.$ac_ext <<_ACEOF
 
8805
/* confdefs.h.  */
 
8806
_ACEOF
 
8807
cat confdefs.h >>conftest.$ac_ext
 
8808
cat >>conftest.$ac_ext <<_ACEOF
 
8809
/* end confdefs.h.  */
 
8810
$ac_includes_default
 
8811
long longval () { return (long) (sizeof (short)); }
 
8812
unsigned long ulongval () { return (long) (sizeof (short)); }
 
8813
#include <stdio.h>
 
8814
#include <stdlib.h>
 
8815
int
 
8816
main ()
 
8817
{
 
8818
 
 
8819
  FILE *f = fopen ("conftest.val", "w");
 
8820
  if (! f)
 
8821
    exit (1);
 
8822
  if (((long) (sizeof (short))) < 0)
 
8823
    {
 
8824
      long i = longval ();
 
8825
      if (i != ((long) (sizeof (short))))
 
8826
        exit (1);
 
8827
      fprintf (f, "%ld\n", i);
 
8828
    }
 
8829
  else
 
8830
    {
 
8831
      unsigned long i = ulongval ();
 
8832
      if (i != ((long) (sizeof (short))))
 
8833
        exit (1);
 
8834
      fprintf (f, "%lu\n", i);
 
8835
    }
 
8836
  exit (ferror (f) || fclose (f) != 0);
 
8837
 
 
8838
  ;
 
8839
  return 0;
 
8840
}
 
8841
_ACEOF
 
8842
rm -f conftest$ac_exeext
 
8843
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8844
  (eval $ac_link) 2>&5
 
8845
  ac_status=$?
 
8846
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8847
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
8848
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8849
  (eval $ac_try) 2>&5
 
8850
  ac_status=$?
 
8851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8852
  (exit $ac_status); }; }; then
 
8853
  ac_cv_sizeof_short=`cat conftest.val`
 
8854
else
 
8855
  echo "$as_me: program exited with status $ac_status" >&5
 
8856
echo "$as_me: failed program was:" >&5
 
8857
sed 's/^/| /' conftest.$ac_ext >&5
 
8858
 
 
8859
( exit $ac_status )
 
8860
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
 
8861
See \`config.log' for more details." >&5
 
8862
echo "$as_me: error: cannot compute sizeof (short), 77
 
8863
See \`config.log' for more details." >&2;}
 
8864
   { (exit 1); exit 1; }; }
 
8865
fi
 
8866
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
8867
fi
 
8868
fi
 
8869
rm -f conftest.val
 
8870
else
 
8871
  ac_cv_sizeof_short=0
 
8872
fi
 
8873
fi
 
8874
echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
 
8875
echo "${ECHO_T}$ac_cv_sizeof_short" >&6
 
8876
cat >>confdefs.h <<_ACEOF
 
8877
#define SIZEOF_SHORT $ac_cv_sizeof_short
 
8878
_ACEOF
 
8879
 
 
8880
 
 
8881
 
 
8882
  # ----------------------------------------------------------------------
 
8883
  # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
 
8884
  # ----------------------------------------------------------------------
 
8885
 
 
8886
echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
 
8887
echo $ECHO_N "checking for pathfind in -lgen... $ECHO_C" >&6
 
8888
if test "${ac_cv_lib_gen_pathfind+set}" = set; then
 
8889
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8890
else
 
8891
  ac_check_lib_save_LIBS=$LIBS
 
8892
LIBS="-lgen  $LIBS"
 
8893
cat >conftest.$ac_ext <<_ACEOF
 
8894
/* confdefs.h.  */
 
8895
_ACEOF
 
8896
cat confdefs.h >>conftest.$ac_ext
 
8897
cat >>conftest.$ac_ext <<_ACEOF
 
8898
/* end confdefs.h.  */
 
8899
 
 
8900
/* Override any gcc2 internal prototype to avoid an error.  */
 
8901
#ifdef __cplusplus
 
8902
extern "C"
 
8903
#endif
 
8904
/* We use char because int might match the return type of a gcc2
 
8905
   builtin and then its argument prototype would still apply.  */
 
8906
char pathfind ();
 
8907
int
 
8908
main ()
 
8909
{
 
8910
pathfind ();
 
8911
  ;
 
8912
  return 0;
 
8913
}
 
8914
_ACEOF
 
8915
rm -f conftest.$ac_objext conftest$ac_exeext
 
8916
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8917
  (eval $ac_link) 2>conftest.er1
 
8918
  ac_status=$?
 
8919
  grep -v '^ *+' conftest.er1 >conftest.err
 
8920
  rm -f conftest.er1
 
8921
  cat conftest.err >&5
 
8922
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8923
  (exit $ac_status); } &&
 
8924
         { ac_try='test -z "$ac_c_werror_flag"
 
8925
                         || test ! -s conftest.err'
 
8926
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8927
  (eval $ac_try) 2>&5
 
8928
  ac_status=$?
 
8929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8930
  (exit $ac_status); }; } &&
 
8931
         { ac_try='test -s conftest$ac_exeext'
 
8932
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8933
  (eval $ac_try) 2>&5
 
8934
  ac_status=$?
 
8935
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8936
  (exit $ac_status); }; }; then
 
8937
  ac_cv_lib_gen_pathfind=yes
 
8938
else
 
8939
  echo "$as_me: failed program was:" >&5
 
8940
sed 's/^/| /' conftest.$ac_ext >&5
 
8941
 
 
8942
ac_cv_lib_gen_pathfind=no
 
8943
fi
 
8944
rm -f conftest.err conftest.$ac_objext \
 
8945
      conftest$ac_exeext conftest.$ac_ext
 
8946
LIBS=$ac_check_lib_save_LIBS
 
8947
fi
 
8948
echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
 
8949
echo "${ECHO_T}$ac_cv_lib_gen_pathfind" >&6
 
8950
if test $ac_cv_lib_gen_pathfind = yes; then
 
8951
  cat >>confdefs.h <<_ACEOF
 
8952
#define HAVE_LIBGEN 1
 
8953
_ACEOF
 
8954
 
 
8955
  LIBS="-lgen $LIBS"
 
8956
 
 
8957
fi
 
8958
 
 
8959
 
 
8960
for ac_func in vprintf
 
8961
do
 
8962
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
8963
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
8964
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
8965
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
8966
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8967
else
 
8968
  cat >conftest.$ac_ext <<_ACEOF
 
8969
/* confdefs.h.  */
 
8970
_ACEOF
 
8971
cat confdefs.h >>conftest.$ac_ext
 
8972
cat >>conftest.$ac_ext <<_ACEOF
 
8973
/* end confdefs.h.  */
 
8974
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
8975
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8976
#define $ac_func innocuous_$ac_func
 
8977
 
 
8978
/* System header to define __stub macros and hopefully few prototypes,
 
8979
    which can conflict with char $ac_func (); below.
 
8980
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8981
    <limits.h> exists even on freestanding compilers.  */
 
8982
 
 
8983
#ifdef __STDC__
 
8984
# include <limits.h>
 
8985
#else
 
8986
# include <assert.h>
 
8987
#endif
 
8988
 
 
8989
#undef $ac_func
 
8990
 
 
8991
/* Override any gcc2 internal prototype to avoid an error.  */
 
8992
#ifdef __cplusplus
 
8993
extern "C"
 
8994
{
 
8995
#endif
 
8996
/* We use char because int might match the return type of a gcc2
 
8997
   builtin and then its argument prototype would still apply.  */
 
8998
char $ac_func ();
 
8999
/* The GNU C library defines this for functions which it implements
 
9000
    to always fail with ENOSYS.  Some functions are actually named
 
9001
    something starting with __ and the normal name is an alias.  */
 
9002
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
9003
choke me
 
9004
#else
 
9005
char (*f) () = $ac_func;
 
9006
#endif
 
9007
#ifdef __cplusplus
 
9008
}
 
9009
#endif
 
9010
 
 
9011
int
 
9012
main ()
 
9013
{
 
9014
return f != $ac_func;
 
9015
  ;
 
9016
  return 0;
 
9017
}
 
9018
_ACEOF
 
9019
rm -f conftest.$ac_objext conftest$ac_exeext
 
9020
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9021
  (eval $ac_link) 2>conftest.er1
 
9022
  ac_status=$?
 
9023
  grep -v '^ *+' conftest.er1 >conftest.err
 
9024
  rm -f conftest.er1
 
9025
  cat conftest.err >&5
 
9026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9027
  (exit $ac_status); } &&
 
9028
         { ac_try='test -z "$ac_c_werror_flag"
 
9029
                         || test ! -s conftest.err'
 
9030
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9031
  (eval $ac_try) 2>&5
 
9032
  ac_status=$?
 
9033
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9034
  (exit $ac_status); }; } &&
 
9035
         { ac_try='test -s conftest$ac_exeext'
 
9036
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9037
  (eval $ac_try) 2>&5
 
9038
  ac_status=$?
 
9039
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9040
  (exit $ac_status); }; }; then
 
9041
  eval "$as_ac_var=yes"
 
9042
else
 
9043
  echo "$as_me: failed program was:" >&5
 
9044
sed 's/^/| /' conftest.$ac_ext >&5
 
9045
 
 
9046
eval "$as_ac_var=no"
 
9047
fi
 
9048
rm -f conftest.err conftest.$ac_objext \
 
9049
      conftest$ac_exeext conftest.$ac_ext
 
9050
fi
 
9051
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
9052
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
9053
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
9054
  cat >>confdefs.h <<_ACEOF
 
9055
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
9056
_ACEOF
 
9057
 
 
9058
echo "$as_me:$LINENO: checking for _doprnt" >&5
 
9059
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
 
9060
if test "${ac_cv_func__doprnt+set}" = set; then
 
9061
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9062
else
 
9063
  cat >conftest.$ac_ext <<_ACEOF
 
9064
/* confdefs.h.  */
 
9065
_ACEOF
 
9066
cat confdefs.h >>conftest.$ac_ext
 
9067
cat >>conftest.$ac_ext <<_ACEOF
 
9068
/* end confdefs.h.  */
 
9069
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
 
9070
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9071
#define _doprnt innocuous__doprnt
 
9072
 
 
9073
/* System header to define __stub macros and hopefully few prototypes,
 
9074
    which can conflict with char _doprnt (); below.
 
9075
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9076
    <limits.h> exists even on freestanding compilers.  */
 
9077
 
 
9078
#ifdef __STDC__
 
9079
# include <limits.h>
 
9080
#else
 
9081
# include <assert.h>
 
9082
#endif
 
9083
 
 
9084
#undef _doprnt
 
9085
 
 
9086
/* Override any gcc2 internal prototype to avoid an error.  */
 
9087
#ifdef __cplusplus
 
9088
extern "C"
 
9089
{
 
9090
#endif
 
9091
/* We use char because int might match the return type of a gcc2
 
9092
   builtin and then its argument prototype would still apply.  */
 
9093
char _doprnt ();
 
9094
/* The GNU C library defines this for functions which it implements
 
9095
    to always fail with ENOSYS.  Some functions are actually named
 
9096
    something starting with __ and the normal name is an alias.  */
 
9097
#if defined (__stub__doprnt) || defined (__stub____doprnt)
 
9098
choke me
 
9099
#else
 
9100
char (*f) () = _doprnt;
 
9101
#endif
 
9102
#ifdef __cplusplus
 
9103
}
 
9104
#endif
 
9105
 
 
9106
int
 
9107
main ()
 
9108
{
 
9109
return f != _doprnt;
 
9110
  ;
 
9111
  return 0;
 
9112
}
 
9113
_ACEOF
 
9114
rm -f conftest.$ac_objext conftest$ac_exeext
 
9115
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9116
  (eval $ac_link) 2>conftest.er1
 
9117
  ac_status=$?
 
9118
  grep -v '^ *+' conftest.er1 >conftest.err
 
9119
  rm -f conftest.er1
 
9120
  cat conftest.err >&5
 
9121
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9122
  (exit $ac_status); } &&
 
9123
         { ac_try='test -z "$ac_c_werror_flag"
 
9124
                         || test ! -s conftest.err'
 
9125
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9126
  (eval $ac_try) 2>&5
 
9127
  ac_status=$?
 
9128
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9129
  (exit $ac_status); }; } &&
 
9130
         { ac_try='test -s conftest$ac_exeext'
 
9131
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9132
  (eval $ac_try) 2>&5
 
9133
  ac_status=$?
 
9134
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9135
  (exit $ac_status); }; }; then
 
9136
  ac_cv_func__doprnt=yes
 
9137
else
 
9138
  echo "$as_me: failed program was:" >&5
 
9139
sed 's/^/| /' conftest.$ac_ext >&5
 
9140
 
 
9141
ac_cv_func__doprnt=no
 
9142
fi
 
9143
rm -f conftest.err conftest.$ac_objext \
 
9144
      conftest$ac_exeext conftest.$ac_ext
 
9145
fi
 
9146
echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
 
9147
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
 
9148
if test $ac_cv_func__doprnt = yes; then
 
9149
 
 
9150
cat >>confdefs.h <<\_ACEOF
 
9151
#define HAVE_DOPRNT 1
 
9152
_ACEOF
 
9153
 
 
9154
fi
 
9155
 
 
9156
fi
 
9157
done
 
9158
 
 
9159
 
 
9160
 
 
9161
 
 
9162
 
 
9163
 
 
9164
 
 
9165
 
 
9166
for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr
 
9167
do
 
9168
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
9169
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
9170
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
9171
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
9172
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9173
else
 
9174
  cat >conftest.$ac_ext <<_ACEOF
 
9175
/* confdefs.h.  */
 
9176
_ACEOF
 
9177
cat confdefs.h >>conftest.$ac_ext
 
9178
cat >>conftest.$ac_ext <<_ACEOF
 
9179
/* end confdefs.h.  */
 
9180
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
9181
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9182
#define $ac_func innocuous_$ac_func
 
9183
 
 
9184
/* System header to define __stub macros and hopefully few prototypes,
 
9185
    which can conflict with char $ac_func (); below.
 
9186
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9187
    <limits.h> exists even on freestanding compilers.  */
 
9188
 
 
9189
#ifdef __STDC__
 
9190
# include <limits.h>
 
9191
#else
 
9192
# include <assert.h>
 
9193
#endif
 
9194
 
 
9195
#undef $ac_func
 
9196
 
 
9197
/* Override any gcc2 internal prototype to avoid an error.  */
 
9198
#ifdef __cplusplus
 
9199
extern "C"
 
9200
{
 
9201
#endif
 
9202
/* We use char because int might match the return type of a gcc2
 
9203
   builtin and then its argument prototype would still apply.  */
 
9204
char $ac_func ();
 
9205
/* The GNU C library defines this for functions which it implements
 
9206
    to always fail with ENOSYS.  Some functions are actually named
 
9207
    something starting with __ and the normal name is an alias.  */
 
9208
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
9209
choke me
 
9210
#else
 
9211
char (*f) () = $ac_func;
 
9212
#endif
 
9213
#ifdef __cplusplus
 
9214
}
 
9215
#endif
 
9216
 
 
9217
int
 
9218
main ()
 
9219
{
 
9220
return f != $ac_func;
 
9221
  ;
 
9222
  return 0;
 
9223
}
 
9224
_ACEOF
 
9225
rm -f conftest.$ac_objext conftest$ac_exeext
 
9226
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9227
  (eval $ac_link) 2>conftest.er1
 
9228
  ac_status=$?
 
9229
  grep -v '^ *+' conftest.er1 >conftest.err
 
9230
  rm -f conftest.er1
 
9231
  cat conftest.err >&5
 
9232
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9233
  (exit $ac_status); } &&
 
9234
         { ac_try='test -z "$ac_c_werror_flag"
 
9235
                         || test ! -s conftest.err'
 
9236
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9237
  (eval $ac_try) 2>&5
 
9238
  ac_status=$?
 
9239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9240
  (exit $ac_status); }; } &&
 
9241
         { ac_try='test -s conftest$ac_exeext'
 
9242
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9243
  (eval $ac_try) 2>&5
 
9244
  ac_status=$?
 
9245
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9246
  (exit $ac_status); }; }; then
 
9247
  eval "$as_ac_var=yes"
 
9248
else
 
9249
  echo "$as_me: failed program was:" >&5
 
9250
sed 's/^/| /' conftest.$ac_ext >&5
 
9251
 
 
9252
eval "$as_ac_var=no"
 
9253
fi
 
9254
rm -f conftest.err conftest.$ac_objext \
 
9255
      conftest$ac_exeext conftest.$ac_ext
 
9256
fi
 
9257
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
9258
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
9259
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
9260
  cat >>confdefs.h <<_ACEOF
 
9261
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
9262
_ACEOF
 
9263
 
 
9264
fi
 
9265
done
 
9266
 
 
9267
  INVOKE_LIBOPTS_MACROS_FIRST_done=yes
 
9268
fi
 
9269
  # Check to see if a reg expr header is specified.
 
9270
 
 
9271
 
 
9272
# Check whether --with-regex-header or --without-regex-header was given.
 
9273
if test "${with_regex_header+set}" = set; then
 
9274
  withval="$with_regex_header"
 
9275
  libopts_cv_with_regex_header=${with_regex_header}
 
9276
else
 
9277
  echo "$as_me:$LINENO: checking whether a reg expr header is specified" >&5
 
9278
echo $ECHO_N "checking whether a reg expr header is specified... $ECHO_C" >&6
 
9279
if test "${libopts_cv_with_regex_header+set}" = set; then
 
9280
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9281
else
 
9282
  libopts_cv_with_regex_header=no
 
9283
fi
 
9284
echo "$as_me:$LINENO: result: $libopts_cv_with_regex_header" >&5
 
9285
echo "${ECHO_T}$libopts_cv_with_regex_header" >&6
 
9286
 
 
9287
fi;  # end of AC_ARG_WITH
 
9288
 
 
9289
  if test "X${libopts_cv_with_regex_header}" != Xno
 
9290
  then
 
9291
    cat >>confdefs.h <<_ACEOF
 
9292
#define REGEX_HEADER <${libopts_cv_with_regex_header}>
 
9293
_ACEOF
 
9294
 
 
9295
  else
 
9296
 
 
9297
cat >>confdefs.h <<\_ACEOF
 
9298
#define REGEX_HEADER <regex.h>
 
9299
_ACEOF
 
9300
 
 
9301
  fi
 
9302
 
 
9303
 
 
9304
 
 
9305
  # Check to see if a working libregex can be found.
 
9306
 
 
9307
 
 
9308
# Check whether --with-libregex or --without-libregex was given.
 
9309
if test "${with_libregex+set}" = set; then
 
9310
  withval="$with_libregex"
 
9311
  libopts_cv_with_libregex_root=${with_libregex}
 
9312
else
 
9313
  echo "$as_me:$LINENO: checking whether with-libregex was specified" >&5
 
9314
echo $ECHO_N "checking whether with-libregex was specified... $ECHO_C" >&6
 
9315
if test "${libopts_cv_with_libregex_root+set}" = set; then
 
9316
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9317
else
 
9318
  libopts_cv_with_libregex_root=no
 
9319
fi
 
9320
echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_root" >&5
 
9321
echo "${ECHO_T}$libopts_cv_with_libregex_root" >&6
 
9322
 
 
9323
fi;  # end of AC_ARG_WITH libregex
 
9324
 
 
9325
  if test "${with_libguile+set}" = set && \
 
9326
     test "${withval}" = no
 
9327
  then ## disabled by request
 
9328
    libopts_cv_with_libregex_root=no
 
9329
    libopts_cv_with_libregex_cflags=no
 
9330
    libopts_cv_with_libregex_libs=no
 
9331
  else
 
9332
 
 
9333
 
 
9334
# Check whether --with-libregex-cflags or --without-libregex-cflags was given.
 
9335
if test "${with_libregex_cflags+set}" = set; then
 
9336
  withval="$with_libregex_cflags"
 
9337
  libopts_cv_with_libregex_cflags=${with_regex_cflags}
 
9338
else
 
9339
  echo "$as_me:$LINENO: checking whether with-libregex-cflags was specified" >&5
 
9340
echo $ECHO_N "checking whether with-libregex-cflags was specified... $ECHO_C" >&6
 
9341
if test "${libopts_cv_with_libregex_cflags+set}" = set; then
 
9342
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9343
else
 
9344
  libopts_cv_with_libregex_cflags=no
 
9345
fi
 
9346
echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_cflags" >&5
 
9347
echo "${ECHO_T}$libopts_cv_with_libregex_cflags" >&6
 
9348
 
 
9349
fi;  # end of AC_ARG_WITH libregex-cflags
 
9350
 
 
9351
 
 
9352
# Check whether --with-libregex-libs or --without-libregex-libs was given.
 
9353
if test "${with_libregex_libs+set}" = set; then
 
9354
  withval="$with_libregex_libs"
 
9355
  libopts_cv_with_libregex_libs=${with_regex_libs}
 
9356
else
 
9357
  echo "$as_me:$LINENO: checking whether with-libregex-libs was specified" >&5
 
9358
echo $ECHO_N "checking whether with-libregex-libs was specified... $ECHO_C" >&6
 
9359
if test "${libopts_cv_with_libregex_libs+set}" = set; then
 
9360
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9361
else
 
9362
  libopts_cv_with_libregex_libs=no
 
9363
fi
 
9364
echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_libs" >&5
 
9365
echo "${ECHO_T}$libopts_cv_with_libregex_libs" >&6
 
9366
 
 
9367
fi;  # end of AC_ARG_WITH libregex-libs
 
9368
 
 
9369
  case "X${libopts_cv_with_libregex_cflags}" in
 
9370
  Xyes|Xno|X )
 
9371
    case "X${libopts_cv_with_libregex_root}" in
 
9372
    Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
 
9373
    * )        libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
 
9374
    esac
 
9375
  esac
 
9376
  case "X${libopts_cv_with_libregex_libs}" in
 
9377
  Xyes|Xno|X )
 
9378
    case "X${libopts_cv_with_libregex_root}" in
 
9379
    Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
 
9380
    * )        libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
 
9381
    esac
 
9382
  esac
 
9383
  libopts_save_CPPFLAGS="${CPPFLAGS}"
 
9384
  libopts_save_LIBS="${LIBS}"
 
9385
  fi ## disabled by request
 
9386
 
 
9387
  case "X${libopts_cv_with_libregex_cflags}" in
 
9388
  Xyes|Xno|X )
 
9389
    libopts_cv_with_libregex_cflags="" ;;
 
9390
  * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
 
9391
  esac
 
9392
  case "X${libopts_cv_with_libregex_libs}" in
 
9393
  Xyes|Xno|X )
 
9394
    libopts_cv_with_libregex_libs="" ;;
 
9395
  * )
 
9396
    LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
 
9397
  esac
 
9398
  LIBREGEX_CFLAGS=""
 
9399
  LIBREGEX_LIBS=""
 
9400
  echo "$as_me:$LINENO: checking whether libregex functions properly" >&5
 
9401
echo $ECHO_N "checking whether libregex functions properly... $ECHO_C" >&6
 
9402
  if test "${libopts_cv_with_libregex+set}" = set; then
 
9403
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9404
else
 
9405
 
 
9406
  if test "$cross_compiling" = yes; then
 
9407
  libopts_cv_with_libregex=no
 
9408
else
 
9409
  cat >conftest.$ac_ext <<_ACEOF
 
9410
/* confdefs.h.  */
 
9411
_ACEOF
 
9412
cat confdefs.h >>conftest.$ac_ext
 
9413
cat >>conftest.$ac_ext <<_ACEOF
 
9414
/* end confdefs.h.  */
 
9415
#include <stdio.h>
 
9416
#include <stdlib.h>
 
9417
#include <sys/types.h>
 
9418
#include REGEX_HEADER
 
9419
static regex_t re;
 
9420
void comp_re( char const* pzPat ) {
 
9421
  int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
 
9422
  if (res == 0) return;
 
9423
  exit( res ); }
 
9424
int main() {
 
9425
  regmatch_t m[2];
 
9426
  comp_re( "^.*\$"   );
 
9427
  comp_re( "()|no.*" );
 
9428
  comp_re( "."       );
 
9429
  if (regexec( &re, "X", 2, m, 0 ) != 0)  return 1;
 
9430
  if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
 
9431
    fputs( "error: regex -->.<-- did not match\n", stderr );
 
9432
    return 1;
 
9433
  }
 
9434
  return 0; }
 
9435
_ACEOF
 
9436
rm -f conftest$ac_exeext
 
9437
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9438
  (eval $ac_link) 2>&5
 
9439
  ac_status=$?
 
9440
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9441
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
9442
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9443
  (eval $ac_try) 2>&5
 
9444
  ac_status=$?
 
9445
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9446
  (exit $ac_status); }; }; then
 
9447
  libopts_cv_with_libregex=yes
 
9448
else
 
9449
  echo "$as_me: program exited with status $ac_status" >&5
 
9450
echo "$as_me: failed program was:" >&5
 
9451
sed 's/^/| /' conftest.$ac_ext >&5
 
9452
 
 
9453
( exit $ac_status )
 
9454
libopts_cv_with_libregex=no
 
9455
fi
 
9456
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
9457
fi # end of AC_TRY_RUN
 
9458
 
 
9459
fi
 
9460
 # end of AC_CACHE_VAL for libopts_cv_with_libregex
 
9461
  echo "$as_me:$LINENO: result: ${libopts_cv_with_libregex}" >&5
 
9462
echo "${ECHO_T}${libopts_cv_with_libregex}" >&6
 
9463
 
 
9464
  if test "X${libopts_cv_with_libregex}" != Xno
 
9465
  then
 
9466
 
 
9467
cat >>confdefs.h <<\_ACEOF
 
9468
#define WITH_LIBREGEX 1
 
9469
_ACEOF
 
9470
 
 
9471
  else
 
9472
    CPPFLAGS="${libopts_save_CPPFLAGS}"
 
9473
    LIBS="${libopts_save_LIBS}"
 
9474
  fi
 
9475
 
 
9476
 
 
9477
 
 
9478
  # Check to see if pathfind(3) works.
 
9479
 
 
9480
  echo "$as_me:$LINENO: checking whether pathfind(3) works" >&5
 
9481
echo $ECHO_N "checking whether pathfind(3) works... $ECHO_C" >&6
 
9482
  if test "${libopts_cv_run_pathfind+set}" = set; then
 
9483
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9484
else
 
9485
 
 
9486
  if test "$cross_compiling" = yes; then
 
9487
  libopts_cv_run_pathfind=no
 
9488
 
 
9489
else
 
9490
  cat >conftest.$ac_ext <<_ACEOF
 
9491
/* confdefs.h.  */
 
9492
_ACEOF
 
9493
cat confdefs.h >>conftest.$ac_ext
 
9494
cat >>conftest.$ac_ext <<_ACEOF
 
9495
/* end confdefs.h.  */
 
9496
#include <string.h>
 
9497
#include <stdlib.h>
 
9498
int main (int argc, char** argv) {
 
9499
   char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
 
9500
   return (pz == 0) ? 1 : 0;
 
9501
}
 
9502
_ACEOF
 
9503
rm -f conftest$ac_exeext
 
9504
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9505
  (eval $ac_link) 2>&5
 
9506
  ac_status=$?
 
9507
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9508
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
9509
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9510
  (eval $ac_try) 2>&5
 
9511
  ac_status=$?
 
9512
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9513
  (exit $ac_status); }; }; then
 
9514
  libopts_cv_run_pathfind=yes
 
9515
else
 
9516
  echo "$as_me: program exited with status $ac_status" >&5
 
9517
echo "$as_me: failed program was:" >&5
 
9518
sed 's/^/| /' conftest.$ac_ext >&5
 
9519
 
 
9520
( exit $ac_status )
 
9521
libopts_cv_run_pathfind=no
 
9522
fi
 
9523
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
9524
fi # end of TRY_RUN
 
9525
 
 
9526
fi
 
9527
 # end of AC_CACHE_VAL for libopts_cv_run_pathfind
 
9528
  echo "$as_me:$LINENO: result: ${libopts_cv_run_pathfind}" >&5
 
9529
echo "${ECHO_T}${libopts_cv_run_pathfind}" >&6
 
9530
 
 
9531
  if test "X${libopts_cv_run_pathfind}" != Xno
 
9532
  then
 
9533
 
 
9534
cat >>confdefs.h <<\_ACEOF
 
9535
#define HAVE_PATHFIND 1
 
9536
_ACEOF
 
9537
 
 
9538
  fi
 
9539
 
 
9540
 
 
9541
 
 
9542
  # Check to see if /dev/zero is readable device.
 
9543
 
 
9544
  echo "$as_me:$LINENO: checking whether /dev/zero is readable device" >&5
 
9545
echo $ECHO_N "checking whether /dev/zero is readable device... $ECHO_C" >&6
 
9546
  if test "${libopts_cv_test_dev_zero+set}" = set; then
 
9547
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9548
else
 
9549
 
 
9550
    libopts_cv_test_dev_zero=`exec 2> /dev/null
 
9551
dzero=\`ls -lL /dev/zero | egrep ^c......r\`
 
9552
test -z "${dzero}" && exit 1
 
9553
echo ${dzero}`
 
9554
    if test $? -ne 0
 
9555
    then libopts_cv_test_dev_zero=no
 
9556
    elif test -z "$libopts_cv_test_dev_zero"
 
9557
    then libopts_cv_test_dev_zero=no
 
9558
    fi
 
9559
 
 
9560
fi
 
9561
 # end of CACHE_VAL of libopts_cv_test_dev_zero
 
9562
  echo "$as_me:$LINENO: result: ${libopts_cv_test_dev_zero}" >&5
 
9563
echo "${ECHO_T}${libopts_cv_test_dev_zero}" >&6
 
9564
 
 
9565
  if test "X${libopts_cv_test_dev_zero}" != Xno
 
9566
  then
 
9567
 
 
9568
cat >>confdefs.h <<\_ACEOF
 
9569
#define HAVE_DEV_ZERO 1
 
9570
_ACEOF
 
9571
 
 
9572
  fi
 
9573
 
 
9574
 
 
9575
 
 
9576
  # Check to see if we have a functional realpath(3C).
 
9577
 
 
9578
  echo "$as_me:$LINENO: checking whether we have a functional realpath(3C)" >&5
 
9579
echo $ECHO_N "checking whether we have a functional realpath(3C)... $ECHO_C" >&6
 
9580
  if test "${libopts_cv_run_realpath+set}" = set; then
 
9581
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9582
else
 
9583
 
 
9584
  if test "$cross_compiling" = yes; then
 
9585
  libopts_cv_run_realpath=no
 
9586
 
 
9587
else
 
9588
  cat >conftest.$ac_ext <<_ACEOF
 
9589
/* confdefs.h.  */
 
9590
_ACEOF
 
9591
cat confdefs.h >>conftest.$ac_ext
 
9592
cat >>conftest.$ac_ext <<_ACEOF
 
9593
/* end confdefs.h.  */
 
9594
#include <limits.h>
 
9595
#include <stdlib.h>
 
9596
int main (int argc, char** argv) {
 
9597
#ifndef PATH_MAX
 
9598
choke me!!
 
9599
#else
 
9600
   char zPath[PATH_MAX+1];
 
9601
#endif
 
9602
   char *pz = realpath(argv[0], zPath);
 
9603
   return (pz == zPath) ? 0 : 1;
 
9604
}
 
9605
_ACEOF
 
9606
rm -f conftest$ac_exeext
 
9607
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9608
  (eval $ac_link) 2>&5
 
9609
  ac_status=$?
 
9610
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9611
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
9612
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9613
  (eval $ac_try) 2>&5
 
9614
  ac_status=$?
 
9615
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9616
  (exit $ac_status); }; }; then
 
9617
  libopts_cv_run_realpath=yes
 
9618
else
 
9619
  echo "$as_me: program exited with status $ac_status" >&5
 
9620
echo "$as_me: failed program was:" >&5
 
9621
sed 's/^/| /' conftest.$ac_ext >&5
 
9622
 
 
9623
( exit $ac_status )
 
9624
libopts_cv_run_realpath=no
 
9625
fi
 
9626
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
9627
fi # end of TRY_RUN
 
9628
 
 
9629
fi
 
9630
 # end of AC_CACHE_VAL for libopts_cv_run_realpath
 
9631
  echo "$as_me:$LINENO: result: ${libopts_cv_run_realpath}" >&5
 
9632
echo "${ECHO_T}${libopts_cv_run_realpath}" >&6
 
9633
 
 
9634
  if test "X${libopts_cv_run_realpath}" != Xno
 
9635
  then
 
9636
 
 
9637
cat >>confdefs.h <<\_ACEOF
 
9638
#define HAVE_REALPATH 1
 
9639
_ACEOF
 
9640
 
 
9641
  fi
 
9642
 
 
9643
 
 
9644
 
 
9645
  # Check to see if strftime() works.
 
9646
 
 
9647
  echo "$as_me:$LINENO: checking whether strftime() works" >&5
 
9648
echo $ECHO_N "checking whether strftime() works... $ECHO_C" >&6
 
9649
  if test "${libopts_cv_run_strftime+set}" = set; then
 
9650
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9651
else
 
9652
 
 
9653
  if test "$cross_compiling" = yes; then
 
9654
  libopts_cv_run_strftime=no
 
9655
 
 
9656
else
 
9657
  cat >conftest.$ac_ext <<_ACEOF
 
9658
/* confdefs.h.  */
 
9659
_ACEOF
 
9660
cat confdefs.h >>conftest.$ac_ext
 
9661
cat >>conftest.$ac_ext <<_ACEOF
 
9662
/* end confdefs.h.  */
 
9663
#include <time.h>
 
9664
#include <string.h>
 
9665
char t_buf[ 64 ];
 
9666
int main() {
 
9667
  static char const z[] = "Thursday Aug 28 240";
 
9668
  struct tm tm;
 
9669
  tm.tm_sec   = 36;  /* seconds after the minute [0, 61]  */
 
9670
  tm.tm_min   = 44;  /* minutes after the hour [0, 59] */
 
9671
  tm.tm_hour  = 12;  /* hour since midnight [0, 23] */
 
9672
  tm.tm_mday  = 28;  /* day of the month [1, 31] */
 
9673
  tm.tm_mon   =  7;  /* months since January [0, 11] */
 
9674
  tm.tm_year  = 86;  /* years since 1900 */
 
9675
  tm.tm_wday  =  4;  /* days since Sunday [0, 6] */
 
9676
  tm.tm_yday  = 239; /* days since January 1 [0, 365] */
 
9677
  tm.tm_isdst =  1;  /* flag for daylight savings time */
 
9678
  strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
 
9679
  return (strcmp( t_buf, z ) != 0); }
 
9680
_ACEOF
 
9681
rm -f conftest$ac_exeext
 
9682
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9683
  (eval $ac_link) 2>&5
 
9684
  ac_status=$?
 
9685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9686
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
9687
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9688
  (eval $ac_try) 2>&5
 
9689
  ac_status=$?
 
9690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9691
  (exit $ac_status); }; }; then
 
9692
  libopts_cv_run_strftime=yes
 
9693
else
 
9694
  echo "$as_me: program exited with status $ac_status" >&5
 
9695
echo "$as_me: failed program was:" >&5
 
9696
sed 's/^/| /' conftest.$ac_ext >&5
 
9697
 
 
9698
( exit $ac_status )
 
9699
libopts_cv_run_strftime=no
 
9700
fi
 
9701
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
9702
fi # end of TRY_RUN
 
9703
 
 
9704
fi
 
9705
 # end of AC_CACHE_VAL for libopts_cv_run_strftime
 
9706
  echo "$as_me:$LINENO: result: ${libopts_cv_run_strftime}" >&5
 
9707
echo "${ECHO_T}${libopts_cv_run_strftime}" >&6
 
9708
 
 
9709
  if test "X${libopts_cv_run_strftime}" != Xno
 
9710
  then
 
9711
 
 
9712
cat >>confdefs.h <<\_ACEOF
 
9713
#define HAVE_STRFTIME 1
 
9714
_ACEOF
 
9715
 
 
9716
  fi
 
9717
 
 
9718
 
 
9719
 
 
9720
  # Check to see if fopen accepts "b" mode.
 
9721
 
 
9722
  echo "$as_me:$LINENO: checking whether fopen accepts \"b\" mode" >&5
 
9723
echo $ECHO_N "checking whether fopen accepts \"b\" mode... $ECHO_C" >&6
 
9724
  if test "${libopts_cv_run_fopen_binary+set}" = set; then
 
9725
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9726
else
 
9727
 
 
9728
  if test "$cross_compiling" = yes; then
 
9729
  libopts_cv_run_fopen_binary=no
 
9730
 
 
9731
else
 
9732
  cat >conftest.$ac_ext <<_ACEOF
 
9733
/* confdefs.h.  */
 
9734
_ACEOF
 
9735
cat confdefs.h >>conftest.$ac_ext
 
9736
cat >>conftest.$ac_ext <<_ACEOF
 
9737
/* end confdefs.h.  */
 
9738
#include <stdio.h>
 
9739
int main (int argc, char** argv) {
 
9740
FILE* fp = fopen("conftest.$ac_ext", "rb");
 
9741
return (fp == NULL) ? 1 : fclose(fp); }
 
9742
_ACEOF
 
9743
rm -f conftest$ac_exeext
 
9744
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9745
  (eval $ac_link) 2>&5
 
9746
  ac_status=$?
 
9747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9748
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
9749
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9750
  (eval $ac_try) 2>&5
 
9751
  ac_status=$?
 
9752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9753
  (exit $ac_status); }; }; then
 
9754
  libopts_cv_run_fopen_binary=yes
 
9755
else
 
9756
  echo "$as_me: program exited with status $ac_status" >&5
 
9757
echo "$as_me: failed program was:" >&5
 
9758
sed 's/^/| /' conftest.$ac_ext >&5
 
9759
 
 
9760
( exit $ac_status )
 
9761
libopts_cv_run_fopen_binary=no
 
9762
fi
 
9763
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
9764
fi # end of TRY_RUN
 
9765
 
 
9766
fi
 
9767
 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
 
9768
  echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_binary}" >&5
 
9769
echo "${ECHO_T}${libopts_cv_run_fopen_binary}" >&6
 
9770
 
 
9771
  if test "X${libopts_cv_run_fopen_binary}" != Xno
 
9772
  then
 
9773
 
 
9774
cat >>confdefs.h <<\_ACEOF
 
9775
#define FOPEN_BINARY_FLAG "b"
 
9776
_ACEOF
 
9777
 
 
9778
  else
 
9779
 
 
9780
cat >>confdefs.h <<\_ACEOF
 
9781
#define FOPEN_BINARY_FLAG ""
 
9782
_ACEOF
 
9783
 
 
9784
  fi
 
9785
 
 
9786
 
 
9787
 
 
9788
  # Check to see if fopen accepts "t" mode.
 
9789
 
 
9790
  echo "$as_me:$LINENO: checking whether fopen accepts \"t\" mode" >&5
 
9791
echo $ECHO_N "checking whether fopen accepts \"t\" mode... $ECHO_C" >&6
 
9792
  if test "${libopts_cv_run_fopen_text+set}" = set; then
 
9793
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9794
else
 
9795
 
 
9796
  if test "$cross_compiling" = yes; then
 
9797
  libopts_cv_run_fopen_text=no
 
9798
 
 
9799
else
 
9800
  cat >conftest.$ac_ext <<_ACEOF
 
9801
/* confdefs.h.  */
 
9802
_ACEOF
 
9803
cat confdefs.h >>conftest.$ac_ext
 
9804
cat >>conftest.$ac_ext <<_ACEOF
 
9805
/* end confdefs.h.  */
 
9806
#include <stdio.h>
 
9807
int main (int argc, char** argv) {
 
9808
FILE* fp = fopen("conftest.$ac_ext", "rt");
 
9809
return (fp == NULL) ? 1 : fclose(fp); }
 
9810
_ACEOF
 
9811
rm -f conftest$ac_exeext
 
9812
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9813
  (eval $ac_link) 2>&5
 
9814
  ac_status=$?
 
9815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9816
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
9817
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9818
  (eval $ac_try) 2>&5
 
9819
  ac_status=$?
 
9820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9821
  (exit $ac_status); }; }; then
 
9822
  libopts_cv_run_fopen_text=yes
 
9823
else
 
9824
  echo "$as_me: program exited with status $ac_status" >&5
 
9825
echo "$as_me: failed program was:" >&5
 
9826
sed 's/^/| /' conftest.$ac_ext >&5
 
9827
 
 
9828
( exit $ac_status )
 
9829
libopts_cv_run_fopen_text=no
 
9830
fi
 
9831
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
9832
fi # end of TRY_RUN
 
9833
 
 
9834
fi
 
9835
 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
 
9836
  echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_text}" >&5
 
9837
echo "${ECHO_T}${libopts_cv_run_fopen_text}" >&6
 
9838
 
 
9839
  if test "X${libopts_cv_run_fopen_text}" != Xno
 
9840
  then
 
9841
 
 
9842
cat >>confdefs.h <<\_ACEOF
 
9843
#define FOPEN_TEXT_FLAG "t"
 
9844
_ACEOF
 
9845
 
 
9846
  else
 
9847
 
 
9848
cat >>confdefs.h <<\_ACEOF
 
9849
#define FOPEN_TEXT_FLAG ""
 
9850
_ACEOF
 
9851
 
 
9852
  fi
 
9853
 
 
9854
 
 
9855
 
 
9856
  # Check to see if not wanting optional option args.
 
9857
 
 
9858
  # Check whether --enable-optional-args or --disable-optional-args was given.
 
9859
if test "${enable_optional_args+set}" = set; then
 
9860
  enableval="$enable_optional_args"
 
9861
  libopts_cv_enable_optional_args=${enable_optional_args}
 
9862
else
 
9863
  echo "$as_me:$LINENO: checking whether not wanting optional option args" >&5
 
9864
echo $ECHO_N "checking whether not wanting optional option args... $ECHO_C" >&6
 
9865
if test "${libopts_cv_enable_optional_args+set}" = set; then
 
9866
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9867
else
 
9868
  libopts_cv_enable_optional_args=yes
 
9869
fi
 
9870
echo "$as_me:$LINENO: result: $libopts_cv_enable_optional_args" >&5
 
9871
echo "${ECHO_T}$libopts_cv_enable_optional_args" >&6
 
9872
 
 
9873
fi;  # end of AC_ARG_ENABLE
 
9874
 
 
9875
  if test "X${libopts_cv_enable_optional_args}" = Xno
 
9876
  then
 
9877
 
 
9878
cat >>confdefs.h <<\_ACEOF
 
9879
#define NO_OPTIONAL_OPT_ARGS 1
 
9880
_ACEOF
 
9881
 
 
9882
  fi
 
9883
 
 
9884
 
 
9885
 
 
9886
 
 
9887
  else
 
9888
 
 
9889
if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
 
9890
  # =================
 
9891
  # AC_HEADER_STDC
 
9892
  # =================
 
9893
  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
9894
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
9895
if test "${ac_cv_header_stdc+set}" = set; then
 
9896
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9897
else
 
9898
  cat >conftest.$ac_ext <<_ACEOF
 
9899
/* confdefs.h.  */
 
9900
_ACEOF
 
9901
cat confdefs.h >>conftest.$ac_ext
 
9902
cat >>conftest.$ac_ext <<_ACEOF
 
9903
/* end confdefs.h.  */
 
9904
#include <stdlib.h>
 
9905
#include <stdarg.h>
 
9906
#include <string.h>
 
9907
#include <float.h>
 
9908
 
 
9909
int
 
9910
main ()
 
9911
{
 
9912
 
 
9913
  ;
 
9914
  return 0;
 
9915
}
 
9916
_ACEOF
 
9917
rm -f conftest.$ac_objext
 
9918
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9919
  (eval $ac_compile) 2>conftest.er1
 
9920
  ac_status=$?
 
9921
  grep -v '^ *+' conftest.er1 >conftest.err
 
9922
  rm -f conftest.er1
 
9923
  cat conftest.err >&5
 
9924
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9925
  (exit $ac_status); } &&
 
9926
         { ac_try='test -z "$ac_c_werror_flag"
 
9927
                         || test ! -s conftest.err'
 
9928
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9929
  (eval $ac_try) 2>&5
 
9930
  ac_status=$?
 
9931
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9932
  (exit $ac_status); }; } &&
 
9933
         { ac_try='test -s conftest.$ac_objext'
 
9934
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9935
  (eval $ac_try) 2>&5
 
9936
  ac_status=$?
 
9937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9938
  (exit $ac_status); }; }; then
 
9939
  ac_cv_header_stdc=yes
 
9940
else
 
9941
  echo "$as_me: failed program was:" >&5
 
9942
sed 's/^/| /' conftest.$ac_ext >&5
 
9943
 
 
9944
ac_cv_header_stdc=no
 
9945
fi
 
9946
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9947
 
 
9948
if test $ac_cv_header_stdc = yes; then
 
9949
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
9950
  cat >conftest.$ac_ext <<_ACEOF
 
9951
/* confdefs.h.  */
 
9952
_ACEOF
 
9953
cat confdefs.h >>conftest.$ac_ext
 
9954
cat >>conftest.$ac_ext <<_ACEOF
 
9955
/* end confdefs.h.  */
 
9956
#include <string.h>
 
9957
 
 
9958
_ACEOF
 
9959
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
9960
  $EGREP "memchr" >/dev/null 2>&1; then
 
9961
  :
 
9962
else
 
9963
  ac_cv_header_stdc=no
 
9964
fi
 
9965
rm -f conftest*
 
9966
 
 
9967
fi
 
9968
 
 
9969
if test $ac_cv_header_stdc = yes; then
 
9970
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
9971
  cat >conftest.$ac_ext <<_ACEOF
 
9972
/* confdefs.h.  */
 
9973
_ACEOF
 
9974
cat confdefs.h >>conftest.$ac_ext
 
9975
cat >>conftest.$ac_ext <<_ACEOF
 
9976
/* end confdefs.h.  */
 
9977
#include <stdlib.h>
 
9978
 
 
9979
_ACEOF
 
9980
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
9981
  $EGREP "free" >/dev/null 2>&1; then
 
9982
  :
 
9983
else
 
9984
  ac_cv_header_stdc=no
 
9985
fi
 
9986
rm -f conftest*
 
9987
 
 
9988
fi
 
9989
 
 
9990
if test $ac_cv_header_stdc = yes; then
 
9991
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
9992
  if test "$cross_compiling" = yes; then
 
9993
  :
 
9994
else
 
9995
  cat >conftest.$ac_ext <<_ACEOF
 
9996
/* confdefs.h.  */
 
9997
_ACEOF
 
9998
cat confdefs.h >>conftest.$ac_ext
 
9999
cat >>conftest.$ac_ext <<_ACEOF
 
10000
/* end confdefs.h.  */
 
10001
#include <ctype.h>
 
10002
#if ((' ' & 0x0FF) == 0x020)
 
10003
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
10004
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
10005
#else
 
10006
# define ISLOWER(c) \
 
10007
                   (('a' <= (c) && (c) <= 'i') \
 
10008
                     || ('j' <= (c) && (c) <= 'r') \
 
10009
                     || ('s' <= (c) && (c) <= 'z'))
 
10010
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
10011
#endif
 
10012
 
 
10013
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
10014
int
 
10015
main ()
 
10016
{
 
10017
  int i;
 
10018
  for (i = 0; i < 256; i++)
 
10019
    if (XOR (islower (i), ISLOWER (i))
 
10020
        || toupper (i) != TOUPPER (i))
 
10021
      exit(2);
 
10022
  exit (0);
 
10023
}
 
10024
_ACEOF
 
10025
rm -f conftest$ac_exeext
 
10026
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10027
  (eval $ac_link) 2>&5
 
10028
  ac_status=$?
 
10029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10030
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
10031
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10032
  (eval $ac_try) 2>&5
 
10033
  ac_status=$?
 
10034
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10035
  (exit $ac_status); }; }; then
 
10036
  :
 
10037
else
 
10038
  echo "$as_me: program exited with status $ac_status" >&5
 
10039
echo "$as_me: failed program was:" >&5
 
10040
sed 's/^/| /' conftest.$ac_ext >&5
 
10041
 
 
10042
( exit $ac_status )
 
10043
ac_cv_header_stdc=no
 
10044
fi
 
10045
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
10046
fi
 
10047
fi
 
10048
fi
 
10049
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
10050
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
10051
if test $ac_cv_header_stdc = yes; then
 
10052
 
 
10053
cat >>confdefs.h <<\_ACEOF
 
10054
#define STDC_HEADERS 1
 
10055
_ACEOF
 
10056
 
 
10057
fi
 
10058
 
 
10059
  # =================
 
10060
  # AC_HEADER_DIRENT
 
10061
  # =================
 
10062
 
 
10063
 
 
10064
 
 
10065
 
 
10066
 
 
10067
ac_header_dirent=no
 
10068
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
 
10069
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
 
10070
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
 
10071
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
 
10072
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10073
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10074
else
 
10075
  cat >conftest.$ac_ext <<_ACEOF
 
10076
/* confdefs.h.  */
 
10077
_ACEOF
 
10078
cat confdefs.h >>conftest.$ac_ext
 
10079
cat >>conftest.$ac_ext <<_ACEOF
 
10080
/* end confdefs.h.  */
 
10081
#include <sys/types.h>
 
10082
#include <$ac_hdr>
 
10083
 
 
10084
int
 
10085
main ()
 
10086
{
 
10087
if ((DIR *) 0)
 
10088
return 0;
 
10089
  ;
 
10090
  return 0;
 
10091
}
 
10092
_ACEOF
 
10093
rm -f conftest.$ac_objext
 
10094
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10095
  (eval $ac_compile) 2>conftest.er1
 
10096
  ac_status=$?
 
10097
  grep -v '^ *+' conftest.er1 >conftest.err
 
10098
  rm -f conftest.er1
 
10099
  cat conftest.err >&5
 
10100
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10101
  (exit $ac_status); } &&
 
10102
         { ac_try='test -z "$ac_c_werror_flag"
 
10103
                         || test ! -s conftest.err'
 
10104
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10105
  (eval $ac_try) 2>&5
 
10106
  ac_status=$?
 
10107
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10108
  (exit $ac_status); }; } &&
 
10109
         { ac_try='test -s conftest.$ac_objext'
 
10110
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10111
  (eval $ac_try) 2>&5
 
10112
  ac_status=$?
 
10113
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10114
  (exit $ac_status); }; }; then
 
10115
  eval "$as_ac_Header=yes"
 
10116
else
 
10117
  echo "$as_me: failed program was:" >&5
 
10118
sed 's/^/| /' conftest.$ac_ext >&5
 
10119
 
 
10120
eval "$as_ac_Header=no"
 
10121
fi
 
10122
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10123
fi
 
10124
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10125
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10126
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
10127
  cat >>confdefs.h <<_ACEOF
 
10128
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
 
10129
_ACEOF
 
10130
 
 
10131
ac_header_dirent=$ac_hdr; break
 
10132
fi
 
10133
 
 
10134
done
 
10135
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
 
10136
if test $ac_header_dirent = dirent.h; then
 
10137
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
10138
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
 
10139
if test "${ac_cv_search_opendir+set}" = set; then
 
10140
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10141
else
 
10142
  ac_func_search_save_LIBS=$LIBS
 
10143
ac_cv_search_opendir=no
 
10144
cat >conftest.$ac_ext <<_ACEOF
 
10145
/* confdefs.h.  */
 
10146
_ACEOF
 
10147
cat confdefs.h >>conftest.$ac_ext
 
10148
cat >>conftest.$ac_ext <<_ACEOF
 
10149
/* end confdefs.h.  */
 
10150
 
 
10151
/* Override any gcc2 internal prototype to avoid an error.  */
 
10152
#ifdef __cplusplus
 
10153
extern "C"
 
10154
#endif
 
10155
/* We use char because int might match the return type of a gcc2
 
10156
   builtin and then its argument prototype would still apply.  */
 
10157
char opendir ();
 
10158
int
 
10159
main ()
 
10160
{
 
10161
opendir ();
 
10162
  ;
 
10163
  return 0;
 
10164
}
 
10165
_ACEOF
 
10166
rm -f conftest.$ac_objext conftest$ac_exeext
 
10167
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10168
  (eval $ac_link) 2>conftest.er1
 
10169
  ac_status=$?
 
10170
  grep -v '^ *+' conftest.er1 >conftest.err
 
10171
  rm -f conftest.er1
 
10172
  cat conftest.err >&5
 
10173
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10174
  (exit $ac_status); } &&
 
10175
         { ac_try='test -z "$ac_c_werror_flag"
 
10176
                         || test ! -s conftest.err'
 
10177
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10178
  (eval $ac_try) 2>&5
 
10179
  ac_status=$?
 
10180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10181
  (exit $ac_status); }; } &&
 
10182
         { ac_try='test -s conftest$ac_exeext'
 
10183
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10184
  (eval $ac_try) 2>&5
 
10185
  ac_status=$?
 
10186
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10187
  (exit $ac_status); }; }; then
 
10188
  ac_cv_search_opendir="none required"
 
10189
else
 
10190
  echo "$as_me: failed program was:" >&5
 
10191
sed 's/^/| /' conftest.$ac_ext >&5
 
10192
 
 
10193
fi
 
10194
rm -f conftest.err conftest.$ac_objext \
 
10195
      conftest$ac_exeext conftest.$ac_ext
 
10196
if test "$ac_cv_search_opendir" = no; then
 
10197
  for ac_lib in dir; do
 
10198
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
10199
    cat >conftest.$ac_ext <<_ACEOF
 
10200
/* confdefs.h.  */
 
10201
_ACEOF
 
10202
cat confdefs.h >>conftest.$ac_ext
 
10203
cat >>conftest.$ac_ext <<_ACEOF
 
10204
/* end confdefs.h.  */
 
10205
 
 
10206
/* Override any gcc2 internal prototype to avoid an error.  */
 
10207
#ifdef __cplusplus
 
10208
extern "C"
 
10209
#endif
 
10210
/* We use char because int might match the return type of a gcc2
 
10211
   builtin and then its argument prototype would still apply.  */
 
10212
char opendir ();
 
10213
int
 
10214
main ()
 
10215
{
 
10216
opendir ();
 
10217
  ;
 
10218
  return 0;
 
10219
}
 
10220
_ACEOF
 
10221
rm -f conftest.$ac_objext conftest$ac_exeext
 
10222
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10223
  (eval $ac_link) 2>conftest.er1
 
10224
  ac_status=$?
 
10225
  grep -v '^ *+' conftest.er1 >conftest.err
 
10226
  rm -f conftest.er1
 
10227
  cat conftest.err >&5
 
10228
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10229
  (exit $ac_status); } &&
 
10230
         { ac_try='test -z "$ac_c_werror_flag"
 
10231
                         || test ! -s conftest.err'
 
10232
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10233
  (eval $ac_try) 2>&5
 
10234
  ac_status=$?
 
10235
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10236
  (exit $ac_status); }; } &&
 
10237
         { ac_try='test -s conftest$ac_exeext'
 
10238
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10239
  (eval $ac_try) 2>&5
 
10240
  ac_status=$?
 
10241
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10242
  (exit $ac_status); }; }; then
 
10243
  ac_cv_search_opendir="-l$ac_lib"
 
10244
break
 
10245
else
 
10246
  echo "$as_me: failed program was:" >&5
 
10247
sed 's/^/| /' conftest.$ac_ext >&5
 
10248
 
 
10249
fi
 
10250
rm -f conftest.err conftest.$ac_objext \
 
10251
      conftest$ac_exeext conftest.$ac_ext
 
10252
  done
 
10253
fi
 
10254
LIBS=$ac_func_search_save_LIBS
 
10255
fi
 
10256
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
10257
echo "${ECHO_T}$ac_cv_search_opendir" >&6
 
10258
if test "$ac_cv_search_opendir" != no; then
 
10259
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
 
10260
 
 
10261
fi
 
10262
 
 
10263
else
 
10264
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
10265
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
 
10266
if test "${ac_cv_search_opendir+set}" = set; then
 
10267
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10268
else
 
10269
  ac_func_search_save_LIBS=$LIBS
 
10270
ac_cv_search_opendir=no
 
10271
cat >conftest.$ac_ext <<_ACEOF
 
10272
/* confdefs.h.  */
 
10273
_ACEOF
 
10274
cat confdefs.h >>conftest.$ac_ext
 
10275
cat >>conftest.$ac_ext <<_ACEOF
 
10276
/* end confdefs.h.  */
 
10277
 
 
10278
/* Override any gcc2 internal prototype to avoid an error.  */
 
10279
#ifdef __cplusplus
 
10280
extern "C"
 
10281
#endif
 
10282
/* We use char because int might match the return type of a gcc2
 
10283
   builtin and then its argument prototype would still apply.  */
 
10284
char opendir ();
 
10285
int
 
10286
main ()
 
10287
{
 
10288
opendir ();
 
10289
  ;
 
10290
  return 0;
 
10291
}
 
10292
_ACEOF
 
10293
rm -f conftest.$ac_objext conftest$ac_exeext
 
10294
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10295
  (eval $ac_link) 2>conftest.er1
 
10296
  ac_status=$?
 
10297
  grep -v '^ *+' conftest.er1 >conftest.err
 
10298
  rm -f conftest.er1
 
10299
  cat conftest.err >&5
 
10300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10301
  (exit $ac_status); } &&
 
10302
         { ac_try='test -z "$ac_c_werror_flag"
 
10303
                         || test ! -s conftest.err'
 
10304
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10305
  (eval $ac_try) 2>&5
 
10306
  ac_status=$?
 
10307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10308
  (exit $ac_status); }; } &&
 
10309
         { ac_try='test -s conftest$ac_exeext'
 
10310
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10311
  (eval $ac_try) 2>&5
 
10312
  ac_status=$?
 
10313
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10314
  (exit $ac_status); }; }; then
 
10315
  ac_cv_search_opendir="none required"
 
10316
else
 
10317
  echo "$as_me: failed program was:" >&5
 
10318
sed 's/^/| /' conftest.$ac_ext >&5
 
10319
 
 
10320
fi
 
10321
rm -f conftest.err conftest.$ac_objext \
 
10322
      conftest$ac_exeext conftest.$ac_ext
 
10323
if test "$ac_cv_search_opendir" = no; then
 
10324
  for ac_lib in x; do
 
10325
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
10326
    cat >conftest.$ac_ext <<_ACEOF
 
10327
/* confdefs.h.  */
 
10328
_ACEOF
 
10329
cat confdefs.h >>conftest.$ac_ext
 
10330
cat >>conftest.$ac_ext <<_ACEOF
 
10331
/* end confdefs.h.  */
 
10332
 
 
10333
/* Override any gcc2 internal prototype to avoid an error.  */
 
10334
#ifdef __cplusplus
 
10335
extern "C"
 
10336
#endif
 
10337
/* We use char because int might match the return type of a gcc2
 
10338
   builtin and then its argument prototype would still apply.  */
 
10339
char opendir ();
 
10340
int
 
10341
main ()
 
10342
{
 
10343
opendir ();
 
10344
  ;
 
10345
  return 0;
 
10346
}
 
10347
_ACEOF
 
10348
rm -f conftest.$ac_objext conftest$ac_exeext
 
10349
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10350
  (eval $ac_link) 2>conftest.er1
 
10351
  ac_status=$?
 
10352
  grep -v '^ *+' conftest.er1 >conftest.err
 
10353
  rm -f conftest.er1
 
10354
  cat conftest.err >&5
 
10355
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10356
  (exit $ac_status); } &&
 
10357
         { ac_try='test -z "$ac_c_werror_flag"
 
10358
                         || test ! -s conftest.err'
 
10359
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10360
  (eval $ac_try) 2>&5
 
10361
  ac_status=$?
 
10362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10363
  (exit $ac_status); }; } &&
 
10364
         { ac_try='test -s conftest$ac_exeext'
 
10365
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10366
  (eval $ac_try) 2>&5
 
10367
  ac_status=$?
 
10368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10369
  (exit $ac_status); }; }; then
 
10370
  ac_cv_search_opendir="-l$ac_lib"
 
10371
break
 
10372
else
 
10373
  echo "$as_me: failed program was:" >&5
 
10374
sed 's/^/| /' conftest.$ac_ext >&5
 
10375
 
 
10376
fi
 
10377
rm -f conftest.err conftest.$ac_objext \
 
10378
      conftest$ac_exeext conftest.$ac_ext
 
10379
  done
 
10380
fi
 
10381
LIBS=$ac_func_search_save_LIBS
 
10382
fi
 
10383
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
10384
echo "${ECHO_T}$ac_cv_search_opendir" >&6
 
10385
if test "$ac_cv_search_opendir" != no; then
 
10386
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
 
10387
 
 
10388
fi
 
10389
 
 
10390
fi
 
10391
 
 
10392
 
 
10393
  # =================
 
10394
  # AC_CHECK_HEADERS
 
10395
  # =================
 
10396
 
 
10397
 
 
10398
 
 
10399
 
 
10400
 
 
10401
 
 
10402
 
 
10403
 
 
10404
 
 
10405
 
 
10406
 
 
10407
 
 
10408
 
 
10409
 
 
10410
 
 
10411
 
 
10412
 
 
10413
 
 
10414
 
 
10415
 
 
10416
for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
 
10417
    setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
 
10418
    sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h    \
 
10419
    utime.h sysexits.h
 
10420
do
 
10421
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
10422
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10423
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
10424
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
10425
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10426
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10427
fi
 
10428
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10429
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10430
else
 
10431
  # Is the header compilable?
 
10432
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
10433
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
10434
cat >conftest.$ac_ext <<_ACEOF
 
10435
/* confdefs.h.  */
 
10436
_ACEOF
 
10437
cat confdefs.h >>conftest.$ac_ext
 
10438
cat >>conftest.$ac_ext <<_ACEOF
 
10439
/* end confdefs.h.  */
 
10440
$ac_includes_default
 
10441
#include <$ac_header>
 
10442
_ACEOF
 
10443
rm -f conftest.$ac_objext
 
10444
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10445
  (eval $ac_compile) 2>conftest.er1
 
10446
  ac_status=$?
 
10447
  grep -v '^ *+' conftest.er1 >conftest.err
 
10448
  rm -f conftest.er1
 
10449
  cat conftest.err >&5
 
10450
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10451
  (exit $ac_status); } &&
 
10452
         { ac_try='test -z "$ac_c_werror_flag"
 
10453
                         || test ! -s conftest.err'
 
10454
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10455
  (eval $ac_try) 2>&5
 
10456
  ac_status=$?
 
10457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10458
  (exit $ac_status); }; } &&
 
10459
         { ac_try='test -s conftest.$ac_objext'
 
10460
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10461
  (eval $ac_try) 2>&5
 
10462
  ac_status=$?
 
10463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10464
  (exit $ac_status); }; }; then
 
10465
  ac_header_compiler=yes
 
10466
else
 
10467
  echo "$as_me: failed program was:" >&5
 
10468
sed 's/^/| /' conftest.$ac_ext >&5
 
10469
 
 
10470
ac_header_compiler=no
 
10471
fi
 
10472
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10473
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
10474
echo "${ECHO_T}$ac_header_compiler" >&6
 
10475
 
 
10476
# Is the header present?
 
10477
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
10478
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
10479
cat >conftest.$ac_ext <<_ACEOF
 
10480
/* confdefs.h.  */
 
10481
_ACEOF
 
10482
cat confdefs.h >>conftest.$ac_ext
 
10483
cat >>conftest.$ac_ext <<_ACEOF
 
10484
/* end confdefs.h.  */
 
10485
#include <$ac_header>
 
10486
_ACEOF
 
10487
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
10488
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
10489
  ac_status=$?
 
10490
  grep -v '^ *+' conftest.er1 >conftest.err
 
10491
  rm -f conftest.er1
 
10492
  cat conftest.err >&5
 
10493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10494
  (exit $ac_status); } >/dev/null; then
 
10495
  if test -s conftest.err; then
 
10496
    ac_cpp_err=$ac_c_preproc_warn_flag
 
10497
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
10498
  else
 
10499
    ac_cpp_err=
 
10500
  fi
 
10501
else
 
10502
  ac_cpp_err=yes
 
10503
fi
 
10504
if test -z "$ac_cpp_err"; then
 
10505
  ac_header_preproc=yes
 
10506
else
 
10507
  echo "$as_me: failed program was:" >&5
 
10508
sed 's/^/| /' conftest.$ac_ext >&5
 
10509
 
 
10510
  ac_header_preproc=no
 
10511
fi
 
10512
rm -f conftest.err conftest.$ac_ext
 
10513
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
10514
echo "${ECHO_T}$ac_header_preproc" >&6
 
10515
 
 
10516
# So?  What about this header?
 
10517
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
10518
  yes:no: )
 
10519
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
10520
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
10521
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
10522
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
10523
    ac_header_preproc=yes
 
10524
    ;;
 
10525
  no:yes:* )
 
10526
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
10527
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
10528
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
10529
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
10530
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
10531
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
10532
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
10533
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
10534
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
10535
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
10536
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
10537
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
10538
    (
 
10539
      cat <<\_ASBOX
 
10540
## ------------------------------ ##
 
10541
## Report this to the ntp lists.  ##
 
10542
## ------------------------------ ##
 
10543
_ASBOX
 
10544
    ) |
 
10545
      sed "s/^/$as_me: WARNING:     /" >&2
 
10546
    ;;
 
10547
esac
 
10548
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
10549
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
10550
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10551
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10552
else
 
10553
  eval "$as_ac_Header=\$ac_header_preproc"
 
10554
fi
 
10555
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10556
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10557
 
 
10558
fi
 
10559
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
10560
  cat >>confdefs.h <<_ACEOF
 
10561
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
10562
_ACEOF
 
10563
 
 
10564
fi
 
10565
 
 
10566
done
 
10567
 
 
10568
 
 
10569
  # --------------------------------------------
 
10570
  # Verify certain entries from AC_CHECK_HEADERS
 
10571
  # --------------------------------------------
 
10572
  for f in sys_types sys_mman sys_param sys_stat sys_wait \
 
10573
           string errno stdlib memory setjmp
 
10574
  do eval as_ac_var=\${ac_cv_header_${f}_h+set}
 
10575
     test "${as_ac_var}" = set || \
 
10576
       { { echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
 
10577
echo "$as_me: error: You must have ${f}.h on your system" >&2;}
 
10578
   { (exit 1); exit 1; }; }
 
10579
  done
 
10580
 
 
10581
  # ================================================
 
10582
  # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
 
10583
  # if varargs.h is present define HAVE_VARARGS_H.
 
10584
  # ================================================
 
10585
 
 
10586
 
 
10587
for ac_header in stdarg.h varargs.h
 
10588
do
 
10589
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
10590
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10591
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
10592
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
10593
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10594
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10595
fi
 
10596
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10597
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10598
else
 
10599
  # Is the header compilable?
 
10600
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
10601
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
10602
cat >conftest.$ac_ext <<_ACEOF
 
10603
/* confdefs.h.  */
 
10604
_ACEOF
 
10605
cat confdefs.h >>conftest.$ac_ext
 
10606
cat >>conftest.$ac_ext <<_ACEOF
 
10607
/* end confdefs.h.  */
 
10608
$ac_includes_default
 
10609
#include <$ac_header>
 
10610
_ACEOF
 
10611
rm -f conftest.$ac_objext
 
10612
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10613
  (eval $ac_compile) 2>conftest.er1
 
10614
  ac_status=$?
 
10615
  grep -v '^ *+' conftest.er1 >conftest.err
 
10616
  rm -f conftest.er1
 
10617
  cat conftest.err >&5
 
10618
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10619
  (exit $ac_status); } &&
 
10620
         { ac_try='test -z "$ac_c_werror_flag"
 
10621
                         || test ! -s conftest.err'
 
10622
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10623
  (eval $ac_try) 2>&5
 
10624
  ac_status=$?
 
10625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10626
  (exit $ac_status); }; } &&
 
10627
         { ac_try='test -s conftest.$ac_objext'
 
10628
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10629
  (eval $ac_try) 2>&5
 
10630
  ac_status=$?
 
10631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10632
  (exit $ac_status); }; }; then
 
10633
  ac_header_compiler=yes
 
10634
else
 
10635
  echo "$as_me: failed program was:" >&5
 
10636
sed 's/^/| /' conftest.$ac_ext >&5
 
10637
 
 
10638
ac_header_compiler=no
 
10639
fi
 
10640
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10641
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
10642
echo "${ECHO_T}$ac_header_compiler" >&6
 
10643
 
 
10644
# Is the header present?
 
10645
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
10646
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
10647
cat >conftest.$ac_ext <<_ACEOF
 
10648
/* confdefs.h.  */
 
10649
_ACEOF
 
10650
cat confdefs.h >>conftest.$ac_ext
 
10651
cat >>conftest.$ac_ext <<_ACEOF
 
10652
/* end confdefs.h.  */
 
10653
#include <$ac_header>
 
10654
_ACEOF
 
10655
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
10656
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
10657
  ac_status=$?
 
10658
  grep -v '^ *+' conftest.er1 >conftest.err
 
10659
  rm -f conftest.er1
 
10660
  cat conftest.err >&5
 
10661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10662
  (exit $ac_status); } >/dev/null; then
 
10663
  if test -s conftest.err; then
 
10664
    ac_cpp_err=$ac_c_preproc_warn_flag
 
10665
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
10666
  else
 
10667
    ac_cpp_err=
 
10668
  fi
 
10669
else
 
10670
  ac_cpp_err=yes
 
10671
fi
 
10672
if test -z "$ac_cpp_err"; then
 
10673
  ac_header_preproc=yes
 
10674
else
 
10675
  echo "$as_me: failed program was:" >&5
 
10676
sed 's/^/| /' conftest.$ac_ext >&5
 
10677
 
 
10678
  ac_header_preproc=no
 
10679
fi
 
10680
rm -f conftest.err conftest.$ac_ext
 
10681
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
10682
echo "${ECHO_T}$ac_header_preproc" >&6
 
10683
 
 
10684
# So?  What about this header?
 
10685
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
10686
  yes:no: )
 
10687
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
10688
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
10689
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
10690
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
10691
    ac_header_preproc=yes
 
10692
    ;;
 
10693
  no:yes:* )
 
10694
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
10695
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
10696
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
10697
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
10698
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
10699
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
10700
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
10701
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
10702
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
10703
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
10704
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
10705
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
10706
    (
 
10707
      cat <<\_ASBOX
 
10708
## ------------------------------ ##
 
10709
## Report this to the ntp lists.  ##
 
10710
## ------------------------------ ##
 
10711
_ASBOX
 
10712
    ) |
 
10713
      sed "s/^/$as_me: WARNING:     /" >&2
 
10714
    ;;
 
10715
esac
 
10716
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
10717
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
10718
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10719
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10720
else
 
10721
  eval "$as_ac_Header=\$ac_header_preproc"
 
10722
fi
 
10723
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10724
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10725
 
 
10726
fi
 
10727
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
10728
  cat >>confdefs.h <<_ACEOF
 
10729
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
10730
_ACEOF
 
10731
 break
 
10732
fi
 
10733
 
 
10734
done
 
10735
 
 
10736
  if test `eval echo '${'$as_ac_Header'}'` != yes; then
 
10737
    { { echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
 
10738
echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
 
10739
   { (exit 1); exit 1; }; }
 
10740
  fi
 
10741
 
 
10742
  # ================================================
 
10743
  # Similarly for the string.h and strings.h headers
 
10744
  # ================================================
 
10745
 
 
10746
 
 
10747
for ac_header in string.h strings.h
 
10748
do
 
10749
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
10750
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10751
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
10752
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
10753
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10754
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10755
fi
 
10756
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10757
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10758
else
 
10759
  # Is the header compilable?
 
10760
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
10761
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
10762
cat >conftest.$ac_ext <<_ACEOF
 
10763
/* confdefs.h.  */
 
10764
_ACEOF
 
10765
cat confdefs.h >>conftest.$ac_ext
 
10766
cat >>conftest.$ac_ext <<_ACEOF
 
10767
/* end confdefs.h.  */
 
10768
$ac_includes_default
 
10769
#include <$ac_header>
 
10770
_ACEOF
 
10771
rm -f conftest.$ac_objext
 
10772
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10773
  (eval $ac_compile) 2>conftest.er1
 
10774
  ac_status=$?
 
10775
  grep -v '^ *+' conftest.er1 >conftest.err
 
10776
  rm -f conftest.er1
 
10777
  cat conftest.err >&5
 
10778
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10779
  (exit $ac_status); } &&
 
10780
         { ac_try='test -z "$ac_c_werror_flag"
 
10781
                         || test ! -s conftest.err'
 
10782
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10783
  (eval $ac_try) 2>&5
 
10784
  ac_status=$?
 
10785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10786
  (exit $ac_status); }; } &&
 
10787
         { ac_try='test -s conftest.$ac_objext'
 
10788
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10789
  (eval $ac_try) 2>&5
 
10790
  ac_status=$?
 
10791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10792
  (exit $ac_status); }; }; then
 
10793
  ac_header_compiler=yes
 
10794
else
 
10795
  echo "$as_me: failed program was:" >&5
 
10796
sed 's/^/| /' conftest.$ac_ext >&5
 
10797
 
 
10798
ac_header_compiler=no
 
10799
fi
 
10800
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10801
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
10802
echo "${ECHO_T}$ac_header_compiler" >&6
 
10803
 
 
10804
# Is the header present?
 
10805
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
10806
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
10807
cat >conftest.$ac_ext <<_ACEOF
 
10808
/* confdefs.h.  */
 
10809
_ACEOF
 
10810
cat confdefs.h >>conftest.$ac_ext
 
10811
cat >>conftest.$ac_ext <<_ACEOF
 
10812
/* end confdefs.h.  */
 
10813
#include <$ac_header>
 
10814
_ACEOF
 
10815
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
10816
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
10817
  ac_status=$?
 
10818
  grep -v '^ *+' conftest.er1 >conftest.err
 
10819
  rm -f conftest.er1
 
10820
  cat conftest.err >&5
 
10821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10822
  (exit $ac_status); } >/dev/null; then
 
10823
  if test -s conftest.err; then
 
10824
    ac_cpp_err=$ac_c_preproc_warn_flag
 
10825
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
10826
  else
 
10827
    ac_cpp_err=
 
10828
  fi
 
10829
else
 
10830
  ac_cpp_err=yes
 
10831
fi
 
10832
if test -z "$ac_cpp_err"; then
 
10833
  ac_header_preproc=yes
 
10834
else
 
10835
  echo "$as_me: failed program was:" >&5
 
10836
sed 's/^/| /' conftest.$ac_ext >&5
 
10837
 
 
10838
  ac_header_preproc=no
 
10839
fi
 
10840
rm -f conftest.err conftest.$ac_ext
 
10841
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
10842
echo "${ECHO_T}$ac_header_preproc" >&6
 
10843
 
 
10844
# So?  What about this header?
 
10845
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
10846
  yes:no: )
 
10847
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
10848
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
10849
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
10850
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
10851
    ac_header_preproc=yes
 
10852
    ;;
 
10853
  no:yes:* )
 
10854
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
10855
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
10856
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
10857
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
10858
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
10859
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
10860
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
10861
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
10862
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
10863
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
10864
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
10865
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
10866
    (
 
10867
      cat <<\_ASBOX
 
10868
## ------------------------------ ##
 
10869
## Report this to the ntp lists.  ##
 
10870
## ------------------------------ ##
 
10871
_ASBOX
 
10872
    ) |
 
10873
      sed "s/^/$as_me: WARNING:     /" >&2
 
10874
    ;;
 
10875
esac
 
10876
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
10877
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
10878
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10879
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10880
else
 
10881
  eval "$as_ac_Header=\$ac_header_preproc"
 
10882
fi
 
10883
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10884
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10885
 
 
10886
fi
 
10887
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
10888
  cat >>confdefs.h <<_ACEOF
 
10889
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
10890
_ACEOF
 
10891
 break
 
10892
fi
 
10893
 
 
10894
done
 
10895
 
 
10896
  if test `eval echo '${'$as_ac_Header'}'` != yes; then
 
10897
    { { echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
 
10898
echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
 
10899
   { (exit 1); exit 1; }; }
 
10900
  fi
 
10901
 
 
10902
  # =====================
 
10903
  # ...and limits headers
 
10904
  # =====================
 
10905
 
 
10906
 
 
10907
 
 
10908
for ac_header in limits.h sys/limits.h values.h
 
10909
do
 
10910
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
10911
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10912
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
10913
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
10914
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10915
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10916
fi
 
10917
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10918
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10919
else
 
10920
  # Is the header compilable?
 
10921
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
10922
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
10923
cat >conftest.$ac_ext <<_ACEOF
 
10924
/* confdefs.h.  */
 
10925
_ACEOF
 
10926
cat confdefs.h >>conftest.$ac_ext
 
10927
cat >>conftest.$ac_ext <<_ACEOF
 
10928
/* end confdefs.h.  */
 
10929
$ac_includes_default
 
10930
#include <$ac_header>
 
10931
_ACEOF
 
10932
rm -f conftest.$ac_objext
 
10933
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10934
  (eval $ac_compile) 2>conftest.er1
 
10935
  ac_status=$?
 
10936
  grep -v '^ *+' conftest.er1 >conftest.err
 
10937
  rm -f conftest.er1
 
10938
  cat conftest.err >&5
 
10939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10940
  (exit $ac_status); } &&
 
10941
         { ac_try='test -z "$ac_c_werror_flag"
 
10942
                         || test ! -s conftest.err'
 
10943
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10944
  (eval $ac_try) 2>&5
 
10945
  ac_status=$?
 
10946
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10947
  (exit $ac_status); }; } &&
 
10948
         { ac_try='test -s conftest.$ac_objext'
 
10949
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10950
  (eval $ac_try) 2>&5
 
10951
  ac_status=$?
 
10952
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10953
  (exit $ac_status); }; }; then
 
10954
  ac_header_compiler=yes
 
10955
else
 
10956
  echo "$as_me: failed program was:" >&5
 
10957
sed 's/^/| /' conftest.$ac_ext >&5
 
10958
 
 
10959
ac_header_compiler=no
 
10960
fi
 
10961
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10962
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
10963
echo "${ECHO_T}$ac_header_compiler" >&6
 
10964
 
 
10965
# Is the header present?
 
10966
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
10967
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
10968
cat >conftest.$ac_ext <<_ACEOF
 
10969
/* confdefs.h.  */
 
10970
_ACEOF
 
10971
cat confdefs.h >>conftest.$ac_ext
 
10972
cat >>conftest.$ac_ext <<_ACEOF
 
10973
/* end confdefs.h.  */
 
10974
#include <$ac_header>
 
10975
_ACEOF
 
10976
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
10977
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
10978
  ac_status=$?
 
10979
  grep -v '^ *+' conftest.er1 >conftest.err
 
10980
  rm -f conftest.er1
 
10981
  cat conftest.err >&5
 
10982
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10983
  (exit $ac_status); } >/dev/null; then
 
10984
  if test -s conftest.err; then
 
10985
    ac_cpp_err=$ac_c_preproc_warn_flag
 
10986
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
10987
  else
 
10988
    ac_cpp_err=
 
10989
  fi
 
10990
else
 
10991
  ac_cpp_err=yes
 
10992
fi
 
10993
if test -z "$ac_cpp_err"; then
 
10994
  ac_header_preproc=yes
 
10995
else
 
10996
  echo "$as_me: failed program was:" >&5
 
10997
sed 's/^/| /' conftest.$ac_ext >&5
 
10998
 
 
10999
  ac_header_preproc=no
 
11000
fi
 
11001
rm -f conftest.err conftest.$ac_ext
 
11002
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
11003
echo "${ECHO_T}$ac_header_preproc" >&6
 
11004
 
 
11005
# So?  What about this header?
 
11006
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
11007
  yes:no: )
 
11008
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
11009
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
11010
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
11011
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
11012
    ac_header_preproc=yes
 
11013
    ;;
 
11014
  no:yes:* )
 
11015
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
11016
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
11017
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
11018
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
11019
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
11020
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
11021
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
11022
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
11023
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
11024
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
11025
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
11026
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
11027
    (
 
11028
      cat <<\_ASBOX
 
11029
## ------------------------------ ##
 
11030
## Report this to the ntp lists.  ##
 
11031
## ------------------------------ ##
 
11032
_ASBOX
 
11033
    ) |
 
11034
      sed "s/^/$as_me: WARNING:     /" >&2
 
11035
    ;;
 
11036
esac
 
11037
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11038
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
11039
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11040
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11041
else
 
11042
  eval "$as_ac_Header=\$ac_header_preproc"
 
11043
fi
 
11044
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11045
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11046
 
 
11047
fi
 
11048
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
11049
  cat >>confdefs.h <<_ACEOF
 
11050
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
11051
_ACEOF
 
11052
 break
 
11053
fi
 
11054
 
 
11055
done
 
11056
 
 
11057
  if test `eval echo '${'$as_ac_Header'}'` != yes; then
 
11058
    { { echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
 
11059
echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
 
11060
   { (exit 1); exit 1; }; }
 
11061
  fi
 
11062
 
 
11063
  # ========================
 
11064
  # ...and int types headers
 
11065
  # ========================
 
11066
 
 
11067
 
 
11068
for ac_header in stdint.h inttypes.h
 
11069
do
 
11070
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
11071
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11072
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11073
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
11074
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11075
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11076
fi
 
11077
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11078
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11079
else
 
11080
  # Is the header compilable?
 
11081
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
11082
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
11083
cat >conftest.$ac_ext <<_ACEOF
 
11084
/* confdefs.h.  */
 
11085
_ACEOF
 
11086
cat confdefs.h >>conftest.$ac_ext
 
11087
cat >>conftest.$ac_ext <<_ACEOF
 
11088
/* end confdefs.h.  */
 
11089
$ac_includes_default
 
11090
#include <$ac_header>
 
11091
_ACEOF
 
11092
rm -f conftest.$ac_objext
 
11093
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11094
  (eval $ac_compile) 2>conftest.er1
 
11095
  ac_status=$?
 
11096
  grep -v '^ *+' conftest.er1 >conftest.err
 
11097
  rm -f conftest.er1
 
11098
  cat conftest.err >&5
 
11099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11100
  (exit $ac_status); } &&
 
11101
         { ac_try='test -z "$ac_c_werror_flag"
 
11102
                         || test ! -s conftest.err'
 
11103
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11104
  (eval $ac_try) 2>&5
 
11105
  ac_status=$?
 
11106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11107
  (exit $ac_status); }; } &&
 
11108
         { ac_try='test -s conftest.$ac_objext'
 
11109
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11110
  (eval $ac_try) 2>&5
 
11111
  ac_status=$?
 
11112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11113
  (exit $ac_status); }; }; then
 
11114
  ac_header_compiler=yes
 
11115
else
 
11116
  echo "$as_me: failed program was:" >&5
 
11117
sed 's/^/| /' conftest.$ac_ext >&5
 
11118
 
 
11119
ac_header_compiler=no
 
11120
fi
 
11121
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11122
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
11123
echo "${ECHO_T}$ac_header_compiler" >&6
 
11124
 
 
11125
# Is the header present?
 
11126
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
11127
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
11128
cat >conftest.$ac_ext <<_ACEOF
 
11129
/* confdefs.h.  */
 
11130
_ACEOF
 
11131
cat confdefs.h >>conftest.$ac_ext
 
11132
cat >>conftest.$ac_ext <<_ACEOF
 
11133
/* end confdefs.h.  */
 
11134
#include <$ac_header>
 
11135
_ACEOF
 
11136
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
11137
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
11138
  ac_status=$?
 
11139
  grep -v '^ *+' conftest.er1 >conftest.err
 
11140
  rm -f conftest.er1
 
11141
  cat conftest.err >&5
 
11142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11143
  (exit $ac_status); } >/dev/null; then
 
11144
  if test -s conftest.err; then
 
11145
    ac_cpp_err=$ac_c_preproc_warn_flag
 
11146
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
11147
  else
 
11148
    ac_cpp_err=
 
11149
  fi
 
11150
else
 
11151
  ac_cpp_err=yes
 
11152
fi
 
11153
if test -z "$ac_cpp_err"; then
 
11154
  ac_header_preproc=yes
 
11155
else
 
11156
  echo "$as_me: failed program was:" >&5
 
11157
sed 's/^/| /' conftest.$ac_ext >&5
 
11158
 
 
11159
  ac_header_preproc=no
 
11160
fi
 
11161
rm -f conftest.err conftest.$ac_ext
 
11162
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
11163
echo "${ECHO_T}$ac_header_preproc" >&6
 
11164
 
 
11165
# So?  What about this header?
 
11166
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
11167
  yes:no: )
 
11168
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
11169
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
11170
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
11171
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
11172
    ac_header_preproc=yes
 
11173
    ;;
 
11174
  no:yes:* )
 
11175
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
11176
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
11177
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
11178
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
11179
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
11180
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
11181
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
11182
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
11183
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
11184
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
11185
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
11186
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
11187
    (
 
11188
      cat <<\_ASBOX
 
11189
## ------------------------------ ##
 
11190
## Report this to the ntp lists.  ##
 
11191
## ------------------------------ ##
 
11192
_ASBOX
 
11193
    ) |
 
11194
      sed "s/^/$as_me: WARNING:     /" >&2
 
11195
    ;;
 
11196
esac
 
11197
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11198
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
11199
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11200
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11201
else
 
11202
  eval "$as_ac_Header=\$ac_header_preproc"
 
11203
fi
 
11204
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11205
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11206
 
 
11207
fi
 
11208
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
11209
  cat >>confdefs.h <<_ACEOF
 
11210
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
11211
_ACEOF
 
11212
 break
 
11213
fi
 
11214
 
 
11215
done
 
11216
 
 
11217
  echo "$as_me:$LINENO: checking for int8_t" >&5
 
11218
echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
 
11219
if test "${ac_cv_type_int8_t+set}" = set; then
 
11220
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11221
else
 
11222
  cat >conftest.$ac_ext <<_ACEOF
 
11223
/* confdefs.h.  */
 
11224
_ACEOF
 
11225
cat confdefs.h >>conftest.$ac_ext
 
11226
cat >>conftest.$ac_ext <<_ACEOF
 
11227
/* end confdefs.h.  */
 
11228
$ac_includes_default
 
11229
int
 
11230
main ()
 
11231
{
 
11232
if ((int8_t *) 0)
 
11233
  return 0;
 
11234
if (sizeof (int8_t))
 
11235
  return 0;
 
11236
  ;
 
11237
  return 0;
 
11238
}
 
11239
_ACEOF
 
11240
rm -f conftest.$ac_objext
 
11241
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11242
  (eval $ac_compile) 2>conftest.er1
 
11243
  ac_status=$?
 
11244
  grep -v '^ *+' conftest.er1 >conftest.err
 
11245
  rm -f conftest.er1
 
11246
  cat conftest.err >&5
 
11247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11248
  (exit $ac_status); } &&
 
11249
         { ac_try='test -z "$ac_c_werror_flag"
 
11250
                         || test ! -s conftest.err'
 
11251
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11252
  (eval $ac_try) 2>&5
 
11253
  ac_status=$?
 
11254
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11255
  (exit $ac_status); }; } &&
 
11256
         { ac_try='test -s conftest.$ac_objext'
 
11257
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11258
  (eval $ac_try) 2>&5
 
11259
  ac_status=$?
 
11260
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11261
  (exit $ac_status); }; }; then
 
11262
  ac_cv_type_int8_t=yes
 
11263
else
 
11264
  echo "$as_me: failed program was:" >&5
 
11265
sed 's/^/| /' conftest.$ac_ext >&5
 
11266
 
 
11267
ac_cv_type_int8_t=no
 
11268
fi
 
11269
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11270
fi
 
11271
echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
 
11272
echo "${ECHO_T}$ac_cv_type_int8_t" >&6
 
11273
if test $ac_cv_type_int8_t = yes; then
 
11274
 
 
11275
cat >>confdefs.h <<_ACEOF
 
11276
#define HAVE_INT8_T 1
 
11277
_ACEOF
 
11278
 
 
11279
 
 
11280
fi
 
11281
echo "$as_me:$LINENO: checking for uint8_t" >&5
 
11282
echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
 
11283
if test "${ac_cv_type_uint8_t+set}" = set; then
 
11284
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11285
else
 
11286
  cat >conftest.$ac_ext <<_ACEOF
 
11287
/* confdefs.h.  */
 
11288
_ACEOF
 
11289
cat confdefs.h >>conftest.$ac_ext
 
11290
cat >>conftest.$ac_ext <<_ACEOF
 
11291
/* end confdefs.h.  */
 
11292
$ac_includes_default
 
11293
int
 
11294
main ()
 
11295
{
 
11296
if ((uint8_t *) 0)
 
11297
  return 0;
 
11298
if (sizeof (uint8_t))
 
11299
  return 0;
 
11300
  ;
 
11301
  return 0;
 
11302
}
 
11303
_ACEOF
 
11304
rm -f conftest.$ac_objext
 
11305
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11306
  (eval $ac_compile) 2>conftest.er1
 
11307
  ac_status=$?
 
11308
  grep -v '^ *+' conftest.er1 >conftest.err
 
11309
  rm -f conftest.er1
 
11310
  cat conftest.err >&5
 
11311
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11312
  (exit $ac_status); } &&
 
11313
         { ac_try='test -z "$ac_c_werror_flag"
 
11314
                         || test ! -s conftest.err'
 
11315
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11316
  (eval $ac_try) 2>&5
 
11317
  ac_status=$?
 
11318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11319
  (exit $ac_status); }; } &&
 
11320
         { ac_try='test -s conftest.$ac_objext'
 
11321
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11322
  (eval $ac_try) 2>&5
 
11323
  ac_status=$?
 
11324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11325
  (exit $ac_status); }; }; then
 
11326
  ac_cv_type_uint8_t=yes
 
11327
else
 
11328
  echo "$as_me: failed program was:" >&5
 
11329
sed 's/^/| /' conftest.$ac_ext >&5
 
11330
 
 
11331
ac_cv_type_uint8_t=no
 
11332
fi
 
11333
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11334
fi
 
11335
echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
 
11336
echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
 
11337
if test $ac_cv_type_uint8_t = yes; then
 
11338
 
 
11339
cat >>confdefs.h <<_ACEOF
 
11340
#define HAVE_UINT8_T 1
 
11341
_ACEOF
 
11342
 
 
11343
 
 
11344
fi
 
11345
echo "$as_me:$LINENO: checking for int16_t" >&5
 
11346
echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
 
11347
if test "${ac_cv_type_int16_t+set}" = set; then
 
11348
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11349
else
 
11350
  cat >conftest.$ac_ext <<_ACEOF
 
11351
/* confdefs.h.  */
 
11352
_ACEOF
 
11353
cat confdefs.h >>conftest.$ac_ext
 
11354
cat >>conftest.$ac_ext <<_ACEOF
 
11355
/* end confdefs.h.  */
 
11356
$ac_includes_default
 
11357
int
 
11358
main ()
 
11359
{
 
11360
if ((int16_t *) 0)
 
11361
  return 0;
 
11362
if (sizeof (int16_t))
 
11363
  return 0;
 
11364
  ;
 
11365
  return 0;
 
11366
}
 
11367
_ACEOF
 
11368
rm -f conftest.$ac_objext
 
11369
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11370
  (eval $ac_compile) 2>conftest.er1
 
11371
  ac_status=$?
 
11372
  grep -v '^ *+' conftest.er1 >conftest.err
 
11373
  rm -f conftest.er1
 
11374
  cat conftest.err >&5
 
11375
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11376
  (exit $ac_status); } &&
 
11377
         { ac_try='test -z "$ac_c_werror_flag"
 
11378
                         || test ! -s conftest.err'
 
11379
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11380
  (eval $ac_try) 2>&5
 
11381
  ac_status=$?
 
11382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11383
  (exit $ac_status); }; } &&
 
11384
         { ac_try='test -s conftest.$ac_objext'
 
11385
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11386
  (eval $ac_try) 2>&5
 
11387
  ac_status=$?
 
11388
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11389
  (exit $ac_status); }; }; then
 
11390
  ac_cv_type_int16_t=yes
 
11391
else
 
11392
  echo "$as_me: failed program was:" >&5
 
11393
sed 's/^/| /' conftest.$ac_ext >&5
 
11394
 
 
11395
ac_cv_type_int16_t=no
 
11396
fi
 
11397
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11398
fi
 
11399
echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
 
11400
echo "${ECHO_T}$ac_cv_type_int16_t" >&6
 
11401
if test $ac_cv_type_int16_t = yes; then
 
11402
 
 
11403
cat >>confdefs.h <<_ACEOF
 
11404
#define HAVE_INT16_T 1
 
11405
_ACEOF
 
11406
 
 
11407
 
 
11408
fi
 
11409
echo "$as_me:$LINENO: checking for uint16_t" >&5
 
11410
echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
 
11411
if test "${ac_cv_type_uint16_t+set}" = set; then
 
11412
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11413
else
 
11414
  cat >conftest.$ac_ext <<_ACEOF
 
11415
/* confdefs.h.  */
 
11416
_ACEOF
 
11417
cat confdefs.h >>conftest.$ac_ext
 
11418
cat >>conftest.$ac_ext <<_ACEOF
 
11419
/* end confdefs.h.  */
 
11420
$ac_includes_default
 
11421
int
 
11422
main ()
 
11423
{
 
11424
if ((uint16_t *) 0)
 
11425
  return 0;
 
11426
if (sizeof (uint16_t))
 
11427
  return 0;
 
11428
  ;
 
11429
  return 0;
 
11430
}
 
11431
_ACEOF
 
11432
rm -f conftest.$ac_objext
 
11433
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11434
  (eval $ac_compile) 2>conftest.er1
 
11435
  ac_status=$?
 
11436
  grep -v '^ *+' conftest.er1 >conftest.err
 
11437
  rm -f conftest.er1
 
11438
  cat conftest.err >&5
 
11439
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11440
  (exit $ac_status); } &&
 
11441
         { ac_try='test -z "$ac_c_werror_flag"
 
11442
                         || test ! -s conftest.err'
 
11443
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11444
  (eval $ac_try) 2>&5
 
11445
  ac_status=$?
 
11446
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11447
  (exit $ac_status); }; } &&
 
11448
         { ac_try='test -s conftest.$ac_objext'
 
11449
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11450
  (eval $ac_try) 2>&5
 
11451
  ac_status=$?
 
11452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11453
  (exit $ac_status); }; }; then
 
11454
  ac_cv_type_uint16_t=yes
 
11455
else
 
11456
  echo "$as_me: failed program was:" >&5
 
11457
sed 's/^/| /' conftest.$ac_ext >&5
 
11458
 
 
11459
ac_cv_type_uint16_t=no
 
11460
fi
 
11461
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11462
fi
 
11463
echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
 
11464
echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
 
11465
if test $ac_cv_type_uint16_t = yes; then
 
11466
 
 
11467
cat >>confdefs.h <<_ACEOF
 
11468
#define HAVE_UINT16_T 1
 
11469
_ACEOF
 
11470
 
 
11471
 
 
11472
fi
 
11473
echo "$as_me:$LINENO: checking for int32_t" >&5
 
11474
echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
 
11475
if test "${ac_cv_type_int32_t+set}" = set; then
 
11476
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11477
else
 
11478
  cat >conftest.$ac_ext <<_ACEOF
 
11479
/* confdefs.h.  */
 
11480
_ACEOF
 
11481
cat confdefs.h >>conftest.$ac_ext
 
11482
cat >>conftest.$ac_ext <<_ACEOF
 
11483
/* end confdefs.h.  */
 
11484
$ac_includes_default
 
11485
int
 
11486
main ()
 
11487
{
 
11488
if ((int32_t *) 0)
 
11489
  return 0;
 
11490
if (sizeof (int32_t))
 
11491
  return 0;
 
11492
  ;
 
11493
  return 0;
 
11494
}
 
11495
_ACEOF
 
11496
rm -f conftest.$ac_objext
 
11497
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11498
  (eval $ac_compile) 2>conftest.er1
 
11499
  ac_status=$?
 
11500
  grep -v '^ *+' conftest.er1 >conftest.err
 
11501
  rm -f conftest.er1
 
11502
  cat conftest.err >&5
 
11503
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11504
  (exit $ac_status); } &&
 
11505
         { ac_try='test -z "$ac_c_werror_flag"
 
11506
                         || test ! -s conftest.err'
 
11507
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11508
  (eval $ac_try) 2>&5
 
11509
  ac_status=$?
 
11510
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11511
  (exit $ac_status); }; } &&
 
11512
         { ac_try='test -s conftest.$ac_objext'
 
11513
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11514
  (eval $ac_try) 2>&5
 
11515
  ac_status=$?
 
11516
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11517
  (exit $ac_status); }; }; then
 
11518
  ac_cv_type_int32_t=yes
 
11519
else
 
11520
  echo "$as_me: failed program was:" >&5
 
11521
sed 's/^/| /' conftest.$ac_ext >&5
 
11522
 
 
11523
ac_cv_type_int32_t=no
 
11524
fi
 
11525
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11526
fi
 
11527
echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
 
11528
echo "${ECHO_T}$ac_cv_type_int32_t" >&6
 
11529
if test $ac_cv_type_int32_t = yes; then
 
11530
 
 
11531
cat >>confdefs.h <<_ACEOF
 
11532
#define HAVE_INT32_T 1
 
11533
_ACEOF
 
11534
 
 
11535
 
 
11536
fi
 
11537
echo "$as_me:$LINENO: checking for uint32_t" >&5
 
11538
echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
 
11539
if test "${ac_cv_type_uint32_t+set}" = set; then
 
11540
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11541
else
 
11542
  cat >conftest.$ac_ext <<_ACEOF
 
11543
/* confdefs.h.  */
 
11544
_ACEOF
 
11545
cat confdefs.h >>conftest.$ac_ext
 
11546
cat >>conftest.$ac_ext <<_ACEOF
 
11547
/* end confdefs.h.  */
 
11548
$ac_includes_default
 
11549
int
 
11550
main ()
 
11551
{
 
11552
if ((uint32_t *) 0)
 
11553
  return 0;
 
11554
if (sizeof (uint32_t))
 
11555
  return 0;
 
11556
  ;
 
11557
  return 0;
 
11558
}
 
11559
_ACEOF
 
11560
rm -f conftest.$ac_objext
 
11561
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11562
  (eval $ac_compile) 2>conftest.er1
 
11563
  ac_status=$?
 
11564
  grep -v '^ *+' conftest.er1 >conftest.err
 
11565
  rm -f conftest.er1
 
11566
  cat conftest.err >&5
 
11567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11568
  (exit $ac_status); } &&
 
11569
         { ac_try='test -z "$ac_c_werror_flag"
 
11570
                         || test ! -s conftest.err'
 
11571
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11572
  (eval $ac_try) 2>&5
 
11573
  ac_status=$?
 
11574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11575
  (exit $ac_status); }; } &&
 
11576
         { ac_try='test -s conftest.$ac_objext'
 
11577
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11578
  (eval $ac_try) 2>&5
 
11579
  ac_status=$?
 
11580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11581
  (exit $ac_status); }; }; then
 
11582
  ac_cv_type_uint32_t=yes
 
11583
else
 
11584
  echo "$as_me: failed program was:" >&5
 
11585
sed 's/^/| /' conftest.$ac_ext >&5
 
11586
 
 
11587
ac_cv_type_uint32_t=no
 
11588
fi
 
11589
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11590
fi
 
11591
echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
 
11592
echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
 
11593
if test $ac_cv_type_uint32_t = yes; then
 
11594
 
 
11595
cat >>confdefs.h <<_ACEOF
 
11596
#define HAVE_UINT32_T 1
 
11597
_ACEOF
 
11598
 
 
11599
 
 
11600
fi
 
11601
echo "$as_me:$LINENO: checking for intptr_t" >&5
 
11602
echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
 
11603
if test "${ac_cv_type_intptr_t+set}" = set; then
 
11604
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11605
else
 
11606
  cat >conftest.$ac_ext <<_ACEOF
 
11607
/* confdefs.h.  */
 
11608
_ACEOF
 
11609
cat confdefs.h >>conftest.$ac_ext
 
11610
cat >>conftest.$ac_ext <<_ACEOF
 
11611
/* end confdefs.h.  */
 
11612
$ac_includes_default
 
11613
int
 
11614
main ()
 
11615
{
 
11616
if ((intptr_t *) 0)
 
11617
  return 0;
 
11618
if (sizeof (intptr_t))
 
11619
  return 0;
 
11620
  ;
 
11621
  return 0;
 
11622
}
 
11623
_ACEOF
 
11624
rm -f conftest.$ac_objext
 
11625
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11626
  (eval $ac_compile) 2>conftest.er1
 
11627
  ac_status=$?
 
11628
  grep -v '^ *+' conftest.er1 >conftest.err
 
11629
  rm -f conftest.er1
 
11630
  cat conftest.err >&5
 
11631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11632
  (exit $ac_status); } &&
 
11633
         { ac_try='test -z "$ac_c_werror_flag"
 
11634
                         || test ! -s conftest.err'
 
11635
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11636
  (eval $ac_try) 2>&5
 
11637
  ac_status=$?
 
11638
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11639
  (exit $ac_status); }; } &&
 
11640
         { ac_try='test -s conftest.$ac_objext'
 
11641
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11642
  (eval $ac_try) 2>&5
 
11643
  ac_status=$?
 
11644
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11645
  (exit $ac_status); }; }; then
 
11646
  ac_cv_type_intptr_t=yes
 
11647
else
 
11648
  echo "$as_me: failed program was:" >&5
 
11649
sed 's/^/| /' conftest.$ac_ext >&5
 
11650
 
 
11651
ac_cv_type_intptr_t=no
 
11652
fi
 
11653
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11654
fi
 
11655
echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
 
11656
echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
 
11657
if test $ac_cv_type_intptr_t = yes; then
 
11658
 
 
11659
cat >>confdefs.h <<_ACEOF
 
11660
#define HAVE_INTPTR_T 1
 
11661
_ACEOF
 
11662
 
 
11663
 
 
11664
fi
 
11665
echo "$as_me:$LINENO: checking for uint_t" >&5
 
11666
echo $ECHO_N "checking for uint_t... $ECHO_C" >&6
 
11667
if test "${ac_cv_type_uint_t+set}" = set; then
 
11668
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11669
else
 
11670
  cat >conftest.$ac_ext <<_ACEOF
 
11671
/* confdefs.h.  */
 
11672
_ACEOF
 
11673
cat confdefs.h >>conftest.$ac_ext
 
11674
cat >>conftest.$ac_ext <<_ACEOF
 
11675
/* end confdefs.h.  */
 
11676
$ac_includes_default
 
11677
int
 
11678
main ()
 
11679
{
 
11680
if ((uint_t *) 0)
 
11681
  return 0;
 
11682
if (sizeof (uint_t))
 
11683
  return 0;
 
11684
  ;
 
11685
  return 0;
 
11686
}
 
11687
_ACEOF
 
11688
rm -f conftest.$ac_objext
 
11689
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11690
  (eval $ac_compile) 2>conftest.er1
 
11691
  ac_status=$?
 
11692
  grep -v '^ *+' conftest.er1 >conftest.err
 
11693
  rm -f conftest.er1
 
11694
  cat conftest.err >&5
 
11695
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11696
  (exit $ac_status); } &&
 
11697
         { ac_try='test -z "$ac_c_werror_flag"
 
11698
                         || test ! -s conftest.err'
 
11699
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11700
  (eval $ac_try) 2>&5
 
11701
  ac_status=$?
 
11702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11703
  (exit $ac_status); }; } &&
 
11704
         { ac_try='test -s conftest.$ac_objext'
 
11705
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11706
  (eval $ac_try) 2>&5
 
11707
  ac_status=$?
 
11708
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11709
  (exit $ac_status); }; }; then
 
11710
  ac_cv_type_uint_t=yes
 
11711
else
 
11712
  echo "$as_me: failed program was:" >&5
 
11713
sed 's/^/| /' conftest.$ac_ext >&5
 
11714
 
 
11715
ac_cv_type_uint_t=no
 
11716
fi
 
11717
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11718
fi
 
11719
echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
 
11720
echo "${ECHO_T}$ac_cv_type_uint_t" >&6
 
11721
if test $ac_cv_type_uint_t = yes; then
 
11722
 
 
11723
cat >>confdefs.h <<_ACEOF
 
11724
#define HAVE_UINT_T 1
 
11725
_ACEOF
 
11726
 
 
11727
 
 
11728
fi
 
11729
 
 
11730
 
 
11731
  # ====================
 
11732
  # uintptr type & sizes
 
11733
  # ====================
 
11734
  echo "$as_me:$LINENO: checking for uintptr_t" >&5
 
11735
echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
 
11736
if test "${ac_cv_type_uintptr_t+set}" = set; then
 
11737
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11738
else
 
11739
  cat >conftest.$ac_ext <<_ACEOF
 
11740
/* confdefs.h.  */
 
11741
_ACEOF
 
11742
cat confdefs.h >>conftest.$ac_ext
 
11743
cat >>conftest.$ac_ext <<_ACEOF
 
11744
/* end confdefs.h.  */
 
11745
$ac_includes_default
 
11746
int
 
11747
main ()
 
11748
{
 
11749
if ((uintptr_t *) 0)
 
11750
  return 0;
 
11751
if (sizeof (uintptr_t))
 
11752
  return 0;
 
11753
  ;
 
11754
  return 0;
 
11755
}
 
11756
_ACEOF
 
11757
rm -f conftest.$ac_objext
 
11758
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11759
  (eval $ac_compile) 2>conftest.er1
 
11760
  ac_status=$?
 
11761
  grep -v '^ *+' conftest.er1 >conftest.err
 
11762
  rm -f conftest.er1
 
11763
  cat conftest.err >&5
 
11764
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11765
  (exit $ac_status); } &&
 
11766
         { ac_try='test -z "$ac_c_werror_flag"
 
11767
                         || test ! -s conftest.err'
 
11768
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11769
  (eval $ac_try) 2>&5
 
11770
  ac_status=$?
 
11771
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11772
  (exit $ac_status); }; } &&
 
11773
         { ac_try='test -s conftest.$ac_objext'
 
11774
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11775
  (eval $ac_try) 2>&5
 
11776
  ac_status=$?
 
11777
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11778
  (exit $ac_status); }; }; then
 
11779
  ac_cv_type_uintptr_t=yes
 
11780
else
 
11781
  echo "$as_me: failed program was:" >&5
 
11782
sed 's/^/| /' conftest.$ac_ext >&5
 
11783
 
 
11784
ac_cv_type_uintptr_t=no
 
11785
fi
 
11786
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11787
fi
 
11788
echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
 
11789
echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
 
11790
if test $ac_cv_type_uintptr_t = yes; then
 
11791
 
 
11792
cat >>confdefs.h <<_ACEOF
 
11793
#define HAVE_UINTPTR_T 1
 
11794
_ACEOF
 
11795
 
 
11796
 
 
11797
else
 
11798
 
 
11799
cat >>confdefs.h <<\_ACEOF
 
11800
#define uintptr_t unsigned long
 
11801
_ACEOF
 
11802
 
 
11803
fi
 
11804
 
 
11805
  echo "$as_me:$LINENO: checking for char*" >&5
 
11806
echo $ECHO_N "checking for char*... $ECHO_C" >&6
 
11807
if test "${ac_cv_type_charp+set}" = set; then
 
11808
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11809
else
 
11810
  cat >conftest.$ac_ext <<_ACEOF
 
11811
/* confdefs.h.  */
 
11812
_ACEOF
 
11813
cat confdefs.h >>conftest.$ac_ext
 
11814
cat >>conftest.$ac_ext <<_ACEOF
 
11815
/* end confdefs.h.  */
 
11816
$ac_includes_default
 
11817
int
 
11818
main ()
 
11819
{
 
11820
if ((char* *) 0)
 
11821
  return 0;
 
11822
if (sizeof (char*))
 
11823
  return 0;
 
11824
  ;
 
11825
  return 0;
 
11826
}
 
11827
_ACEOF
 
11828
rm -f conftest.$ac_objext
 
11829
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11830
  (eval $ac_compile) 2>conftest.er1
 
11831
  ac_status=$?
 
11832
  grep -v '^ *+' conftest.er1 >conftest.err
 
11833
  rm -f conftest.er1
 
11834
  cat conftest.err >&5
 
11835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11836
  (exit $ac_status); } &&
 
11837
         { ac_try='test -z "$ac_c_werror_flag"
 
11838
                         || test ! -s conftest.err'
 
11839
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11840
  (eval $ac_try) 2>&5
 
11841
  ac_status=$?
 
11842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11843
  (exit $ac_status); }; } &&
 
11844
         { ac_try='test -s conftest.$ac_objext'
 
11845
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11846
  (eval $ac_try) 2>&5
 
11847
  ac_status=$?
 
11848
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11849
  (exit $ac_status); }; }; then
 
11850
  ac_cv_type_charp=yes
 
11851
else
 
11852
  echo "$as_me: failed program was:" >&5
 
11853
sed 's/^/| /' conftest.$ac_ext >&5
 
11854
 
 
11855
ac_cv_type_charp=no
 
11856
fi
 
11857
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11858
fi
 
11859
echo "$as_me:$LINENO: result: $ac_cv_type_charp" >&5
 
11860
echo "${ECHO_T}$ac_cv_type_charp" >&6
 
11861
 
 
11862
echo "$as_me:$LINENO: checking size of char*" >&5
 
11863
echo $ECHO_N "checking size of char*... $ECHO_C" >&6
 
11864
if test "${ac_cv_sizeof_charp+set}" = set; then
 
11865
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11866
else
 
11867
  if test "$ac_cv_type_charp" = yes; then
 
11868
  # The cast to unsigned long works around a bug in the HP C Compiler
 
11869
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
11870
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
11871
  # This bug is HP SR number 8606223364.
 
11872
  if test "$cross_compiling" = yes; then
 
11873
  # Depending upon the size, compute the lo and hi bounds.
 
11874
cat >conftest.$ac_ext <<_ACEOF
 
11875
/* confdefs.h.  */
 
11876
_ACEOF
 
11877
cat confdefs.h >>conftest.$ac_ext
 
11878
cat >>conftest.$ac_ext <<_ACEOF
 
11879
/* end confdefs.h.  */
 
11880
$ac_includes_default
 
11881
int
 
11882
main ()
 
11883
{
 
11884
static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= 0)];
 
11885
test_array [0] = 0
 
11886
 
 
11887
  ;
 
11888
  return 0;
 
11889
}
 
11890
_ACEOF
 
11891
rm -f conftest.$ac_objext
 
11892
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11893
  (eval $ac_compile) 2>conftest.er1
 
11894
  ac_status=$?
 
11895
  grep -v '^ *+' conftest.er1 >conftest.err
 
11896
  rm -f conftest.er1
 
11897
  cat conftest.err >&5
 
11898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11899
  (exit $ac_status); } &&
 
11900
         { ac_try='test -z "$ac_c_werror_flag"
 
11901
                         || test ! -s conftest.err'
 
11902
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11903
  (eval $ac_try) 2>&5
 
11904
  ac_status=$?
 
11905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11906
  (exit $ac_status); }; } &&
 
11907
         { ac_try='test -s conftest.$ac_objext'
 
11908
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11909
  (eval $ac_try) 2>&5
 
11910
  ac_status=$?
 
11911
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11912
  (exit $ac_status); }; }; then
 
11913
  ac_lo=0 ac_mid=0
 
11914
  while :; do
 
11915
    cat >conftest.$ac_ext <<_ACEOF
 
11916
/* confdefs.h.  */
 
11917
_ACEOF
 
11918
cat confdefs.h >>conftest.$ac_ext
 
11919
cat >>conftest.$ac_ext <<_ACEOF
 
11920
/* end confdefs.h.  */
 
11921
$ac_includes_default
 
11922
int
 
11923
main ()
 
11924
{
 
11925
static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)];
 
11926
test_array [0] = 0
 
11927
 
 
11928
  ;
 
11929
  return 0;
 
11930
}
 
11931
_ACEOF
 
11932
rm -f conftest.$ac_objext
 
11933
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11934
  (eval $ac_compile) 2>conftest.er1
 
11935
  ac_status=$?
 
11936
  grep -v '^ *+' conftest.er1 >conftest.err
 
11937
  rm -f conftest.er1
 
11938
  cat conftest.err >&5
 
11939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11940
  (exit $ac_status); } &&
 
11941
         { ac_try='test -z "$ac_c_werror_flag"
 
11942
                         || test ! -s conftest.err'
 
11943
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11944
  (eval $ac_try) 2>&5
 
11945
  ac_status=$?
 
11946
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11947
  (exit $ac_status); }; } &&
 
11948
         { ac_try='test -s conftest.$ac_objext'
 
11949
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11950
  (eval $ac_try) 2>&5
 
11951
  ac_status=$?
 
11952
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11953
  (exit $ac_status); }; }; then
 
11954
  ac_hi=$ac_mid; break
 
11955
else
 
11956
  echo "$as_me: failed program was:" >&5
 
11957
sed 's/^/| /' conftest.$ac_ext >&5
 
11958
 
 
11959
ac_lo=`expr $ac_mid + 1`
 
11960
                    if test $ac_lo -le $ac_mid; then
 
11961
                      ac_lo= ac_hi=
 
11962
                      break
 
11963
                    fi
 
11964
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
11965
fi
 
11966
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11967
  done
 
11968
else
 
11969
  echo "$as_me: failed program was:" >&5
 
11970
sed 's/^/| /' conftest.$ac_ext >&5
 
11971
 
 
11972
cat >conftest.$ac_ext <<_ACEOF
 
11973
/* confdefs.h.  */
 
11974
_ACEOF
 
11975
cat confdefs.h >>conftest.$ac_ext
 
11976
cat >>conftest.$ac_ext <<_ACEOF
 
11977
/* end confdefs.h.  */
 
11978
$ac_includes_default
 
11979
int
 
11980
main ()
 
11981
{
 
11982
static int test_array [1 - 2 * !(((long) (sizeof (char*))) < 0)];
 
11983
test_array [0] = 0
 
11984
 
 
11985
  ;
 
11986
  return 0;
 
11987
}
 
11988
_ACEOF
 
11989
rm -f conftest.$ac_objext
 
11990
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11991
  (eval $ac_compile) 2>conftest.er1
 
11992
  ac_status=$?
 
11993
  grep -v '^ *+' conftest.er1 >conftest.err
 
11994
  rm -f conftest.er1
 
11995
  cat conftest.err >&5
 
11996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11997
  (exit $ac_status); } &&
 
11998
         { ac_try='test -z "$ac_c_werror_flag"
 
11999
                         || test ! -s conftest.err'
 
12000
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12001
  (eval $ac_try) 2>&5
 
12002
  ac_status=$?
 
12003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12004
  (exit $ac_status); }; } &&
 
12005
         { ac_try='test -s conftest.$ac_objext'
 
12006
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12007
  (eval $ac_try) 2>&5
 
12008
  ac_status=$?
 
12009
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12010
  (exit $ac_status); }; }; then
 
12011
  ac_hi=-1 ac_mid=-1
 
12012
  while :; do
 
12013
    cat >conftest.$ac_ext <<_ACEOF
 
12014
/* confdefs.h.  */
 
12015
_ACEOF
 
12016
cat confdefs.h >>conftest.$ac_ext
 
12017
cat >>conftest.$ac_ext <<_ACEOF
 
12018
/* end confdefs.h.  */
 
12019
$ac_includes_default
 
12020
int
 
12021
main ()
 
12022
{
 
12023
static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= $ac_mid)];
 
12024
test_array [0] = 0
 
12025
 
 
12026
  ;
 
12027
  return 0;
 
12028
}
 
12029
_ACEOF
 
12030
rm -f conftest.$ac_objext
 
12031
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12032
  (eval $ac_compile) 2>conftest.er1
 
12033
  ac_status=$?
 
12034
  grep -v '^ *+' conftest.er1 >conftest.err
 
12035
  rm -f conftest.er1
 
12036
  cat conftest.err >&5
 
12037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12038
  (exit $ac_status); } &&
 
12039
         { ac_try='test -z "$ac_c_werror_flag"
 
12040
                         || test ! -s conftest.err'
 
12041
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12042
  (eval $ac_try) 2>&5
 
12043
  ac_status=$?
 
12044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12045
  (exit $ac_status); }; } &&
 
12046
         { ac_try='test -s conftest.$ac_objext'
 
12047
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12048
  (eval $ac_try) 2>&5
 
12049
  ac_status=$?
 
12050
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12051
  (exit $ac_status); }; }; then
 
12052
  ac_lo=$ac_mid; break
 
12053
else
 
12054
  echo "$as_me: failed program was:" >&5
 
12055
sed 's/^/| /' conftest.$ac_ext >&5
 
12056
 
 
12057
ac_hi=`expr '(' $ac_mid ')' - 1`
 
12058
                       if test $ac_mid -le $ac_hi; then
 
12059
                         ac_lo= ac_hi=
 
12060
                         break
 
12061
                       fi
 
12062
                       ac_mid=`expr 2 '*' $ac_mid`
 
12063
fi
 
12064
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12065
  done
 
12066
else
 
12067
  echo "$as_me: failed program was:" >&5
 
12068
sed 's/^/| /' conftest.$ac_ext >&5
 
12069
 
 
12070
ac_lo= ac_hi=
 
12071
fi
 
12072
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12073
fi
 
12074
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12075
# Binary search between lo and hi bounds.
 
12076
while test "x$ac_lo" != "x$ac_hi"; do
 
12077
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
12078
  cat >conftest.$ac_ext <<_ACEOF
 
12079
/* confdefs.h.  */
 
12080
_ACEOF
 
12081
cat confdefs.h >>conftest.$ac_ext
 
12082
cat >>conftest.$ac_ext <<_ACEOF
 
12083
/* end confdefs.h.  */
 
12084
$ac_includes_default
 
12085
int
 
12086
main ()
 
12087
{
 
12088
static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)];
 
12089
test_array [0] = 0
 
12090
 
 
12091
  ;
 
12092
  return 0;
 
12093
}
 
12094
_ACEOF
 
12095
rm -f conftest.$ac_objext
 
12096
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12097
  (eval $ac_compile) 2>conftest.er1
 
12098
  ac_status=$?
 
12099
  grep -v '^ *+' conftest.er1 >conftest.err
 
12100
  rm -f conftest.er1
 
12101
  cat conftest.err >&5
 
12102
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12103
  (exit $ac_status); } &&
 
12104
         { ac_try='test -z "$ac_c_werror_flag"
 
12105
                         || test ! -s conftest.err'
 
12106
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12107
  (eval $ac_try) 2>&5
 
12108
  ac_status=$?
 
12109
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12110
  (exit $ac_status); }; } &&
 
12111
         { ac_try='test -s conftest.$ac_objext'
 
12112
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12113
  (eval $ac_try) 2>&5
 
12114
  ac_status=$?
 
12115
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12116
  (exit $ac_status); }; }; then
 
12117
  ac_hi=$ac_mid
 
12118
else
 
12119
  echo "$as_me: failed program was:" >&5
 
12120
sed 's/^/| /' conftest.$ac_ext >&5
 
12121
 
 
12122
ac_lo=`expr '(' $ac_mid ')' + 1`
 
12123
fi
 
12124
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12125
done
 
12126
case $ac_lo in
 
12127
?*) ac_cv_sizeof_charp=$ac_lo;;
 
12128
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77
 
12129
See \`config.log' for more details." >&5
 
12130
echo "$as_me: error: cannot compute sizeof (char*), 77
 
12131
See \`config.log' for more details." >&2;}
 
12132
   { (exit 1); exit 1; }; } ;;
 
12133
esac
 
12134
else
 
12135
  if test "$cross_compiling" = yes; then
 
12136
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
12137
See \`config.log' for more details." >&5
 
12138
echo "$as_me: error: cannot run test program while cross compiling
 
12139
See \`config.log' for more details." >&2;}
 
12140
   { (exit 1); exit 1; }; }
 
12141
else
 
12142
  cat >conftest.$ac_ext <<_ACEOF
 
12143
/* confdefs.h.  */
 
12144
_ACEOF
 
12145
cat confdefs.h >>conftest.$ac_ext
 
12146
cat >>conftest.$ac_ext <<_ACEOF
 
12147
/* end confdefs.h.  */
 
12148
$ac_includes_default
 
12149
long longval () { return (long) (sizeof (char*)); }
 
12150
unsigned long ulongval () { return (long) (sizeof (char*)); }
 
12151
#include <stdio.h>
 
12152
#include <stdlib.h>
 
12153
int
 
12154
main ()
 
12155
{
 
12156
 
 
12157
  FILE *f = fopen ("conftest.val", "w");
 
12158
  if (! f)
 
12159
    exit (1);
 
12160
  if (((long) (sizeof (char*))) < 0)
 
12161
    {
 
12162
      long i = longval ();
 
12163
      if (i != ((long) (sizeof (char*))))
 
12164
        exit (1);
 
12165
      fprintf (f, "%ld\n", i);
 
12166
    }
 
12167
  else
 
12168
    {
 
12169
      unsigned long i = ulongval ();
 
12170
      if (i != ((long) (sizeof (char*))))
 
12171
        exit (1);
 
12172
      fprintf (f, "%lu\n", i);
 
12173
    }
 
12174
  exit (ferror (f) || fclose (f) != 0);
 
12175
 
 
12176
  ;
 
12177
  return 0;
 
12178
}
 
12179
_ACEOF
 
12180
rm -f conftest$ac_exeext
 
12181
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12182
  (eval $ac_link) 2>&5
 
12183
  ac_status=$?
 
12184
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12185
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
12186
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12187
  (eval $ac_try) 2>&5
 
12188
  ac_status=$?
 
12189
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12190
  (exit $ac_status); }; }; then
 
12191
  ac_cv_sizeof_charp=`cat conftest.val`
 
12192
else
 
12193
  echo "$as_me: program exited with status $ac_status" >&5
 
12194
echo "$as_me: failed program was:" >&5
 
12195
sed 's/^/| /' conftest.$ac_ext >&5
 
12196
 
 
12197
( exit $ac_status )
 
12198
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77
 
12199
See \`config.log' for more details." >&5
 
12200
echo "$as_me: error: cannot compute sizeof (char*), 77
 
12201
See \`config.log' for more details." >&2;}
 
12202
   { (exit 1); exit 1; }; }
 
12203
fi
 
12204
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
12205
fi
 
12206
fi
 
12207
rm -f conftest.val
 
12208
else
 
12209
  ac_cv_sizeof_charp=0
 
12210
fi
 
12211
fi
 
12212
echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
 
12213
echo "${ECHO_T}$ac_cv_sizeof_charp" >&6
 
12214
cat >>confdefs.h <<_ACEOF
 
12215
#define SIZEOF_CHARP $ac_cv_sizeof_charp
 
12216
_ACEOF
 
12217
 
 
12218
 
 
12219
  echo "$as_me:$LINENO: checking for int" >&5
 
12220
echo $ECHO_N "checking for int... $ECHO_C" >&6
 
12221
if test "${ac_cv_type_int+set}" = set; then
 
12222
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12223
else
 
12224
  cat >conftest.$ac_ext <<_ACEOF
 
12225
/* confdefs.h.  */
 
12226
_ACEOF
 
12227
cat confdefs.h >>conftest.$ac_ext
 
12228
cat >>conftest.$ac_ext <<_ACEOF
 
12229
/* end confdefs.h.  */
 
12230
$ac_includes_default
 
12231
int
 
12232
main ()
 
12233
{
 
12234
if ((int *) 0)
 
12235
  return 0;
 
12236
if (sizeof (int))
 
12237
  return 0;
 
12238
  ;
 
12239
  return 0;
 
12240
}
 
12241
_ACEOF
 
12242
rm -f conftest.$ac_objext
 
12243
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12244
  (eval $ac_compile) 2>conftest.er1
 
12245
  ac_status=$?
 
12246
  grep -v '^ *+' conftest.er1 >conftest.err
 
12247
  rm -f conftest.er1
 
12248
  cat conftest.err >&5
 
12249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12250
  (exit $ac_status); } &&
 
12251
         { ac_try='test -z "$ac_c_werror_flag"
 
12252
                         || test ! -s conftest.err'
 
12253
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12254
  (eval $ac_try) 2>&5
 
12255
  ac_status=$?
 
12256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12257
  (exit $ac_status); }; } &&
 
12258
         { ac_try='test -s conftest.$ac_objext'
 
12259
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12260
  (eval $ac_try) 2>&5
 
12261
  ac_status=$?
 
12262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12263
  (exit $ac_status); }; }; then
 
12264
  ac_cv_type_int=yes
 
12265
else
 
12266
  echo "$as_me: failed program was:" >&5
 
12267
sed 's/^/| /' conftest.$ac_ext >&5
 
12268
 
 
12269
ac_cv_type_int=no
 
12270
fi
 
12271
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12272
fi
 
12273
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
 
12274
echo "${ECHO_T}$ac_cv_type_int" >&6
 
12275
 
 
12276
echo "$as_me:$LINENO: checking size of int" >&5
 
12277
echo $ECHO_N "checking size of int... $ECHO_C" >&6
 
12278
if test "${ac_cv_sizeof_int+set}" = set; then
 
12279
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12280
else
 
12281
  if test "$ac_cv_type_int" = yes; then
 
12282
  # The cast to unsigned long works around a bug in the HP C Compiler
 
12283
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
12284
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
12285
  # This bug is HP SR number 8606223364.
 
12286
  if test "$cross_compiling" = yes; then
 
12287
  # Depending upon the size, compute the lo and hi bounds.
 
12288
cat >conftest.$ac_ext <<_ACEOF
 
12289
/* confdefs.h.  */
 
12290
_ACEOF
 
12291
cat confdefs.h >>conftest.$ac_ext
 
12292
cat >>conftest.$ac_ext <<_ACEOF
 
12293
/* end confdefs.h.  */
 
12294
$ac_includes_default
 
12295
int
 
12296
main ()
 
12297
{
 
12298
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
 
12299
test_array [0] = 0
 
12300
 
 
12301
  ;
 
12302
  return 0;
 
12303
}
 
12304
_ACEOF
 
12305
rm -f conftest.$ac_objext
 
12306
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12307
  (eval $ac_compile) 2>conftest.er1
 
12308
  ac_status=$?
 
12309
  grep -v '^ *+' conftest.er1 >conftest.err
 
12310
  rm -f conftest.er1
 
12311
  cat conftest.err >&5
 
12312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12313
  (exit $ac_status); } &&
 
12314
         { ac_try='test -z "$ac_c_werror_flag"
 
12315
                         || test ! -s conftest.err'
 
12316
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12317
  (eval $ac_try) 2>&5
 
12318
  ac_status=$?
 
12319
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12320
  (exit $ac_status); }; } &&
 
12321
         { ac_try='test -s conftest.$ac_objext'
 
12322
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12323
  (eval $ac_try) 2>&5
 
12324
  ac_status=$?
 
12325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12326
  (exit $ac_status); }; }; then
 
12327
  ac_lo=0 ac_mid=0
 
12328
  while :; do
 
12329
    cat >conftest.$ac_ext <<_ACEOF
 
12330
/* confdefs.h.  */
 
12331
_ACEOF
 
12332
cat confdefs.h >>conftest.$ac_ext
 
12333
cat >>conftest.$ac_ext <<_ACEOF
 
12334
/* end confdefs.h.  */
 
12335
$ac_includes_default
 
12336
int
 
12337
main ()
 
12338
{
 
12339
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
 
12340
test_array [0] = 0
 
12341
 
 
12342
  ;
 
12343
  return 0;
 
12344
}
 
12345
_ACEOF
 
12346
rm -f conftest.$ac_objext
 
12347
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12348
  (eval $ac_compile) 2>conftest.er1
 
12349
  ac_status=$?
 
12350
  grep -v '^ *+' conftest.er1 >conftest.err
 
12351
  rm -f conftest.er1
 
12352
  cat conftest.err >&5
 
12353
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12354
  (exit $ac_status); } &&
 
12355
         { ac_try='test -z "$ac_c_werror_flag"
 
12356
                         || test ! -s conftest.err'
 
12357
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12358
  (eval $ac_try) 2>&5
 
12359
  ac_status=$?
 
12360
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12361
  (exit $ac_status); }; } &&
 
12362
         { ac_try='test -s conftest.$ac_objext'
 
12363
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12364
  (eval $ac_try) 2>&5
 
12365
  ac_status=$?
 
12366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12367
  (exit $ac_status); }; }; then
 
12368
  ac_hi=$ac_mid; break
 
12369
else
 
12370
  echo "$as_me: failed program was:" >&5
 
12371
sed 's/^/| /' conftest.$ac_ext >&5
 
12372
 
 
12373
ac_lo=`expr $ac_mid + 1`
 
12374
                    if test $ac_lo -le $ac_mid; then
 
12375
                      ac_lo= ac_hi=
 
12376
                      break
 
12377
                    fi
 
12378
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
12379
fi
 
12380
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12381
  done
 
12382
else
 
12383
  echo "$as_me: failed program was:" >&5
 
12384
sed 's/^/| /' conftest.$ac_ext >&5
 
12385
 
 
12386
cat >conftest.$ac_ext <<_ACEOF
 
12387
/* confdefs.h.  */
 
12388
_ACEOF
 
12389
cat confdefs.h >>conftest.$ac_ext
 
12390
cat >>conftest.$ac_ext <<_ACEOF
 
12391
/* end confdefs.h.  */
 
12392
$ac_includes_default
 
12393
int
 
12394
main ()
 
12395
{
 
12396
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
 
12397
test_array [0] = 0
 
12398
 
 
12399
  ;
 
12400
  return 0;
 
12401
}
 
12402
_ACEOF
 
12403
rm -f conftest.$ac_objext
 
12404
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12405
  (eval $ac_compile) 2>conftest.er1
 
12406
  ac_status=$?
 
12407
  grep -v '^ *+' conftest.er1 >conftest.err
 
12408
  rm -f conftest.er1
 
12409
  cat conftest.err >&5
 
12410
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12411
  (exit $ac_status); } &&
 
12412
         { ac_try='test -z "$ac_c_werror_flag"
 
12413
                         || test ! -s conftest.err'
 
12414
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12415
  (eval $ac_try) 2>&5
 
12416
  ac_status=$?
 
12417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12418
  (exit $ac_status); }; } &&
 
12419
         { ac_try='test -s conftest.$ac_objext'
 
12420
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12421
  (eval $ac_try) 2>&5
 
12422
  ac_status=$?
 
12423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12424
  (exit $ac_status); }; }; then
 
12425
  ac_hi=-1 ac_mid=-1
 
12426
  while :; do
 
12427
    cat >conftest.$ac_ext <<_ACEOF
 
12428
/* confdefs.h.  */
 
12429
_ACEOF
 
12430
cat confdefs.h >>conftest.$ac_ext
 
12431
cat >>conftest.$ac_ext <<_ACEOF
 
12432
/* end confdefs.h.  */
 
12433
$ac_includes_default
 
12434
int
 
12435
main ()
 
12436
{
 
12437
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
 
12438
test_array [0] = 0
 
12439
 
 
12440
  ;
 
12441
  return 0;
 
12442
}
 
12443
_ACEOF
 
12444
rm -f conftest.$ac_objext
 
12445
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12446
  (eval $ac_compile) 2>conftest.er1
 
12447
  ac_status=$?
 
12448
  grep -v '^ *+' conftest.er1 >conftest.err
 
12449
  rm -f conftest.er1
 
12450
  cat conftest.err >&5
 
12451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12452
  (exit $ac_status); } &&
 
12453
         { ac_try='test -z "$ac_c_werror_flag"
 
12454
                         || test ! -s conftest.err'
 
12455
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12456
  (eval $ac_try) 2>&5
 
12457
  ac_status=$?
 
12458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12459
  (exit $ac_status); }; } &&
 
12460
         { ac_try='test -s conftest.$ac_objext'
 
12461
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12462
  (eval $ac_try) 2>&5
 
12463
  ac_status=$?
 
12464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12465
  (exit $ac_status); }; }; then
 
12466
  ac_lo=$ac_mid; break
 
12467
else
 
12468
  echo "$as_me: failed program was:" >&5
 
12469
sed 's/^/| /' conftest.$ac_ext >&5
 
12470
 
 
12471
ac_hi=`expr '(' $ac_mid ')' - 1`
 
12472
                       if test $ac_mid -le $ac_hi; then
 
12473
                         ac_lo= ac_hi=
 
12474
                         break
 
12475
                       fi
 
12476
                       ac_mid=`expr 2 '*' $ac_mid`
 
12477
fi
 
12478
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12479
  done
 
12480
else
 
12481
  echo "$as_me: failed program was:" >&5
 
12482
sed 's/^/| /' conftest.$ac_ext >&5
 
12483
 
 
12484
ac_lo= ac_hi=
 
12485
fi
 
12486
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12487
fi
 
12488
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12489
# Binary search between lo and hi bounds.
 
12490
while test "x$ac_lo" != "x$ac_hi"; do
 
12491
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
12492
  cat >conftest.$ac_ext <<_ACEOF
 
12493
/* confdefs.h.  */
 
12494
_ACEOF
 
12495
cat confdefs.h >>conftest.$ac_ext
 
12496
cat >>conftest.$ac_ext <<_ACEOF
 
12497
/* end confdefs.h.  */
 
12498
$ac_includes_default
 
12499
int
 
12500
main ()
 
12501
{
 
12502
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
 
12503
test_array [0] = 0
 
12504
 
 
12505
  ;
 
12506
  return 0;
 
12507
}
 
12508
_ACEOF
 
12509
rm -f conftest.$ac_objext
 
12510
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12511
  (eval $ac_compile) 2>conftest.er1
 
12512
  ac_status=$?
 
12513
  grep -v '^ *+' conftest.er1 >conftest.err
 
12514
  rm -f conftest.er1
 
12515
  cat conftest.err >&5
 
12516
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12517
  (exit $ac_status); } &&
 
12518
         { ac_try='test -z "$ac_c_werror_flag"
 
12519
                         || test ! -s conftest.err'
 
12520
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12521
  (eval $ac_try) 2>&5
 
12522
  ac_status=$?
 
12523
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12524
  (exit $ac_status); }; } &&
 
12525
         { ac_try='test -s conftest.$ac_objext'
 
12526
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12527
  (eval $ac_try) 2>&5
 
12528
  ac_status=$?
 
12529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12530
  (exit $ac_status); }; }; then
 
12531
  ac_hi=$ac_mid
 
12532
else
 
12533
  echo "$as_me: failed program was:" >&5
 
12534
sed 's/^/| /' conftest.$ac_ext >&5
 
12535
 
 
12536
ac_lo=`expr '(' $ac_mid ')' + 1`
 
12537
fi
 
12538
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12539
done
 
12540
case $ac_lo in
 
12541
?*) ac_cv_sizeof_int=$ac_lo;;
 
12542
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
 
12543
See \`config.log' for more details." >&5
 
12544
echo "$as_me: error: cannot compute sizeof (int), 77
 
12545
See \`config.log' for more details." >&2;}
 
12546
   { (exit 1); exit 1; }; } ;;
 
12547
esac
 
12548
else
 
12549
  if test "$cross_compiling" = yes; then
 
12550
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
12551
See \`config.log' for more details." >&5
 
12552
echo "$as_me: error: cannot run test program while cross compiling
 
12553
See \`config.log' for more details." >&2;}
 
12554
   { (exit 1); exit 1; }; }
 
12555
else
 
12556
  cat >conftest.$ac_ext <<_ACEOF
 
12557
/* confdefs.h.  */
 
12558
_ACEOF
 
12559
cat confdefs.h >>conftest.$ac_ext
 
12560
cat >>conftest.$ac_ext <<_ACEOF
 
12561
/* end confdefs.h.  */
 
12562
$ac_includes_default
 
12563
long longval () { return (long) (sizeof (int)); }
 
12564
unsigned long ulongval () { return (long) (sizeof (int)); }
 
12565
#include <stdio.h>
 
12566
#include <stdlib.h>
 
12567
int
 
12568
main ()
 
12569
{
 
12570
 
 
12571
  FILE *f = fopen ("conftest.val", "w");
 
12572
  if (! f)
 
12573
    exit (1);
 
12574
  if (((long) (sizeof (int))) < 0)
 
12575
    {
 
12576
      long i = longval ();
 
12577
      if (i != ((long) (sizeof (int))))
 
12578
        exit (1);
 
12579
      fprintf (f, "%ld\n", i);
 
12580
    }
 
12581
  else
 
12582
    {
 
12583
      unsigned long i = ulongval ();
 
12584
      if (i != ((long) (sizeof (int))))
 
12585
        exit (1);
 
12586
      fprintf (f, "%lu\n", i);
 
12587
    }
 
12588
  exit (ferror (f) || fclose (f) != 0);
 
12589
 
 
12590
  ;
 
12591
  return 0;
 
12592
}
 
12593
_ACEOF
 
12594
rm -f conftest$ac_exeext
 
12595
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12596
  (eval $ac_link) 2>&5
 
12597
  ac_status=$?
 
12598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12599
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
12600
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12601
  (eval $ac_try) 2>&5
 
12602
  ac_status=$?
 
12603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12604
  (exit $ac_status); }; }; then
 
12605
  ac_cv_sizeof_int=`cat conftest.val`
 
12606
else
 
12607
  echo "$as_me: program exited with status $ac_status" >&5
 
12608
echo "$as_me: failed program was:" >&5
 
12609
sed 's/^/| /' conftest.$ac_ext >&5
 
12610
 
 
12611
( exit $ac_status )
 
12612
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
 
12613
See \`config.log' for more details." >&5
 
12614
echo "$as_me: error: cannot compute sizeof (int), 77
 
12615
See \`config.log' for more details." >&2;}
 
12616
   { (exit 1); exit 1; }; }
 
12617
fi
 
12618
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
12619
fi
 
12620
fi
 
12621
rm -f conftest.val
 
12622
else
 
12623
  ac_cv_sizeof_int=0
 
12624
fi
 
12625
fi
 
12626
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
 
12627
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
 
12628
cat >>confdefs.h <<_ACEOF
 
12629
#define SIZEOF_INT $ac_cv_sizeof_int
 
12630
_ACEOF
 
12631
 
 
12632
 
 
12633
  echo "$as_me:$LINENO: checking for long" >&5
 
12634
echo $ECHO_N "checking for long... $ECHO_C" >&6
 
12635
if test "${ac_cv_type_long+set}" = set; then
 
12636
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12637
else
 
12638
  cat >conftest.$ac_ext <<_ACEOF
 
12639
/* confdefs.h.  */
 
12640
_ACEOF
 
12641
cat confdefs.h >>conftest.$ac_ext
 
12642
cat >>conftest.$ac_ext <<_ACEOF
 
12643
/* end confdefs.h.  */
 
12644
$ac_includes_default
 
12645
int
 
12646
main ()
 
12647
{
 
12648
if ((long *) 0)
 
12649
  return 0;
 
12650
if (sizeof (long))
 
12651
  return 0;
 
12652
  ;
 
12653
  return 0;
 
12654
}
 
12655
_ACEOF
 
12656
rm -f conftest.$ac_objext
 
12657
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12658
  (eval $ac_compile) 2>conftest.er1
 
12659
  ac_status=$?
 
12660
  grep -v '^ *+' conftest.er1 >conftest.err
 
12661
  rm -f conftest.er1
 
12662
  cat conftest.err >&5
 
12663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12664
  (exit $ac_status); } &&
 
12665
         { ac_try='test -z "$ac_c_werror_flag"
 
12666
                         || test ! -s conftest.err'
 
12667
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12668
  (eval $ac_try) 2>&5
 
12669
  ac_status=$?
 
12670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12671
  (exit $ac_status); }; } &&
 
12672
         { ac_try='test -s conftest.$ac_objext'
 
12673
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12674
  (eval $ac_try) 2>&5
 
12675
  ac_status=$?
 
12676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12677
  (exit $ac_status); }; }; then
 
12678
  ac_cv_type_long=yes
 
12679
else
 
12680
  echo "$as_me: failed program was:" >&5
 
12681
sed 's/^/| /' conftest.$ac_ext >&5
 
12682
 
 
12683
ac_cv_type_long=no
 
12684
fi
 
12685
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12686
fi
 
12687
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
 
12688
echo "${ECHO_T}$ac_cv_type_long" >&6
 
12689
 
 
12690
echo "$as_me:$LINENO: checking size of long" >&5
 
12691
echo $ECHO_N "checking size of long... $ECHO_C" >&6
 
12692
if test "${ac_cv_sizeof_long+set}" = set; then
 
12693
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12694
else
 
12695
  if test "$ac_cv_type_long" = yes; then
 
12696
  # The cast to unsigned long works around a bug in the HP C Compiler
 
12697
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
12698
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
12699
  # This bug is HP SR number 8606223364.
 
12700
  if test "$cross_compiling" = yes; then
 
12701
  # Depending upon the size, compute the lo and hi bounds.
 
12702
cat >conftest.$ac_ext <<_ACEOF
 
12703
/* confdefs.h.  */
 
12704
_ACEOF
 
12705
cat confdefs.h >>conftest.$ac_ext
 
12706
cat >>conftest.$ac_ext <<_ACEOF
 
12707
/* end confdefs.h.  */
 
12708
$ac_includes_default
 
12709
int
 
12710
main ()
 
12711
{
 
12712
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
 
12713
test_array [0] = 0
 
12714
 
 
12715
  ;
 
12716
  return 0;
 
12717
}
 
12718
_ACEOF
 
12719
rm -f conftest.$ac_objext
 
12720
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12721
  (eval $ac_compile) 2>conftest.er1
 
12722
  ac_status=$?
 
12723
  grep -v '^ *+' conftest.er1 >conftest.err
 
12724
  rm -f conftest.er1
 
12725
  cat conftest.err >&5
 
12726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12727
  (exit $ac_status); } &&
 
12728
         { ac_try='test -z "$ac_c_werror_flag"
 
12729
                         || test ! -s conftest.err'
 
12730
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12731
  (eval $ac_try) 2>&5
 
12732
  ac_status=$?
 
12733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12734
  (exit $ac_status); }; } &&
 
12735
         { ac_try='test -s conftest.$ac_objext'
 
12736
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12737
  (eval $ac_try) 2>&5
 
12738
  ac_status=$?
 
12739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12740
  (exit $ac_status); }; }; then
 
12741
  ac_lo=0 ac_mid=0
 
12742
  while :; do
 
12743
    cat >conftest.$ac_ext <<_ACEOF
 
12744
/* confdefs.h.  */
 
12745
_ACEOF
 
12746
cat confdefs.h >>conftest.$ac_ext
 
12747
cat >>conftest.$ac_ext <<_ACEOF
 
12748
/* end confdefs.h.  */
 
12749
$ac_includes_default
 
12750
int
 
12751
main ()
 
12752
{
 
12753
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
 
12754
test_array [0] = 0
 
12755
 
 
12756
  ;
 
12757
  return 0;
 
12758
}
 
12759
_ACEOF
 
12760
rm -f conftest.$ac_objext
 
12761
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12762
  (eval $ac_compile) 2>conftest.er1
 
12763
  ac_status=$?
 
12764
  grep -v '^ *+' conftest.er1 >conftest.err
 
12765
  rm -f conftest.er1
 
12766
  cat conftest.err >&5
 
12767
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12768
  (exit $ac_status); } &&
 
12769
         { ac_try='test -z "$ac_c_werror_flag"
 
12770
                         || test ! -s conftest.err'
 
12771
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12772
  (eval $ac_try) 2>&5
 
12773
  ac_status=$?
 
12774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12775
  (exit $ac_status); }; } &&
 
12776
         { ac_try='test -s conftest.$ac_objext'
 
12777
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12778
  (eval $ac_try) 2>&5
 
12779
  ac_status=$?
 
12780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12781
  (exit $ac_status); }; }; then
 
12782
  ac_hi=$ac_mid; break
 
12783
else
 
12784
  echo "$as_me: failed program was:" >&5
 
12785
sed 's/^/| /' conftest.$ac_ext >&5
 
12786
 
 
12787
ac_lo=`expr $ac_mid + 1`
 
12788
                    if test $ac_lo -le $ac_mid; then
 
12789
                      ac_lo= ac_hi=
 
12790
                      break
 
12791
                    fi
 
12792
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
12793
fi
 
12794
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12795
  done
 
12796
else
 
12797
  echo "$as_me: failed program was:" >&5
 
12798
sed 's/^/| /' conftest.$ac_ext >&5
 
12799
 
 
12800
cat >conftest.$ac_ext <<_ACEOF
 
12801
/* confdefs.h.  */
 
12802
_ACEOF
 
12803
cat confdefs.h >>conftest.$ac_ext
 
12804
cat >>conftest.$ac_ext <<_ACEOF
 
12805
/* end confdefs.h.  */
 
12806
$ac_includes_default
 
12807
int
 
12808
main ()
 
12809
{
 
12810
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
 
12811
test_array [0] = 0
 
12812
 
 
12813
  ;
 
12814
  return 0;
 
12815
}
 
12816
_ACEOF
 
12817
rm -f conftest.$ac_objext
 
12818
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12819
  (eval $ac_compile) 2>conftest.er1
 
12820
  ac_status=$?
 
12821
  grep -v '^ *+' conftest.er1 >conftest.err
 
12822
  rm -f conftest.er1
 
12823
  cat conftest.err >&5
 
12824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12825
  (exit $ac_status); } &&
 
12826
         { ac_try='test -z "$ac_c_werror_flag"
 
12827
                         || test ! -s conftest.err'
 
12828
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12829
  (eval $ac_try) 2>&5
 
12830
  ac_status=$?
 
12831
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12832
  (exit $ac_status); }; } &&
 
12833
         { ac_try='test -s conftest.$ac_objext'
 
12834
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12835
  (eval $ac_try) 2>&5
 
12836
  ac_status=$?
 
12837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12838
  (exit $ac_status); }; }; then
 
12839
  ac_hi=-1 ac_mid=-1
 
12840
  while :; do
 
12841
    cat >conftest.$ac_ext <<_ACEOF
 
12842
/* confdefs.h.  */
 
12843
_ACEOF
 
12844
cat confdefs.h >>conftest.$ac_ext
 
12845
cat >>conftest.$ac_ext <<_ACEOF
 
12846
/* end confdefs.h.  */
 
12847
$ac_includes_default
 
12848
int
 
12849
main ()
 
12850
{
 
12851
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
 
12852
test_array [0] = 0
 
12853
 
 
12854
  ;
 
12855
  return 0;
 
12856
}
 
12857
_ACEOF
 
12858
rm -f conftest.$ac_objext
 
12859
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12860
  (eval $ac_compile) 2>conftest.er1
 
12861
  ac_status=$?
 
12862
  grep -v '^ *+' conftest.er1 >conftest.err
 
12863
  rm -f conftest.er1
 
12864
  cat conftest.err >&5
 
12865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12866
  (exit $ac_status); } &&
 
12867
         { ac_try='test -z "$ac_c_werror_flag"
 
12868
                         || test ! -s conftest.err'
 
12869
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12870
  (eval $ac_try) 2>&5
 
12871
  ac_status=$?
 
12872
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12873
  (exit $ac_status); }; } &&
 
12874
         { ac_try='test -s conftest.$ac_objext'
 
12875
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12876
  (eval $ac_try) 2>&5
 
12877
  ac_status=$?
 
12878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12879
  (exit $ac_status); }; }; then
 
12880
  ac_lo=$ac_mid; break
 
12881
else
 
12882
  echo "$as_me: failed program was:" >&5
 
12883
sed 's/^/| /' conftest.$ac_ext >&5
 
12884
 
 
12885
ac_hi=`expr '(' $ac_mid ')' - 1`
 
12886
                       if test $ac_mid -le $ac_hi; then
 
12887
                         ac_lo= ac_hi=
 
12888
                         break
 
12889
                       fi
 
12890
                       ac_mid=`expr 2 '*' $ac_mid`
 
12891
fi
 
12892
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12893
  done
 
12894
else
 
12895
  echo "$as_me: failed program was:" >&5
 
12896
sed 's/^/| /' conftest.$ac_ext >&5
 
12897
 
 
12898
ac_lo= ac_hi=
 
12899
fi
 
12900
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12901
fi
 
12902
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12903
# Binary search between lo and hi bounds.
 
12904
while test "x$ac_lo" != "x$ac_hi"; do
 
12905
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
12906
  cat >conftest.$ac_ext <<_ACEOF
 
12907
/* confdefs.h.  */
 
12908
_ACEOF
 
12909
cat confdefs.h >>conftest.$ac_ext
 
12910
cat >>conftest.$ac_ext <<_ACEOF
 
12911
/* end confdefs.h.  */
 
12912
$ac_includes_default
 
12913
int
 
12914
main ()
 
12915
{
 
12916
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
 
12917
test_array [0] = 0
 
12918
 
 
12919
  ;
 
12920
  return 0;
 
12921
}
 
12922
_ACEOF
 
12923
rm -f conftest.$ac_objext
 
12924
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12925
  (eval $ac_compile) 2>conftest.er1
 
12926
  ac_status=$?
 
12927
  grep -v '^ *+' conftest.er1 >conftest.err
 
12928
  rm -f conftest.er1
 
12929
  cat conftest.err >&5
 
12930
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12931
  (exit $ac_status); } &&
 
12932
         { ac_try='test -z "$ac_c_werror_flag"
 
12933
                         || test ! -s conftest.err'
 
12934
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12935
  (eval $ac_try) 2>&5
 
12936
  ac_status=$?
 
12937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12938
  (exit $ac_status); }; } &&
 
12939
         { ac_try='test -s conftest.$ac_objext'
 
12940
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12941
  (eval $ac_try) 2>&5
 
12942
  ac_status=$?
 
12943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12944
  (exit $ac_status); }; }; then
 
12945
  ac_hi=$ac_mid
 
12946
else
 
12947
  echo "$as_me: failed program was:" >&5
 
12948
sed 's/^/| /' conftest.$ac_ext >&5
 
12949
 
 
12950
ac_lo=`expr '(' $ac_mid ')' + 1`
 
12951
fi
 
12952
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12953
done
 
12954
case $ac_lo in
 
12955
?*) ac_cv_sizeof_long=$ac_lo;;
 
12956
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
 
12957
See \`config.log' for more details." >&5
 
12958
echo "$as_me: error: cannot compute sizeof (long), 77
 
12959
See \`config.log' for more details." >&2;}
 
12960
   { (exit 1); exit 1; }; } ;;
 
12961
esac
 
12962
else
 
12963
  if test "$cross_compiling" = yes; then
 
12964
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
12965
See \`config.log' for more details." >&5
 
12966
echo "$as_me: error: cannot run test program while cross compiling
 
12967
See \`config.log' for more details." >&2;}
 
12968
   { (exit 1); exit 1; }; }
 
12969
else
 
12970
  cat >conftest.$ac_ext <<_ACEOF
 
12971
/* confdefs.h.  */
 
12972
_ACEOF
 
12973
cat confdefs.h >>conftest.$ac_ext
 
12974
cat >>conftest.$ac_ext <<_ACEOF
 
12975
/* end confdefs.h.  */
 
12976
$ac_includes_default
 
12977
long longval () { return (long) (sizeof (long)); }
 
12978
unsigned long ulongval () { return (long) (sizeof (long)); }
 
12979
#include <stdio.h>
 
12980
#include <stdlib.h>
 
12981
int
 
12982
main ()
 
12983
{
 
12984
 
 
12985
  FILE *f = fopen ("conftest.val", "w");
 
12986
  if (! f)
 
12987
    exit (1);
 
12988
  if (((long) (sizeof (long))) < 0)
 
12989
    {
 
12990
      long i = longval ();
 
12991
      if (i != ((long) (sizeof (long))))
 
12992
        exit (1);
 
12993
      fprintf (f, "%ld\n", i);
 
12994
    }
 
12995
  else
 
12996
    {
 
12997
      unsigned long i = ulongval ();
 
12998
      if (i != ((long) (sizeof (long))))
 
12999
        exit (1);
 
13000
      fprintf (f, "%lu\n", i);
 
13001
    }
 
13002
  exit (ferror (f) || fclose (f) != 0);
 
13003
 
 
13004
  ;
 
13005
  return 0;
 
13006
}
 
13007
_ACEOF
 
13008
rm -f conftest$ac_exeext
 
13009
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13010
  (eval $ac_link) 2>&5
 
13011
  ac_status=$?
 
13012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13013
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
13014
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13015
  (eval $ac_try) 2>&5
 
13016
  ac_status=$?
 
13017
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13018
  (exit $ac_status); }; }; then
 
13019
  ac_cv_sizeof_long=`cat conftest.val`
 
13020
else
 
13021
  echo "$as_me: program exited with status $ac_status" >&5
 
13022
echo "$as_me: failed program was:" >&5
 
13023
sed 's/^/| /' conftest.$ac_ext >&5
 
13024
 
 
13025
( exit $ac_status )
 
13026
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
 
13027
See \`config.log' for more details." >&5
 
13028
echo "$as_me: error: cannot compute sizeof (long), 77
 
13029
See \`config.log' for more details." >&2;}
 
13030
   { (exit 1); exit 1; }; }
 
13031
fi
 
13032
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
13033
fi
 
13034
fi
 
13035
rm -f conftest.val
 
13036
else
 
13037
  ac_cv_sizeof_long=0
 
13038
fi
 
13039
fi
 
13040
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
 
13041
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
 
13042
cat >>confdefs.h <<_ACEOF
 
13043
#define SIZEOF_LONG $ac_cv_sizeof_long
 
13044
_ACEOF
 
13045
 
 
13046
 
 
13047
  echo "$as_me:$LINENO: checking for short" >&5
 
13048
echo $ECHO_N "checking for short... $ECHO_C" >&6
 
13049
if test "${ac_cv_type_short+set}" = set; then
 
13050
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13051
else
 
13052
  cat >conftest.$ac_ext <<_ACEOF
 
13053
/* confdefs.h.  */
 
13054
_ACEOF
 
13055
cat confdefs.h >>conftest.$ac_ext
 
13056
cat >>conftest.$ac_ext <<_ACEOF
 
13057
/* end confdefs.h.  */
 
13058
$ac_includes_default
 
13059
int
 
13060
main ()
 
13061
{
 
13062
if ((short *) 0)
 
13063
  return 0;
 
13064
if (sizeof (short))
 
13065
  return 0;
 
13066
  ;
 
13067
  return 0;
 
13068
}
 
13069
_ACEOF
 
13070
rm -f conftest.$ac_objext
 
13071
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13072
  (eval $ac_compile) 2>conftest.er1
 
13073
  ac_status=$?
 
13074
  grep -v '^ *+' conftest.er1 >conftest.err
 
13075
  rm -f conftest.er1
 
13076
  cat conftest.err >&5
 
13077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13078
  (exit $ac_status); } &&
 
13079
         { ac_try='test -z "$ac_c_werror_flag"
 
13080
                         || test ! -s conftest.err'
 
13081
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13082
  (eval $ac_try) 2>&5
 
13083
  ac_status=$?
 
13084
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13085
  (exit $ac_status); }; } &&
 
13086
         { ac_try='test -s conftest.$ac_objext'
 
13087
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13088
  (eval $ac_try) 2>&5
 
13089
  ac_status=$?
 
13090
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13091
  (exit $ac_status); }; }; then
 
13092
  ac_cv_type_short=yes
 
13093
else
 
13094
  echo "$as_me: failed program was:" >&5
 
13095
sed 's/^/| /' conftest.$ac_ext >&5
 
13096
 
 
13097
ac_cv_type_short=no
 
13098
fi
 
13099
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
13100
fi
 
13101
echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
 
13102
echo "${ECHO_T}$ac_cv_type_short" >&6
 
13103
 
 
13104
echo "$as_me:$LINENO: checking size of short" >&5
 
13105
echo $ECHO_N "checking size of short... $ECHO_C" >&6
 
13106
if test "${ac_cv_sizeof_short+set}" = set; then
 
13107
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13108
else
 
13109
  if test "$ac_cv_type_short" = yes; then
 
13110
  # The cast to unsigned long works around a bug in the HP C Compiler
 
13111
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
13112
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
13113
  # This bug is HP SR number 8606223364.
 
13114
  if test "$cross_compiling" = yes; then
 
13115
  # Depending upon the size, compute the lo and hi bounds.
 
13116
cat >conftest.$ac_ext <<_ACEOF
 
13117
/* confdefs.h.  */
 
13118
_ACEOF
 
13119
cat confdefs.h >>conftest.$ac_ext
 
13120
cat >>conftest.$ac_ext <<_ACEOF
 
13121
/* end confdefs.h.  */
 
13122
$ac_includes_default
 
13123
int
 
13124
main ()
 
13125
{
 
13126
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
 
13127
test_array [0] = 0
 
13128
 
 
13129
  ;
 
13130
  return 0;
 
13131
}
 
13132
_ACEOF
 
13133
rm -f conftest.$ac_objext
 
13134
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13135
  (eval $ac_compile) 2>conftest.er1
 
13136
  ac_status=$?
 
13137
  grep -v '^ *+' conftest.er1 >conftest.err
 
13138
  rm -f conftest.er1
 
13139
  cat conftest.err >&5
 
13140
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13141
  (exit $ac_status); } &&
 
13142
         { ac_try='test -z "$ac_c_werror_flag"
 
13143
                         || test ! -s conftest.err'
 
13144
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13145
  (eval $ac_try) 2>&5
 
13146
  ac_status=$?
 
13147
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13148
  (exit $ac_status); }; } &&
 
13149
         { ac_try='test -s conftest.$ac_objext'
 
13150
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13151
  (eval $ac_try) 2>&5
 
13152
  ac_status=$?
 
13153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13154
  (exit $ac_status); }; }; then
 
13155
  ac_lo=0 ac_mid=0
 
13156
  while :; do
 
13157
    cat >conftest.$ac_ext <<_ACEOF
 
13158
/* confdefs.h.  */
 
13159
_ACEOF
 
13160
cat confdefs.h >>conftest.$ac_ext
 
13161
cat >>conftest.$ac_ext <<_ACEOF
 
13162
/* end confdefs.h.  */
 
13163
$ac_includes_default
 
13164
int
 
13165
main ()
 
13166
{
 
13167
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
 
13168
test_array [0] = 0
 
13169
 
 
13170
  ;
 
13171
  return 0;
 
13172
}
 
13173
_ACEOF
 
13174
rm -f conftest.$ac_objext
 
13175
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13176
  (eval $ac_compile) 2>conftest.er1
 
13177
  ac_status=$?
 
13178
  grep -v '^ *+' conftest.er1 >conftest.err
 
13179
  rm -f conftest.er1
 
13180
  cat conftest.err >&5
 
13181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13182
  (exit $ac_status); } &&
 
13183
         { ac_try='test -z "$ac_c_werror_flag"
 
13184
                         || test ! -s conftest.err'
 
13185
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13186
  (eval $ac_try) 2>&5
 
13187
  ac_status=$?
 
13188
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13189
  (exit $ac_status); }; } &&
 
13190
         { ac_try='test -s conftest.$ac_objext'
 
13191
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13192
  (eval $ac_try) 2>&5
 
13193
  ac_status=$?
 
13194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13195
  (exit $ac_status); }; }; then
 
13196
  ac_hi=$ac_mid; break
 
13197
else
 
13198
  echo "$as_me: failed program was:" >&5
 
13199
sed 's/^/| /' conftest.$ac_ext >&5
 
13200
 
 
13201
ac_lo=`expr $ac_mid + 1`
 
13202
                    if test $ac_lo -le $ac_mid; then
 
13203
                      ac_lo= ac_hi=
 
13204
                      break
 
13205
                    fi
 
13206
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
13207
fi
 
13208
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
13209
  done
 
13210
else
 
13211
  echo "$as_me: failed program was:" >&5
 
13212
sed 's/^/| /' conftest.$ac_ext >&5
 
13213
 
 
13214
cat >conftest.$ac_ext <<_ACEOF
 
13215
/* confdefs.h.  */
 
13216
_ACEOF
 
13217
cat confdefs.h >>conftest.$ac_ext
 
13218
cat >>conftest.$ac_ext <<_ACEOF
 
13219
/* end confdefs.h.  */
 
13220
$ac_includes_default
 
13221
int
 
13222
main ()
 
13223
{
 
13224
static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
 
13225
test_array [0] = 0
 
13226
 
 
13227
  ;
 
13228
  return 0;
 
13229
}
 
13230
_ACEOF
 
13231
rm -f conftest.$ac_objext
 
13232
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13233
  (eval $ac_compile) 2>conftest.er1
 
13234
  ac_status=$?
 
13235
  grep -v '^ *+' conftest.er1 >conftest.err
 
13236
  rm -f conftest.er1
 
13237
  cat conftest.err >&5
 
13238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13239
  (exit $ac_status); } &&
 
13240
         { ac_try='test -z "$ac_c_werror_flag"
 
13241
                         || test ! -s conftest.err'
 
13242
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13243
  (eval $ac_try) 2>&5
 
13244
  ac_status=$?
 
13245
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13246
  (exit $ac_status); }; } &&
 
13247
         { ac_try='test -s conftest.$ac_objext'
 
13248
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13249
  (eval $ac_try) 2>&5
 
13250
  ac_status=$?
 
13251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13252
  (exit $ac_status); }; }; then
 
13253
  ac_hi=-1 ac_mid=-1
 
13254
  while :; do
 
13255
    cat >conftest.$ac_ext <<_ACEOF
 
13256
/* confdefs.h.  */
 
13257
_ACEOF
 
13258
cat confdefs.h >>conftest.$ac_ext
 
13259
cat >>conftest.$ac_ext <<_ACEOF
 
13260
/* end confdefs.h.  */
 
13261
$ac_includes_default
 
13262
int
 
13263
main ()
 
13264
{
 
13265
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
 
13266
test_array [0] = 0
 
13267
 
 
13268
  ;
 
13269
  return 0;
 
13270
}
 
13271
_ACEOF
 
13272
rm -f conftest.$ac_objext
 
13273
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13274
  (eval $ac_compile) 2>conftest.er1
 
13275
  ac_status=$?
 
13276
  grep -v '^ *+' conftest.er1 >conftest.err
 
13277
  rm -f conftest.er1
 
13278
  cat conftest.err >&5
 
13279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13280
  (exit $ac_status); } &&
 
13281
         { ac_try='test -z "$ac_c_werror_flag"
 
13282
                         || test ! -s conftest.err'
 
13283
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13284
  (eval $ac_try) 2>&5
 
13285
  ac_status=$?
 
13286
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13287
  (exit $ac_status); }; } &&
 
13288
         { ac_try='test -s conftest.$ac_objext'
 
13289
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13290
  (eval $ac_try) 2>&5
 
13291
  ac_status=$?
 
13292
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13293
  (exit $ac_status); }; }; then
 
13294
  ac_lo=$ac_mid; break
 
13295
else
 
13296
  echo "$as_me: failed program was:" >&5
 
13297
sed 's/^/| /' conftest.$ac_ext >&5
 
13298
 
 
13299
ac_hi=`expr '(' $ac_mid ')' - 1`
 
13300
                       if test $ac_mid -le $ac_hi; then
 
13301
                         ac_lo= ac_hi=
 
13302
                         break
 
13303
                       fi
 
13304
                       ac_mid=`expr 2 '*' $ac_mid`
 
13305
fi
 
13306
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
13307
  done
 
13308
else
 
13309
  echo "$as_me: failed program was:" >&5
 
13310
sed 's/^/| /' conftest.$ac_ext >&5
 
13311
 
 
13312
ac_lo= ac_hi=
 
13313
fi
 
13314
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
13315
fi
 
13316
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
13317
# Binary search between lo and hi bounds.
 
13318
while test "x$ac_lo" != "x$ac_hi"; do
 
13319
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
13320
  cat >conftest.$ac_ext <<_ACEOF
 
13321
/* confdefs.h.  */
 
13322
_ACEOF
 
13323
cat confdefs.h >>conftest.$ac_ext
 
13324
cat >>conftest.$ac_ext <<_ACEOF
 
13325
/* end confdefs.h.  */
 
13326
$ac_includes_default
 
13327
int
 
13328
main ()
 
13329
{
 
13330
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
 
13331
test_array [0] = 0
 
13332
 
 
13333
  ;
 
13334
  return 0;
 
13335
}
 
13336
_ACEOF
 
13337
rm -f conftest.$ac_objext
 
13338
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13339
  (eval $ac_compile) 2>conftest.er1
 
13340
  ac_status=$?
 
13341
  grep -v '^ *+' conftest.er1 >conftest.err
 
13342
  rm -f conftest.er1
 
13343
  cat conftest.err >&5
 
13344
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13345
  (exit $ac_status); } &&
 
13346
         { ac_try='test -z "$ac_c_werror_flag"
 
13347
                         || test ! -s conftest.err'
 
13348
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13349
  (eval $ac_try) 2>&5
 
13350
  ac_status=$?
 
13351
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13352
  (exit $ac_status); }; } &&
 
13353
         { ac_try='test -s conftest.$ac_objext'
 
13354
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13355
  (eval $ac_try) 2>&5
 
13356
  ac_status=$?
 
13357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13358
  (exit $ac_status); }; }; then
 
13359
  ac_hi=$ac_mid
 
13360
else
 
13361
  echo "$as_me: failed program was:" >&5
 
13362
sed 's/^/| /' conftest.$ac_ext >&5
 
13363
 
 
13364
ac_lo=`expr '(' $ac_mid ')' + 1`
 
13365
fi
 
13366
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
13367
done
 
13368
case $ac_lo in
 
13369
?*) ac_cv_sizeof_short=$ac_lo;;
 
13370
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
 
13371
See \`config.log' for more details." >&5
 
13372
echo "$as_me: error: cannot compute sizeof (short), 77
 
13373
See \`config.log' for more details." >&2;}
 
13374
   { (exit 1); exit 1; }; } ;;
 
13375
esac
 
13376
else
 
13377
  if test "$cross_compiling" = yes; then
 
13378
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
13379
See \`config.log' for more details." >&5
 
13380
echo "$as_me: error: cannot run test program while cross compiling
 
13381
See \`config.log' for more details." >&2;}
 
13382
   { (exit 1); exit 1; }; }
 
13383
else
 
13384
  cat >conftest.$ac_ext <<_ACEOF
 
13385
/* confdefs.h.  */
 
13386
_ACEOF
 
13387
cat confdefs.h >>conftest.$ac_ext
 
13388
cat >>conftest.$ac_ext <<_ACEOF
 
13389
/* end confdefs.h.  */
 
13390
$ac_includes_default
 
13391
long longval () { return (long) (sizeof (short)); }
 
13392
unsigned long ulongval () { return (long) (sizeof (short)); }
 
13393
#include <stdio.h>
 
13394
#include <stdlib.h>
 
13395
int
 
13396
main ()
 
13397
{
 
13398
 
 
13399
  FILE *f = fopen ("conftest.val", "w");
 
13400
  if (! f)
 
13401
    exit (1);
 
13402
  if (((long) (sizeof (short))) < 0)
 
13403
    {
 
13404
      long i = longval ();
 
13405
      if (i != ((long) (sizeof (short))))
 
13406
        exit (1);
 
13407
      fprintf (f, "%ld\n", i);
 
13408
    }
 
13409
  else
 
13410
    {
 
13411
      unsigned long i = ulongval ();
 
13412
      if (i != ((long) (sizeof (short))))
 
13413
        exit (1);
 
13414
      fprintf (f, "%lu\n", i);
 
13415
    }
 
13416
  exit (ferror (f) || fclose (f) != 0);
 
13417
 
 
13418
  ;
 
13419
  return 0;
 
13420
}
 
13421
_ACEOF
 
13422
rm -f conftest$ac_exeext
 
13423
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13424
  (eval $ac_link) 2>&5
 
13425
  ac_status=$?
 
13426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13427
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
13428
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13429
  (eval $ac_try) 2>&5
 
13430
  ac_status=$?
 
13431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13432
  (exit $ac_status); }; }; then
 
13433
  ac_cv_sizeof_short=`cat conftest.val`
 
13434
else
 
13435
  echo "$as_me: program exited with status $ac_status" >&5
 
13436
echo "$as_me: failed program was:" >&5
 
13437
sed 's/^/| /' conftest.$ac_ext >&5
 
13438
 
 
13439
( exit $ac_status )
 
13440
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
 
13441
See \`config.log' for more details." >&5
 
13442
echo "$as_me: error: cannot compute sizeof (short), 77
 
13443
See \`config.log' for more details." >&2;}
 
13444
   { (exit 1); exit 1; }; }
 
13445
fi
 
13446
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
13447
fi
 
13448
fi
 
13449
rm -f conftest.val
 
13450
else
 
13451
  ac_cv_sizeof_short=0
 
13452
fi
 
13453
fi
 
13454
echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
 
13455
echo "${ECHO_T}$ac_cv_sizeof_short" >&6
 
13456
cat >>confdefs.h <<_ACEOF
 
13457
#define SIZEOF_SHORT $ac_cv_sizeof_short
 
13458
_ACEOF
 
13459
 
 
13460
 
 
13461
 
 
13462
  # ----------------------------------------------------------------------
 
13463
  # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
 
13464
  # ----------------------------------------------------------------------
 
13465
 
 
13466
echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
 
13467
echo $ECHO_N "checking for pathfind in -lgen... $ECHO_C" >&6
 
13468
if test "${ac_cv_lib_gen_pathfind+set}" = set; then
 
13469
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13470
else
 
13471
  ac_check_lib_save_LIBS=$LIBS
 
13472
LIBS="-lgen  $LIBS"
 
13473
cat >conftest.$ac_ext <<_ACEOF
 
13474
/* confdefs.h.  */
 
13475
_ACEOF
 
13476
cat confdefs.h >>conftest.$ac_ext
 
13477
cat >>conftest.$ac_ext <<_ACEOF
 
13478
/* end confdefs.h.  */
 
13479
 
 
13480
/* Override any gcc2 internal prototype to avoid an error.  */
 
13481
#ifdef __cplusplus
 
13482
extern "C"
 
13483
#endif
 
13484
/* We use char because int might match the return type of a gcc2
 
13485
   builtin and then its argument prototype would still apply.  */
 
13486
char pathfind ();
 
13487
int
 
13488
main ()
 
13489
{
 
13490
pathfind ();
 
13491
  ;
 
13492
  return 0;
 
13493
}
 
13494
_ACEOF
 
13495
rm -f conftest.$ac_objext conftest$ac_exeext
 
13496
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13497
  (eval $ac_link) 2>conftest.er1
 
13498
  ac_status=$?
 
13499
  grep -v '^ *+' conftest.er1 >conftest.err
 
13500
  rm -f conftest.er1
 
13501
  cat conftest.err >&5
 
13502
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13503
  (exit $ac_status); } &&
 
13504
         { ac_try='test -z "$ac_c_werror_flag"
 
13505
                         || test ! -s conftest.err'
 
13506
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13507
  (eval $ac_try) 2>&5
 
13508
  ac_status=$?
 
13509
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13510
  (exit $ac_status); }; } &&
 
13511
         { ac_try='test -s conftest$ac_exeext'
 
13512
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13513
  (eval $ac_try) 2>&5
 
13514
  ac_status=$?
 
13515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13516
  (exit $ac_status); }; }; then
 
13517
  ac_cv_lib_gen_pathfind=yes
 
13518
else
 
13519
  echo "$as_me: failed program was:" >&5
 
13520
sed 's/^/| /' conftest.$ac_ext >&5
 
13521
 
 
13522
ac_cv_lib_gen_pathfind=no
 
13523
fi
 
13524
rm -f conftest.err conftest.$ac_objext \
 
13525
      conftest$ac_exeext conftest.$ac_ext
 
13526
LIBS=$ac_check_lib_save_LIBS
 
13527
fi
 
13528
echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
 
13529
echo "${ECHO_T}$ac_cv_lib_gen_pathfind" >&6
 
13530
if test $ac_cv_lib_gen_pathfind = yes; then
 
13531
  cat >>confdefs.h <<_ACEOF
 
13532
#define HAVE_LIBGEN 1
 
13533
_ACEOF
 
13534
 
 
13535
  LIBS="-lgen $LIBS"
 
13536
 
 
13537
fi
 
13538
 
 
13539
 
 
13540
for ac_func in vprintf
 
13541
do
 
13542
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
13543
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
13544
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
13545
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
13546
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13547
else
 
13548
  cat >conftest.$ac_ext <<_ACEOF
 
13549
/* confdefs.h.  */
 
13550
_ACEOF
 
13551
cat confdefs.h >>conftest.$ac_ext
 
13552
cat >>conftest.$ac_ext <<_ACEOF
 
13553
/* end confdefs.h.  */
 
13554
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
13555
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13556
#define $ac_func innocuous_$ac_func
 
13557
 
 
13558
/* System header to define __stub macros and hopefully few prototypes,
 
13559
    which can conflict with char $ac_func (); below.
 
13560
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13561
    <limits.h> exists even on freestanding compilers.  */
 
13562
 
 
13563
#ifdef __STDC__
 
13564
# include <limits.h>
 
13565
#else
 
13566
# include <assert.h>
 
13567
#endif
 
13568
 
 
13569
#undef $ac_func
 
13570
 
 
13571
/* Override any gcc2 internal prototype to avoid an error.  */
 
13572
#ifdef __cplusplus
 
13573
extern "C"
 
13574
{
 
13575
#endif
 
13576
/* We use char because int might match the return type of a gcc2
 
13577
   builtin and then its argument prototype would still apply.  */
 
13578
char $ac_func ();
 
13579
/* The GNU C library defines this for functions which it implements
 
13580
    to always fail with ENOSYS.  Some functions are actually named
 
13581
    something starting with __ and the normal name is an alias.  */
 
13582
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
13583
choke me
 
13584
#else
 
13585
char (*f) () = $ac_func;
 
13586
#endif
 
13587
#ifdef __cplusplus
 
13588
}
 
13589
#endif
 
13590
 
 
13591
int
 
13592
main ()
 
13593
{
 
13594
return f != $ac_func;
 
13595
  ;
 
13596
  return 0;
 
13597
}
 
13598
_ACEOF
 
13599
rm -f conftest.$ac_objext conftest$ac_exeext
 
13600
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13601
  (eval $ac_link) 2>conftest.er1
 
13602
  ac_status=$?
 
13603
  grep -v '^ *+' conftest.er1 >conftest.err
 
13604
  rm -f conftest.er1
 
13605
  cat conftest.err >&5
 
13606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13607
  (exit $ac_status); } &&
 
13608
         { ac_try='test -z "$ac_c_werror_flag"
 
13609
                         || test ! -s conftest.err'
 
13610
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13611
  (eval $ac_try) 2>&5
 
13612
  ac_status=$?
 
13613
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13614
  (exit $ac_status); }; } &&
 
13615
         { ac_try='test -s conftest$ac_exeext'
 
13616
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13617
  (eval $ac_try) 2>&5
 
13618
  ac_status=$?
 
13619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13620
  (exit $ac_status); }; }; then
 
13621
  eval "$as_ac_var=yes"
 
13622
else
 
13623
  echo "$as_me: failed program was:" >&5
 
13624
sed 's/^/| /' conftest.$ac_ext >&5
 
13625
 
 
13626
eval "$as_ac_var=no"
 
13627
fi
 
13628
rm -f conftest.err conftest.$ac_objext \
 
13629
      conftest$ac_exeext conftest.$ac_ext
 
13630
fi
 
13631
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
13632
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
13633
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
13634
  cat >>confdefs.h <<_ACEOF
 
13635
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
13636
_ACEOF
 
13637
 
 
13638
echo "$as_me:$LINENO: checking for _doprnt" >&5
 
13639
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
 
13640
if test "${ac_cv_func__doprnt+set}" = set; then
 
13641
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13642
else
 
13643
  cat >conftest.$ac_ext <<_ACEOF
 
13644
/* confdefs.h.  */
 
13645
_ACEOF
 
13646
cat confdefs.h >>conftest.$ac_ext
 
13647
cat >>conftest.$ac_ext <<_ACEOF
 
13648
/* end confdefs.h.  */
 
13649
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
 
13650
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13651
#define _doprnt innocuous__doprnt
 
13652
 
 
13653
/* System header to define __stub macros and hopefully few prototypes,
 
13654
    which can conflict with char _doprnt (); below.
 
13655
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13656
    <limits.h> exists even on freestanding compilers.  */
 
13657
 
 
13658
#ifdef __STDC__
 
13659
# include <limits.h>
 
13660
#else
 
13661
# include <assert.h>
 
13662
#endif
 
13663
 
 
13664
#undef _doprnt
 
13665
 
 
13666
/* Override any gcc2 internal prototype to avoid an error.  */
 
13667
#ifdef __cplusplus
 
13668
extern "C"
 
13669
{
 
13670
#endif
 
13671
/* We use char because int might match the return type of a gcc2
 
13672
   builtin and then its argument prototype would still apply.  */
 
13673
char _doprnt ();
 
13674
/* The GNU C library defines this for functions which it implements
 
13675
    to always fail with ENOSYS.  Some functions are actually named
 
13676
    something starting with __ and the normal name is an alias.  */
 
13677
#if defined (__stub__doprnt) || defined (__stub____doprnt)
 
13678
choke me
 
13679
#else
 
13680
char (*f) () = _doprnt;
 
13681
#endif
 
13682
#ifdef __cplusplus
 
13683
}
 
13684
#endif
 
13685
 
 
13686
int
 
13687
main ()
 
13688
{
 
13689
return f != _doprnt;
 
13690
  ;
 
13691
  return 0;
 
13692
}
 
13693
_ACEOF
 
13694
rm -f conftest.$ac_objext conftest$ac_exeext
 
13695
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13696
  (eval $ac_link) 2>conftest.er1
 
13697
  ac_status=$?
 
13698
  grep -v '^ *+' conftest.er1 >conftest.err
 
13699
  rm -f conftest.er1
 
13700
  cat conftest.err >&5
 
13701
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13702
  (exit $ac_status); } &&
 
13703
         { ac_try='test -z "$ac_c_werror_flag"
 
13704
                         || test ! -s conftest.err'
 
13705
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13706
  (eval $ac_try) 2>&5
 
13707
  ac_status=$?
 
13708
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13709
  (exit $ac_status); }; } &&
 
13710
         { ac_try='test -s conftest$ac_exeext'
 
13711
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13712
  (eval $ac_try) 2>&5
 
13713
  ac_status=$?
 
13714
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13715
  (exit $ac_status); }; }; then
 
13716
  ac_cv_func__doprnt=yes
 
13717
else
 
13718
  echo "$as_me: failed program was:" >&5
 
13719
sed 's/^/| /' conftest.$ac_ext >&5
 
13720
 
 
13721
ac_cv_func__doprnt=no
 
13722
fi
 
13723
rm -f conftest.err conftest.$ac_objext \
 
13724
      conftest$ac_exeext conftest.$ac_ext
 
13725
fi
 
13726
echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
 
13727
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
 
13728
if test $ac_cv_func__doprnt = yes; then
 
13729
 
 
13730
cat >>confdefs.h <<\_ACEOF
 
13731
#define HAVE_DOPRNT 1
 
13732
_ACEOF
 
13733
 
 
13734
fi
 
13735
 
 
13736
fi
 
13737
done
 
13738
 
 
13739
 
 
13740
 
 
13741
 
 
13742
 
 
13743
 
 
13744
 
 
13745
 
 
13746
for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr
 
13747
do
 
13748
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
13749
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
13750
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
13751
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
13752
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13753
else
 
13754
  cat >conftest.$ac_ext <<_ACEOF
 
13755
/* confdefs.h.  */
 
13756
_ACEOF
 
13757
cat confdefs.h >>conftest.$ac_ext
 
13758
cat >>conftest.$ac_ext <<_ACEOF
 
13759
/* end confdefs.h.  */
 
13760
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
13761
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13762
#define $ac_func innocuous_$ac_func
 
13763
 
 
13764
/* System header to define __stub macros and hopefully few prototypes,
 
13765
    which can conflict with char $ac_func (); below.
 
13766
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13767
    <limits.h> exists even on freestanding compilers.  */
 
13768
 
 
13769
#ifdef __STDC__
 
13770
# include <limits.h>
 
13771
#else
 
13772
# include <assert.h>
 
13773
#endif
 
13774
 
 
13775
#undef $ac_func
 
13776
 
 
13777
/* Override any gcc2 internal prototype to avoid an error.  */
 
13778
#ifdef __cplusplus
 
13779
extern "C"
 
13780
{
 
13781
#endif
 
13782
/* We use char because int might match the return type of a gcc2
 
13783
   builtin and then its argument prototype would still apply.  */
 
13784
char $ac_func ();
 
13785
/* The GNU C library defines this for functions which it implements
 
13786
    to always fail with ENOSYS.  Some functions are actually named
 
13787
    something starting with __ and the normal name is an alias.  */
 
13788
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
13789
choke me
 
13790
#else
 
13791
char (*f) () = $ac_func;
 
13792
#endif
 
13793
#ifdef __cplusplus
 
13794
}
 
13795
#endif
 
13796
 
 
13797
int
 
13798
main ()
 
13799
{
 
13800
return f != $ac_func;
 
13801
  ;
 
13802
  return 0;
 
13803
}
 
13804
_ACEOF
 
13805
rm -f conftest.$ac_objext conftest$ac_exeext
 
13806
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13807
  (eval $ac_link) 2>conftest.er1
 
13808
  ac_status=$?
 
13809
  grep -v '^ *+' conftest.er1 >conftest.err
 
13810
  rm -f conftest.er1
 
13811
  cat conftest.err >&5
 
13812
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13813
  (exit $ac_status); } &&
 
13814
         { ac_try='test -z "$ac_c_werror_flag"
 
13815
                         || test ! -s conftest.err'
 
13816
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13817
  (eval $ac_try) 2>&5
 
13818
  ac_status=$?
 
13819
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13820
  (exit $ac_status); }; } &&
 
13821
         { ac_try='test -s conftest$ac_exeext'
 
13822
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13823
  (eval $ac_try) 2>&5
 
13824
  ac_status=$?
 
13825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13826
  (exit $ac_status); }; }; then
 
13827
  eval "$as_ac_var=yes"
 
13828
else
 
13829
  echo "$as_me: failed program was:" >&5
 
13830
sed 's/^/| /' conftest.$ac_ext >&5
 
13831
 
 
13832
eval "$as_ac_var=no"
 
13833
fi
 
13834
rm -f conftest.err conftest.$ac_objext \
 
13835
      conftest$ac_exeext conftest.$ac_ext
 
13836
fi
 
13837
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
13838
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
13839
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
13840
  cat >>confdefs.h <<_ACEOF
 
13841
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
13842
_ACEOF
 
13843
 
 
13844
fi
 
13845
done
 
13846
 
 
13847
  INVOKE_LIBOPTS_MACROS_FIRST_done=yes
 
13848
fi
 
13849
  fi
 
13850
# end of AC_DEFUN of LIBOPTS_CHECK
 
13851
 
 
13852
 
 
13853
echo "$as_me:$LINENO: checking if $CC can handle #warning" >&5
 
13854
echo $ECHO_N "checking if $CC can handle #warning... $ECHO_C" >&6
 
13855
cat >conftest.$ac_ext <<_ACEOF
 
13856
/* confdefs.h.  */
 
13857
_ACEOF
 
13858
cat confdefs.h >>conftest.$ac_ext
 
13859
cat >>conftest.$ac_ext <<_ACEOF
 
13860
/* end confdefs.h.  */
 
13861
 
 
13862
int
 
13863
main ()
 
13864
{
 
13865
#warning foo
 
13866
  ;
 
13867
  return 0;
 
13868
}
 
13869
_ACEOF
 
13870
rm -f conftest.$ac_objext
 
13871
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13872
  (eval $ac_compile) 2>conftest.er1
 
13873
  ac_status=$?
 
13874
  grep -v '^ *+' conftest.er1 >conftest.err
 
13875
  rm -f conftest.er1
 
13876
  cat conftest.err >&5
 
13877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13878
  (exit $ac_status); } &&
 
13879
         { ac_try='test -z "$ac_c_werror_flag"
 
13880
                         || test ! -s conftest.err'
 
13881
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13882
  (eval $ac_try) 2>&5
 
13883
  ac_status=$?
 
13884
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13885
  (exit $ac_status); }; } &&
 
13886
         { ac_try='test -s conftest.$ac_objext'
 
13887
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13888
  (eval $ac_try) 2>&5
 
13889
  ac_status=$?
 
13890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13891
  (exit $ac_status); }; }; then
 
13892
  ac_cv_cpp_warning=yes
 
13893
else
 
13894
  echo "$as_me: failed program was:" >&5
 
13895
sed 's/^/| /' conftest.$ac_ext >&5
 
13896
 
 
13897
ac_cv_cpp_warning=no
 
13898
fi
 
13899
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
13900
echo "$as_me:$LINENO: result: $ac_cv_cpp_warning" >&5
 
13901
echo "${ECHO_T}$ac_cv_cpp_warning" >&6
 
13902
 
 
13903
case "$ac_cv_cpp_warning" in
 
13904
 no)
 
13905
 
 
13906
cat >>confdefs.h <<\_ACEOF
 
13907
#define NO_OPTION_NAME_WARNINGS 1
 
13908
_ACEOF
 
13909
 
 
13910
    echo "$as_me:$LINENO: result: Enabling NO_OPTION_NAME_WARNINGS as #warning does not work" >&5
 
13911
echo "${ECHO_T}Enabling NO_OPTION_NAME_WARNINGS as #warning does not work" >&6
 
13912
    ;;
 
13913
esac
 
13914
 
 
13915
echo "$as_me:$LINENO: checking for bin subdirectory" >&5
 
13916
echo $ECHO_N "checking for bin subdirectory... $ECHO_C" >&6
 
13917
 
 
13918
# Check whether --with-binsubdir or --without-binsubdir was given.
 
13919
if test "${with_binsubdir+set}" = set; then
 
13920
  withval="$with_binsubdir"
 
13921
  use_binsubdir="$withval"
 
13922
else
 
13923
  use_binsubdir="bin"
 
13924
fi;
 
13925
 
 
13926
case "$use_binsubdir" in
 
13927
 bin)
 
13928
    ;;
 
13929
 sbin)
 
13930
    ;;
 
13931
 *)
 
13932
    { { echo "$as_me:$LINENO: error: <$use_binsubdir> is illegal - must be \"bin\" or \"sbin\"" >&5
 
13933
echo "$as_me: error: <$use_binsubdir> is illegal - must be \"bin\" or \"sbin\"" >&2;}
 
13934
   { (exit 1); exit 1; }; }
 
13935
    ;;
 
13936
esac
 
13937
echo "$as_me:$LINENO: result: $use_binsubdir" >&5
 
13938
echo "${ECHO_T}$use_binsubdir" >&6
 
13939
BINSUBDIR=$use_binsubdir
 
13940
 
 
13941
 
 
13942
echo "$as_me:$LINENO: checking if we want to use arlib" >&5
 
13943
echo $ECHO_N "checking if we want to use arlib... $ECHO_C" >&6
 
13944
 
 
13945
# Check whether --with-arlib or --without-arlib was given.
 
13946
if test "${with_arlib+set}" = set; then
 
13947
  withval="$with_arlib"
 
13948
  ans=$withval
 
13949
else
 
13950
  ans=no
 
13951
fi;
 
13952
echo "$as_me:$LINENO: result: $ans" >&5
 
13953
echo "${ECHO_T}$ans" >&6
 
13954
 
 
13955
if test -d $srcdir/arlib
 
13956
then
 
13957
    case "$ans" in
 
13958
     yes)
 
13959
        ARLIB_DIR=arlib
 
13960
 
 
13961
 
 
13962
subdirs="$subdirs arlib"
 
13963
 
 
13964
        ;;
 
13965
    esac
 
13966
fi
 
13967
 
 
13968
 
 
13969
 
 
13970
# Check whether --with-rpath or --without-rpath was given.
 
13971
if test "${with_rpath+set}" = set; then
 
13972
  withval="$with_rpath"
 
13973
  ans=$withval
 
13974
else
 
13975
  ans=x
 
13976
fi;
 
13977
case "$ans" in
 
13978
 no)
 
13979
    need_dash_r=
 
13980
    ;;
 
13981
 yes)
 
13982
    need_dash_r=1
 
13983
    ;;
 
13984
esac
 
13985
# HMS: Why isn't this $build?
 
13986
# Well, that depends on if we need this for the build toolchain or
 
13987
# for info in the host executable...
 
13988
# I still have no idea which way this should go, but nobody has complained.
 
13989
case "$host" in
 
13990
 *-*-netbsd*)
 
13991
    case "$need_dash_r" in
 
13992
     no) ;;
 
13993
     *)  need_dash_r=1
 
13994
         ;;
 
13995
    esac
 
13996
    ;;
 
13997
 *-*-solaris*)
 
13998
    case "$need_dash_r" in
 
13999
     no) ;;
 
14000
     *)  need_dash_r=1
 
14001
         ;;
 
14002
    esac
 
14003
    ;;
4722
14004
esac
4723
14005
 
4724
14006
echo "$as_me:$LINENO: checking if we should use /dev/clockctl" >&5
4779
14061
  cat conftest.err >&5
4780
14062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781
14063
  (exit $ac_status); } &&
4782
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14064
         { ac_try='test -z "$ac_c_werror_flag"
 
14065
                         || test ! -s conftest.err'
4783
14066
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784
14067
  (eval $ac_try) 2>&5
4785
14068
  ac_status=$?
4955
14238
  cat conftest.err >&5
4956
14239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957
14240
  (exit $ac_status); } &&
4958
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14241
         { ac_try='test -z "$ac_c_werror_flag"
 
14242
                         || test ! -s conftest.err'
4959
14243
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960
14244
  (eval $ac_try) 2>&5
4961
14245
  ac_status=$?
5104
14388
  cat conftest.err >&5
5105
14389
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106
14390
  (exit $ac_status); } &&
5107
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14391
         { ac_try='test -z "$ac_c_werror_flag"
 
14392
                         || test ! -s conftest.err'
5108
14393
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109
14394
  (eval $ac_try) 2>&5
5110
14395
  ac_status=$?
5235
14520
    ;;
5236
14521
esac
5237
14522
 
5238
 
 
5239
14523
case "$build" in
5240
14524
 $host)
5241
14525
    ;;
5243
14527
     *-*-vxworks*)
5244
14528
        # Quick and dirty sanity check
5245
14529
        case "$VX_KERNEL" in
5246
 
         '') { { echo "$as_me:$LINENO: error: Please follow the directions in html/vxworks.html!" >&5
5247
 
echo "$as_me: error: Please follow the directions in html/vxworks.html!" >&2;}
 
14530
         '') { { echo "$as_me:$LINENO: error: Please follow the directions in html/build/hints/vxworks.html!" >&5
 
14531
echo "$as_me: error: Please follow the directions in html/build/hints/vxworks.html!" >&2;}
5248
14532
   { (exit 1); exit 1; }; }
5249
14533
            ;;
5250
14534
        esac
5333
14617
    CFLAGS="$CFLAGS -Wcast-qual"
5334
14618
    # CFLAGS="$CFLAGS -Wconversion"
5335
14619
    # CFLAGS="$CFLAGS -Werror"
 
14620
    # CFLAGS="$CFLAGS -Wextra"
 
14621
    # CFLAGS="$CFLAGS -Wfloat-equal"
5336
14622
    CFLAGS="$CFLAGS -Wmissing-prototypes"
5337
14623
    CFLAGS="$CFLAGS -Wpointer-arith"
5338
14624
    CFLAGS="$CFLAGS -Wshadow"
5343
14629
    ;;
5344
14630
esac
5345
14631
 
5346
 
ac_busted_vpath_in_make=no
5347
 
 
5348
14632
case "$host" in
5349
14633
 *-next-nextstep3)
5350
14634
    CFLAGS="$CFLAGS -posix"
5351
14635
    ;;
 
14636
esac
 
14637
 
 
14638
ac_busted_vpath_in_make=no
 
14639
 
 
14640
case "$build" in
5352
14641
 *-*-irix6.1*)  # 64 bit only
5353
14642
    # busted vpath?
5354
14643
    ;;
5355
14644
 *-*-irix6*)    # 6.2 (and later?)
5356
14645
    ac_busted_vpath_in_make=yes
5357
 
    # don't pass -n32 to gcc, it cannot handle and doesn't need it
5358
 
    if test "$GCC" != yes; then
5359
 
      case "$CFLAGS" in
5360
 
       *-n32*) ;;
5361
 
       *-n64*) ;;
5362
 
       *-64*) ;;
5363
 
       *) case "$iCFLAGS" in
5364
 
           '') CFLAGS="-O2 -g3 -n32" ;;
5365
 
           *)  CFLAGS="$CFLAGS -n32" ;;
5366
 
          esac
5367
 
          ;;
5368
 
      esac
5369
 
      case "$LDFLAGS" in
5370
 
       *-n32*) ;;
5371
 
       *-n64*) ;;
5372
 
       *-64*) ;;
5373
 
       *) LDFLAGS="$LDFLAGS -n32" ;;
5374
 
      esac
5375
 
    fi
5376
14646
    ;;
5377
14647
 *-*-solaris2.5.1)
5378
14648
    ac_busted_vpath_in_make=yes
5397
14667
esac
5398
14668
 
5399
14669
 
 
14670
# HMS: From bunnylou/cowbird
 
14671
case "$host" in
 
14672
 alpha-dec-osf4.0)
 
14673
    # Check whether --enable-shared or --disable-shared was given.
 
14674
if test "${enable_shared+set}" = set; then
 
14675
  enableval="$enable_shared"
 
14676
  p=${PACKAGE-default}
 
14677
    case $enableval in
 
14678
    yes) enable_shared=yes ;;
 
14679
    no) enable_shared=no ;;
 
14680
    *)
 
14681
      enable_shared=no
 
14682
      # Look at the argument we got.  We use all the common list separators.
 
14683
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
14684
      for pkg in $enableval; do
 
14685
        IFS="$lt_save_ifs"
 
14686
        if test "X$pkg" = "X$p"; then
 
14687
          enable_shared=yes
 
14688
        fi
 
14689
      done
 
14690
      IFS="$lt_save_ifs"
 
14691
      ;;
 
14692
    esac
 
14693
else
 
14694
  enable_shared=no
 
14695
fi;
 
14696
 
 
14697
 
 
14698
    ;;
 
14699
 *) # So far, the only shared library we might use is libopts.
 
14700
    # It's a small library - we might as well use a static version of it.
 
14701
    # Check whether --enable-shared or --disable-shared was given.
 
14702
if test "${enable_shared+set}" = set; then
 
14703
  enableval="$enable_shared"
 
14704
  p=${PACKAGE-default}
 
14705
    case $enableval in
 
14706
    yes) enable_shared=yes ;;
 
14707
    no) enable_shared=no ;;
 
14708
    *)
 
14709
      enable_shared=no
 
14710
      # Look at the argument we got.  We use all the common list separators.
 
14711
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
14712
      for pkg in $enableval; do
 
14713
        IFS="$lt_save_ifs"
 
14714
        if test "X$pkg" = "X$p"; then
 
14715
          enable_shared=yes
 
14716
        fi
 
14717
      done
 
14718
      IFS="$lt_save_ifs"
 
14719
      ;;
 
14720
    esac
 
14721
else
 
14722
  enable_shared=no
 
14723
fi;
 
14724
 
 
14725
 
 
14726
    ;;
 
14727
esac
 
14728
 
 
14729
# Check whether --enable-static or --disable-static was given.
 
14730
if test "${enable_static+set}" = set; then
 
14731
  enableval="$enable_static"
 
14732
  p=${PACKAGE-default}
 
14733
    case $enableval in
 
14734
    yes) enable_static=yes ;;
 
14735
    no) enable_static=no ;;
 
14736
    *)
 
14737
     enable_static=no
 
14738
      # Look at the argument we got.  We use all the common list separators.
 
14739
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
14740
      for pkg in $enableval; do
 
14741
        IFS="$lt_save_ifs"
 
14742
        if test "X$pkg" = "X$p"; then
 
14743
          enable_static=yes
 
14744
        fi
 
14745
      done
 
14746
      IFS="$lt_save_ifs"
 
14747
      ;;
 
14748
    esac
 
14749
else
 
14750
  enable_static=yes
 
14751
fi;
 
14752
 
 
14753
# Check whether --enable-fast-install or --disable-fast-install was given.
 
14754
if test "${enable_fast_install+set}" = set; then
 
14755
  enableval="$enable_fast_install"
 
14756
  p=${PACKAGE-default}
 
14757
    case $enableval in
 
14758
    yes) enable_fast_install=yes ;;
 
14759
    no) enable_fast_install=no ;;
 
14760
    *)
 
14761
      enable_fast_install=no
 
14762
      # Look at the argument we got.  We use all the common list separators.
 
14763
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
14764
      for pkg in $enableval; do
 
14765
        IFS="$lt_save_ifs"
 
14766
        if test "X$pkg" = "X$p"; then
 
14767
          enable_fast_install=yes
 
14768
        fi
 
14769
      done
 
14770
      IFS="$lt_save_ifs"
 
14771
      ;;
 
14772
    esac
 
14773
else
 
14774
  enable_fast_install=yes
 
14775
fi;
 
14776
 
 
14777
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
14778
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
14779
if test "${lt_cv_path_SED+set}" = set; then
 
14780
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14781
else
 
14782
  # Loop through the user's path and test for sed and gsed.
 
14783
# Then use that list of sed's as ones to test for truncation.
 
14784
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14785
for as_dir in $PATH
 
14786
do
 
14787
  IFS=$as_save_IFS
 
14788
  test -z "$as_dir" && as_dir=.
 
14789
  for lt_ac_prog in sed gsed; do
 
14790
    for ac_exec_ext in '' $ac_executable_extensions; do
 
14791
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
14792
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
14793
      fi
 
14794
    done
 
14795
  done
 
14796
done
 
14797
lt_ac_max=0
 
14798
lt_ac_count=0
 
14799
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
14800
# along with /bin/sed that truncates output.
 
14801
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
14802
  test ! -f $lt_ac_sed && continue
 
14803
  cat /dev/null > conftest.in
 
14804
  lt_ac_count=0
 
14805
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
14806
  # Check for GNU sed and select it if it is found.
 
14807
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
14808
    lt_cv_path_SED=$lt_ac_sed
 
14809
    break
 
14810
  fi
 
14811
  while true; do
 
14812
    cat conftest.in conftest.in >conftest.tmp
 
14813
    mv conftest.tmp conftest.in
 
14814
    cp conftest.in conftest.nl
 
14815
    echo >>conftest.nl
 
14816
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
14817
    cmp -s conftest.out conftest.nl || break
 
14818
    # 10000 chars as input seems more than enough
 
14819
    test $lt_ac_count -gt 10 && break
 
14820
    lt_ac_count=`expr $lt_ac_count + 1`
 
14821
    if test $lt_ac_count -gt $lt_ac_max; then
 
14822
      lt_ac_max=$lt_ac_count
 
14823
      lt_cv_path_SED=$lt_ac_sed
 
14824
    fi
 
14825
  done
 
14826
done
 
14827
 
 
14828
fi
 
14829
 
 
14830
SED=$lt_cv_path_SED
 
14831
echo "$as_me:$LINENO: result: $SED" >&5
 
14832
echo "${ECHO_T}$SED" >&6
 
14833
 
 
14834
 
 
14835
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
14836
if test "${with_gnu_ld+set}" = set; then
 
14837
  withval="$with_gnu_ld"
 
14838
  test "$withval" = no || with_gnu_ld=yes
 
14839
else
 
14840
  with_gnu_ld=no
 
14841
fi;
 
14842
ac_prog=ld
 
14843
if test "$GCC" = yes; then
 
14844
  # Check if gcc -print-prog-name=ld gives a path.
 
14845
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
14846
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
14847
  case $host in
 
14848
  *-*-mingw*)
 
14849
    # gcc leaves a trailing carriage return which upsets mingw
 
14850
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
14851
  *)
 
14852
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
14853
  esac
 
14854
  case $ac_prog in
 
14855
    # Accept absolute paths.
 
14856
    [\\/]* | ?:[\\/]*)
 
14857
      re_direlt='/[^/][^/]*/\.\./'
 
14858
      # Canonicalize the pathname of ld
 
14859
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
14860
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
14861
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
14862
      done
 
14863
      test -z "$LD" && LD="$ac_prog"
 
14864
      ;;
 
14865
  "")
 
14866
    # If it fails, then pretend we aren't using GCC.
 
14867
    ac_prog=ld
 
14868
    ;;
 
14869
  *)
 
14870
    # If it is relative, then search for the first ld in PATH.
 
14871
    with_gnu_ld=unknown
 
14872
    ;;
 
14873
  esac
 
14874
elif test "$with_gnu_ld" = yes; then
 
14875
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
14876
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
14877
else
 
14878
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
14879
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
14880
fi
 
14881
if test "${lt_cv_path_LD+set}" = set; then
 
14882
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14883
else
 
14884
  if test -z "$LD"; then
 
14885
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
14886
  for ac_dir in $PATH; do
 
14887
    IFS="$lt_save_ifs"
 
14888
    test -z "$ac_dir" && ac_dir=.
 
14889
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
14890
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
14891
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
14892
      # but apparently some variants of GNU ld only accept -v.
 
14893
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
14894
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
14895
      *GNU* | *'with BFD'*)
 
14896
        test "$with_gnu_ld" != no && break
 
14897
        ;;
 
14898
      *)
 
14899
        test "$with_gnu_ld" != yes && break
 
14900
        ;;
 
14901
      esac
 
14902
    fi
 
14903
  done
 
14904
  IFS="$lt_save_ifs"
 
14905
else
 
14906
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
14907
fi
 
14908
fi
 
14909
 
 
14910
LD="$lt_cv_path_LD"
 
14911
if test -n "$LD"; then
 
14912
  echo "$as_me:$LINENO: result: $LD" >&5
 
14913
echo "${ECHO_T}$LD" >&6
 
14914
else
 
14915
  echo "$as_me:$LINENO: result: no" >&5
 
14916
echo "${ECHO_T}no" >&6
 
14917
fi
 
14918
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
14919
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
14920
   { (exit 1); exit 1; }; }
 
14921
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
14922
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
14923
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
14924
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14925
else
 
14926
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
14927
case `$LD -v 2>&1 </dev/null` in
 
14928
*GNU* | *'with BFD'*)
 
14929
  lt_cv_prog_gnu_ld=yes
 
14930
  ;;
 
14931
*)
 
14932
  lt_cv_prog_gnu_ld=no
 
14933
  ;;
 
14934
esac
 
14935
fi
 
14936
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
14937
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
14938
with_gnu_ld=$lt_cv_prog_gnu_ld
 
14939
 
 
14940
 
 
14941
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
14942
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
14943
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
14944
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14945
else
 
14946
  lt_cv_ld_reload_flag='-r'
 
14947
fi
 
14948
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
14949
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
14950
reload_flag=$lt_cv_ld_reload_flag
 
14951
case $reload_flag in
 
14952
"" | " "*) ;;
 
14953
*) reload_flag=" $reload_flag" ;;
 
14954
esac
 
14955
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
14956
case $host_os in
 
14957
  darwin*)
 
14958
    if test "$GCC" = yes; then
 
14959
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
14960
    else
 
14961
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
14962
    fi
 
14963
    ;;
 
14964
esac
 
14965
 
 
14966
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
14967
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
14968
if test "${lt_cv_path_NM+set}" = set; then
 
14969
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14970
else
 
14971
  if test -n "$NM"; then
 
14972
  # Let the user override the test.
 
14973
  lt_cv_path_NM="$NM"
 
14974
else
 
14975
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
14976
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
14977
    IFS="$lt_save_ifs"
 
14978
    test -z "$ac_dir" && ac_dir=.
 
14979
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
14980
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
14981
      # Check to see if the nm accepts a BSD-compat flag.
 
14982
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
14983
      #   nm: unknown option "B" ignored
 
14984
      # Tru64's nm complains that /dev/null is an invalid object file
 
14985
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
14986
      */dev/null* | *'Invalid file or object type'*)
 
14987
        lt_cv_path_NM="$tmp_nm -B"
 
14988
        break
 
14989
        ;;
 
14990
      *)
 
14991
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
14992
        */dev/null*)
 
14993
          lt_cv_path_NM="$tmp_nm -p"
 
14994
          break
 
14995
          ;;
 
14996
        *)
 
14997
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
14998
          continue # so that we can try to find one that supports BSD flags
 
14999
          ;;
 
15000
        esac
 
15001
      esac
 
15002
    fi
 
15003
  done
 
15004
  IFS="$lt_save_ifs"
 
15005
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
15006
fi
 
15007
fi
 
15008
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
15009
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
15010
NM="$lt_cv_path_NM"
 
15011
 
5400
15012
echo "$as_me:$LINENO: checking whether ln -s works" >&5
5401
15013
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5402
15014
LN_S=$as_ln_s
5408
15020
echo "${ECHO_T}no, using $LN_S" >&6
5409
15021
fi
5410
15022
 
5411
 
if test $ac_cv_c_compiler_gnu = yes; then
5412
 
    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5413
 
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
5414
 
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5415
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5416
 
else
5417
 
    ac_pattern="Autoconf.*'x'"
5418
 
  cat >conftest.$ac_ext <<_ACEOF
5419
 
/* confdefs.h.  */
5420
 
_ACEOF
5421
 
cat confdefs.h >>conftest.$ac_ext
5422
 
cat >>conftest.$ac_ext <<_ACEOF
5423
 
/* end confdefs.h.  */
5424
 
#include <sgtty.h>
5425
 
Autoconf TIOCGETP
5426
 
_ACEOF
5427
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5428
 
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
5429
 
  ac_cv_prog_gcc_traditional=yes
5430
 
else
5431
 
  ac_cv_prog_gcc_traditional=no
5432
 
fi
5433
 
rm -f conftest*
5434
 
 
5435
 
 
5436
 
  if test $ac_cv_prog_gcc_traditional = no; then
5437
 
    cat >conftest.$ac_ext <<_ACEOF
5438
 
/* confdefs.h.  */
5439
 
_ACEOF
5440
 
cat confdefs.h >>conftest.$ac_ext
5441
 
cat >>conftest.$ac_ext <<_ACEOF
5442
 
/* end confdefs.h.  */
5443
 
#include <termio.h>
5444
 
Autoconf TCGETA
5445
 
_ACEOF
5446
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5447
 
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
5448
 
  ac_cv_prog_gcc_traditional=yes
5449
 
fi
5450
 
rm -f conftest*
5451
 
 
5452
 
  fi
5453
 
fi
5454
 
echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5455
 
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
5456
 
  if test $ac_cv_prog_gcc_traditional = yes; then
5457
 
    CC="$CC -traditional"
5458
 
  fi
5459
 
fi
5460
 
 
5461
 
echo "$as_me:$LINENO: checking for working volatile" >&5
5462
 
echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
5463
 
if test "${ac_cv_c_volatile+set}" = set; then
5464
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5465
 
else
5466
 
  cat >conftest.$ac_ext <<_ACEOF
5467
 
/* confdefs.h.  */
5468
 
_ACEOF
5469
 
cat confdefs.h >>conftest.$ac_ext
5470
 
cat >>conftest.$ac_ext <<_ACEOF
5471
 
/* end confdefs.h.  */
5472
 
 
5473
 
int
5474
 
main ()
5475
 
{
5476
 
 
5477
 
volatile int x;
5478
 
int * volatile y;
5479
 
  ;
5480
 
  return 0;
5481
 
}
5482
 
_ACEOF
5483
 
rm -f conftest.$ac_objext
5484
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5485
 
  (eval $ac_compile) 2>conftest.er1
5486
 
  ac_status=$?
5487
 
  grep -v '^ *+' conftest.er1 >conftest.err
5488
 
  rm -f conftest.er1
5489
 
  cat conftest.err >&5
5490
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491
 
  (exit $ac_status); } &&
5492
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5493
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494
 
  (eval $ac_try) 2>&5
5495
 
  ac_status=$?
5496
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497
 
  (exit $ac_status); }; } &&
5498
 
         { ac_try='test -s conftest.$ac_objext'
5499
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5500
 
  (eval $ac_try) 2>&5
5501
 
  ac_status=$?
5502
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503
 
  (exit $ac_status); }; }; then
5504
 
  ac_cv_c_volatile=yes
5505
 
else
5506
 
  echo "$as_me: failed program was:" >&5
5507
 
sed 's/^/| /' conftest.$ac_ext >&5
5508
 
 
5509
 
ac_cv_c_volatile=no
5510
 
fi
5511
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5512
 
fi
5513
 
echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5514
 
echo "${ECHO_T}$ac_cv_c_volatile" >&6
5515
 
if test $ac_cv_c_volatile = no; then
5516
 
 
5517
 
cat >>confdefs.h <<\_ACEOF
5518
 
#define volatile
5519
 
_ACEOF
5520
 
 
5521
 
fi
5522
 
 
5523
 
 
5524
 
        echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5525
 
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
5526
 
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5527
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5528
 
else
5529
 
  ac_check_lib_save_LIBS=$LIBS
5530
 
LIBS="-lcposix  $LIBS"
5531
 
cat >conftest.$ac_ext <<_ACEOF
5532
 
/* confdefs.h.  */
5533
 
_ACEOF
5534
 
cat confdefs.h >>conftest.$ac_ext
5535
 
cat >>conftest.$ac_ext <<_ACEOF
5536
 
/* end confdefs.h.  */
5537
 
 
5538
 
/* Override any gcc2 internal prototype to avoid an error.  */
5539
 
#ifdef __cplusplus
5540
 
extern "C"
5541
 
#endif
5542
 
/* We use char because int might match the return type of a gcc2
5543
 
   builtin and then its argument prototype would still apply.  */
5544
 
char strerror ();
5545
 
int
5546
 
main ()
5547
 
{
5548
 
strerror ();
 
15023
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
15024
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
15025
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
15026
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15027
else
 
15028
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
15029
lt_cv_file_magic_test_file=
 
15030
lt_cv_deplibs_check_method='unknown'
 
15031
# Need to set the preceding variable on all platforms that support
 
15032
# interlibrary dependencies.
 
15033
# 'none' -- dependencies not supported.
 
15034
# `unknown' -- same as none, but documents that we really don't know.
 
15035
# 'pass_all' -- all dependencies passed with no checks.
 
15036
# 'test_compile' -- check by making test program.
 
15037
# 'file_magic [[regex]]' -- check by looking for files in library path
 
15038
# which responds to the $file_magic_cmd with a given extended regex.
 
15039
# If you have `file' or equivalent on your system and you're not sure
 
15040
# whether `pass_all' will *always* work, you probably want this one.
 
15041
 
 
15042
case $host_os in
 
15043
aix4* | aix5*)
 
15044
  lt_cv_deplibs_check_method=pass_all
 
15045
  ;;
 
15046
 
 
15047
beos*)
 
15048
  lt_cv_deplibs_check_method=pass_all
 
15049
  ;;
 
15050
 
 
15051
bsdi[45]*)
 
15052
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
15053
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
15054
  lt_cv_file_magic_test_file=/shlib/libc.so
 
15055
  ;;
 
15056
 
 
15057
cygwin*)
 
15058
  # func_win32_libid is a shell function defined in ltmain.sh
 
15059
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
15060
  lt_cv_file_magic_cmd='func_win32_libid'
 
15061
  ;;
 
15062
 
 
15063
mingw* | pw32*)
 
15064
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
15065
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
15066
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
15067
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
15068
  ;;
 
15069
 
 
15070
darwin* | rhapsody*)
 
15071
  lt_cv_deplibs_check_method=pass_all
 
15072
  ;;
 
15073
 
 
15074
freebsd* | kfreebsd*-gnu | dragonfly*)
 
15075
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
15076
    case $host_cpu in
 
15077
    i*86 )
 
15078
      # Not sure whether the presence of OpenBSD here was a mistake.
 
15079
      # Let's accept both of them until this is cleared up.
 
15080
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
15081
      lt_cv_file_magic_cmd=/usr/bin/file
 
15082
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
15083
      ;;
 
15084
    esac
 
15085
  else
 
15086
    lt_cv_deplibs_check_method=pass_all
 
15087
  fi
 
15088
  ;;
 
15089
 
 
15090
gnu*)
 
15091
  lt_cv_deplibs_check_method=pass_all
 
15092
  ;;
 
15093
 
 
15094
hpux10.20* | hpux11*)
 
15095
  lt_cv_file_magic_cmd=/usr/bin/file
 
15096
  case $host_cpu in
 
15097
  ia64*)
 
15098
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
15099
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
15100
    ;;
 
15101
  hppa*64*)
 
15102
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
 
15103
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
15104
    ;;
 
15105
  *)
 
15106
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
15107
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
15108
    ;;
 
15109
  esac
 
15110
  ;;
 
15111
 
 
15112
irix5* | irix6* | nonstopux*)
 
15113
  case $LD in
 
15114
  *-32|*"-32 ") libmagic=32-bit;;
 
15115
  *-n32|*"-n32 ") libmagic=N32;;
 
15116
  *-64|*"-64 ") libmagic=64-bit;;
 
15117
  *) libmagic=never-match;;
 
15118
  esac
 
15119
  lt_cv_deplibs_check_method=pass_all
 
15120
  ;;
 
15121
 
 
15122
# This must be Linux ELF.
 
15123
linux*)
 
15124
  lt_cv_deplibs_check_method=pass_all
 
15125
  ;;
 
15126
 
 
15127
netbsd*)
 
15128
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
15129
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
15130
  else
 
15131
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
15132
  fi
 
15133
  ;;
 
15134
 
 
15135
newos6*)
 
15136
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
15137
  lt_cv_file_magic_cmd=/usr/bin/file
 
15138
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
15139
  ;;
 
15140
 
 
15141
nto-qnx*)
 
15142
  lt_cv_deplibs_check_method=unknown
 
15143
  ;;
 
15144
 
 
15145
openbsd*)
 
15146
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15147
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
15148
  else
 
15149
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
15150
  fi
 
15151
  ;;
 
15152
 
 
15153
osf3* | osf4* | osf5*)
 
15154
  lt_cv_deplibs_check_method=pass_all
 
15155
  ;;
 
15156
 
 
15157
sco3.2v5*)
 
15158
  lt_cv_deplibs_check_method=pass_all
 
15159
  ;;
 
15160
 
 
15161
solaris*)
 
15162
  lt_cv_deplibs_check_method=pass_all
 
15163
  ;;
 
15164
 
 
15165
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15166
  case $host_vendor in
 
15167
  motorola)
 
15168
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
 
15169
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
15170
    ;;
 
15171
  ncr)
 
15172
    lt_cv_deplibs_check_method=pass_all
 
15173
    ;;
 
15174
  sequent)
 
15175
    lt_cv_file_magic_cmd='/bin/file'
 
15176
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
15177
    ;;
 
15178
  sni)
 
15179
    lt_cv_file_magic_cmd='/bin/file'
 
15180
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
15181
    lt_cv_file_magic_test_file=/lib/libc.so
 
15182
    ;;
 
15183
  siemens)
 
15184
    lt_cv_deplibs_check_method=pass_all
 
15185
    ;;
 
15186
  esac
 
15187
  ;;
 
15188
 
 
15189
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
15190
  lt_cv_deplibs_check_method=pass_all
 
15191
  ;;
 
15192
esac
 
15193
 
 
15194
fi
 
15195
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
15196
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
15197
file_magic_cmd=$lt_cv_file_magic_cmd
 
15198
deplibs_check_method=$lt_cv_deplibs_check_method
 
15199
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
15200
 
 
15201
 
 
15202
 
 
15203
 
 
15204
# If no C compiler was specified, use CC.
 
15205
LTCC=${LTCC-"$CC"}
 
15206
 
 
15207
# Allow CC to be a program name with arguments.
 
15208
compiler=$CC
 
15209
 
 
15210
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
15211
if test "${enable_libtool_lock+set}" = set; then
 
15212
  enableval="$enable_libtool_lock"
 
15213
 
 
15214
fi;
 
15215
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
15216
 
 
15217
# Some flags need to be propagated to the compiler or linker for good
 
15218
# libtool support.
 
15219
case $host in
 
15220
ia64-*-hpux*)
 
15221
  # Find out which ABI we are using.
 
15222
  echo 'int i;' > conftest.$ac_ext
 
15223
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15224
  (eval $ac_compile) 2>&5
 
15225
  ac_status=$?
 
15226
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15227
  (exit $ac_status); }; then
 
15228
    case `/usr/bin/file conftest.$ac_objext` in
 
15229
    *ELF-32*)
 
15230
      HPUX_IA64_MODE="32"
 
15231
      ;;
 
15232
    *ELF-64*)
 
15233
      HPUX_IA64_MODE="64"
 
15234
      ;;
 
15235
    esac
 
15236
  fi
 
15237
  rm -rf conftest*
 
15238
  ;;
 
15239
*-*-irix6*)
 
15240
  # Find out which ABI we are using.
 
15241
  echo '#line 15241 "configure"' > conftest.$ac_ext
 
15242
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15243
  (eval $ac_compile) 2>&5
 
15244
  ac_status=$?
 
15245
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15246
  (exit $ac_status); }; then
 
15247
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
15248
    case `/usr/bin/file conftest.$ac_objext` in
 
15249
    *32-bit*)
 
15250
      LD="${LD-ld} -melf32bsmip"
 
15251
      ;;
 
15252
    *N32*)
 
15253
      LD="${LD-ld} -melf32bmipn32"
 
15254
      ;;
 
15255
    *64-bit*)
 
15256
      LD="${LD-ld} -melf64bmip"
 
15257
      ;;
 
15258
    esac
 
15259
   else
 
15260
    case `/usr/bin/file conftest.$ac_objext` in
 
15261
    *32-bit*)
 
15262
      LD="${LD-ld} -32"
 
15263
      ;;
 
15264
    *N32*)
 
15265
      LD="${LD-ld} -n32"
 
15266
      ;;
 
15267
    *64-bit*)
 
15268
      LD="${LD-ld} -64"
 
15269
      ;;
 
15270
    esac
 
15271
   fi
 
15272
  fi
 
15273
  rm -rf conftest*
 
15274
  ;;
 
15275
 
 
15276
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
15277
  # Find out which ABI we are using.
 
15278
  echo 'int i;' > conftest.$ac_ext
 
15279
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15280
  (eval $ac_compile) 2>&5
 
15281
  ac_status=$?
 
15282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15283
  (exit $ac_status); }; then
 
15284
    case `/usr/bin/file conftest.o` in
 
15285
    *32-bit*)
 
15286
      case $host in
 
15287
        x86_64-*linux*)
 
15288
          LD="${LD-ld} -m elf_i386"
 
15289
          ;;
 
15290
        ppc64-*linux*|powerpc64-*linux*)
 
15291
          LD="${LD-ld} -m elf32ppclinux"
 
15292
          ;;
 
15293
        s390x-*linux*)
 
15294
          LD="${LD-ld} -m elf_s390"
 
15295
          ;;
 
15296
        sparc64-*linux*)
 
15297
          LD="${LD-ld} -m elf32_sparc"
 
15298
          ;;
 
15299
      esac
 
15300
      ;;
 
15301
    *64-bit*)
 
15302
      case $host in
 
15303
        x86_64-*linux*)
 
15304
          LD="${LD-ld} -m elf_x86_64"
 
15305
          ;;
 
15306
        ppc*-*linux*|powerpc*-*linux*)
 
15307
          LD="${LD-ld} -m elf64ppc"
 
15308
          ;;
 
15309
        s390*-*linux*)
 
15310
          LD="${LD-ld} -m elf64_s390"
 
15311
          ;;
 
15312
        sparc*-*linux*)
 
15313
          LD="${LD-ld} -m elf64_sparc"
 
15314
          ;;
 
15315
      esac
 
15316
      ;;
 
15317
    esac
 
15318
  fi
 
15319
  rm -rf conftest*
 
15320
  ;;
 
15321
 
 
15322
*-*-sco3.2v5*)
 
15323
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
15324
  SAVE_CFLAGS="$CFLAGS"
 
15325
  CFLAGS="$CFLAGS -belf"
 
15326
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
15327
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
15328
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
15329
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15330
else
 
15331
  ac_ext=c
 
15332
ac_cpp='$CPP $CPPFLAGS'
 
15333
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15334
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15335
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15336
 
 
15337
     cat >conftest.$ac_ext <<_ACEOF
 
15338
/* confdefs.h.  */
 
15339
_ACEOF
 
15340
cat confdefs.h >>conftest.$ac_ext
 
15341
cat >>conftest.$ac_ext <<_ACEOF
 
15342
/* end confdefs.h.  */
 
15343
 
 
15344
int
 
15345
main ()
 
15346
{
 
15347
 
5549
15348
  ;
5550
15349
  return 0;
5551
15350
}
5559
15358
  cat conftest.err >&5
5560
15359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561
15360
  (exit $ac_status); } &&
5562
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15361
         { ac_try='test -z "$ac_c_werror_flag"
 
15362
                         || test ! -s conftest.err'
5563
15363
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5564
15364
  (eval $ac_try) 2>&5
5565
15365
  ac_status=$?
5571
15371
  ac_status=$?
5572
15372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573
15373
  (exit $ac_status); }; }; then
5574
 
  ac_cv_lib_cposix_strerror=yes
 
15374
  lt_cv_cc_needs_belf=yes
5575
15375
else
5576
15376
  echo "$as_me: failed program was:" >&5
5577
15377
sed 's/^/| /' conftest.$ac_ext >&5
5578
15378
 
5579
 
ac_cv_lib_cposix_strerror=no
 
15379
lt_cv_cc_needs_belf=no
5580
15380
fi
5581
15381
rm -f conftest.err conftest.$ac_objext \
5582
15382
      conftest$ac_exeext conftest.$ac_ext
5583
 
LIBS=$ac_check_lib_save_LIBS
5584
 
fi
5585
 
echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5586
 
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
5587
 
if test $ac_cv_lib_cposix_strerror = yes; then
5588
 
  LIBS="$LIBS -lcposix"
5589
 
fi
5590
 
 
5591
 
 
 
15383
     ac_ext=c
 
15384
ac_cpp='$CPP $CPPFLAGS'
 
15385
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15386
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15387
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15388
 
 
15389
fi
 
15390
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
15391
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
15392
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
15393
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
15394
    CFLAGS="$SAVE_CFLAGS"
 
15395
  fi
 
15396
  ;;
 
15397
 
 
15398
esac
 
15399
 
 
15400
need_locks="$enable_libtool_lock"
 
15401
 
 
15402
 
 
15403
 
 
15404
for ac_header in dlfcn.h
 
15405
do
 
15406
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
15407
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
15408
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
15409
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
15410
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
15411
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15412
fi
 
15413
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
15414
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
15415
else
 
15416
  # Is the header compilable?
 
15417
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
15418
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
15419
cat >conftest.$ac_ext <<_ACEOF
 
15420
/* confdefs.h.  */
 
15421
_ACEOF
 
15422
cat confdefs.h >>conftest.$ac_ext
 
15423
cat >>conftest.$ac_ext <<_ACEOF
 
15424
/* end confdefs.h.  */
 
15425
$ac_includes_default
 
15426
#include <$ac_header>
 
15427
_ACEOF
 
15428
rm -f conftest.$ac_objext
 
15429
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15430
  (eval $ac_compile) 2>conftest.er1
 
15431
  ac_status=$?
 
15432
  grep -v '^ *+' conftest.er1 >conftest.err
 
15433
  rm -f conftest.er1
 
15434
  cat conftest.err >&5
 
15435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15436
  (exit $ac_status); } &&
 
15437
         { ac_try='test -z "$ac_c_werror_flag"
 
15438
                         || test ! -s conftest.err'
 
15439
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15440
  (eval $ac_try) 2>&5
 
15441
  ac_status=$?
 
15442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15443
  (exit $ac_status); }; } &&
 
15444
         { ac_try='test -s conftest.$ac_objext'
 
15445
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15446
  (eval $ac_try) 2>&5
 
15447
  ac_status=$?
 
15448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15449
  (exit $ac_status); }; }; then
 
15450
  ac_header_compiler=yes
 
15451
else
 
15452
  echo "$as_me: failed program was:" >&5
 
15453
sed 's/^/| /' conftest.$ac_ext >&5
 
15454
 
 
15455
ac_header_compiler=no
 
15456
fi
 
15457
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15458
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
15459
echo "${ECHO_T}$ac_header_compiler" >&6
 
15460
 
 
15461
# Is the header present?
 
15462
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
15463
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
15464
cat >conftest.$ac_ext <<_ACEOF
 
15465
/* confdefs.h.  */
 
15466
_ACEOF
 
15467
cat confdefs.h >>conftest.$ac_ext
 
15468
cat >>conftest.$ac_ext <<_ACEOF
 
15469
/* end confdefs.h.  */
 
15470
#include <$ac_header>
 
15471
_ACEOF
 
15472
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
15473
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
15474
  ac_status=$?
 
15475
  grep -v '^ *+' conftest.er1 >conftest.err
 
15476
  rm -f conftest.er1
 
15477
  cat conftest.err >&5
 
15478
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15479
  (exit $ac_status); } >/dev/null; then
 
15480
  if test -s conftest.err; then
 
15481
    ac_cpp_err=$ac_c_preproc_warn_flag
 
15482
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
15483
  else
 
15484
    ac_cpp_err=
 
15485
  fi
 
15486
else
 
15487
  ac_cpp_err=yes
 
15488
fi
 
15489
if test -z "$ac_cpp_err"; then
 
15490
  ac_header_preproc=yes
 
15491
else
 
15492
  echo "$as_me: failed program was:" >&5
 
15493
sed 's/^/| /' conftest.$ac_ext >&5
 
15494
 
 
15495
  ac_header_preproc=no
 
15496
fi
 
15497
rm -f conftest.err conftest.$ac_ext
 
15498
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
15499
echo "${ECHO_T}$ac_header_preproc" >&6
 
15500
 
 
15501
# So?  What about this header?
 
15502
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
15503
  yes:no: )
 
15504
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
15505
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
15506
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
15507
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
15508
    ac_header_preproc=yes
 
15509
    ;;
 
15510
  no:yes:* )
 
15511
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
15512
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
15513
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
15514
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
15515
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
15516
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
15517
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
15518
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
15519
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
15520
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
15521
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
15522
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
15523
    (
 
15524
      cat <<\_ASBOX
 
15525
## ------------------------------ ##
 
15526
## Report this to the ntp lists.  ##
 
15527
## ------------------------------ ##
 
15528
_ASBOX
 
15529
    ) |
 
15530
      sed "s/^/$as_me: WARNING:     /" >&2
 
15531
    ;;
 
15532
esac
 
15533
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
15534
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
15535
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
15536
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15537
else
 
15538
  eval "$as_ac_Header=\$ac_header_preproc"
 
15539
fi
 
15540
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
15541
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
15542
 
 
15543
fi
 
15544
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
15545
  cat >>confdefs.h <<_ACEOF
 
15546
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
15547
_ACEOF
 
15548
 
 
15549
fi
 
15550
 
 
15551
done
 
15552
 
 
15553
ac_ext=cc
 
15554
ac_cpp='$CXXCPP $CPPFLAGS'
 
15555
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15556
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15557
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
15558
if test -n "$ac_tool_prefix"; then
 
15559
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
15560
  do
 
15561
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
15562
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
15563
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
15564
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
15565
if test "${ac_cv_prog_CXX+set}" = set; then
 
15566
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15567
else
 
15568
  if test -n "$CXX"; then
 
15569
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
15570
else
 
15571
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15572
for as_dir in $PATH
 
15573
do
 
15574
  IFS=$as_save_IFS
 
15575
  test -z "$as_dir" && as_dir=.
 
15576
  for ac_exec_ext in '' $ac_executable_extensions; do
 
15577
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
15578
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
15579
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15580
    break 2
 
15581
  fi
 
15582
done
 
15583
done
 
15584
 
 
15585
fi
 
15586
fi
 
15587
CXX=$ac_cv_prog_CXX
 
15588
if test -n "$CXX"; then
 
15589
  echo "$as_me:$LINENO: result: $CXX" >&5
 
15590
echo "${ECHO_T}$CXX" >&6
 
15591
else
 
15592
  echo "$as_me:$LINENO: result: no" >&5
 
15593
echo "${ECHO_T}no" >&6
 
15594
fi
 
15595
 
 
15596
    test -n "$CXX" && break
 
15597
  done
 
15598
fi
 
15599
if test -z "$CXX"; then
 
15600
  ac_ct_CXX=$CXX
 
15601
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
15602
do
 
15603
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
15604
set dummy $ac_prog; ac_word=$2
 
15605
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
15606
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
15607
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
15608
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15609
else
 
15610
  if test -n "$ac_ct_CXX"; then
 
15611
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
15612
else
 
15613
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15614
for as_dir in $PATH
 
15615
do
 
15616
  IFS=$as_save_IFS
 
15617
  test -z "$as_dir" && as_dir=.
 
15618
  for ac_exec_ext in '' $ac_executable_extensions; do
 
15619
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
15620
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
15621
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15622
    break 2
 
15623
  fi
 
15624
done
 
15625
done
 
15626
 
 
15627
fi
 
15628
fi
 
15629
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
15630
if test -n "$ac_ct_CXX"; then
 
15631
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
15632
echo "${ECHO_T}$ac_ct_CXX" >&6
 
15633
else
 
15634
  echo "$as_me:$LINENO: result: no" >&5
 
15635
echo "${ECHO_T}no" >&6
 
15636
fi
 
15637
 
 
15638
  test -n "$ac_ct_CXX" && break
 
15639
done
 
15640
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
15641
 
 
15642
  CXX=$ac_ct_CXX
 
15643
fi
 
15644
 
 
15645
 
 
15646
# Provide some information about the compiler.
 
15647
echo "$as_me:$LINENO:" \
 
15648
     "checking for C++ compiler version" >&5
 
15649
ac_compiler=`set X $ac_compile; echo $2`
 
15650
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
15651
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
15652
  ac_status=$?
 
15653
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15654
  (exit $ac_status); }
 
15655
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
15656
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
15657
  ac_status=$?
 
15658
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15659
  (exit $ac_status); }
 
15660
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
15661
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
15662
  ac_status=$?
 
15663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15664
  (exit $ac_status); }
 
15665
 
 
15666
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
15667
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
15668
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
15669
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15670
else
 
15671
  cat >conftest.$ac_ext <<_ACEOF
 
15672
/* confdefs.h.  */
 
15673
_ACEOF
 
15674
cat confdefs.h >>conftest.$ac_ext
 
15675
cat >>conftest.$ac_ext <<_ACEOF
 
15676
/* end confdefs.h.  */
 
15677
 
 
15678
int
 
15679
main ()
 
15680
{
 
15681
#ifndef __GNUC__
 
15682
       choke me
 
15683
#endif
 
15684
 
 
15685
  ;
 
15686
  return 0;
 
15687
}
 
15688
_ACEOF
 
15689
rm -f conftest.$ac_objext
 
15690
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15691
  (eval $ac_compile) 2>conftest.er1
 
15692
  ac_status=$?
 
15693
  grep -v '^ *+' conftest.er1 >conftest.err
 
15694
  rm -f conftest.er1
 
15695
  cat conftest.err >&5
 
15696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15697
  (exit $ac_status); } &&
 
15698
         { ac_try='test -z "$ac_cxx_werror_flag"
 
15699
                         || test ! -s conftest.err'
 
15700
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15701
  (eval $ac_try) 2>&5
 
15702
  ac_status=$?
 
15703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15704
  (exit $ac_status); }; } &&
 
15705
         { ac_try='test -s conftest.$ac_objext'
 
15706
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15707
  (eval $ac_try) 2>&5
 
15708
  ac_status=$?
 
15709
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15710
  (exit $ac_status); }; }; then
 
15711
  ac_compiler_gnu=yes
 
15712
else
 
15713
  echo "$as_me: failed program was:" >&5
 
15714
sed 's/^/| /' conftest.$ac_ext >&5
 
15715
 
 
15716
ac_compiler_gnu=no
 
15717
fi
 
15718
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15719
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
15720
 
 
15721
fi
 
15722
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
15723
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
15724
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
15725
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
15726
ac_save_CXXFLAGS=$CXXFLAGS
 
15727
CXXFLAGS="-g"
 
15728
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
15729
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
15730
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
15731
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15732
else
 
15733
  cat >conftest.$ac_ext <<_ACEOF
 
15734
/* confdefs.h.  */
 
15735
_ACEOF
 
15736
cat confdefs.h >>conftest.$ac_ext
 
15737
cat >>conftest.$ac_ext <<_ACEOF
 
15738
/* end confdefs.h.  */
 
15739
 
 
15740
int
 
15741
main ()
 
15742
{
 
15743
 
 
15744
  ;
 
15745
  return 0;
 
15746
}
 
15747
_ACEOF
 
15748
rm -f conftest.$ac_objext
 
15749
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15750
  (eval $ac_compile) 2>conftest.er1
 
15751
  ac_status=$?
 
15752
  grep -v '^ *+' conftest.er1 >conftest.err
 
15753
  rm -f conftest.er1
 
15754
  cat conftest.err >&5
 
15755
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15756
  (exit $ac_status); } &&
 
15757
         { ac_try='test -z "$ac_cxx_werror_flag"
 
15758
                         || test ! -s conftest.err'
 
15759
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15760
  (eval $ac_try) 2>&5
 
15761
  ac_status=$?
 
15762
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15763
  (exit $ac_status); }; } &&
 
15764
         { ac_try='test -s conftest.$ac_objext'
 
15765
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15766
  (eval $ac_try) 2>&5
 
15767
  ac_status=$?
 
15768
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15769
  (exit $ac_status); }; }; then
 
15770
  ac_cv_prog_cxx_g=yes
 
15771
else
 
15772
  echo "$as_me: failed program was:" >&5
 
15773
sed 's/^/| /' conftest.$ac_ext >&5
 
15774
 
 
15775
ac_cv_prog_cxx_g=no
 
15776
fi
 
15777
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15778
fi
 
15779
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
15780
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
15781
if test "$ac_test_CXXFLAGS" = set; then
 
15782
  CXXFLAGS=$ac_save_CXXFLAGS
 
15783
elif test $ac_cv_prog_cxx_g = yes; then
 
15784
  if test "$GXX" = yes; then
 
15785
    CXXFLAGS="-g -O2"
 
15786
  else
 
15787
    CXXFLAGS="-g"
 
15788
  fi
 
15789
else
 
15790
  if test "$GXX" = yes; then
 
15791
    CXXFLAGS="-O2"
 
15792
  else
 
15793
    CXXFLAGS=
 
15794
  fi
 
15795
fi
 
15796
for ac_declaration in \
 
15797
   '' \
 
15798
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
15799
   'extern "C" void std::exit (int); using std::exit;' \
 
15800
   'extern "C" void exit (int) throw ();' \
 
15801
   'extern "C" void exit (int);' \
 
15802
   'void exit (int);'
 
15803
do
 
15804
  cat >conftest.$ac_ext <<_ACEOF
 
15805
/* confdefs.h.  */
 
15806
_ACEOF
 
15807
cat confdefs.h >>conftest.$ac_ext
 
15808
cat >>conftest.$ac_ext <<_ACEOF
 
15809
/* end confdefs.h.  */
 
15810
$ac_declaration
 
15811
#include <stdlib.h>
 
15812
int
 
15813
main ()
 
15814
{
 
15815
exit (42);
 
15816
  ;
 
15817
  return 0;
 
15818
}
 
15819
_ACEOF
 
15820
rm -f conftest.$ac_objext
 
15821
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15822
  (eval $ac_compile) 2>conftest.er1
 
15823
  ac_status=$?
 
15824
  grep -v '^ *+' conftest.er1 >conftest.err
 
15825
  rm -f conftest.er1
 
15826
  cat conftest.err >&5
 
15827
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15828
  (exit $ac_status); } &&
 
15829
         { ac_try='test -z "$ac_cxx_werror_flag"
 
15830
                         || test ! -s conftest.err'
 
15831
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15832
  (eval $ac_try) 2>&5
 
15833
  ac_status=$?
 
15834
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15835
  (exit $ac_status); }; } &&
 
15836
         { ac_try='test -s conftest.$ac_objext'
 
15837
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15838
  (eval $ac_try) 2>&5
 
15839
  ac_status=$?
 
15840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15841
  (exit $ac_status); }; }; then
 
15842
  :
 
15843
else
 
15844
  echo "$as_me: failed program was:" >&5
 
15845
sed 's/^/| /' conftest.$ac_ext >&5
 
15846
 
 
15847
continue
 
15848
fi
 
15849
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15850
  cat >conftest.$ac_ext <<_ACEOF
 
15851
/* confdefs.h.  */
 
15852
_ACEOF
 
15853
cat confdefs.h >>conftest.$ac_ext
 
15854
cat >>conftest.$ac_ext <<_ACEOF
 
15855
/* end confdefs.h.  */
 
15856
$ac_declaration
 
15857
int
 
15858
main ()
 
15859
{
 
15860
exit (42);
 
15861
  ;
 
15862
  return 0;
 
15863
}
 
15864
_ACEOF
 
15865
rm -f conftest.$ac_objext
 
15866
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15867
  (eval $ac_compile) 2>conftest.er1
 
15868
  ac_status=$?
 
15869
  grep -v '^ *+' conftest.er1 >conftest.err
 
15870
  rm -f conftest.er1
 
15871
  cat conftest.err >&5
 
15872
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15873
  (exit $ac_status); } &&
 
15874
         { ac_try='test -z "$ac_cxx_werror_flag"
 
15875
                         || test ! -s conftest.err'
 
15876
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15877
  (eval $ac_try) 2>&5
 
15878
  ac_status=$?
 
15879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15880
  (exit $ac_status); }; } &&
 
15881
         { ac_try='test -s conftest.$ac_objext'
 
15882
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15883
  (eval $ac_try) 2>&5
 
15884
  ac_status=$?
 
15885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15886
  (exit $ac_status); }; }; then
 
15887
  break
 
15888
else
 
15889
  echo "$as_me: failed program was:" >&5
 
15890
sed 's/^/| /' conftest.$ac_ext >&5
 
15891
 
 
15892
fi
 
15893
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15894
done
 
15895
rm -f conftest*
 
15896
if test -n "$ac_declaration"; then
 
15897
  echo '#ifdef __cplusplus' >>confdefs.h
 
15898
  echo $ac_declaration      >>confdefs.h
 
15899
  echo '#endif'             >>confdefs.h
 
15900
fi
 
15901
 
 
15902
ac_ext=cc
 
15903
ac_cpp='$CXXCPP $CPPFLAGS'
 
15904
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15905
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15906
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
15907
 
 
15908
depcc="$CXX"  am_compiler_list=
 
15909
 
 
15910
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
15911
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
15912
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
15913
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15914
else
 
15915
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
15916
  # We make a subdir and do the tests there.  Otherwise we can end up
 
15917
  # making bogus files that we don't know about and never remove.  For
 
15918
  # instance it was reported that on HP-UX the gcc test will end up
 
15919
  # making a dummy file named `D' -- because `-MD' means `put the output
 
15920
  # in D'.
 
15921
  mkdir conftest.dir
 
15922
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
15923
  # using a relative directory.
 
15924
  cp "$am_depcomp" conftest.dir
 
15925
  cd conftest.dir
 
15926
  # We will build objects and dependencies in a subdirectory because
 
15927
  # it helps to detect inapplicable dependency modes.  For instance
 
15928
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
15929
  # side effect of compilation, but ICC will put the dependencies in
 
15930
  # the current directory while Tru64 will put them in the object
 
15931
  # directory.
 
15932
  mkdir sub
 
15933
 
 
15934
  am_cv_CXX_dependencies_compiler_type=none
 
15935
  if test "$am_compiler_list" = ""; then
 
15936
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
15937
  fi
 
15938
  for depmode in $am_compiler_list; do
 
15939
    # Setup a source with many dependencies, because some compilers
 
15940
    # like to wrap large dependency lists on column 80 (with \), and
 
15941
    # we should not choose a depcomp mode which is confused by this.
 
15942
    #
 
15943
    # We need to recreate these files for each test, as the compiler may
 
15944
    # overwrite some of them when testing with obscure command lines.
 
15945
    # This happens at least with the AIX C compiler.
 
15946
    : > sub/conftest.c
 
15947
    for i in 1 2 3 4 5 6; do
 
15948
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
15949
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
15950
      # Solaris 8's {/usr,}/bin/sh.
 
15951
      touch sub/conftst$i.h
 
15952
    done
 
15953
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
15954
 
 
15955
    case $depmode in
 
15956
    nosideeffect)
 
15957
      # after this tag, mechanisms are not by side-effect, so they'll
 
15958
      # only be used when explicitly requested
 
15959
      if test "x$enable_dependency_tracking" = xyes; then
 
15960
        continue
 
15961
      else
 
15962
        break
 
15963
      fi
 
15964
      ;;
 
15965
    none) break ;;
 
15966
    esac
 
15967
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
15968
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
15969
    # handle `-M -o', and we need to detect this.
 
15970
    if depmode=$depmode \
 
15971
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
15972
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
15973
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
15974
         >/dev/null 2>conftest.err &&
 
15975
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
15976
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
15977
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
15978
      # icc doesn't choke on unknown options, it will just issue warnings
 
15979
      # or remarks (even with -Werror).  So we grep stderr for any message
 
15980
      # that says an option was ignored or not supported.
 
15981
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
15982
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
15983
      # The diagnosis changed in icc 8.0:
 
15984
      #   icc: Command line remark: option '-MP' not supported
 
15985
      if (grep 'ignoring option' conftest.err ||
 
15986
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
15987
        am_cv_CXX_dependencies_compiler_type=$depmode
 
15988
        break
 
15989
      fi
 
15990
    fi
 
15991
  done
 
15992
 
 
15993
  cd ..
 
15994
  rm -rf conftest.dir
 
15995
else
 
15996
  am_cv_CXX_dependencies_compiler_type=none
 
15997
fi
 
15998
 
 
15999
fi
 
16000
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
16001
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
16002
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
16003
 
 
16004
 
 
16005
 
 
16006
if
 
16007
  test "x$enable_dependency_tracking" != xno \
 
16008
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
16009
  am__fastdepCXX_TRUE=
 
16010
  am__fastdepCXX_FALSE='#'
 
16011
else
 
16012
  am__fastdepCXX_TRUE='#'
 
16013
  am__fastdepCXX_FALSE=
 
16014
fi
 
16015
 
 
16016
 
 
16017
 
 
16018
 
 
16019
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
16020
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
16021
    (test "X$CXX" != "Xg++"))) ; then
 
16022
  ac_ext=cc
 
16023
ac_cpp='$CXXCPP $CPPFLAGS'
 
16024
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16025
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16026
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
16027
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
16028
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
16029
if test -z "$CXXCPP"; then
 
16030
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
16031
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16032
else
 
16033
      # Double quotes because CXXCPP needs to be expanded
 
16034
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
16035
    do
 
16036
      ac_preproc_ok=false
 
16037
for ac_cxx_preproc_warn_flag in '' yes
 
16038
do
 
16039
  # Use a header file that comes with gcc, so configuring glibc
 
16040
  # with a fresh cross-compiler works.
 
16041
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
16042
  # <limits.h> exists even on freestanding compilers.
 
16043
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
16044
  # not just through cpp. "Syntax error" is here to catch this case.
 
16045
  cat >conftest.$ac_ext <<_ACEOF
 
16046
/* confdefs.h.  */
 
16047
_ACEOF
 
16048
cat confdefs.h >>conftest.$ac_ext
 
16049
cat >>conftest.$ac_ext <<_ACEOF
 
16050
/* end confdefs.h.  */
 
16051
#ifdef __STDC__
 
16052
# include <limits.h>
 
16053
#else
 
16054
# include <assert.h>
 
16055
#endif
 
16056
                     Syntax error
 
16057
_ACEOF
 
16058
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
16059
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
16060
  ac_status=$?
 
16061
  grep -v '^ *+' conftest.er1 >conftest.err
 
16062
  rm -f conftest.er1
 
16063
  cat conftest.err >&5
 
16064
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16065
  (exit $ac_status); } >/dev/null; then
 
16066
  if test -s conftest.err; then
 
16067
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
16068
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
16069
  else
 
16070
    ac_cpp_err=
 
16071
  fi
 
16072
else
 
16073
  ac_cpp_err=yes
 
16074
fi
 
16075
if test -z "$ac_cpp_err"; then
 
16076
  :
 
16077
else
 
16078
  echo "$as_me: failed program was:" >&5
 
16079
sed 's/^/| /' conftest.$ac_ext >&5
 
16080
 
 
16081
  # Broken: fails on valid input.
 
16082
continue
 
16083
fi
 
16084
rm -f conftest.err conftest.$ac_ext
 
16085
 
 
16086
  # OK, works on sane cases.  Now check whether non-existent headers
 
16087
  # can be detected and how.
 
16088
  cat >conftest.$ac_ext <<_ACEOF
 
16089
/* confdefs.h.  */
 
16090
_ACEOF
 
16091
cat confdefs.h >>conftest.$ac_ext
 
16092
cat >>conftest.$ac_ext <<_ACEOF
 
16093
/* end confdefs.h.  */
 
16094
#include <ac_nonexistent.h>
 
16095
_ACEOF
 
16096
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
16097
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
16098
  ac_status=$?
 
16099
  grep -v '^ *+' conftest.er1 >conftest.err
 
16100
  rm -f conftest.er1
 
16101
  cat conftest.err >&5
 
16102
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16103
  (exit $ac_status); } >/dev/null; then
 
16104
  if test -s conftest.err; then
 
16105
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
16106
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
16107
  else
 
16108
    ac_cpp_err=
 
16109
  fi
 
16110
else
 
16111
  ac_cpp_err=yes
 
16112
fi
 
16113
if test -z "$ac_cpp_err"; then
 
16114
  # Broken: success on invalid input.
 
16115
continue
 
16116
else
 
16117
  echo "$as_me: failed program was:" >&5
 
16118
sed 's/^/| /' conftest.$ac_ext >&5
 
16119
 
 
16120
  # Passes both tests.
 
16121
ac_preproc_ok=:
 
16122
break
 
16123
fi
 
16124
rm -f conftest.err conftest.$ac_ext
 
16125
 
 
16126
done
 
16127
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
16128
rm -f conftest.err conftest.$ac_ext
 
16129
if $ac_preproc_ok; then
 
16130
  break
 
16131
fi
 
16132
 
 
16133
    done
 
16134
    ac_cv_prog_CXXCPP=$CXXCPP
 
16135
 
 
16136
fi
 
16137
  CXXCPP=$ac_cv_prog_CXXCPP
 
16138
else
 
16139
  ac_cv_prog_CXXCPP=$CXXCPP
 
16140
fi
 
16141
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
16142
echo "${ECHO_T}$CXXCPP" >&6
 
16143
ac_preproc_ok=false
 
16144
for ac_cxx_preproc_warn_flag in '' yes
 
16145
do
 
16146
  # Use a header file that comes with gcc, so configuring glibc
 
16147
  # with a fresh cross-compiler works.
 
16148
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
16149
  # <limits.h> exists even on freestanding compilers.
 
16150
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
16151
  # not just through cpp. "Syntax error" is here to catch this case.
 
16152
  cat >conftest.$ac_ext <<_ACEOF
 
16153
/* confdefs.h.  */
 
16154
_ACEOF
 
16155
cat confdefs.h >>conftest.$ac_ext
 
16156
cat >>conftest.$ac_ext <<_ACEOF
 
16157
/* end confdefs.h.  */
 
16158
#ifdef __STDC__
 
16159
# include <limits.h>
 
16160
#else
 
16161
# include <assert.h>
 
16162
#endif
 
16163
                     Syntax error
 
16164
_ACEOF
 
16165
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
16166
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
16167
  ac_status=$?
 
16168
  grep -v '^ *+' conftest.er1 >conftest.err
 
16169
  rm -f conftest.er1
 
16170
  cat conftest.err >&5
 
16171
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16172
  (exit $ac_status); } >/dev/null; then
 
16173
  if test -s conftest.err; then
 
16174
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
16175
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
16176
  else
 
16177
    ac_cpp_err=
 
16178
  fi
 
16179
else
 
16180
  ac_cpp_err=yes
 
16181
fi
 
16182
if test -z "$ac_cpp_err"; then
 
16183
  :
 
16184
else
 
16185
  echo "$as_me: failed program was:" >&5
 
16186
sed 's/^/| /' conftest.$ac_ext >&5
 
16187
 
 
16188
  # Broken: fails on valid input.
 
16189
continue
 
16190
fi
 
16191
rm -f conftest.err conftest.$ac_ext
 
16192
 
 
16193
  # OK, works on sane cases.  Now check whether non-existent headers
 
16194
  # can be detected and how.
 
16195
  cat >conftest.$ac_ext <<_ACEOF
 
16196
/* confdefs.h.  */
 
16197
_ACEOF
 
16198
cat confdefs.h >>conftest.$ac_ext
 
16199
cat >>conftest.$ac_ext <<_ACEOF
 
16200
/* end confdefs.h.  */
 
16201
#include <ac_nonexistent.h>
 
16202
_ACEOF
 
16203
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
16204
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
16205
  ac_status=$?
 
16206
  grep -v '^ *+' conftest.er1 >conftest.err
 
16207
  rm -f conftest.er1
 
16208
  cat conftest.err >&5
 
16209
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16210
  (exit $ac_status); } >/dev/null; then
 
16211
  if test -s conftest.err; then
 
16212
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
16213
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
16214
  else
 
16215
    ac_cpp_err=
 
16216
  fi
 
16217
else
 
16218
  ac_cpp_err=yes
 
16219
fi
 
16220
if test -z "$ac_cpp_err"; then
 
16221
  # Broken: success on invalid input.
 
16222
continue
 
16223
else
 
16224
  echo "$as_me: failed program was:" >&5
 
16225
sed 's/^/| /' conftest.$ac_ext >&5
 
16226
 
 
16227
  # Passes both tests.
 
16228
ac_preproc_ok=:
 
16229
break
 
16230
fi
 
16231
rm -f conftest.err conftest.$ac_ext
 
16232
 
 
16233
done
 
16234
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
16235
rm -f conftest.err conftest.$ac_ext
 
16236
if $ac_preproc_ok; then
 
16237
  :
 
16238
else
 
16239
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
16240
See \`config.log' for more details." >&5
 
16241
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
16242
See \`config.log' for more details." >&2;}
 
16243
   { (exit 1); exit 1; }; }
 
16244
fi
 
16245
 
 
16246
ac_ext=cc
 
16247
ac_cpp='$CXXCPP $CPPFLAGS'
 
16248
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16249
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16250
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
16251
 
 
16252
fi
 
16253
 
 
16254
 
 
16255
ac_ext=f
 
16256
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
16257
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16258
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
16259
if test -n "$ac_tool_prefix"; then
 
16260
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
16261
  do
 
16262
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
16263
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
16264
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
16265
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
16266
if test "${ac_cv_prog_F77+set}" = set; then
 
16267
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16268
else
 
16269
  if test -n "$F77"; then
 
16270
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
16271
else
 
16272
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16273
for as_dir in $PATH
 
16274
do
 
16275
  IFS=$as_save_IFS
 
16276
  test -z "$as_dir" && as_dir=.
 
16277
  for ac_exec_ext in '' $ac_executable_extensions; do
 
16278
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
16279
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
16280
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16281
    break 2
 
16282
  fi
 
16283
done
 
16284
done
 
16285
 
 
16286
fi
 
16287
fi
 
16288
F77=$ac_cv_prog_F77
 
16289
if test -n "$F77"; then
 
16290
  echo "$as_me:$LINENO: result: $F77" >&5
 
16291
echo "${ECHO_T}$F77" >&6
 
16292
else
 
16293
  echo "$as_me:$LINENO: result: no" >&5
 
16294
echo "${ECHO_T}no" >&6
 
16295
fi
 
16296
 
 
16297
    test -n "$F77" && break
 
16298
  done
 
16299
fi
 
16300
if test -z "$F77"; then
 
16301
  ac_ct_F77=$F77
 
16302
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
16303
do
 
16304
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
16305
set dummy $ac_prog; ac_word=$2
 
16306
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
16307
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
16308
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
16309
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16310
else
 
16311
  if test -n "$ac_ct_F77"; then
 
16312
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
16313
else
 
16314
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16315
for as_dir in $PATH
 
16316
do
 
16317
  IFS=$as_save_IFS
 
16318
  test -z "$as_dir" && as_dir=.
 
16319
  for ac_exec_ext in '' $ac_executable_extensions; do
 
16320
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
16321
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
16322
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16323
    break 2
 
16324
  fi
 
16325
done
 
16326
done
 
16327
 
 
16328
fi
 
16329
fi
 
16330
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
16331
if test -n "$ac_ct_F77"; then
 
16332
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
16333
echo "${ECHO_T}$ac_ct_F77" >&6
 
16334
else
 
16335
  echo "$as_me:$LINENO: result: no" >&5
 
16336
echo "${ECHO_T}no" >&6
 
16337
fi
 
16338
 
 
16339
  test -n "$ac_ct_F77" && break
 
16340
done
 
16341
 
 
16342
  F77=$ac_ct_F77
 
16343
fi
 
16344
 
 
16345
 
 
16346
# Provide some information about the compiler.
 
16347
echo "$as_me:16347:" \
 
16348
     "checking for Fortran 77 compiler version" >&5
 
16349
ac_compiler=`set X $ac_compile; echo $2`
 
16350
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
16351
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
16352
  ac_status=$?
 
16353
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16354
  (exit $ac_status); }
 
16355
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
16356
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
16357
  ac_status=$?
 
16358
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16359
  (exit $ac_status); }
 
16360
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
16361
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
16362
  ac_status=$?
 
16363
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16364
  (exit $ac_status); }
 
16365
rm -f a.out
 
16366
 
 
16367
# If we don't use `.F' as extension, the preprocessor is not run on the
 
16368
# input file.  (Note that this only needs to work for GNU compilers.)
 
16369
ac_save_ext=$ac_ext
 
16370
ac_ext=F
 
16371
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
16372
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
16373
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
16374
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16375
else
 
16376
  cat >conftest.$ac_ext <<_ACEOF
 
16377
      program main
 
16378
#ifndef __GNUC__
 
16379
       choke me
 
16380
#endif
 
16381
 
 
16382
      end
 
16383
_ACEOF
 
16384
rm -f conftest.$ac_objext
 
16385
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16386
  (eval $ac_compile) 2>conftest.er1
 
16387
  ac_status=$?
 
16388
  grep -v '^ *+' conftest.er1 >conftest.err
 
16389
  rm -f conftest.er1
 
16390
  cat conftest.err >&5
 
16391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16392
  (exit $ac_status); } &&
 
16393
         { ac_try='test -z "$ac_f77_werror_flag"
 
16394
                         || test ! -s conftest.err'
 
16395
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16396
  (eval $ac_try) 2>&5
 
16397
  ac_status=$?
 
16398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16399
  (exit $ac_status); }; } &&
 
16400
         { ac_try='test -s conftest.$ac_objext'
 
16401
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16402
  (eval $ac_try) 2>&5
 
16403
  ac_status=$?
 
16404
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16405
  (exit $ac_status); }; }; then
 
16406
  ac_compiler_gnu=yes
 
16407
else
 
16408
  echo "$as_me: failed program was:" >&5
 
16409
sed 's/^/| /' conftest.$ac_ext >&5
 
16410
 
 
16411
ac_compiler_gnu=no
 
16412
fi
 
16413
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16414
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
16415
 
 
16416
fi
 
16417
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
16418
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
16419
ac_ext=$ac_save_ext
 
16420
ac_test_FFLAGS=${FFLAGS+set}
 
16421
ac_save_FFLAGS=$FFLAGS
 
16422
FFLAGS=
 
16423
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
16424
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
16425
if test "${ac_cv_prog_f77_g+set}" = set; then
 
16426
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16427
else
 
16428
  FFLAGS=-g
 
16429
cat >conftest.$ac_ext <<_ACEOF
 
16430
      program main
 
16431
 
 
16432
      end
 
16433
_ACEOF
 
16434
rm -f conftest.$ac_objext
 
16435
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16436
  (eval $ac_compile) 2>conftest.er1
 
16437
  ac_status=$?
 
16438
  grep -v '^ *+' conftest.er1 >conftest.err
 
16439
  rm -f conftest.er1
 
16440
  cat conftest.err >&5
 
16441
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16442
  (exit $ac_status); } &&
 
16443
         { ac_try='test -z "$ac_f77_werror_flag"
 
16444
                         || test ! -s conftest.err'
 
16445
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16446
  (eval $ac_try) 2>&5
 
16447
  ac_status=$?
 
16448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16449
  (exit $ac_status); }; } &&
 
16450
         { ac_try='test -s conftest.$ac_objext'
 
16451
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16452
  (eval $ac_try) 2>&5
 
16453
  ac_status=$?
 
16454
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16455
  (exit $ac_status); }; }; then
 
16456
  ac_cv_prog_f77_g=yes
 
16457
else
 
16458
  echo "$as_me: failed program was:" >&5
 
16459
sed 's/^/| /' conftest.$ac_ext >&5
 
16460
 
 
16461
ac_cv_prog_f77_g=no
 
16462
fi
 
16463
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16464
 
 
16465
fi
 
16466
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
16467
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
16468
if test "$ac_test_FFLAGS" = set; then
 
16469
  FFLAGS=$ac_save_FFLAGS
 
16470
elif test $ac_cv_prog_f77_g = yes; then
 
16471
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
16472
    FFLAGS="-g -O2"
 
16473
  else
 
16474
    FFLAGS="-g"
 
16475
  fi
 
16476
else
 
16477
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
16478
    FFLAGS="-O2"
 
16479
  else
 
16480
    FFLAGS=
 
16481
  fi
 
16482
fi
 
16483
 
 
16484
G77=`test $ac_compiler_gnu = yes && echo yes`
 
16485
ac_ext=c
 
16486
ac_cpp='$CPP $CPPFLAGS'
 
16487
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16488
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16489
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
16490
 
 
16491
 
 
16492
 
 
16493
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
16494
 
 
16495
# find the maximum length of command line arguments
 
16496
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
16497
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
16498
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
16499
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16500
else
 
16501
    i=0
 
16502
  teststring="ABCD"
 
16503
 
 
16504
  case $build_os in
 
16505
  msdosdjgpp*)
 
16506
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
16507
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
16508
    # during glob expansion).  Even if it were fixed, the result of this
 
16509
    # check would be larger than it should be.
 
16510
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
16511
    ;;
 
16512
 
 
16513
  gnu*)
 
16514
    # Under GNU Hurd, this test is not required because there is
 
16515
    # no limit to the length of command line arguments.
 
16516
    # Libtool will interpret -1 as no limit whatsoever
 
16517
    lt_cv_sys_max_cmd_len=-1;
 
16518
    ;;
 
16519
 
 
16520
  cygwin* | mingw*)
 
16521
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
16522
    # about 5 minutes as the teststring grows exponentially.
 
16523
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
16524
    # you end up with a "frozen" computer, even though with patience
 
16525
    # the test eventually succeeds (with a max line length of 256k).
 
16526
    # Instead, let's just punt: use the minimum linelength reported by
 
16527
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
16528
    lt_cv_sys_max_cmd_len=8192;
 
16529
    ;;
 
16530
 
 
16531
  amigaos*)
 
16532
    # On AmigaOS with pdksh, this test takes hours, literally.
 
16533
    # So we just punt and use a minimum line length of 8192.
 
16534
    lt_cv_sys_max_cmd_len=8192;
 
16535
    ;;
 
16536
 
 
16537
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
16538
    # This has been around since 386BSD, at least.  Likely further.
 
16539
    if test -x /sbin/sysctl; then
 
16540
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
16541
    elif test -x /usr/sbin/sysctl; then
 
16542
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
16543
    else
 
16544
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
16545
    fi
 
16546
    # And add a safety zone
 
16547
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
16548
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
16549
    ;;
 
16550
  osf*)
 
16551
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
16552
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
16553
    # nice to cause kernel panics so lets avoid the loop below.
 
16554
    # First set a reasonable default.
 
16555
    lt_cv_sys_max_cmd_len=16384
 
16556
    #
 
16557
    if test -x /sbin/sysconfig; then
 
16558
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
16559
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
16560
      esac
 
16561
    fi
 
16562
    ;;
 
16563
  *)
 
16564
    # If test is not a shell built-in, we'll probably end up computing a
 
16565
    # maximum length that is only half of the actual maximum length, but
 
16566
    # we can't tell.
 
16567
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
16568
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
16569
               = "XX$teststring") >/dev/null 2>&1 &&
 
16570
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
16571
            lt_cv_sys_max_cmd_len=$new_result &&
 
16572
            test $i != 17 # 1/2 MB should be enough
 
16573
    do
 
16574
      i=`expr $i + 1`
 
16575
      teststring=$teststring$teststring
 
16576
    done
 
16577
    teststring=
 
16578
    # Add a significant safety factor because C++ compilers can tack on massive
 
16579
    # amounts of additional arguments before passing them to the linker.
 
16580
    # It appears as though 1/2 is a usable value.
 
16581
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
16582
    ;;
 
16583
  esac
 
16584
 
 
16585
fi
 
16586
 
 
16587
if test -n $lt_cv_sys_max_cmd_len ; then
 
16588
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
16589
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
16590
else
 
16591
  echo "$as_me:$LINENO: result: none" >&5
 
16592
echo "${ECHO_T}none" >&6
 
16593
fi
 
16594
 
 
16595
 
 
16596
 
 
16597
 
 
16598
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
16599
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
16600
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
16601
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
16602
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16603
else
 
16604
 
 
16605
# These are sane defaults that work on at least a few old systems.
 
16606
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
16607
 
 
16608
# Character class describing NM global symbol codes.
 
16609
symcode='[BCDEGRST]'
 
16610
 
 
16611
# Regexp to match symbols that can be accessed directly from C.
 
16612
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
16613
 
 
16614
# Transform an extracted symbol line into a proper C declaration
 
16615
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
16616
 
 
16617
# Transform an extracted symbol line into symbol name and symbol address
 
16618
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
16619
 
 
16620
# Define system-specific variables.
 
16621
case $host_os in
 
16622
aix*)
 
16623
  symcode='[BCDT]'
 
16624
  ;;
 
16625
cygwin* | mingw* | pw32*)
 
16626
  symcode='[ABCDGISTW]'
 
16627
  ;;
 
16628
hpux*) # Its linker distinguishes data from code symbols
 
16629
  if test "$host_cpu" = ia64; then
 
16630
    symcode='[ABCDEGRST]'
 
16631
  fi
 
16632
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
16633
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
16634
  ;;
 
16635
linux*)
 
16636
  if test "$host_cpu" = ia64; then
 
16637
    symcode='[ABCDGIRSTW]'
 
16638
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
16639
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
16640
  fi
 
16641
  ;;
 
16642
irix* | nonstopux*)
 
16643
  symcode='[BCDEGRST]'
 
16644
  ;;
 
16645
osf*)
 
16646
  symcode='[BCDEGQRST]'
 
16647
  ;;
 
16648
solaris* | sysv5*)
 
16649
  symcode='[BDRT]'
 
16650
  ;;
 
16651
sysv4)
 
16652
  symcode='[DFNSTU]'
 
16653
  ;;
 
16654
esac
 
16655
 
 
16656
# Handle CRLF in mingw tool chain
 
16657
opt_cr=
 
16658
case $build_os in
 
16659
mingw*)
 
16660
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
16661
  ;;
 
16662
esac
 
16663
 
 
16664
# If we're using GNU nm, then use its standard symbol codes.
 
16665
case `$NM -V 2>&1` in
 
16666
*GNU* | *'with BFD'*)
 
16667
  symcode='[ABCDGIRSTW]' ;;
 
16668
esac
 
16669
 
 
16670
# Try without a prefix undercore, then with it.
 
16671
for ac_symprfx in "" "_"; do
 
16672
 
 
16673
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
16674
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
16675
 
 
16676
  # Write the raw and C identifiers.
 
16677
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
16678
 
 
16679
  # Check to see that the pipe works correctly.
 
16680
  pipe_works=no
 
16681
 
 
16682
  rm -f conftest*
 
16683
  cat > conftest.$ac_ext <<EOF
 
16684
#ifdef __cplusplus
 
16685
extern "C" {
 
16686
#endif
 
16687
char nm_test_var;
 
16688
void nm_test_func(){}
 
16689
#ifdef __cplusplus
 
16690
}
 
16691
#endif
 
16692
int main(){nm_test_var='a';nm_test_func();return(0);}
 
16693
EOF
 
16694
 
 
16695
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16696
  (eval $ac_compile) 2>&5
 
16697
  ac_status=$?
 
16698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16699
  (exit $ac_status); }; then
 
16700
    # Now try to grab the symbols.
 
16701
    nlist=conftest.nm
 
16702
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
16703
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
16704
  ac_status=$?
 
16705
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16706
  (exit $ac_status); } && test -s "$nlist"; then
 
16707
      # Try sorting and uniquifying the output.
 
16708
      if sort "$nlist" | uniq > "$nlist"T; then
 
16709
        mv -f "$nlist"T "$nlist"
 
16710
      else
 
16711
        rm -f "$nlist"T
 
16712
      fi
 
16713
 
 
16714
      # Make sure that we snagged all the symbols we need.
 
16715
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
16716
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
16717
          cat <<EOF > conftest.$ac_ext
 
16718
#ifdef __cplusplus
 
16719
extern "C" {
 
16720
#endif
 
16721
 
 
16722
EOF
 
16723
          # Now generate the symbol file.
 
16724
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
16725
 
 
16726
          cat <<EOF >> conftest.$ac_ext
 
16727
#if defined (__STDC__) && __STDC__
 
16728
# define lt_ptr_t void *
 
16729
#else
 
16730
# define lt_ptr_t char *
 
16731
# define const
 
16732
#endif
 
16733
 
 
16734
/* The mapping between symbol names and symbols. */
 
16735
const struct {
 
16736
  const char *name;
 
16737
  lt_ptr_t address;
 
16738
}
 
16739
lt_preloaded_symbols[] =
 
16740
{
 
16741
EOF
 
16742
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
16743
          cat <<\EOF >> conftest.$ac_ext
 
16744
  {0, (lt_ptr_t) 0}
 
16745
};
 
16746
 
 
16747
#ifdef __cplusplus
 
16748
}
 
16749
#endif
 
16750
EOF
 
16751
          # Now try linking the two files.
 
16752
          mv conftest.$ac_objext conftstm.$ac_objext
 
16753
          lt_save_LIBS="$LIBS"
 
16754
          lt_save_CFLAGS="$CFLAGS"
 
16755
          LIBS="conftstm.$ac_objext"
 
16756
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
16757
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16758
  (eval $ac_link) 2>&5
 
16759
  ac_status=$?
 
16760
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16761
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
16762
            pipe_works=yes
 
16763
          fi
 
16764
          LIBS="$lt_save_LIBS"
 
16765
          CFLAGS="$lt_save_CFLAGS"
 
16766
        else
 
16767
          echo "cannot find nm_test_func in $nlist" >&5
 
16768
        fi
 
16769
      else
 
16770
        echo "cannot find nm_test_var in $nlist" >&5
 
16771
      fi
 
16772
    else
 
16773
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
16774
    fi
 
16775
  else
 
16776
    echo "$progname: failed program was:" >&5
 
16777
    cat conftest.$ac_ext >&5
 
16778
  fi
 
16779
  rm -f conftest* conftst*
 
16780
 
 
16781
  # Do not use the global_symbol_pipe unless it works.
 
16782
  if test "$pipe_works" = yes; then
 
16783
    break
 
16784
  else
 
16785
    lt_cv_sys_global_symbol_pipe=
 
16786
  fi
 
16787
done
 
16788
 
 
16789
fi
 
16790
 
 
16791
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
16792
  lt_cv_sys_global_symbol_to_cdecl=
 
16793
fi
 
16794
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
16795
  echo "$as_me:$LINENO: result: failed" >&5
 
16796
echo "${ECHO_T}failed" >&6
 
16797
else
 
16798
  echo "$as_me:$LINENO: result: ok" >&5
 
16799
echo "${ECHO_T}ok" >&6
 
16800
fi
 
16801
 
 
16802
echo "$as_me:$LINENO: checking for objdir" >&5
 
16803
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
16804
if test "${lt_cv_objdir+set}" = set; then
 
16805
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16806
else
 
16807
  rm -f .libs 2>/dev/null
 
16808
mkdir .libs 2>/dev/null
 
16809
if test -d .libs; then
 
16810
  lt_cv_objdir=.libs
 
16811
else
 
16812
  # MS-DOS does not allow filenames that begin with a dot.
 
16813
  lt_cv_objdir=_libs
 
16814
fi
 
16815
rmdir .libs 2>/dev/null
 
16816
fi
 
16817
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
16818
echo "${ECHO_T}$lt_cv_objdir" >&6
 
16819
objdir=$lt_cv_objdir
 
16820
 
 
16821
 
 
16822
 
 
16823
 
 
16824
 
 
16825
case $host_os in
 
16826
aix3*)
 
16827
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
16828
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
16829
  # vanish in a puff of smoke.
 
16830
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
16831
    COLLECT_NAMES=
 
16832
    export COLLECT_NAMES
 
16833
  fi
 
16834
  ;;
 
16835
esac
 
16836
 
 
16837
# Sed substitution that helps us do robust quoting.  It backslashifies
 
16838
# metacharacters that are still active within double-quoted strings.
 
16839
Xsed='sed -e 1s/^X//'
 
16840
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
16841
 
 
16842
# Same as above, but do not quote variable references.
 
16843
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
16844
 
 
16845
# Sed substitution to delay expansion of an escaped shell variable in a
 
16846
# double_quote_subst'ed string.
 
16847
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
16848
 
 
16849
# Sed substitution to avoid accidental globbing in evaled expressions
 
16850
no_glob_subst='s/\*/\\\*/g'
 
16851
 
 
16852
# Constants:
 
16853
rm="rm -f"
 
16854
 
 
16855
# Global variables:
 
16856
default_ofile=libtool
 
16857
can_build_shared=yes
 
16858
 
 
16859
# All known linkers require a `.a' archive for static linking (except MSVC,
 
16860
# which needs '.lib').
 
16861
libext=a
 
16862
ltmain="$ac_aux_dir/ltmain.sh"
 
16863
ofile="$default_ofile"
 
16864
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
16865
 
 
16866
if test -n "$ac_tool_prefix"; then
 
16867
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
16868
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
16869
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
16870
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
16871
if test "${ac_cv_prog_AR+set}" = set; then
 
16872
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16873
else
 
16874
  if test -n "$AR"; then
 
16875
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
16876
else
 
16877
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16878
for as_dir in $PATH
 
16879
do
 
16880
  IFS=$as_save_IFS
 
16881
  test -z "$as_dir" && as_dir=.
 
16882
  for ac_exec_ext in '' $ac_executable_extensions; do
 
16883
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
16884
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
16885
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16886
    break 2
 
16887
  fi
 
16888
done
 
16889
done
 
16890
 
 
16891
fi
 
16892
fi
 
16893
AR=$ac_cv_prog_AR
 
16894
if test -n "$AR"; then
 
16895
  echo "$as_me:$LINENO: result: $AR" >&5
 
16896
echo "${ECHO_T}$AR" >&6
 
16897
else
 
16898
  echo "$as_me:$LINENO: result: no" >&5
 
16899
echo "${ECHO_T}no" >&6
 
16900
fi
 
16901
 
 
16902
fi
 
16903
if test -z "$ac_cv_prog_AR"; then
 
16904
  ac_ct_AR=$AR
 
16905
  # Extract the first word of "ar", so it can be a program name with args.
 
16906
set dummy ar; ac_word=$2
 
16907
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
16908
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
16909
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
16910
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16911
else
 
16912
  if test -n "$ac_ct_AR"; then
 
16913
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
16914
else
 
16915
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16916
for as_dir in $PATH
 
16917
do
 
16918
  IFS=$as_save_IFS
 
16919
  test -z "$as_dir" && as_dir=.
 
16920
  for ac_exec_ext in '' $ac_executable_extensions; do
 
16921
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
16922
    ac_cv_prog_ac_ct_AR="ar"
 
16923
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16924
    break 2
 
16925
  fi
 
16926
done
 
16927
done
 
16928
 
 
16929
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
16930
fi
 
16931
fi
 
16932
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
16933
if test -n "$ac_ct_AR"; then
 
16934
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
16935
echo "${ECHO_T}$ac_ct_AR" >&6
 
16936
else
 
16937
  echo "$as_me:$LINENO: result: no" >&5
 
16938
echo "${ECHO_T}no" >&6
 
16939
fi
 
16940
 
 
16941
  AR=$ac_ct_AR
 
16942
else
 
16943
  AR="$ac_cv_prog_AR"
 
16944
fi
5592
16945
 
5593
16946
if test -n "$ac_tool_prefix"; then
5594
16947
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5670
17023
  RANLIB="$ac_cv_prog_RANLIB"
5671
17024
fi
5672
17025
 
 
17026
if test -n "$ac_tool_prefix"; then
 
17027
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
17028
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
17029
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
17030
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
17031
if test "${ac_cv_prog_STRIP+set}" = set; then
 
17032
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17033
else
 
17034
  if test -n "$STRIP"; then
 
17035
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
17036
else
 
17037
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
17038
for as_dir in $PATH
 
17039
do
 
17040
  IFS=$as_save_IFS
 
17041
  test -z "$as_dir" && as_dir=.
 
17042
  for ac_exec_ext in '' $ac_executable_extensions; do
 
17043
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
17044
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
17045
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
17046
    break 2
 
17047
  fi
 
17048
done
 
17049
done
 
17050
 
 
17051
fi
 
17052
fi
 
17053
STRIP=$ac_cv_prog_STRIP
 
17054
if test -n "$STRIP"; then
 
17055
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
17056
echo "${ECHO_T}$STRIP" >&6
 
17057
else
 
17058
  echo "$as_me:$LINENO: result: no" >&5
 
17059
echo "${ECHO_T}no" >&6
 
17060
fi
 
17061
 
 
17062
fi
 
17063
if test -z "$ac_cv_prog_STRIP"; then
 
17064
  ac_ct_STRIP=$STRIP
 
17065
  # Extract the first word of "strip", so it can be a program name with args.
 
17066
set dummy strip; ac_word=$2
 
17067
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
17068
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
17069
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
17070
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17071
else
 
17072
  if test -n "$ac_ct_STRIP"; then
 
17073
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
17074
else
 
17075
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
17076
for as_dir in $PATH
 
17077
do
 
17078
  IFS=$as_save_IFS
 
17079
  test -z "$as_dir" && as_dir=.
 
17080
  for ac_exec_ext in '' $ac_executable_extensions; do
 
17081
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
17082
    ac_cv_prog_ac_ct_STRIP="strip"
 
17083
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
17084
    break 2
 
17085
  fi
 
17086
done
 
17087
done
 
17088
 
 
17089
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
17090
fi
 
17091
fi
 
17092
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
17093
if test -n "$ac_ct_STRIP"; then
 
17094
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
17095
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
17096
else
 
17097
  echo "$as_me:$LINENO: result: no" >&5
 
17098
echo "${ECHO_T}no" >&6
 
17099
fi
 
17100
 
 
17101
  STRIP=$ac_ct_STRIP
 
17102
else
 
17103
  STRIP="$ac_cv_prog_STRIP"
 
17104
fi
 
17105
 
 
17106
 
 
17107
old_CC="$CC"
 
17108
old_CFLAGS="$CFLAGS"
 
17109
 
 
17110
# Set sane defaults for various variables
 
17111
test -z "$AR" && AR=ar
 
17112
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
17113
test -z "$AS" && AS=as
 
17114
test -z "$CC" && CC=cc
 
17115
test -z "$LTCC" && LTCC=$CC
 
17116
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
17117
test -z "$LD" && LD=ld
 
17118
test -z "$LN_S" && LN_S="ln -s"
 
17119
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
17120
test -z "$NM" && NM=nm
 
17121
test -z "$SED" && SED=sed
 
17122
test -z "$OBJDUMP" && OBJDUMP=objdump
 
17123
test -z "$RANLIB" && RANLIB=:
 
17124
test -z "$STRIP" && STRIP=:
 
17125
test -z "$ac_objext" && ac_objext=o
 
17126
 
 
17127
# Determine commands to create old-style static archives.
 
17128
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
17129
old_postinstall_cmds='chmod 644 $oldlib'
 
17130
old_postuninstall_cmds=
 
17131
 
 
17132
if test -n "$RANLIB"; then
 
17133
  case $host_os in
 
17134
  openbsd*)
 
17135
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
17136
    ;;
 
17137
  *)
 
17138
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
17139
    ;;
 
17140
  esac
 
17141
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
17142
fi
 
17143
 
 
17144
for cc_temp in $compiler""; do
 
17145
  case $cc_temp in
 
17146
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17147
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17148
    \-*) ;;
 
17149
    *) break;;
 
17150
  esac
 
17151
done
 
17152
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
17153
 
 
17154
 
 
17155
# Only perform the check for file, if the check method requires it
 
17156
case $deplibs_check_method in
 
17157
file_magic*)
 
17158
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
17159
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
17160
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
17161
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
17162
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17163
else
 
17164
  case $MAGIC_CMD in
 
17165
[\\/*] |  ?:[\\/]*)
 
17166
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
17167
  ;;
 
17168
*)
 
17169
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
17170
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
17171
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
17172
  for ac_dir in $ac_dummy; do
 
17173
    IFS="$lt_save_ifs"
 
17174
    test -z "$ac_dir" && ac_dir=.
 
17175
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
17176
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
17177
      if test -n "$file_magic_test_file"; then
 
17178
        case $deplibs_check_method in
 
17179
        "file_magic "*)
 
17180
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
17181
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
17182
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
17183
            $EGREP "$file_magic_regex" > /dev/null; then
 
17184
            :
 
17185
          else
 
17186
            cat <<EOF 1>&2
 
17187
 
 
17188
*** Warning: the command libtool uses to detect shared libraries,
 
17189
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
17190
*** The result is that libtool may fail to recognize shared libraries
 
17191
*** as such.  This will affect the creation of libtool libraries that
 
17192
*** depend on shared libraries, but programs linked with such libtool
 
17193
*** libraries will work regardless of this problem.  Nevertheless, you
 
17194
*** may want to report the problem to your system manager and/or to
 
17195
*** bug-libtool@gnu.org
 
17196
 
 
17197
EOF
 
17198
          fi ;;
 
17199
        esac
 
17200
      fi
 
17201
      break
 
17202
    fi
 
17203
  done
 
17204
  IFS="$lt_save_ifs"
 
17205
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
17206
  ;;
 
17207
esac
 
17208
fi
 
17209
 
 
17210
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
17211
if test -n "$MAGIC_CMD"; then
 
17212
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
17213
echo "${ECHO_T}$MAGIC_CMD" >&6
 
17214
else
 
17215
  echo "$as_me:$LINENO: result: no" >&5
 
17216
echo "${ECHO_T}no" >&6
 
17217
fi
 
17218
 
 
17219
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
17220
  if test -n "$ac_tool_prefix"; then
 
17221
    echo "$as_me:$LINENO: checking for file" >&5
 
17222
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
17223
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
17224
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17225
else
 
17226
  case $MAGIC_CMD in
 
17227
[\\/*] |  ?:[\\/]*)
 
17228
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
17229
  ;;
 
17230
*)
 
17231
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
17232
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
17233
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
17234
  for ac_dir in $ac_dummy; do
 
17235
    IFS="$lt_save_ifs"
 
17236
    test -z "$ac_dir" && ac_dir=.
 
17237
    if test -f $ac_dir/file; then
 
17238
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
17239
      if test -n "$file_magic_test_file"; then
 
17240
        case $deplibs_check_method in
 
17241
        "file_magic "*)
 
17242
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
17243
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
17244
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
17245
            $EGREP "$file_magic_regex" > /dev/null; then
 
17246
            :
 
17247
          else
 
17248
            cat <<EOF 1>&2
 
17249
 
 
17250
*** Warning: the command libtool uses to detect shared libraries,
 
17251
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
17252
*** The result is that libtool may fail to recognize shared libraries
 
17253
*** as such.  This will affect the creation of libtool libraries that
 
17254
*** depend on shared libraries, but programs linked with such libtool
 
17255
*** libraries will work regardless of this problem.  Nevertheless, you
 
17256
*** may want to report the problem to your system manager and/or to
 
17257
*** bug-libtool@gnu.org
 
17258
 
 
17259
EOF
 
17260
          fi ;;
 
17261
        esac
 
17262
      fi
 
17263
      break
 
17264
    fi
 
17265
  done
 
17266
  IFS="$lt_save_ifs"
 
17267
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
17268
  ;;
 
17269
esac
 
17270
fi
 
17271
 
 
17272
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
17273
if test -n "$MAGIC_CMD"; then
 
17274
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
17275
echo "${ECHO_T}$MAGIC_CMD" >&6
 
17276
else
 
17277
  echo "$as_me:$LINENO: result: no" >&5
 
17278
echo "${ECHO_T}no" >&6
 
17279
fi
 
17280
 
 
17281
  else
 
17282
    MAGIC_CMD=:
 
17283
  fi
 
17284
fi
 
17285
 
 
17286
  fi
 
17287
  ;;
 
17288
esac
 
17289
 
 
17290
enable_dlopen=no
 
17291
enable_win32_dll=no
 
17292
 
 
17293
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
17294
if test "${enable_libtool_lock+set}" = set; then
 
17295
  enableval="$enable_libtool_lock"
 
17296
 
 
17297
fi;
 
17298
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
17299
 
 
17300
 
 
17301
# Check whether --with-pic or --without-pic was given.
 
17302
if test "${with_pic+set}" = set; then
 
17303
  withval="$with_pic"
 
17304
  pic_mode="$withval"
 
17305
else
 
17306
  pic_mode=default
 
17307
fi;
 
17308
test -z "$pic_mode" && pic_mode=default
 
17309
 
 
17310
# Use C for the default configuration in the libtool script
 
17311
tagname=
 
17312
lt_save_CC="$CC"
 
17313
ac_ext=c
 
17314
ac_cpp='$CPP $CPPFLAGS'
 
17315
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
17316
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
17317
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
17318
 
 
17319
 
 
17320
# Source file extension for C test sources.
 
17321
ac_ext=c
 
17322
 
 
17323
# Object file extension for compiled C test sources.
 
17324
objext=o
 
17325
objext=$objext
 
17326
 
 
17327
# Code to be used in simple compile tests
 
17328
lt_simple_compile_test_code="int some_variable = 0;\n"
 
17329
 
 
17330
# Code to be used in simple link tests
 
17331
lt_simple_link_test_code='int main(){return(0);}\n'
 
17332
 
 
17333
 
 
17334
# If no C compiler was specified, use CC.
 
17335
LTCC=${LTCC-"$CC"}
 
17336
 
 
17337
# Allow CC to be a program name with arguments.
 
17338
compiler=$CC
 
17339
 
 
17340
 
 
17341
# save warnings/boilerplate of simple test code
 
17342
ac_outfile=conftest.$ac_objext
 
17343
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
17344
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
17345
_lt_compiler_boilerplate=`cat conftest.err`
 
17346
$rm conftest*
 
17347
 
 
17348
ac_outfile=conftest.$ac_objext
 
17349
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
17350
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
17351
_lt_linker_boilerplate=`cat conftest.err`
 
17352
$rm conftest*
 
17353
 
 
17354
 
 
17355
#
 
17356
# Check for any special shared library compilation flags.
 
17357
#
 
17358
lt_prog_cc_shlib=
 
17359
if test "$GCC" = no; then
 
17360
  case $host_os in
 
17361
  sco3.2v5*)
 
17362
    lt_prog_cc_shlib='-belf'
 
17363
    ;;
 
17364
  esac
 
17365
fi
 
17366
if test -n "$lt_prog_cc_shlib"; then
 
17367
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
17368
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
17369
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
17370
  else
 
17371
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
17372
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
17373
    lt_cv_prog_cc_can_build_shared=no
 
17374
  fi
 
17375
fi
 
17376
 
 
17377
 
 
17378
#
 
17379
# Check to make sure the static flag actually works.
 
17380
#
 
17381
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
17382
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
17383
if test "${lt_prog_compiler_static_works+set}" = set; then
 
17384
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17385
else
 
17386
  lt_prog_compiler_static_works=no
 
17387
   save_LDFLAGS="$LDFLAGS"
 
17388
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
17389
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
17390
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
17391
     # The linker can only warn and ignore the option if not recognized
 
17392
     # So say no if there are warnings
 
17393
     if test -s conftest.err; then
 
17394
       # Append any errors to the config.log.
 
17395
       cat conftest.err 1>&5
 
17396
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
 
17397
       $SED '/^$/d' conftest.err >conftest.er2
 
17398
       if diff conftest.exp conftest.er2 >/dev/null; then
 
17399
         lt_prog_compiler_static_works=yes
 
17400
       fi
 
17401
     else
 
17402
       lt_prog_compiler_static_works=yes
 
17403
     fi
 
17404
   fi
 
17405
   $rm conftest*
 
17406
   LDFLAGS="$save_LDFLAGS"
 
17407
 
 
17408
fi
 
17409
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
17410
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
17411
 
 
17412
if test x"$lt_prog_compiler_static_works" = xyes; then
 
17413
    :
 
17414
else
 
17415
    lt_prog_compiler_static=
 
17416
fi
 
17417
 
 
17418
 
 
17419
 
 
17420
 
 
17421
lt_prog_compiler_no_builtin_flag=
 
17422
 
 
17423
if test "$GCC" = yes; then
 
17424
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
17425
 
 
17426
 
 
17427
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
17428
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
17429
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
17430
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17431
else
 
17432
  lt_cv_prog_compiler_rtti_exceptions=no
 
17433
  ac_outfile=conftest.$ac_objext
 
17434
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17435
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
17436
   # Insert the option either (1) after the last *FLAGS variable, or
 
17437
   # (2) before a word containing "conftest.", or (3) at the end.
 
17438
   # Note that $ac_compile itself does not contain backslashes and begins
 
17439
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17440
   # The option is referenced via a variable to avoid confusing sed.
 
17441
   lt_compile=`echo "$ac_compile" | $SED \
 
17442
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17443
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17444
   -e 's:$: $lt_compiler_flag:'`
 
17445
   (eval echo "\"\$as_me:17445: $lt_compile\"" >&5)
 
17446
   (eval "$lt_compile" 2>conftest.err)
 
17447
   ac_status=$?
 
17448
   cat conftest.err >&5
 
17449
   echo "$as_me:17449: \$? = $ac_status" >&5
 
17450
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
17451
     # The compiler can only warn and ignore the option if not recognized
 
17452
     # So say no if there are warnings other than the usual output.
 
17453
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
17454
     $SED '/^$/d' conftest.err >conftest.er2
 
17455
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
17456
       lt_cv_prog_compiler_rtti_exceptions=yes
 
17457
     fi
 
17458
   fi
 
17459
   $rm conftest*
 
17460
 
 
17461
fi
 
17462
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
17463
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
17464
 
 
17465
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
17466
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
17467
else
 
17468
    :
 
17469
fi
 
17470
 
 
17471
fi
 
17472
 
 
17473
lt_prog_compiler_wl=
 
17474
lt_prog_compiler_pic=
 
17475
lt_prog_compiler_static=
 
17476
 
 
17477
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
17478
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
17479
 
 
17480
  if test "$GCC" = yes; then
 
17481
    lt_prog_compiler_wl='-Wl,'
 
17482
    lt_prog_compiler_static='-static'
 
17483
 
 
17484
    case $host_os in
 
17485
      aix*)
 
17486
      # All AIX code is PIC.
 
17487
      if test "$host_cpu" = ia64; then
 
17488
        # AIX 5 now supports IA64 processor
 
17489
        lt_prog_compiler_static='-Bstatic'
 
17490
      fi
 
17491
      ;;
 
17492
 
 
17493
    amigaos*)
 
17494
      # FIXME: we need at least 68020 code to build shared libraries, but
 
17495
      # adding the `-m68020' flag to GCC prevents building anything better,
 
17496
      # like `-m68040'.
 
17497
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
17498
      ;;
 
17499
 
 
17500
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
17501
      # PIC is the default for these OSes.
 
17502
      ;;
 
17503
 
 
17504
    mingw* | pw32* | os2*)
 
17505
      # This hack is so that the source file can tell whether it is being
 
17506
      # built for inclusion in a dll (and should export symbols for example).
 
17507
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
17508
      ;;
 
17509
 
 
17510
    darwin* | rhapsody*)
 
17511
      # PIC is the default on this platform
 
17512
      # Common symbols not allowed in MH_DYLIB files
 
17513
      lt_prog_compiler_pic='-fno-common'
 
17514
      ;;
 
17515
 
 
17516
    msdosdjgpp*)
 
17517
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
17518
      # on systems that don't support them.
 
17519
      lt_prog_compiler_can_build_shared=no
 
17520
      enable_shared=no
 
17521
      ;;
 
17522
 
 
17523
    sysv4*MP*)
 
17524
      if test -d /usr/nec; then
 
17525
        lt_prog_compiler_pic=-Kconform_pic
 
17526
      fi
 
17527
      ;;
 
17528
 
 
17529
    hpux*)
 
17530
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17531
      # not for PA HP-UX.
 
17532
      case $host_cpu in
 
17533
      hppa*64*|ia64*)
 
17534
        # +Z the default
 
17535
        ;;
 
17536
      *)
 
17537
        lt_prog_compiler_pic='-fPIC'
 
17538
        ;;
 
17539
      esac
 
17540
      ;;
 
17541
 
 
17542
    *)
 
17543
      lt_prog_compiler_pic='-fPIC'
 
17544
      ;;
 
17545
    esac
 
17546
  else
 
17547
    # PORTME Check for flag to pass linker flags through the system compiler.
 
17548
    case $host_os in
 
17549
    aix*)
 
17550
      lt_prog_compiler_wl='-Wl,'
 
17551
      if test "$host_cpu" = ia64; then
 
17552
        # AIX 5 now supports IA64 processor
 
17553
        lt_prog_compiler_static='-Bstatic'
 
17554
      else
 
17555
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
17556
      fi
 
17557
      ;;
 
17558
      darwin*)
 
17559
        # PIC is the default on this platform
 
17560
        # Common symbols not allowed in MH_DYLIB files
 
17561
       case $cc_basename in
 
17562
         xlc*)
 
17563
         lt_prog_compiler_pic='-qnocommon'
 
17564
         lt_prog_compiler_wl='-Wl,'
 
17565
         ;;
 
17566
       esac
 
17567
       ;;
 
17568
 
 
17569
    mingw* | pw32* | os2*)
 
17570
      # This hack is so that the source file can tell whether it is being
 
17571
      # built for inclusion in a dll (and should export symbols for example).
 
17572
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
17573
      ;;
 
17574
 
 
17575
    hpux9* | hpux10* | hpux11*)
 
17576
      lt_prog_compiler_wl='-Wl,'
 
17577
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17578
      # not for PA HP-UX.
 
17579
      case $host_cpu in
 
17580
      hppa*64*|ia64*)
 
17581
        # +Z the default
 
17582
        ;;
 
17583
      *)
 
17584
        lt_prog_compiler_pic='+Z'
 
17585
        ;;
 
17586
      esac
 
17587
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
17588
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
17589
      ;;
 
17590
 
 
17591
    irix5* | irix6* | nonstopux*)
 
17592
      lt_prog_compiler_wl='-Wl,'
 
17593
      # PIC (with -KPIC) is the default.
 
17594
      lt_prog_compiler_static='-non_shared'
 
17595
      ;;
 
17596
 
 
17597
    newsos6)
 
17598
      lt_prog_compiler_pic='-KPIC'
 
17599
      lt_prog_compiler_static='-Bstatic'
 
17600
      ;;
 
17601
 
 
17602
    linux*)
 
17603
      case $cc_basename in
 
17604
      icc* | ecc*)
 
17605
        lt_prog_compiler_wl='-Wl,'
 
17606
        lt_prog_compiler_pic='-KPIC'
 
17607
        lt_prog_compiler_static='-static'
 
17608
        ;;
 
17609
      pgcc* | pgf77* | pgf90* | pgf95*)
 
17610
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
17611
        # which looks to be a dead project)
 
17612
        lt_prog_compiler_wl='-Wl,'
 
17613
        lt_prog_compiler_pic='-fpic'
 
17614
        lt_prog_compiler_static='-Bstatic'
 
17615
        ;;
 
17616
      ccc*)
 
17617
        lt_prog_compiler_wl='-Wl,'
 
17618
        # All Alpha code is PIC.
 
17619
        lt_prog_compiler_static='-non_shared'
 
17620
        ;;
 
17621
      esac
 
17622
      ;;
 
17623
 
 
17624
    osf3* | osf4* | osf5*)
 
17625
      lt_prog_compiler_wl='-Wl,'
 
17626
      # All OSF/1 code is PIC.
 
17627
      lt_prog_compiler_static='-non_shared'
 
17628
      ;;
 
17629
 
 
17630
    sco3.2v5*)
 
17631
      lt_prog_compiler_pic='-Kpic'
 
17632
      lt_prog_compiler_static='-dn'
 
17633
      ;;
 
17634
 
 
17635
    solaris*)
 
17636
      lt_prog_compiler_pic='-KPIC'
 
17637
      lt_prog_compiler_static='-Bstatic'
 
17638
      case $cc_basename in
 
17639
      f77* | f90* | f95*)
 
17640
        lt_prog_compiler_wl='-Qoption ld ';;
 
17641
      *)
 
17642
        lt_prog_compiler_wl='-Wl,';;
 
17643
      esac
 
17644
      ;;
 
17645
 
 
17646
    sunos4*)
 
17647
      lt_prog_compiler_wl='-Qoption ld '
 
17648
      lt_prog_compiler_pic='-PIC'
 
17649
      lt_prog_compiler_static='-Bstatic'
 
17650
      ;;
 
17651
 
 
17652
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17653
      lt_prog_compiler_wl='-Wl,'
 
17654
      lt_prog_compiler_pic='-KPIC'
 
17655
      lt_prog_compiler_static='-Bstatic'
 
17656
      ;;
 
17657
 
 
17658
    sysv4*MP*)
 
17659
      if test -d /usr/nec ;then
 
17660
        lt_prog_compiler_pic='-Kconform_pic'
 
17661
        lt_prog_compiler_static='-Bstatic'
 
17662
      fi
 
17663
      ;;
 
17664
 
 
17665
    unicos*)
 
17666
      lt_prog_compiler_wl='-Wl,'
 
17667
      lt_prog_compiler_can_build_shared=no
 
17668
      ;;
 
17669
 
 
17670
    uts4*)
 
17671
      lt_prog_compiler_pic='-pic'
 
17672
      lt_prog_compiler_static='-Bstatic'
 
17673
      ;;
 
17674
 
 
17675
    *)
 
17676
      lt_prog_compiler_can_build_shared=no
 
17677
      ;;
 
17678
    esac
 
17679
  fi
 
17680
 
 
17681
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
17682
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
17683
 
 
17684
#
 
17685
# Check to make sure the PIC flag actually works.
 
17686
#
 
17687
if test -n "$lt_prog_compiler_pic"; then
 
17688
 
 
17689
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
17690
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
17691
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
17692
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17693
else
 
17694
  lt_prog_compiler_pic_works=no
 
17695
  ac_outfile=conftest.$ac_objext
 
17696
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17697
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
17698
   # Insert the option either (1) after the last *FLAGS variable, or
 
17699
   # (2) before a word containing "conftest.", or (3) at the end.
 
17700
   # Note that $ac_compile itself does not contain backslashes and begins
 
17701
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17702
   # The option is referenced via a variable to avoid confusing sed.
 
17703
   lt_compile=`echo "$ac_compile" | $SED \
 
17704
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17705
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17706
   -e 's:$: $lt_compiler_flag:'`
 
17707
   (eval echo "\"\$as_me:17707: $lt_compile\"" >&5)
 
17708
   (eval "$lt_compile" 2>conftest.err)
 
17709
   ac_status=$?
 
17710
   cat conftest.err >&5
 
17711
   echo "$as_me:17711: \$? = $ac_status" >&5
 
17712
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
17713
     # The compiler can only warn and ignore the option if not recognized
 
17714
     # So say no if there are warnings other than the usual output.
 
17715
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
17716
     $SED '/^$/d' conftest.err >conftest.er2
 
17717
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
17718
       lt_prog_compiler_pic_works=yes
 
17719
     fi
 
17720
   fi
 
17721
   $rm conftest*
 
17722
 
 
17723
fi
 
17724
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
17725
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
17726
 
 
17727
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
17728
    case $lt_prog_compiler_pic in
 
17729
     "" | " "*) ;;
 
17730
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
17731
     esac
 
17732
else
 
17733
    lt_prog_compiler_pic=
 
17734
     lt_prog_compiler_can_build_shared=no
 
17735
fi
 
17736
 
 
17737
fi
 
17738
case $host_os in
 
17739
  # For platforms which do not support PIC, -DPIC is meaningless:
 
17740
  *djgpp*)
 
17741
    lt_prog_compiler_pic=
 
17742
    ;;
 
17743
  *)
 
17744
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
17745
    ;;
 
17746
esac
 
17747
 
 
17748
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
17749
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
17750
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
17751
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17752
else
 
17753
  lt_cv_prog_compiler_c_o=no
 
17754
   $rm -r conftest 2>/dev/null
 
17755
   mkdir conftest
 
17756
   cd conftest
 
17757
   mkdir out
 
17758
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17759
 
 
17760
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
17761
   # Insert the option either (1) after the last *FLAGS variable, or
 
17762
   # (2) before a word containing "conftest.", or (3) at the end.
 
17763
   # Note that $ac_compile itself does not contain backslashes and begins
 
17764
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17765
   lt_compile=`echo "$ac_compile" | $SED \
 
17766
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17767
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17768
   -e 's:$: $lt_compiler_flag:'`
 
17769
   (eval echo "\"\$as_me:17769: $lt_compile\"" >&5)
 
17770
   (eval "$lt_compile" 2>out/conftest.err)
 
17771
   ac_status=$?
 
17772
   cat out/conftest.err >&5
 
17773
   echo "$as_me:17773: \$? = $ac_status" >&5
 
17774
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
17775
   then
 
17776
     # The compiler can only warn and ignore the option if not recognized
 
17777
     # So say no if there are warnings
 
17778
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
17779
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
17780
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
17781
       lt_cv_prog_compiler_c_o=yes
 
17782
     fi
 
17783
   fi
 
17784
   chmod u+w . 2>&5
 
17785
   $rm conftest*
 
17786
   # SGI C++ compiler will create directory out/ii_files/ for
 
17787
   # template instantiation
 
17788
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
17789
   $rm out/* && rmdir out
 
17790
   cd ..
 
17791
   rmdir conftest
 
17792
   $rm conftest*
 
17793
 
 
17794
fi
 
17795
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
17796
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
17797
 
 
17798
 
 
17799
hard_links="nottested"
 
17800
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
17801
  # do not overwrite the value of need_locks provided by the user
 
17802
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
17803
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
17804
  hard_links=yes
 
17805
  $rm conftest*
 
17806
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17807
  touch conftest.a
 
17808
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
17809
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17810
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
17811
echo "${ECHO_T}$hard_links" >&6
 
17812
  if test "$hard_links" = no; then
 
17813
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
17814
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
17815
    need_locks=warn
 
17816
  fi
 
17817
else
 
17818
  need_locks=no
 
17819
fi
 
17820
 
 
17821
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
17822
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
17823
 
 
17824
  runpath_var=
 
17825
  allow_undefined_flag=
 
17826
  enable_shared_with_static_runtimes=no
 
17827
  archive_cmds=
 
17828
  archive_expsym_cmds=
 
17829
  old_archive_From_new_cmds=
 
17830
  old_archive_from_expsyms_cmds=
 
17831
  export_dynamic_flag_spec=
 
17832
  whole_archive_flag_spec=
 
17833
  thread_safe_flag_spec=
 
17834
  hardcode_libdir_flag_spec=
 
17835
  hardcode_libdir_flag_spec_ld=
 
17836
  hardcode_libdir_separator=
 
17837
  hardcode_direct=no
 
17838
  hardcode_minus_L=no
 
17839
  hardcode_shlibpath_var=unsupported
 
17840
  link_all_deplibs=unknown
 
17841
  hardcode_automatic=no
 
17842
  module_cmds=
 
17843
  module_expsym_cmds=
 
17844
  always_export_symbols=no
 
17845
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
17846
  # include_expsyms should be a list of space-separated symbols to be *always*
 
17847
  # included in the symbol list
 
17848
  include_expsyms=
 
17849
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
17850
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
17851
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
17852
  # as well as any symbol that contains `d'.
 
17853
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
17854
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
17855
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
17856
  # the symbol is explicitly referenced.  Since portable code cannot
 
17857
  # rely on this symbol name, it's probably fine to never include it in
 
17858
  # preloaded symbol tables.
 
17859
  extract_expsyms_cmds=
 
17860
  # Just being paranoid about ensuring that cc_basename is set.
 
17861
  for cc_temp in $compiler""; do
 
17862
  case $cc_temp in
 
17863
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17864
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17865
    \-*) ;;
 
17866
    *) break;;
 
17867
  esac
 
17868
done
 
17869
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
17870
 
 
17871
  case $host_os in
 
17872
  cygwin* | mingw* | pw32*)
 
17873
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
17874
    # When not using gcc, we currently assume that we are using
 
17875
    # Microsoft Visual C++.
 
17876
    if test "$GCC" != yes; then
 
17877
      with_gnu_ld=no
 
17878
    fi
 
17879
    ;;
 
17880
  openbsd*)
 
17881
    with_gnu_ld=no
 
17882
    ;;
 
17883
  esac
 
17884
 
 
17885
  ld_shlibs=yes
 
17886
  if test "$with_gnu_ld" = yes; then
 
17887
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
17888
    wlarc='${wl}'
 
17889
 
 
17890
    # Set some defaults for GNU ld with shared library support. These
 
17891
    # are reset later if shared libraries are not supported. Putting them
 
17892
    # here allows them to be overridden if necessary.
 
17893
    runpath_var=LD_RUN_PATH
 
17894
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
17895
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
17896
    # ancient GNU ld didn't support --whole-archive et. al.
 
17897
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
17898
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
17899
      else
 
17900
        whole_archive_flag_spec=
 
17901
    fi
 
17902
    supports_anon_versioning=no
 
17903
    case `$LD -v 2>/dev/null` in
 
17904
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
17905
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
17906
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
17907
      *\ 2.11.*) ;; # other 2.11 versions
 
17908
      *) supports_anon_versioning=yes ;;
 
17909
    esac
 
17910
 
 
17911
    # See if GNU ld supports shared libraries.
 
17912
    case $host_os in
 
17913
    aix3* | aix4* | aix5*)
 
17914
      # On AIX/PPC, the GNU linker is very broken
 
17915
      if test "$host_cpu" != ia64; then
 
17916
        ld_shlibs=no
 
17917
        cat <<EOF 1>&2
 
17918
 
 
17919
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
17920
*** to be unable to reliably create shared libraries on AIX.
 
17921
*** Therefore, libtool is disabling shared libraries support.  If you
 
17922
*** really care for shared libraries, you may want to modify your PATH
 
17923
*** so that a non-GNU linker is found, and then restart.
 
17924
 
 
17925
EOF
 
17926
      fi
 
17927
      ;;
 
17928
 
 
17929
    amigaos*)
 
17930
      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
17931
      hardcode_libdir_flag_spec='-L$libdir'
 
17932
      hardcode_minus_L=yes
 
17933
 
 
17934
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
17935
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
17936
      # to version 4, is to share data among multiple programs linked
 
17937
      # with the same dynamic library.  Since this doesn't match the
 
17938
      # behavior of shared libraries on other platforms, we can't use
 
17939
      # them.
 
17940
      ld_shlibs=no
 
17941
      ;;
 
17942
 
 
17943
    beos*)
 
17944
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17945
        allow_undefined_flag=unsupported
 
17946
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
17947
        # support --undefined.  This deserves some investigation.  FIXME
 
17948
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17949
      else
 
17950
        ld_shlibs=no
 
17951
      fi
 
17952
      ;;
 
17953
 
 
17954
    cygwin* | mingw* | pw32*)
 
17955
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
17956
      # as there is no search path for DLLs.
 
17957
      hardcode_libdir_flag_spec='-L$libdir'
 
17958
      allow_undefined_flag=unsupported
 
17959
      always_export_symbols=no
 
17960
      enable_shared_with_static_runtimes=yes
 
17961
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
17962
 
 
17963
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
17964
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
17965
        # If the export-symbols file already is a .def file (1st line
 
17966
        # is EXPORTS), use it as is; otherwise, prepend...
 
17967
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
17968
          cp $export_symbols $output_objdir/$soname.def;
 
17969
        else
 
17970
          echo EXPORTS > $output_objdir/$soname.def;
 
17971
          cat $export_symbols >> $output_objdir/$soname.def;
 
17972
        fi~
 
17973
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
17974
      else
 
17975
        ld_shlibs=no
 
17976
      fi
 
17977
      ;;
 
17978
 
 
17979
    linux*)
 
17980
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17981
        tmp_addflag=
 
17982
        case $cc_basename,$host_cpu in
 
17983
        pgcc*)                          # Portland Group C compiler
 
17984
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
17985
          tmp_addflag=' $pic_flag'
 
17986
          ;;
 
17987
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
17988
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
17989
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
17990
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
17991
          tmp_addflag=' -i_dynamic' ;;
 
17992
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
17993
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
17994
        ifc* | ifort*)                  # Intel Fortran compiler
 
17995
          tmp_addflag=' -nofor_main' ;;
 
17996
        esac
 
17997
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17998
 
 
17999
        if test $supports_anon_versioning = yes; then
 
18000
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
18001
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
18002
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
18003
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
18004
        fi
 
18005
      else
 
18006
        ld_shlibs=no
 
18007
      fi
 
18008
      ;;
 
18009
 
 
18010
    netbsd*)
 
18011
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18012
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
18013
        wlarc=
 
18014
      else
 
18015
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18016
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
18017
      fi
 
18018
      ;;
 
18019
 
 
18020
    solaris* | sysv5*)
 
18021
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
18022
        ld_shlibs=no
 
18023
        cat <<EOF 1>&2
 
18024
 
 
18025
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
18026
*** create shared libraries on Solaris systems.  Therefore, libtool
 
18027
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
18028
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
18029
*** your PATH or compiler configuration so that the native linker is
 
18030
*** used, and then restart.
 
18031
 
 
18032
EOF
 
18033
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18034
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18035
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
18036
      else
 
18037
        ld_shlibs=no
 
18038
      fi
 
18039
      ;;
 
18040
 
 
18041
    sunos4*)
 
18042
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18043
      wlarc=
 
18044
      hardcode_direct=yes
 
18045
      hardcode_shlibpath_var=no
 
18046
      ;;
 
18047
 
 
18048
    *)
 
18049
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18050
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18051
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
18052
      else
 
18053
        ld_shlibs=no
 
18054
      fi
 
18055
      ;;
 
18056
    esac
 
18057
 
 
18058
    if test "$ld_shlibs" = no; then
 
18059
      runpath_var=
 
18060
      hardcode_libdir_flag_spec=
 
18061
      export_dynamic_flag_spec=
 
18062
      whole_archive_flag_spec=
 
18063
    fi
 
18064
  else
 
18065
    # PORTME fill in a description of your system's linker (not GNU ld)
 
18066
    case $host_os in
 
18067
    aix3*)
 
18068
      allow_undefined_flag=unsupported
 
18069
      always_export_symbols=yes
 
18070
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
18071
      # Note: this linker hardcodes the directories in LIBPATH if there
 
18072
      # are no directories specified by -L.
 
18073
      hardcode_minus_L=yes
 
18074
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
18075
        # Neither direct hardcoding nor static linking is supported with a
 
18076
        # broken collect2.
 
18077
        hardcode_direct=unsupported
 
18078
      fi
 
18079
      ;;
 
18080
 
 
18081
    aix4* | aix5*)
 
18082
      if test "$host_cpu" = ia64; then
 
18083
        # On IA64, the linker does run time linking by default, so we don't
 
18084
        # have to do anything special.
 
18085
        aix_use_runtimelinking=no
 
18086
        exp_sym_flag='-Bexport'
 
18087
        no_entry_flag=""
 
18088
      else
 
18089
        # If we're using GNU nm, then we don't want the "-C" option.
 
18090
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
18091
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
18092
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
18093
        else
 
18094
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
18095
        fi
 
18096
        aix_use_runtimelinking=no
 
18097
 
 
18098
        # Test if we are trying to use run time linking or normal
 
18099
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
18100
        # need to do runtime linking.
 
18101
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
18102
          for ld_flag in $LDFLAGS; do
 
18103
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
18104
            aix_use_runtimelinking=yes
 
18105
            break
 
18106
          fi
 
18107
          done
 
18108
        esac
 
18109
 
 
18110
        exp_sym_flag='-bexport'
 
18111
        no_entry_flag='-bnoentry'
 
18112
      fi
 
18113
 
 
18114
      # When large executables or shared objects are built, AIX ld can
 
18115
      # have problems creating the table of contents.  If linking a library
 
18116
      # or program results in "error TOC overflow" add -mminimal-toc to
 
18117
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
18118
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
18119
 
 
18120
      archive_cmds=''
 
18121
      hardcode_direct=yes
 
18122
      hardcode_libdir_separator=':'
 
18123
      link_all_deplibs=yes
 
18124
 
 
18125
      if test "$GCC" = yes; then
 
18126
        case $host_os in aix4.[012]|aix4.[012].*)
 
18127
        # We only want to do this on AIX 4.2 and lower, the check
 
18128
        # below for broken collect2 doesn't work under 4.3+
 
18129
          collect2name=`${CC} -print-prog-name=collect2`
 
18130
          if test -f "$collect2name" && \
 
18131
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
18132
          then
 
18133
          # We have reworked collect2
 
18134
          hardcode_direct=yes
 
18135
          else
 
18136
          # We have old collect2
 
18137
          hardcode_direct=unsupported
 
18138
          # It fails to find uninstalled libraries when the uninstalled
 
18139
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
18140
          # to unsupported forces relinking
 
18141
          hardcode_minus_L=yes
 
18142
          hardcode_libdir_flag_spec='-L$libdir'
 
18143
          hardcode_libdir_separator=
 
18144
          fi
 
18145
        esac
 
18146
        shared_flag='-shared'
 
18147
        if test "$aix_use_runtimelinking" = yes; then
 
18148
          shared_flag="$shared_flag "'${wl}-G'
 
18149
        fi
 
18150
      else
 
18151
        # not using gcc
 
18152
        if test "$host_cpu" = ia64; then
 
18153
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
18154
        # chokes on -Wl,-G. The following line is correct:
 
18155
          shared_flag='-G'
 
18156
        else
 
18157
        if test "$aix_use_runtimelinking" = yes; then
 
18158
            shared_flag='${wl}-G'
 
18159
          else
 
18160
            shared_flag='${wl}-bM:SRE'
 
18161
        fi
 
18162
        fi
 
18163
      fi
 
18164
 
 
18165
      # It seems that -bexpall does not export symbols beginning with
 
18166
      # underscore (_), so it is better to generate a list of symbols to export.
 
18167
      always_export_symbols=yes
 
18168
      if test "$aix_use_runtimelinking" = yes; then
 
18169
        # Warning - without using the other runtime loading flags (-brtl),
 
18170
        # -berok will link without error, but may produce a broken library.
 
18171
        allow_undefined_flag='-berok'
 
18172
       # Determine the default libpath from the value encoded in an empty executable.
 
18173
       cat >conftest.$ac_ext <<_ACEOF
 
18174
/* confdefs.h.  */
 
18175
_ACEOF
 
18176
cat confdefs.h >>conftest.$ac_ext
 
18177
cat >>conftest.$ac_ext <<_ACEOF
 
18178
/* end confdefs.h.  */
 
18179
 
 
18180
int
 
18181
main ()
 
18182
{
 
18183
 
 
18184
  ;
 
18185
  return 0;
 
18186
}
 
18187
_ACEOF
 
18188
rm -f conftest.$ac_objext conftest$ac_exeext
 
18189
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18190
  (eval $ac_link) 2>conftest.er1
 
18191
  ac_status=$?
 
18192
  grep -v '^ *+' conftest.er1 >conftest.err
 
18193
  rm -f conftest.er1
 
18194
  cat conftest.err >&5
 
18195
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18196
  (exit $ac_status); } &&
 
18197
         { ac_try='test -z "$ac_c_werror_flag"
 
18198
                         || test ! -s conftest.err'
 
18199
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18200
  (eval $ac_try) 2>&5
 
18201
  ac_status=$?
 
18202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18203
  (exit $ac_status); }; } &&
 
18204
         { ac_try='test -s conftest$ac_exeext'
 
18205
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18206
  (eval $ac_try) 2>&5
 
18207
  ac_status=$?
 
18208
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18209
  (exit $ac_status); }; }; then
 
18210
 
 
18211
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
18212
}'`
 
18213
# Check for a 64-bit object if we didn't find anything.
 
18214
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
18215
}'`; fi
 
18216
else
 
18217
  echo "$as_me: failed program was:" >&5
 
18218
sed 's/^/| /' conftest.$ac_ext >&5
 
18219
 
 
18220
fi
 
18221
rm -f conftest.err conftest.$ac_objext \
 
18222
      conftest$ac_exeext conftest.$ac_ext
 
18223
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
18224
 
 
18225
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
18226
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
18227
       else
 
18228
        if test "$host_cpu" = ia64; then
 
18229
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
18230
          allow_undefined_flag="-z nodefs"
 
18231
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
18232
        else
 
18233
         # Determine the default libpath from the value encoded in an empty executable.
 
18234
         cat >conftest.$ac_ext <<_ACEOF
 
18235
/* confdefs.h.  */
 
18236
_ACEOF
 
18237
cat confdefs.h >>conftest.$ac_ext
 
18238
cat >>conftest.$ac_ext <<_ACEOF
 
18239
/* end confdefs.h.  */
 
18240
 
 
18241
int
 
18242
main ()
 
18243
{
 
18244
 
 
18245
  ;
 
18246
  return 0;
 
18247
}
 
18248
_ACEOF
 
18249
rm -f conftest.$ac_objext conftest$ac_exeext
 
18250
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18251
  (eval $ac_link) 2>conftest.er1
 
18252
  ac_status=$?
 
18253
  grep -v '^ *+' conftest.er1 >conftest.err
 
18254
  rm -f conftest.er1
 
18255
  cat conftest.err >&5
 
18256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18257
  (exit $ac_status); } &&
 
18258
         { ac_try='test -z "$ac_c_werror_flag"
 
18259
                         || test ! -s conftest.err'
 
18260
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18261
  (eval $ac_try) 2>&5
 
18262
  ac_status=$?
 
18263
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18264
  (exit $ac_status); }; } &&
 
18265
         { ac_try='test -s conftest$ac_exeext'
 
18266
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18267
  (eval $ac_try) 2>&5
 
18268
  ac_status=$?
 
18269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18270
  (exit $ac_status); }; }; then
 
18271
 
 
18272
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
18273
}'`
 
18274
# Check for a 64-bit object if we didn't find anything.
 
18275
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
18276
}'`; fi
 
18277
else
 
18278
  echo "$as_me: failed program was:" >&5
 
18279
sed 's/^/| /' conftest.$ac_ext >&5
 
18280
 
 
18281
fi
 
18282
rm -f conftest.err conftest.$ac_objext \
 
18283
      conftest$ac_exeext conftest.$ac_ext
 
18284
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
18285
 
 
18286
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
18287
          # Warning - without using the other run time loading flags,
 
18288
          # -berok will link without error, but may produce a broken library.
 
18289
          no_undefined_flag=' ${wl}-bernotok'
 
18290
          allow_undefined_flag=' ${wl}-berok'
 
18291
          # -bexpall does not export symbols beginning with underscore (_)
 
18292
          always_export_symbols=yes
 
18293
          # Exported symbols can be pulled into shared objects from archives
 
18294
          whole_archive_flag_spec=' '
 
18295
          archive_cmds_need_lc=yes
 
18296
          # This is similar to how AIX traditionally builds its shared libraries.
 
18297
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
18298
        fi
 
18299
      fi
 
18300
      ;;
 
18301
 
 
18302
    amigaos*)
 
18303
      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
18304
      hardcode_libdir_flag_spec='-L$libdir'
 
18305
      hardcode_minus_L=yes
 
18306
      # see comment about different semantics on the GNU ld section
 
18307
      ld_shlibs=no
 
18308
      ;;
 
18309
 
 
18310
    bsdi[45]*)
 
18311
      export_dynamic_flag_spec=-rdynamic
 
18312
      ;;
 
18313
 
 
18314
    cygwin* | mingw* | pw32*)
 
18315
      # When not using gcc, we currently assume that we are using
 
18316
      # Microsoft Visual C++.
 
18317
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
18318
      # no search path for DLLs.
 
18319
      hardcode_libdir_flag_spec=' '
 
18320
      allow_undefined_flag=unsupported
 
18321
      # Tell ltmain to make .lib files, not .a files.
 
18322
      libext=lib
 
18323
      # Tell ltmain to make .dll files, not .so files.
 
18324
      shrext_cmds=".dll"
 
18325
      # FIXME: Setting linknames here is a bad hack.
 
18326
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
18327
      # The linker will automatically build a .lib file if we build a DLL.
 
18328
      old_archive_From_new_cmds='true'
 
18329
      # FIXME: Should let the user specify the lib program.
 
18330
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
18331
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
18332
      enable_shared_with_static_runtimes=yes
 
18333
      ;;
 
18334
 
 
18335
    darwin* | rhapsody*)
 
18336
      case $host_os in
 
18337
        rhapsody* | darwin1.[012])
 
18338
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
18339
         ;;
 
18340
       *) # Darwin 1.3 on
 
18341
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
18342
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
18343
         else
 
18344
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
18345
             10.[012])
 
18346
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
18347
               ;;
 
18348
             10.*)
 
18349
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
18350
               ;;
 
18351
           esac
 
18352
         fi
 
18353
         ;;
 
18354
      esac
 
18355
      archive_cmds_need_lc=no
 
18356
      hardcode_direct=no
 
18357
      hardcode_automatic=yes
 
18358
      hardcode_shlibpath_var=unsupported
 
18359
      whole_archive_flag_spec=''
 
18360
      link_all_deplibs=yes
 
18361
    if test "$GCC" = yes ; then
 
18362
        output_verbose_link_cmd='echo'
 
18363
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
18364
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
18365
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
18366
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18367
      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18368
    else
 
18369
      case $cc_basename in
 
18370
        xlc*)
 
18371
         output_verbose_link_cmd='echo'
 
18372
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
18373
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
18374
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
18375
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18376
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18377
          ;;
 
18378
       *)
 
18379
         ld_shlibs=no
 
18380
          ;;
 
18381
      esac
 
18382
    fi
 
18383
      ;;
 
18384
 
 
18385
    dgux*)
 
18386
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18387
      hardcode_libdir_flag_spec='-L$libdir'
 
18388
      hardcode_shlibpath_var=no
 
18389
      ;;
 
18390
 
 
18391
    freebsd1*)
 
18392
      ld_shlibs=no
 
18393
      ;;
 
18394
 
 
18395
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
18396
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
18397
    # does not break anything, and helps significantly (at the cost of a little
 
18398
    # extra space).
 
18399
    freebsd2.2*)
 
18400
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
18401
      hardcode_libdir_flag_spec='-R$libdir'
 
18402
      hardcode_direct=yes
 
18403
      hardcode_shlibpath_var=no
 
18404
      ;;
 
18405
 
 
18406
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
18407
    freebsd2*)
 
18408
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18409
      hardcode_direct=yes
 
18410
      hardcode_minus_L=yes
 
18411
      hardcode_shlibpath_var=no
 
18412
      ;;
 
18413
 
 
18414
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
18415
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
18416
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
18417
      hardcode_libdir_flag_spec='-R$libdir'
 
18418
      hardcode_direct=yes
 
18419
      hardcode_shlibpath_var=no
 
18420
      ;;
 
18421
 
 
18422
    hpux9*)
 
18423
      if test "$GCC" = yes; then
 
18424
        archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
18425
      else
 
18426
        archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
18427
      fi
 
18428
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
18429
      hardcode_libdir_separator=:
 
18430
      hardcode_direct=yes
 
18431
 
 
18432
      # hardcode_minus_L: Not really in the search PATH,
 
18433
      # but as the default location of the library.
 
18434
      hardcode_minus_L=yes
 
18435
      export_dynamic_flag_spec='${wl}-E'
 
18436
      ;;
 
18437
 
 
18438
    hpux10* | hpux11*)
 
18439
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18440
        case $host_cpu in
 
18441
        hppa*64*|ia64*)
 
18442
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18443
          ;;
 
18444
        *)
 
18445
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18446
          ;;
 
18447
        esac
 
18448
      else
 
18449
        case $host_cpu in
 
18450
        hppa*64*|ia64*)
 
18451
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18452
          ;;
 
18453
        *)
 
18454
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
18455
          ;;
 
18456
        esac
 
18457
      fi
 
18458
      if test "$with_gnu_ld" = no; then
 
18459
        case $host_cpu in
 
18460
        hppa*64*)
 
18461
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
18462
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
18463
          hardcode_libdir_separator=:
 
18464
          hardcode_direct=no
 
18465
          hardcode_shlibpath_var=no
 
18466
          ;;
 
18467
        ia64*)
 
18468
          hardcode_libdir_flag_spec='-L$libdir'
 
18469
          hardcode_direct=no
 
18470
          hardcode_shlibpath_var=no
 
18471
 
 
18472
          # hardcode_minus_L: Not really in the search PATH,
 
18473
          # but as the default location of the library.
 
18474
          hardcode_minus_L=yes
 
18475
          ;;
 
18476
        *)
 
18477
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
18478
          hardcode_libdir_separator=:
 
18479
          hardcode_direct=yes
 
18480
          export_dynamic_flag_spec='${wl}-E'
 
18481
 
 
18482
          # hardcode_minus_L: Not really in the search PATH,
 
18483
          # but as the default location of the library.
 
18484
          hardcode_minus_L=yes
 
18485
          ;;
 
18486
        esac
 
18487
      fi
 
18488
      ;;
 
18489
 
 
18490
    irix5* | irix6* | nonstopux*)
 
18491
      if test "$GCC" = yes; then
 
18492
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
18493
      else
 
18494
        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
18495
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
18496
      fi
 
18497
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
18498
      hardcode_libdir_separator=:
 
18499
      link_all_deplibs=yes
 
18500
      ;;
 
18501
 
 
18502
    netbsd*)
 
18503
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18504
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
18505
      else
 
18506
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
18507
      fi
 
18508
      hardcode_libdir_flag_spec='-R$libdir'
 
18509
      hardcode_direct=yes
 
18510
      hardcode_shlibpath_var=no
 
18511
      ;;
 
18512
 
 
18513
    newsos6)
 
18514
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18515
      hardcode_direct=yes
 
18516
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
18517
      hardcode_libdir_separator=:
 
18518
      hardcode_shlibpath_var=no
 
18519
      ;;
 
18520
 
 
18521
    openbsd*)
 
18522
      hardcode_direct=yes
 
18523
      hardcode_shlibpath_var=no
 
18524
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18525
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18526
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
18527
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
18528
        export_dynamic_flag_spec='${wl}-E'
 
18529
      else
 
18530
       case $host_os in
 
18531
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
18532
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18533
           hardcode_libdir_flag_spec='-R$libdir'
 
18534
           ;;
 
18535
         *)
 
18536
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18537
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
18538
           ;;
 
18539
       esac
 
18540
      fi
 
18541
      ;;
 
18542
 
 
18543
    os2*)
 
18544
      hardcode_libdir_flag_spec='-L$libdir'
 
18545
      hardcode_minus_L=yes
 
18546
      allow_undefined_flag=unsupported
 
18547
      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
18548
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
18549
      ;;
 
18550
 
 
18551
    osf3*)
 
18552
      if test "$GCC" = yes; then
 
18553
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
18554
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
18555
      else
 
18556
        allow_undefined_flag=' -expect_unresolved \*'
 
18557
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
18558
      fi
 
18559
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
18560
      hardcode_libdir_separator=:
 
18561
      ;;
 
18562
 
 
18563
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
18564
      if test "$GCC" = yes; then
 
18565
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
18566
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
18567
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
18568
      else
 
18569
        allow_undefined_flag=' -expect_unresolved \*'
 
18570
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
18571
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
18572
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
18573
 
 
18574
        # Both c and cxx compiler support -rpath directly
 
18575
        hardcode_libdir_flag_spec='-rpath $libdir'
 
18576
      fi
 
18577
      hardcode_libdir_separator=:
 
18578
      ;;
 
18579
 
 
18580
    sco3.2v5*)
 
18581
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18582
      hardcode_shlibpath_var=no
 
18583
      export_dynamic_flag_spec='${wl}-Bexport'
 
18584
      runpath_var=LD_RUN_PATH
 
18585
      hardcode_runpath_var=yes
 
18586
      ;;
 
18587
 
 
18588
    solaris*)
 
18589
      no_undefined_flag=' -z text'
 
18590
      if test "$GCC" = yes; then
 
18591
        wlarc='${wl}'
 
18592
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18593
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18594
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
18595
      else
 
18596
        wlarc=''
 
18597
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18598
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18599
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
18600
      fi
 
18601
      hardcode_libdir_flag_spec='-R$libdir'
 
18602
      hardcode_shlibpath_var=no
 
18603
      case $host_os in
 
18604
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
18605
      *)
 
18606
        # The compiler driver will combine linker options so we
 
18607
        # cannot just pass the convience library names through
 
18608
        # without $wl, iff we do not link with $LD.
 
18609
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
18610
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
18611
        case $wlarc in
 
18612
        '')
 
18613
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
18614
        *)
 
18615
          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
18616
        esac ;;
 
18617
      esac
 
18618
      link_all_deplibs=yes
 
18619
      ;;
 
18620
 
 
18621
    sunos4*)
 
18622
      if test "x$host_vendor" = xsequent; then
 
18623
        # Use $CC to link under sequent, because it throws in some extra .o
 
18624
        # files that make .init and .fini sections work.
 
18625
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
18626
      else
 
18627
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
18628
      fi
 
18629
      hardcode_libdir_flag_spec='-L$libdir'
 
18630
      hardcode_direct=yes
 
18631
      hardcode_minus_L=yes
 
18632
      hardcode_shlibpath_var=no
 
18633
      ;;
 
18634
 
 
18635
    sysv4)
 
18636
      case $host_vendor in
 
18637
        sni)
 
18638
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18639
          hardcode_direct=yes # is this really true???
 
18640
        ;;
 
18641
        siemens)
 
18642
          ## LD is ld it makes a PLAMLIB
 
18643
          ## CC just makes a GrossModule.
 
18644
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
18645
          reload_cmds='$CC -r -o $output$reload_objs'
 
18646
          hardcode_direct=no
 
18647
        ;;
 
18648
        motorola)
 
18649
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18650
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
18651
        ;;
 
18652
      esac
 
18653
      runpath_var='LD_RUN_PATH'
 
18654
      hardcode_shlibpath_var=no
 
18655
      ;;
 
18656
 
 
18657
    sysv4.3*)
 
18658
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18659
      hardcode_shlibpath_var=no
 
18660
      export_dynamic_flag_spec='-Bexport'
 
18661
      ;;
 
18662
 
 
18663
    sysv4*MP*)
 
18664
      if test -d /usr/nec; then
 
18665
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18666
        hardcode_shlibpath_var=no
 
18667
        runpath_var=LD_RUN_PATH
 
18668
        hardcode_runpath_var=yes
 
18669
        ld_shlibs=yes
 
18670
      fi
 
18671
      ;;
 
18672
 
 
18673
    sysv4.2uw2*)
 
18674
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
18675
      hardcode_direct=yes
 
18676
      hardcode_minus_L=no
 
18677
      hardcode_shlibpath_var=no
 
18678
      hardcode_runpath_var=yes
 
18679
      runpath_var=LD_RUN_PATH
 
18680
      ;;
 
18681
 
 
18682
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
18683
      no_undefined_flag='${wl}-z ${wl}text'
 
18684
      if test "$GCC" = yes; then
 
18685
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18686
      else
 
18687
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18688
      fi
 
18689
      runpath_var='LD_RUN_PATH'
 
18690
      hardcode_shlibpath_var=no
 
18691
      ;;
 
18692
 
 
18693
    sysv5*)
 
18694
      no_undefined_flag=' -z text'
 
18695
      # $CC -shared without GNU ld will not create a library from C++
 
18696
      # object files and a static libstdc++, better avoid it by now
 
18697
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18698
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18699
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
18700
      hardcode_libdir_flag_spec=
 
18701
      hardcode_shlibpath_var=no
 
18702
      runpath_var='LD_RUN_PATH'
 
18703
      ;;
 
18704
 
 
18705
    uts4*)
 
18706
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18707
      hardcode_libdir_flag_spec='-L$libdir'
 
18708
      hardcode_shlibpath_var=no
 
18709
      ;;
 
18710
 
 
18711
    *)
 
18712
      ld_shlibs=no
 
18713
      ;;
 
18714
    esac
 
18715
  fi
 
18716
 
 
18717
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
18718
echo "${ECHO_T}$ld_shlibs" >&6
 
18719
test "$ld_shlibs" = no && can_build_shared=no
 
18720
 
 
18721
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
18722
if test "$GCC" = yes; then
 
18723
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
18724
fi
 
18725
 
 
18726
#
 
18727
# Do we need to explicitly link libc?
 
18728
#
 
18729
case "x$archive_cmds_need_lc" in
 
18730
x|xyes)
 
18731
  # Assume -lc should be added
 
18732
  archive_cmds_need_lc=yes
 
18733
 
 
18734
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
18735
    case $archive_cmds in
 
18736
    *'~'*)
 
18737
      # FIXME: we may have to deal with multi-command sequences.
 
18738
      ;;
 
18739
    '$CC '*)
 
18740
      # Test whether the compiler implicitly links with -lc since on some
 
18741
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
18742
      # to ld, don't add -lc before -lgcc.
 
18743
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
18744
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
18745
      $rm conftest*
 
18746
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18747
 
 
18748
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18749
  (eval $ac_compile) 2>&5
 
18750
  ac_status=$?
 
18751
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18752
  (exit $ac_status); } 2>conftest.err; then
 
18753
        soname=conftest
 
18754
        lib=conftest
 
18755
        libobjs=conftest.$ac_objext
 
18756
        deplibs=
 
18757
        wl=$lt_prog_compiler_wl
 
18758
        compiler_flags=-v
 
18759
        linker_flags=-v
 
18760
        verstring=
 
18761
        output_objdir=.
 
18762
        libname=conftest
 
18763
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
18764
        allow_undefined_flag=
 
18765
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
18766
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
18767
  ac_status=$?
 
18768
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18769
  (exit $ac_status); }
 
18770
        then
 
18771
          archive_cmds_need_lc=no
 
18772
        else
 
18773
          archive_cmds_need_lc=yes
 
18774
        fi
 
18775
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
18776
      else
 
18777
        cat conftest.err 1>&5
 
18778
      fi
 
18779
      $rm conftest*
 
18780
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
18781
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
18782
      ;;
 
18783
    esac
 
18784
  fi
 
18785
  ;;
 
18786
esac
 
18787
 
 
18788
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
18789
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
18790
library_names_spec=
 
18791
libname_spec='lib$name'
 
18792
soname_spec=
 
18793
shrext_cmds=".so"
 
18794
postinstall_cmds=
 
18795
postuninstall_cmds=
 
18796
finish_cmds=
 
18797
finish_eval=
 
18798
shlibpath_var=
 
18799
shlibpath_overrides_runpath=unknown
 
18800
version_type=none
 
18801
dynamic_linker="$host_os ld.so"
 
18802
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
18803
if test "$GCC" = yes; then
 
18804
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18805
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
18806
    # if the path contains ";" then we assume it to be the separator
 
18807
    # otherwise default to the standard path separator (i.e. ":") - it is
 
18808
    # assumed that no part of a normal pathname contains ";" but that should
 
18809
    # okay in the real world where ";" in dirpaths is itself problematic.
 
18810
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18811
  else
 
18812
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18813
  fi
 
18814
else
 
18815
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
18816
fi
 
18817
need_lib_prefix=unknown
 
18818
hardcode_into_libs=no
 
18819
 
 
18820
# when you set need_version to no, make sure it does not cause -set_version
 
18821
# flags to be left without arguments
 
18822
need_version=unknown
 
18823
 
 
18824
case $host_os in
 
18825
aix3*)
 
18826
  version_type=linux
 
18827
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
18828
  shlibpath_var=LIBPATH
 
18829
 
 
18830
  # AIX 3 has no versioning support, so we append a major version to the name.
 
18831
  soname_spec='${libname}${release}${shared_ext}$major'
 
18832
  ;;
 
18833
 
 
18834
aix4* | aix5*)
 
18835
  version_type=linux
 
18836
  need_lib_prefix=no
 
18837
  need_version=no
 
18838
  hardcode_into_libs=yes
 
18839
  if test "$host_cpu" = ia64; then
 
18840
    # AIX 5 supports IA64
 
18841
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
18842
    shlibpath_var=LD_LIBRARY_PATH
 
18843
  else
 
18844
    # With GCC up to 2.95.x, collect2 would create an import file
 
18845
    # for dependence libraries.  The import file would start with
 
18846
    # the line `#! .'.  This would cause the generated library to
 
18847
    # depend on `.', always an invalid library.  This was fixed in
 
18848
    # development snapshots of GCC prior to 3.0.
 
18849
    case $host_os in
 
18850
      aix4 | aix4.[01] | aix4.[01].*)
 
18851
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
18852
           echo ' yes '
 
18853
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
18854
        :
 
18855
      else
 
18856
        can_build_shared=no
 
18857
      fi
 
18858
      ;;
 
18859
    esac
 
18860
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
18861
    # soname into executable. Probably we can add versioning support to
 
18862
    # collect2, so additional links can be useful in future.
 
18863
    if test "$aix_use_runtimelinking" = yes; then
 
18864
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
18865
      # instead of lib<name>.a to let people know that these are not
 
18866
      # typical AIX shared libraries.
 
18867
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18868
    else
 
18869
      # We preserve .a as extension for shared libraries through AIX4.2
 
18870
      # and later when we are not doing run time linking.
 
18871
      library_names_spec='${libname}${release}.a $libname.a'
 
18872
      soname_spec='${libname}${release}${shared_ext}$major'
 
18873
    fi
 
18874
    shlibpath_var=LIBPATH
 
18875
  fi
 
18876
  ;;
 
18877
 
 
18878
amigaos*)
 
18879
  library_names_spec='$libname.ixlibrary $libname.a'
 
18880
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
18881
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
18882
  ;;
 
18883
 
 
18884
beos*)
 
18885
  library_names_spec='${libname}${shared_ext}'
 
18886
  dynamic_linker="$host_os ld.so"
 
18887
  shlibpath_var=LIBRARY_PATH
 
18888
  ;;
 
18889
 
 
18890
bsdi[45]*)
 
18891
  version_type=linux
 
18892
  need_version=no
 
18893
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18894
  soname_spec='${libname}${release}${shared_ext}$major'
 
18895
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
18896
  shlibpath_var=LD_LIBRARY_PATH
 
18897
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
18898
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
18899
  # the default ld.so.conf also contains /usr/contrib/lib and
 
18900
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
18901
  # libtool to hard-code these into programs
 
18902
  ;;
 
18903
 
 
18904
cygwin* | mingw* | pw32*)
 
18905
  version_type=windows
 
18906
  shrext_cmds=".dll"
 
18907
  need_version=no
 
18908
  need_lib_prefix=no
 
18909
 
 
18910
  case $GCC,$host_os in
 
18911
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
18912
    library_names_spec='$libname.dll.a'
 
18913
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
18914
    postinstall_cmds='base_file=`basename \${file}`~
 
18915
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
18916
      dldir=$destdir/`dirname \$dlpath`~
 
18917
      test -d \$dldir || mkdir -p \$dldir~
 
18918
      $install_prog $dir/$dlname \$dldir/$dlname~
 
18919
      chmod a+x \$dldir/$dlname'
 
18920
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
18921
      dlpath=$dir/\$dldll~
 
18922
       $rm \$dlpath'
 
18923
    shlibpath_overrides_runpath=yes
 
18924
 
 
18925
    case $host_os in
 
18926
    cygwin*)
 
18927
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
18928
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18929
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
18930
      ;;
 
18931
    mingw*)
 
18932
      # MinGW DLLs use traditional 'lib' prefix
 
18933
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18934
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18935
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
18936
        # It is most probably a Windows format PATH printed by
 
18937
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
18938
        # path with ; separators, and with drive letters. We can handle the
 
18939
        # drive letters (cygwin fileutils understands them), so leave them,
 
18940
        # especially as we might pass files found there to a mingw objdump,
 
18941
        # which wouldn't understand a cygwinified path. Ahh.
 
18942
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18943
      else
 
18944
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18945
      fi
 
18946
      ;;
 
18947
    pw32*)
 
18948
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
18949
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18950
      ;;
 
18951
    esac
 
18952
    ;;
 
18953
 
 
18954
  *)
 
18955
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
18956
    ;;
 
18957
  esac
 
18958
  dynamic_linker='Win32 ld.exe'
 
18959
  # FIXME: first we should search . and the directory the executable is in
 
18960
  shlibpath_var=PATH
 
18961
  ;;
 
18962
 
 
18963
darwin* | rhapsody*)
 
18964
  dynamic_linker="$host_os dyld"
 
18965
  version_type=darwin
 
18966
  need_lib_prefix=no
 
18967
  need_version=no
 
18968
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
18969
  soname_spec='${libname}${release}${major}$shared_ext'
 
18970
  shlibpath_overrides_runpath=yes
 
18971
  shlibpath_var=DYLD_LIBRARY_PATH
 
18972
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
18973
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
18974
  if test "$GCC" = yes; then
 
18975
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
18976
  else
 
18977
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
18978
  fi
 
18979
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
18980
  ;;
 
18981
 
 
18982
dgux*)
 
18983
  version_type=linux
 
18984
  need_lib_prefix=no
 
18985
  need_version=no
 
18986
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
18987
  soname_spec='${libname}${release}${shared_ext}$major'
 
18988
  shlibpath_var=LD_LIBRARY_PATH
 
18989
  ;;
 
18990
 
 
18991
freebsd1*)
 
18992
  dynamic_linker=no
 
18993
  ;;
 
18994
 
 
18995
kfreebsd*-gnu)
 
18996
  version_type=linux
 
18997
  need_lib_prefix=no
 
18998
  need_version=no
 
18999
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19000
  soname_spec='${libname}${release}${shared_ext}$major'
 
19001
  shlibpath_var=LD_LIBRARY_PATH
 
19002
  shlibpath_overrides_runpath=no
 
19003
  hardcode_into_libs=yes
 
19004
  dynamic_linker='GNU ld.so'
 
19005
  ;;
 
19006
 
 
19007
freebsd* | dragonfly*)
 
19008
  # DragonFly does not have aout.  When/if they implement a new
 
19009
  # versioning mechanism, adjust this.
 
19010
  if test -x /usr/bin/objformat; then
 
19011
    objformat=`/usr/bin/objformat`
 
19012
  else
 
19013
    case $host_os in
 
19014
    freebsd[123]*) objformat=aout ;;
 
19015
    *) objformat=elf ;;
 
19016
    esac
 
19017
  fi
 
19018
  version_type=freebsd-$objformat
 
19019
  case $version_type in
 
19020
    freebsd-elf*)
 
19021
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19022
      need_version=no
 
19023
      need_lib_prefix=no
 
19024
      ;;
 
19025
    freebsd-*)
 
19026
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
19027
      need_version=yes
 
19028
      ;;
 
19029
  esac
 
19030
  shlibpath_var=LD_LIBRARY_PATH
 
19031
  case $host_os in
 
19032
  freebsd2*)
 
19033
    shlibpath_overrides_runpath=yes
 
19034
    ;;
 
19035
  freebsd3.[01]* | freebsdelf3.[01]*)
 
19036
    shlibpath_overrides_runpath=yes
 
19037
    hardcode_into_libs=yes
 
19038
    ;;
 
19039
  *) # from 3.2 on
 
19040
    shlibpath_overrides_runpath=no
 
19041
    hardcode_into_libs=yes
 
19042
    ;;
 
19043
  esac
 
19044
  ;;
 
19045
 
 
19046
gnu*)
 
19047
  version_type=linux
 
19048
  need_lib_prefix=no
 
19049
  need_version=no
 
19050
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
19051
  soname_spec='${libname}${release}${shared_ext}$major'
 
19052
  shlibpath_var=LD_LIBRARY_PATH
 
19053
  hardcode_into_libs=yes
 
19054
  ;;
 
19055
 
 
19056
hpux9* | hpux10* | hpux11*)
 
19057
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
19058
  # link against other versions.
 
19059
  version_type=sunos
 
19060
  need_lib_prefix=no
 
19061
  need_version=no
 
19062
  case $host_cpu in
 
19063
  ia64*)
 
19064
    shrext_cmds='.so'
 
19065
    hardcode_into_libs=yes
 
19066
    dynamic_linker="$host_os dld.so"
 
19067
    shlibpath_var=LD_LIBRARY_PATH
 
19068
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
19069
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19070
    soname_spec='${libname}${release}${shared_ext}$major'
 
19071
    if test "X$HPUX_IA64_MODE" = X32; then
 
19072
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
19073
    else
 
19074
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
19075
    fi
 
19076
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
19077
    ;;
 
19078
   hppa*64*)
 
19079
     shrext_cmds='.sl'
 
19080
     hardcode_into_libs=yes
 
19081
     dynamic_linker="$host_os dld.sl"
 
19082
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
19083
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
19084
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19085
     soname_spec='${libname}${release}${shared_ext}$major'
 
19086
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
19087
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
19088
     ;;
 
19089
   *)
 
19090
    shrext_cmds='.sl'
 
19091
    dynamic_linker="$host_os dld.sl"
 
19092
    shlibpath_var=SHLIB_PATH
 
19093
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
19094
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19095
    soname_spec='${libname}${release}${shared_ext}$major'
 
19096
    ;;
 
19097
  esac
 
19098
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
19099
  postinstall_cmds='chmod 555 $lib'
 
19100
  ;;
 
19101
 
 
19102
irix5* | irix6* | nonstopux*)
 
19103
  case $host_os in
 
19104
    nonstopux*) version_type=nonstopux ;;
 
19105
    *)
 
19106
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
19107
                version_type=linux
 
19108
        else
 
19109
                version_type=irix
 
19110
        fi ;;
 
19111
  esac
 
19112
  need_lib_prefix=no
 
19113
  need_version=no
 
19114
  soname_spec='${libname}${release}${shared_ext}$major'
 
19115
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19116
  case $host_os in
 
19117
  irix5* | nonstopux*)
 
19118
    libsuff= shlibsuff=
 
19119
    ;;
 
19120
  *)
 
19121
    case $LD in # libtool.m4 will add one of these switches to LD
 
19122
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
19123
      libsuff= shlibsuff= libmagic=32-bit;;
 
19124
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
19125
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
19126
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
19127
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
19128
    *) libsuff= shlibsuff= libmagic=never-match;;
 
19129
    esac
 
19130
    ;;
 
19131
  esac
 
19132
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
19133
  shlibpath_overrides_runpath=no
 
19134
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
19135
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
19136
  hardcode_into_libs=yes
 
19137
  ;;
 
19138
 
 
19139
# No shared lib support for Linux oldld, aout, or coff.
 
19140
linux*oldld* | linux*aout* | linux*coff*)
 
19141
  dynamic_linker=no
 
19142
  ;;
 
19143
 
 
19144
# This must be Linux ELF.
 
19145
linux*)
 
19146
  version_type=linux
 
19147
  need_lib_prefix=no
 
19148
  need_version=no
 
19149
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19150
  soname_spec='${libname}${release}${shared_ext}$major'
 
19151
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
19152
  shlibpath_var=LD_LIBRARY_PATH
 
19153
  shlibpath_overrides_runpath=no
 
19154
  # This implies no fast_install, which is unacceptable.
 
19155
  # Some rework will be needed to allow for fast_install
 
19156
  # before this can be enabled.
 
19157
  hardcode_into_libs=yes
 
19158
 
 
19159
  # Append ld.so.conf contents to the search path
 
19160
  if test -f /etc/ld.so.conf; then
 
19161
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
19162
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
19163
  fi
 
19164
 
 
19165
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
19166
  # powerpc, because MkLinux only supported shared libraries with the
 
19167
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
19168
  # most powerpc-linux boxes support dynamic linking these days and
 
19169
  # people can always --disable-shared, the test was removed, and we
 
19170
  # assume the GNU/Linux dynamic linker is in use.
 
19171
  dynamic_linker='GNU/Linux ld.so'
 
19172
  ;;
 
19173
 
 
19174
knetbsd*-gnu)
 
19175
  version_type=linux
 
19176
  need_lib_prefix=no
 
19177
  need_version=no
 
19178
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19179
  soname_spec='${libname}${release}${shared_ext}$major'
 
19180
  shlibpath_var=LD_LIBRARY_PATH
 
19181
  shlibpath_overrides_runpath=no
 
19182
  hardcode_into_libs=yes
 
19183
  dynamic_linker='GNU ld.so'
 
19184
  ;;
 
19185
 
 
19186
netbsd*)
 
19187
  version_type=sunos
 
19188
  need_lib_prefix=no
 
19189
  need_version=no
 
19190
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
19191
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19192
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
19193
    dynamic_linker='NetBSD (a.out) ld.so'
 
19194
  else
 
19195
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19196
    soname_spec='${libname}${release}${shared_ext}$major'
 
19197
    dynamic_linker='NetBSD ld.elf_so'
 
19198
  fi
 
19199
  shlibpath_var=LD_LIBRARY_PATH
 
19200
  shlibpath_overrides_runpath=yes
 
19201
  hardcode_into_libs=yes
 
19202
  ;;
 
19203
 
 
19204
newsos6)
 
19205
  version_type=linux
 
19206
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19207
  shlibpath_var=LD_LIBRARY_PATH
 
19208
  shlibpath_overrides_runpath=yes
 
19209
  ;;
 
19210
 
 
19211
nto-qnx*)
 
19212
  version_type=linux
 
19213
  need_lib_prefix=no
 
19214
  need_version=no
 
19215
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19216
  soname_spec='${libname}${release}${shared_ext}$major'
 
19217
  shlibpath_var=LD_LIBRARY_PATH
 
19218
  shlibpath_overrides_runpath=yes
 
19219
  ;;
 
19220
 
 
19221
openbsd*)
 
19222
  version_type=sunos
 
19223
  need_lib_prefix=no
 
19224
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
19225
  case $host_os in
 
19226
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
19227
    *)                         need_version=no  ;;
 
19228
  esac
 
19229
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19230
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
19231
  shlibpath_var=LD_LIBRARY_PATH
 
19232
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
19233
    case $host_os in
 
19234
      openbsd2.[89] | openbsd2.[89].*)
 
19235
        shlibpath_overrides_runpath=no
 
19236
        ;;
 
19237
      *)
 
19238
        shlibpath_overrides_runpath=yes
 
19239
        ;;
 
19240
      esac
 
19241
  else
 
19242
    shlibpath_overrides_runpath=yes
 
19243
  fi
 
19244
  ;;
 
19245
 
 
19246
os2*)
 
19247
  libname_spec='$name'
 
19248
  shrext_cmds=".dll"
 
19249
  need_lib_prefix=no
 
19250
  library_names_spec='$libname${shared_ext} $libname.a'
 
19251
  dynamic_linker='OS/2 ld.exe'
 
19252
  shlibpath_var=LIBPATH
 
19253
  ;;
 
19254
 
 
19255
osf3* | osf4* | osf5*)
 
19256
  version_type=osf
 
19257
  need_lib_prefix=no
 
19258
  need_version=no
 
19259
  soname_spec='${libname}${release}${shared_ext}$major'
 
19260
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19261
  shlibpath_var=LD_LIBRARY_PATH
 
19262
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
19263
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
19264
  ;;
 
19265
 
 
19266
sco3.2v5*)
 
19267
  version_type=osf
 
19268
  soname_spec='${libname}${release}${shared_ext}$major'
 
19269
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19270
  shlibpath_var=LD_LIBRARY_PATH
 
19271
  ;;
 
19272
 
 
19273
solaris*)
 
19274
  version_type=linux
 
19275
  need_lib_prefix=no
 
19276
  need_version=no
 
19277
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19278
  soname_spec='${libname}${release}${shared_ext}$major'
 
19279
  shlibpath_var=LD_LIBRARY_PATH
 
19280
  shlibpath_overrides_runpath=yes
 
19281
  hardcode_into_libs=yes
 
19282
  # ldd complains unless libraries are executable
 
19283
  postinstall_cmds='chmod +x $lib'
 
19284
  ;;
 
19285
 
 
19286
sunos4*)
 
19287
  version_type=sunos
 
19288
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19289
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
19290
  shlibpath_var=LD_LIBRARY_PATH
 
19291
  shlibpath_overrides_runpath=yes
 
19292
  if test "$with_gnu_ld" = yes; then
 
19293
    need_lib_prefix=no
 
19294
  fi
 
19295
  need_version=yes
 
19296
  ;;
 
19297
 
 
19298
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
19299
  version_type=linux
 
19300
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19301
  soname_spec='${libname}${release}${shared_ext}$major'
 
19302
  shlibpath_var=LD_LIBRARY_PATH
 
19303
  case $host_vendor in
 
19304
    sni)
 
19305
      shlibpath_overrides_runpath=no
 
19306
      need_lib_prefix=no
 
19307
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
19308
      runpath_var=LD_RUN_PATH
 
19309
      ;;
 
19310
    siemens)
 
19311
      need_lib_prefix=no
 
19312
      ;;
 
19313
    motorola)
 
19314
      need_lib_prefix=no
 
19315
      need_version=no
 
19316
      shlibpath_overrides_runpath=no
 
19317
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
19318
      ;;
 
19319
  esac
 
19320
  ;;
 
19321
 
 
19322
sysv4*MP*)
 
19323
  if test -d /usr/nec ;then
 
19324
    version_type=linux
 
19325
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
19326
    soname_spec='$libname${shared_ext}.$major'
 
19327
    shlibpath_var=LD_LIBRARY_PATH
 
19328
  fi
 
19329
  ;;
 
19330
 
 
19331
uts4*)
 
19332
  version_type=linux
 
19333
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19334
  soname_spec='${libname}${release}${shared_ext}$major'
 
19335
  shlibpath_var=LD_LIBRARY_PATH
 
19336
  ;;
 
19337
 
 
19338
*)
 
19339
  dynamic_linker=no
 
19340
  ;;
 
19341
esac
 
19342
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
19343
echo "${ECHO_T}$dynamic_linker" >&6
 
19344
test "$dynamic_linker" = no && can_build_shared=no
 
19345
 
 
19346
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
19347
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
19348
hardcode_action=
 
19349
if test -n "$hardcode_libdir_flag_spec" || \
 
19350
   test -n "$runpath_var" || \
 
19351
   test "X$hardcode_automatic" = "Xyes" ; then
 
19352
 
 
19353
  # We can hardcode non-existant directories.
 
19354
  if test "$hardcode_direct" != no &&
 
19355
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
19356
     # have to relink, otherwise we might link with an installed library
 
19357
     # when we should be linking with a yet-to-be-installed one
 
19358
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
19359
     test "$hardcode_minus_L" != no; then
 
19360
    # Linking always hardcodes the temporary library directory.
 
19361
    hardcode_action=relink
 
19362
  else
 
19363
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
19364
    hardcode_action=immediate
 
19365
  fi
 
19366
else
 
19367
  # We cannot hardcode anything, or else we can only hardcode existing
 
19368
  # directories.
 
19369
  hardcode_action=unsupported
 
19370
fi
 
19371
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
19372
echo "${ECHO_T}$hardcode_action" >&6
 
19373
 
 
19374
if test "$hardcode_action" = relink; then
 
19375
  # Fast installation is not supported
 
19376
  enable_fast_install=no
 
19377
elif test "$shlibpath_overrides_runpath" = yes ||
 
19378
     test "$enable_shared" = no; then
 
19379
  # Fast installation is not necessary
 
19380
  enable_fast_install=needless
 
19381
fi
 
19382
 
 
19383
striplib=
 
19384
old_striplib=
 
19385
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
19386
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
19387
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
19388
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
19389
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
19390
  echo "$as_me:$LINENO: result: yes" >&5
 
19391
echo "${ECHO_T}yes" >&6
 
19392
else
 
19393
# FIXME - insert some real tests, host_os isn't really good enough
 
19394
  case $host_os in
 
19395
   darwin*)
 
19396
       if test -n "$STRIP" ; then
 
19397
         striplib="$STRIP -x"
 
19398
         echo "$as_me:$LINENO: result: yes" >&5
 
19399
echo "${ECHO_T}yes" >&6
 
19400
       else
 
19401
  echo "$as_me:$LINENO: result: no" >&5
 
19402
echo "${ECHO_T}no" >&6
 
19403
fi
 
19404
       ;;
 
19405
   *)
 
19406
  echo "$as_me:$LINENO: result: no" >&5
 
19407
echo "${ECHO_T}no" >&6
 
19408
    ;;
 
19409
  esac
 
19410
fi
 
19411
 
 
19412
if test "x$enable_dlopen" != xyes; then
 
19413
  enable_dlopen=unknown
 
19414
  enable_dlopen_self=unknown
 
19415
  enable_dlopen_self_static=unknown
 
19416
else
 
19417
  lt_cv_dlopen=no
 
19418
  lt_cv_dlopen_libs=
 
19419
 
 
19420
  case $host_os in
 
19421
  beos*)
 
19422
    lt_cv_dlopen="load_add_on"
 
19423
    lt_cv_dlopen_libs=
 
19424
    lt_cv_dlopen_self=yes
 
19425
    ;;
 
19426
 
 
19427
  mingw* | pw32*)
 
19428
    lt_cv_dlopen="LoadLibrary"
 
19429
    lt_cv_dlopen_libs=
 
19430
   ;;
 
19431
 
 
19432
  cygwin*)
 
19433
    lt_cv_dlopen="dlopen"
 
19434
    lt_cv_dlopen_libs=
 
19435
   ;;
 
19436
 
 
19437
  darwin*)
 
19438
  # if libdl is installed we need to link against it
 
19439
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
19440
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
19441
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
19442
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19443
else
 
19444
  ac_check_lib_save_LIBS=$LIBS
 
19445
LIBS="-ldl  $LIBS"
 
19446
cat >conftest.$ac_ext <<_ACEOF
 
19447
/* confdefs.h.  */
 
19448
_ACEOF
 
19449
cat confdefs.h >>conftest.$ac_ext
 
19450
cat >>conftest.$ac_ext <<_ACEOF
 
19451
/* end confdefs.h.  */
 
19452
 
 
19453
/* Override any gcc2 internal prototype to avoid an error.  */
 
19454
#ifdef __cplusplus
 
19455
extern "C"
 
19456
#endif
 
19457
/* We use char because int might match the return type of a gcc2
 
19458
   builtin and then its argument prototype would still apply.  */
 
19459
char dlopen ();
 
19460
int
 
19461
main ()
 
19462
{
 
19463
dlopen ();
 
19464
  ;
 
19465
  return 0;
 
19466
}
 
19467
_ACEOF
 
19468
rm -f conftest.$ac_objext conftest$ac_exeext
 
19469
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19470
  (eval $ac_link) 2>conftest.er1
 
19471
  ac_status=$?
 
19472
  grep -v '^ *+' conftest.er1 >conftest.err
 
19473
  rm -f conftest.er1
 
19474
  cat conftest.err >&5
 
19475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19476
  (exit $ac_status); } &&
 
19477
         { ac_try='test -z "$ac_c_werror_flag"
 
19478
                         || test ! -s conftest.err'
 
19479
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19480
  (eval $ac_try) 2>&5
 
19481
  ac_status=$?
 
19482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19483
  (exit $ac_status); }; } &&
 
19484
         { ac_try='test -s conftest$ac_exeext'
 
19485
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19486
  (eval $ac_try) 2>&5
 
19487
  ac_status=$?
 
19488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19489
  (exit $ac_status); }; }; then
 
19490
  ac_cv_lib_dl_dlopen=yes
 
19491
else
 
19492
  echo "$as_me: failed program was:" >&5
 
19493
sed 's/^/| /' conftest.$ac_ext >&5
 
19494
 
 
19495
ac_cv_lib_dl_dlopen=no
 
19496
fi
 
19497
rm -f conftest.err conftest.$ac_objext \
 
19498
      conftest$ac_exeext conftest.$ac_ext
 
19499
LIBS=$ac_check_lib_save_LIBS
 
19500
fi
 
19501
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
19502
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
19503
if test $ac_cv_lib_dl_dlopen = yes; then
 
19504
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
19505
else
 
19506
 
 
19507
    lt_cv_dlopen="dyld"
 
19508
    lt_cv_dlopen_libs=
 
19509
    lt_cv_dlopen_self=yes
 
19510
 
 
19511
fi
 
19512
 
 
19513
   ;;
 
19514
 
 
19515
  *)
 
19516
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
19517
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
19518
if test "${ac_cv_func_shl_load+set}" = set; then
 
19519
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19520
else
 
19521
  cat >conftest.$ac_ext <<_ACEOF
 
19522
/* confdefs.h.  */
 
19523
_ACEOF
 
19524
cat confdefs.h >>conftest.$ac_ext
 
19525
cat >>conftest.$ac_ext <<_ACEOF
 
19526
/* end confdefs.h.  */
 
19527
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
19528
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19529
#define shl_load innocuous_shl_load
 
19530
 
 
19531
/* System header to define __stub macros and hopefully few prototypes,
 
19532
    which can conflict with char shl_load (); below.
 
19533
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19534
    <limits.h> exists even on freestanding compilers.  */
 
19535
 
 
19536
#ifdef __STDC__
 
19537
# include <limits.h>
 
19538
#else
 
19539
# include <assert.h>
 
19540
#endif
 
19541
 
 
19542
#undef shl_load
 
19543
 
 
19544
/* Override any gcc2 internal prototype to avoid an error.  */
 
19545
#ifdef __cplusplus
 
19546
extern "C"
 
19547
{
 
19548
#endif
 
19549
/* We use char because int might match the return type of a gcc2
 
19550
   builtin and then its argument prototype would still apply.  */
 
19551
char shl_load ();
 
19552
/* The GNU C library defines this for functions which it implements
 
19553
    to always fail with ENOSYS.  Some functions are actually named
 
19554
    something starting with __ and the normal name is an alias.  */
 
19555
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
19556
choke me
 
19557
#else
 
19558
char (*f) () = shl_load;
 
19559
#endif
 
19560
#ifdef __cplusplus
 
19561
}
 
19562
#endif
 
19563
 
 
19564
int
 
19565
main ()
 
19566
{
 
19567
return f != shl_load;
 
19568
  ;
 
19569
  return 0;
 
19570
}
 
19571
_ACEOF
 
19572
rm -f conftest.$ac_objext conftest$ac_exeext
 
19573
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19574
  (eval $ac_link) 2>conftest.er1
 
19575
  ac_status=$?
 
19576
  grep -v '^ *+' conftest.er1 >conftest.err
 
19577
  rm -f conftest.er1
 
19578
  cat conftest.err >&5
 
19579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19580
  (exit $ac_status); } &&
 
19581
         { ac_try='test -z "$ac_c_werror_flag"
 
19582
                         || test ! -s conftest.err'
 
19583
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19584
  (eval $ac_try) 2>&5
 
19585
  ac_status=$?
 
19586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19587
  (exit $ac_status); }; } &&
 
19588
         { ac_try='test -s conftest$ac_exeext'
 
19589
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19590
  (eval $ac_try) 2>&5
 
19591
  ac_status=$?
 
19592
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19593
  (exit $ac_status); }; }; then
 
19594
  ac_cv_func_shl_load=yes
 
19595
else
 
19596
  echo "$as_me: failed program was:" >&5
 
19597
sed 's/^/| /' conftest.$ac_ext >&5
 
19598
 
 
19599
ac_cv_func_shl_load=no
 
19600
fi
 
19601
rm -f conftest.err conftest.$ac_objext \
 
19602
      conftest$ac_exeext conftest.$ac_ext
 
19603
fi
 
19604
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
19605
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
19606
if test $ac_cv_func_shl_load = yes; then
 
19607
  lt_cv_dlopen="shl_load"
 
19608
else
 
19609
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
19610
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
19611
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
19612
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19613
else
 
19614
  ac_check_lib_save_LIBS=$LIBS
 
19615
LIBS="-ldld  $LIBS"
 
19616
cat >conftest.$ac_ext <<_ACEOF
 
19617
/* confdefs.h.  */
 
19618
_ACEOF
 
19619
cat confdefs.h >>conftest.$ac_ext
 
19620
cat >>conftest.$ac_ext <<_ACEOF
 
19621
/* end confdefs.h.  */
 
19622
 
 
19623
/* Override any gcc2 internal prototype to avoid an error.  */
 
19624
#ifdef __cplusplus
 
19625
extern "C"
 
19626
#endif
 
19627
/* We use char because int might match the return type of a gcc2
 
19628
   builtin and then its argument prototype would still apply.  */
 
19629
char shl_load ();
 
19630
int
 
19631
main ()
 
19632
{
 
19633
shl_load ();
 
19634
  ;
 
19635
  return 0;
 
19636
}
 
19637
_ACEOF
 
19638
rm -f conftest.$ac_objext conftest$ac_exeext
 
19639
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19640
  (eval $ac_link) 2>conftest.er1
 
19641
  ac_status=$?
 
19642
  grep -v '^ *+' conftest.er1 >conftest.err
 
19643
  rm -f conftest.er1
 
19644
  cat conftest.err >&5
 
19645
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19646
  (exit $ac_status); } &&
 
19647
         { ac_try='test -z "$ac_c_werror_flag"
 
19648
                         || test ! -s conftest.err'
 
19649
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19650
  (eval $ac_try) 2>&5
 
19651
  ac_status=$?
 
19652
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19653
  (exit $ac_status); }; } &&
 
19654
         { ac_try='test -s conftest$ac_exeext'
 
19655
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19656
  (eval $ac_try) 2>&5
 
19657
  ac_status=$?
 
19658
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19659
  (exit $ac_status); }; }; then
 
19660
  ac_cv_lib_dld_shl_load=yes
 
19661
else
 
19662
  echo "$as_me: failed program was:" >&5
 
19663
sed 's/^/| /' conftest.$ac_ext >&5
 
19664
 
 
19665
ac_cv_lib_dld_shl_load=no
 
19666
fi
 
19667
rm -f conftest.err conftest.$ac_objext \
 
19668
      conftest$ac_exeext conftest.$ac_ext
 
19669
LIBS=$ac_check_lib_save_LIBS
 
19670
fi
 
19671
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
19672
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
19673
if test $ac_cv_lib_dld_shl_load = yes; then
 
19674
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
19675
else
 
19676
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
19677
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
19678
if test "${ac_cv_func_dlopen+set}" = set; then
 
19679
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19680
else
 
19681
  cat >conftest.$ac_ext <<_ACEOF
 
19682
/* confdefs.h.  */
 
19683
_ACEOF
 
19684
cat confdefs.h >>conftest.$ac_ext
 
19685
cat >>conftest.$ac_ext <<_ACEOF
 
19686
/* end confdefs.h.  */
 
19687
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
19688
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19689
#define dlopen innocuous_dlopen
 
19690
 
 
19691
/* System header to define __stub macros and hopefully few prototypes,
 
19692
    which can conflict with char dlopen (); below.
 
19693
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19694
    <limits.h> exists even on freestanding compilers.  */
 
19695
 
 
19696
#ifdef __STDC__
 
19697
# include <limits.h>
 
19698
#else
 
19699
# include <assert.h>
 
19700
#endif
 
19701
 
 
19702
#undef dlopen
 
19703
 
 
19704
/* Override any gcc2 internal prototype to avoid an error.  */
 
19705
#ifdef __cplusplus
 
19706
extern "C"
 
19707
{
 
19708
#endif
 
19709
/* We use char because int might match the return type of a gcc2
 
19710
   builtin and then its argument prototype would still apply.  */
 
19711
char dlopen ();
 
19712
/* The GNU C library defines this for functions which it implements
 
19713
    to always fail with ENOSYS.  Some functions are actually named
 
19714
    something starting with __ and the normal name is an alias.  */
 
19715
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
19716
choke me
 
19717
#else
 
19718
char (*f) () = dlopen;
 
19719
#endif
 
19720
#ifdef __cplusplus
 
19721
}
 
19722
#endif
 
19723
 
 
19724
int
 
19725
main ()
 
19726
{
 
19727
return f != dlopen;
 
19728
  ;
 
19729
  return 0;
 
19730
}
 
19731
_ACEOF
 
19732
rm -f conftest.$ac_objext conftest$ac_exeext
 
19733
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19734
  (eval $ac_link) 2>conftest.er1
 
19735
  ac_status=$?
 
19736
  grep -v '^ *+' conftest.er1 >conftest.err
 
19737
  rm -f conftest.er1
 
19738
  cat conftest.err >&5
 
19739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19740
  (exit $ac_status); } &&
 
19741
         { ac_try='test -z "$ac_c_werror_flag"
 
19742
                         || test ! -s conftest.err'
 
19743
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19744
  (eval $ac_try) 2>&5
 
19745
  ac_status=$?
 
19746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19747
  (exit $ac_status); }; } &&
 
19748
         { ac_try='test -s conftest$ac_exeext'
 
19749
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19750
  (eval $ac_try) 2>&5
 
19751
  ac_status=$?
 
19752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19753
  (exit $ac_status); }; }; then
 
19754
  ac_cv_func_dlopen=yes
 
19755
else
 
19756
  echo "$as_me: failed program was:" >&5
 
19757
sed 's/^/| /' conftest.$ac_ext >&5
 
19758
 
 
19759
ac_cv_func_dlopen=no
 
19760
fi
 
19761
rm -f conftest.err conftest.$ac_objext \
 
19762
      conftest$ac_exeext conftest.$ac_ext
 
19763
fi
 
19764
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
19765
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
19766
if test $ac_cv_func_dlopen = yes; then
 
19767
  lt_cv_dlopen="dlopen"
 
19768
else
 
19769
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
19770
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
19771
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
19772
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19773
else
 
19774
  ac_check_lib_save_LIBS=$LIBS
 
19775
LIBS="-ldl  $LIBS"
 
19776
cat >conftest.$ac_ext <<_ACEOF
 
19777
/* confdefs.h.  */
 
19778
_ACEOF
 
19779
cat confdefs.h >>conftest.$ac_ext
 
19780
cat >>conftest.$ac_ext <<_ACEOF
 
19781
/* end confdefs.h.  */
 
19782
 
 
19783
/* Override any gcc2 internal prototype to avoid an error.  */
 
19784
#ifdef __cplusplus
 
19785
extern "C"
 
19786
#endif
 
19787
/* We use char because int might match the return type of a gcc2
 
19788
   builtin and then its argument prototype would still apply.  */
 
19789
char dlopen ();
 
19790
int
 
19791
main ()
 
19792
{
 
19793
dlopen ();
 
19794
  ;
 
19795
  return 0;
 
19796
}
 
19797
_ACEOF
 
19798
rm -f conftest.$ac_objext conftest$ac_exeext
 
19799
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19800
  (eval $ac_link) 2>conftest.er1
 
19801
  ac_status=$?
 
19802
  grep -v '^ *+' conftest.er1 >conftest.err
 
19803
  rm -f conftest.er1
 
19804
  cat conftest.err >&5
 
19805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19806
  (exit $ac_status); } &&
 
19807
         { ac_try='test -z "$ac_c_werror_flag"
 
19808
                         || test ! -s conftest.err'
 
19809
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19810
  (eval $ac_try) 2>&5
 
19811
  ac_status=$?
 
19812
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19813
  (exit $ac_status); }; } &&
 
19814
         { ac_try='test -s conftest$ac_exeext'
 
19815
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19816
  (eval $ac_try) 2>&5
 
19817
  ac_status=$?
 
19818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19819
  (exit $ac_status); }; }; then
 
19820
  ac_cv_lib_dl_dlopen=yes
 
19821
else
 
19822
  echo "$as_me: failed program was:" >&5
 
19823
sed 's/^/| /' conftest.$ac_ext >&5
 
19824
 
 
19825
ac_cv_lib_dl_dlopen=no
 
19826
fi
 
19827
rm -f conftest.err conftest.$ac_objext \
 
19828
      conftest$ac_exeext conftest.$ac_ext
 
19829
LIBS=$ac_check_lib_save_LIBS
 
19830
fi
 
19831
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
19832
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
19833
if test $ac_cv_lib_dl_dlopen = yes; then
 
19834
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
19835
else
 
19836
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
19837
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
19838
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
19839
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19840
else
 
19841
  ac_check_lib_save_LIBS=$LIBS
 
19842
LIBS="-lsvld  $LIBS"
 
19843
cat >conftest.$ac_ext <<_ACEOF
 
19844
/* confdefs.h.  */
 
19845
_ACEOF
 
19846
cat confdefs.h >>conftest.$ac_ext
 
19847
cat >>conftest.$ac_ext <<_ACEOF
 
19848
/* end confdefs.h.  */
 
19849
 
 
19850
/* Override any gcc2 internal prototype to avoid an error.  */
 
19851
#ifdef __cplusplus
 
19852
extern "C"
 
19853
#endif
 
19854
/* We use char because int might match the return type of a gcc2
 
19855
   builtin and then its argument prototype would still apply.  */
 
19856
char dlopen ();
 
19857
int
 
19858
main ()
 
19859
{
 
19860
dlopen ();
 
19861
  ;
 
19862
  return 0;
 
19863
}
 
19864
_ACEOF
 
19865
rm -f conftest.$ac_objext conftest$ac_exeext
 
19866
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19867
  (eval $ac_link) 2>conftest.er1
 
19868
  ac_status=$?
 
19869
  grep -v '^ *+' conftest.er1 >conftest.err
 
19870
  rm -f conftest.er1
 
19871
  cat conftest.err >&5
 
19872
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19873
  (exit $ac_status); } &&
 
19874
         { ac_try='test -z "$ac_c_werror_flag"
 
19875
                         || test ! -s conftest.err'
 
19876
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19877
  (eval $ac_try) 2>&5
 
19878
  ac_status=$?
 
19879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19880
  (exit $ac_status); }; } &&
 
19881
         { ac_try='test -s conftest$ac_exeext'
 
19882
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19883
  (eval $ac_try) 2>&5
 
19884
  ac_status=$?
 
19885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19886
  (exit $ac_status); }; }; then
 
19887
  ac_cv_lib_svld_dlopen=yes
 
19888
else
 
19889
  echo "$as_me: failed program was:" >&5
 
19890
sed 's/^/| /' conftest.$ac_ext >&5
 
19891
 
 
19892
ac_cv_lib_svld_dlopen=no
 
19893
fi
 
19894
rm -f conftest.err conftest.$ac_objext \
 
19895
      conftest$ac_exeext conftest.$ac_ext
 
19896
LIBS=$ac_check_lib_save_LIBS
 
19897
fi
 
19898
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
19899
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
19900
if test $ac_cv_lib_svld_dlopen = yes; then
 
19901
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
19902
else
 
19903
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
19904
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
19905
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
19906
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19907
else
 
19908
  ac_check_lib_save_LIBS=$LIBS
 
19909
LIBS="-ldld  $LIBS"
 
19910
cat >conftest.$ac_ext <<_ACEOF
 
19911
/* confdefs.h.  */
 
19912
_ACEOF
 
19913
cat confdefs.h >>conftest.$ac_ext
 
19914
cat >>conftest.$ac_ext <<_ACEOF
 
19915
/* end confdefs.h.  */
 
19916
 
 
19917
/* Override any gcc2 internal prototype to avoid an error.  */
 
19918
#ifdef __cplusplus
 
19919
extern "C"
 
19920
#endif
 
19921
/* We use char because int might match the return type of a gcc2
 
19922
   builtin and then its argument prototype would still apply.  */
 
19923
char dld_link ();
 
19924
int
 
19925
main ()
 
19926
{
 
19927
dld_link ();
 
19928
  ;
 
19929
  return 0;
 
19930
}
 
19931
_ACEOF
 
19932
rm -f conftest.$ac_objext conftest$ac_exeext
 
19933
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19934
  (eval $ac_link) 2>conftest.er1
 
19935
  ac_status=$?
 
19936
  grep -v '^ *+' conftest.er1 >conftest.err
 
19937
  rm -f conftest.er1
 
19938
  cat conftest.err >&5
 
19939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19940
  (exit $ac_status); } &&
 
19941
         { ac_try='test -z "$ac_c_werror_flag"
 
19942
                         || test ! -s conftest.err'
 
19943
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19944
  (eval $ac_try) 2>&5
 
19945
  ac_status=$?
 
19946
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19947
  (exit $ac_status); }; } &&
 
19948
         { ac_try='test -s conftest$ac_exeext'
 
19949
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19950
  (eval $ac_try) 2>&5
 
19951
  ac_status=$?
 
19952
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19953
  (exit $ac_status); }; }; then
 
19954
  ac_cv_lib_dld_dld_link=yes
 
19955
else
 
19956
  echo "$as_me: failed program was:" >&5
 
19957
sed 's/^/| /' conftest.$ac_ext >&5
 
19958
 
 
19959
ac_cv_lib_dld_dld_link=no
 
19960
fi
 
19961
rm -f conftest.err conftest.$ac_objext \
 
19962
      conftest$ac_exeext conftest.$ac_ext
 
19963
LIBS=$ac_check_lib_save_LIBS
 
19964
fi
 
19965
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
19966
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
19967
if test $ac_cv_lib_dld_dld_link = yes; then
 
19968
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
19969
fi
 
19970
 
 
19971
 
 
19972
fi
 
19973
 
 
19974
 
 
19975
fi
 
19976
 
 
19977
 
 
19978
fi
 
19979
 
 
19980
 
 
19981
fi
 
19982
 
 
19983
 
 
19984
fi
 
19985
 
 
19986
    ;;
 
19987
  esac
 
19988
 
 
19989
  if test "x$lt_cv_dlopen" != xno; then
 
19990
    enable_dlopen=yes
 
19991
  else
 
19992
    enable_dlopen=no
 
19993
  fi
 
19994
 
 
19995
  case $lt_cv_dlopen in
 
19996
  dlopen)
 
19997
    save_CPPFLAGS="$CPPFLAGS"
 
19998
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
19999
 
 
20000
    save_LDFLAGS="$LDFLAGS"
 
20001
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
20002
 
 
20003
    save_LIBS="$LIBS"
 
20004
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
20005
 
 
20006
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
20007
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
20008
if test "${lt_cv_dlopen_self+set}" = set; then
 
20009
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20010
else
 
20011
          if test "$cross_compiling" = yes; then :
 
20012
  lt_cv_dlopen_self=cross
 
20013
else
 
20014
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
20015
  lt_status=$lt_dlunknown
 
20016
  cat > conftest.$ac_ext <<EOF
 
20017
#line 20017 "configure"
 
20018
#include "confdefs.h"
 
20019
 
 
20020
#if HAVE_DLFCN_H
 
20021
#include <dlfcn.h>
 
20022
#endif
 
20023
 
 
20024
#include <stdio.h>
 
20025
 
 
20026
#ifdef RTLD_GLOBAL
 
20027
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
20028
#else
 
20029
#  ifdef DL_GLOBAL
 
20030
#    define LT_DLGLOBAL         DL_GLOBAL
 
20031
#  else
 
20032
#    define LT_DLGLOBAL         0
 
20033
#  endif
 
20034
#endif
 
20035
 
 
20036
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
20037
   find out it does not work in some platform. */
 
20038
#ifndef LT_DLLAZY_OR_NOW
 
20039
#  ifdef RTLD_LAZY
 
20040
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
20041
#  else
 
20042
#    ifdef DL_LAZY
 
20043
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
20044
#    else
 
20045
#      ifdef RTLD_NOW
 
20046
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
20047
#      else
 
20048
#        ifdef DL_NOW
 
20049
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
20050
#        else
 
20051
#          define LT_DLLAZY_OR_NOW      0
 
20052
#        endif
 
20053
#      endif
 
20054
#    endif
 
20055
#  endif
 
20056
#endif
 
20057
 
 
20058
#ifdef __cplusplus
 
20059
extern "C" void exit (int);
 
20060
#endif
 
20061
 
 
20062
void fnord() { int i=42;}
 
20063
int main ()
 
20064
{
 
20065
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
20066
  int status = $lt_dlunknown;
 
20067
 
 
20068
  if (self)
 
20069
    {
 
20070
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
20071
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
20072
      /* dlclose (self); */
 
20073
    }
 
20074
 
 
20075
    exit (status);
 
20076
}
 
20077
EOF
 
20078
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20079
  (eval $ac_link) 2>&5
 
20080
  ac_status=$?
 
20081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20082
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
20083
    (./conftest; exit; ) >&5 2>/dev/null
 
20084
    lt_status=$?
 
20085
    case x$lt_status in
 
20086
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
20087
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
20088
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
20089
    esac
 
20090
  else :
 
20091
    # compilation failed
 
20092
    lt_cv_dlopen_self=no
 
20093
  fi
 
20094
fi
 
20095
rm -fr conftest*
 
20096
 
 
20097
 
 
20098
fi
 
20099
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
20100
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
20101
 
 
20102
    if test "x$lt_cv_dlopen_self" = xyes; then
 
20103
      LDFLAGS="$LDFLAGS $link_static_flag"
 
20104
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
20105
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
20106
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
20107
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20108
else
 
20109
          if test "$cross_compiling" = yes; then :
 
20110
  lt_cv_dlopen_self_static=cross
 
20111
else
 
20112
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
20113
  lt_status=$lt_dlunknown
 
20114
  cat > conftest.$ac_ext <<EOF
 
20115
#line 20115 "configure"
 
20116
#include "confdefs.h"
 
20117
 
 
20118
#if HAVE_DLFCN_H
 
20119
#include <dlfcn.h>
 
20120
#endif
 
20121
 
 
20122
#include <stdio.h>
 
20123
 
 
20124
#ifdef RTLD_GLOBAL
 
20125
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
20126
#else
 
20127
#  ifdef DL_GLOBAL
 
20128
#    define LT_DLGLOBAL         DL_GLOBAL
 
20129
#  else
 
20130
#    define LT_DLGLOBAL         0
 
20131
#  endif
 
20132
#endif
 
20133
 
 
20134
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
20135
   find out it does not work in some platform. */
 
20136
#ifndef LT_DLLAZY_OR_NOW
 
20137
#  ifdef RTLD_LAZY
 
20138
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
20139
#  else
 
20140
#    ifdef DL_LAZY
 
20141
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
20142
#    else
 
20143
#      ifdef RTLD_NOW
 
20144
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
20145
#      else
 
20146
#        ifdef DL_NOW
 
20147
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
20148
#        else
 
20149
#          define LT_DLLAZY_OR_NOW      0
 
20150
#        endif
 
20151
#      endif
 
20152
#    endif
 
20153
#  endif
 
20154
#endif
 
20155
 
 
20156
#ifdef __cplusplus
 
20157
extern "C" void exit (int);
 
20158
#endif
 
20159
 
 
20160
void fnord() { int i=42;}
 
20161
int main ()
 
20162
{
 
20163
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
20164
  int status = $lt_dlunknown;
 
20165
 
 
20166
  if (self)
 
20167
    {
 
20168
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
20169
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
20170
      /* dlclose (self); */
 
20171
    }
 
20172
 
 
20173
    exit (status);
 
20174
}
 
20175
EOF
 
20176
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20177
  (eval $ac_link) 2>&5
 
20178
  ac_status=$?
 
20179
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20180
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
20181
    (./conftest; exit; ) >&5 2>/dev/null
 
20182
    lt_status=$?
 
20183
    case x$lt_status in
 
20184
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
20185
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
20186
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
20187
    esac
 
20188
  else :
 
20189
    # compilation failed
 
20190
    lt_cv_dlopen_self_static=no
 
20191
  fi
 
20192
fi
 
20193
rm -fr conftest*
 
20194
 
 
20195
 
 
20196
fi
 
20197
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
20198
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
20199
    fi
 
20200
 
 
20201
    CPPFLAGS="$save_CPPFLAGS"
 
20202
    LDFLAGS="$save_LDFLAGS"
 
20203
    LIBS="$save_LIBS"
 
20204
    ;;
 
20205
  esac
 
20206
 
 
20207
  case $lt_cv_dlopen_self in
 
20208
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
20209
  *) enable_dlopen_self=unknown ;;
 
20210
  esac
 
20211
 
 
20212
  case $lt_cv_dlopen_self_static in
 
20213
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
20214
  *) enable_dlopen_self_static=unknown ;;
 
20215
  esac
 
20216
fi
 
20217
 
 
20218
 
 
20219
# Report which librarie types wil actually be built
 
20220
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
20221
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
20222
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
20223
echo "${ECHO_T}$can_build_shared" >&6
 
20224
 
 
20225
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
20226
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
20227
test "$can_build_shared" = "no" && enable_shared=no
 
20228
 
 
20229
# On AIX, shared libraries and static libraries use the same namespace, and
 
20230
# are all built from PIC.
 
20231
case $host_os in
 
20232
aix3*)
 
20233
  test "$enable_shared" = yes && enable_static=no
 
20234
  if test -n "$RANLIB"; then
 
20235
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
20236
    postinstall_cmds='$RANLIB $lib'
 
20237
  fi
 
20238
  ;;
 
20239
 
 
20240
aix4* | aix5*)
 
20241
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
20242
    test "$enable_shared" = yes && enable_static=no
 
20243
  fi
 
20244
    ;;
 
20245
esac
 
20246
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
20247
echo "${ECHO_T}$enable_shared" >&6
 
20248
 
 
20249
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
20250
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
20251
# Make sure either enable_shared or enable_static is yes.
 
20252
test "$enable_shared" = yes || enable_static=yes
 
20253
echo "$as_me:$LINENO: result: $enable_static" >&5
 
20254
echo "${ECHO_T}$enable_static" >&6
 
20255
 
 
20256
# The else clause should only fire when bootstrapping the
 
20257
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
20258
# with your package, and you will get complaints that there are
 
20259
# no rules to generate ltmain.sh.
 
20260
if test -f "$ltmain"; then
 
20261
  # See if we are running on zsh, and set the options which allow our commands through
 
20262
  # without removal of \ escapes.
 
20263
  if test -n "${ZSH_VERSION+set}" ; then
 
20264
    setopt NO_GLOB_SUBST
 
20265
  fi
 
20266
  # Now quote all the things that may contain metacharacters while being
 
20267
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
20268
  # variables and quote the copies for generation of the libtool script.
 
20269
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
20270
    SED SHELL STRIP \
 
20271
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
20272
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
20273
    deplibs_check_method reload_flag reload_cmds need_locks \
 
20274
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
20275
    lt_cv_sys_global_symbol_to_c_name_address \
 
20276
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
20277
    old_postinstall_cmds old_postuninstall_cmds \
 
20278
    compiler \
 
20279
    CC \
 
20280
    LD \
 
20281
    lt_prog_compiler_wl \
 
20282
    lt_prog_compiler_pic \
 
20283
    lt_prog_compiler_static \
 
20284
    lt_prog_compiler_no_builtin_flag \
 
20285
    export_dynamic_flag_spec \
 
20286
    thread_safe_flag_spec \
 
20287
    whole_archive_flag_spec \
 
20288
    enable_shared_with_static_runtimes \
 
20289
    old_archive_cmds \
 
20290
    old_archive_from_new_cmds \
 
20291
    predep_objects \
 
20292
    postdep_objects \
 
20293
    predeps \
 
20294
    postdeps \
 
20295
    compiler_lib_search_path \
 
20296
    archive_cmds \
 
20297
    archive_expsym_cmds \
 
20298
    postinstall_cmds \
 
20299
    postuninstall_cmds \
 
20300
    old_archive_from_expsyms_cmds \
 
20301
    allow_undefined_flag \
 
20302
    no_undefined_flag \
 
20303
    export_symbols_cmds \
 
20304
    hardcode_libdir_flag_spec \
 
20305
    hardcode_libdir_flag_spec_ld \
 
20306
    hardcode_libdir_separator \
 
20307
    hardcode_automatic \
 
20308
    module_cmds \
 
20309
    module_expsym_cmds \
 
20310
    lt_cv_prog_compiler_c_o \
 
20311
    exclude_expsyms \
 
20312
    include_expsyms; do
 
20313
 
 
20314
    case $var in
 
20315
    old_archive_cmds | \
 
20316
    old_archive_from_new_cmds | \
 
20317
    archive_cmds | \
 
20318
    archive_expsym_cmds | \
 
20319
    module_cmds | \
 
20320
    module_expsym_cmds | \
 
20321
    old_archive_from_expsyms_cmds | \
 
20322
    export_symbols_cmds | \
 
20323
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
20324
    postinstall_cmds | postuninstall_cmds | \
 
20325
    old_postinstall_cmds | old_postuninstall_cmds | \
 
20326
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
20327
      # Double-quote double-evaled strings.
 
20328
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
20329
      ;;
 
20330
    *)
 
20331
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
20332
      ;;
 
20333
    esac
 
20334
  done
 
20335
 
 
20336
  case $lt_echo in
 
20337
  *'\$0 --fallback-echo"')
 
20338
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
20339
    ;;
 
20340
  esac
 
20341
 
 
20342
cfgfile="${ofile}T"
 
20343
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
20344
  $rm -f "$cfgfile"
 
20345
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
20346
echo "$as_me: creating $ofile" >&6;}
 
20347
 
 
20348
  cat <<__EOF__ >> "$cfgfile"
 
20349
#! $SHELL
 
20350
 
 
20351
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
20352
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
20353
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
20354
#
 
20355
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
20356
# Free Software Foundation, Inc.
 
20357
#
 
20358
# This file is part of GNU Libtool:
 
20359
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
20360
#
 
20361
# This program is free software; you can redistribute it and/or modify
 
20362
# it under the terms of the GNU General Public License as published by
 
20363
# the Free Software Foundation; either version 2 of the License, or
 
20364
# (at your option) any later version.
 
20365
#
 
20366
# This program is distributed in the hope that it will be useful, but
 
20367
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
20368
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
20369
# General Public License for more details.
 
20370
#
 
20371
# You should have received a copy of the GNU General Public License
 
20372
# along with this program; if not, write to the Free Software
 
20373
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
20374
#
 
20375
# As a special exception to the GNU General Public License, if you
 
20376
# distribute this file as part of a program that contains a
 
20377
# configuration script generated by Autoconf, you may include it under
 
20378
# the same distribution terms that you use for the rest of that program.
 
20379
 
 
20380
# A sed program that does not truncate output.
 
20381
SED=$lt_SED
 
20382
 
 
20383
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
20384
Xsed="$SED -e 1s/^X//"
 
20385
 
 
20386
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
20387
# if CDPATH is set.
 
20388
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
20389
 
 
20390
# The names of the tagged configurations supported by this script.
 
20391
available_tags=
 
20392
 
 
20393
# ### BEGIN LIBTOOL CONFIG
 
20394
 
 
20395
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
20396
 
 
20397
# Shell to use when invoking shell scripts.
 
20398
SHELL=$lt_SHELL
 
20399
 
 
20400
# Whether or not to build shared libraries.
 
20401
build_libtool_libs=$enable_shared
 
20402
 
 
20403
# Whether or not to build static libraries.
 
20404
build_old_libs=$enable_static
 
20405
 
 
20406
# Whether or not to add -lc for building shared libraries.
 
20407
build_libtool_need_lc=$archive_cmds_need_lc
 
20408
 
 
20409
# Whether or not to disallow shared libs when runtime libs are static
 
20410
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
20411
 
 
20412
# Whether or not to optimize for fast installation.
 
20413
fast_install=$enable_fast_install
 
20414
 
 
20415
# The host system.
 
20416
host_alias=$host_alias
 
20417
host=$host
 
20418
host_os=$host_os
 
20419
 
 
20420
# The build system.
 
20421
build_alias=$build_alias
 
20422
build=$build
 
20423
build_os=$build_os
 
20424
 
 
20425
# An echo program that does not interpret backslashes.
 
20426
echo=$lt_echo
 
20427
 
 
20428
# The archiver.
 
20429
AR=$lt_AR
 
20430
AR_FLAGS=$lt_AR_FLAGS
 
20431
 
 
20432
# A C compiler.
 
20433
LTCC=$lt_LTCC
 
20434
 
 
20435
# A language-specific compiler.
 
20436
CC=$lt_compiler
 
20437
 
 
20438
# Is the compiler the GNU C compiler?
 
20439
with_gcc=$GCC
 
20440
 
 
20441
# An ERE matcher.
 
20442
EGREP=$lt_EGREP
 
20443
 
 
20444
# The linker used to build libraries.
 
20445
LD=$lt_LD
 
20446
 
 
20447
# Whether we need hard or soft links.
 
20448
LN_S=$lt_LN_S
 
20449
 
 
20450
# A BSD-compatible nm program.
 
20451
NM=$lt_NM
 
20452
 
 
20453
# A symbol stripping program
 
20454
STRIP=$lt_STRIP
 
20455
 
 
20456
# Used to examine libraries when file_magic_cmd begins "file"
 
20457
MAGIC_CMD=$MAGIC_CMD
 
20458
 
 
20459
# Used on cygwin: DLL creation program.
 
20460
DLLTOOL="$DLLTOOL"
 
20461
 
 
20462
# Used on cygwin: object dumper.
 
20463
OBJDUMP="$OBJDUMP"
 
20464
 
 
20465
# Used on cygwin: assembler.
 
20466
AS="$AS"
 
20467
 
 
20468
# The name of the directory that contains temporary libtool files.
 
20469
objdir=$objdir
 
20470
 
 
20471
# How to create reloadable object files.
 
20472
reload_flag=$lt_reload_flag
 
20473
reload_cmds=$lt_reload_cmds
 
20474
 
 
20475
# How to pass a linker flag through the compiler.
 
20476
wl=$lt_lt_prog_compiler_wl
 
20477
 
 
20478
# Object file suffix (normally "o").
 
20479
objext="$ac_objext"
 
20480
 
 
20481
# Old archive suffix (normally "a").
 
20482
libext="$libext"
 
20483
 
 
20484
# Shared library suffix (normally ".so").
 
20485
shrext_cmds='$shrext_cmds'
 
20486
 
 
20487
# Executable file suffix (normally "").
 
20488
exeext="$exeext"
 
20489
 
 
20490
# Additional compiler flags for building library objects.
 
20491
pic_flag=$lt_lt_prog_compiler_pic
 
20492
pic_mode=$pic_mode
 
20493
 
 
20494
# What is the maximum length of a command?
 
20495
max_cmd_len=$lt_cv_sys_max_cmd_len
 
20496
 
 
20497
# Does compiler simultaneously support -c and -o options?
 
20498
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
20499
 
 
20500
# Must we lock files when doing compilation?
 
20501
need_locks=$lt_need_locks
 
20502
 
 
20503
# Do we need the lib prefix for modules?
 
20504
need_lib_prefix=$need_lib_prefix
 
20505
 
 
20506
# Do we need a version for libraries?
 
20507
need_version=$need_version
 
20508
 
 
20509
# Whether dlopen is supported.
 
20510
dlopen_support=$enable_dlopen
 
20511
 
 
20512
# Whether dlopen of programs is supported.
 
20513
dlopen_self=$enable_dlopen_self
 
20514
 
 
20515
# Whether dlopen of statically linked programs is supported.
 
20516
dlopen_self_static=$enable_dlopen_self_static
 
20517
 
 
20518
# Compiler flag to prevent dynamic linking.
 
20519
link_static_flag=$lt_lt_prog_compiler_static
 
20520
 
 
20521
# Compiler flag to turn off builtin functions.
 
20522
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
20523
 
 
20524
# Compiler flag to allow reflexive dlopens.
 
20525
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
20526
 
 
20527
# Compiler flag to generate shared objects directly from archives.
 
20528
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
20529
 
 
20530
# Compiler flag to generate thread-safe objects.
 
20531
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
20532
 
 
20533
# Library versioning type.
 
20534
version_type=$version_type
 
20535
 
 
20536
# Format of library name prefix.
 
20537
libname_spec=$lt_libname_spec
 
20538
 
 
20539
# List of archive names.  First name is the real one, the rest are links.
 
20540
# The last name is the one that the linker finds with -lNAME.
 
20541
library_names_spec=$lt_library_names_spec
 
20542
 
 
20543
# The coded name of the library, if different from the real name.
 
20544
soname_spec=$lt_soname_spec
 
20545
 
 
20546
# Commands used to build and install an old-style archive.
 
20547
RANLIB=$lt_RANLIB
 
20548
old_archive_cmds=$lt_old_archive_cmds
 
20549
old_postinstall_cmds=$lt_old_postinstall_cmds
 
20550
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
20551
 
 
20552
# Create an old-style archive from a shared archive.
 
20553
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
20554
 
 
20555
# Create a temporary old-style archive to link instead of a shared archive.
 
20556
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
20557
 
 
20558
# Commands used to build and install a shared archive.
 
20559
archive_cmds=$lt_archive_cmds
 
20560
archive_expsym_cmds=$lt_archive_expsym_cmds
 
20561
postinstall_cmds=$lt_postinstall_cmds
 
20562
postuninstall_cmds=$lt_postuninstall_cmds
 
20563
 
 
20564
# Commands used to build a loadable module (assumed same as above if empty)
 
20565
module_cmds=$lt_module_cmds
 
20566
module_expsym_cmds=$lt_module_expsym_cmds
 
20567
 
 
20568
# Commands to strip libraries.
 
20569
old_striplib=$lt_old_striplib
 
20570
striplib=$lt_striplib
 
20571
 
 
20572
# Dependencies to place before the objects being linked to create a
 
20573
# shared library.
 
20574
predep_objects=$lt_predep_objects
 
20575
 
 
20576
# Dependencies to place after the objects being linked to create a
 
20577
# shared library.
 
20578
postdep_objects=$lt_postdep_objects
 
20579
 
 
20580
# Dependencies to place before the objects being linked to create a
 
20581
# shared library.
 
20582
predeps=$lt_predeps
 
20583
 
 
20584
# Dependencies to place after the objects being linked to create a
 
20585
# shared library.
 
20586
postdeps=$lt_postdeps
 
20587
 
 
20588
# The library search path used internally by the compiler when linking
 
20589
# a shared library.
 
20590
compiler_lib_search_path=$lt_compiler_lib_search_path
 
20591
 
 
20592
# Method to check whether dependent libraries are shared objects.
 
20593
deplibs_check_method=$lt_deplibs_check_method
 
20594
 
 
20595
# Command to use when deplibs_check_method == file_magic.
 
20596
file_magic_cmd=$lt_file_magic_cmd
 
20597
 
 
20598
# Flag that allows shared libraries with undefined symbols to be built.
 
20599
allow_undefined_flag=$lt_allow_undefined_flag
 
20600
 
 
20601
# Flag that forces no undefined symbols.
 
20602
no_undefined_flag=$lt_no_undefined_flag
 
20603
 
 
20604
# Commands used to finish a libtool library installation in a directory.
 
20605
finish_cmds=$lt_finish_cmds
 
20606
 
 
20607
# Same as above, but a single script fragment to be evaled but not shown.
 
20608
finish_eval=$lt_finish_eval
 
20609
 
 
20610
# Take the output of nm and produce a listing of raw symbols and C names.
 
20611
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
20612
 
 
20613
# Transform the output of nm in a proper C declaration
 
20614
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
20615
 
 
20616
# Transform the output of nm in a C name address pair
 
20617
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
20618
 
 
20619
# This is the shared library runtime path variable.
 
20620
runpath_var=$runpath_var
 
20621
 
 
20622
# This is the shared library path variable.
 
20623
shlibpath_var=$shlibpath_var
 
20624
 
 
20625
# Is shlibpath searched before the hard-coded library search path?
 
20626
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
20627
 
 
20628
# How to hardcode a shared library path into an executable.
 
20629
hardcode_action=$hardcode_action
 
20630
 
 
20631
# Whether we should hardcode library paths into libraries.
 
20632
hardcode_into_libs=$hardcode_into_libs
 
20633
 
 
20634
# Flag to hardcode \$libdir into a binary during linking.
 
20635
# This must work even if \$libdir does not exist.
 
20636
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
20637
 
 
20638
# If ld is used when linking, flag to hardcode \$libdir into
 
20639
# a binary during linking. This must work even if \$libdir does
 
20640
# not exist.
 
20641
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
20642
 
 
20643
# Whether we need a single -rpath flag with a separated argument.
 
20644
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
20645
 
 
20646
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
20647
# resulting binary.
 
20648
hardcode_direct=$hardcode_direct
 
20649
 
 
20650
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
20651
# resulting binary.
 
20652
hardcode_minus_L=$hardcode_minus_L
 
20653
 
 
20654
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
20655
# the resulting binary.
 
20656
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
20657
 
 
20658
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
20659
# and all subsequent libraries and executables linked against it.
 
20660
hardcode_automatic=$hardcode_automatic
 
20661
 
 
20662
# Variables whose values should be saved in libtool wrapper scripts and
 
20663
# restored at relink time.
 
20664
variables_saved_for_relink="$variables_saved_for_relink"
 
20665
 
 
20666
# Whether libtool must link a program against all its dependency libraries.
 
20667
link_all_deplibs=$link_all_deplibs
 
20668
 
 
20669
# Compile-time system search path for libraries
 
20670
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
20671
 
 
20672
# Run-time system search path for libraries
 
20673
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
20674
 
 
20675
# Fix the shell variable \$srcfile for the compiler.
 
20676
fix_srcfile_path="$fix_srcfile_path"
 
20677
 
 
20678
# Set to yes if exported symbols are required.
 
20679
always_export_symbols=$always_export_symbols
 
20680
 
 
20681
# The commands to list exported symbols.
 
20682
export_symbols_cmds=$lt_export_symbols_cmds
 
20683
 
 
20684
# The commands to extract the exported symbol list from a shared archive.
 
20685
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
20686
 
 
20687
# Symbols that should not be listed in the preloaded symbols.
 
20688
exclude_expsyms=$lt_exclude_expsyms
 
20689
 
 
20690
# Symbols that must always be exported.
 
20691
include_expsyms=$lt_include_expsyms
 
20692
 
 
20693
# ### END LIBTOOL CONFIG
 
20694
 
 
20695
__EOF__
 
20696
 
 
20697
 
 
20698
  case $host_os in
 
20699
  aix3*)
 
20700
    cat <<\EOF >> "$cfgfile"
 
20701
 
 
20702
# AIX sometimes has problems with the GCC collect2 program.  For some
 
20703
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
20704
# vanish in a puff of smoke.
 
20705
if test "X${COLLECT_NAMES+set}" != Xset; then
 
20706
  COLLECT_NAMES=
 
20707
  export COLLECT_NAMES
 
20708
fi
 
20709
EOF
 
20710
    ;;
 
20711
  esac
 
20712
 
 
20713
  # We use sed instead of cat because bash on DJGPP gets confused if
 
20714
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
20715
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
20716
  # is reportedly fixed, but why not run on old versions too?
 
20717
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
20718
 
 
20719
  mv -f "$cfgfile" "$ofile" || \
 
20720
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
20721
  chmod +x "$ofile"
 
20722
 
 
20723
else
 
20724
  # If there is no Makefile yet, we rely on a make rule to execute
 
20725
  # `config.status --recheck' to rerun these tests and create the
 
20726
  # libtool script then.
 
20727
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
20728
  if test -f "$ltmain_in"; then
 
20729
    test -f Makefile && make "$ltmain"
 
20730
  fi
 
20731
fi
 
20732
 
 
20733
 
 
20734
ac_ext=c
 
20735
ac_cpp='$CPP $CPPFLAGS'
 
20736
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20737
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20738
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20739
 
 
20740
CC="$lt_save_CC"
 
20741
 
 
20742
 
 
20743
# Check whether --with-tags or --without-tags was given.
 
20744
if test "${with_tags+set}" = set; then
 
20745
  withval="$with_tags"
 
20746
  tagnames="$withval"
 
20747
fi;
 
20748
 
 
20749
if test -f "$ltmain" && test -n "$tagnames"; then
 
20750
  if test ! -f "${ofile}"; then
 
20751
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
20752
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
20753
  fi
 
20754
 
 
20755
  if test -z "$LTCC"; then
 
20756
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
20757
    if test -z "$LTCC"; then
 
20758
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
20759
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
20760
    else
 
20761
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
20762
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
20763
    fi
 
20764
  fi
 
20765
 
 
20766
  # Extract list of available tagged configurations in $ofile.
 
20767
  # Note that this assumes the entire list is on one line.
 
20768
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
20769
 
 
20770
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
20771
  for tagname in $tagnames; do
 
20772
    IFS="$lt_save_ifs"
 
20773
    # Check whether tagname contains only valid characters
 
20774
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
20775
    "") ;;
 
20776
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
20777
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
20778
   { (exit 1); exit 1; }; }
 
20779
        ;;
 
20780
    esac
 
20781
 
 
20782
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
20783
    then
 
20784
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
20785
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
20786
   { (exit 1); exit 1; }; }
 
20787
    fi
 
20788
 
 
20789
    # Update the list of available tags.
 
20790
    if test -n "$tagname"; then
 
20791
      echo appending configuration tag \"$tagname\" to $ofile
 
20792
 
 
20793
      case $tagname in
 
20794
      CXX)
 
20795
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
20796
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
20797
            (test "X$CXX" != "Xg++"))) ; then
 
20798
          ac_ext=cc
 
20799
ac_cpp='$CXXCPP $CPPFLAGS'
 
20800
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20801
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20802
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
20803
 
 
20804
 
 
20805
 
 
20806
 
 
20807
archive_cmds_need_lc_CXX=no
 
20808
allow_undefined_flag_CXX=
 
20809
always_export_symbols_CXX=no
 
20810
archive_expsym_cmds_CXX=
 
20811
export_dynamic_flag_spec_CXX=
 
20812
hardcode_direct_CXX=no
 
20813
hardcode_libdir_flag_spec_CXX=
 
20814
hardcode_libdir_flag_spec_ld_CXX=
 
20815
hardcode_libdir_separator_CXX=
 
20816
hardcode_minus_L_CXX=no
 
20817
hardcode_automatic_CXX=no
 
20818
module_cmds_CXX=
 
20819
module_expsym_cmds_CXX=
 
20820
link_all_deplibs_CXX=unknown
 
20821
old_archive_cmds_CXX=$old_archive_cmds
 
20822
no_undefined_flag_CXX=
 
20823
whole_archive_flag_spec_CXX=
 
20824
enable_shared_with_static_runtimes_CXX=no
 
20825
 
 
20826
# Dependencies to place before and after the object being linked:
 
20827
predep_objects_CXX=
 
20828
postdep_objects_CXX=
 
20829
predeps_CXX=
 
20830
postdeps_CXX=
 
20831
compiler_lib_search_path_CXX=
 
20832
 
 
20833
# Source file extension for C++ test sources.
 
20834
ac_ext=cpp
 
20835
 
 
20836
# Object file extension for compiled C++ test sources.
 
20837
objext=o
 
20838
objext_CXX=$objext
 
20839
 
 
20840
# Code to be used in simple compile tests
 
20841
lt_simple_compile_test_code="int some_variable = 0;\n"
 
20842
 
 
20843
# Code to be used in simple link tests
 
20844
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
20845
 
 
20846
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
20847
 
 
20848
# If no C compiler was specified, use CC.
 
20849
LTCC=${LTCC-"$CC"}
 
20850
 
 
20851
# Allow CC to be a program name with arguments.
 
20852
compiler=$CC
 
20853
 
 
20854
 
 
20855
# save warnings/boilerplate of simple test code
 
20856
ac_outfile=conftest.$ac_objext
 
20857
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
20858
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
20859
_lt_compiler_boilerplate=`cat conftest.err`
 
20860
$rm conftest*
 
20861
 
 
20862
ac_outfile=conftest.$ac_objext
 
20863
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
20864
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
20865
_lt_linker_boilerplate=`cat conftest.err`
 
20866
$rm conftest*
 
20867
 
 
20868
 
 
20869
# Allow CC to be a program name with arguments.
 
20870
lt_save_CC=$CC
 
20871
lt_save_LD=$LD
 
20872
lt_save_GCC=$GCC
 
20873
GCC=$GXX
 
20874
lt_save_with_gnu_ld=$with_gnu_ld
 
20875
lt_save_path_LD=$lt_cv_path_LD
 
20876
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
20877
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
20878
else
 
20879
  unset lt_cv_prog_gnu_ld
 
20880
fi
 
20881
if test -n "${lt_cv_path_LDCXX+set}"; then
 
20882
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
20883
else
 
20884
  unset lt_cv_path_LD
 
20885
fi
 
20886
test -z "${LDCXX+set}" || LD=$LDCXX
 
20887
CC=${CXX-"c++"}
 
20888
compiler=$CC
 
20889
compiler_CXX=$CC
 
20890
for cc_temp in $compiler""; do
 
20891
  case $cc_temp in
 
20892
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
20893
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
20894
    \-*) ;;
 
20895
    *) break;;
 
20896
  esac
 
20897
done
 
20898
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
20899
 
 
20900
 
 
20901
# We don't want -fno-exception wen compiling C++ code, so set the
 
20902
# no_builtin_flag separately
 
20903
if test "$GXX" = yes; then
 
20904
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
20905
else
 
20906
  lt_prog_compiler_no_builtin_flag_CXX=
 
20907
fi
 
20908
 
 
20909
if test "$GXX" = yes; then
 
20910
  # Set up default GNU C++ configuration
 
20911
 
 
20912
 
 
20913
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
20914
if test "${with_gnu_ld+set}" = set; then
 
20915
  withval="$with_gnu_ld"
 
20916
  test "$withval" = no || with_gnu_ld=yes
 
20917
else
 
20918
  with_gnu_ld=no
 
20919
fi;
 
20920
ac_prog=ld
 
20921
if test "$GCC" = yes; then
 
20922
  # Check if gcc -print-prog-name=ld gives a path.
 
20923
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
20924
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
20925
  case $host in
 
20926
  *-*-mingw*)
 
20927
    # gcc leaves a trailing carriage return which upsets mingw
 
20928
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
20929
  *)
 
20930
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
20931
  esac
 
20932
  case $ac_prog in
 
20933
    # Accept absolute paths.
 
20934
    [\\/]* | ?:[\\/]*)
 
20935
      re_direlt='/[^/][^/]*/\.\./'
 
20936
      # Canonicalize the pathname of ld
 
20937
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
20938
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
20939
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
20940
      done
 
20941
      test -z "$LD" && LD="$ac_prog"
 
20942
      ;;
 
20943
  "")
 
20944
    # If it fails, then pretend we aren't using GCC.
 
20945
    ac_prog=ld
 
20946
    ;;
 
20947
  *)
 
20948
    # If it is relative, then search for the first ld in PATH.
 
20949
    with_gnu_ld=unknown
 
20950
    ;;
 
20951
  esac
 
20952
elif test "$with_gnu_ld" = yes; then
 
20953
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
20954
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
20955
else
 
20956
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
20957
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
20958
fi
 
20959
if test "${lt_cv_path_LD+set}" = set; then
 
20960
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20961
else
 
20962
  if test -z "$LD"; then
 
20963
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
20964
  for ac_dir in $PATH; do
 
20965
    IFS="$lt_save_ifs"
 
20966
    test -z "$ac_dir" && ac_dir=.
 
20967
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
20968
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
20969
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
20970
      # but apparently some variants of GNU ld only accept -v.
 
20971
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
20972
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
20973
      *GNU* | *'with BFD'*)
 
20974
        test "$with_gnu_ld" != no && break
 
20975
        ;;
 
20976
      *)
 
20977
        test "$with_gnu_ld" != yes && break
 
20978
        ;;
 
20979
      esac
 
20980
    fi
 
20981
  done
 
20982
  IFS="$lt_save_ifs"
 
20983
else
 
20984
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
20985
fi
 
20986
fi
 
20987
 
 
20988
LD="$lt_cv_path_LD"
 
20989
if test -n "$LD"; then
 
20990
  echo "$as_me:$LINENO: result: $LD" >&5
 
20991
echo "${ECHO_T}$LD" >&6
 
20992
else
 
20993
  echo "$as_me:$LINENO: result: no" >&5
 
20994
echo "${ECHO_T}no" >&6
 
20995
fi
 
20996
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
20997
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
20998
   { (exit 1); exit 1; }; }
 
20999
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
21000
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
21001
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
21002
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21003
else
 
21004
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
21005
case `$LD -v 2>&1 </dev/null` in
 
21006
*GNU* | *'with BFD'*)
 
21007
  lt_cv_prog_gnu_ld=yes
 
21008
  ;;
 
21009
*)
 
21010
  lt_cv_prog_gnu_ld=no
 
21011
  ;;
 
21012
esac
 
21013
fi
 
21014
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
21015
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
21016
with_gnu_ld=$lt_cv_prog_gnu_ld
 
21017
 
 
21018
 
 
21019
 
 
21020
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
21021
  # archiving commands below assume that GNU ld is being used.
 
21022
  if test "$with_gnu_ld" = yes; then
 
21023
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
21024
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
21025
 
 
21026
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
21027
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
21028
 
 
21029
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
21030
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
21031
    #     investigate it a little bit more. (MM)
 
21032
    wlarc='${wl}'
 
21033
 
 
21034
    # ancient GNU ld didn't support --whole-archive et. al.
 
21035
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
21036
        grep 'no-whole-archive' > /dev/null; then
 
21037
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
21038
    else
 
21039
      whole_archive_flag_spec_CXX=
 
21040
    fi
 
21041
  else
 
21042
    with_gnu_ld=no
 
21043
    wlarc=
 
21044
 
 
21045
    # A generic and very simple default shared library creation
 
21046
    # command for GNU C++ for the case where it uses the native
 
21047
    # linker, instead of GNU ld.  If possible, this setting should
 
21048
    # overridden to take advantage of the native linker features on
 
21049
    # the platform it is being used on.
 
21050
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
21051
  fi
 
21052
 
 
21053
  # Commands to make compiler produce verbose output that lists
 
21054
  # what "hidden" libraries, object files and flags are used when
 
21055
  # linking a shared library.
 
21056
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
21057
 
 
21058
else
 
21059
  GXX=no
 
21060
  with_gnu_ld=no
 
21061
  wlarc=
 
21062
fi
 
21063
 
 
21064
# PORTME: fill in a description of your system's C++ link characteristics
 
21065
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
21066
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
21067
ld_shlibs_CXX=yes
 
21068
case $host_os in
 
21069
  aix3*)
 
21070
    # FIXME: insert proper C++ library support
 
21071
    ld_shlibs_CXX=no
 
21072
    ;;
 
21073
  aix4* | aix5*)
 
21074
    if test "$host_cpu" = ia64; then
 
21075
      # On IA64, the linker does run time linking by default, so we don't
 
21076
      # have to do anything special.
 
21077
      aix_use_runtimelinking=no
 
21078
      exp_sym_flag='-Bexport'
 
21079
      no_entry_flag=""
 
21080
    else
 
21081
      aix_use_runtimelinking=no
 
21082
 
 
21083
      # Test if we are trying to use run time linking or normal
 
21084
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
21085
      # need to do runtime linking.
 
21086
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
21087
        for ld_flag in $LDFLAGS; do
 
21088
          case $ld_flag in
 
21089
          *-brtl*)
 
21090
            aix_use_runtimelinking=yes
 
21091
            break
 
21092
            ;;
 
21093
          esac
 
21094
        done
 
21095
      esac
 
21096
 
 
21097
      exp_sym_flag='-bexport'
 
21098
      no_entry_flag='-bnoentry'
 
21099
    fi
 
21100
 
 
21101
    # When large executables or shared objects are built, AIX ld can
 
21102
    # have problems creating the table of contents.  If linking a library
 
21103
    # or program results in "error TOC overflow" add -mminimal-toc to
 
21104
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
21105
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
21106
 
 
21107
    archive_cmds_CXX=''
 
21108
    hardcode_direct_CXX=yes
 
21109
    hardcode_libdir_separator_CXX=':'
 
21110
    link_all_deplibs_CXX=yes
 
21111
 
 
21112
    if test "$GXX" = yes; then
 
21113
      case $host_os in aix4.[012]|aix4.[012].*)
 
21114
      # We only want to do this on AIX 4.2 and lower, the check
 
21115
      # below for broken collect2 doesn't work under 4.3+
 
21116
        collect2name=`${CC} -print-prog-name=collect2`
 
21117
        if test -f "$collect2name" && \
 
21118
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
21119
        then
 
21120
          # We have reworked collect2
 
21121
          hardcode_direct_CXX=yes
 
21122
        else
 
21123
          # We have old collect2
 
21124
          hardcode_direct_CXX=unsupported
 
21125
          # It fails to find uninstalled libraries when the uninstalled
 
21126
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
21127
          # to unsupported forces relinking
 
21128
          hardcode_minus_L_CXX=yes
 
21129
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
21130
          hardcode_libdir_separator_CXX=
 
21131
        fi
 
21132
      esac
 
21133
      shared_flag='-shared'
 
21134
      if test "$aix_use_runtimelinking" = yes; then
 
21135
        shared_flag="$shared_flag "'${wl}-G'
 
21136
      fi
 
21137
    else
 
21138
      # not using gcc
 
21139
      if test "$host_cpu" = ia64; then
 
21140
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
21141
        # chokes on -Wl,-G. The following line is correct:
 
21142
        shared_flag='-G'
 
21143
      else
 
21144
        if test "$aix_use_runtimelinking" = yes; then
 
21145
          shared_flag='${wl}-G'
 
21146
        else
 
21147
          shared_flag='${wl}-bM:SRE'
 
21148
        fi
 
21149
      fi
 
21150
    fi
 
21151
 
 
21152
    # It seems that -bexpall does not export symbols beginning with
 
21153
    # underscore (_), so it is better to generate a list of symbols to export.
 
21154
    always_export_symbols_CXX=yes
 
21155
    if test "$aix_use_runtimelinking" = yes; then
 
21156
      # Warning - without using the other runtime loading flags (-brtl),
 
21157
      # -berok will link without error, but may produce a broken library.
 
21158
      allow_undefined_flag_CXX='-berok'
 
21159
      # Determine the default libpath from the value encoded in an empty executable.
 
21160
      cat >conftest.$ac_ext <<_ACEOF
 
21161
/* confdefs.h.  */
 
21162
_ACEOF
 
21163
cat confdefs.h >>conftest.$ac_ext
 
21164
cat >>conftest.$ac_ext <<_ACEOF
 
21165
/* end confdefs.h.  */
 
21166
 
 
21167
int
 
21168
main ()
 
21169
{
 
21170
 
 
21171
  ;
 
21172
  return 0;
 
21173
}
 
21174
_ACEOF
 
21175
rm -f conftest.$ac_objext conftest$ac_exeext
 
21176
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21177
  (eval $ac_link) 2>conftest.er1
 
21178
  ac_status=$?
 
21179
  grep -v '^ *+' conftest.er1 >conftest.err
 
21180
  rm -f conftest.er1
 
21181
  cat conftest.err >&5
 
21182
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21183
  (exit $ac_status); } &&
 
21184
         { ac_try='test -z "$ac_cxx_werror_flag"
 
21185
                         || test ! -s conftest.err'
 
21186
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21187
  (eval $ac_try) 2>&5
 
21188
  ac_status=$?
 
21189
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21190
  (exit $ac_status); }; } &&
 
21191
         { ac_try='test -s conftest$ac_exeext'
 
21192
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21193
  (eval $ac_try) 2>&5
 
21194
  ac_status=$?
 
21195
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21196
  (exit $ac_status); }; }; then
 
21197
 
 
21198
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
21199
}'`
 
21200
# Check for a 64-bit object if we didn't find anything.
 
21201
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
21202
}'`; fi
 
21203
else
 
21204
  echo "$as_me: failed program was:" >&5
 
21205
sed 's/^/| /' conftest.$ac_ext >&5
 
21206
 
 
21207
fi
 
21208
rm -f conftest.err conftest.$ac_objext \
 
21209
      conftest$ac_exeext conftest.$ac_ext
 
21210
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
21211
 
 
21212
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
21213
 
 
21214
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
21215
     else
 
21216
      if test "$host_cpu" = ia64; then
 
21217
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
21218
        allow_undefined_flag_CXX="-z nodefs"
 
21219
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
21220
      else
 
21221
        # Determine the default libpath from the value encoded in an empty executable.
 
21222
        cat >conftest.$ac_ext <<_ACEOF
 
21223
/* confdefs.h.  */
 
21224
_ACEOF
 
21225
cat confdefs.h >>conftest.$ac_ext
 
21226
cat >>conftest.$ac_ext <<_ACEOF
 
21227
/* end confdefs.h.  */
 
21228
 
 
21229
int
 
21230
main ()
 
21231
{
 
21232
 
 
21233
  ;
 
21234
  return 0;
 
21235
}
 
21236
_ACEOF
 
21237
rm -f conftest.$ac_objext conftest$ac_exeext
 
21238
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21239
  (eval $ac_link) 2>conftest.er1
 
21240
  ac_status=$?
 
21241
  grep -v '^ *+' conftest.er1 >conftest.err
 
21242
  rm -f conftest.er1
 
21243
  cat conftest.err >&5
 
21244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21245
  (exit $ac_status); } &&
 
21246
         { ac_try='test -z "$ac_cxx_werror_flag"
 
21247
                         || test ! -s conftest.err'
 
21248
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21249
  (eval $ac_try) 2>&5
 
21250
  ac_status=$?
 
21251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21252
  (exit $ac_status); }; } &&
 
21253
         { ac_try='test -s conftest$ac_exeext'
 
21254
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21255
  (eval $ac_try) 2>&5
 
21256
  ac_status=$?
 
21257
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21258
  (exit $ac_status); }; }; then
 
21259
 
 
21260
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
21261
}'`
 
21262
# Check for a 64-bit object if we didn't find anything.
 
21263
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
21264
}'`; fi
 
21265
else
 
21266
  echo "$as_me: failed program was:" >&5
 
21267
sed 's/^/| /' conftest.$ac_ext >&5
 
21268
 
 
21269
fi
 
21270
rm -f conftest.err conftest.$ac_objext \
 
21271
      conftest$ac_exeext conftest.$ac_ext
 
21272
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
21273
 
 
21274
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
21275
        # Warning - without using the other run time loading flags,
 
21276
        # -berok will link without error, but may produce a broken library.
 
21277
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
21278
        allow_undefined_flag_CXX=' ${wl}-berok'
 
21279
        # -bexpall does not export symbols beginning with underscore (_)
 
21280
        always_export_symbols_CXX=yes
 
21281
        # Exported symbols can be pulled into shared objects from archives
 
21282
        whole_archive_flag_spec_CXX=' '
 
21283
        archive_cmds_need_lc_CXX=yes
 
21284
        # This is similar to how AIX traditionally builds its shared libraries.
 
21285
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
21286
      fi
 
21287
    fi
 
21288
    ;;
 
21289
  chorus*)
 
21290
    case $cc_basename in
 
21291
      *)
 
21292
        # FIXME: insert proper C++ library support
 
21293
        ld_shlibs_CXX=no
 
21294
        ;;
 
21295
    esac
 
21296
    ;;
 
21297
 
 
21298
 
 
21299
  cygwin* | mingw* | pw32*)
 
21300
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
21301
    # as there is no search path for DLLs.
 
21302
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
21303
    allow_undefined_flag_CXX=unsupported
 
21304
    always_export_symbols_CXX=no
 
21305
    enable_shared_with_static_runtimes_CXX=yes
 
21306
 
 
21307
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
21308
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
21309
      # If the export-symbols file already is a .def file (1st line
 
21310
      # is EXPORTS), use it as is; otherwise, prepend...
 
21311
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
21312
        cp $export_symbols $output_objdir/$soname.def;
 
21313
      else
 
21314
        echo EXPORTS > $output_objdir/$soname.def;
 
21315
        cat $export_symbols >> $output_objdir/$soname.def;
 
21316
      fi~
 
21317
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
21318
    else
 
21319
      ld_shlibs_CXX=no
 
21320
    fi
 
21321
  ;;
 
21322
      darwin* | rhapsody*)
 
21323
        case $host_os in
 
21324
        rhapsody* | darwin1.[012])
 
21325
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
21326
         ;;
 
21327
       *) # Darwin 1.3 on
 
21328
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
21329
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
21330
         else
 
21331
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
21332
             10.[012])
 
21333
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
21334
               ;;
 
21335
             10.*)
 
21336
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
21337
               ;;
 
21338
           esac
 
21339
         fi
 
21340
         ;;
 
21341
        esac
 
21342
      archive_cmds_need_lc_CXX=no
 
21343
      hardcode_direct_CXX=no
 
21344
      hardcode_automatic_CXX=yes
 
21345
      hardcode_shlibpath_var_CXX=unsupported
 
21346
      whole_archive_flag_spec_CXX=''
 
21347
      link_all_deplibs_CXX=yes
 
21348
 
 
21349
    if test "$GXX" = yes ; then
 
21350
      lt_int_apple_cc_single_mod=no
 
21351
      output_verbose_link_cmd='echo'
 
21352
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
21353
       lt_int_apple_cc_single_mod=yes
 
21354
      fi
 
21355
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
21356
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
21357
      else
 
21358
          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
21359
        fi
 
21360
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
21361
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
21362
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
21363
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
21364
          else
 
21365
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
21366
          fi
 
21367
            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
21368
      else
 
21369
      case $cc_basename in
 
21370
        xlc*)
 
21371
         output_verbose_link_cmd='echo'
 
21372
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
21373
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
21374
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
21375
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
21376
          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
21377
          ;;
 
21378
       *)
 
21379
         ld_shlibs_CXX=no
 
21380
          ;;
 
21381
      esac
 
21382
      fi
 
21383
        ;;
 
21384
 
 
21385
  dgux*)
 
21386
    case $cc_basename in
 
21387
      ec++*)
 
21388
        # FIXME: insert proper C++ library support
 
21389
        ld_shlibs_CXX=no
 
21390
        ;;
 
21391
      ghcx*)
 
21392
        # Green Hills C++ Compiler
 
21393
        # FIXME: insert proper C++ library support
 
21394
        ld_shlibs_CXX=no
 
21395
        ;;
 
21396
      *)
 
21397
        # FIXME: insert proper C++ library support
 
21398
        ld_shlibs_CXX=no
 
21399
        ;;
 
21400
    esac
 
21401
    ;;
 
21402
  freebsd[12]*)
 
21403
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
21404
    ld_shlibs_CXX=no
 
21405
    ;;
 
21406
  freebsd-elf*)
 
21407
    archive_cmds_need_lc_CXX=no
 
21408
    ;;
 
21409
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
21410
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
21411
    # conventions
 
21412
    ld_shlibs_CXX=yes
 
21413
    ;;
 
21414
  gnu*)
 
21415
    ;;
 
21416
  hpux9*)
 
21417
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
21418
    hardcode_libdir_separator_CXX=:
 
21419
    export_dynamic_flag_spec_CXX='${wl}-E'
 
21420
    hardcode_direct_CXX=yes
 
21421
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
21422
                                # but as the default
 
21423
                                # location of the library.
 
21424
 
 
21425
    case $cc_basename in
 
21426
    CC*)
 
21427
      # FIXME: insert proper C++ library support
 
21428
      ld_shlibs_CXX=no
 
21429
      ;;
 
21430
    aCC*)
 
21431
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
21432
      # Commands to make compiler produce verbose output that lists
 
21433
      # what "hidden" libraries, object files and flags are used when
 
21434
      # linking a shared library.
 
21435
      #
 
21436
      # There doesn't appear to be a way to prevent this compiler from
 
21437
      # explicitly linking system object files so we need to strip them
 
21438
      # from the output so that they don't get included in the library
 
21439
      # dependencies.
 
21440
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
21441
      ;;
 
21442
    *)
 
21443
      if test "$GXX" = yes; then
 
21444
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
21445
      else
 
21446
        # FIXME: insert proper C++ library support
 
21447
        ld_shlibs_CXX=no
 
21448
      fi
 
21449
      ;;
 
21450
    esac
 
21451
    ;;
 
21452
  hpux10*|hpux11*)
 
21453
    if test $with_gnu_ld = no; then
 
21454
      case $host_cpu in
 
21455
      hppa*64*)
 
21456
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
21457
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
21458
        hardcode_libdir_separator_CXX=:
 
21459
        ;;
 
21460
      ia64*)
 
21461
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
21462
        ;;
 
21463
      *)
 
21464
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
21465
        hardcode_libdir_separator_CXX=:
 
21466
        export_dynamic_flag_spec_CXX='${wl}-E'
 
21467
        ;;
 
21468
      esac
 
21469
    fi
 
21470
    case $host_cpu in
 
21471
    hppa*64*)
 
21472
      hardcode_direct_CXX=no
 
21473
      hardcode_shlibpath_var_CXX=no
 
21474
      ;;
 
21475
    ia64*)
 
21476
      hardcode_direct_CXX=no
 
21477
      hardcode_shlibpath_var_CXX=no
 
21478
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
21479
                                              # but as the default
 
21480
                                              # location of the library.
 
21481
      ;;
 
21482
    *)
 
21483
      hardcode_direct_CXX=yes
 
21484
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
21485
                                              # but as the default
 
21486
                                              # location of the library.
 
21487
      ;;
 
21488
    esac
 
21489
 
 
21490
    case $cc_basename in
 
21491
      CC*)
 
21492
        # FIXME: insert proper C++ library support
 
21493
        ld_shlibs_CXX=no
 
21494
        ;;
 
21495
      aCC*)
 
21496
        case $host_cpu in
 
21497
        hppa*64*|ia64*)
 
21498
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
21499
          ;;
 
21500
        *)
 
21501
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
21502
          ;;
 
21503
        esac
 
21504
        # Commands to make compiler produce verbose output that lists
 
21505
        # what "hidden" libraries, object files and flags are used when
 
21506
        # linking a shared library.
 
21507
        #
 
21508
        # There doesn't appear to be a way to prevent this compiler from
 
21509
        # explicitly linking system object files so we need to strip them
 
21510
        # from the output so that they don't get included in the library
 
21511
        # dependencies.
 
21512
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
21513
        ;;
 
21514
      *)
 
21515
        if test "$GXX" = yes; then
 
21516
          if test $with_gnu_ld = no; then
 
21517
            case $host_cpu in
 
21518
            ia64*|hppa*64*)
 
21519
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
21520
              ;;
 
21521
            *)
 
21522
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
21523
              ;;
 
21524
            esac
 
21525
          fi
 
21526
        else
 
21527
          # FIXME: insert proper C++ library support
 
21528
          ld_shlibs_CXX=no
 
21529
        fi
 
21530
        ;;
 
21531
    esac
 
21532
    ;;
 
21533
  irix5* | irix6*)
 
21534
    case $cc_basename in
 
21535
      CC*)
 
21536
        # SGI C++
 
21537
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
21538
 
 
21539
        # Archives containing C++ object files must be created using
 
21540
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
21541
        # necessary to make sure instantiated templates are included
 
21542
        # in the archive.
 
21543
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
21544
        ;;
 
21545
      *)
 
21546
        if test "$GXX" = yes; then
 
21547
          if test "$with_gnu_ld" = no; then
 
21548
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
21549
          else
 
21550
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
 
21551
          fi
 
21552
        fi
 
21553
        link_all_deplibs_CXX=yes
 
21554
        ;;
 
21555
    esac
 
21556
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
21557
    hardcode_libdir_separator_CXX=:
 
21558
    ;;
 
21559
  linux*)
 
21560
    case $cc_basename in
 
21561
      KCC*)
 
21562
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
21563
 
 
21564
        # KCC will only create a shared library if the output file
 
21565
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
21566
        # to its proper name (with version) after linking.
 
21567
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
21568
        archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
 
21569
        # Commands to make compiler produce verbose output that lists
 
21570
        # what "hidden" libraries, object files and flags are used when
 
21571
        # linking a shared library.
 
21572
        #
 
21573
        # There doesn't appear to be a way to prevent this compiler from
 
21574
        # explicitly linking system object files so we need to strip them
 
21575
        # from the output so that they don't get included in the library
 
21576
        # dependencies.
 
21577
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
21578
 
 
21579
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
21580
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
21581
 
 
21582
        # Archives containing C++ object files must be created using
 
21583
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
21584
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
21585
        ;;
 
21586
      icpc*)
 
21587
        # Intel C++
 
21588
        with_gnu_ld=yes
 
21589
        # version 8.0 and above of icpc choke on multiply defined symbols
 
21590
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
21591
        # earlier do not add the objects themselves.
 
21592
        case `$CC -V 2>&1` in
 
21593
        *"Version 7."*)
 
21594
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
21595
          archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
21596
          ;;
 
21597
        *)  # Version 8.0 or newer
 
21598
          tmp_idyn=
 
21599
          case $host_cpu in
 
21600
            ia64*) tmp_idyn=' -i_dynamic';;
 
21601
          esac
 
21602
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
21603
          archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
21604
          ;;
 
21605
        esac
 
21606
        archive_cmds_need_lc_CXX=no
 
21607
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
21608
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
21609
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
21610
        ;;
 
21611
      pgCC*)
 
21612
        # Portland Group C++ compiler
 
21613
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
21614
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
21615
 
 
21616
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
21617
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
21618
        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
21619
        ;;
 
21620
      cxx*)
 
21621
        # Compaq C++
 
21622
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
21623
        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
 
21624
 
 
21625
        runpath_var=LD_RUN_PATH
 
21626
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
21627
        hardcode_libdir_separator_CXX=:
 
21628
 
 
21629
        # Commands to make compiler produce verbose output that lists
 
21630
        # what "hidden" libraries, object files and flags are used when
 
21631
        # linking a shared library.
 
21632
        #
 
21633
        # There doesn't appear to be a way to prevent this compiler from
 
21634
        # explicitly linking system object files so we need to strip them
 
21635
        # from the output so that they don't get included in the library
 
21636
        # dependencies.
 
21637
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
21638
        ;;
 
21639
    esac
 
21640
    ;;
 
21641
  lynxos*)
 
21642
    # FIXME: insert proper C++ library support
 
21643
    ld_shlibs_CXX=no
 
21644
    ;;
 
21645
  m88k*)
 
21646
    # FIXME: insert proper C++ library support
 
21647
    ld_shlibs_CXX=no
 
21648
    ;;
 
21649
  mvs*)
 
21650
    case $cc_basename in
 
21651
      cxx*)
 
21652
        # FIXME: insert proper C++ library support
 
21653
        ld_shlibs_CXX=no
 
21654
        ;;
 
21655
      *)
 
21656
        # FIXME: insert proper C++ library support
 
21657
        ld_shlibs_CXX=no
 
21658
        ;;
 
21659
    esac
 
21660
    ;;
 
21661
  netbsd*)
 
21662
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
21663
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
21664
      wlarc=
 
21665
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
21666
      hardcode_direct_CXX=yes
 
21667
      hardcode_shlibpath_var_CXX=no
 
21668
    fi
 
21669
    # Workaround some broken pre-1.5 toolchains
 
21670
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
21671
    ;;
 
21672
  openbsd2*)
 
21673
    # C++ shared libraries are fairly broken
 
21674
    ld_shlibs_CXX=no
 
21675
    ;;
 
21676
  openbsd*)
 
21677
    hardcode_direct_CXX=yes
 
21678
    hardcode_shlibpath_var_CXX=no
 
21679
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
21680
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
21681
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
21682
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
21683
      export_dynamic_flag_spec_CXX='${wl}-E'
 
21684
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
21685
    fi
 
21686
    output_verbose_link_cmd='echo'
 
21687
    ;;
 
21688
  osf3*)
 
21689
    case $cc_basename in
 
21690
      KCC*)
 
21691
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
21692
 
 
21693
        # KCC will only create a shared library if the output file
 
21694
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
21695
        # to its proper name (with version) after linking.
 
21696
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
21697
 
 
21698
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
21699
        hardcode_libdir_separator_CXX=:
 
21700
 
 
21701
        # Archives containing C++ object files must be created using
 
21702
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
21703
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
21704
 
 
21705
        ;;
 
21706
      RCC*)
 
21707
        # Rational C++ 2.4.1
 
21708
        # FIXME: insert proper C++ library support
 
21709
        ld_shlibs_CXX=no
 
21710
        ;;
 
21711
      cxx*)
 
21712
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
21713
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
21714
 
 
21715
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
21716
        hardcode_libdir_separator_CXX=:
 
21717
 
 
21718
        # Commands to make compiler produce verbose output that lists
 
21719
        # what "hidden" libraries, object files and flags are used when
 
21720
        # linking a shared library.
 
21721
        #
 
21722
        # There doesn't appear to be a way to prevent this compiler from
 
21723
        # explicitly linking system object files so we need to strip them
 
21724
        # from the output so that they don't get included in the library
 
21725
        # dependencies.
 
21726
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
21727
        ;;
 
21728
      *)
 
21729
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
21730
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
21731
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
21732
 
 
21733
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
21734
          hardcode_libdir_separator_CXX=:
 
21735
 
 
21736
          # Commands to make compiler produce verbose output that lists
 
21737
          # what "hidden" libraries, object files and flags are used when
 
21738
          # linking a shared library.
 
21739
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
21740
 
 
21741
        else
 
21742
          # FIXME: insert proper C++ library support
 
21743
          ld_shlibs_CXX=no
 
21744
        fi
 
21745
        ;;
 
21746
    esac
 
21747
    ;;
 
21748
  osf4* | osf5*)
 
21749
    case $cc_basename in
 
21750
      KCC*)
 
21751
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
21752
 
 
21753
        # KCC will only create a shared library if the output file
 
21754
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
21755
        # to its proper name (with version) after linking.
 
21756
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
21757
 
 
21758
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
21759
        hardcode_libdir_separator_CXX=:
 
21760
 
 
21761
        # Archives containing C++ object files must be created using
 
21762
        # the KAI C++ compiler.
 
21763
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
21764
        ;;
 
21765
      RCC*)
 
21766
        # Rational C++ 2.4.1
 
21767
        # FIXME: insert proper C++ library support
 
21768
        ld_shlibs_CXX=no
 
21769
        ;;
 
21770
      cxx*)
 
21771
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
21772
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
21773
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
21774
          echo "-hidden">> $lib.exp~
 
21775
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
 
21776
          $rm $lib.exp'
 
21777
 
 
21778
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
21779
        hardcode_libdir_separator_CXX=:
 
21780
 
 
21781
        # Commands to make compiler produce verbose output that lists
 
21782
        # what "hidden" libraries, object files and flags are used when
 
21783
        # linking a shared library.
 
21784
        #
 
21785
        # There doesn't appear to be a way to prevent this compiler from
 
21786
        # explicitly linking system object files so we need to strip them
 
21787
        # from the output so that they don't get included in the library
 
21788
        # dependencies.
 
21789
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
21790
        ;;
 
21791
      *)
 
21792
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
21793
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
21794
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
21795
 
 
21796
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
21797
          hardcode_libdir_separator_CXX=:
 
21798
 
 
21799
          # Commands to make compiler produce verbose output that lists
 
21800
          # what "hidden" libraries, object files and flags are used when
 
21801
          # linking a shared library.
 
21802
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
21803
 
 
21804
        else
 
21805
          # FIXME: insert proper C++ library support
 
21806
          ld_shlibs_CXX=no
 
21807
        fi
 
21808
        ;;
 
21809
    esac
 
21810
    ;;
 
21811
  psos*)
 
21812
    # FIXME: insert proper C++ library support
 
21813
    ld_shlibs_CXX=no
 
21814
    ;;
 
21815
  sco*)
 
21816
    archive_cmds_need_lc_CXX=no
 
21817
    case $cc_basename in
 
21818
      CC*)
 
21819
        # FIXME: insert proper C++ library support
 
21820
        ld_shlibs_CXX=no
 
21821
        ;;
 
21822
      *)
 
21823
        # FIXME: insert proper C++ library support
 
21824
        ld_shlibs_CXX=no
 
21825
        ;;
 
21826
    esac
 
21827
    ;;
 
21828
  sunos4*)
 
21829
    case $cc_basename in
 
21830
      CC*)
 
21831
        # Sun C++ 4.x
 
21832
        # FIXME: insert proper C++ library support
 
21833
        ld_shlibs_CXX=no
 
21834
        ;;
 
21835
      lcc*)
 
21836
        # Lucid
 
21837
        # FIXME: insert proper C++ library support
 
21838
        ld_shlibs_CXX=no
 
21839
        ;;
 
21840
      *)
 
21841
        # FIXME: insert proper C++ library support
 
21842
        ld_shlibs_CXX=no
 
21843
        ;;
 
21844
    esac
 
21845
    ;;
 
21846
  solaris*)
 
21847
    case $cc_basename in
 
21848
      CC*)
 
21849
        # Sun C++ 4.2, 5.x and Centerline C++
 
21850
        archive_cmds_need_lc_CXX=yes
 
21851
        no_undefined_flag_CXX=' -zdefs'
 
21852
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
21853
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
21854
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
21855
 
 
21856
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
21857
        hardcode_shlibpath_var_CXX=no
 
21858
        case $host_os in
 
21859
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
21860
          *)
 
21861
            # The C++ compiler is used as linker so we must use $wl
 
21862
            # flag to pass the commands to the underlying system
 
21863
            # linker. We must also pass each convience library through
 
21864
            # to the system linker between allextract/defaultextract.
 
21865
            # The C++ compiler will combine linker options so we
 
21866
            # cannot just pass the convience library names through
 
21867
            # without $wl.
 
21868
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
21869
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
21870
            ;;
 
21871
        esac
 
21872
        link_all_deplibs_CXX=yes
 
21873
 
 
21874
        output_verbose_link_cmd='echo'
 
21875
 
 
21876
        # Archives containing C++ object files must be created using
 
21877
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
21878
        # necessary to make sure instantiated templates are included
 
21879
        # in the archive.
 
21880
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
21881
        ;;
 
21882
      gcx*)
 
21883
        # Green Hills C++ Compiler
 
21884
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
21885
 
 
21886
        # The C++ compiler must be used to create the archive.
 
21887
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
21888
        ;;
 
21889
      *)
 
21890
        # GNU C++ compiler with Solaris linker
 
21891
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
21892
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
21893
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
21894
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
21895
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
21896
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
21897
 
 
21898
            # Commands to make compiler produce verbose output that lists
 
21899
            # what "hidden" libraries, object files and flags are used when
 
21900
            # linking a shared library.
 
21901
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
21902
          else
 
21903
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
21904
            # platform.
 
21905
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
21906
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
21907
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
21908
 
 
21909
            # Commands to make compiler produce verbose output that lists
 
21910
            # what "hidden" libraries, object files and flags are used when
 
21911
            # linking a shared library.
 
21912
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
21913
          fi
 
21914
 
 
21915
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
21916
        fi
 
21917
        ;;
 
21918
    esac
 
21919
    ;;
 
21920
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
21921
    archive_cmds_need_lc_CXX=no
 
21922
    ;;
 
21923
  tandem*)
 
21924
    case $cc_basename in
 
21925
      NCC*)
 
21926
        # NonStop-UX NCC 3.20
 
21927
        # FIXME: insert proper C++ library support
 
21928
        ld_shlibs_CXX=no
 
21929
        ;;
 
21930
      *)
 
21931
        # FIXME: insert proper C++ library support
 
21932
        ld_shlibs_CXX=no
 
21933
        ;;
 
21934
    esac
 
21935
    ;;
 
21936
  vxworks*)
 
21937
    # FIXME: insert proper C++ library support
 
21938
    ld_shlibs_CXX=no
 
21939
    ;;
 
21940
  *)
 
21941
    # FIXME: insert proper C++ library support
 
21942
    ld_shlibs_CXX=no
 
21943
    ;;
 
21944
esac
 
21945
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
21946
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
21947
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
21948
 
 
21949
GCC_CXX="$GXX"
 
21950
LD_CXX="$LD"
 
21951
 
 
21952
 
 
21953
cat > conftest.$ac_ext <<EOF
 
21954
class Foo
 
21955
{
 
21956
public:
 
21957
  Foo (void) { a = 0; }
 
21958
private:
 
21959
  int a;
 
21960
};
 
21961
EOF
 
21962
 
 
21963
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21964
  (eval $ac_compile) 2>&5
 
21965
  ac_status=$?
 
21966
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21967
  (exit $ac_status); }; then
 
21968
  # Parse the compiler output and extract the necessary
 
21969
  # objects, libraries and library flags.
 
21970
 
 
21971
  # Sentinel used to keep track of whether or not we are before
 
21972
  # the conftest object file.
 
21973
  pre_test_object_deps_done=no
 
21974
 
 
21975
  # The `*' in the case matches for architectures that use `case' in
 
21976
  # $output_verbose_cmd can trigger glob expansion during the loop
 
21977
  # eval without this substitution.
 
21978
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
21979
 
 
21980
  for p in `eval $output_verbose_link_cmd`; do
 
21981
    case $p in
 
21982
 
 
21983
    -L* | -R* | -l*)
 
21984
       # Some compilers place space between "-{L,R}" and the path.
 
21985
       # Remove the space.
 
21986
       if test $p = "-L" \
 
21987
          || test $p = "-R"; then
 
21988
         prev=$p
 
21989
         continue
 
21990
       else
 
21991
         prev=
 
21992
       fi
 
21993
 
 
21994
       if test "$pre_test_object_deps_done" = no; then
 
21995
         case $p in
 
21996
         -L* | -R*)
 
21997
           # Internal compiler library paths should come after those
 
21998
           # provided the user.  The postdeps already come after the
 
21999
           # user supplied libs so there is no need to process them.
 
22000
           if test -z "$compiler_lib_search_path_CXX"; then
 
22001
             compiler_lib_search_path_CXX="${prev}${p}"
 
22002
           else
 
22003
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
22004
           fi
 
22005
           ;;
 
22006
         # The "-l" case would never come before the object being
 
22007
         # linked, so don't bother handling this case.
 
22008
         esac
 
22009
       else
 
22010
         if test -z "$postdeps_CXX"; then
 
22011
           postdeps_CXX="${prev}${p}"
 
22012
         else
 
22013
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
22014
         fi
 
22015
       fi
 
22016
       ;;
 
22017
 
 
22018
    *.$objext)
 
22019
       # This assumes that the test object file only shows up
 
22020
       # once in the compiler output.
 
22021
       if test "$p" = "conftest.$objext"; then
 
22022
         pre_test_object_deps_done=yes
 
22023
         continue
 
22024
       fi
 
22025
 
 
22026
       if test "$pre_test_object_deps_done" = no; then
 
22027
         if test -z "$predep_objects_CXX"; then
 
22028
           predep_objects_CXX="$p"
 
22029
         else
 
22030
           predep_objects_CXX="$predep_objects_CXX $p"
 
22031
         fi
 
22032
       else
 
22033
         if test -z "$postdep_objects_CXX"; then
 
22034
           postdep_objects_CXX="$p"
 
22035
         else
 
22036
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
22037
         fi
 
22038
       fi
 
22039
       ;;
 
22040
 
 
22041
    *) ;; # Ignore the rest.
 
22042
 
 
22043
    esac
 
22044
  done
 
22045
 
 
22046
  # Clean up.
 
22047
  rm -f a.out a.exe
 
22048
else
 
22049
  echo "libtool.m4: error: problem compiling CXX test program"
 
22050
fi
 
22051
 
 
22052
$rm -f confest.$objext
 
22053
 
 
22054
# PORTME: override above test on systems where it is broken
 
22055
case $host_os in
 
22056
solaris*)
 
22057
  case $cc_basename in
 
22058
  CC*)
 
22059
    # Adding this requires a known-good setup of shared libraries for
 
22060
    # Sun compiler versions before 5.6, else PIC objects from an old
 
22061
    # archive will be linked into the output, leading to subtle bugs.
 
22062
    postdeps_CXX='-lCstd -lCrun'
 
22063
    ;;
 
22064
  esac
 
22065
esac
 
22066
 
 
22067
 
 
22068
case " $postdeps_CXX " in
 
22069
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
22070
esac
 
22071
 
 
22072
lt_prog_compiler_wl_CXX=
 
22073
lt_prog_compiler_pic_CXX=
 
22074
lt_prog_compiler_static_CXX=
 
22075
 
 
22076
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
22077
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
22078
 
 
22079
  # C++ specific cases for pic, static, wl, etc.
 
22080
  if test "$GXX" = yes; then
 
22081
    lt_prog_compiler_wl_CXX='-Wl,'
 
22082
    lt_prog_compiler_static_CXX='-static'
 
22083
 
 
22084
    case $host_os in
 
22085
    aix*)
 
22086
      # All AIX code is PIC.
 
22087
      if test "$host_cpu" = ia64; then
 
22088
        # AIX 5 now supports IA64 processor
 
22089
        lt_prog_compiler_static_CXX='-Bstatic'
 
22090
      fi
 
22091
      ;;
 
22092
    amigaos*)
 
22093
      # FIXME: we need at least 68020 code to build shared libraries, but
 
22094
      # adding the `-m68020' flag to GCC prevents building anything better,
 
22095
      # like `-m68040'.
 
22096
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
22097
      ;;
 
22098
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
22099
      # PIC is the default for these OSes.
 
22100
      ;;
 
22101
    mingw* | os2* | pw32*)
 
22102
      # This hack is so that the source file can tell whether it is being
 
22103
      # built for inclusion in a dll (and should export symbols for example).
 
22104
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
22105
      ;;
 
22106
    darwin* | rhapsody*)
 
22107
      # PIC is the default on this platform
 
22108
      # Common symbols not allowed in MH_DYLIB files
 
22109
      lt_prog_compiler_pic_CXX='-fno-common'
 
22110
      ;;
 
22111
    *djgpp*)
 
22112
      # DJGPP does not support shared libraries at all
 
22113
      lt_prog_compiler_pic_CXX=
 
22114
      ;;
 
22115
    sysv4*MP*)
 
22116
      if test -d /usr/nec; then
 
22117
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
22118
      fi
 
22119
      ;;
 
22120
    hpux*)
 
22121
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
22122
      # not for PA HP-UX.
 
22123
      case $host_cpu in
 
22124
      hppa*64*|ia64*)
 
22125
        ;;
 
22126
      *)
 
22127
        lt_prog_compiler_pic_CXX='-fPIC'
 
22128
        ;;
 
22129
      esac
 
22130
      ;;
 
22131
    *)
 
22132
      lt_prog_compiler_pic_CXX='-fPIC'
 
22133
      ;;
 
22134
    esac
 
22135
  else
 
22136
    case $host_os in
 
22137
      aix4* | aix5*)
 
22138
        # All AIX code is PIC.
 
22139
        if test "$host_cpu" = ia64; then
 
22140
          # AIX 5 now supports IA64 processor
 
22141
          lt_prog_compiler_static_CXX='-Bstatic'
 
22142
        else
 
22143
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
22144
        fi
 
22145
        ;;
 
22146
      chorus*)
 
22147
        case $cc_basename in
 
22148
        cxch68*)
 
22149
          # Green Hills C++ Compiler
 
22150
          # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
 
22151
          ;;
 
22152
        esac
 
22153
        ;;
 
22154
       darwin*)
 
22155
         # PIC is the default on this platform
 
22156
         # Common symbols not allowed in MH_DYLIB files
 
22157
         case $cc_basename in
 
22158
           xlc*)
 
22159
           lt_prog_compiler_pic_CXX='-qnocommon'
 
22160
           lt_prog_compiler_wl_CXX='-Wl,'
 
22161
           ;;
 
22162
         esac
 
22163
       ;;
 
22164
      dgux*)
 
22165
        case $cc_basename in
 
22166
          ec++*)
 
22167
            lt_prog_compiler_pic_CXX='-KPIC'
 
22168
            ;;
 
22169
          ghcx*)
 
22170
            # Green Hills C++ Compiler
 
22171
            lt_prog_compiler_pic_CXX='-pic'
 
22172
            ;;
 
22173
          *)
 
22174
            ;;
 
22175
        esac
 
22176
        ;;
 
22177
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
22178
        # FreeBSD uses GNU C++
 
22179
        ;;
 
22180
      hpux9* | hpux10* | hpux11*)
 
22181
        case $cc_basename in
 
22182
          CC*)
 
22183
            lt_prog_compiler_wl_CXX='-Wl,'
 
22184
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
22185
            if test "$host_cpu" != ia64; then
 
22186
              lt_prog_compiler_pic_CXX='+Z'
 
22187
            fi
 
22188
            ;;
 
22189
          aCC*)
 
22190
            lt_prog_compiler_wl_CXX='-Wl,'
 
22191
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
22192
            case $host_cpu in
 
22193
            hppa*64*|ia64*)
 
22194
              # +Z the default
 
22195
              ;;
 
22196
            *)
 
22197
              lt_prog_compiler_pic_CXX='+Z'
 
22198
              ;;
 
22199
            esac
 
22200
            ;;
 
22201
          *)
 
22202
            ;;
 
22203
        esac
 
22204
        ;;
 
22205
      irix5* | irix6* | nonstopux*)
 
22206
        case $cc_basename in
 
22207
          CC*)
 
22208
            lt_prog_compiler_wl_CXX='-Wl,'
 
22209
            lt_prog_compiler_static_CXX='-non_shared'
 
22210
            # CC pic flag -KPIC is the default.
 
22211
            ;;
 
22212
          *)
 
22213
            ;;
 
22214
        esac
 
22215
        ;;
 
22216
      linux*)
 
22217
        case $cc_basename in
 
22218
          KCC*)
 
22219
            # KAI C++ Compiler
 
22220
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
22221
            lt_prog_compiler_pic_CXX='-fPIC'
 
22222
            ;;
 
22223
          icpc* | ecpc*)
 
22224
            # Intel C++
 
22225
            lt_prog_compiler_wl_CXX='-Wl,'
 
22226
            lt_prog_compiler_pic_CXX='-KPIC'
 
22227
            lt_prog_compiler_static_CXX='-static'
 
22228
            ;;
 
22229
          pgCC*)
 
22230
            # Portland Group C++ compiler.
 
22231
            lt_prog_compiler_wl_CXX='-Wl,'
 
22232
            lt_prog_compiler_pic_CXX='-fpic'
 
22233
            lt_prog_compiler_static_CXX='-Bstatic'
 
22234
            ;;
 
22235
          cxx*)
 
22236
            # Compaq C++
 
22237
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
22238
            # Linux and Compaq Tru64 Unix objects are PIC.
 
22239
            lt_prog_compiler_pic_CXX=
 
22240
            lt_prog_compiler_static_CXX='-non_shared'
 
22241
            ;;
 
22242
          *)
 
22243
            ;;
 
22244
        esac
 
22245
        ;;
 
22246
      lynxos*)
 
22247
        ;;
 
22248
      m88k*)
 
22249
        ;;
 
22250
      mvs*)
 
22251
        case $cc_basename in
 
22252
          cxx*)
 
22253
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
22254
            ;;
 
22255
          *)
 
22256
            ;;
 
22257
        esac
 
22258
        ;;
 
22259
      netbsd*)
 
22260
        ;;
 
22261
      osf3* | osf4* | osf5*)
 
22262
        case $cc_basename in
 
22263
          KCC*)
 
22264
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
22265
            ;;
 
22266
          RCC*)
 
22267
            # Rational C++ 2.4.1
 
22268
            lt_prog_compiler_pic_CXX='-pic'
 
22269
            ;;
 
22270
          cxx*)
 
22271
            # Digital/Compaq C++
 
22272
            lt_prog_compiler_wl_CXX='-Wl,'
 
22273
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
22274
            # Linux and Compaq Tru64 Unix objects are PIC.
 
22275
            lt_prog_compiler_pic_CXX=
 
22276
            lt_prog_compiler_static_CXX='-non_shared'
 
22277
            ;;
 
22278
          *)
 
22279
            ;;
 
22280
        esac
 
22281
        ;;
 
22282
      psos*)
 
22283
        ;;
 
22284
      sco*)
 
22285
        case $cc_basename in
 
22286
          CC*)
 
22287
            lt_prog_compiler_pic_CXX='-fPIC'
 
22288
            ;;
 
22289
          *)
 
22290
            ;;
 
22291
        esac
 
22292
        ;;
 
22293
      solaris*)
 
22294
        case $cc_basename in
 
22295
          CC*)
 
22296
            # Sun C++ 4.2, 5.x and Centerline C++
 
22297
            lt_prog_compiler_pic_CXX='-KPIC'
 
22298
            lt_prog_compiler_static_CXX='-Bstatic'
 
22299
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
22300
            ;;
 
22301
          gcx*)
 
22302
            # Green Hills C++ Compiler
 
22303
            lt_prog_compiler_pic_CXX='-PIC'
 
22304
            ;;
 
22305
          *)
 
22306
            ;;
 
22307
        esac
 
22308
        ;;
 
22309
      sunos4*)
 
22310
        case $cc_basename in
 
22311
          CC*)
 
22312
            # Sun C++ 4.x
 
22313
            lt_prog_compiler_pic_CXX='-pic'
 
22314
            lt_prog_compiler_static_CXX='-Bstatic'
 
22315
            ;;
 
22316
          lcc*)
 
22317
            # Lucid
 
22318
            lt_prog_compiler_pic_CXX='-pic'
 
22319
            ;;
 
22320
          *)
 
22321
            ;;
 
22322
        esac
 
22323
        ;;
 
22324
      tandem*)
 
22325
        case $cc_basename in
 
22326
          NCC*)
 
22327
            # NonStop-UX NCC 3.20
 
22328
            lt_prog_compiler_pic_CXX='-KPIC'
 
22329
            ;;
 
22330
          *)
 
22331
            ;;
 
22332
        esac
 
22333
        ;;
 
22334
      unixware*)
 
22335
        ;;
 
22336
      vxworks*)
 
22337
        ;;
 
22338
      *)
 
22339
        lt_prog_compiler_can_build_shared_CXX=no
 
22340
        ;;
 
22341
    esac
 
22342
  fi
 
22343
 
 
22344
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
22345
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
22346
 
 
22347
#
 
22348
# Check to make sure the PIC flag actually works.
 
22349
#
 
22350
if test -n "$lt_prog_compiler_pic_CXX"; then
 
22351
 
 
22352
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
22353
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
22354
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
22355
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22356
else
 
22357
  lt_prog_compiler_pic_works_CXX=no
 
22358
  ac_outfile=conftest.$ac_objext
 
22359
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
22360
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
22361
   # Insert the option either (1) after the last *FLAGS variable, or
 
22362
   # (2) before a word containing "conftest.", or (3) at the end.
 
22363
   # Note that $ac_compile itself does not contain backslashes and begins
 
22364
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
22365
   # The option is referenced via a variable to avoid confusing sed.
 
22366
   lt_compile=`echo "$ac_compile" | $SED \
 
22367
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
22368
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
22369
   -e 's:$: $lt_compiler_flag:'`
 
22370
   (eval echo "\"\$as_me:22370: $lt_compile\"" >&5)
 
22371
   (eval "$lt_compile" 2>conftest.err)
 
22372
   ac_status=$?
 
22373
   cat conftest.err >&5
 
22374
   echo "$as_me:22374: \$? = $ac_status" >&5
 
22375
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
22376
     # The compiler can only warn and ignore the option if not recognized
 
22377
     # So say no if there are warnings other than the usual output.
 
22378
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
22379
     $SED '/^$/d' conftest.err >conftest.er2
 
22380
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
22381
       lt_prog_compiler_pic_works_CXX=yes
 
22382
     fi
 
22383
   fi
 
22384
   $rm conftest*
 
22385
 
 
22386
fi
 
22387
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
22388
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
22389
 
 
22390
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
22391
    case $lt_prog_compiler_pic_CXX in
 
22392
     "" | " "*) ;;
 
22393
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
22394
     esac
 
22395
else
 
22396
    lt_prog_compiler_pic_CXX=
 
22397
     lt_prog_compiler_can_build_shared_CXX=no
 
22398
fi
 
22399
 
 
22400
fi
 
22401
case $host_os in
 
22402
  # For platforms which do not support PIC, -DPIC is meaningless:
 
22403
  *djgpp*)
 
22404
    lt_prog_compiler_pic_CXX=
 
22405
    ;;
 
22406
  *)
 
22407
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
22408
    ;;
 
22409
esac
 
22410
 
 
22411
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
22412
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
22413
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
22414
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22415
else
 
22416
  lt_cv_prog_compiler_c_o_CXX=no
 
22417
   $rm -r conftest 2>/dev/null
 
22418
   mkdir conftest
 
22419
   cd conftest
 
22420
   mkdir out
 
22421
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
22422
 
 
22423
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
22424
   # Insert the option either (1) after the last *FLAGS variable, or
 
22425
   # (2) before a word containing "conftest.", or (3) at the end.
 
22426
   # Note that $ac_compile itself does not contain backslashes and begins
 
22427
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
22428
   lt_compile=`echo "$ac_compile" | $SED \
 
22429
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
22430
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
22431
   -e 's:$: $lt_compiler_flag:'`
 
22432
   (eval echo "\"\$as_me:22432: $lt_compile\"" >&5)
 
22433
   (eval "$lt_compile" 2>out/conftest.err)
 
22434
   ac_status=$?
 
22435
   cat out/conftest.err >&5
 
22436
   echo "$as_me:22436: \$? = $ac_status" >&5
 
22437
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
22438
   then
 
22439
     # The compiler can only warn and ignore the option if not recognized
 
22440
     # So say no if there are warnings
 
22441
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
22442
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
22443
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
22444
       lt_cv_prog_compiler_c_o_CXX=yes
 
22445
     fi
 
22446
   fi
 
22447
   chmod u+w . 2>&5
 
22448
   $rm conftest*
 
22449
   # SGI C++ compiler will create directory out/ii_files/ for
 
22450
   # template instantiation
 
22451
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
22452
   $rm out/* && rmdir out
 
22453
   cd ..
 
22454
   rmdir conftest
 
22455
   $rm conftest*
 
22456
 
 
22457
fi
 
22458
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
22459
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
22460
 
 
22461
 
 
22462
hard_links="nottested"
 
22463
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
22464
  # do not overwrite the value of need_locks provided by the user
 
22465
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
22466
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
22467
  hard_links=yes
 
22468
  $rm conftest*
 
22469
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
22470
  touch conftest.a
 
22471
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
22472
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
22473
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
22474
echo "${ECHO_T}$hard_links" >&6
 
22475
  if test "$hard_links" = no; then
 
22476
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
22477
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
22478
    need_locks=warn
 
22479
  fi
 
22480
else
 
22481
  need_locks=no
 
22482
fi
 
22483
 
 
22484
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
22485
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
22486
 
 
22487
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
22488
  case $host_os in
 
22489
  aix4* | aix5*)
 
22490
    # If we're using GNU nm, then we don't want the "-C" option.
 
22491
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
22492
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
22493
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
22494
    else
 
22495
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
22496
    fi
 
22497
    ;;
 
22498
  pw32*)
 
22499
    export_symbols_cmds_CXX="$ltdll_cmds"
 
22500
  ;;
 
22501
  cygwin* | mingw*)
 
22502
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
22503
  ;;
 
22504
  *)
 
22505
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
22506
  ;;
 
22507
  esac
 
22508
 
 
22509
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
22510
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
22511
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
22512
 
 
22513
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
22514
if test "$GCC" = yes; then
 
22515
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
22516
fi
 
22517
 
 
22518
#
 
22519
# Do we need to explicitly link libc?
 
22520
#
 
22521
case "x$archive_cmds_need_lc_CXX" in
 
22522
x|xyes)
 
22523
  # Assume -lc should be added
 
22524
  archive_cmds_need_lc_CXX=yes
 
22525
 
 
22526
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
22527
    case $archive_cmds_CXX in
 
22528
    *'~'*)
 
22529
      # FIXME: we may have to deal with multi-command sequences.
 
22530
      ;;
 
22531
    '$CC '*)
 
22532
      # Test whether the compiler implicitly links with -lc since on some
 
22533
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
22534
      # to ld, don't add -lc before -lgcc.
 
22535
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
22536
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
22537
      $rm conftest*
 
22538
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
22539
 
 
22540
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22541
  (eval $ac_compile) 2>&5
 
22542
  ac_status=$?
 
22543
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22544
  (exit $ac_status); } 2>conftest.err; then
 
22545
        soname=conftest
 
22546
        lib=conftest
 
22547
        libobjs=conftest.$ac_objext
 
22548
        deplibs=
 
22549
        wl=$lt_prog_compiler_wl_CXX
 
22550
        compiler_flags=-v
 
22551
        linker_flags=-v
 
22552
        verstring=
 
22553
        output_objdir=.
 
22554
        libname=conftest
 
22555
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
22556
        allow_undefined_flag_CXX=
 
22557
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
22558
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
22559
  ac_status=$?
 
22560
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22561
  (exit $ac_status); }
 
22562
        then
 
22563
          archive_cmds_need_lc_CXX=no
 
22564
        else
 
22565
          archive_cmds_need_lc_CXX=yes
 
22566
        fi
 
22567
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
22568
      else
 
22569
        cat conftest.err 1>&5
 
22570
      fi
 
22571
      $rm conftest*
 
22572
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
22573
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
22574
      ;;
 
22575
    esac
 
22576
  fi
 
22577
  ;;
 
22578
esac
 
22579
 
 
22580
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
22581
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
22582
library_names_spec=
 
22583
libname_spec='lib$name'
 
22584
soname_spec=
 
22585
shrext_cmds=".so"
 
22586
postinstall_cmds=
 
22587
postuninstall_cmds=
 
22588
finish_cmds=
 
22589
finish_eval=
 
22590
shlibpath_var=
 
22591
shlibpath_overrides_runpath=unknown
 
22592
version_type=none
 
22593
dynamic_linker="$host_os ld.so"
 
22594
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
22595
if test "$GCC" = yes; then
 
22596
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
22597
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
22598
    # if the path contains ";" then we assume it to be the separator
 
22599
    # otherwise default to the standard path separator (i.e. ":") - it is
 
22600
    # assumed that no part of a normal pathname contains ";" but that should
 
22601
    # okay in the real world where ";" in dirpaths is itself problematic.
 
22602
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
22603
  else
 
22604
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
22605
  fi
 
22606
else
 
22607
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
22608
fi
 
22609
need_lib_prefix=unknown
 
22610
hardcode_into_libs=no
 
22611
 
 
22612
# when you set need_version to no, make sure it does not cause -set_version
 
22613
# flags to be left without arguments
 
22614
need_version=unknown
 
22615
 
 
22616
case $host_os in
 
22617
aix3*)
 
22618
  version_type=linux
 
22619
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
22620
  shlibpath_var=LIBPATH
 
22621
 
 
22622
  # AIX 3 has no versioning support, so we append a major version to the name.
 
22623
  soname_spec='${libname}${release}${shared_ext}$major'
 
22624
  ;;
 
22625
 
 
22626
aix4* | aix5*)
 
22627
  version_type=linux
 
22628
  need_lib_prefix=no
 
22629
  need_version=no
 
22630
  hardcode_into_libs=yes
 
22631
  if test "$host_cpu" = ia64; then
 
22632
    # AIX 5 supports IA64
 
22633
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
22634
    shlibpath_var=LD_LIBRARY_PATH
 
22635
  else
 
22636
    # With GCC up to 2.95.x, collect2 would create an import file
 
22637
    # for dependence libraries.  The import file would start with
 
22638
    # the line `#! .'.  This would cause the generated library to
 
22639
    # depend on `.', always an invalid library.  This was fixed in
 
22640
    # development snapshots of GCC prior to 3.0.
 
22641
    case $host_os in
 
22642
      aix4 | aix4.[01] | aix4.[01].*)
 
22643
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
22644
           echo ' yes '
 
22645
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
22646
        :
 
22647
      else
 
22648
        can_build_shared=no
 
22649
      fi
 
22650
      ;;
 
22651
    esac
 
22652
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
22653
    # soname into executable. Probably we can add versioning support to
 
22654
    # collect2, so additional links can be useful in future.
 
22655
    if test "$aix_use_runtimelinking" = yes; then
 
22656
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
22657
      # instead of lib<name>.a to let people know that these are not
 
22658
      # typical AIX shared libraries.
 
22659
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22660
    else
 
22661
      # We preserve .a as extension for shared libraries through AIX4.2
 
22662
      # and later when we are not doing run time linking.
 
22663
      library_names_spec='${libname}${release}.a $libname.a'
 
22664
      soname_spec='${libname}${release}${shared_ext}$major'
 
22665
    fi
 
22666
    shlibpath_var=LIBPATH
 
22667
  fi
 
22668
  ;;
 
22669
 
 
22670
amigaos*)
 
22671
  library_names_spec='$libname.ixlibrary $libname.a'
 
22672
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
22673
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
22674
  ;;
 
22675
 
 
22676
beos*)
 
22677
  library_names_spec='${libname}${shared_ext}'
 
22678
  dynamic_linker="$host_os ld.so"
 
22679
  shlibpath_var=LIBRARY_PATH
 
22680
  ;;
 
22681
 
 
22682
bsdi[45]*)
 
22683
  version_type=linux
 
22684
  need_version=no
 
22685
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22686
  soname_spec='${libname}${release}${shared_ext}$major'
 
22687
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
22688
  shlibpath_var=LD_LIBRARY_PATH
 
22689
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
22690
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
22691
  # the default ld.so.conf also contains /usr/contrib/lib and
 
22692
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
22693
  # libtool to hard-code these into programs
 
22694
  ;;
 
22695
 
 
22696
cygwin* | mingw* | pw32*)
 
22697
  version_type=windows
 
22698
  shrext_cmds=".dll"
 
22699
  need_version=no
 
22700
  need_lib_prefix=no
 
22701
 
 
22702
  case $GCC,$host_os in
 
22703
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
22704
    library_names_spec='$libname.dll.a'
 
22705
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
22706
    postinstall_cmds='base_file=`basename \${file}`~
 
22707
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
22708
      dldir=$destdir/`dirname \$dlpath`~
 
22709
      test -d \$dldir || mkdir -p \$dldir~
 
22710
      $install_prog $dir/$dlname \$dldir/$dlname~
 
22711
      chmod a+x \$dldir/$dlname'
 
22712
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
22713
      dlpath=$dir/\$dldll~
 
22714
       $rm \$dlpath'
 
22715
    shlibpath_overrides_runpath=yes
 
22716
 
 
22717
    case $host_os in
 
22718
    cygwin*)
 
22719
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
22720
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
22721
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
22722
      ;;
 
22723
    mingw*)
 
22724
      # MinGW DLLs use traditional 'lib' prefix
 
22725
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
22726
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
22727
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
22728
        # It is most probably a Windows format PATH printed by
 
22729
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
22730
        # path with ; separators, and with drive letters. We can handle the
 
22731
        # drive letters (cygwin fileutils understands them), so leave them,
 
22732
        # especially as we might pass files found there to a mingw objdump,
 
22733
        # which wouldn't understand a cygwinified path. Ahh.
 
22734
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
22735
      else
 
22736
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
22737
      fi
 
22738
      ;;
 
22739
    pw32*)
 
22740
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
22741
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
22742
      ;;
 
22743
    esac
 
22744
    ;;
 
22745
 
 
22746
  *)
 
22747
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
22748
    ;;
 
22749
  esac
 
22750
  dynamic_linker='Win32 ld.exe'
 
22751
  # FIXME: first we should search . and the directory the executable is in
 
22752
  shlibpath_var=PATH
 
22753
  ;;
 
22754
 
 
22755
darwin* | rhapsody*)
 
22756
  dynamic_linker="$host_os dyld"
 
22757
  version_type=darwin
 
22758
  need_lib_prefix=no
 
22759
  need_version=no
 
22760
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
22761
  soname_spec='${libname}${release}${major}$shared_ext'
 
22762
  shlibpath_overrides_runpath=yes
 
22763
  shlibpath_var=DYLD_LIBRARY_PATH
 
22764
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
22765
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
22766
  if test "$GCC" = yes; then
 
22767
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
22768
  else
 
22769
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
22770
  fi
 
22771
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
22772
  ;;
 
22773
 
 
22774
dgux*)
 
22775
  version_type=linux
 
22776
  need_lib_prefix=no
 
22777
  need_version=no
 
22778
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
22779
  soname_spec='${libname}${release}${shared_ext}$major'
 
22780
  shlibpath_var=LD_LIBRARY_PATH
 
22781
  ;;
 
22782
 
 
22783
freebsd1*)
 
22784
  dynamic_linker=no
 
22785
  ;;
 
22786
 
 
22787
kfreebsd*-gnu)
 
22788
  version_type=linux
 
22789
  need_lib_prefix=no
 
22790
  need_version=no
 
22791
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
22792
  soname_spec='${libname}${release}${shared_ext}$major'
 
22793
  shlibpath_var=LD_LIBRARY_PATH
 
22794
  shlibpath_overrides_runpath=no
 
22795
  hardcode_into_libs=yes
 
22796
  dynamic_linker='GNU ld.so'
 
22797
  ;;
 
22798
 
 
22799
freebsd* | dragonfly*)
 
22800
  # DragonFly does not have aout.  When/if they implement a new
 
22801
  # versioning mechanism, adjust this.
 
22802
  if test -x /usr/bin/objformat; then
 
22803
    objformat=`/usr/bin/objformat`
 
22804
  else
 
22805
    case $host_os in
 
22806
    freebsd[123]*) objformat=aout ;;
 
22807
    *) objformat=elf ;;
 
22808
    esac
 
22809
  fi
 
22810
  version_type=freebsd-$objformat
 
22811
  case $version_type in
 
22812
    freebsd-elf*)
 
22813
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
22814
      need_version=no
 
22815
      need_lib_prefix=no
 
22816
      ;;
 
22817
    freebsd-*)
 
22818
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
22819
      need_version=yes
 
22820
      ;;
 
22821
  esac
 
22822
  shlibpath_var=LD_LIBRARY_PATH
 
22823
  case $host_os in
 
22824
  freebsd2*)
 
22825
    shlibpath_overrides_runpath=yes
 
22826
    ;;
 
22827
  freebsd3.[01]* | freebsdelf3.[01]*)
 
22828
    shlibpath_overrides_runpath=yes
 
22829
    hardcode_into_libs=yes
 
22830
    ;;
 
22831
  *) # from 3.2 on
 
22832
    shlibpath_overrides_runpath=no
 
22833
    hardcode_into_libs=yes
 
22834
    ;;
 
22835
  esac
 
22836
  ;;
 
22837
 
 
22838
gnu*)
 
22839
  version_type=linux
 
22840
  need_lib_prefix=no
 
22841
  need_version=no
 
22842
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
22843
  soname_spec='${libname}${release}${shared_ext}$major'
 
22844
  shlibpath_var=LD_LIBRARY_PATH
 
22845
  hardcode_into_libs=yes
 
22846
  ;;
 
22847
 
 
22848
hpux9* | hpux10* | hpux11*)
 
22849
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
22850
  # link against other versions.
 
22851
  version_type=sunos
 
22852
  need_lib_prefix=no
 
22853
  need_version=no
 
22854
  case $host_cpu in
 
22855
  ia64*)
 
22856
    shrext_cmds='.so'
 
22857
    hardcode_into_libs=yes
 
22858
    dynamic_linker="$host_os dld.so"
 
22859
    shlibpath_var=LD_LIBRARY_PATH
 
22860
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
22861
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22862
    soname_spec='${libname}${release}${shared_ext}$major'
 
22863
    if test "X$HPUX_IA64_MODE" = X32; then
 
22864
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
22865
    else
 
22866
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
22867
    fi
 
22868
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
22869
    ;;
 
22870
   hppa*64*)
 
22871
     shrext_cmds='.sl'
 
22872
     hardcode_into_libs=yes
 
22873
     dynamic_linker="$host_os dld.sl"
 
22874
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
22875
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
22876
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22877
     soname_spec='${libname}${release}${shared_ext}$major'
 
22878
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
22879
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
22880
     ;;
 
22881
   *)
 
22882
    shrext_cmds='.sl'
 
22883
    dynamic_linker="$host_os dld.sl"
 
22884
    shlibpath_var=SHLIB_PATH
 
22885
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
22886
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22887
    soname_spec='${libname}${release}${shared_ext}$major'
 
22888
    ;;
 
22889
  esac
 
22890
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
22891
  postinstall_cmds='chmod 555 $lib'
 
22892
  ;;
 
22893
 
 
22894
irix5* | irix6* | nonstopux*)
 
22895
  case $host_os in
 
22896
    nonstopux*) version_type=nonstopux ;;
 
22897
    *)
 
22898
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
22899
                version_type=linux
 
22900
        else
 
22901
                version_type=irix
 
22902
        fi ;;
 
22903
  esac
 
22904
  need_lib_prefix=no
 
22905
  need_version=no
 
22906
  soname_spec='${libname}${release}${shared_ext}$major'
 
22907
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
22908
  case $host_os in
 
22909
  irix5* | nonstopux*)
 
22910
    libsuff= shlibsuff=
 
22911
    ;;
 
22912
  *)
 
22913
    case $LD in # libtool.m4 will add one of these switches to LD
 
22914
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
22915
      libsuff= shlibsuff= libmagic=32-bit;;
 
22916
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
22917
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
22918
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
22919
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
22920
    *) libsuff= shlibsuff= libmagic=never-match;;
 
22921
    esac
 
22922
    ;;
 
22923
  esac
 
22924
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
22925
  shlibpath_overrides_runpath=no
 
22926
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
22927
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
22928
  hardcode_into_libs=yes
 
22929
  ;;
 
22930
 
 
22931
# No shared lib support for Linux oldld, aout, or coff.
 
22932
linux*oldld* | linux*aout* | linux*coff*)
 
22933
  dynamic_linker=no
 
22934
  ;;
 
22935
 
 
22936
# This must be Linux ELF.
 
22937
linux*)
 
22938
  version_type=linux
 
22939
  need_lib_prefix=no
 
22940
  need_version=no
 
22941
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22942
  soname_spec='${libname}${release}${shared_ext}$major'
 
22943
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
22944
  shlibpath_var=LD_LIBRARY_PATH
 
22945
  shlibpath_overrides_runpath=no
 
22946
  # This implies no fast_install, which is unacceptable.
 
22947
  # Some rework will be needed to allow for fast_install
 
22948
  # before this can be enabled.
 
22949
  hardcode_into_libs=yes
 
22950
 
 
22951
  # Append ld.so.conf contents to the search path
 
22952
  if test -f /etc/ld.so.conf; then
 
22953
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
22954
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
22955
  fi
 
22956
 
 
22957
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
22958
  # powerpc, because MkLinux only supported shared libraries with the
 
22959
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
22960
  # most powerpc-linux boxes support dynamic linking these days and
 
22961
  # people can always --disable-shared, the test was removed, and we
 
22962
  # assume the GNU/Linux dynamic linker is in use.
 
22963
  dynamic_linker='GNU/Linux ld.so'
 
22964
  ;;
 
22965
 
 
22966
knetbsd*-gnu)
 
22967
  version_type=linux
 
22968
  need_lib_prefix=no
 
22969
  need_version=no
 
22970
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
22971
  soname_spec='${libname}${release}${shared_ext}$major'
 
22972
  shlibpath_var=LD_LIBRARY_PATH
 
22973
  shlibpath_overrides_runpath=no
 
22974
  hardcode_into_libs=yes
 
22975
  dynamic_linker='GNU ld.so'
 
22976
  ;;
 
22977
 
 
22978
netbsd*)
 
22979
  version_type=sunos
 
22980
  need_lib_prefix=no
 
22981
  need_version=no
 
22982
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
22983
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
22984
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
22985
    dynamic_linker='NetBSD (a.out) ld.so'
 
22986
  else
 
22987
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
22988
    soname_spec='${libname}${release}${shared_ext}$major'
 
22989
    dynamic_linker='NetBSD ld.elf_so'
 
22990
  fi
 
22991
  shlibpath_var=LD_LIBRARY_PATH
 
22992
  shlibpath_overrides_runpath=yes
 
22993
  hardcode_into_libs=yes
 
22994
  ;;
 
22995
 
 
22996
newsos6)
 
22997
  version_type=linux
 
22998
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22999
  shlibpath_var=LD_LIBRARY_PATH
 
23000
  shlibpath_overrides_runpath=yes
 
23001
  ;;
 
23002
 
 
23003
nto-qnx*)
 
23004
  version_type=linux
 
23005
  need_lib_prefix=no
 
23006
  need_version=no
 
23007
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
23008
  soname_spec='${libname}${release}${shared_ext}$major'
 
23009
  shlibpath_var=LD_LIBRARY_PATH
 
23010
  shlibpath_overrides_runpath=yes
 
23011
  ;;
 
23012
 
 
23013
openbsd*)
 
23014
  version_type=sunos
 
23015
  need_lib_prefix=no
 
23016
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
23017
  case $host_os in
 
23018
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
23019
    *)                         need_version=no  ;;
 
23020
  esac
 
23021
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
23022
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
23023
  shlibpath_var=LD_LIBRARY_PATH
 
23024
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
23025
    case $host_os in
 
23026
      openbsd2.[89] | openbsd2.[89].*)
 
23027
        shlibpath_overrides_runpath=no
 
23028
        ;;
 
23029
      *)
 
23030
        shlibpath_overrides_runpath=yes
 
23031
        ;;
 
23032
      esac
 
23033
  else
 
23034
    shlibpath_overrides_runpath=yes
 
23035
  fi
 
23036
  ;;
 
23037
 
 
23038
os2*)
 
23039
  libname_spec='$name'
 
23040
  shrext_cmds=".dll"
 
23041
  need_lib_prefix=no
 
23042
  library_names_spec='$libname${shared_ext} $libname.a'
 
23043
  dynamic_linker='OS/2 ld.exe'
 
23044
  shlibpath_var=LIBPATH
 
23045
  ;;
 
23046
 
 
23047
osf3* | osf4* | osf5*)
 
23048
  version_type=osf
 
23049
  need_lib_prefix=no
 
23050
  need_version=no
 
23051
  soname_spec='${libname}${release}${shared_ext}$major'
 
23052
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
23053
  shlibpath_var=LD_LIBRARY_PATH
 
23054
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
23055
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
23056
  ;;
 
23057
 
 
23058
sco3.2v5*)
 
23059
  version_type=osf
 
23060
  soname_spec='${libname}${release}${shared_ext}$major'
 
23061
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
23062
  shlibpath_var=LD_LIBRARY_PATH
 
23063
  ;;
 
23064
 
 
23065
solaris*)
 
23066
  version_type=linux
 
23067
  need_lib_prefix=no
 
23068
  need_version=no
 
23069
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
23070
  soname_spec='${libname}${release}${shared_ext}$major'
 
23071
  shlibpath_var=LD_LIBRARY_PATH
 
23072
  shlibpath_overrides_runpath=yes
 
23073
  hardcode_into_libs=yes
 
23074
  # ldd complains unless libraries are executable
 
23075
  postinstall_cmds='chmod +x $lib'
 
23076
  ;;
 
23077
 
 
23078
sunos4*)
 
23079
  version_type=sunos
 
23080
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
23081
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
23082
  shlibpath_var=LD_LIBRARY_PATH
 
23083
  shlibpath_overrides_runpath=yes
 
23084
  if test "$with_gnu_ld" = yes; then
 
23085
    need_lib_prefix=no
 
23086
  fi
 
23087
  need_version=yes
 
23088
  ;;
 
23089
 
 
23090
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
23091
  version_type=linux
 
23092
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
23093
  soname_spec='${libname}${release}${shared_ext}$major'
 
23094
  shlibpath_var=LD_LIBRARY_PATH
 
23095
  case $host_vendor in
 
23096
    sni)
 
23097
      shlibpath_overrides_runpath=no
 
23098
      need_lib_prefix=no
 
23099
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
23100
      runpath_var=LD_RUN_PATH
 
23101
      ;;
 
23102
    siemens)
 
23103
      need_lib_prefix=no
 
23104
      ;;
 
23105
    motorola)
 
23106
      need_lib_prefix=no
 
23107
      need_version=no
 
23108
      shlibpath_overrides_runpath=no
 
23109
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
23110
      ;;
 
23111
  esac
 
23112
  ;;
 
23113
 
 
23114
sysv4*MP*)
 
23115
  if test -d /usr/nec ;then
 
23116
    version_type=linux
 
23117
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
23118
    soname_spec='$libname${shared_ext}.$major'
 
23119
    shlibpath_var=LD_LIBRARY_PATH
 
23120
  fi
 
23121
  ;;
 
23122
 
 
23123
uts4*)
 
23124
  version_type=linux
 
23125
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
23126
  soname_spec='${libname}${release}${shared_ext}$major'
 
23127
  shlibpath_var=LD_LIBRARY_PATH
 
23128
  ;;
 
23129
 
 
23130
*)
 
23131
  dynamic_linker=no
 
23132
  ;;
 
23133
esac
 
23134
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
23135
echo "${ECHO_T}$dynamic_linker" >&6
 
23136
test "$dynamic_linker" = no && can_build_shared=no
 
23137
 
 
23138
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
23139
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
23140
hardcode_action_CXX=
 
23141
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
23142
   test -n "$runpath_var_CXX" || \
 
23143
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
23144
 
 
23145
  # We can hardcode non-existant directories.
 
23146
  if test "$hardcode_direct_CXX" != no &&
 
23147
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
23148
     # have to relink, otherwise we might link with an installed library
 
23149
     # when we should be linking with a yet-to-be-installed one
 
23150
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
23151
     test "$hardcode_minus_L_CXX" != no; then
 
23152
    # Linking always hardcodes the temporary library directory.
 
23153
    hardcode_action_CXX=relink
 
23154
  else
 
23155
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
23156
    hardcode_action_CXX=immediate
 
23157
  fi
 
23158
else
 
23159
  # We cannot hardcode anything, or else we can only hardcode existing
 
23160
  # directories.
 
23161
  hardcode_action_CXX=unsupported
 
23162
fi
 
23163
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
23164
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
23165
 
 
23166
if test "$hardcode_action_CXX" = relink; then
 
23167
  # Fast installation is not supported
 
23168
  enable_fast_install=no
 
23169
elif test "$shlibpath_overrides_runpath" = yes ||
 
23170
     test "$enable_shared" = no; then
 
23171
  # Fast installation is not necessary
 
23172
  enable_fast_install=needless
 
23173
fi
 
23174
 
 
23175
striplib=
 
23176
old_striplib=
 
23177
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
23178
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
23179
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
23180
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
23181
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
23182
  echo "$as_me:$LINENO: result: yes" >&5
 
23183
echo "${ECHO_T}yes" >&6
 
23184
else
 
23185
# FIXME - insert some real tests, host_os isn't really good enough
 
23186
  case $host_os in
 
23187
   darwin*)
 
23188
       if test -n "$STRIP" ; then
 
23189
         striplib="$STRIP -x"
 
23190
         echo "$as_me:$LINENO: result: yes" >&5
 
23191
echo "${ECHO_T}yes" >&6
 
23192
       else
 
23193
  echo "$as_me:$LINENO: result: no" >&5
 
23194
echo "${ECHO_T}no" >&6
 
23195
fi
 
23196
       ;;
 
23197
   *)
 
23198
  echo "$as_me:$LINENO: result: no" >&5
 
23199
echo "${ECHO_T}no" >&6
 
23200
    ;;
 
23201
  esac
 
23202
fi
 
23203
 
 
23204
if test "x$enable_dlopen" != xyes; then
 
23205
  enable_dlopen=unknown
 
23206
  enable_dlopen_self=unknown
 
23207
  enable_dlopen_self_static=unknown
 
23208
else
 
23209
  lt_cv_dlopen=no
 
23210
  lt_cv_dlopen_libs=
 
23211
 
 
23212
  case $host_os in
 
23213
  beos*)
 
23214
    lt_cv_dlopen="load_add_on"
 
23215
    lt_cv_dlopen_libs=
 
23216
    lt_cv_dlopen_self=yes
 
23217
    ;;
 
23218
 
 
23219
  mingw* | pw32*)
 
23220
    lt_cv_dlopen="LoadLibrary"
 
23221
    lt_cv_dlopen_libs=
 
23222
   ;;
 
23223
 
 
23224
  cygwin*)
 
23225
    lt_cv_dlopen="dlopen"
 
23226
    lt_cv_dlopen_libs=
 
23227
   ;;
 
23228
 
 
23229
  darwin*)
 
23230
  # if libdl is installed we need to link against it
 
23231
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
23232
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
23233
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
23234
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23235
else
 
23236
  ac_check_lib_save_LIBS=$LIBS
 
23237
LIBS="-ldl  $LIBS"
 
23238
cat >conftest.$ac_ext <<_ACEOF
 
23239
/* confdefs.h.  */
 
23240
_ACEOF
 
23241
cat confdefs.h >>conftest.$ac_ext
 
23242
cat >>conftest.$ac_ext <<_ACEOF
 
23243
/* end confdefs.h.  */
 
23244
 
 
23245
/* Override any gcc2 internal prototype to avoid an error.  */
 
23246
#ifdef __cplusplus
 
23247
extern "C"
 
23248
#endif
 
23249
/* We use char because int might match the return type of a gcc2
 
23250
   builtin and then its argument prototype would still apply.  */
 
23251
char dlopen ();
 
23252
int
 
23253
main ()
 
23254
{
 
23255
dlopen ();
 
23256
  ;
 
23257
  return 0;
 
23258
}
 
23259
_ACEOF
 
23260
rm -f conftest.$ac_objext conftest$ac_exeext
 
23261
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23262
  (eval $ac_link) 2>conftest.er1
 
23263
  ac_status=$?
 
23264
  grep -v '^ *+' conftest.er1 >conftest.err
 
23265
  rm -f conftest.er1
 
23266
  cat conftest.err >&5
 
23267
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23268
  (exit $ac_status); } &&
 
23269
         { ac_try='test -z "$ac_cxx_werror_flag"
 
23270
                         || test ! -s conftest.err'
 
23271
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23272
  (eval $ac_try) 2>&5
 
23273
  ac_status=$?
 
23274
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23275
  (exit $ac_status); }; } &&
 
23276
         { ac_try='test -s conftest$ac_exeext'
 
23277
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23278
  (eval $ac_try) 2>&5
 
23279
  ac_status=$?
 
23280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23281
  (exit $ac_status); }; }; then
 
23282
  ac_cv_lib_dl_dlopen=yes
 
23283
else
 
23284
  echo "$as_me: failed program was:" >&5
 
23285
sed 's/^/| /' conftest.$ac_ext >&5
 
23286
 
 
23287
ac_cv_lib_dl_dlopen=no
 
23288
fi
 
23289
rm -f conftest.err conftest.$ac_objext \
 
23290
      conftest$ac_exeext conftest.$ac_ext
 
23291
LIBS=$ac_check_lib_save_LIBS
 
23292
fi
 
23293
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
23294
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
23295
if test $ac_cv_lib_dl_dlopen = yes; then
 
23296
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
23297
else
 
23298
 
 
23299
    lt_cv_dlopen="dyld"
 
23300
    lt_cv_dlopen_libs=
 
23301
    lt_cv_dlopen_self=yes
 
23302
 
 
23303
fi
 
23304
 
 
23305
   ;;
 
23306
 
 
23307
  *)
 
23308
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
23309
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
23310
if test "${ac_cv_func_shl_load+set}" = set; then
 
23311
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23312
else
 
23313
  cat >conftest.$ac_ext <<_ACEOF
 
23314
/* confdefs.h.  */
 
23315
_ACEOF
 
23316
cat confdefs.h >>conftest.$ac_ext
 
23317
cat >>conftest.$ac_ext <<_ACEOF
 
23318
/* end confdefs.h.  */
 
23319
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
23320
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23321
#define shl_load innocuous_shl_load
 
23322
 
 
23323
/* System header to define __stub macros and hopefully few prototypes,
 
23324
    which can conflict with char shl_load (); below.
 
23325
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23326
    <limits.h> exists even on freestanding compilers.  */
 
23327
 
 
23328
#ifdef __STDC__
 
23329
# include <limits.h>
 
23330
#else
 
23331
# include <assert.h>
 
23332
#endif
 
23333
 
 
23334
#undef shl_load
 
23335
 
 
23336
/* Override any gcc2 internal prototype to avoid an error.  */
 
23337
#ifdef __cplusplus
 
23338
extern "C"
 
23339
{
 
23340
#endif
 
23341
/* We use char because int might match the return type of a gcc2
 
23342
   builtin and then its argument prototype would still apply.  */
 
23343
char shl_load ();
 
23344
/* The GNU C library defines this for functions which it implements
 
23345
    to always fail with ENOSYS.  Some functions are actually named
 
23346
    something starting with __ and the normal name is an alias.  */
 
23347
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
23348
choke me
 
23349
#else
 
23350
char (*f) () = shl_load;
 
23351
#endif
 
23352
#ifdef __cplusplus
 
23353
}
 
23354
#endif
 
23355
 
 
23356
int
 
23357
main ()
 
23358
{
 
23359
return f != shl_load;
 
23360
  ;
 
23361
  return 0;
 
23362
}
 
23363
_ACEOF
 
23364
rm -f conftest.$ac_objext conftest$ac_exeext
 
23365
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23366
  (eval $ac_link) 2>conftest.er1
 
23367
  ac_status=$?
 
23368
  grep -v '^ *+' conftest.er1 >conftest.err
 
23369
  rm -f conftest.er1
 
23370
  cat conftest.err >&5
 
23371
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23372
  (exit $ac_status); } &&
 
23373
         { ac_try='test -z "$ac_cxx_werror_flag"
 
23374
                         || test ! -s conftest.err'
 
23375
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23376
  (eval $ac_try) 2>&5
 
23377
  ac_status=$?
 
23378
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23379
  (exit $ac_status); }; } &&
 
23380
         { ac_try='test -s conftest$ac_exeext'
 
23381
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23382
  (eval $ac_try) 2>&5
 
23383
  ac_status=$?
 
23384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23385
  (exit $ac_status); }; }; then
 
23386
  ac_cv_func_shl_load=yes
 
23387
else
 
23388
  echo "$as_me: failed program was:" >&5
 
23389
sed 's/^/| /' conftest.$ac_ext >&5
 
23390
 
 
23391
ac_cv_func_shl_load=no
 
23392
fi
 
23393
rm -f conftest.err conftest.$ac_objext \
 
23394
      conftest$ac_exeext conftest.$ac_ext
 
23395
fi
 
23396
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
23397
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
23398
if test $ac_cv_func_shl_load = yes; then
 
23399
  lt_cv_dlopen="shl_load"
 
23400
else
 
23401
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
23402
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
23403
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
23404
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23405
else
 
23406
  ac_check_lib_save_LIBS=$LIBS
 
23407
LIBS="-ldld  $LIBS"
 
23408
cat >conftest.$ac_ext <<_ACEOF
 
23409
/* confdefs.h.  */
 
23410
_ACEOF
 
23411
cat confdefs.h >>conftest.$ac_ext
 
23412
cat >>conftest.$ac_ext <<_ACEOF
 
23413
/* end confdefs.h.  */
 
23414
 
 
23415
/* Override any gcc2 internal prototype to avoid an error.  */
 
23416
#ifdef __cplusplus
 
23417
extern "C"
 
23418
#endif
 
23419
/* We use char because int might match the return type of a gcc2
 
23420
   builtin and then its argument prototype would still apply.  */
 
23421
char shl_load ();
 
23422
int
 
23423
main ()
 
23424
{
 
23425
shl_load ();
 
23426
  ;
 
23427
  return 0;
 
23428
}
 
23429
_ACEOF
 
23430
rm -f conftest.$ac_objext conftest$ac_exeext
 
23431
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23432
  (eval $ac_link) 2>conftest.er1
 
23433
  ac_status=$?
 
23434
  grep -v '^ *+' conftest.er1 >conftest.err
 
23435
  rm -f conftest.er1
 
23436
  cat conftest.err >&5
 
23437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23438
  (exit $ac_status); } &&
 
23439
         { ac_try='test -z "$ac_cxx_werror_flag"
 
23440
                         || test ! -s conftest.err'
 
23441
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23442
  (eval $ac_try) 2>&5
 
23443
  ac_status=$?
 
23444
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23445
  (exit $ac_status); }; } &&
 
23446
         { ac_try='test -s conftest$ac_exeext'
 
23447
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23448
  (eval $ac_try) 2>&5
 
23449
  ac_status=$?
 
23450
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23451
  (exit $ac_status); }; }; then
 
23452
  ac_cv_lib_dld_shl_load=yes
 
23453
else
 
23454
  echo "$as_me: failed program was:" >&5
 
23455
sed 's/^/| /' conftest.$ac_ext >&5
 
23456
 
 
23457
ac_cv_lib_dld_shl_load=no
 
23458
fi
 
23459
rm -f conftest.err conftest.$ac_objext \
 
23460
      conftest$ac_exeext conftest.$ac_ext
 
23461
LIBS=$ac_check_lib_save_LIBS
 
23462
fi
 
23463
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
23464
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
23465
if test $ac_cv_lib_dld_shl_load = yes; then
 
23466
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
23467
else
 
23468
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
23469
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
23470
if test "${ac_cv_func_dlopen+set}" = set; then
 
23471
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23472
else
 
23473
  cat >conftest.$ac_ext <<_ACEOF
 
23474
/* confdefs.h.  */
 
23475
_ACEOF
 
23476
cat confdefs.h >>conftest.$ac_ext
 
23477
cat >>conftest.$ac_ext <<_ACEOF
 
23478
/* end confdefs.h.  */
 
23479
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
23480
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23481
#define dlopen innocuous_dlopen
 
23482
 
 
23483
/* System header to define __stub macros and hopefully few prototypes,
 
23484
    which can conflict with char dlopen (); below.
 
23485
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23486
    <limits.h> exists even on freestanding compilers.  */
 
23487
 
 
23488
#ifdef __STDC__
 
23489
# include <limits.h>
 
23490
#else
 
23491
# include <assert.h>
 
23492
#endif
 
23493
 
 
23494
#undef dlopen
 
23495
 
 
23496
/* Override any gcc2 internal prototype to avoid an error.  */
 
23497
#ifdef __cplusplus
 
23498
extern "C"
 
23499
{
 
23500
#endif
 
23501
/* We use char because int might match the return type of a gcc2
 
23502
   builtin and then its argument prototype would still apply.  */
 
23503
char dlopen ();
 
23504
/* The GNU C library defines this for functions which it implements
 
23505
    to always fail with ENOSYS.  Some functions are actually named
 
23506
    something starting with __ and the normal name is an alias.  */
 
23507
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
23508
choke me
 
23509
#else
 
23510
char (*f) () = dlopen;
 
23511
#endif
 
23512
#ifdef __cplusplus
 
23513
}
 
23514
#endif
 
23515
 
 
23516
int
 
23517
main ()
 
23518
{
 
23519
return f != dlopen;
 
23520
  ;
 
23521
  return 0;
 
23522
}
 
23523
_ACEOF
 
23524
rm -f conftest.$ac_objext conftest$ac_exeext
 
23525
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23526
  (eval $ac_link) 2>conftest.er1
 
23527
  ac_status=$?
 
23528
  grep -v '^ *+' conftest.er1 >conftest.err
 
23529
  rm -f conftest.er1
 
23530
  cat conftest.err >&5
 
23531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23532
  (exit $ac_status); } &&
 
23533
         { ac_try='test -z "$ac_cxx_werror_flag"
 
23534
                         || test ! -s conftest.err'
 
23535
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23536
  (eval $ac_try) 2>&5
 
23537
  ac_status=$?
 
23538
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23539
  (exit $ac_status); }; } &&
 
23540
         { ac_try='test -s conftest$ac_exeext'
 
23541
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23542
  (eval $ac_try) 2>&5
 
23543
  ac_status=$?
 
23544
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23545
  (exit $ac_status); }; }; then
 
23546
  ac_cv_func_dlopen=yes
 
23547
else
 
23548
  echo "$as_me: failed program was:" >&5
 
23549
sed 's/^/| /' conftest.$ac_ext >&5
 
23550
 
 
23551
ac_cv_func_dlopen=no
 
23552
fi
 
23553
rm -f conftest.err conftest.$ac_objext \
 
23554
      conftest$ac_exeext conftest.$ac_ext
 
23555
fi
 
23556
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
23557
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
23558
if test $ac_cv_func_dlopen = yes; then
 
23559
  lt_cv_dlopen="dlopen"
 
23560
else
 
23561
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
23562
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
23563
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
23564
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23565
else
 
23566
  ac_check_lib_save_LIBS=$LIBS
 
23567
LIBS="-ldl  $LIBS"
 
23568
cat >conftest.$ac_ext <<_ACEOF
 
23569
/* confdefs.h.  */
 
23570
_ACEOF
 
23571
cat confdefs.h >>conftest.$ac_ext
 
23572
cat >>conftest.$ac_ext <<_ACEOF
 
23573
/* end confdefs.h.  */
 
23574
 
 
23575
/* Override any gcc2 internal prototype to avoid an error.  */
 
23576
#ifdef __cplusplus
 
23577
extern "C"
 
23578
#endif
 
23579
/* We use char because int might match the return type of a gcc2
 
23580
   builtin and then its argument prototype would still apply.  */
 
23581
char dlopen ();
 
23582
int
 
23583
main ()
 
23584
{
 
23585
dlopen ();
 
23586
  ;
 
23587
  return 0;
 
23588
}
 
23589
_ACEOF
 
23590
rm -f conftest.$ac_objext conftest$ac_exeext
 
23591
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23592
  (eval $ac_link) 2>conftest.er1
 
23593
  ac_status=$?
 
23594
  grep -v '^ *+' conftest.er1 >conftest.err
 
23595
  rm -f conftest.er1
 
23596
  cat conftest.err >&5
 
23597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23598
  (exit $ac_status); } &&
 
23599
         { ac_try='test -z "$ac_cxx_werror_flag"
 
23600
                         || test ! -s conftest.err'
 
23601
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23602
  (eval $ac_try) 2>&5
 
23603
  ac_status=$?
 
23604
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23605
  (exit $ac_status); }; } &&
 
23606
         { ac_try='test -s conftest$ac_exeext'
 
23607
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23608
  (eval $ac_try) 2>&5
 
23609
  ac_status=$?
 
23610
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23611
  (exit $ac_status); }; }; then
 
23612
  ac_cv_lib_dl_dlopen=yes
 
23613
else
 
23614
  echo "$as_me: failed program was:" >&5
 
23615
sed 's/^/| /' conftest.$ac_ext >&5
 
23616
 
 
23617
ac_cv_lib_dl_dlopen=no
 
23618
fi
 
23619
rm -f conftest.err conftest.$ac_objext \
 
23620
      conftest$ac_exeext conftest.$ac_ext
 
23621
LIBS=$ac_check_lib_save_LIBS
 
23622
fi
 
23623
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
23624
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
23625
if test $ac_cv_lib_dl_dlopen = yes; then
 
23626
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
23627
else
 
23628
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
23629
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
23630
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
23631
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23632
else
 
23633
  ac_check_lib_save_LIBS=$LIBS
 
23634
LIBS="-lsvld  $LIBS"
 
23635
cat >conftest.$ac_ext <<_ACEOF
 
23636
/* confdefs.h.  */
 
23637
_ACEOF
 
23638
cat confdefs.h >>conftest.$ac_ext
 
23639
cat >>conftest.$ac_ext <<_ACEOF
 
23640
/* end confdefs.h.  */
 
23641
 
 
23642
/* Override any gcc2 internal prototype to avoid an error.  */
 
23643
#ifdef __cplusplus
 
23644
extern "C"
 
23645
#endif
 
23646
/* We use char because int might match the return type of a gcc2
 
23647
   builtin and then its argument prototype would still apply.  */
 
23648
char dlopen ();
 
23649
int
 
23650
main ()
 
23651
{
 
23652
dlopen ();
 
23653
  ;
 
23654
  return 0;
 
23655
}
 
23656
_ACEOF
 
23657
rm -f conftest.$ac_objext conftest$ac_exeext
 
23658
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23659
  (eval $ac_link) 2>conftest.er1
 
23660
  ac_status=$?
 
23661
  grep -v '^ *+' conftest.er1 >conftest.err
 
23662
  rm -f conftest.er1
 
23663
  cat conftest.err >&5
 
23664
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23665
  (exit $ac_status); } &&
 
23666
         { ac_try='test -z "$ac_cxx_werror_flag"
 
23667
                         || test ! -s conftest.err'
 
23668
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23669
  (eval $ac_try) 2>&5
 
23670
  ac_status=$?
 
23671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23672
  (exit $ac_status); }; } &&
 
23673
         { ac_try='test -s conftest$ac_exeext'
 
23674
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23675
  (eval $ac_try) 2>&5
 
23676
  ac_status=$?
 
23677
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23678
  (exit $ac_status); }; }; then
 
23679
  ac_cv_lib_svld_dlopen=yes
 
23680
else
 
23681
  echo "$as_me: failed program was:" >&5
 
23682
sed 's/^/| /' conftest.$ac_ext >&5
 
23683
 
 
23684
ac_cv_lib_svld_dlopen=no
 
23685
fi
 
23686
rm -f conftest.err conftest.$ac_objext \
 
23687
      conftest$ac_exeext conftest.$ac_ext
 
23688
LIBS=$ac_check_lib_save_LIBS
 
23689
fi
 
23690
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
23691
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
23692
if test $ac_cv_lib_svld_dlopen = yes; then
 
23693
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
23694
else
 
23695
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
23696
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
23697
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
23698
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23699
else
 
23700
  ac_check_lib_save_LIBS=$LIBS
 
23701
LIBS="-ldld  $LIBS"
 
23702
cat >conftest.$ac_ext <<_ACEOF
 
23703
/* confdefs.h.  */
 
23704
_ACEOF
 
23705
cat confdefs.h >>conftest.$ac_ext
 
23706
cat >>conftest.$ac_ext <<_ACEOF
 
23707
/* end confdefs.h.  */
 
23708
 
 
23709
/* Override any gcc2 internal prototype to avoid an error.  */
 
23710
#ifdef __cplusplus
 
23711
extern "C"
 
23712
#endif
 
23713
/* We use char because int might match the return type of a gcc2
 
23714
   builtin and then its argument prototype would still apply.  */
 
23715
char dld_link ();
 
23716
int
 
23717
main ()
 
23718
{
 
23719
dld_link ();
 
23720
  ;
 
23721
  return 0;
 
23722
}
 
23723
_ACEOF
 
23724
rm -f conftest.$ac_objext conftest$ac_exeext
 
23725
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23726
  (eval $ac_link) 2>conftest.er1
 
23727
  ac_status=$?
 
23728
  grep -v '^ *+' conftest.er1 >conftest.err
 
23729
  rm -f conftest.er1
 
23730
  cat conftest.err >&5
 
23731
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23732
  (exit $ac_status); } &&
 
23733
         { ac_try='test -z "$ac_cxx_werror_flag"
 
23734
                         || test ! -s conftest.err'
 
23735
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23736
  (eval $ac_try) 2>&5
 
23737
  ac_status=$?
 
23738
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23739
  (exit $ac_status); }; } &&
 
23740
         { ac_try='test -s conftest$ac_exeext'
 
23741
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23742
  (eval $ac_try) 2>&5
 
23743
  ac_status=$?
 
23744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23745
  (exit $ac_status); }; }; then
 
23746
  ac_cv_lib_dld_dld_link=yes
 
23747
else
 
23748
  echo "$as_me: failed program was:" >&5
 
23749
sed 's/^/| /' conftest.$ac_ext >&5
 
23750
 
 
23751
ac_cv_lib_dld_dld_link=no
 
23752
fi
 
23753
rm -f conftest.err conftest.$ac_objext \
 
23754
      conftest$ac_exeext conftest.$ac_ext
 
23755
LIBS=$ac_check_lib_save_LIBS
 
23756
fi
 
23757
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
23758
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
23759
if test $ac_cv_lib_dld_dld_link = yes; then
 
23760
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
23761
fi
 
23762
 
 
23763
 
 
23764
fi
 
23765
 
 
23766
 
 
23767
fi
 
23768
 
 
23769
 
 
23770
fi
 
23771
 
 
23772
 
 
23773
fi
 
23774
 
 
23775
 
 
23776
fi
 
23777
 
 
23778
    ;;
 
23779
  esac
 
23780
 
 
23781
  if test "x$lt_cv_dlopen" != xno; then
 
23782
    enable_dlopen=yes
 
23783
  else
 
23784
    enable_dlopen=no
 
23785
  fi
 
23786
 
 
23787
  case $lt_cv_dlopen in
 
23788
  dlopen)
 
23789
    save_CPPFLAGS="$CPPFLAGS"
 
23790
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
23791
 
 
23792
    save_LDFLAGS="$LDFLAGS"
 
23793
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
23794
 
 
23795
    save_LIBS="$LIBS"
 
23796
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
23797
 
 
23798
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
23799
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
23800
if test "${lt_cv_dlopen_self+set}" = set; then
 
23801
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23802
else
 
23803
          if test "$cross_compiling" = yes; then :
 
23804
  lt_cv_dlopen_self=cross
 
23805
else
 
23806
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
23807
  lt_status=$lt_dlunknown
 
23808
  cat > conftest.$ac_ext <<EOF
 
23809
#line 23809 "configure"
 
23810
#include "confdefs.h"
 
23811
 
 
23812
#if HAVE_DLFCN_H
 
23813
#include <dlfcn.h>
 
23814
#endif
 
23815
 
 
23816
#include <stdio.h>
 
23817
 
 
23818
#ifdef RTLD_GLOBAL
 
23819
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
23820
#else
 
23821
#  ifdef DL_GLOBAL
 
23822
#    define LT_DLGLOBAL         DL_GLOBAL
 
23823
#  else
 
23824
#    define LT_DLGLOBAL         0
 
23825
#  endif
 
23826
#endif
 
23827
 
 
23828
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
23829
   find out it does not work in some platform. */
 
23830
#ifndef LT_DLLAZY_OR_NOW
 
23831
#  ifdef RTLD_LAZY
 
23832
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
23833
#  else
 
23834
#    ifdef DL_LAZY
 
23835
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
23836
#    else
 
23837
#      ifdef RTLD_NOW
 
23838
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
23839
#      else
 
23840
#        ifdef DL_NOW
 
23841
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
23842
#        else
 
23843
#          define LT_DLLAZY_OR_NOW      0
 
23844
#        endif
 
23845
#      endif
 
23846
#    endif
 
23847
#  endif
 
23848
#endif
 
23849
 
 
23850
#ifdef __cplusplus
 
23851
extern "C" void exit (int);
 
23852
#endif
 
23853
 
 
23854
void fnord() { int i=42;}
 
23855
int main ()
 
23856
{
 
23857
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
23858
  int status = $lt_dlunknown;
 
23859
 
 
23860
  if (self)
 
23861
    {
 
23862
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
23863
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
23864
      /* dlclose (self); */
 
23865
    }
 
23866
 
 
23867
    exit (status);
 
23868
}
 
23869
EOF
 
23870
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23871
  (eval $ac_link) 2>&5
 
23872
  ac_status=$?
 
23873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23874
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
23875
    (./conftest; exit; ) >&5 2>/dev/null
 
23876
    lt_status=$?
 
23877
    case x$lt_status in
 
23878
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
23879
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
23880
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
23881
    esac
 
23882
  else :
 
23883
    # compilation failed
 
23884
    lt_cv_dlopen_self=no
 
23885
  fi
 
23886
fi
 
23887
rm -fr conftest*
 
23888
 
 
23889
 
 
23890
fi
 
23891
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
23892
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
23893
 
 
23894
    if test "x$lt_cv_dlopen_self" = xyes; then
 
23895
      LDFLAGS="$LDFLAGS $link_static_flag"
 
23896
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
23897
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
23898
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
23899
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23900
else
 
23901
          if test "$cross_compiling" = yes; then :
 
23902
  lt_cv_dlopen_self_static=cross
 
23903
else
 
23904
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
23905
  lt_status=$lt_dlunknown
 
23906
  cat > conftest.$ac_ext <<EOF
 
23907
#line 23907 "configure"
 
23908
#include "confdefs.h"
 
23909
 
 
23910
#if HAVE_DLFCN_H
 
23911
#include <dlfcn.h>
 
23912
#endif
 
23913
 
 
23914
#include <stdio.h>
 
23915
 
 
23916
#ifdef RTLD_GLOBAL
 
23917
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
23918
#else
 
23919
#  ifdef DL_GLOBAL
 
23920
#    define LT_DLGLOBAL         DL_GLOBAL
 
23921
#  else
 
23922
#    define LT_DLGLOBAL         0
 
23923
#  endif
 
23924
#endif
 
23925
 
 
23926
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
23927
   find out it does not work in some platform. */
 
23928
#ifndef LT_DLLAZY_OR_NOW
 
23929
#  ifdef RTLD_LAZY
 
23930
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
23931
#  else
 
23932
#    ifdef DL_LAZY
 
23933
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
23934
#    else
 
23935
#      ifdef RTLD_NOW
 
23936
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
23937
#      else
 
23938
#        ifdef DL_NOW
 
23939
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
23940
#        else
 
23941
#          define LT_DLLAZY_OR_NOW      0
 
23942
#        endif
 
23943
#      endif
 
23944
#    endif
 
23945
#  endif
 
23946
#endif
 
23947
 
 
23948
#ifdef __cplusplus
 
23949
extern "C" void exit (int);
 
23950
#endif
 
23951
 
 
23952
void fnord() { int i=42;}
 
23953
int main ()
 
23954
{
 
23955
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
23956
  int status = $lt_dlunknown;
 
23957
 
 
23958
  if (self)
 
23959
    {
 
23960
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
23961
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
23962
      /* dlclose (self); */
 
23963
    }
 
23964
 
 
23965
    exit (status);
 
23966
}
 
23967
EOF
 
23968
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23969
  (eval $ac_link) 2>&5
 
23970
  ac_status=$?
 
23971
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23972
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
23973
    (./conftest; exit; ) >&5 2>/dev/null
 
23974
    lt_status=$?
 
23975
    case x$lt_status in
 
23976
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
23977
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
23978
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
23979
    esac
 
23980
  else :
 
23981
    # compilation failed
 
23982
    lt_cv_dlopen_self_static=no
 
23983
  fi
 
23984
fi
 
23985
rm -fr conftest*
 
23986
 
 
23987
 
 
23988
fi
 
23989
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
23990
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
23991
    fi
 
23992
 
 
23993
    CPPFLAGS="$save_CPPFLAGS"
 
23994
    LDFLAGS="$save_LDFLAGS"
 
23995
    LIBS="$save_LIBS"
 
23996
    ;;
 
23997
  esac
 
23998
 
 
23999
  case $lt_cv_dlopen_self in
 
24000
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
24001
  *) enable_dlopen_self=unknown ;;
 
24002
  esac
 
24003
 
 
24004
  case $lt_cv_dlopen_self_static in
 
24005
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
24006
  *) enable_dlopen_self_static=unknown ;;
 
24007
  esac
 
24008
fi
 
24009
 
 
24010
 
 
24011
# The else clause should only fire when bootstrapping the
 
24012
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
24013
# with your package, and you will get complaints that there are
 
24014
# no rules to generate ltmain.sh.
 
24015
if test -f "$ltmain"; then
 
24016
  # See if we are running on zsh, and set the options which allow our commands through
 
24017
  # without removal of \ escapes.
 
24018
  if test -n "${ZSH_VERSION+set}" ; then
 
24019
    setopt NO_GLOB_SUBST
 
24020
  fi
 
24021
  # Now quote all the things that may contain metacharacters while being
 
24022
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
24023
  # variables and quote the copies for generation of the libtool script.
 
24024
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
24025
    SED SHELL STRIP \
 
24026
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
24027
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
24028
    deplibs_check_method reload_flag reload_cmds need_locks \
 
24029
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
24030
    lt_cv_sys_global_symbol_to_c_name_address \
 
24031
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
24032
    old_postinstall_cmds old_postuninstall_cmds \
 
24033
    compiler_CXX \
 
24034
    CC_CXX \
 
24035
    LD_CXX \
 
24036
    lt_prog_compiler_wl_CXX \
 
24037
    lt_prog_compiler_pic_CXX \
 
24038
    lt_prog_compiler_static_CXX \
 
24039
    lt_prog_compiler_no_builtin_flag_CXX \
 
24040
    export_dynamic_flag_spec_CXX \
 
24041
    thread_safe_flag_spec_CXX \
 
24042
    whole_archive_flag_spec_CXX \
 
24043
    enable_shared_with_static_runtimes_CXX \
 
24044
    old_archive_cmds_CXX \
 
24045
    old_archive_from_new_cmds_CXX \
 
24046
    predep_objects_CXX \
 
24047
    postdep_objects_CXX \
 
24048
    predeps_CXX \
 
24049
    postdeps_CXX \
 
24050
    compiler_lib_search_path_CXX \
 
24051
    archive_cmds_CXX \
 
24052
    archive_expsym_cmds_CXX \
 
24053
    postinstall_cmds_CXX \
 
24054
    postuninstall_cmds_CXX \
 
24055
    old_archive_from_expsyms_cmds_CXX \
 
24056
    allow_undefined_flag_CXX \
 
24057
    no_undefined_flag_CXX \
 
24058
    export_symbols_cmds_CXX \
 
24059
    hardcode_libdir_flag_spec_CXX \
 
24060
    hardcode_libdir_flag_spec_ld_CXX \
 
24061
    hardcode_libdir_separator_CXX \
 
24062
    hardcode_automatic_CXX \
 
24063
    module_cmds_CXX \
 
24064
    module_expsym_cmds_CXX \
 
24065
    lt_cv_prog_compiler_c_o_CXX \
 
24066
    exclude_expsyms_CXX \
 
24067
    include_expsyms_CXX; do
 
24068
 
 
24069
    case $var in
 
24070
    old_archive_cmds_CXX | \
 
24071
    old_archive_from_new_cmds_CXX | \
 
24072
    archive_cmds_CXX | \
 
24073
    archive_expsym_cmds_CXX | \
 
24074
    module_cmds_CXX | \
 
24075
    module_expsym_cmds_CXX | \
 
24076
    old_archive_from_expsyms_cmds_CXX | \
 
24077
    export_symbols_cmds_CXX | \
 
24078
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
24079
    postinstall_cmds | postuninstall_cmds | \
 
24080
    old_postinstall_cmds | old_postuninstall_cmds | \
 
24081
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
24082
      # Double-quote double-evaled strings.
 
24083
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
24084
      ;;
 
24085
    *)
 
24086
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
24087
      ;;
 
24088
    esac
 
24089
  done
 
24090
 
 
24091
  case $lt_echo in
 
24092
  *'\$0 --fallback-echo"')
 
24093
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
24094
    ;;
 
24095
  esac
 
24096
 
 
24097
cfgfile="$ofile"
 
24098
 
 
24099
  cat <<__EOF__ >> "$cfgfile"
 
24100
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
24101
 
 
24102
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
24103
 
 
24104
# Shell to use when invoking shell scripts.
 
24105
SHELL=$lt_SHELL
 
24106
 
 
24107
# Whether or not to build shared libraries.
 
24108
build_libtool_libs=$enable_shared
 
24109
 
 
24110
# Whether or not to build static libraries.
 
24111
build_old_libs=$enable_static
 
24112
 
 
24113
# Whether or not to add -lc for building shared libraries.
 
24114
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
24115
 
 
24116
# Whether or not to disallow shared libs when runtime libs are static
 
24117
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
24118
 
 
24119
# Whether or not to optimize for fast installation.
 
24120
fast_install=$enable_fast_install
 
24121
 
 
24122
# The host system.
 
24123
host_alias=$host_alias
 
24124
host=$host
 
24125
host_os=$host_os
 
24126
 
 
24127
# The build system.
 
24128
build_alias=$build_alias
 
24129
build=$build
 
24130
build_os=$build_os
 
24131
 
 
24132
# An echo program that does not interpret backslashes.
 
24133
echo=$lt_echo
 
24134
 
 
24135
# The archiver.
 
24136
AR=$lt_AR
 
24137
AR_FLAGS=$lt_AR_FLAGS
 
24138
 
 
24139
# A C compiler.
 
24140
LTCC=$lt_LTCC
 
24141
 
 
24142
# A language-specific compiler.
 
24143
CC=$lt_compiler_CXX
 
24144
 
 
24145
# Is the compiler the GNU C compiler?
 
24146
with_gcc=$GCC_CXX
 
24147
 
 
24148
# An ERE matcher.
 
24149
EGREP=$lt_EGREP
 
24150
 
 
24151
# The linker used to build libraries.
 
24152
LD=$lt_LD_CXX
 
24153
 
 
24154
# Whether we need hard or soft links.
 
24155
LN_S=$lt_LN_S
 
24156
 
 
24157
# A BSD-compatible nm program.
 
24158
NM=$lt_NM
 
24159
 
 
24160
# A symbol stripping program
 
24161
STRIP=$lt_STRIP
 
24162
 
 
24163
# Used to examine libraries when file_magic_cmd begins "file"
 
24164
MAGIC_CMD=$MAGIC_CMD
 
24165
 
 
24166
# Used on cygwin: DLL creation program.
 
24167
DLLTOOL="$DLLTOOL"
 
24168
 
 
24169
# Used on cygwin: object dumper.
 
24170
OBJDUMP="$OBJDUMP"
 
24171
 
 
24172
# Used on cygwin: assembler.
 
24173
AS="$AS"
 
24174
 
 
24175
# The name of the directory that contains temporary libtool files.
 
24176
objdir=$objdir
 
24177
 
 
24178
# How to create reloadable object files.
 
24179
reload_flag=$lt_reload_flag
 
24180
reload_cmds=$lt_reload_cmds
 
24181
 
 
24182
# How to pass a linker flag through the compiler.
 
24183
wl=$lt_lt_prog_compiler_wl_CXX
 
24184
 
 
24185
# Object file suffix (normally "o").
 
24186
objext="$ac_objext"
 
24187
 
 
24188
# Old archive suffix (normally "a").
 
24189
libext="$libext"
 
24190
 
 
24191
# Shared library suffix (normally ".so").
 
24192
shrext_cmds='$shrext_cmds'
 
24193
 
 
24194
# Executable file suffix (normally "").
 
24195
exeext="$exeext"
 
24196
 
 
24197
# Additional compiler flags for building library objects.
 
24198
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
24199
pic_mode=$pic_mode
 
24200
 
 
24201
# What is the maximum length of a command?
 
24202
max_cmd_len=$lt_cv_sys_max_cmd_len
 
24203
 
 
24204
# Does compiler simultaneously support -c and -o options?
 
24205
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
24206
 
 
24207
# Must we lock files when doing compilation?
 
24208
need_locks=$lt_need_locks
 
24209
 
 
24210
# Do we need the lib prefix for modules?
 
24211
need_lib_prefix=$need_lib_prefix
 
24212
 
 
24213
# Do we need a version for libraries?
 
24214
need_version=$need_version
 
24215
 
 
24216
# Whether dlopen is supported.
 
24217
dlopen_support=$enable_dlopen
 
24218
 
 
24219
# Whether dlopen of programs is supported.
 
24220
dlopen_self=$enable_dlopen_self
 
24221
 
 
24222
# Whether dlopen of statically linked programs is supported.
 
24223
dlopen_self_static=$enable_dlopen_self_static
 
24224
 
 
24225
# Compiler flag to prevent dynamic linking.
 
24226
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
24227
 
 
24228
# Compiler flag to turn off builtin functions.
 
24229
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
24230
 
 
24231
# Compiler flag to allow reflexive dlopens.
 
24232
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
24233
 
 
24234
# Compiler flag to generate shared objects directly from archives.
 
24235
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
24236
 
 
24237
# Compiler flag to generate thread-safe objects.
 
24238
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
24239
 
 
24240
# Library versioning type.
 
24241
version_type=$version_type
 
24242
 
 
24243
# Format of library name prefix.
 
24244
libname_spec=$lt_libname_spec
 
24245
 
 
24246
# List of archive names.  First name is the real one, the rest are links.
 
24247
# The last name is the one that the linker finds with -lNAME.
 
24248
library_names_spec=$lt_library_names_spec
 
24249
 
 
24250
# The coded name of the library, if different from the real name.
 
24251
soname_spec=$lt_soname_spec
 
24252
 
 
24253
# Commands used to build and install an old-style archive.
 
24254
RANLIB=$lt_RANLIB
 
24255
old_archive_cmds=$lt_old_archive_cmds_CXX
 
24256
old_postinstall_cmds=$lt_old_postinstall_cmds
 
24257
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
24258
 
 
24259
# Create an old-style archive from a shared archive.
 
24260
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
24261
 
 
24262
# Create a temporary old-style archive to link instead of a shared archive.
 
24263
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
24264
 
 
24265
# Commands used to build and install a shared archive.
 
24266
archive_cmds=$lt_archive_cmds_CXX
 
24267
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
24268
postinstall_cmds=$lt_postinstall_cmds
 
24269
postuninstall_cmds=$lt_postuninstall_cmds
 
24270
 
 
24271
# Commands used to build a loadable module (assumed same as above if empty)
 
24272
module_cmds=$lt_module_cmds_CXX
 
24273
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
24274
 
 
24275
# Commands to strip libraries.
 
24276
old_striplib=$lt_old_striplib
 
24277
striplib=$lt_striplib
 
24278
 
 
24279
# Dependencies to place before the objects being linked to create a
 
24280
# shared library.
 
24281
predep_objects=$lt_predep_objects_CXX
 
24282
 
 
24283
# Dependencies to place after the objects being linked to create a
 
24284
# shared library.
 
24285
postdep_objects=$lt_postdep_objects_CXX
 
24286
 
 
24287
# Dependencies to place before the objects being linked to create a
 
24288
# shared library.
 
24289
predeps=$lt_predeps_CXX
 
24290
 
 
24291
# Dependencies to place after the objects being linked to create a
 
24292
# shared library.
 
24293
postdeps=$lt_postdeps_CXX
 
24294
 
 
24295
# The library search path used internally by the compiler when linking
 
24296
# a shared library.
 
24297
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
24298
 
 
24299
# Method to check whether dependent libraries are shared objects.
 
24300
deplibs_check_method=$lt_deplibs_check_method
 
24301
 
 
24302
# Command to use when deplibs_check_method == file_magic.
 
24303
file_magic_cmd=$lt_file_magic_cmd
 
24304
 
 
24305
# Flag that allows shared libraries with undefined symbols to be built.
 
24306
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
24307
 
 
24308
# Flag that forces no undefined symbols.
 
24309
no_undefined_flag=$lt_no_undefined_flag_CXX
 
24310
 
 
24311
# Commands used to finish a libtool library installation in a directory.
 
24312
finish_cmds=$lt_finish_cmds
 
24313
 
 
24314
# Same as above, but a single script fragment to be evaled but not shown.
 
24315
finish_eval=$lt_finish_eval
 
24316
 
 
24317
# Take the output of nm and produce a listing of raw symbols and C names.
 
24318
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
24319
 
 
24320
# Transform the output of nm in a proper C declaration
 
24321
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
24322
 
 
24323
# Transform the output of nm in a C name address pair
 
24324
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
24325
 
 
24326
# This is the shared library runtime path variable.
 
24327
runpath_var=$runpath_var
 
24328
 
 
24329
# This is the shared library path variable.
 
24330
shlibpath_var=$shlibpath_var
 
24331
 
 
24332
# Is shlibpath searched before the hard-coded library search path?
 
24333
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
24334
 
 
24335
# How to hardcode a shared library path into an executable.
 
24336
hardcode_action=$hardcode_action_CXX
 
24337
 
 
24338
# Whether we should hardcode library paths into libraries.
 
24339
hardcode_into_libs=$hardcode_into_libs
 
24340
 
 
24341
# Flag to hardcode \$libdir into a binary during linking.
 
24342
# This must work even if \$libdir does not exist.
 
24343
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
24344
 
 
24345
# If ld is used when linking, flag to hardcode \$libdir into
 
24346
# a binary during linking. This must work even if \$libdir does
 
24347
# not exist.
 
24348
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
24349
 
 
24350
# Whether we need a single -rpath flag with a separated argument.
 
24351
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
24352
 
 
24353
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
24354
# resulting binary.
 
24355
hardcode_direct=$hardcode_direct_CXX
 
24356
 
 
24357
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
24358
# resulting binary.
 
24359
hardcode_minus_L=$hardcode_minus_L_CXX
 
24360
 
 
24361
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
24362
# the resulting binary.
 
24363
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
24364
 
 
24365
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
24366
# and all subsequent libraries and executables linked against it.
 
24367
hardcode_automatic=$hardcode_automatic_CXX
 
24368
 
 
24369
# Variables whose values should be saved in libtool wrapper scripts and
 
24370
# restored at relink time.
 
24371
variables_saved_for_relink="$variables_saved_for_relink"
 
24372
 
 
24373
# Whether libtool must link a program against all its dependency libraries.
 
24374
link_all_deplibs=$link_all_deplibs_CXX
 
24375
 
 
24376
# Compile-time system search path for libraries
 
24377
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
24378
 
 
24379
# Run-time system search path for libraries
 
24380
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
24381
 
 
24382
# Fix the shell variable \$srcfile for the compiler.
 
24383
fix_srcfile_path="$fix_srcfile_path_CXX"
 
24384
 
 
24385
# Set to yes if exported symbols are required.
 
24386
always_export_symbols=$always_export_symbols_CXX
 
24387
 
 
24388
# The commands to list exported symbols.
 
24389
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
24390
 
 
24391
# The commands to extract the exported symbol list from a shared archive.
 
24392
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
24393
 
 
24394
# Symbols that should not be listed in the preloaded symbols.
 
24395
exclude_expsyms=$lt_exclude_expsyms_CXX
 
24396
 
 
24397
# Symbols that must always be exported.
 
24398
include_expsyms=$lt_include_expsyms_CXX
 
24399
 
 
24400
# ### END LIBTOOL TAG CONFIG: $tagname
 
24401
 
 
24402
__EOF__
 
24403
 
 
24404
 
 
24405
else
 
24406
  # If there is no Makefile yet, we rely on a make rule to execute
 
24407
  # `config.status --recheck' to rerun these tests and create the
 
24408
  # libtool script then.
 
24409
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
24410
  if test -f "$ltmain_in"; then
 
24411
    test -f Makefile && make "$ltmain"
 
24412
  fi
 
24413
fi
 
24414
 
 
24415
 
 
24416
ac_ext=c
 
24417
ac_cpp='$CPP $CPPFLAGS'
 
24418
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
24419
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
24420
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
24421
 
 
24422
CC=$lt_save_CC
 
24423
LDCXX=$LD
 
24424
LD=$lt_save_LD
 
24425
GCC=$lt_save_GCC
 
24426
with_gnu_ldcxx=$with_gnu_ld
 
24427
with_gnu_ld=$lt_save_with_gnu_ld
 
24428
lt_cv_path_LDCXX=$lt_cv_path_LD
 
24429
lt_cv_path_LD=$lt_save_path_LD
 
24430
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
24431
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
24432
 
 
24433
        else
 
24434
          tagname=""
 
24435
        fi
 
24436
        ;;
 
24437
 
 
24438
      F77)
 
24439
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
24440
 
 
24441
ac_ext=f
 
24442
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
24443
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
24444
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
24445
 
 
24446
 
 
24447
archive_cmds_need_lc_F77=no
 
24448
allow_undefined_flag_F77=
 
24449
always_export_symbols_F77=no
 
24450
archive_expsym_cmds_F77=
 
24451
export_dynamic_flag_spec_F77=
 
24452
hardcode_direct_F77=no
 
24453
hardcode_libdir_flag_spec_F77=
 
24454
hardcode_libdir_flag_spec_ld_F77=
 
24455
hardcode_libdir_separator_F77=
 
24456
hardcode_minus_L_F77=no
 
24457
hardcode_automatic_F77=no
 
24458
module_cmds_F77=
 
24459
module_expsym_cmds_F77=
 
24460
link_all_deplibs_F77=unknown
 
24461
old_archive_cmds_F77=$old_archive_cmds
 
24462
no_undefined_flag_F77=
 
24463
whole_archive_flag_spec_F77=
 
24464
enable_shared_with_static_runtimes_F77=no
 
24465
 
 
24466
# Source file extension for f77 test sources.
 
24467
ac_ext=f
 
24468
 
 
24469
# Object file extension for compiled f77 test sources.
 
24470
objext=o
 
24471
objext_F77=$objext
 
24472
 
 
24473
# Code to be used in simple compile tests
 
24474
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
24475
 
 
24476
# Code to be used in simple link tests
 
24477
lt_simple_link_test_code="      program t\n      end\n"
 
24478
 
 
24479
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
24480
 
 
24481
# If no C compiler was specified, use CC.
 
24482
LTCC=${LTCC-"$CC"}
 
24483
 
 
24484
# Allow CC to be a program name with arguments.
 
24485
compiler=$CC
 
24486
 
 
24487
 
 
24488
# save warnings/boilerplate of simple test code
 
24489
ac_outfile=conftest.$ac_objext
 
24490
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
24491
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
24492
_lt_compiler_boilerplate=`cat conftest.err`
 
24493
$rm conftest*
 
24494
 
 
24495
ac_outfile=conftest.$ac_objext
 
24496
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
24497
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
24498
_lt_linker_boilerplate=`cat conftest.err`
 
24499
$rm conftest*
 
24500
 
 
24501
 
 
24502
# Allow CC to be a program name with arguments.
 
24503
lt_save_CC="$CC"
 
24504
CC=${F77-"f77"}
 
24505
compiler=$CC
 
24506
compiler_F77=$CC
 
24507
for cc_temp in $compiler""; do
 
24508
  case $cc_temp in
 
24509
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
24510
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
24511
    \-*) ;;
 
24512
    *) break;;
 
24513
  esac
 
24514
done
 
24515
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
24516
 
 
24517
 
 
24518
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
24519
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
24520
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
24521
echo "${ECHO_T}$can_build_shared" >&6
 
24522
 
 
24523
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
24524
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
24525
test "$can_build_shared" = "no" && enable_shared=no
 
24526
 
 
24527
# On AIX, shared libraries and static libraries use the same namespace, and
 
24528
# are all built from PIC.
 
24529
case $host_os in
 
24530
aix3*)
 
24531
  test "$enable_shared" = yes && enable_static=no
 
24532
  if test -n "$RANLIB"; then
 
24533
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
24534
    postinstall_cmds='$RANLIB $lib'
 
24535
  fi
 
24536
  ;;
 
24537
aix4* | aix5*)
 
24538
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
24539
    test "$enable_shared" = yes && enable_static=no
 
24540
  fi
 
24541
  ;;
 
24542
esac
 
24543
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
24544
echo "${ECHO_T}$enable_shared" >&6
 
24545
 
 
24546
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
24547
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
24548
# Make sure either enable_shared or enable_static is yes.
 
24549
test "$enable_shared" = yes || enable_static=yes
 
24550
echo "$as_me:$LINENO: result: $enable_static" >&5
 
24551
echo "${ECHO_T}$enable_static" >&6
 
24552
 
 
24553
test "$ld_shlibs_F77" = no && can_build_shared=no
 
24554
 
 
24555
GCC_F77="$G77"
 
24556
LD_F77="$LD"
 
24557
 
 
24558
lt_prog_compiler_wl_F77=
 
24559
lt_prog_compiler_pic_F77=
 
24560
lt_prog_compiler_static_F77=
 
24561
 
 
24562
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
24563
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
24564
 
 
24565
  if test "$GCC" = yes; then
 
24566
    lt_prog_compiler_wl_F77='-Wl,'
 
24567
    lt_prog_compiler_static_F77='-static'
 
24568
 
 
24569
    case $host_os in
 
24570
      aix*)
 
24571
      # All AIX code is PIC.
 
24572
      if test "$host_cpu" = ia64; then
 
24573
        # AIX 5 now supports IA64 processor
 
24574
        lt_prog_compiler_static_F77='-Bstatic'
 
24575
      fi
 
24576
      ;;
 
24577
 
 
24578
    amigaos*)
 
24579
      # FIXME: we need at least 68020 code to build shared libraries, but
 
24580
      # adding the `-m68020' flag to GCC prevents building anything better,
 
24581
      # like `-m68040'.
 
24582
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
24583
      ;;
 
24584
 
 
24585
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
24586
      # PIC is the default for these OSes.
 
24587
      ;;
 
24588
 
 
24589
    mingw* | pw32* | os2*)
 
24590
      # This hack is so that the source file can tell whether it is being
 
24591
      # built for inclusion in a dll (and should export symbols for example).
 
24592
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
24593
      ;;
 
24594
 
 
24595
    darwin* | rhapsody*)
 
24596
      # PIC is the default on this platform
 
24597
      # Common symbols not allowed in MH_DYLIB files
 
24598
      lt_prog_compiler_pic_F77='-fno-common'
 
24599
      ;;
 
24600
 
 
24601
    msdosdjgpp*)
 
24602
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
24603
      # on systems that don't support them.
 
24604
      lt_prog_compiler_can_build_shared_F77=no
 
24605
      enable_shared=no
 
24606
      ;;
 
24607
 
 
24608
    sysv4*MP*)
 
24609
      if test -d /usr/nec; then
 
24610
        lt_prog_compiler_pic_F77=-Kconform_pic
 
24611
      fi
 
24612
      ;;
 
24613
 
 
24614
    hpux*)
 
24615
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
24616
      # not for PA HP-UX.
 
24617
      case $host_cpu in
 
24618
      hppa*64*|ia64*)
 
24619
        # +Z the default
 
24620
        ;;
 
24621
      *)
 
24622
        lt_prog_compiler_pic_F77='-fPIC'
 
24623
        ;;
 
24624
      esac
 
24625
      ;;
 
24626
 
 
24627
    *)
 
24628
      lt_prog_compiler_pic_F77='-fPIC'
 
24629
      ;;
 
24630
    esac
 
24631
  else
 
24632
    # PORTME Check for flag to pass linker flags through the system compiler.
 
24633
    case $host_os in
 
24634
    aix*)
 
24635
      lt_prog_compiler_wl_F77='-Wl,'
 
24636
      if test "$host_cpu" = ia64; then
 
24637
        # AIX 5 now supports IA64 processor
 
24638
        lt_prog_compiler_static_F77='-Bstatic'
 
24639
      else
 
24640
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
24641
      fi
 
24642
      ;;
 
24643
      darwin*)
 
24644
        # PIC is the default on this platform
 
24645
        # Common symbols not allowed in MH_DYLIB files
 
24646
       case $cc_basename in
 
24647
         xlc*)
 
24648
         lt_prog_compiler_pic_F77='-qnocommon'
 
24649
         lt_prog_compiler_wl_F77='-Wl,'
 
24650
         ;;
 
24651
       esac
 
24652
       ;;
 
24653
 
 
24654
    mingw* | pw32* | os2*)
 
24655
      # This hack is so that the source file can tell whether it is being
 
24656
      # built for inclusion in a dll (and should export symbols for example).
 
24657
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
24658
      ;;
 
24659
 
 
24660
    hpux9* | hpux10* | hpux11*)
 
24661
      lt_prog_compiler_wl_F77='-Wl,'
 
24662
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
24663
      # not for PA HP-UX.
 
24664
      case $host_cpu in
 
24665
      hppa*64*|ia64*)
 
24666
        # +Z the default
 
24667
        ;;
 
24668
      *)
 
24669
        lt_prog_compiler_pic_F77='+Z'
 
24670
        ;;
 
24671
      esac
 
24672
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
24673
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
24674
      ;;
 
24675
 
 
24676
    irix5* | irix6* | nonstopux*)
 
24677
      lt_prog_compiler_wl_F77='-Wl,'
 
24678
      # PIC (with -KPIC) is the default.
 
24679
      lt_prog_compiler_static_F77='-non_shared'
 
24680
      ;;
 
24681
 
 
24682
    newsos6)
 
24683
      lt_prog_compiler_pic_F77='-KPIC'
 
24684
      lt_prog_compiler_static_F77='-Bstatic'
 
24685
      ;;
 
24686
 
 
24687
    linux*)
 
24688
      case $cc_basename in
 
24689
      icc* | ecc*)
 
24690
        lt_prog_compiler_wl_F77='-Wl,'
 
24691
        lt_prog_compiler_pic_F77='-KPIC'
 
24692
        lt_prog_compiler_static_F77='-static'
 
24693
        ;;
 
24694
      pgcc* | pgf77* | pgf90* | pgf95*)
 
24695
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
24696
        # which looks to be a dead project)
 
24697
        lt_prog_compiler_wl_F77='-Wl,'
 
24698
        lt_prog_compiler_pic_F77='-fpic'
 
24699
        lt_prog_compiler_static_F77='-Bstatic'
 
24700
        ;;
 
24701
      ccc*)
 
24702
        lt_prog_compiler_wl_F77='-Wl,'
 
24703
        # All Alpha code is PIC.
 
24704
        lt_prog_compiler_static_F77='-non_shared'
 
24705
        ;;
 
24706
      esac
 
24707
      ;;
 
24708
 
 
24709
    osf3* | osf4* | osf5*)
 
24710
      lt_prog_compiler_wl_F77='-Wl,'
 
24711
      # All OSF/1 code is PIC.
 
24712
      lt_prog_compiler_static_F77='-non_shared'
 
24713
      ;;
 
24714
 
 
24715
    sco3.2v5*)
 
24716
      lt_prog_compiler_pic_F77='-Kpic'
 
24717
      lt_prog_compiler_static_F77='-dn'
 
24718
      ;;
 
24719
 
 
24720
    solaris*)
 
24721
      lt_prog_compiler_pic_F77='-KPIC'
 
24722
      lt_prog_compiler_static_F77='-Bstatic'
 
24723
      case $cc_basename in
 
24724
      f77* | f90* | f95*)
 
24725
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
24726
      *)
 
24727
        lt_prog_compiler_wl_F77='-Wl,';;
 
24728
      esac
 
24729
      ;;
 
24730
 
 
24731
    sunos4*)
 
24732
      lt_prog_compiler_wl_F77='-Qoption ld '
 
24733
      lt_prog_compiler_pic_F77='-PIC'
 
24734
      lt_prog_compiler_static_F77='-Bstatic'
 
24735
      ;;
 
24736
 
 
24737
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
24738
      lt_prog_compiler_wl_F77='-Wl,'
 
24739
      lt_prog_compiler_pic_F77='-KPIC'
 
24740
      lt_prog_compiler_static_F77='-Bstatic'
 
24741
      ;;
 
24742
 
 
24743
    sysv4*MP*)
 
24744
      if test -d /usr/nec ;then
 
24745
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
24746
        lt_prog_compiler_static_F77='-Bstatic'
 
24747
      fi
 
24748
      ;;
 
24749
 
 
24750
    unicos*)
 
24751
      lt_prog_compiler_wl_F77='-Wl,'
 
24752
      lt_prog_compiler_can_build_shared_F77=no
 
24753
      ;;
 
24754
 
 
24755
    uts4*)
 
24756
      lt_prog_compiler_pic_F77='-pic'
 
24757
      lt_prog_compiler_static_F77='-Bstatic'
 
24758
      ;;
 
24759
 
 
24760
    *)
 
24761
      lt_prog_compiler_can_build_shared_F77=no
 
24762
      ;;
 
24763
    esac
 
24764
  fi
 
24765
 
 
24766
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
24767
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
24768
 
 
24769
#
 
24770
# Check to make sure the PIC flag actually works.
 
24771
#
 
24772
if test -n "$lt_prog_compiler_pic_F77"; then
 
24773
 
 
24774
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
24775
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
24776
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
24777
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24778
else
 
24779
  lt_prog_compiler_pic_works_F77=no
 
24780
  ac_outfile=conftest.$ac_objext
 
24781
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
24782
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
24783
   # Insert the option either (1) after the last *FLAGS variable, or
 
24784
   # (2) before a word containing "conftest.", or (3) at the end.
 
24785
   # Note that $ac_compile itself does not contain backslashes and begins
 
24786
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
24787
   # The option is referenced via a variable to avoid confusing sed.
 
24788
   lt_compile=`echo "$ac_compile" | $SED \
 
24789
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
24790
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
24791
   -e 's:$: $lt_compiler_flag:'`
 
24792
   (eval echo "\"\$as_me:24792: $lt_compile\"" >&5)
 
24793
   (eval "$lt_compile" 2>conftest.err)
 
24794
   ac_status=$?
 
24795
   cat conftest.err >&5
 
24796
   echo "$as_me:24796: \$? = $ac_status" >&5
 
24797
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
24798
     # The compiler can only warn and ignore the option if not recognized
 
24799
     # So say no if there are warnings other than the usual output.
 
24800
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
24801
     $SED '/^$/d' conftest.err >conftest.er2
 
24802
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
24803
       lt_prog_compiler_pic_works_F77=yes
 
24804
     fi
 
24805
   fi
 
24806
   $rm conftest*
 
24807
 
 
24808
fi
 
24809
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
24810
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
24811
 
 
24812
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
24813
    case $lt_prog_compiler_pic_F77 in
 
24814
     "" | " "*) ;;
 
24815
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
24816
     esac
 
24817
else
 
24818
    lt_prog_compiler_pic_F77=
 
24819
     lt_prog_compiler_can_build_shared_F77=no
 
24820
fi
 
24821
 
 
24822
fi
 
24823
case $host_os in
 
24824
  # For platforms which do not support PIC, -DPIC is meaningless:
 
24825
  *djgpp*)
 
24826
    lt_prog_compiler_pic_F77=
 
24827
    ;;
 
24828
  *)
 
24829
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
24830
    ;;
 
24831
esac
 
24832
 
 
24833
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
24834
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
24835
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
24836
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24837
else
 
24838
  lt_cv_prog_compiler_c_o_F77=no
 
24839
   $rm -r conftest 2>/dev/null
 
24840
   mkdir conftest
 
24841
   cd conftest
 
24842
   mkdir out
 
24843
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
24844
 
 
24845
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
24846
   # Insert the option either (1) after the last *FLAGS variable, or
 
24847
   # (2) before a word containing "conftest.", or (3) at the end.
 
24848
   # Note that $ac_compile itself does not contain backslashes and begins
 
24849
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
24850
   lt_compile=`echo "$ac_compile" | $SED \
 
24851
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
24852
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
24853
   -e 's:$: $lt_compiler_flag:'`
 
24854
   (eval echo "\"\$as_me:24854: $lt_compile\"" >&5)
 
24855
   (eval "$lt_compile" 2>out/conftest.err)
 
24856
   ac_status=$?
 
24857
   cat out/conftest.err >&5
 
24858
   echo "$as_me:24858: \$? = $ac_status" >&5
 
24859
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
24860
   then
 
24861
     # The compiler can only warn and ignore the option if not recognized
 
24862
     # So say no if there are warnings
 
24863
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
24864
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
24865
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
24866
       lt_cv_prog_compiler_c_o_F77=yes
 
24867
     fi
 
24868
   fi
 
24869
   chmod u+w . 2>&5
 
24870
   $rm conftest*
 
24871
   # SGI C++ compiler will create directory out/ii_files/ for
 
24872
   # template instantiation
 
24873
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
24874
   $rm out/* && rmdir out
 
24875
   cd ..
 
24876
   rmdir conftest
 
24877
   $rm conftest*
 
24878
 
 
24879
fi
 
24880
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
24881
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
24882
 
 
24883
 
 
24884
hard_links="nottested"
 
24885
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
24886
  # do not overwrite the value of need_locks provided by the user
 
24887
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
24888
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
24889
  hard_links=yes
 
24890
  $rm conftest*
 
24891
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
24892
  touch conftest.a
 
24893
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
24894
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
24895
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
24896
echo "${ECHO_T}$hard_links" >&6
 
24897
  if test "$hard_links" = no; then
 
24898
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
24899
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
24900
    need_locks=warn
 
24901
  fi
 
24902
else
 
24903
  need_locks=no
 
24904
fi
 
24905
 
 
24906
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
24907
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
24908
 
 
24909
  runpath_var=
 
24910
  allow_undefined_flag_F77=
 
24911
  enable_shared_with_static_runtimes_F77=no
 
24912
  archive_cmds_F77=
 
24913
  archive_expsym_cmds_F77=
 
24914
  old_archive_From_new_cmds_F77=
 
24915
  old_archive_from_expsyms_cmds_F77=
 
24916
  export_dynamic_flag_spec_F77=
 
24917
  whole_archive_flag_spec_F77=
 
24918
  thread_safe_flag_spec_F77=
 
24919
  hardcode_libdir_flag_spec_F77=
 
24920
  hardcode_libdir_flag_spec_ld_F77=
 
24921
  hardcode_libdir_separator_F77=
 
24922
  hardcode_direct_F77=no
 
24923
  hardcode_minus_L_F77=no
 
24924
  hardcode_shlibpath_var_F77=unsupported
 
24925
  link_all_deplibs_F77=unknown
 
24926
  hardcode_automatic_F77=no
 
24927
  module_cmds_F77=
 
24928
  module_expsym_cmds_F77=
 
24929
  always_export_symbols_F77=no
 
24930
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
24931
  # include_expsyms should be a list of space-separated symbols to be *always*
 
24932
  # included in the symbol list
 
24933
  include_expsyms_F77=
 
24934
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
24935
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
24936
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
24937
  # as well as any symbol that contains `d'.
 
24938
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
24939
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
24940
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
24941
  # the symbol is explicitly referenced.  Since portable code cannot
 
24942
  # rely on this symbol name, it's probably fine to never include it in
 
24943
  # preloaded symbol tables.
 
24944
  extract_expsyms_cmds=
 
24945
  # Just being paranoid about ensuring that cc_basename is set.
 
24946
  for cc_temp in $compiler""; do
 
24947
  case $cc_temp in
 
24948
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
24949
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
24950
    \-*) ;;
 
24951
    *) break;;
 
24952
  esac
 
24953
done
 
24954
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
24955
 
 
24956
  case $host_os in
 
24957
  cygwin* | mingw* | pw32*)
 
24958
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
24959
    # When not using gcc, we currently assume that we are using
 
24960
    # Microsoft Visual C++.
 
24961
    if test "$GCC" != yes; then
 
24962
      with_gnu_ld=no
 
24963
    fi
 
24964
    ;;
 
24965
  openbsd*)
 
24966
    with_gnu_ld=no
 
24967
    ;;
 
24968
  esac
 
24969
 
 
24970
  ld_shlibs_F77=yes
 
24971
  if test "$with_gnu_ld" = yes; then
 
24972
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
24973
    wlarc='${wl}'
 
24974
 
 
24975
    # Set some defaults for GNU ld with shared library support. These
 
24976
    # are reset later if shared libraries are not supported. Putting them
 
24977
    # here allows them to be overridden if necessary.
 
24978
    runpath_var=LD_RUN_PATH
 
24979
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
24980
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
24981
    # ancient GNU ld didn't support --whole-archive et. al.
 
24982
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
24983
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
24984
      else
 
24985
        whole_archive_flag_spec_F77=
 
24986
    fi
 
24987
    supports_anon_versioning=no
 
24988
    case `$LD -v 2>/dev/null` in
 
24989
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
24990
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
24991
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
24992
      *\ 2.11.*) ;; # other 2.11 versions
 
24993
      *) supports_anon_versioning=yes ;;
 
24994
    esac
 
24995
 
 
24996
    # See if GNU ld supports shared libraries.
 
24997
    case $host_os in
 
24998
    aix3* | aix4* | aix5*)
 
24999
      # On AIX/PPC, the GNU linker is very broken
 
25000
      if test "$host_cpu" != ia64; then
 
25001
        ld_shlibs_F77=no
 
25002
        cat <<EOF 1>&2
 
25003
 
 
25004
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
25005
*** to be unable to reliably create shared libraries on AIX.
 
25006
*** Therefore, libtool is disabling shared libraries support.  If you
 
25007
*** really care for shared libraries, you may want to modify your PATH
 
25008
*** so that a non-GNU linker is found, and then restart.
 
25009
 
 
25010
EOF
 
25011
      fi
 
25012
      ;;
 
25013
 
 
25014
    amigaos*)
 
25015
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
25016
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
25017
      hardcode_minus_L_F77=yes
 
25018
 
 
25019
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
25020
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
25021
      # to version 4, is to share data among multiple programs linked
 
25022
      # with the same dynamic library.  Since this doesn't match the
 
25023
      # behavior of shared libraries on other platforms, we can't use
 
25024
      # them.
 
25025
      ld_shlibs_F77=no
 
25026
      ;;
 
25027
 
 
25028
    beos*)
 
25029
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
25030
        allow_undefined_flag_F77=unsupported
 
25031
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
25032
        # support --undefined.  This deserves some investigation.  FIXME
 
25033
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
25034
      else
 
25035
        ld_shlibs_F77=no
 
25036
      fi
 
25037
      ;;
 
25038
 
 
25039
    cygwin* | mingw* | pw32*)
 
25040
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
25041
      # as there is no search path for DLLs.
 
25042
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
25043
      allow_undefined_flag_F77=unsupported
 
25044
      always_export_symbols_F77=no
 
25045
      enable_shared_with_static_runtimes_F77=yes
 
25046
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
25047
 
 
25048
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
25049
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
25050
        # If the export-symbols file already is a .def file (1st line
 
25051
        # is EXPORTS), use it as is; otherwise, prepend...
 
25052
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
25053
          cp $export_symbols $output_objdir/$soname.def;
 
25054
        else
 
25055
          echo EXPORTS > $output_objdir/$soname.def;
 
25056
          cat $export_symbols >> $output_objdir/$soname.def;
 
25057
        fi~
 
25058
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
25059
      else
 
25060
        ld_shlibs_F77=no
 
25061
      fi
 
25062
      ;;
 
25063
 
 
25064
    linux*)
 
25065
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
25066
        tmp_addflag=
 
25067
        case $cc_basename,$host_cpu in
 
25068
        pgcc*)                          # Portland Group C compiler
 
25069
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
25070
          tmp_addflag=' $pic_flag'
 
25071
          ;;
 
25072
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
25073
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
25074
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
25075
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
25076
          tmp_addflag=' -i_dynamic' ;;
 
25077
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
25078
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
25079
        ifc* | ifort*)                  # Intel Fortran compiler
 
25080
          tmp_addflag=' -nofor_main' ;;
 
25081
        esac
 
25082
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
25083
 
 
25084
        if test $supports_anon_versioning = yes; then
 
25085
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
25086
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
25087
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
25088
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
25089
        fi
 
25090
      else
 
25091
        ld_shlibs_F77=no
 
25092
      fi
 
25093
      ;;
 
25094
 
 
25095
    netbsd*)
 
25096
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
25097
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
25098
        wlarc=
 
25099
      else
 
25100
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
25101
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
25102
      fi
 
25103
      ;;
 
25104
 
 
25105
    solaris* | sysv5*)
 
25106
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
25107
        ld_shlibs_F77=no
 
25108
        cat <<EOF 1>&2
 
25109
 
 
25110
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
25111
*** create shared libraries on Solaris systems.  Therefore, libtool
 
25112
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
25113
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
25114
*** your PATH or compiler configuration so that the native linker is
 
25115
*** used, and then restart.
 
25116
 
 
25117
EOF
 
25118
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
25119
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
25120
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
25121
      else
 
25122
        ld_shlibs_F77=no
 
25123
      fi
 
25124
      ;;
 
25125
 
 
25126
    sunos4*)
 
25127
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
25128
      wlarc=
 
25129
      hardcode_direct_F77=yes
 
25130
      hardcode_shlibpath_var_F77=no
 
25131
      ;;
 
25132
 
 
25133
    *)
 
25134
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
25135
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
25136
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
25137
      else
 
25138
        ld_shlibs_F77=no
 
25139
      fi
 
25140
      ;;
 
25141
    esac
 
25142
 
 
25143
    if test "$ld_shlibs_F77" = no; then
 
25144
      runpath_var=
 
25145
      hardcode_libdir_flag_spec_F77=
 
25146
      export_dynamic_flag_spec_F77=
 
25147
      whole_archive_flag_spec_F77=
 
25148
    fi
 
25149
  else
 
25150
    # PORTME fill in a description of your system's linker (not GNU ld)
 
25151
    case $host_os in
 
25152
    aix3*)
 
25153
      allow_undefined_flag_F77=unsupported
 
25154
      always_export_symbols_F77=yes
 
25155
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
25156
      # Note: this linker hardcodes the directories in LIBPATH if there
 
25157
      # are no directories specified by -L.
 
25158
      hardcode_minus_L_F77=yes
 
25159
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
25160
        # Neither direct hardcoding nor static linking is supported with a
 
25161
        # broken collect2.
 
25162
        hardcode_direct_F77=unsupported
 
25163
      fi
 
25164
      ;;
 
25165
 
 
25166
    aix4* | aix5*)
 
25167
      if test "$host_cpu" = ia64; then
 
25168
        # On IA64, the linker does run time linking by default, so we don't
 
25169
        # have to do anything special.
 
25170
        aix_use_runtimelinking=no
 
25171
        exp_sym_flag='-Bexport'
 
25172
        no_entry_flag=""
 
25173
      else
 
25174
        # If we're using GNU nm, then we don't want the "-C" option.
 
25175
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
25176
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
25177
          export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
25178
        else
 
25179
          export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
25180
        fi
 
25181
        aix_use_runtimelinking=no
 
25182
 
 
25183
        # Test if we are trying to use run time linking or normal
 
25184
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
25185
        # need to do runtime linking.
 
25186
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
25187
          for ld_flag in $LDFLAGS; do
 
25188
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
25189
            aix_use_runtimelinking=yes
 
25190
            break
 
25191
          fi
 
25192
          done
 
25193
        esac
 
25194
 
 
25195
        exp_sym_flag='-bexport'
 
25196
        no_entry_flag='-bnoentry'
 
25197
      fi
 
25198
 
 
25199
      # When large executables or shared objects are built, AIX ld can
 
25200
      # have problems creating the table of contents.  If linking a library
 
25201
      # or program results in "error TOC overflow" add -mminimal-toc to
 
25202
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
25203
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
25204
 
 
25205
      archive_cmds_F77=''
 
25206
      hardcode_direct_F77=yes
 
25207
      hardcode_libdir_separator_F77=':'
 
25208
      link_all_deplibs_F77=yes
 
25209
 
 
25210
      if test "$GCC" = yes; then
 
25211
        case $host_os in aix4.[012]|aix4.[012].*)
 
25212
        # We only want to do this on AIX 4.2 and lower, the check
 
25213
        # below for broken collect2 doesn't work under 4.3+
 
25214
          collect2name=`${CC} -print-prog-name=collect2`
 
25215
          if test -f "$collect2name" && \
 
25216
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
25217
          then
 
25218
          # We have reworked collect2
 
25219
          hardcode_direct_F77=yes
 
25220
          else
 
25221
          # We have old collect2
 
25222
          hardcode_direct_F77=unsupported
 
25223
          # It fails to find uninstalled libraries when the uninstalled
 
25224
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
25225
          # to unsupported forces relinking
 
25226
          hardcode_minus_L_F77=yes
 
25227
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
25228
          hardcode_libdir_separator_F77=
 
25229
          fi
 
25230
        esac
 
25231
        shared_flag='-shared'
 
25232
        if test "$aix_use_runtimelinking" = yes; then
 
25233
          shared_flag="$shared_flag "'${wl}-G'
 
25234
        fi
 
25235
      else
 
25236
        # not using gcc
 
25237
        if test "$host_cpu" = ia64; then
 
25238
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
25239
        # chokes on -Wl,-G. The following line is correct:
 
25240
          shared_flag='-G'
 
25241
        else
 
25242
        if test "$aix_use_runtimelinking" = yes; then
 
25243
            shared_flag='${wl}-G'
 
25244
          else
 
25245
            shared_flag='${wl}-bM:SRE'
 
25246
        fi
 
25247
        fi
 
25248
      fi
 
25249
 
 
25250
      # It seems that -bexpall does not export symbols beginning with
 
25251
      # underscore (_), so it is better to generate a list of symbols to export.
 
25252
      always_export_symbols_F77=yes
 
25253
      if test "$aix_use_runtimelinking" = yes; then
 
25254
        # Warning - without using the other runtime loading flags (-brtl),
 
25255
        # -berok will link without error, but may produce a broken library.
 
25256
        allow_undefined_flag_F77='-berok'
 
25257
       # Determine the default libpath from the value encoded in an empty executable.
 
25258
       cat >conftest.$ac_ext <<_ACEOF
 
25259
      program main
 
25260
 
 
25261
      end
 
25262
_ACEOF
 
25263
rm -f conftest.$ac_objext conftest$ac_exeext
 
25264
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25265
  (eval $ac_link) 2>conftest.er1
 
25266
  ac_status=$?
 
25267
  grep -v '^ *+' conftest.er1 >conftest.err
 
25268
  rm -f conftest.er1
 
25269
  cat conftest.err >&5
 
25270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25271
  (exit $ac_status); } &&
 
25272
         { ac_try='test -z "$ac_f77_werror_flag"
 
25273
                         || test ! -s conftest.err'
 
25274
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25275
  (eval $ac_try) 2>&5
 
25276
  ac_status=$?
 
25277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25278
  (exit $ac_status); }; } &&
 
25279
         { ac_try='test -s conftest$ac_exeext'
 
25280
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25281
  (eval $ac_try) 2>&5
 
25282
  ac_status=$?
 
25283
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25284
  (exit $ac_status); }; }; then
 
25285
 
 
25286
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
25287
}'`
 
25288
# Check for a 64-bit object if we didn't find anything.
 
25289
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
25290
}'`; fi
 
25291
else
 
25292
  echo "$as_me: failed program was:" >&5
 
25293
sed 's/^/| /' conftest.$ac_ext >&5
 
25294
 
 
25295
fi
 
25296
rm -f conftest.err conftest.$ac_objext \
 
25297
      conftest$ac_exeext conftest.$ac_ext
 
25298
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
25299
 
 
25300
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
25301
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
25302
       else
 
25303
        if test "$host_cpu" = ia64; then
 
25304
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
25305
          allow_undefined_flag_F77="-z nodefs"
 
25306
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
25307
        else
 
25308
         # Determine the default libpath from the value encoded in an empty executable.
 
25309
         cat >conftest.$ac_ext <<_ACEOF
 
25310
      program main
 
25311
 
 
25312
      end
 
25313
_ACEOF
 
25314
rm -f conftest.$ac_objext conftest$ac_exeext
 
25315
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25316
  (eval $ac_link) 2>conftest.er1
 
25317
  ac_status=$?
 
25318
  grep -v '^ *+' conftest.er1 >conftest.err
 
25319
  rm -f conftest.er1
 
25320
  cat conftest.err >&5
 
25321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25322
  (exit $ac_status); } &&
 
25323
         { ac_try='test -z "$ac_f77_werror_flag"
 
25324
                         || test ! -s conftest.err'
 
25325
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25326
  (eval $ac_try) 2>&5
 
25327
  ac_status=$?
 
25328
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25329
  (exit $ac_status); }; } &&
 
25330
         { ac_try='test -s conftest$ac_exeext'
 
25331
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25332
  (eval $ac_try) 2>&5
 
25333
  ac_status=$?
 
25334
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25335
  (exit $ac_status); }; }; then
 
25336
 
 
25337
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
25338
}'`
 
25339
# Check for a 64-bit object if we didn't find anything.
 
25340
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
25341
}'`; fi
 
25342
else
 
25343
  echo "$as_me: failed program was:" >&5
 
25344
sed 's/^/| /' conftest.$ac_ext >&5
 
25345
 
 
25346
fi
 
25347
rm -f conftest.err conftest.$ac_objext \
 
25348
      conftest$ac_exeext conftest.$ac_ext
 
25349
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
25350
 
 
25351
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
25352
          # Warning - without using the other run time loading flags,
 
25353
          # -berok will link without error, but may produce a broken library.
 
25354
          no_undefined_flag_F77=' ${wl}-bernotok'
 
25355
          allow_undefined_flag_F77=' ${wl}-berok'
 
25356
          # -bexpall does not export symbols beginning with underscore (_)
 
25357
          always_export_symbols_F77=yes
 
25358
          # Exported symbols can be pulled into shared objects from archives
 
25359
          whole_archive_flag_spec_F77=' '
 
25360
          archive_cmds_need_lc_F77=yes
 
25361
          # This is similar to how AIX traditionally builds its shared libraries.
 
25362
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
25363
        fi
 
25364
      fi
 
25365
      ;;
 
25366
 
 
25367
    amigaos*)
 
25368
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
25369
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
25370
      hardcode_minus_L_F77=yes
 
25371
      # see comment about different semantics on the GNU ld section
 
25372
      ld_shlibs_F77=no
 
25373
      ;;
 
25374
 
 
25375
    bsdi[45]*)
 
25376
      export_dynamic_flag_spec_F77=-rdynamic
 
25377
      ;;
 
25378
 
 
25379
    cygwin* | mingw* | pw32*)
 
25380
      # When not using gcc, we currently assume that we are using
 
25381
      # Microsoft Visual C++.
 
25382
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
25383
      # no search path for DLLs.
 
25384
      hardcode_libdir_flag_spec_F77=' '
 
25385
      allow_undefined_flag_F77=unsupported
 
25386
      # Tell ltmain to make .lib files, not .a files.
 
25387
      libext=lib
 
25388
      # Tell ltmain to make .dll files, not .so files.
 
25389
      shrext_cmds=".dll"
 
25390
      # FIXME: Setting linknames here is a bad hack.
 
25391
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
25392
      # The linker will automatically build a .lib file if we build a DLL.
 
25393
      old_archive_From_new_cmds_F77='true'
 
25394
      # FIXME: Should let the user specify the lib program.
 
25395
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
25396
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
25397
      enable_shared_with_static_runtimes_F77=yes
 
25398
      ;;
 
25399
 
 
25400
    darwin* | rhapsody*)
 
25401
      case $host_os in
 
25402
        rhapsody* | darwin1.[012])
 
25403
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
25404
         ;;
 
25405
       *) # Darwin 1.3 on
 
25406
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
25407
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
25408
         else
 
25409
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
25410
             10.[012])
 
25411
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
25412
               ;;
 
25413
             10.*)
 
25414
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
25415
               ;;
 
25416
           esac
 
25417
         fi
 
25418
         ;;
 
25419
      esac
 
25420
      archive_cmds_need_lc_F77=no
 
25421
      hardcode_direct_F77=no
 
25422
      hardcode_automatic_F77=yes
 
25423
      hardcode_shlibpath_var_F77=unsupported
 
25424
      whole_archive_flag_spec_F77=''
 
25425
      link_all_deplibs_F77=yes
 
25426
    if test "$GCC" = yes ; then
 
25427
        output_verbose_link_cmd='echo'
 
25428
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
25429
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
25430
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
25431
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
25432
      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
25433
    else
 
25434
      case $cc_basename in
 
25435
        xlc*)
 
25436
         output_verbose_link_cmd='echo'
 
25437
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
25438
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
25439
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
25440
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
25441
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
25442
          ;;
 
25443
       *)
 
25444
         ld_shlibs_F77=no
 
25445
          ;;
 
25446
      esac
 
25447
    fi
 
25448
      ;;
 
25449
 
 
25450
    dgux*)
 
25451
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
25452
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
25453
      hardcode_shlibpath_var_F77=no
 
25454
      ;;
 
25455
 
 
25456
    freebsd1*)
 
25457
      ld_shlibs_F77=no
 
25458
      ;;
 
25459
 
 
25460
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
25461
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
25462
    # does not break anything, and helps significantly (at the cost of a little
 
25463
    # extra space).
 
25464
    freebsd2.2*)
 
25465
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
25466
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
25467
      hardcode_direct_F77=yes
 
25468
      hardcode_shlibpath_var_F77=no
 
25469
      ;;
 
25470
 
 
25471
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
25472
    freebsd2*)
 
25473
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
25474
      hardcode_direct_F77=yes
 
25475
      hardcode_minus_L_F77=yes
 
25476
      hardcode_shlibpath_var_F77=no
 
25477
      ;;
 
25478
 
 
25479
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
25480
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
25481
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
25482
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
25483
      hardcode_direct_F77=yes
 
25484
      hardcode_shlibpath_var_F77=no
 
25485
      ;;
 
25486
 
 
25487
    hpux9*)
 
25488
      if test "$GCC" = yes; then
 
25489
        archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
25490
      else
 
25491
        archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
25492
      fi
 
25493
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
25494
      hardcode_libdir_separator_F77=:
 
25495
      hardcode_direct_F77=yes
 
25496
 
 
25497
      # hardcode_minus_L: Not really in the search PATH,
 
25498
      # but as the default location of the library.
 
25499
      hardcode_minus_L_F77=yes
 
25500
      export_dynamic_flag_spec_F77='${wl}-E'
 
25501
      ;;
 
25502
 
 
25503
    hpux10* | hpux11*)
 
25504
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
25505
        case $host_cpu in
 
25506
        hppa*64*|ia64*)
 
25507
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
25508
          ;;
 
25509
        *)
 
25510
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
25511
          ;;
 
25512
        esac
 
25513
      else
 
25514
        case $host_cpu in
 
25515
        hppa*64*|ia64*)
 
25516
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
25517
          ;;
 
25518
        *)
 
25519
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
25520
          ;;
 
25521
        esac
 
25522
      fi
 
25523
      if test "$with_gnu_ld" = no; then
 
25524
        case $host_cpu in
 
25525
        hppa*64*)
 
25526
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
25527
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
25528
          hardcode_libdir_separator_F77=:
 
25529
          hardcode_direct_F77=no
 
25530
          hardcode_shlibpath_var_F77=no
 
25531
          ;;
 
25532
        ia64*)
 
25533
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
25534
          hardcode_direct_F77=no
 
25535
          hardcode_shlibpath_var_F77=no
 
25536
 
 
25537
          # hardcode_minus_L: Not really in the search PATH,
 
25538
          # but as the default location of the library.
 
25539
          hardcode_minus_L_F77=yes
 
25540
          ;;
 
25541
        *)
 
25542
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
25543
          hardcode_libdir_separator_F77=:
 
25544
          hardcode_direct_F77=yes
 
25545
          export_dynamic_flag_spec_F77='${wl}-E'
 
25546
 
 
25547
          # hardcode_minus_L: Not really in the search PATH,
 
25548
          # but as the default location of the library.
 
25549
          hardcode_minus_L_F77=yes
 
25550
          ;;
 
25551
        esac
 
25552
      fi
 
25553
      ;;
 
25554
 
 
25555
    irix5* | irix6* | nonstopux*)
 
25556
      if test "$GCC" = yes; then
 
25557
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
25558
      else
 
25559
        archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
25560
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
25561
      fi
 
25562
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
25563
      hardcode_libdir_separator_F77=:
 
25564
      link_all_deplibs_F77=yes
 
25565
      ;;
 
25566
 
 
25567
    netbsd*)
 
25568
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
25569
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
25570
      else
 
25571
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
25572
      fi
 
25573
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
25574
      hardcode_direct_F77=yes
 
25575
      hardcode_shlibpath_var_F77=no
 
25576
      ;;
 
25577
 
 
25578
    newsos6)
 
25579
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
25580
      hardcode_direct_F77=yes
 
25581
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
25582
      hardcode_libdir_separator_F77=:
 
25583
      hardcode_shlibpath_var_F77=no
 
25584
      ;;
 
25585
 
 
25586
    openbsd*)
 
25587
      hardcode_direct_F77=yes
 
25588
      hardcode_shlibpath_var_F77=no
 
25589
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
25590
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
25591
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
25592
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
25593
        export_dynamic_flag_spec_F77='${wl}-E'
 
25594
      else
 
25595
       case $host_os in
 
25596
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
25597
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
25598
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
25599
           ;;
 
25600
         *)
 
25601
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
25602
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
25603
           ;;
 
25604
       esac
 
25605
      fi
 
25606
      ;;
 
25607
 
 
25608
    os2*)
 
25609
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
25610
      hardcode_minus_L_F77=yes
 
25611
      allow_undefined_flag_F77=unsupported
 
25612
      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
25613
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
25614
      ;;
 
25615
 
 
25616
    osf3*)
 
25617
      if test "$GCC" = yes; then
 
25618
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
25619
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
25620
      else
 
25621
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
25622
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
25623
      fi
 
25624
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
25625
      hardcode_libdir_separator_F77=:
 
25626
      ;;
 
25627
 
 
25628
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
25629
      if test "$GCC" = yes; then
 
25630
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
25631
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
25632
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
25633
      else
 
25634
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
25635
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
25636
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
25637
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
25638
 
 
25639
        # Both c and cxx compiler support -rpath directly
 
25640
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
25641
      fi
 
25642
      hardcode_libdir_separator_F77=:
 
25643
      ;;
 
25644
 
 
25645
    sco3.2v5*)
 
25646
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
25647
      hardcode_shlibpath_var_F77=no
 
25648
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
25649
      runpath_var=LD_RUN_PATH
 
25650
      hardcode_runpath_var=yes
 
25651
      ;;
 
25652
 
 
25653
    solaris*)
 
25654
      no_undefined_flag_F77=' -z text'
 
25655
      if test "$GCC" = yes; then
 
25656
        wlarc='${wl}'
 
25657
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
25658
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
25659
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
25660
      else
 
25661
        wlarc=''
 
25662
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
25663
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
25664
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
25665
      fi
 
25666
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
25667
      hardcode_shlibpath_var_F77=no
 
25668
      case $host_os in
 
25669
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
25670
      *)
 
25671
        # The compiler driver will combine linker options so we
 
25672
        # cannot just pass the convience library names through
 
25673
        # without $wl, iff we do not link with $LD.
 
25674
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
25675
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
25676
        case $wlarc in
 
25677
        '')
 
25678
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
25679
        *)
 
25680
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
25681
        esac ;;
 
25682
      esac
 
25683
      link_all_deplibs_F77=yes
 
25684
      ;;
 
25685
 
 
25686
    sunos4*)
 
25687
      if test "x$host_vendor" = xsequent; then
 
25688
        # Use $CC to link under sequent, because it throws in some extra .o
 
25689
        # files that make .init and .fini sections work.
 
25690
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
25691
      else
 
25692
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
25693
      fi
 
25694
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
25695
      hardcode_direct_F77=yes
 
25696
      hardcode_minus_L_F77=yes
 
25697
      hardcode_shlibpath_var_F77=no
 
25698
      ;;
 
25699
 
 
25700
    sysv4)
 
25701
      case $host_vendor in
 
25702
        sni)
 
25703
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
25704
          hardcode_direct_F77=yes # is this really true???
 
25705
        ;;
 
25706
        siemens)
 
25707
          ## LD is ld it makes a PLAMLIB
 
25708
          ## CC just makes a GrossModule.
 
25709
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
25710
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
25711
          hardcode_direct_F77=no
 
25712
        ;;
 
25713
        motorola)
 
25714
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
25715
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
25716
        ;;
 
25717
      esac
 
25718
      runpath_var='LD_RUN_PATH'
 
25719
      hardcode_shlibpath_var_F77=no
 
25720
      ;;
 
25721
 
 
25722
    sysv4.3*)
 
25723
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
25724
      hardcode_shlibpath_var_F77=no
 
25725
      export_dynamic_flag_spec_F77='-Bexport'
 
25726
      ;;
 
25727
 
 
25728
    sysv4*MP*)
 
25729
      if test -d /usr/nec; then
 
25730
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
25731
        hardcode_shlibpath_var_F77=no
 
25732
        runpath_var=LD_RUN_PATH
 
25733
        hardcode_runpath_var=yes
 
25734
        ld_shlibs_F77=yes
 
25735
      fi
 
25736
      ;;
 
25737
 
 
25738
    sysv4.2uw2*)
 
25739
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
25740
      hardcode_direct_F77=yes
 
25741
      hardcode_minus_L_F77=no
 
25742
      hardcode_shlibpath_var_F77=no
 
25743
      hardcode_runpath_var=yes
 
25744
      runpath_var=LD_RUN_PATH
 
25745
      ;;
 
25746
 
 
25747
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
25748
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
25749
      if test "$GCC" = yes; then
 
25750
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
25751
      else
 
25752
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
25753
      fi
 
25754
      runpath_var='LD_RUN_PATH'
 
25755
      hardcode_shlibpath_var_F77=no
 
25756
      ;;
 
25757
 
 
25758
    sysv5*)
 
25759
      no_undefined_flag_F77=' -z text'
 
25760
      # $CC -shared without GNU ld will not create a library from C++
 
25761
      # object files and a static libstdc++, better avoid it by now
 
25762
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
25763
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
25764
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
25765
      hardcode_libdir_flag_spec_F77=
 
25766
      hardcode_shlibpath_var_F77=no
 
25767
      runpath_var='LD_RUN_PATH'
 
25768
      ;;
 
25769
 
 
25770
    uts4*)
 
25771
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
25772
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
25773
      hardcode_shlibpath_var_F77=no
 
25774
      ;;
 
25775
 
 
25776
    *)
 
25777
      ld_shlibs_F77=no
 
25778
      ;;
 
25779
    esac
 
25780
  fi
 
25781
 
 
25782
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
25783
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
25784
test "$ld_shlibs_F77" = no && can_build_shared=no
 
25785
 
 
25786
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
25787
if test "$GCC" = yes; then
 
25788
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
25789
fi
 
25790
 
 
25791
#
 
25792
# Do we need to explicitly link libc?
 
25793
#
 
25794
case "x$archive_cmds_need_lc_F77" in
 
25795
x|xyes)
 
25796
  # Assume -lc should be added
 
25797
  archive_cmds_need_lc_F77=yes
 
25798
 
 
25799
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
25800
    case $archive_cmds_F77 in
 
25801
    *'~'*)
 
25802
      # FIXME: we may have to deal with multi-command sequences.
 
25803
      ;;
 
25804
    '$CC '*)
 
25805
      # Test whether the compiler implicitly links with -lc since on some
 
25806
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
25807
      # to ld, don't add -lc before -lgcc.
 
25808
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
25809
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
25810
      $rm conftest*
 
25811
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
25812
 
 
25813
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25814
  (eval $ac_compile) 2>&5
 
25815
  ac_status=$?
 
25816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25817
  (exit $ac_status); } 2>conftest.err; then
 
25818
        soname=conftest
 
25819
        lib=conftest
 
25820
        libobjs=conftest.$ac_objext
 
25821
        deplibs=
 
25822
        wl=$lt_prog_compiler_wl_F77
 
25823
        compiler_flags=-v
 
25824
        linker_flags=-v
 
25825
        verstring=
 
25826
        output_objdir=.
 
25827
        libname=conftest
 
25828
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
25829
        allow_undefined_flag_F77=
 
25830
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
25831
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
25832
  ac_status=$?
 
25833
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25834
  (exit $ac_status); }
 
25835
        then
 
25836
          archive_cmds_need_lc_F77=no
 
25837
        else
 
25838
          archive_cmds_need_lc_F77=yes
 
25839
        fi
 
25840
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
25841
      else
 
25842
        cat conftest.err 1>&5
 
25843
      fi
 
25844
      $rm conftest*
 
25845
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
25846
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
25847
      ;;
 
25848
    esac
 
25849
  fi
 
25850
  ;;
 
25851
esac
 
25852
 
 
25853
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
25854
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
25855
library_names_spec=
 
25856
libname_spec='lib$name'
 
25857
soname_spec=
 
25858
shrext_cmds=".so"
 
25859
postinstall_cmds=
 
25860
postuninstall_cmds=
 
25861
finish_cmds=
 
25862
finish_eval=
 
25863
shlibpath_var=
 
25864
shlibpath_overrides_runpath=unknown
 
25865
version_type=none
 
25866
dynamic_linker="$host_os ld.so"
 
25867
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
25868
if test "$GCC" = yes; then
 
25869
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
25870
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
25871
    # if the path contains ";" then we assume it to be the separator
 
25872
    # otherwise default to the standard path separator (i.e. ":") - it is
 
25873
    # assumed that no part of a normal pathname contains ";" but that should
 
25874
    # okay in the real world where ";" in dirpaths is itself problematic.
 
25875
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
25876
  else
 
25877
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
25878
  fi
 
25879
else
 
25880
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
25881
fi
 
25882
need_lib_prefix=unknown
 
25883
hardcode_into_libs=no
 
25884
 
 
25885
# when you set need_version to no, make sure it does not cause -set_version
 
25886
# flags to be left without arguments
 
25887
need_version=unknown
 
25888
 
 
25889
case $host_os in
 
25890
aix3*)
 
25891
  version_type=linux
 
25892
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
25893
  shlibpath_var=LIBPATH
 
25894
 
 
25895
  # AIX 3 has no versioning support, so we append a major version to the name.
 
25896
  soname_spec='${libname}${release}${shared_ext}$major'
 
25897
  ;;
 
25898
 
 
25899
aix4* | aix5*)
 
25900
  version_type=linux
 
25901
  need_lib_prefix=no
 
25902
  need_version=no
 
25903
  hardcode_into_libs=yes
 
25904
  if test "$host_cpu" = ia64; then
 
25905
    # AIX 5 supports IA64
 
25906
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
25907
    shlibpath_var=LD_LIBRARY_PATH
 
25908
  else
 
25909
    # With GCC up to 2.95.x, collect2 would create an import file
 
25910
    # for dependence libraries.  The import file would start with
 
25911
    # the line `#! .'.  This would cause the generated library to
 
25912
    # depend on `.', always an invalid library.  This was fixed in
 
25913
    # development snapshots of GCC prior to 3.0.
 
25914
    case $host_os in
 
25915
      aix4 | aix4.[01] | aix4.[01].*)
 
25916
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
25917
           echo ' yes '
 
25918
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
25919
        :
 
25920
      else
 
25921
        can_build_shared=no
 
25922
      fi
 
25923
      ;;
 
25924
    esac
 
25925
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
25926
    # soname into executable. Probably we can add versioning support to
 
25927
    # collect2, so additional links can be useful in future.
 
25928
    if test "$aix_use_runtimelinking" = yes; then
 
25929
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
25930
      # instead of lib<name>.a to let people know that these are not
 
25931
      # typical AIX shared libraries.
 
25932
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
25933
    else
 
25934
      # We preserve .a as extension for shared libraries through AIX4.2
 
25935
      # and later when we are not doing run time linking.
 
25936
      library_names_spec='${libname}${release}.a $libname.a'
 
25937
      soname_spec='${libname}${release}${shared_ext}$major'
 
25938
    fi
 
25939
    shlibpath_var=LIBPATH
 
25940
  fi
 
25941
  ;;
 
25942
 
 
25943
amigaos*)
 
25944
  library_names_spec='$libname.ixlibrary $libname.a'
 
25945
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
25946
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
25947
  ;;
 
25948
 
 
25949
beos*)
 
25950
  library_names_spec='${libname}${shared_ext}'
 
25951
  dynamic_linker="$host_os ld.so"
 
25952
  shlibpath_var=LIBRARY_PATH
 
25953
  ;;
 
25954
 
 
25955
bsdi[45]*)
 
25956
  version_type=linux
 
25957
  need_version=no
 
25958
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
25959
  soname_spec='${libname}${release}${shared_ext}$major'
 
25960
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
25961
  shlibpath_var=LD_LIBRARY_PATH
 
25962
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
25963
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
25964
  # the default ld.so.conf also contains /usr/contrib/lib and
 
25965
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
25966
  # libtool to hard-code these into programs
 
25967
  ;;
 
25968
 
 
25969
cygwin* | mingw* | pw32*)
 
25970
  version_type=windows
 
25971
  shrext_cmds=".dll"
 
25972
  need_version=no
 
25973
  need_lib_prefix=no
 
25974
 
 
25975
  case $GCC,$host_os in
 
25976
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
25977
    library_names_spec='$libname.dll.a'
 
25978
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
25979
    postinstall_cmds='base_file=`basename \${file}`~
 
25980
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
25981
      dldir=$destdir/`dirname \$dlpath`~
 
25982
      test -d \$dldir || mkdir -p \$dldir~
 
25983
      $install_prog $dir/$dlname \$dldir/$dlname~
 
25984
      chmod a+x \$dldir/$dlname'
 
25985
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
25986
      dlpath=$dir/\$dldll~
 
25987
       $rm \$dlpath'
 
25988
    shlibpath_overrides_runpath=yes
 
25989
 
 
25990
    case $host_os in
 
25991
    cygwin*)
 
25992
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
25993
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
25994
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
25995
      ;;
 
25996
    mingw*)
 
25997
      # MinGW DLLs use traditional 'lib' prefix
 
25998
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
25999
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
26000
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
26001
        # It is most probably a Windows format PATH printed by
 
26002
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
26003
        # path with ; separators, and with drive letters. We can handle the
 
26004
        # drive letters (cygwin fileutils understands them), so leave them,
 
26005
        # especially as we might pass files found there to a mingw objdump,
 
26006
        # which wouldn't understand a cygwinified path. Ahh.
 
26007
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
26008
      else
 
26009
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
26010
      fi
 
26011
      ;;
 
26012
    pw32*)
 
26013
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
26014
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
26015
      ;;
 
26016
    esac
 
26017
    ;;
 
26018
 
 
26019
  *)
 
26020
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
26021
    ;;
 
26022
  esac
 
26023
  dynamic_linker='Win32 ld.exe'
 
26024
  # FIXME: first we should search . and the directory the executable is in
 
26025
  shlibpath_var=PATH
 
26026
  ;;
 
26027
 
 
26028
darwin* | rhapsody*)
 
26029
  dynamic_linker="$host_os dyld"
 
26030
  version_type=darwin
 
26031
  need_lib_prefix=no
 
26032
  need_version=no
 
26033
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
26034
  soname_spec='${libname}${release}${major}$shared_ext'
 
26035
  shlibpath_overrides_runpath=yes
 
26036
  shlibpath_var=DYLD_LIBRARY_PATH
 
26037
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
26038
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
26039
  if test "$GCC" = yes; then
 
26040
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
26041
  else
 
26042
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
26043
  fi
 
26044
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
26045
  ;;
 
26046
 
 
26047
dgux*)
 
26048
  version_type=linux
 
26049
  need_lib_prefix=no
 
26050
  need_version=no
 
26051
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
26052
  soname_spec='${libname}${release}${shared_ext}$major'
 
26053
  shlibpath_var=LD_LIBRARY_PATH
 
26054
  ;;
 
26055
 
 
26056
freebsd1*)
 
26057
  dynamic_linker=no
 
26058
  ;;
 
26059
 
 
26060
kfreebsd*-gnu)
 
26061
  version_type=linux
 
26062
  need_lib_prefix=no
 
26063
  need_version=no
 
26064
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
26065
  soname_spec='${libname}${release}${shared_ext}$major'
 
26066
  shlibpath_var=LD_LIBRARY_PATH
 
26067
  shlibpath_overrides_runpath=no
 
26068
  hardcode_into_libs=yes
 
26069
  dynamic_linker='GNU ld.so'
 
26070
  ;;
 
26071
 
 
26072
freebsd* | dragonfly*)
 
26073
  # DragonFly does not have aout.  When/if they implement a new
 
26074
  # versioning mechanism, adjust this.
 
26075
  if test -x /usr/bin/objformat; then
 
26076
    objformat=`/usr/bin/objformat`
 
26077
  else
 
26078
    case $host_os in
 
26079
    freebsd[123]*) objformat=aout ;;
 
26080
    *) objformat=elf ;;
 
26081
    esac
 
26082
  fi
 
26083
  version_type=freebsd-$objformat
 
26084
  case $version_type in
 
26085
    freebsd-elf*)
 
26086
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
26087
      need_version=no
 
26088
      need_lib_prefix=no
 
26089
      ;;
 
26090
    freebsd-*)
 
26091
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
26092
      need_version=yes
 
26093
      ;;
 
26094
  esac
 
26095
  shlibpath_var=LD_LIBRARY_PATH
 
26096
  case $host_os in
 
26097
  freebsd2*)
 
26098
    shlibpath_overrides_runpath=yes
 
26099
    ;;
 
26100
  freebsd3.[01]* | freebsdelf3.[01]*)
 
26101
    shlibpath_overrides_runpath=yes
 
26102
    hardcode_into_libs=yes
 
26103
    ;;
 
26104
  *) # from 3.2 on
 
26105
    shlibpath_overrides_runpath=no
 
26106
    hardcode_into_libs=yes
 
26107
    ;;
 
26108
  esac
 
26109
  ;;
 
26110
 
 
26111
gnu*)
 
26112
  version_type=linux
 
26113
  need_lib_prefix=no
 
26114
  need_version=no
 
26115
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
26116
  soname_spec='${libname}${release}${shared_ext}$major'
 
26117
  shlibpath_var=LD_LIBRARY_PATH
 
26118
  hardcode_into_libs=yes
 
26119
  ;;
 
26120
 
 
26121
hpux9* | hpux10* | hpux11*)
 
26122
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
26123
  # link against other versions.
 
26124
  version_type=sunos
 
26125
  need_lib_prefix=no
 
26126
  need_version=no
 
26127
  case $host_cpu in
 
26128
  ia64*)
 
26129
    shrext_cmds='.so'
 
26130
    hardcode_into_libs=yes
 
26131
    dynamic_linker="$host_os dld.so"
 
26132
    shlibpath_var=LD_LIBRARY_PATH
 
26133
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
26134
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
26135
    soname_spec='${libname}${release}${shared_ext}$major'
 
26136
    if test "X$HPUX_IA64_MODE" = X32; then
 
26137
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
26138
    else
 
26139
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
26140
    fi
 
26141
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
26142
    ;;
 
26143
   hppa*64*)
 
26144
     shrext_cmds='.sl'
 
26145
     hardcode_into_libs=yes
 
26146
     dynamic_linker="$host_os dld.sl"
 
26147
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
26148
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
26149
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
26150
     soname_spec='${libname}${release}${shared_ext}$major'
 
26151
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
26152
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
26153
     ;;
 
26154
   *)
 
26155
    shrext_cmds='.sl'
 
26156
    dynamic_linker="$host_os dld.sl"
 
26157
    shlibpath_var=SHLIB_PATH
 
26158
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
26159
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
26160
    soname_spec='${libname}${release}${shared_ext}$major'
 
26161
    ;;
 
26162
  esac
 
26163
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
26164
  postinstall_cmds='chmod 555 $lib'
 
26165
  ;;
 
26166
 
 
26167
irix5* | irix6* | nonstopux*)
 
26168
  case $host_os in
 
26169
    nonstopux*) version_type=nonstopux ;;
 
26170
    *)
 
26171
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
26172
                version_type=linux
 
26173
        else
 
26174
                version_type=irix
 
26175
        fi ;;
 
26176
  esac
 
26177
  need_lib_prefix=no
 
26178
  need_version=no
 
26179
  soname_spec='${libname}${release}${shared_ext}$major'
 
26180
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
26181
  case $host_os in
 
26182
  irix5* | nonstopux*)
 
26183
    libsuff= shlibsuff=
 
26184
    ;;
 
26185
  *)
 
26186
    case $LD in # libtool.m4 will add one of these switches to LD
 
26187
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
26188
      libsuff= shlibsuff= libmagic=32-bit;;
 
26189
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
26190
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
26191
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
26192
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
26193
    *) libsuff= shlibsuff= libmagic=never-match;;
 
26194
    esac
 
26195
    ;;
 
26196
  esac
 
26197
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
26198
  shlibpath_overrides_runpath=no
 
26199
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
26200
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
26201
  hardcode_into_libs=yes
 
26202
  ;;
 
26203
 
 
26204
# No shared lib support for Linux oldld, aout, or coff.
 
26205
linux*oldld* | linux*aout* | linux*coff*)
 
26206
  dynamic_linker=no
 
26207
  ;;
 
26208
 
 
26209
# This must be Linux ELF.
 
26210
linux*)
 
26211
  version_type=linux
 
26212
  need_lib_prefix=no
 
26213
  need_version=no
 
26214
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
26215
  soname_spec='${libname}${release}${shared_ext}$major'
 
26216
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
26217
  shlibpath_var=LD_LIBRARY_PATH
 
26218
  shlibpath_overrides_runpath=no
 
26219
  # This implies no fast_install, which is unacceptable.
 
26220
  # Some rework will be needed to allow for fast_install
 
26221
  # before this can be enabled.
 
26222
  hardcode_into_libs=yes
 
26223
 
 
26224
  # Append ld.so.conf contents to the search path
 
26225
  if test -f /etc/ld.so.conf; then
 
26226
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
26227
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
26228
  fi
 
26229
 
 
26230
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
26231
  # powerpc, because MkLinux only supported shared libraries with the
 
26232
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
26233
  # most powerpc-linux boxes support dynamic linking these days and
 
26234
  # people can always --disable-shared, the test was removed, and we
 
26235
  # assume the GNU/Linux dynamic linker is in use.
 
26236
  dynamic_linker='GNU/Linux ld.so'
 
26237
  ;;
 
26238
 
 
26239
knetbsd*-gnu)
 
26240
  version_type=linux
 
26241
  need_lib_prefix=no
 
26242
  need_version=no
 
26243
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
26244
  soname_spec='${libname}${release}${shared_ext}$major'
 
26245
  shlibpath_var=LD_LIBRARY_PATH
 
26246
  shlibpath_overrides_runpath=no
 
26247
  hardcode_into_libs=yes
 
26248
  dynamic_linker='GNU ld.so'
 
26249
  ;;
 
26250
 
 
26251
netbsd*)
 
26252
  version_type=sunos
 
26253
  need_lib_prefix=no
 
26254
  need_version=no
 
26255
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
26256
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
26257
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
26258
    dynamic_linker='NetBSD (a.out) ld.so'
 
26259
  else
 
26260
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
26261
    soname_spec='${libname}${release}${shared_ext}$major'
 
26262
    dynamic_linker='NetBSD ld.elf_so'
 
26263
  fi
 
26264
  shlibpath_var=LD_LIBRARY_PATH
 
26265
  shlibpath_overrides_runpath=yes
 
26266
  hardcode_into_libs=yes
 
26267
  ;;
 
26268
 
 
26269
newsos6)
 
26270
  version_type=linux
 
26271
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
26272
  shlibpath_var=LD_LIBRARY_PATH
 
26273
  shlibpath_overrides_runpath=yes
 
26274
  ;;
 
26275
 
 
26276
nto-qnx*)
 
26277
  version_type=linux
 
26278
  need_lib_prefix=no
 
26279
  need_version=no
 
26280
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
26281
  soname_spec='${libname}${release}${shared_ext}$major'
 
26282
  shlibpath_var=LD_LIBRARY_PATH
 
26283
  shlibpath_overrides_runpath=yes
 
26284
  ;;
 
26285
 
 
26286
openbsd*)
 
26287
  version_type=sunos
 
26288
  need_lib_prefix=no
 
26289
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
26290
  case $host_os in
 
26291
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
26292
    *)                         need_version=no  ;;
 
26293
  esac
 
26294
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
26295
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
26296
  shlibpath_var=LD_LIBRARY_PATH
 
26297
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
26298
    case $host_os in
 
26299
      openbsd2.[89] | openbsd2.[89].*)
 
26300
        shlibpath_overrides_runpath=no
 
26301
        ;;
 
26302
      *)
 
26303
        shlibpath_overrides_runpath=yes
 
26304
        ;;
 
26305
      esac
 
26306
  else
 
26307
    shlibpath_overrides_runpath=yes
 
26308
  fi
 
26309
  ;;
 
26310
 
 
26311
os2*)
 
26312
  libname_spec='$name'
 
26313
  shrext_cmds=".dll"
 
26314
  need_lib_prefix=no
 
26315
  library_names_spec='$libname${shared_ext} $libname.a'
 
26316
  dynamic_linker='OS/2 ld.exe'
 
26317
  shlibpath_var=LIBPATH
 
26318
  ;;
 
26319
 
 
26320
osf3* | osf4* | osf5*)
 
26321
  version_type=osf
 
26322
  need_lib_prefix=no
 
26323
  need_version=no
 
26324
  soname_spec='${libname}${release}${shared_ext}$major'
 
26325
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
26326
  shlibpath_var=LD_LIBRARY_PATH
 
26327
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
26328
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
26329
  ;;
 
26330
 
 
26331
sco3.2v5*)
 
26332
  version_type=osf
 
26333
  soname_spec='${libname}${release}${shared_ext}$major'
 
26334
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
26335
  shlibpath_var=LD_LIBRARY_PATH
 
26336
  ;;
 
26337
 
 
26338
solaris*)
 
26339
  version_type=linux
 
26340
  need_lib_prefix=no
 
26341
  need_version=no
 
26342
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
26343
  soname_spec='${libname}${release}${shared_ext}$major'
 
26344
  shlibpath_var=LD_LIBRARY_PATH
 
26345
  shlibpath_overrides_runpath=yes
 
26346
  hardcode_into_libs=yes
 
26347
  # ldd complains unless libraries are executable
 
26348
  postinstall_cmds='chmod +x $lib'
 
26349
  ;;
 
26350
 
 
26351
sunos4*)
 
26352
  version_type=sunos
 
26353
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
26354
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
26355
  shlibpath_var=LD_LIBRARY_PATH
 
26356
  shlibpath_overrides_runpath=yes
 
26357
  if test "$with_gnu_ld" = yes; then
 
26358
    need_lib_prefix=no
 
26359
  fi
 
26360
  need_version=yes
 
26361
  ;;
 
26362
 
 
26363
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
26364
  version_type=linux
 
26365
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
26366
  soname_spec='${libname}${release}${shared_ext}$major'
 
26367
  shlibpath_var=LD_LIBRARY_PATH
 
26368
  case $host_vendor in
 
26369
    sni)
 
26370
      shlibpath_overrides_runpath=no
 
26371
      need_lib_prefix=no
 
26372
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
26373
      runpath_var=LD_RUN_PATH
 
26374
      ;;
 
26375
    siemens)
 
26376
      need_lib_prefix=no
 
26377
      ;;
 
26378
    motorola)
 
26379
      need_lib_prefix=no
 
26380
      need_version=no
 
26381
      shlibpath_overrides_runpath=no
 
26382
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
26383
      ;;
 
26384
  esac
 
26385
  ;;
 
26386
 
 
26387
sysv4*MP*)
 
26388
  if test -d /usr/nec ;then
 
26389
    version_type=linux
 
26390
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
26391
    soname_spec='$libname${shared_ext}.$major'
 
26392
    shlibpath_var=LD_LIBRARY_PATH
 
26393
  fi
 
26394
  ;;
 
26395
 
 
26396
uts4*)
 
26397
  version_type=linux
 
26398
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
26399
  soname_spec='${libname}${release}${shared_ext}$major'
 
26400
  shlibpath_var=LD_LIBRARY_PATH
 
26401
  ;;
 
26402
 
 
26403
*)
 
26404
  dynamic_linker=no
 
26405
  ;;
 
26406
esac
 
26407
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
26408
echo "${ECHO_T}$dynamic_linker" >&6
 
26409
test "$dynamic_linker" = no && can_build_shared=no
 
26410
 
 
26411
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
26412
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
26413
hardcode_action_F77=
 
26414
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
26415
   test -n "$runpath_var_F77" || \
 
26416
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
26417
 
 
26418
  # We can hardcode non-existant directories.
 
26419
  if test "$hardcode_direct_F77" != no &&
 
26420
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
26421
     # have to relink, otherwise we might link with an installed library
 
26422
     # when we should be linking with a yet-to-be-installed one
 
26423
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
26424
     test "$hardcode_minus_L_F77" != no; then
 
26425
    # Linking always hardcodes the temporary library directory.
 
26426
    hardcode_action_F77=relink
 
26427
  else
 
26428
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
26429
    hardcode_action_F77=immediate
 
26430
  fi
 
26431
else
 
26432
  # We cannot hardcode anything, or else we can only hardcode existing
 
26433
  # directories.
 
26434
  hardcode_action_F77=unsupported
 
26435
fi
 
26436
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
26437
echo "${ECHO_T}$hardcode_action_F77" >&6
 
26438
 
 
26439
if test "$hardcode_action_F77" = relink; then
 
26440
  # Fast installation is not supported
 
26441
  enable_fast_install=no
 
26442
elif test "$shlibpath_overrides_runpath" = yes ||
 
26443
     test "$enable_shared" = no; then
 
26444
  # Fast installation is not necessary
 
26445
  enable_fast_install=needless
 
26446
fi
 
26447
 
 
26448
striplib=
 
26449
old_striplib=
 
26450
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
26451
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
26452
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
26453
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
26454
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
26455
  echo "$as_me:$LINENO: result: yes" >&5
 
26456
echo "${ECHO_T}yes" >&6
 
26457
else
 
26458
# FIXME - insert some real tests, host_os isn't really good enough
 
26459
  case $host_os in
 
26460
   darwin*)
 
26461
       if test -n "$STRIP" ; then
 
26462
         striplib="$STRIP -x"
 
26463
         echo "$as_me:$LINENO: result: yes" >&5
 
26464
echo "${ECHO_T}yes" >&6
 
26465
       else
 
26466
  echo "$as_me:$LINENO: result: no" >&5
 
26467
echo "${ECHO_T}no" >&6
 
26468
fi
 
26469
       ;;
 
26470
   *)
 
26471
  echo "$as_me:$LINENO: result: no" >&5
 
26472
echo "${ECHO_T}no" >&6
 
26473
    ;;
 
26474
  esac
 
26475
fi
 
26476
 
 
26477
 
 
26478
 
 
26479
# The else clause should only fire when bootstrapping the
 
26480
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
26481
# with your package, and you will get complaints that there are
 
26482
# no rules to generate ltmain.sh.
 
26483
if test -f "$ltmain"; then
 
26484
  # See if we are running on zsh, and set the options which allow our commands through
 
26485
  # without removal of \ escapes.
 
26486
  if test -n "${ZSH_VERSION+set}" ; then
 
26487
    setopt NO_GLOB_SUBST
 
26488
  fi
 
26489
  # Now quote all the things that may contain metacharacters while being
 
26490
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
26491
  # variables and quote the copies for generation of the libtool script.
 
26492
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
26493
    SED SHELL STRIP \
 
26494
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
26495
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
26496
    deplibs_check_method reload_flag reload_cmds need_locks \
 
26497
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
26498
    lt_cv_sys_global_symbol_to_c_name_address \
 
26499
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
26500
    old_postinstall_cmds old_postuninstall_cmds \
 
26501
    compiler_F77 \
 
26502
    CC_F77 \
 
26503
    LD_F77 \
 
26504
    lt_prog_compiler_wl_F77 \
 
26505
    lt_prog_compiler_pic_F77 \
 
26506
    lt_prog_compiler_static_F77 \
 
26507
    lt_prog_compiler_no_builtin_flag_F77 \
 
26508
    export_dynamic_flag_spec_F77 \
 
26509
    thread_safe_flag_spec_F77 \
 
26510
    whole_archive_flag_spec_F77 \
 
26511
    enable_shared_with_static_runtimes_F77 \
 
26512
    old_archive_cmds_F77 \
 
26513
    old_archive_from_new_cmds_F77 \
 
26514
    predep_objects_F77 \
 
26515
    postdep_objects_F77 \
 
26516
    predeps_F77 \
 
26517
    postdeps_F77 \
 
26518
    compiler_lib_search_path_F77 \
 
26519
    archive_cmds_F77 \
 
26520
    archive_expsym_cmds_F77 \
 
26521
    postinstall_cmds_F77 \
 
26522
    postuninstall_cmds_F77 \
 
26523
    old_archive_from_expsyms_cmds_F77 \
 
26524
    allow_undefined_flag_F77 \
 
26525
    no_undefined_flag_F77 \
 
26526
    export_symbols_cmds_F77 \
 
26527
    hardcode_libdir_flag_spec_F77 \
 
26528
    hardcode_libdir_flag_spec_ld_F77 \
 
26529
    hardcode_libdir_separator_F77 \
 
26530
    hardcode_automatic_F77 \
 
26531
    module_cmds_F77 \
 
26532
    module_expsym_cmds_F77 \
 
26533
    lt_cv_prog_compiler_c_o_F77 \
 
26534
    exclude_expsyms_F77 \
 
26535
    include_expsyms_F77; do
 
26536
 
 
26537
    case $var in
 
26538
    old_archive_cmds_F77 | \
 
26539
    old_archive_from_new_cmds_F77 | \
 
26540
    archive_cmds_F77 | \
 
26541
    archive_expsym_cmds_F77 | \
 
26542
    module_cmds_F77 | \
 
26543
    module_expsym_cmds_F77 | \
 
26544
    old_archive_from_expsyms_cmds_F77 | \
 
26545
    export_symbols_cmds_F77 | \
 
26546
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
26547
    postinstall_cmds | postuninstall_cmds | \
 
26548
    old_postinstall_cmds | old_postuninstall_cmds | \
 
26549
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
26550
      # Double-quote double-evaled strings.
 
26551
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
26552
      ;;
 
26553
    *)
 
26554
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
26555
      ;;
 
26556
    esac
 
26557
  done
 
26558
 
 
26559
  case $lt_echo in
 
26560
  *'\$0 --fallback-echo"')
 
26561
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
26562
    ;;
 
26563
  esac
 
26564
 
 
26565
cfgfile="$ofile"
 
26566
 
 
26567
  cat <<__EOF__ >> "$cfgfile"
 
26568
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
26569
 
 
26570
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
26571
 
 
26572
# Shell to use when invoking shell scripts.
 
26573
SHELL=$lt_SHELL
 
26574
 
 
26575
# Whether or not to build shared libraries.
 
26576
build_libtool_libs=$enable_shared
 
26577
 
 
26578
# Whether or not to build static libraries.
 
26579
build_old_libs=$enable_static
 
26580
 
 
26581
# Whether or not to add -lc for building shared libraries.
 
26582
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
26583
 
 
26584
# Whether or not to disallow shared libs when runtime libs are static
 
26585
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
26586
 
 
26587
# Whether or not to optimize for fast installation.
 
26588
fast_install=$enable_fast_install
 
26589
 
 
26590
# The host system.
 
26591
host_alias=$host_alias
 
26592
host=$host
 
26593
host_os=$host_os
 
26594
 
 
26595
# The build system.
 
26596
build_alias=$build_alias
 
26597
build=$build
 
26598
build_os=$build_os
 
26599
 
 
26600
# An echo program that does not interpret backslashes.
 
26601
echo=$lt_echo
 
26602
 
 
26603
# The archiver.
 
26604
AR=$lt_AR
 
26605
AR_FLAGS=$lt_AR_FLAGS
 
26606
 
 
26607
# A C compiler.
 
26608
LTCC=$lt_LTCC
 
26609
 
 
26610
# A language-specific compiler.
 
26611
CC=$lt_compiler_F77
 
26612
 
 
26613
# Is the compiler the GNU C compiler?
 
26614
with_gcc=$GCC_F77
 
26615
 
 
26616
# An ERE matcher.
 
26617
EGREP=$lt_EGREP
 
26618
 
 
26619
# The linker used to build libraries.
 
26620
LD=$lt_LD_F77
 
26621
 
 
26622
# Whether we need hard or soft links.
 
26623
LN_S=$lt_LN_S
 
26624
 
 
26625
# A BSD-compatible nm program.
 
26626
NM=$lt_NM
 
26627
 
 
26628
# A symbol stripping program
 
26629
STRIP=$lt_STRIP
 
26630
 
 
26631
# Used to examine libraries when file_magic_cmd begins "file"
 
26632
MAGIC_CMD=$MAGIC_CMD
 
26633
 
 
26634
# Used on cygwin: DLL creation program.
 
26635
DLLTOOL="$DLLTOOL"
 
26636
 
 
26637
# Used on cygwin: object dumper.
 
26638
OBJDUMP="$OBJDUMP"
 
26639
 
 
26640
# Used on cygwin: assembler.
 
26641
AS="$AS"
 
26642
 
 
26643
# The name of the directory that contains temporary libtool files.
 
26644
objdir=$objdir
 
26645
 
 
26646
# How to create reloadable object files.
 
26647
reload_flag=$lt_reload_flag
 
26648
reload_cmds=$lt_reload_cmds
 
26649
 
 
26650
# How to pass a linker flag through the compiler.
 
26651
wl=$lt_lt_prog_compiler_wl_F77
 
26652
 
 
26653
# Object file suffix (normally "o").
 
26654
objext="$ac_objext"
 
26655
 
 
26656
# Old archive suffix (normally "a").
 
26657
libext="$libext"
 
26658
 
 
26659
# Shared library suffix (normally ".so").
 
26660
shrext_cmds='$shrext_cmds'
 
26661
 
 
26662
# Executable file suffix (normally "").
 
26663
exeext="$exeext"
 
26664
 
 
26665
# Additional compiler flags for building library objects.
 
26666
pic_flag=$lt_lt_prog_compiler_pic_F77
 
26667
pic_mode=$pic_mode
 
26668
 
 
26669
# What is the maximum length of a command?
 
26670
max_cmd_len=$lt_cv_sys_max_cmd_len
 
26671
 
 
26672
# Does compiler simultaneously support -c and -o options?
 
26673
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
26674
 
 
26675
# Must we lock files when doing compilation?
 
26676
need_locks=$lt_need_locks
 
26677
 
 
26678
# Do we need the lib prefix for modules?
 
26679
need_lib_prefix=$need_lib_prefix
 
26680
 
 
26681
# Do we need a version for libraries?
 
26682
need_version=$need_version
 
26683
 
 
26684
# Whether dlopen is supported.
 
26685
dlopen_support=$enable_dlopen
 
26686
 
 
26687
# Whether dlopen of programs is supported.
 
26688
dlopen_self=$enable_dlopen_self
 
26689
 
 
26690
# Whether dlopen of statically linked programs is supported.
 
26691
dlopen_self_static=$enable_dlopen_self_static
 
26692
 
 
26693
# Compiler flag to prevent dynamic linking.
 
26694
link_static_flag=$lt_lt_prog_compiler_static_F77
 
26695
 
 
26696
# Compiler flag to turn off builtin functions.
 
26697
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
26698
 
 
26699
# Compiler flag to allow reflexive dlopens.
 
26700
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
26701
 
 
26702
# Compiler flag to generate shared objects directly from archives.
 
26703
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
26704
 
 
26705
# Compiler flag to generate thread-safe objects.
 
26706
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
26707
 
 
26708
# Library versioning type.
 
26709
version_type=$version_type
 
26710
 
 
26711
# Format of library name prefix.
 
26712
libname_spec=$lt_libname_spec
 
26713
 
 
26714
# List of archive names.  First name is the real one, the rest are links.
 
26715
# The last name is the one that the linker finds with -lNAME.
 
26716
library_names_spec=$lt_library_names_spec
 
26717
 
 
26718
# The coded name of the library, if different from the real name.
 
26719
soname_spec=$lt_soname_spec
 
26720
 
 
26721
# Commands used to build and install an old-style archive.
 
26722
RANLIB=$lt_RANLIB
 
26723
old_archive_cmds=$lt_old_archive_cmds_F77
 
26724
old_postinstall_cmds=$lt_old_postinstall_cmds
 
26725
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
26726
 
 
26727
# Create an old-style archive from a shared archive.
 
26728
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
26729
 
 
26730
# Create a temporary old-style archive to link instead of a shared archive.
 
26731
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
26732
 
 
26733
# Commands used to build and install a shared archive.
 
26734
archive_cmds=$lt_archive_cmds_F77
 
26735
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
26736
postinstall_cmds=$lt_postinstall_cmds
 
26737
postuninstall_cmds=$lt_postuninstall_cmds
 
26738
 
 
26739
# Commands used to build a loadable module (assumed same as above if empty)
 
26740
module_cmds=$lt_module_cmds_F77
 
26741
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
26742
 
 
26743
# Commands to strip libraries.
 
26744
old_striplib=$lt_old_striplib
 
26745
striplib=$lt_striplib
 
26746
 
 
26747
# Dependencies to place before the objects being linked to create a
 
26748
# shared library.
 
26749
predep_objects=$lt_predep_objects_F77
 
26750
 
 
26751
# Dependencies to place after the objects being linked to create a
 
26752
# shared library.
 
26753
postdep_objects=$lt_postdep_objects_F77
 
26754
 
 
26755
# Dependencies to place before the objects being linked to create a
 
26756
# shared library.
 
26757
predeps=$lt_predeps_F77
 
26758
 
 
26759
# Dependencies to place after the objects being linked to create a
 
26760
# shared library.
 
26761
postdeps=$lt_postdeps_F77
 
26762
 
 
26763
# The library search path used internally by the compiler when linking
 
26764
# a shared library.
 
26765
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
26766
 
 
26767
# Method to check whether dependent libraries are shared objects.
 
26768
deplibs_check_method=$lt_deplibs_check_method
 
26769
 
 
26770
# Command to use when deplibs_check_method == file_magic.
 
26771
file_magic_cmd=$lt_file_magic_cmd
 
26772
 
 
26773
# Flag that allows shared libraries with undefined symbols to be built.
 
26774
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
26775
 
 
26776
# Flag that forces no undefined symbols.
 
26777
no_undefined_flag=$lt_no_undefined_flag_F77
 
26778
 
 
26779
# Commands used to finish a libtool library installation in a directory.
 
26780
finish_cmds=$lt_finish_cmds
 
26781
 
 
26782
# Same as above, but a single script fragment to be evaled but not shown.
 
26783
finish_eval=$lt_finish_eval
 
26784
 
 
26785
# Take the output of nm and produce a listing of raw symbols and C names.
 
26786
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
26787
 
 
26788
# Transform the output of nm in a proper C declaration
 
26789
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
26790
 
 
26791
# Transform the output of nm in a C name address pair
 
26792
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
26793
 
 
26794
# This is the shared library runtime path variable.
 
26795
runpath_var=$runpath_var
 
26796
 
 
26797
# This is the shared library path variable.
 
26798
shlibpath_var=$shlibpath_var
 
26799
 
 
26800
# Is shlibpath searched before the hard-coded library search path?
 
26801
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
26802
 
 
26803
# How to hardcode a shared library path into an executable.
 
26804
hardcode_action=$hardcode_action_F77
 
26805
 
 
26806
# Whether we should hardcode library paths into libraries.
 
26807
hardcode_into_libs=$hardcode_into_libs
 
26808
 
 
26809
# Flag to hardcode \$libdir into a binary during linking.
 
26810
# This must work even if \$libdir does not exist.
 
26811
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
26812
 
 
26813
# If ld is used when linking, flag to hardcode \$libdir into
 
26814
# a binary during linking. This must work even if \$libdir does
 
26815
# not exist.
 
26816
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
26817
 
 
26818
# Whether we need a single -rpath flag with a separated argument.
 
26819
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
26820
 
 
26821
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
26822
# resulting binary.
 
26823
hardcode_direct=$hardcode_direct_F77
 
26824
 
 
26825
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
26826
# resulting binary.
 
26827
hardcode_minus_L=$hardcode_minus_L_F77
 
26828
 
 
26829
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
26830
# the resulting binary.
 
26831
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
26832
 
 
26833
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
26834
# and all subsequent libraries and executables linked against it.
 
26835
hardcode_automatic=$hardcode_automatic_F77
 
26836
 
 
26837
# Variables whose values should be saved in libtool wrapper scripts and
 
26838
# restored at relink time.
 
26839
variables_saved_for_relink="$variables_saved_for_relink"
 
26840
 
 
26841
# Whether libtool must link a program against all its dependency libraries.
 
26842
link_all_deplibs=$link_all_deplibs_F77
 
26843
 
 
26844
# Compile-time system search path for libraries
 
26845
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
26846
 
 
26847
# Run-time system search path for libraries
 
26848
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
26849
 
 
26850
# Fix the shell variable \$srcfile for the compiler.
 
26851
fix_srcfile_path="$fix_srcfile_path_F77"
 
26852
 
 
26853
# Set to yes if exported symbols are required.
 
26854
always_export_symbols=$always_export_symbols_F77
 
26855
 
 
26856
# The commands to list exported symbols.
 
26857
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
26858
 
 
26859
# The commands to extract the exported symbol list from a shared archive.
 
26860
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
26861
 
 
26862
# Symbols that should not be listed in the preloaded symbols.
 
26863
exclude_expsyms=$lt_exclude_expsyms_F77
 
26864
 
 
26865
# Symbols that must always be exported.
 
26866
include_expsyms=$lt_include_expsyms_F77
 
26867
 
 
26868
# ### END LIBTOOL TAG CONFIG: $tagname
 
26869
 
 
26870
__EOF__
 
26871
 
 
26872
 
 
26873
else
 
26874
  # If there is no Makefile yet, we rely on a make rule to execute
 
26875
  # `config.status --recheck' to rerun these tests and create the
 
26876
  # libtool script then.
 
26877
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
26878
  if test -f "$ltmain_in"; then
 
26879
    test -f Makefile && make "$ltmain"
 
26880
  fi
 
26881
fi
 
26882
 
 
26883
 
 
26884
ac_ext=c
 
26885
ac_cpp='$CPP $CPPFLAGS'
 
26886
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
26887
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
26888
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
26889
 
 
26890
CC="$lt_save_CC"
 
26891
 
 
26892
        else
 
26893
          tagname=""
 
26894
        fi
 
26895
        ;;
 
26896
 
 
26897
      GCJ)
 
26898
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
26899
 
 
26900
 
 
26901
 
 
26902
# Source file extension for Java test sources.
 
26903
ac_ext=java
 
26904
 
 
26905
# Object file extension for compiled Java test sources.
 
26906
objext=o
 
26907
objext_GCJ=$objext
 
26908
 
 
26909
# Code to be used in simple compile tests
 
26910
lt_simple_compile_test_code="class foo {}\n"
 
26911
 
 
26912
# Code to be used in simple link tests
 
26913
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
26914
 
 
26915
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
26916
 
 
26917
# If no C compiler was specified, use CC.
 
26918
LTCC=${LTCC-"$CC"}
 
26919
 
 
26920
# Allow CC to be a program name with arguments.
 
26921
compiler=$CC
 
26922
 
 
26923
 
 
26924
# save warnings/boilerplate of simple test code
 
26925
ac_outfile=conftest.$ac_objext
 
26926
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
26927
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
26928
_lt_compiler_boilerplate=`cat conftest.err`
 
26929
$rm conftest*
 
26930
 
 
26931
ac_outfile=conftest.$ac_objext
 
26932
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
26933
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
26934
_lt_linker_boilerplate=`cat conftest.err`
 
26935
$rm conftest*
 
26936
 
 
26937
 
 
26938
# Allow CC to be a program name with arguments.
 
26939
lt_save_CC="$CC"
 
26940
CC=${GCJ-"gcj"}
 
26941
compiler=$CC
 
26942
compiler_GCJ=$CC
 
26943
for cc_temp in $compiler""; do
 
26944
  case $cc_temp in
 
26945
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
26946
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
26947
    \-*) ;;
 
26948
    *) break;;
 
26949
  esac
 
26950
done
 
26951
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
26952
 
 
26953
 
 
26954
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
26955
archive_cmds_need_lc_GCJ=no
 
26956
 
 
26957
old_archive_cmds_GCJ=$old_archive_cmds
 
26958
 
 
26959
 
 
26960
lt_prog_compiler_no_builtin_flag_GCJ=
 
26961
 
 
26962
if test "$GCC" = yes; then
 
26963
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
26964
 
 
26965
 
 
26966
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
26967
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
26968
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
26969
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26970
else
 
26971
  lt_cv_prog_compiler_rtti_exceptions=no
 
26972
  ac_outfile=conftest.$ac_objext
 
26973
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
26974
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
26975
   # Insert the option either (1) after the last *FLAGS variable, or
 
26976
   # (2) before a word containing "conftest.", or (3) at the end.
 
26977
   # Note that $ac_compile itself does not contain backslashes and begins
 
26978
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
26979
   # The option is referenced via a variable to avoid confusing sed.
 
26980
   lt_compile=`echo "$ac_compile" | $SED \
 
26981
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
26982
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
26983
   -e 's:$: $lt_compiler_flag:'`
 
26984
   (eval echo "\"\$as_me:26984: $lt_compile\"" >&5)
 
26985
   (eval "$lt_compile" 2>conftest.err)
 
26986
   ac_status=$?
 
26987
   cat conftest.err >&5
 
26988
   echo "$as_me:26988: \$? = $ac_status" >&5
 
26989
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
26990
     # The compiler can only warn and ignore the option if not recognized
 
26991
     # So say no if there are warnings other than the usual output.
 
26992
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
26993
     $SED '/^$/d' conftest.err >conftest.er2
 
26994
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
26995
       lt_cv_prog_compiler_rtti_exceptions=yes
 
26996
     fi
 
26997
   fi
 
26998
   $rm conftest*
 
26999
 
 
27000
fi
 
27001
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
27002
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
27003
 
 
27004
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
27005
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
27006
else
 
27007
    :
 
27008
fi
 
27009
 
 
27010
fi
 
27011
 
 
27012
lt_prog_compiler_wl_GCJ=
 
27013
lt_prog_compiler_pic_GCJ=
 
27014
lt_prog_compiler_static_GCJ=
 
27015
 
 
27016
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
27017
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
27018
 
 
27019
  if test "$GCC" = yes; then
 
27020
    lt_prog_compiler_wl_GCJ='-Wl,'
 
27021
    lt_prog_compiler_static_GCJ='-static'
 
27022
 
 
27023
    case $host_os in
 
27024
      aix*)
 
27025
      # All AIX code is PIC.
 
27026
      if test "$host_cpu" = ia64; then
 
27027
        # AIX 5 now supports IA64 processor
 
27028
        lt_prog_compiler_static_GCJ='-Bstatic'
 
27029
      fi
 
27030
      ;;
 
27031
 
 
27032
    amigaos*)
 
27033
      # FIXME: we need at least 68020 code to build shared libraries, but
 
27034
      # adding the `-m68020' flag to GCC prevents building anything better,
 
27035
      # like `-m68040'.
 
27036
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
27037
      ;;
 
27038
 
 
27039
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
27040
      # PIC is the default for these OSes.
 
27041
      ;;
 
27042
 
 
27043
    mingw* | pw32* | os2*)
 
27044
      # This hack is so that the source file can tell whether it is being
 
27045
      # built for inclusion in a dll (and should export symbols for example).
 
27046
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
27047
      ;;
 
27048
 
 
27049
    darwin* | rhapsody*)
 
27050
      # PIC is the default on this platform
 
27051
      # Common symbols not allowed in MH_DYLIB files
 
27052
      lt_prog_compiler_pic_GCJ='-fno-common'
 
27053
      ;;
 
27054
 
 
27055
    msdosdjgpp*)
 
27056
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
27057
      # on systems that don't support them.
 
27058
      lt_prog_compiler_can_build_shared_GCJ=no
 
27059
      enable_shared=no
 
27060
      ;;
 
27061
 
 
27062
    sysv4*MP*)
 
27063
      if test -d /usr/nec; then
 
27064
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
27065
      fi
 
27066
      ;;
 
27067
 
 
27068
    hpux*)
 
27069
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
27070
      # not for PA HP-UX.
 
27071
      case $host_cpu in
 
27072
      hppa*64*|ia64*)
 
27073
        # +Z the default
 
27074
        ;;
 
27075
      *)
 
27076
        lt_prog_compiler_pic_GCJ='-fPIC'
 
27077
        ;;
 
27078
      esac
 
27079
      ;;
 
27080
 
 
27081
    *)
 
27082
      lt_prog_compiler_pic_GCJ='-fPIC'
 
27083
      ;;
 
27084
    esac
 
27085
  else
 
27086
    # PORTME Check for flag to pass linker flags through the system compiler.
 
27087
    case $host_os in
 
27088
    aix*)
 
27089
      lt_prog_compiler_wl_GCJ='-Wl,'
 
27090
      if test "$host_cpu" = ia64; then
 
27091
        # AIX 5 now supports IA64 processor
 
27092
        lt_prog_compiler_static_GCJ='-Bstatic'
 
27093
      else
 
27094
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
27095
      fi
 
27096
      ;;
 
27097
      darwin*)
 
27098
        # PIC is the default on this platform
 
27099
        # Common symbols not allowed in MH_DYLIB files
 
27100
       case $cc_basename in
 
27101
         xlc*)
 
27102
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
27103
         lt_prog_compiler_wl_GCJ='-Wl,'
 
27104
         ;;
 
27105
       esac
 
27106
       ;;
 
27107
 
 
27108
    mingw* | pw32* | os2*)
 
27109
      # This hack is so that the source file can tell whether it is being
 
27110
      # built for inclusion in a dll (and should export symbols for example).
 
27111
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
27112
      ;;
 
27113
 
 
27114
    hpux9* | hpux10* | hpux11*)
 
27115
      lt_prog_compiler_wl_GCJ='-Wl,'
 
27116
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
27117
      # not for PA HP-UX.
 
27118
      case $host_cpu in
 
27119
      hppa*64*|ia64*)
 
27120
        # +Z the default
 
27121
        ;;
 
27122
      *)
 
27123
        lt_prog_compiler_pic_GCJ='+Z'
 
27124
        ;;
 
27125
      esac
 
27126
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
27127
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
27128
      ;;
 
27129
 
 
27130
    irix5* | irix6* | nonstopux*)
 
27131
      lt_prog_compiler_wl_GCJ='-Wl,'
 
27132
      # PIC (with -KPIC) is the default.
 
27133
      lt_prog_compiler_static_GCJ='-non_shared'
 
27134
      ;;
 
27135
 
 
27136
    newsos6)
 
27137
      lt_prog_compiler_pic_GCJ='-KPIC'
 
27138
      lt_prog_compiler_static_GCJ='-Bstatic'
 
27139
      ;;
 
27140
 
 
27141
    linux*)
 
27142
      case $cc_basename in
 
27143
      icc* | ecc*)
 
27144
        lt_prog_compiler_wl_GCJ='-Wl,'
 
27145
        lt_prog_compiler_pic_GCJ='-KPIC'
 
27146
        lt_prog_compiler_static_GCJ='-static'
 
27147
        ;;
 
27148
      pgcc* | pgf77* | pgf90* | pgf95*)
 
27149
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
27150
        # which looks to be a dead project)
 
27151
        lt_prog_compiler_wl_GCJ='-Wl,'
 
27152
        lt_prog_compiler_pic_GCJ='-fpic'
 
27153
        lt_prog_compiler_static_GCJ='-Bstatic'
 
27154
        ;;
 
27155
      ccc*)
 
27156
        lt_prog_compiler_wl_GCJ='-Wl,'
 
27157
        # All Alpha code is PIC.
 
27158
        lt_prog_compiler_static_GCJ='-non_shared'
 
27159
        ;;
 
27160
      esac
 
27161
      ;;
 
27162
 
 
27163
    osf3* | osf4* | osf5*)
 
27164
      lt_prog_compiler_wl_GCJ='-Wl,'
 
27165
      # All OSF/1 code is PIC.
 
27166
      lt_prog_compiler_static_GCJ='-non_shared'
 
27167
      ;;
 
27168
 
 
27169
    sco3.2v5*)
 
27170
      lt_prog_compiler_pic_GCJ='-Kpic'
 
27171
      lt_prog_compiler_static_GCJ='-dn'
 
27172
      ;;
 
27173
 
 
27174
    solaris*)
 
27175
      lt_prog_compiler_pic_GCJ='-KPIC'
 
27176
      lt_prog_compiler_static_GCJ='-Bstatic'
 
27177
      case $cc_basename in
 
27178
      f77* | f90* | f95*)
 
27179
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
27180
      *)
 
27181
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
27182
      esac
 
27183
      ;;
 
27184
 
 
27185
    sunos4*)
 
27186
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
27187
      lt_prog_compiler_pic_GCJ='-PIC'
 
27188
      lt_prog_compiler_static_GCJ='-Bstatic'
 
27189
      ;;
 
27190
 
 
27191
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
27192
      lt_prog_compiler_wl_GCJ='-Wl,'
 
27193
      lt_prog_compiler_pic_GCJ='-KPIC'
 
27194
      lt_prog_compiler_static_GCJ='-Bstatic'
 
27195
      ;;
 
27196
 
 
27197
    sysv4*MP*)
 
27198
      if test -d /usr/nec ;then
 
27199
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
27200
        lt_prog_compiler_static_GCJ='-Bstatic'
 
27201
      fi
 
27202
      ;;
 
27203
 
 
27204
    unicos*)
 
27205
      lt_prog_compiler_wl_GCJ='-Wl,'
 
27206
      lt_prog_compiler_can_build_shared_GCJ=no
 
27207
      ;;
 
27208
 
 
27209
    uts4*)
 
27210
      lt_prog_compiler_pic_GCJ='-pic'
 
27211
      lt_prog_compiler_static_GCJ='-Bstatic'
 
27212
      ;;
 
27213
 
 
27214
    *)
 
27215
      lt_prog_compiler_can_build_shared_GCJ=no
 
27216
      ;;
 
27217
    esac
 
27218
  fi
 
27219
 
 
27220
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
27221
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
27222
 
 
27223
#
 
27224
# Check to make sure the PIC flag actually works.
 
27225
#
 
27226
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
27227
 
 
27228
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
27229
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
27230
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
27231
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27232
else
 
27233
  lt_prog_compiler_pic_works_GCJ=no
 
27234
  ac_outfile=conftest.$ac_objext
 
27235
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
27236
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
27237
   # Insert the option either (1) after the last *FLAGS variable, or
 
27238
   # (2) before a word containing "conftest.", or (3) at the end.
 
27239
   # Note that $ac_compile itself does not contain backslashes and begins
 
27240
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
27241
   # The option is referenced via a variable to avoid confusing sed.
 
27242
   lt_compile=`echo "$ac_compile" | $SED \
 
27243
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
27244
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
27245
   -e 's:$: $lt_compiler_flag:'`
 
27246
   (eval echo "\"\$as_me:27246: $lt_compile\"" >&5)
 
27247
   (eval "$lt_compile" 2>conftest.err)
 
27248
   ac_status=$?
 
27249
   cat conftest.err >&5
 
27250
   echo "$as_me:27250: \$? = $ac_status" >&5
 
27251
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
27252
     # The compiler can only warn and ignore the option if not recognized
 
27253
     # So say no if there are warnings other than the usual output.
 
27254
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
27255
     $SED '/^$/d' conftest.err >conftest.er2
 
27256
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
27257
       lt_prog_compiler_pic_works_GCJ=yes
 
27258
     fi
 
27259
   fi
 
27260
   $rm conftest*
 
27261
 
 
27262
fi
 
27263
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
27264
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
27265
 
 
27266
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
27267
    case $lt_prog_compiler_pic_GCJ in
 
27268
     "" | " "*) ;;
 
27269
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
27270
     esac
 
27271
else
 
27272
    lt_prog_compiler_pic_GCJ=
 
27273
     lt_prog_compiler_can_build_shared_GCJ=no
 
27274
fi
 
27275
 
 
27276
fi
 
27277
case $host_os in
 
27278
  # For platforms which do not support PIC, -DPIC is meaningless:
 
27279
  *djgpp*)
 
27280
    lt_prog_compiler_pic_GCJ=
 
27281
    ;;
 
27282
  *)
 
27283
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
27284
    ;;
 
27285
esac
 
27286
 
 
27287
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
27288
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
27289
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
27290
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27291
else
 
27292
  lt_cv_prog_compiler_c_o_GCJ=no
 
27293
   $rm -r conftest 2>/dev/null
 
27294
   mkdir conftest
 
27295
   cd conftest
 
27296
   mkdir out
 
27297
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
27298
 
 
27299
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
27300
   # Insert the option either (1) after the last *FLAGS variable, or
 
27301
   # (2) before a word containing "conftest.", or (3) at the end.
 
27302
   # Note that $ac_compile itself does not contain backslashes and begins
 
27303
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
27304
   lt_compile=`echo "$ac_compile" | $SED \
 
27305
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
27306
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
27307
   -e 's:$: $lt_compiler_flag:'`
 
27308
   (eval echo "\"\$as_me:27308: $lt_compile\"" >&5)
 
27309
   (eval "$lt_compile" 2>out/conftest.err)
 
27310
   ac_status=$?
 
27311
   cat out/conftest.err >&5
 
27312
   echo "$as_me:27312: \$? = $ac_status" >&5
 
27313
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
27314
   then
 
27315
     # The compiler can only warn and ignore the option if not recognized
 
27316
     # So say no if there are warnings
 
27317
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
27318
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
27319
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
27320
       lt_cv_prog_compiler_c_o_GCJ=yes
 
27321
     fi
 
27322
   fi
 
27323
   chmod u+w . 2>&5
 
27324
   $rm conftest*
 
27325
   # SGI C++ compiler will create directory out/ii_files/ for
 
27326
   # template instantiation
 
27327
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
27328
   $rm out/* && rmdir out
 
27329
   cd ..
 
27330
   rmdir conftest
 
27331
   $rm conftest*
 
27332
 
 
27333
fi
 
27334
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
27335
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
27336
 
 
27337
 
 
27338
hard_links="nottested"
 
27339
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
27340
  # do not overwrite the value of need_locks provided by the user
 
27341
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
27342
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
27343
  hard_links=yes
 
27344
  $rm conftest*
 
27345
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
27346
  touch conftest.a
 
27347
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
27348
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
27349
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
27350
echo "${ECHO_T}$hard_links" >&6
 
27351
  if test "$hard_links" = no; then
 
27352
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
27353
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
27354
    need_locks=warn
 
27355
  fi
 
27356
else
 
27357
  need_locks=no
 
27358
fi
 
27359
 
 
27360
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
27361
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
27362
 
 
27363
  runpath_var=
 
27364
  allow_undefined_flag_GCJ=
 
27365
  enable_shared_with_static_runtimes_GCJ=no
 
27366
  archive_cmds_GCJ=
 
27367
  archive_expsym_cmds_GCJ=
 
27368
  old_archive_From_new_cmds_GCJ=
 
27369
  old_archive_from_expsyms_cmds_GCJ=
 
27370
  export_dynamic_flag_spec_GCJ=
 
27371
  whole_archive_flag_spec_GCJ=
 
27372
  thread_safe_flag_spec_GCJ=
 
27373
  hardcode_libdir_flag_spec_GCJ=
 
27374
  hardcode_libdir_flag_spec_ld_GCJ=
 
27375
  hardcode_libdir_separator_GCJ=
 
27376
  hardcode_direct_GCJ=no
 
27377
  hardcode_minus_L_GCJ=no
 
27378
  hardcode_shlibpath_var_GCJ=unsupported
 
27379
  link_all_deplibs_GCJ=unknown
 
27380
  hardcode_automatic_GCJ=no
 
27381
  module_cmds_GCJ=
 
27382
  module_expsym_cmds_GCJ=
 
27383
  always_export_symbols_GCJ=no
 
27384
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
27385
  # include_expsyms should be a list of space-separated symbols to be *always*
 
27386
  # included in the symbol list
 
27387
  include_expsyms_GCJ=
 
27388
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
27389
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
27390
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
27391
  # as well as any symbol that contains `d'.
 
27392
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
27393
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
27394
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
27395
  # the symbol is explicitly referenced.  Since portable code cannot
 
27396
  # rely on this symbol name, it's probably fine to never include it in
 
27397
  # preloaded symbol tables.
 
27398
  extract_expsyms_cmds=
 
27399
  # Just being paranoid about ensuring that cc_basename is set.
 
27400
  for cc_temp in $compiler""; do
 
27401
  case $cc_temp in
 
27402
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
27403
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
27404
    \-*) ;;
 
27405
    *) break;;
 
27406
  esac
 
27407
done
 
27408
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
27409
 
 
27410
  case $host_os in
 
27411
  cygwin* | mingw* | pw32*)
 
27412
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
27413
    # When not using gcc, we currently assume that we are using
 
27414
    # Microsoft Visual C++.
 
27415
    if test "$GCC" != yes; then
 
27416
      with_gnu_ld=no
 
27417
    fi
 
27418
    ;;
 
27419
  openbsd*)
 
27420
    with_gnu_ld=no
 
27421
    ;;
 
27422
  esac
 
27423
 
 
27424
  ld_shlibs_GCJ=yes
 
27425
  if test "$with_gnu_ld" = yes; then
 
27426
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
27427
    wlarc='${wl}'
 
27428
 
 
27429
    # Set some defaults for GNU ld with shared library support. These
 
27430
    # are reset later if shared libraries are not supported. Putting them
 
27431
    # here allows them to be overridden if necessary.
 
27432
    runpath_var=LD_RUN_PATH
 
27433
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
27434
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
27435
    # ancient GNU ld didn't support --whole-archive et. al.
 
27436
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
27437
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
27438
      else
 
27439
        whole_archive_flag_spec_GCJ=
 
27440
    fi
 
27441
    supports_anon_versioning=no
 
27442
    case `$LD -v 2>/dev/null` in
 
27443
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
27444
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
27445
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
27446
      *\ 2.11.*) ;; # other 2.11 versions
 
27447
      *) supports_anon_versioning=yes ;;
 
27448
    esac
 
27449
 
 
27450
    # See if GNU ld supports shared libraries.
 
27451
    case $host_os in
 
27452
    aix3* | aix4* | aix5*)
 
27453
      # On AIX/PPC, the GNU linker is very broken
 
27454
      if test "$host_cpu" != ia64; then
 
27455
        ld_shlibs_GCJ=no
 
27456
        cat <<EOF 1>&2
 
27457
 
 
27458
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
27459
*** to be unable to reliably create shared libraries on AIX.
 
27460
*** Therefore, libtool is disabling shared libraries support.  If you
 
27461
*** really care for shared libraries, you may want to modify your PATH
 
27462
*** so that a non-GNU linker is found, and then restart.
 
27463
 
 
27464
EOF
 
27465
      fi
 
27466
      ;;
 
27467
 
 
27468
    amigaos*)
 
27469
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
27470
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
27471
      hardcode_minus_L_GCJ=yes
 
27472
 
 
27473
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
27474
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
27475
      # to version 4, is to share data among multiple programs linked
 
27476
      # with the same dynamic library.  Since this doesn't match the
 
27477
      # behavior of shared libraries on other platforms, we can't use
 
27478
      # them.
 
27479
      ld_shlibs_GCJ=no
 
27480
      ;;
 
27481
 
 
27482
    beos*)
 
27483
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
27484
        allow_undefined_flag_GCJ=unsupported
 
27485
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
27486
        # support --undefined.  This deserves some investigation.  FIXME
 
27487
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
27488
      else
 
27489
        ld_shlibs_GCJ=no
 
27490
      fi
 
27491
      ;;
 
27492
 
 
27493
    cygwin* | mingw* | pw32*)
 
27494
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
27495
      # as there is no search path for DLLs.
 
27496
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
27497
      allow_undefined_flag_GCJ=unsupported
 
27498
      always_export_symbols_GCJ=no
 
27499
      enable_shared_with_static_runtimes_GCJ=yes
 
27500
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
27501
 
 
27502
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
27503
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
27504
        # If the export-symbols file already is a .def file (1st line
 
27505
        # is EXPORTS), use it as is; otherwise, prepend...
 
27506
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
27507
          cp $export_symbols $output_objdir/$soname.def;
 
27508
        else
 
27509
          echo EXPORTS > $output_objdir/$soname.def;
 
27510
          cat $export_symbols >> $output_objdir/$soname.def;
 
27511
        fi~
 
27512
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
27513
      else
 
27514
        ld_shlibs_GCJ=no
 
27515
      fi
 
27516
      ;;
 
27517
 
 
27518
    linux*)
 
27519
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
27520
        tmp_addflag=
 
27521
        case $cc_basename,$host_cpu in
 
27522
        pgcc*)                          # Portland Group C compiler
 
27523
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
27524
          tmp_addflag=' $pic_flag'
 
27525
          ;;
 
27526
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
27527
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
27528
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
27529
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
27530
          tmp_addflag=' -i_dynamic' ;;
 
27531
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
27532
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
27533
        ifc* | ifort*)                  # Intel Fortran compiler
 
27534
          tmp_addflag=' -nofor_main' ;;
 
27535
        esac
 
27536
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
27537
 
 
27538
        if test $supports_anon_versioning = yes; then
 
27539
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
27540
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
27541
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
27542
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
27543
        fi
 
27544
      else
 
27545
        ld_shlibs_GCJ=no
 
27546
      fi
 
27547
      ;;
 
27548
 
 
27549
    netbsd*)
 
27550
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
27551
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
27552
        wlarc=
 
27553
      else
 
27554
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
27555
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
27556
      fi
 
27557
      ;;
 
27558
 
 
27559
    solaris* | sysv5*)
 
27560
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
27561
        ld_shlibs_GCJ=no
 
27562
        cat <<EOF 1>&2
 
27563
 
 
27564
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
27565
*** create shared libraries on Solaris systems.  Therefore, libtool
 
27566
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
27567
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
27568
*** your PATH or compiler configuration so that the native linker is
 
27569
*** used, and then restart.
 
27570
 
 
27571
EOF
 
27572
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
27573
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
27574
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
27575
      else
 
27576
        ld_shlibs_GCJ=no
 
27577
      fi
 
27578
      ;;
 
27579
 
 
27580
    sunos4*)
 
27581
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
27582
      wlarc=
 
27583
      hardcode_direct_GCJ=yes
 
27584
      hardcode_shlibpath_var_GCJ=no
 
27585
      ;;
 
27586
 
 
27587
    *)
 
27588
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
27589
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
27590
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
27591
      else
 
27592
        ld_shlibs_GCJ=no
 
27593
      fi
 
27594
      ;;
 
27595
    esac
 
27596
 
 
27597
    if test "$ld_shlibs_GCJ" = no; then
 
27598
      runpath_var=
 
27599
      hardcode_libdir_flag_spec_GCJ=
 
27600
      export_dynamic_flag_spec_GCJ=
 
27601
      whole_archive_flag_spec_GCJ=
 
27602
    fi
 
27603
  else
 
27604
    # PORTME fill in a description of your system's linker (not GNU ld)
 
27605
    case $host_os in
 
27606
    aix3*)
 
27607
      allow_undefined_flag_GCJ=unsupported
 
27608
      always_export_symbols_GCJ=yes
 
27609
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
27610
      # Note: this linker hardcodes the directories in LIBPATH if there
 
27611
      # are no directories specified by -L.
 
27612
      hardcode_minus_L_GCJ=yes
 
27613
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
27614
        # Neither direct hardcoding nor static linking is supported with a
 
27615
        # broken collect2.
 
27616
        hardcode_direct_GCJ=unsupported
 
27617
      fi
 
27618
      ;;
 
27619
 
 
27620
    aix4* | aix5*)
 
27621
      if test "$host_cpu" = ia64; then
 
27622
        # On IA64, the linker does run time linking by default, so we don't
 
27623
        # have to do anything special.
 
27624
        aix_use_runtimelinking=no
 
27625
        exp_sym_flag='-Bexport'
 
27626
        no_entry_flag=""
 
27627
      else
 
27628
        # If we're using GNU nm, then we don't want the "-C" option.
 
27629
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
27630
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
27631
          export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
27632
        else
 
27633
          export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
27634
        fi
 
27635
        aix_use_runtimelinking=no
 
27636
 
 
27637
        # Test if we are trying to use run time linking or normal
 
27638
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
27639
        # need to do runtime linking.
 
27640
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
27641
          for ld_flag in $LDFLAGS; do
 
27642
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
27643
            aix_use_runtimelinking=yes
 
27644
            break
 
27645
          fi
 
27646
          done
 
27647
        esac
 
27648
 
 
27649
        exp_sym_flag='-bexport'
 
27650
        no_entry_flag='-bnoentry'
 
27651
      fi
 
27652
 
 
27653
      # When large executables or shared objects are built, AIX ld can
 
27654
      # have problems creating the table of contents.  If linking a library
 
27655
      # or program results in "error TOC overflow" add -mminimal-toc to
 
27656
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
27657
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
27658
 
 
27659
      archive_cmds_GCJ=''
 
27660
      hardcode_direct_GCJ=yes
 
27661
      hardcode_libdir_separator_GCJ=':'
 
27662
      link_all_deplibs_GCJ=yes
 
27663
 
 
27664
      if test "$GCC" = yes; then
 
27665
        case $host_os in aix4.[012]|aix4.[012].*)
 
27666
        # We only want to do this on AIX 4.2 and lower, the check
 
27667
        # below for broken collect2 doesn't work under 4.3+
 
27668
          collect2name=`${CC} -print-prog-name=collect2`
 
27669
          if test -f "$collect2name" && \
 
27670
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
27671
          then
 
27672
          # We have reworked collect2
 
27673
          hardcode_direct_GCJ=yes
 
27674
          else
 
27675
          # We have old collect2
 
27676
          hardcode_direct_GCJ=unsupported
 
27677
          # It fails to find uninstalled libraries when the uninstalled
 
27678
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
27679
          # to unsupported forces relinking
 
27680
          hardcode_minus_L_GCJ=yes
 
27681
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
27682
          hardcode_libdir_separator_GCJ=
 
27683
          fi
 
27684
        esac
 
27685
        shared_flag='-shared'
 
27686
        if test "$aix_use_runtimelinking" = yes; then
 
27687
          shared_flag="$shared_flag "'${wl}-G'
 
27688
        fi
 
27689
      else
 
27690
        # not using gcc
 
27691
        if test "$host_cpu" = ia64; then
 
27692
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
27693
        # chokes on -Wl,-G. The following line is correct:
 
27694
          shared_flag='-G'
 
27695
        else
 
27696
        if test "$aix_use_runtimelinking" = yes; then
 
27697
            shared_flag='${wl}-G'
 
27698
          else
 
27699
            shared_flag='${wl}-bM:SRE'
 
27700
        fi
 
27701
        fi
 
27702
      fi
 
27703
 
 
27704
      # It seems that -bexpall does not export symbols beginning with
 
27705
      # underscore (_), so it is better to generate a list of symbols to export.
 
27706
      always_export_symbols_GCJ=yes
 
27707
      if test "$aix_use_runtimelinking" = yes; then
 
27708
        # Warning - without using the other runtime loading flags (-brtl),
 
27709
        # -berok will link without error, but may produce a broken library.
 
27710
        allow_undefined_flag_GCJ='-berok'
 
27711
       # Determine the default libpath from the value encoded in an empty executable.
 
27712
       cat >conftest.$ac_ext <<_ACEOF
 
27713
/* confdefs.h.  */
 
27714
_ACEOF
 
27715
cat confdefs.h >>conftest.$ac_ext
 
27716
cat >>conftest.$ac_ext <<_ACEOF
 
27717
/* end confdefs.h.  */
 
27718
 
 
27719
int
 
27720
main ()
 
27721
{
 
27722
 
 
27723
  ;
 
27724
  return 0;
 
27725
}
 
27726
_ACEOF
 
27727
rm -f conftest.$ac_objext conftest$ac_exeext
 
27728
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27729
  (eval $ac_link) 2>conftest.er1
 
27730
  ac_status=$?
 
27731
  grep -v '^ *+' conftest.er1 >conftest.err
 
27732
  rm -f conftest.er1
 
27733
  cat conftest.err >&5
 
27734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27735
  (exit $ac_status); } &&
 
27736
         { ac_try='test -z "$ac_c_werror_flag"
 
27737
                         || test ! -s conftest.err'
 
27738
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27739
  (eval $ac_try) 2>&5
 
27740
  ac_status=$?
 
27741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27742
  (exit $ac_status); }; } &&
 
27743
         { ac_try='test -s conftest$ac_exeext'
 
27744
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27745
  (eval $ac_try) 2>&5
 
27746
  ac_status=$?
 
27747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27748
  (exit $ac_status); }; }; then
 
27749
 
 
27750
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
27751
}'`
 
27752
# Check for a 64-bit object if we didn't find anything.
 
27753
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
27754
}'`; fi
 
27755
else
 
27756
  echo "$as_me: failed program was:" >&5
 
27757
sed 's/^/| /' conftest.$ac_ext >&5
 
27758
 
 
27759
fi
 
27760
rm -f conftest.err conftest.$ac_objext \
 
27761
      conftest$ac_exeext conftest.$ac_ext
 
27762
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
27763
 
 
27764
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
27765
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
27766
       else
 
27767
        if test "$host_cpu" = ia64; then
 
27768
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
27769
          allow_undefined_flag_GCJ="-z nodefs"
 
27770
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
27771
        else
 
27772
         # Determine the default libpath from the value encoded in an empty executable.
 
27773
         cat >conftest.$ac_ext <<_ACEOF
 
27774
/* confdefs.h.  */
 
27775
_ACEOF
 
27776
cat confdefs.h >>conftest.$ac_ext
 
27777
cat >>conftest.$ac_ext <<_ACEOF
 
27778
/* end confdefs.h.  */
 
27779
 
 
27780
int
 
27781
main ()
 
27782
{
 
27783
 
 
27784
  ;
 
27785
  return 0;
 
27786
}
 
27787
_ACEOF
 
27788
rm -f conftest.$ac_objext conftest$ac_exeext
 
27789
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27790
  (eval $ac_link) 2>conftest.er1
 
27791
  ac_status=$?
 
27792
  grep -v '^ *+' conftest.er1 >conftest.err
 
27793
  rm -f conftest.er1
 
27794
  cat conftest.err >&5
 
27795
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27796
  (exit $ac_status); } &&
 
27797
         { ac_try='test -z "$ac_c_werror_flag"
 
27798
                         || test ! -s conftest.err'
 
27799
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27800
  (eval $ac_try) 2>&5
 
27801
  ac_status=$?
 
27802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27803
  (exit $ac_status); }; } &&
 
27804
         { ac_try='test -s conftest$ac_exeext'
 
27805
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27806
  (eval $ac_try) 2>&5
 
27807
  ac_status=$?
 
27808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27809
  (exit $ac_status); }; }; then
 
27810
 
 
27811
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
27812
}'`
 
27813
# Check for a 64-bit object if we didn't find anything.
 
27814
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
27815
}'`; fi
 
27816
else
 
27817
  echo "$as_me: failed program was:" >&5
 
27818
sed 's/^/| /' conftest.$ac_ext >&5
 
27819
 
 
27820
fi
 
27821
rm -f conftest.err conftest.$ac_objext \
 
27822
      conftest$ac_exeext conftest.$ac_ext
 
27823
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
27824
 
 
27825
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
27826
          # Warning - without using the other run time loading flags,
 
27827
          # -berok will link without error, but may produce a broken library.
 
27828
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
27829
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
27830
          # -bexpall does not export symbols beginning with underscore (_)
 
27831
          always_export_symbols_GCJ=yes
 
27832
          # Exported symbols can be pulled into shared objects from archives
 
27833
          whole_archive_flag_spec_GCJ=' '
 
27834
          archive_cmds_need_lc_GCJ=yes
 
27835
          # This is similar to how AIX traditionally builds its shared libraries.
 
27836
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
27837
        fi
 
27838
      fi
 
27839
      ;;
 
27840
 
 
27841
    amigaos*)
 
27842
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
27843
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
27844
      hardcode_minus_L_GCJ=yes
 
27845
      # see comment about different semantics on the GNU ld section
 
27846
      ld_shlibs_GCJ=no
 
27847
      ;;
 
27848
 
 
27849
    bsdi[45]*)
 
27850
      export_dynamic_flag_spec_GCJ=-rdynamic
 
27851
      ;;
 
27852
 
 
27853
    cygwin* | mingw* | pw32*)
 
27854
      # When not using gcc, we currently assume that we are using
 
27855
      # Microsoft Visual C++.
 
27856
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
27857
      # no search path for DLLs.
 
27858
      hardcode_libdir_flag_spec_GCJ=' '
 
27859
      allow_undefined_flag_GCJ=unsupported
 
27860
      # Tell ltmain to make .lib files, not .a files.
 
27861
      libext=lib
 
27862
      # Tell ltmain to make .dll files, not .so files.
 
27863
      shrext_cmds=".dll"
 
27864
      # FIXME: Setting linknames here is a bad hack.
 
27865
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
27866
      # The linker will automatically build a .lib file if we build a DLL.
 
27867
      old_archive_From_new_cmds_GCJ='true'
 
27868
      # FIXME: Should let the user specify the lib program.
 
27869
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
27870
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
27871
      enable_shared_with_static_runtimes_GCJ=yes
 
27872
      ;;
 
27873
 
 
27874
    darwin* | rhapsody*)
 
27875
      case $host_os in
 
27876
        rhapsody* | darwin1.[012])
 
27877
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
27878
         ;;
 
27879
       *) # Darwin 1.3 on
 
27880
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
27881
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
27882
         else
 
27883
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
27884
             10.[012])
 
27885
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
27886
               ;;
 
27887
             10.*)
 
27888
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
27889
               ;;
 
27890
           esac
 
27891
         fi
 
27892
         ;;
 
27893
      esac
 
27894
      archive_cmds_need_lc_GCJ=no
 
27895
      hardcode_direct_GCJ=no
 
27896
      hardcode_automatic_GCJ=yes
 
27897
      hardcode_shlibpath_var_GCJ=unsupported
 
27898
      whole_archive_flag_spec_GCJ=''
 
27899
      link_all_deplibs_GCJ=yes
 
27900
    if test "$GCC" = yes ; then
 
27901
        output_verbose_link_cmd='echo'
 
27902
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
27903
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
27904
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
27905
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
27906
      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
27907
    else
 
27908
      case $cc_basename in
 
27909
        xlc*)
 
27910
         output_verbose_link_cmd='echo'
 
27911
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
27912
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
27913
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
27914
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
27915
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
27916
          ;;
 
27917
       *)
 
27918
         ld_shlibs_GCJ=no
 
27919
          ;;
 
27920
      esac
 
27921
    fi
 
27922
      ;;
 
27923
 
 
27924
    dgux*)
 
27925
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
27926
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
27927
      hardcode_shlibpath_var_GCJ=no
 
27928
      ;;
 
27929
 
 
27930
    freebsd1*)
 
27931
      ld_shlibs_GCJ=no
 
27932
      ;;
 
27933
 
 
27934
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
27935
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
27936
    # does not break anything, and helps significantly (at the cost of a little
 
27937
    # extra space).
 
27938
    freebsd2.2*)
 
27939
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
27940
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
27941
      hardcode_direct_GCJ=yes
 
27942
      hardcode_shlibpath_var_GCJ=no
 
27943
      ;;
 
27944
 
 
27945
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
27946
    freebsd2*)
 
27947
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
27948
      hardcode_direct_GCJ=yes
 
27949
      hardcode_minus_L_GCJ=yes
 
27950
      hardcode_shlibpath_var_GCJ=no
 
27951
      ;;
 
27952
 
 
27953
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
27954
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
27955
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
27956
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
27957
      hardcode_direct_GCJ=yes
 
27958
      hardcode_shlibpath_var_GCJ=no
 
27959
      ;;
 
27960
 
 
27961
    hpux9*)
 
27962
      if test "$GCC" = yes; then
 
27963
        archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
27964
      else
 
27965
        archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
27966
      fi
 
27967
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
27968
      hardcode_libdir_separator_GCJ=:
 
27969
      hardcode_direct_GCJ=yes
 
27970
 
 
27971
      # hardcode_minus_L: Not really in the search PATH,
 
27972
      # but as the default location of the library.
 
27973
      hardcode_minus_L_GCJ=yes
 
27974
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
27975
      ;;
 
27976
 
 
27977
    hpux10* | hpux11*)
 
27978
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
27979
        case $host_cpu in
 
27980
        hppa*64*|ia64*)
 
27981
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
27982
          ;;
 
27983
        *)
 
27984
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
27985
          ;;
 
27986
        esac
 
27987
      else
 
27988
        case $host_cpu in
 
27989
        hppa*64*|ia64*)
 
27990
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
27991
          ;;
 
27992
        *)
 
27993
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
27994
          ;;
 
27995
        esac
 
27996
      fi
 
27997
      if test "$with_gnu_ld" = no; then
 
27998
        case $host_cpu in
 
27999
        hppa*64*)
 
28000
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
28001
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
28002
          hardcode_libdir_separator_GCJ=:
 
28003
          hardcode_direct_GCJ=no
 
28004
          hardcode_shlibpath_var_GCJ=no
 
28005
          ;;
 
28006
        ia64*)
 
28007
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
28008
          hardcode_direct_GCJ=no
 
28009
          hardcode_shlibpath_var_GCJ=no
 
28010
 
 
28011
          # hardcode_minus_L: Not really in the search PATH,
 
28012
          # but as the default location of the library.
 
28013
          hardcode_minus_L_GCJ=yes
 
28014
          ;;
 
28015
        *)
 
28016
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
28017
          hardcode_libdir_separator_GCJ=:
 
28018
          hardcode_direct_GCJ=yes
 
28019
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
28020
 
 
28021
          # hardcode_minus_L: Not really in the search PATH,
 
28022
          # but as the default location of the library.
 
28023
          hardcode_minus_L_GCJ=yes
 
28024
          ;;
 
28025
        esac
 
28026
      fi
 
28027
      ;;
 
28028
 
 
28029
    irix5* | irix6* | nonstopux*)
 
28030
      if test "$GCC" = yes; then
 
28031
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
28032
      else
 
28033
        archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
28034
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
28035
      fi
 
28036
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
28037
      hardcode_libdir_separator_GCJ=:
 
28038
      link_all_deplibs_GCJ=yes
 
28039
      ;;
 
28040
 
 
28041
    netbsd*)
 
28042
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
28043
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
28044
      else
 
28045
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
28046
      fi
 
28047
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
28048
      hardcode_direct_GCJ=yes
 
28049
      hardcode_shlibpath_var_GCJ=no
 
28050
      ;;
 
28051
 
 
28052
    newsos6)
 
28053
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
28054
      hardcode_direct_GCJ=yes
 
28055
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
28056
      hardcode_libdir_separator_GCJ=:
 
28057
      hardcode_shlibpath_var_GCJ=no
 
28058
      ;;
 
28059
 
 
28060
    openbsd*)
 
28061
      hardcode_direct_GCJ=yes
 
28062
      hardcode_shlibpath_var_GCJ=no
 
28063
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
28064
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
28065
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
28066
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
28067
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
28068
      else
 
28069
       case $host_os in
 
28070
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
28071
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
28072
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
28073
           ;;
 
28074
         *)
 
28075
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
28076
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
28077
           ;;
 
28078
       esac
 
28079
      fi
 
28080
      ;;
 
28081
 
 
28082
    os2*)
 
28083
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
28084
      hardcode_minus_L_GCJ=yes
 
28085
      allow_undefined_flag_GCJ=unsupported
 
28086
      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
28087
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
28088
      ;;
 
28089
 
 
28090
    osf3*)
 
28091
      if test "$GCC" = yes; then
 
28092
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
28093
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
28094
      else
 
28095
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
28096
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
28097
      fi
 
28098
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
28099
      hardcode_libdir_separator_GCJ=:
 
28100
      ;;
 
28101
 
 
28102
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
28103
      if test "$GCC" = yes; then
 
28104
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
28105
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
28106
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
28107
      else
 
28108
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
28109
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
28110
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
28111
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
28112
 
 
28113
        # Both c and cxx compiler support -rpath directly
 
28114
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
28115
      fi
 
28116
      hardcode_libdir_separator_GCJ=:
 
28117
      ;;
 
28118
 
 
28119
    sco3.2v5*)
 
28120
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
28121
      hardcode_shlibpath_var_GCJ=no
 
28122
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
28123
      runpath_var=LD_RUN_PATH
 
28124
      hardcode_runpath_var=yes
 
28125
      ;;
 
28126
 
 
28127
    solaris*)
 
28128
      no_undefined_flag_GCJ=' -z text'
 
28129
      if test "$GCC" = yes; then
 
28130
        wlarc='${wl}'
 
28131
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
28132
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
28133
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
28134
      else
 
28135
        wlarc=''
 
28136
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
28137
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
28138
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
28139
      fi
 
28140
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
28141
      hardcode_shlibpath_var_GCJ=no
 
28142
      case $host_os in
 
28143
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
28144
      *)
 
28145
        # The compiler driver will combine linker options so we
 
28146
        # cannot just pass the convience library names through
 
28147
        # without $wl, iff we do not link with $LD.
 
28148
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
28149
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
28150
        case $wlarc in
 
28151
        '')
 
28152
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
28153
        *)
 
28154
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
28155
        esac ;;
 
28156
      esac
 
28157
      link_all_deplibs_GCJ=yes
 
28158
      ;;
 
28159
 
 
28160
    sunos4*)
 
28161
      if test "x$host_vendor" = xsequent; then
 
28162
        # Use $CC to link under sequent, because it throws in some extra .o
 
28163
        # files that make .init and .fini sections work.
 
28164
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
28165
      else
 
28166
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
28167
      fi
 
28168
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
28169
      hardcode_direct_GCJ=yes
 
28170
      hardcode_minus_L_GCJ=yes
 
28171
      hardcode_shlibpath_var_GCJ=no
 
28172
      ;;
 
28173
 
 
28174
    sysv4)
 
28175
      case $host_vendor in
 
28176
        sni)
 
28177
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
28178
          hardcode_direct_GCJ=yes # is this really true???
 
28179
        ;;
 
28180
        siemens)
 
28181
          ## LD is ld it makes a PLAMLIB
 
28182
          ## CC just makes a GrossModule.
 
28183
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
28184
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
28185
          hardcode_direct_GCJ=no
 
28186
        ;;
 
28187
        motorola)
 
28188
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
28189
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
28190
        ;;
 
28191
      esac
 
28192
      runpath_var='LD_RUN_PATH'
 
28193
      hardcode_shlibpath_var_GCJ=no
 
28194
      ;;
 
28195
 
 
28196
    sysv4.3*)
 
28197
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
28198
      hardcode_shlibpath_var_GCJ=no
 
28199
      export_dynamic_flag_spec_GCJ='-Bexport'
 
28200
      ;;
 
28201
 
 
28202
    sysv4*MP*)
 
28203
      if test -d /usr/nec; then
 
28204
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
28205
        hardcode_shlibpath_var_GCJ=no
 
28206
        runpath_var=LD_RUN_PATH
 
28207
        hardcode_runpath_var=yes
 
28208
        ld_shlibs_GCJ=yes
 
28209
      fi
 
28210
      ;;
 
28211
 
 
28212
    sysv4.2uw2*)
 
28213
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
28214
      hardcode_direct_GCJ=yes
 
28215
      hardcode_minus_L_GCJ=no
 
28216
      hardcode_shlibpath_var_GCJ=no
 
28217
      hardcode_runpath_var=yes
 
28218
      runpath_var=LD_RUN_PATH
 
28219
      ;;
 
28220
 
 
28221
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
28222
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
28223
      if test "$GCC" = yes; then
 
28224
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
28225
      else
 
28226
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
28227
      fi
 
28228
      runpath_var='LD_RUN_PATH'
 
28229
      hardcode_shlibpath_var_GCJ=no
 
28230
      ;;
 
28231
 
 
28232
    sysv5*)
 
28233
      no_undefined_flag_GCJ=' -z text'
 
28234
      # $CC -shared without GNU ld will not create a library from C++
 
28235
      # object files and a static libstdc++, better avoid it by now
 
28236
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
28237
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
28238
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
28239
      hardcode_libdir_flag_spec_GCJ=
 
28240
      hardcode_shlibpath_var_GCJ=no
 
28241
      runpath_var='LD_RUN_PATH'
 
28242
      ;;
 
28243
 
 
28244
    uts4*)
 
28245
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
28246
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
28247
      hardcode_shlibpath_var_GCJ=no
 
28248
      ;;
 
28249
 
 
28250
    *)
 
28251
      ld_shlibs_GCJ=no
 
28252
      ;;
 
28253
    esac
 
28254
  fi
 
28255
 
 
28256
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
28257
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
28258
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
28259
 
 
28260
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
28261
if test "$GCC" = yes; then
 
28262
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
28263
fi
 
28264
 
 
28265
#
 
28266
# Do we need to explicitly link libc?
 
28267
#
 
28268
case "x$archive_cmds_need_lc_GCJ" in
 
28269
x|xyes)
 
28270
  # Assume -lc should be added
 
28271
  archive_cmds_need_lc_GCJ=yes
 
28272
 
 
28273
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
28274
    case $archive_cmds_GCJ in
 
28275
    *'~'*)
 
28276
      # FIXME: we may have to deal with multi-command sequences.
 
28277
      ;;
 
28278
    '$CC '*)
 
28279
      # Test whether the compiler implicitly links with -lc since on some
 
28280
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
28281
      # to ld, don't add -lc before -lgcc.
 
28282
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
28283
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
28284
      $rm conftest*
 
28285
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
28286
 
 
28287
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
28288
  (eval $ac_compile) 2>&5
 
28289
  ac_status=$?
 
28290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28291
  (exit $ac_status); } 2>conftest.err; then
 
28292
        soname=conftest
 
28293
        lib=conftest
 
28294
        libobjs=conftest.$ac_objext
 
28295
        deplibs=
 
28296
        wl=$lt_prog_compiler_wl_GCJ
 
28297
        compiler_flags=-v
 
28298
        linker_flags=-v
 
28299
        verstring=
 
28300
        output_objdir=.
 
28301
        libname=conftest
 
28302
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
28303
        allow_undefined_flag_GCJ=
 
28304
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
28305
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
28306
  ac_status=$?
 
28307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28308
  (exit $ac_status); }
 
28309
        then
 
28310
          archive_cmds_need_lc_GCJ=no
 
28311
        else
 
28312
          archive_cmds_need_lc_GCJ=yes
 
28313
        fi
 
28314
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
28315
      else
 
28316
        cat conftest.err 1>&5
 
28317
      fi
 
28318
      $rm conftest*
 
28319
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
28320
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
28321
      ;;
 
28322
    esac
 
28323
  fi
 
28324
  ;;
 
28325
esac
 
28326
 
 
28327
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
28328
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
28329
library_names_spec=
 
28330
libname_spec='lib$name'
 
28331
soname_spec=
 
28332
shrext_cmds=".so"
 
28333
postinstall_cmds=
 
28334
postuninstall_cmds=
 
28335
finish_cmds=
 
28336
finish_eval=
 
28337
shlibpath_var=
 
28338
shlibpath_overrides_runpath=unknown
 
28339
version_type=none
 
28340
dynamic_linker="$host_os ld.so"
 
28341
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
28342
if test "$GCC" = yes; then
 
28343
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
28344
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
28345
    # if the path contains ";" then we assume it to be the separator
 
28346
    # otherwise default to the standard path separator (i.e. ":") - it is
 
28347
    # assumed that no part of a normal pathname contains ";" but that should
 
28348
    # okay in the real world where ";" in dirpaths is itself problematic.
 
28349
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
28350
  else
 
28351
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
28352
  fi
 
28353
else
 
28354
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
28355
fi
 
28356
need_lib_prefix=unknown
 
28357
hardcode_into_libs=no
 
28358
 
 
28359
# when you set need_version to no, make sure it does not cause -set_version
 
28360
# flags to be left without arguments
 
28361
need_version=unknown
 
28362
 
 
28363
case $host_os in
 
28364
aix3*)
 
28365
  version_type=linux
 
28366
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
28367
  shlibpath_var=LIBPATH
 
28368
 
 
28369
  # AIX 3 has no versioning support, so we append a major version to the name.
 
28370
  soname_spec='${libname}${release}${shared_ext}$major'
 
28371
  ;;
 
28372
 
 
28373
aix4* | aix5*)
 
28374
  version_type=linux
 
28375
  need_lib_prefix=no
 
28376
  need_version=no
 
28377
  hardcode_into_libs=yes
 
28378
  if test "$host_cpu" = ia64; then
 
28379
    # AIX 5 supports IA64
 
28380
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
28381
    shlibpath_var=LD_LIBRARY_PATH
 
28382
  else
 
28383
    # With GCC up to 2.95.x, collect2 would create an import file
 
28384
    # for dependence libraries.  The import file would start with
 
28385
    # the line `#! .'.  This would cause the generated library to
 
28386
    # depend on `.', always an invalid library.  This was fixed in
 
28387
    # development snapshots of GCC prior to 3.0.
 
28388
    case $host_os in
 
28389
      aix4 | aix4.[01] | aix4.[01].*)
 
28390
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
28391
           echo ' yes '
 
28392
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
28393
        :
 
28394
      else
 
28395
        can_build_shared=no
 
28396
      fi
 
28397
      ;;
 
28398
    esac
 
28399
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
28400
    # soname into executable. Probably we can add versioning support to
 
28401
    # collect2, so additional links can be useful in future.
 
28402
    if test "$aix_use_runtimelinking" = yes; then
 
28403
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
28404
      # instead of lib<name>.a to let people know that these are not
 
28405
      # typical AIX shared libraries.
 
28406
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
28407
    else
 
28408
      # We preserve .a as extension for shared libraries through AIX4.2
 
28409
      # and later when we are not doing run time linking.
 
28410
      library_names_spec='${libname}${release}.a $libname.a'
 
28411
      soname_spec='${libname}${release}${shared_ext}$major'
 
28412
    fi
 
28413
    shlibpath_var=LIBPATH
 
28414
  fi
 
28415
  ;;
 
28416
 
 
28417
amigaos*)
 
28418
  library_names_spec='$libname.ixlibrary $libname.a'
 
28419
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
28420
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
28421
  ;;
 
28422
 
 
28423
beos*)
 
28424
  library_names_spec='${libname}${shared_ext}'
 
28425
  dynamic_linker="$host_os ld.so"
 
28426
  shlibpath_var=LIBRARY_PATH
 
28427
  ;;
 
28428
 
 
28429
bsdi[45]*)
 
28430
  version_type=linux
 
28431
  need_version=no
 
28432
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
28433
  soname_spec='${libname}${release}${shared_ext}$major'
 
28434
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
28435
  shlibpath_var=LD_LIBRARY_PATH
 
28436
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
28437
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
28438
  # the default ld.so.conf also contains /usr/contrib/lib and
 
28439
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
28440
  # libtool to hard-code these into programs
 
28441
  ;;
 
28442
 
 
28443
cygwin* | mingw* | pw32*)
 
28444
  version_type=windows
 
28445
  shrext_cmds=".dll"
 
28446
  need_version=no
 
28447
  need_lib_prefix=no
 
28448
 
 
28449
  case $GCC,$host_os in
 
28450
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
28451
    library_names_spec='$libname.dll.a'
 
28452
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
28453
    postinstall_cmds='base_file=`basename \${file}`~
 
28454
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
28455
      dldir=$destdir/`dirname \$dlpath`~
 
28456
      test -d \$dldir || mkdir -p \$dldir~
 
28457
      $install_prog $dir/$dlname \$dldir/$dlname~
 
28458
      chmod a+x \$dldir/$dlname'
 
28459
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
28460
      dlpath=$dir/\$dldll~
 
28461
       $rm \$dlpath'
 
28462
    shlibpath_overrides_runpath=yes
 
28463
 
 
28464
    case $host_os in
 
28465
    cygwin*)
 
28466
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
28467
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
28468
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
28469
      ;;
 
28470
    mingw*)
 
28471
      # MinGW DLLs use traditional 'lib' prefix
 
28472
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
28473
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
28474
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
28475
        # It is most probably a Windows format PATH printed by
 
28476
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
28477
        # path with ; separators, and with drive letters. We can handle the
 
28478
        # drive letters (cygwin fileutils understands them), so leave them,
 
28479
        # especially as we might pass files found there to a mingw objdump,
 
28480
        # which wouldn't understand a cygwinified path. Ahh.
 
28481
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
28482
      else
 
28483
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
28484
      fi
 
28485
      ;;
 
28486
    pw32*)
 
28487
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
28488
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
28489
      ;;
 
28490
    esac
 
28491
    ;;
 
28492
 
 
28493
  *)
 
28494
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
28495
    ;;
 
28496
  esac
 
28497
  dynamic_linker='Win32 ld.exe'
 
28498
  # FIXME: first we should search . and the directory the executable is in
 
28499
  shlibpath_var=PATH
 
28500
  ;;
 
28501
 
 
28502
darwin* | rhapsody*)
 
28503
  dynamic_linker="$host_os dyld"
 
28504
  version_type=darwin
 
28505
  need_lib_prefix=no
 
28506
  need_version=no
 
28507
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
28508
  soname_spec='${libname}${release}${major}$shared_ext'
 
28509
  shlibpath_overrides_runpath=yes
 
28510
  shlibpath_var=DYLD_LIBRARY_PATH
 
28511
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
28512
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
28513
  if test "$GCC" = yes; then
 
28514
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
28515
  else
 
28516
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
28517
  fi
 
28518
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
28519
  ;;
 
28520
 
 
28521
dgux*)
 
28522
  version_type=linux
 
28523
  need_lib_prefix=no
 
28524
  need_version=no
 
28525
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
28526
  soname_spec='${libname}${release}${shared_ext}$major'
 
28527
  shlibpath_var=LD_LIBRARY_PATH
 
28528
  ;;
 
28529
 
 
28530
freebsd1*)
 
28531
  dynamic_linker=no
 
28532
  ;;
 
28533
 
 
28534
kfreebsd*-gnu)
 
28535
  version_type=linux
 
28536
  need_lib_prefix=no
 
28537
  need_version=no
 
28538
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
28539
  soname_spec='${libname}${release}${shared_ext}$major'
 
28540
  shlibpath_var=LD_LIBRARY_PATH
 
28541
  shlibpath_overrides_runpath=no
 
28542
  hardcode_into_libs=yes
 
28543
  dynamic_linker='GNU ld.so'
 
28544
  ;;
 
28545
 
 
28546
freebsd* | dragonfly*)
 
28547
  # DragonFly does not have aout.  When/if they implement a new
 
28548
  # versioning mechanism, adjust this.
 
28549
  if test -x /usr/bin/objformat; then
 
28550
    objformat=`/usr/bin/objformat`
 
28551
  else
 
28552
    case $host_os in
 
28553
    freebsd[123]*) objformat=aout ;;
 
28554
    *) objformat=elf ;;
 
28555
    esac
 
28556
  fi
 
28557
  version_type=freebsd-$objformat
 
28558
  case $version_type in
 
28559
    freebsd-elf*)
 
28560
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
28561
      need_version=no
 
28562
      need_lib_prefix=no
 
28563
      ;;
 
28564
    freebsd-*)
 
28565
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
28566
      need_version=yes
 
28567
      ;;
 
28568
  esac
 
28569
  shlibpath_var=LD_LIBRARY_PATH
 
28570
  case $host_os in
 
28571
  freebsd2*)
 
28572
    shlibpath_overrides_runpath=yes
 
28573
    ;;
 
28574
  freebsd3.[01]* | freebsdelf3.[01]*)
 
28575
    shlibpath_overrides_runpath=yes
 
28576
    hardcode_into_libs=yes
 
28577
    ;;
 
28578
  *) # from 3.2 on
 
28579
    shlibpath_overrides_runpath=no
 
28580
    hardcode_into_libs=yes
 
28581
    ;;
 
28582
  esac
 
28583
  ;;
 
28584
 
 
28585
gnu*)
 
28586
  version_type=linux
 
28587
  need_lib_prefix=no
 
28588
  need_version=no
 
28589
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
28590
  soname_spec='${libname}${release}${shared_ext}$major'
 
28591
  shlibpath_var=LD_LIBRARY_PATH
 
28592
  hardcode_into_libs=yes
 
28593
  ;;
 
28594
 
 
28595
hpux9* | hpux10* | hpux11*)
 
28596
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
28597
  # link against other versions.
 
28598
  version_type=sunos
 
28599
  need_lib_prefix=no
 
28600
  need_version=no
 
28601
  case $host_cpu in
 
28602
  ia64*)
 
28603
    shrext_cmds='.so'
 
28604
    hardcode_into_libs=yes
 
28605
    dynamic_linker="$host_os dld.so"
 
28606
    shlibpath_var=LD_LIBRARY_PATH
 
28607
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
28608
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
28609
    soname_spec='${libname}${release}${shared_ext}$major'
 
28610
    if test "X$HPUX_IA64_MODE" = X32; then
 
28611
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
28612
    else
 
28613
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
28614
    fi
 
28615
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
28616
    ;;
 
28617
   hppa*64*)
 
28618
     shrext_cmds='.sl'
 
28619
     hardcode_into_libs=yes
 
28620
     dynamic_linker="$host_os dld.sl"
 
28621
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
28622
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
28623
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
28624
     soname_spec='${libname}${release}${shared_ext}$major'
 
28625
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
28626
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
28627
     ;;
 
28628
   *)
 
28629
    shrext_cmds='.sl'
 
28630
    dynamic_linker="$host_os dld.sl"
 
28631
    shlibpath_var=SHLIB_PATH
 
28632
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
28633
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
28634
    soname_spec='${libname}${release}${shared_ext}$major'
 
28635
    ;;
 
28636
  esac
 
28637
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
28638
  postinstall_cmds='chmod 555 $lib'
 
28639
  ;;
 
28640
 
 
28641
irix5* | irix6* | nonstopux*)
 
28642
  case $host_os in
 
28643
    nonstopux*) version_type=nonstopux ;;
 
28644
    *)
 
28645
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
28646
                version_type=linux
 
28647
        else
 
28648
                version_type=irix
 
28649
        fi ;;
 
28650
  esac
 
28651
  need_lib_prefix=no
 
28652
  need_version=no
 
28653
  soname_spec='${libname}${release}${shared_ext}$major'
 
28654
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
28655
  case $host_os in
 
28656
  irix5* | nonstopux*)
 
28657
    libsuff= shlibsuff=
 
28658
    ;;
 
28659
  *)
 
28660
    case $LD in # libtool.m4 will add one of these switches to LD
 
28661
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
28662
      libsuff= shlibsuff= libmagic=32-bit;;
 
28663
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
28664
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
28665
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
28666
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
28667
    *) libsuff= shlibsuff= libmagic=never-match;;
 
28668
    esac
 
28669
    ;;
 
28670
  esac
 
28671
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
28672
  shlibpath_overrides_runpath=no
 
28673
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
28674
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
28675
  hardcode_into_libs=yes
 
28676
  ;;
 
28677
 
 
28678
# No shared lib support for Linux oldld, aout, or coff.
 
28679
linux*oldld* | linux*aout* | linux*coff*)
 
28680
  dynamic_linker=no
 
28681
  ;;
 
28682
 
 
28683
# This must be Linux ELF.
 
28684
linux*)
 
28685
  version_type=linux
 
28686
  need_lib_prefix=no
 
28687
  need_version=no
 
28688
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
28689
  soname_spec='${libname}${release}${shared_ext}$major'
 
28690
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
28691
  shlibpath_var=LD_LIBRARY_PATH
 
28692
  shlibpath_overrides_runpath=no
 
28693
  # This implies no fast_install, which is unacceptable.
 
28694
  # Some rework will be needed to allow for fast_install
 
28695
  # before this can be enabled.
 
28696
  hardcode_into_libs=yes
 
28697
 
 
28698
  # Append ld.so.conf contents to the search path
 
28699
  if test -f /etc/ld.so.conf; then
 
28700
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
28701
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
28702
  fi
 
28703
 
 
28704
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
28705
  # powerpc, because MkLinux only supported shared libraries with the
 
28706
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
28707
  # most powerpc-linux boxes support dynamic linking these days and
 
28708
  # people can always --disable-shared, the test was removed, and we
 
28709
  # assume the GNU/Linux dynamic linker is in use.
 
28710
  dynamic_linker='GNU/Linux ld.so'
 
28711
  ;;
 
28712
 
 
28713
knetbsd*-gnu)
 
28714
  version_type=linux
 
28715
  need_lib_prefix=no
 
28716
  need_version=no
 
28717
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
28718
  soname_spec='${libname}${release}${shared_ext}$major'
 
28719
  shlibpath_var=LD_LIBRARY_PATH
 
28720
  shlibpath_overrides_runpath=no
 
28721
  hardcode_into_libs=yes
 
28722
  dynamic_linker='GNU ld.so'
 
28723
  ;;
 
28724
 
 
28725
netbsd*)
 
28726
  version_type=sunos
 
28727
  need_lib_prefix=no
 
28728
  need_version=no
 
28729
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
28730
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
28731
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
28732
    dynamic_linker='NetBSD (a.out) ld.so'
 
28733
  else
 
28734
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
28735
    soname_spec='${libname}${release}${shared_ext}$major'
 
28736
    dynamic_linker='NetBSD ld.elf_so'
 
28737
  fi
 
28738
  shlibpath_var=LD_LIBRARY_PATH
 
28739
  shlibpath_overrides_runpath=yes
 
28740
  hardcode_into_libs=yes
 
28741
  ;;
 
28742
 
 
28743
newsos6)
 
28744
  version_type=linux
 
28745
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
28746
  shlibpath_var=LD_LIBRARY_PATH
 
28747
  shlibpath_overrides_runpath=yes
 
28748
  ;;
 
28749
 
 
28750
nto-qnx*)
 
28751
  version_type=linux
 
28752
  need_lib_prefix=no
 
28753
  need_version=no
 
28754
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
28755
  soname_spec='${libname}${release}${shared_ext}$major'
 
28756
  shlibpath_var=LD_LIBRARY_PATH
 
28757
  shlibpath_overrides_runpath=yes
 
28758
  ;;
 
28759
 
 
28760
openbsd*)
 
28761
  version_type=sunos
 
28762
  need_lib_prefix=no
 
28763
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
28764
  case $host_os in
 
28765
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
28766
    *)                         need_version=no  ;;
 
28767
  esac
 
28768
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
28769
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
28770
  shlibpath_var=LD_LIBRARY_PATH
 
28771
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
28772
    case $host_os in
 
28773
      openbsd2.[89] | openbsd2.[89].*)
 
28774
        shlibpath_overrides_runpath=no
 
28775
        ;;
 
28776
      *)
 
28777
        shlibpath_overrides_runpath=yes
 
28778
        ;;
 
28779
      esac
 
28780
  else
 
28781
    shlibpath_overrides_runpath=yes
 
28782
  fi
 
28783
  ;;
 
28784
 
 
28785
os2*)
 
28786
  libname_spec='$name'
 
28787
  shrext_cmds=".dll"
 
28788
  need_lib_prefix=no
 
28789
  library_names_spec='$libname${shared_ext} $libname.a'
 
28790
  dynamic_linker='OS/2 ld.exe'
 
28791
  shlibpath_var=LIBPATH
 
28792
  ;;
 
28793
 
 
28794
osf3* | osf4* | osf5*)
 
28795
  version_type=osf
 
28796
  need_lib_prefix=no
 
28797
  need_version=no
 
28798
  soname_spec='${libname}${release}${shared_ext}$major'
 
28799
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
28800
  shlibpath_var=LD_LIBRARY_PATH
 
28801
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
28802
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
28803
  ;;
 
28804
 
 
28805
sco3.2v5*)
 
28806
  version_type=osf
 
28807
  soname_spec='${libname}${release}${shared_ext}$major'
 
28808
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
28809
  shlibpath_var=LD_LIBRARY_PATH
 
28810
  ;;
 
28811
 
 
28812
solaris*)
 
28813
  version_type=linux
 
28814
  need_lib_prefix=no
 
28815
  need_version=no
 
28816
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
28817
  soname_spec='${libname}${release}${shared_ext}$major'
 
28818
  shlibpath_var=LD_LIBRARY_PATH
 
28819
  shlibpath_overrides_runpath=yes
 
28820
  hardcode_into_libs=yes
 
28821
  # ldd complains unless libraries are executable
 
28822
  postinstall_cmds='chmod +x $lib'
 
28823
  ;;
 
28824
 
 
28825
sunos4*)
 
28826
  version_type=sunos
 
28827
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
28828
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
28829
  shlibpath_var=LD_LIBRARY_PATH
 
28830
  shlibpath_overrides_runpath=yes
 
28831
  if test "$with_gnu_ld" = yes; then
 
28832
    need_lib_prefix=no
 
28833
  fi
 
28834
  need_version=yes
 
28835
  ;;
 
28836
 
 
28837
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
28838
  version_type=linux
 
28839
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
28840
  soname_spec='${libname}${release}${shared_ext}$major'
 
28841
  shlibpath_var=LD_LIBRARY_PATH
 
28842
  case $host_vendor in
 
28843
    sni)
 
28844
      shlibpath_overrides_runpath=no
 
28845
      need_lib_prefix=no
 
28846
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
28847
      runpath_var=LD_RUN_PATH
 
28848
      ;;
 
28849
    siemens)
 
28850
      need_lib_prefix=no
 
28851
      ;;
 
28852
    motorola)
 
28853
      need_lib_prefix=no
 
28854
      need_version=no
 
28855
      shlibpath_overrides_runpath=no
 
28856
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
28857
      ;;
 
28858
  esac
 
28859
  ;;
 
28860
 
 
28861
sysv4*MP*)
 
28862
  if test -d /usr/nec ;then
 
28863
    version_type=linux
 
28864
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
28865
    soname_spec='$libname${shared_ext}.$major'
 
28866
    shlibpath_var=LD_LIBRARY_PATH
 
28867
  fi
 
28868
  ;;
 
28869
 
 
28870
uts4*)
 
28871
  version_type=linux
 
28872
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
28873
  soname_spec='${libname}${release}${shared_ext}$major'
 
28874
  shlibpath_var=LD_LIBRARY_PATH
 
28875
  ;;
 
28876
 
 
28877
*)
 
28878
  dynamic_linker=no
 
28879
  ;;
 
28880
esac
 
28881
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
28882
echo "${ECHO_T}$dynamic_linker" >&6
 
28883
test "$dynamic_linker" = no && can_build_shared=no
 
28884
 
 
28885
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
28886
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
28887
hardcode_action_GCJ=
 
28888
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
28889
   test -n "$runpath_var_GCJ" || \
 
28890
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
28891
 
 
28892
  # We can hardcode non-existant directories.
 
28893
  if test "$hardcode_direct_GCJ" != no &&
 
28894
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
28895
     # have to relink, otherwise we might link with an installed library
 
28896
     # when we should be linking with a yet-to-be-installed one
 
28897
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
28898
     test "$hardcode_minus_L_GCJ" != no; then
 
28899
    # Linking always hardcodes the temporary library directory.
 
28900
    hardcode_action_GCJ=relink
 
28901
  else
 
28902
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
28903
    hardcode_action_GCJ=immediate
 
28904
  fi
 
28905
else
 
28906
  # We cannot hardcode anything, or else we can only hardcode existing
 
28907
  # directories.
 
28908
  hardcode_action_GCJ=unsupported
 
28909
fi
 
28910
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
28911
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
28912
 
 
28913
if test "$hardcode_action_GCJ" = relink; then
 
28914
  # Fast installation is not supported
 
28915
  enable_fast_install=no
 
28916
elif test "$shlibpath_overrides_runpath" = yes ||
 
28917
     test "$enable_shared" = no; then
 
28918
  # Fast installation is not necessary
 
28919
  enable_fast_install=needless
 
28920
fi
 
28921
 
 
28922
striplib=
 
28923
old_striplib=
 
28924
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
28925
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
28926
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
28927
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
28928
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
28929
  echo "$as_me:$LINENO: result: yes" >&5
 
28930
echo "${ECHO_T}yes" >&6
 
28931
else
 
28932
# FIXME - insert some real tests, host_os isn't really good enough
 
28933
  case $host_os in
 
28934
   darwin*)
 
28935
       if test -n "$STRIP" ; then
 
28936
         striplib="$STRIP -x"
 
28937
         echo "$as_me:$LINENO: result: yes" >&5
 
28938
echo "${ECHO_T}yes" >&6
 
28939
       else
 
28940
  echo "$as_me:$LINENO: result: no" >&5
 
28941
echo "${ECHO_T}no" >&6
 
28942
fi
 
28943
       ;;
 
28944
   *)
 
28945
  echo "$as_me:$LINENO: result: no" >&5
 
28946
echo "${ECHO_T}no" >&6
 
28947
    ;;
 
28948
  esac
 
28949
fi
 
28950
 
 
28951
if test "x$enable_dlopen" != xyes; then
 
28952
  enable_dlopen=unknown
 
28953
  enable_dlopen_self=unknown
 
28954
  enable_dlopen_self_static=unknown
 
28955
else
 
28956
  lt_cv_dlopen=no
 
28957
  lt_cv_dlopen_libs=
 
28958
 
 
28959
  case $host_os in
 
28960
  beos*)
 
28961
    lt_cv_dlopen="load_add_on"
 
28962
    lt_cv_dlopen_libs=
 
28963
    lt_cv_dlopen_self=yes
 
28964
    ;;
 
28965
 
 
28966
  mingw* | pw32*)
 
28967
    lt_cv_dlopen="LoadLibrary"
 
28968
    lt_cv_dlopen_libs=
 
28969
   ;;
 
28970
 
 
28971
  cygwin*)
 
28972
    lt_cv_dlopen="dlopen"
 
28973
    lt_cv_dlopen_libs=
 
28974
   ;;
 
28975
 
 
28976
  darwin*)
 
28977
  # if libdl is installed we need to link against it
 
28978
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
28979
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
28980
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
28981
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28982
else
 
28983
  ac_check_lib_save_LIBS=$LIBS
 
28984
LIBS="-ldl  $LIBS"
 
28985
cat >conftest.$ac_ext <<_ACEOF
 
28986
/* confdefs.h.  */
 
28987
_ACEOF
 
28988
cat confdefs.h >>conftest.$ac_ext
 
28989
cat >>conftest.$ac_ext <<_ACEOF
 
28990
/* end confdefs.h.  */
 
28991
 
 
28992
/* Override any gcc2 internal prototype to avoid an error.  */
 
28993
#ifdef __cplusplus
 
28994
extern "C"
 
28995
#endif
 
28996
/* We use char because int might match the return type of a gcc2
 
28997
   builtin and then its argument prototype would still apply.  */
 
28998
char dlopen ();
 
28999
int
 
29000
main ()
 
29001
{
 
29002
dlopen ();
 
29003
  ;
 
29004
  return 0;
 
29005
}
 
29006
_ACEOF
 
29007
rm -f conftest.$ac_objext conftest$ac_exeext
 
29008
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29009
  (eval $ac_link) 2>conftest.er1
 
29010
  ac_status=$?
 
29011
  grep -v '^ *+' conftest.er1 >conftest.err
 
29012
  rm -f conftest.er1
 
29013
  cat conftest.err >&5
 
29014
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29015
  (exit $ac_status); } &&
 
29016
         { ac_try='test -z "$ac_c_werror_flag"
 
29017
                         || test ! -s conftest.err'
 
29018
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29019
  (eval $ac_try) 2>&5
 
29020
  ac_status=$?
 
29021
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29022
  (exit $ac_status); }; } &&
 
29023
         { ac_try='test -s conftest$ac_exeext'
 
29024
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29025
  (eval $ac_try) 2>&5
 
29026
  ac_status=$?
 
29027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29028
  (exit $ac_status); }; }; then
 
29029
  ac_cv_lib_dl_dlopen=yes
 
29030
else
 
29031
  echo "$as_me: failed program was:" >&5
 
29032
sed 's/^/| /' conftest.$ac_ext >&5
 
29033
 
 
29034
ac_cv_lib_dl_dlopen=no
 
29035
fi
 
29036
rm -f conftest.err conftest.$ac_objext \
 
29037
      conftest$ac_exeext conftest.$ac_ext
 
29038
LIBS=$ac_check_lib_save_LIBS
 
29039
fi
 
29040
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
29041
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
29042
if test $ac_cv_lib_dl_dlopen = yes; then
 
29043
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
29044
else
 
29045
 
 
29046
    lt_cv_dlopen="dyld"
 
29047
    lt_cv_dlopen_libs=
 
29048
    lt_cv_dlopen_self=yes
 
29049
 
 
29050
fi
 
29051
 
 
29052
   ;;
 
29053
 
 
29054
  *)
 
29055
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
29056
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
29057
if test "${ac_cv_func_shl_load+set}" = set; then
 
29058
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29059
else
 
29060
  cat >conftest.$ac_ext <<_ACEOF
 
29061
/* confdefs.h.  */
 
29062
_ACEOF
 
29063
cat confdefs.h >>conftest.$ac_ext
 
29064
cat >>conftest.$ac_ext <<_ACEOF
 
29065
/* end confdefs.h.  */
 
29066
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
29067
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
29068
#define shl_load innocuous_shl_load
 
29069
 
 
29070
/* System header to define __stub macros and hopefully few prototypes,
 
29071
    which can conflict with char shl_load (); below.
 
29072
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
29073
    <limits.h> exists even on freestanding compilers.  */
 
29074
 
 
29075
#ifdef __STDC__
 
29076
# include <limits.h>
 
29077
#else
 
29078
# include <assert.h>
 
29079
#endif
 
29080
 
 
29081
#undef shl_load
 
29082
 
 
29083
/* Override any gcc2 internal prototype to avoid an error.  */
 
29084
#ifdef __cplusplus
 
29085
extern "C"
 
29086
{
 
29087
#endif
 
29088
/* We use char because int might match the return type of a gcc2
 
29089
   builtin and then its argument prototype would still apply.  */
 
29090
char shl_load ();
 
29091
/* The GNU C library defines this for functions which it implements
 
29092
    to always fail with ENOSYS.  Some functions are actually named
 
29093
    something starting with __ and the normal name is an alias.  */
 
29094
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
29095
choke me
 
29096
#else
 
29097
char (*f) () = shl_load;
 
29098
#endif
 
29099
#ifdef __cplusplus
 
29100
}
 
29101
#endif
 
29102
 
 
29103
int
 
29104
main ()
 
29105
{
 
29106
return f != shl_load;
 
29107
  ;
 
29108
  return 0;
 
29109
}
 
29110
_ACEOF
 
29111
rm -f conftest.$ac_objext conftest$ac_exeext
 
29112
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29113
  (eval $ac_link) 2>conftest.er1
 
29114
  ac_status=$?
 
29115
  grep -v '^ *+' conftest.er1 >conftest.err
 
29116
  rm -f conftest.er1
 
29117
  cat conftest.err >&5
 
29118
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29119
  (exit $ac_status); } &&
 
29120
         { ac_try='test -z "$ac_c_werror_flag"
 
29121
                         || test ! -s conftest.err'
 
29122
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29123
  (eval $ac_try) 2>&5
 
29124
  ac_status=$?
 
29125
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29126
  (exit $ac_status); }; } &&
 
29127
         { ac_try='test -s conftest$ac_exeext'
 
29128
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29129
  (eval $ac_try) 2>&5
 
29130
  ac_status=$?
 
29131
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29132
  (exit $ac_status); }; }; then
 
29133
  ac_cv_func_shl_load=yes
 
29134
else
 
29135
  echo "$as_me: failed program was:" >&5
 
29136
sed 's/^/| /' conftest.$ac_ext >&5
 
29137
 
 
29138
ac_cv_func_shl_load=no
 
29139
fi
 
29140
rm -f conftest.err conftest.$ac_objext \
 
29141
      conftest$ac_exeext conftest.$ac_ext
 
29142
fi
 
29143
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
29144
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
29145
if test $ac_cv_func_shl_load = yes; then
 
29146
  lt_cv_dlopen="shl_load"
 
29147
else
 
29148
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
29149
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
29150
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
29151
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29152
else
 
29153
  ac_check_lib_save_LIBS=$LIBS
 
29154
LIBS="-ldld  $LIBS"
 
29155
cat >conftest.$ac_ext <<_ACEOF
 
29156
/* confdefs.h.  */
 
29157
_ACEOF
 
29158
cat confdefs.h >>conftest.$ac_ext
 
29159
cat >>conftest.$ac_ext <<_ACEOF
 
29160
/* end confdefs.h.  */
 
29161
 
 
29162
/* Override any gcc2 internal prototype to avoid an error.  */
 
29163
#ifdef __cplusplus
 
29164
extern "C"
 
29165
#endif
 
29166
/* We use char because int might match the return type of a gcc2
 
29167
   builtin and then its argument prototype would still apply.  */
 
29168
char shl_load ();
 
29169
int
 
29170
main ()
 
29171
{
 
29172
shl_load ();
 
29173
  ;
 
29174
  return 0;
 
29175
}
 
29176
_ACEOF
 
29177
rm -f conftest.$ac_objext conftest$ac_exeext
 
29178
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29179
  (eval $ac_link) 2>conftest.er1
 
29180
  ac_status=$?
 
29181
  grep -v '^ *+' conftest.er1 >conftest.err
 
29182
  rm -f conftest.er1
 
29183
  cat conftest.err >&5
 
29184
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29185
  (exit $ac_status); } &&
 
29186
         { ac_try='test -z "$ac_c_werror_flag"
 
29187
                         || test ! -s conftest.err'
 
29188
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29189
  (eval $ac_try) 2>&5
 
29190
  ac_status=$?
 
29191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29192
  (exit $ac_status); }; } &&
 
29193
         { ac_try='test -s conftest$ac_exeext'
 
29194
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29195
  (eval $ac_try) 2>&5
 
29196
  ac_status=$?
 
29197
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29198
  (exit $ac_status); }; }; then
 
29199
  ac_cv_lib_dld_shl_load=yes
 
29200
else
 
29201
  echo "$as_me: failed program was:" >&5
 
29202
sed 's/^/| /' conftest.$ac_ext >&5
 
29203
 
 
29204
ac_cv_lib_dld_shl_load=no
 
29205
fi
 
29206
rm -f conftest.err conftest.$ac_objext \
 
29207
      conftest$ac_exeext conftest.$ac_ext
 
29208
LIBS=$ac_check_lib_save_LIBS
 
29209
fi
 
29210
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
29211
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
29212
if test $ac_cv_lib_dld_shl_load = yes; then
 
29213
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
29214
else
 
29215
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
29216
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
29217
if test "${ac_cv_func_dlopen+set}" = set; then
 
29218
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29219
else
 
29220
  cat >conftest.$ac_ext <<_ACEOF
 
29221
/* confdefs.h.  */
 
29222
_ACEOF
 
29223
cat confdefs.h >>conftest.$ac_ext
 
29224
cat >>conftest.$ac_ext <<_ACEOF
 
29225
/* end confdefs.h.  */
 
29226
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
29227
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
29228
#define dlopen innocuous_dlopen
 
29229
 
 
29230
/* System header to define __stub macros and hopefully few prototypes,
 
29231
    which can conflict with char dlopen (); below.
 
29232
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
29233
    <limits.h> exists even on freestanding compilers.  */
 
29234
 
 
29235
#ifdef __STDC__
 
29236
# include <limits.h>
 
29237
#else
 
29238
# include <assert.h>
 
29239
#endif
 
29240
 
 
29241
#undef dlopen
 
29242
 
 
29243
/* Override any gcc2 internal prototype to avoid an error.  */
 
29244
#ifdef __cplusplus
 
29245
extern "C"
 
29246
{
 
29247
#endif
 
29248
/* We use char because int might match the return type of a gcc2
 
29249
   builtin and then its argument prototype would still apply.  */
 
29250
char dlopen ();
 
29251
/* The GNU C library defines this for functions which it implements
 
29252
    to always fail with ENOSYS.  Some functions are actually named
 
29253
    something starting with __ and the normal name is an alias.  */
 
29254
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
29255
choke me
 
29256
#else
 
29257
char (*f) () = dlopen;
 
29258
#endif
 
29259
#ifdef __cplusplus
 
29260
}
 
29261
#endif
 
29262
 
 
29263
int
 
29264
main ()
 
29265
{
 
29266
return f != dlopen;
 
29267
  ;
 
29268
  return 0;
 
29269
}
 
29270
_ACEOF
 
29271
rm -f conftest.$ac_objext conftest$ac_exeext
 
29272
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29273
  (eval $ac_link) 2>conftest.er1
 
29274
  ac_status=$?
 
29275
  grep -v '^ *+' conftest.er1 >conftest.err
 
29276
  rm -f conftest.er1
 
29277
  cat conftest.err >&5
 
29278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29279
  (exit $ac_status); } &&
 
29280
         { ac_try='test -z "$ac_c_werror_flag"
 
29281
                         || test ! -s conftest.err'
 
29282
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29283
  (eval $ac_try) 2>&5
 
29284
  ac_status=$?
 
29285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29286
  (exit $ac_status); }; } &&
 
29287
         { ac_try='test -s conftest$ac_exeext'
 
29288
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29289
  (eval $ac_try) 2>&5
 
29290
  ac_status=$?
 
29291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29292
  (exit $ac_status); }; }; then
 
29293
  ac_cv_func_dlopen=yes
 
29294
else
 
29295
  echo "$as_me: failed program was:" >&5
 
29296
sed 's/^/| /' conftest.$ac_ext >&5
 
29297
 
 
29298
ac_cv_func_dlopen=no
 
29299
fi
 
29300
rm -f conftest.err conftest.$ac_objext \
 
29301
      conftest$ac_exeext conftest.$ac_ext
 
29302
fi
 
29303
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
29304
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
29305
if test $ac_cv_func_dlopen = yes; then
 
29306
  lt_cv_dlopen="dlopen"
 
29307
else
 
29308
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
29309
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
29310
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
29311
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29312
else
 
29313
  ac_check_lib_save_LIBS=$LIBS
 
29314
LIBS="-ldl  $LIBS"
 
29315
cat >conftest.$ac_ext <<_ACEOF
 
29316
/* confdefs.h.  */
 
29317
_ACEOF
 
29318
cat confdefs.h >>conftest.$ac_ext
 
29319
cat >>conftest.$ac_ext <<_ACEOF
 
29320
/* end confdefs.h.  */
 
29321
 
 
29322
/* Override any gcc2 internal prototype to avoid an error.  */
 
29323
#ifdef __cplusplus
 
29324
extern "C"
 
29325
#endif
 
29326
/* We use char because int might match the return type of a gcc2
 
29327
   builtin and then its argument prototype would still apply.  */
 
29328
char dlopen ();
 
29329
int
 
29330
main ()
 
29331
{
 
29332
dlopen ();
 
29333
  ;
 
29334
  return 0;
 
29335
}
 
29336
_ACEOF
 
29337
rm -f conftest.$ac_objext conftest$ac_exeext
 
29338
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29339
  (eval $ac_link) 2>conftest.er1
 
29340
  ac_status=$?
 
29341
  grep -v '^ *+' conftest.er1 >conftest.err
 
29342
  rm -f conftest.er1
 
29343
  cat conftest.err >&5
 
29344
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29345
  (exit $ac_status); } &&
 
29346
         { ac_try='test -z "$ac_c_werror_flag"
 
29347
                         || test ! -s conftest.err'
 
29348
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29349
  (eval $ac_try) 2>&5
 
29350
  ac_status=$?
 
29351
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29352
  (exit $ac_status); }; } &&
 
29353
         { ac_try='test -s conftest$ac_exeext'
 
29354
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29355
  (eval $ac_try) 2>&5
 
29356
  ac_status=$?
 
29357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29358
  (exit $ac_status); }; }; then
 
29359
  ac_cv_lib_dl_dlopen=yes
 
29360
else
 
29361
  echo "$as_me: failed program was:" >&5
 
29362
sed 's/^/| /' conftest.$ac_ext >&5
 
29363
 
 
29364
ac_cv_lib_dl_dlopen=no
 
29365
fi
 
29366
rm -f conftest.err conftest.$ac_objext \
 
29367
      conftest$ac_exeext conftest.$ac_ext
 
29368
LIBS=$ac_check_lib_save_LIBS
 
29369
fi
 
29370
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
29371
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
29372
if test $ac_cv_lib_dl_dlopen = yes; then
 
29373
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
29374
else
 
29375
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
29376
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
29377
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
29378
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29379
else
 
29380
  ac_check_lib_save_LIBS=$LIBS
 
29381
LIBS="-lsvld  $LIBS"
 
29382
cat >conftest.$ac_ext <<_ACEOF
 
29383
/* confdefs.h.  */
 
29384
_ACEOF
 
29385
cat confdefs.h >>conftest.$ac_ext
 
29386
cat >>conftest.$ac_ext <<_ACEOF
 
29387
/* end confdefs.h.  */
 
29388
 
 
29389
/* Override any gcc2 internal prototype to avoid an error.  */
 
29390
#ifdef __cplusplus
 
29391
extern "C"
 
29392
#endif
 
29393
/* We use char because int might match the return type of a gcc2
 
29394
   builtin and then its argument prototype would still apply.  */
 
29395
char dlopen ();
 
29396
int
 
29397
main ()
 
29398
{
 
29399
dlopen ();
 
29400
  ;
 
29401
  return 0;
 
29402
}
 
29403
_ACEOF
 
29404
rm -f conftest.$ac_objext conftest$ac_exeext
 
29405
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29406
  (eval $ac_link) 2>conftest.er1
 
29407
  ac_status=$?
 
29408
  grep -v '^ *+' conftest.er1 >conftest.err
 
29409
  rm -f conftest.er1
 
29410
  cat conftest.err >&5
 
29411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29412
  (exit $ac_status); } &&
 
29413
         { ac_try='test -z "$ac_c_werror_flag"
 
29414
                         || test ! -s conftest.err'
 
29415
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29416
  (eval $ac_try) 2>&5
 
29417
  ac_status=$?
 
29418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29419
  (exit $ac_status); }; } &&
 
29420
         { ac_try='test -s conftest$ac_exeext'
 
29421
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29422
  (eval $ac_try) 2>&5
 
29423
  ac_status=$?
 
29424
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29425
  (exit $ac_status); }; }; then
 
29426
  ac_cv_lib_svld_dlopen=yes
 
29427
else
 
29428
  echo "$as_me: failed program was:" >&5
 
29429
sed 's/^/| /' conftest.$ac_ext >&5
 
29430
 
 
29431
ac_cv_lib_svld_dlopen=no
 
29432
fi
 
29433
rm -f conftest.err conftest.$ac_objext \
 
29434
      conftest$ac_exeext conftest.$ac_ext
 
29435
LIBS=$ac_check_lib_save_LIBS
 
29436
fi
 
29437
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
29438
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
29439
if test $ac_cv_lib_svld_dlopen = yes; then
 
29440
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
29441
else
 
29442
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
29443
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
29444
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
29445
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29446
else
 
29447
  ac_check_lib_save_LIBS=$LIBS
 
29448
LIBS="-ldld  $LIBS"
 
29449
cat >conftest.$ac_ext <<_ACEOF
 
29450
/* confdefs.h.  */
 
29451
_ACEOF
 
29452
cat confdefs.h >>conftest.$ac_ext
 
29453
cat >>conftest.$ac_ext <<_ACEOF
 
29454
/* end confdefs.h.  */
 
29455
 
 
29456
/* Override any gcc2 internal prototype to avoid an error.  */
 
29457
#ifdef __cplusplus
 
29458
extern "C"
 
29459
#endif
 
29460
/* We use char because int might match the return type of a gcc2
 
29461
   builtin and then its argument prototype would still apply.  */
 
29462
char dld_link ();
 
29463
int
 
29464
main ()
 
29465
{
 
29466
dld_link ();
 
29467
  ;
 
29468
  return 0;
 
29469
}
 
29470
_ACEOF
 
29471
rm -f conftest.$ac_objext conftest$ac_exeext
 
29472
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29473
  (eval $ac_link) 2>conftest.er1
 
29474
  ac_status=$?
 
29475
  grep -v '^ *+' conftest.er1 >conftest.err
 
29476
  rm -f conftest.er1
 
29477
  cat conftest.err >&5
 
29478
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29479
  (exit $ac_status); } &&
 
29480
         { ac_try='test -z "$ac_c_werror_flag"
 
29481
                         || test ! -s conftest.err'
 
29482
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29483
  (eval $ac_try) 2>&5
 
29484
  ac_status=$?
 
29485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29486
  (exit $ac_status); }; } &&
 
29487
         { ac_try='test -s conftest$ac_exeext'
 
29488
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29489
  (eval $ac_try) 2>&5
 
29490
  ac_status=$?
 
29491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29492
  (exit $ac_status); }; }; then
 
29493
  ac_cv_lib_dld_dld_link=yes
 
29494
else
 
29495
  echo "$as_me: failed program was:" >&5
 
29496
sed 's/^/| /' conftest.$ac_ext >&5
 
29497
 
 
29498
ac_cv_lib_dld_dld_link=no
 
29499
fi
 
29500
rm -f conftest.err conftest.$ac_objext \
 
29501
      conftest$ac_exeext conftest.$ac_ext
 
29502
LIBS=$ac_check_lib_save_LIBS
 
29503
fi
 
29504
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
29505
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
29506
if test $ac_cv_lib_dld_dld_link = yes; then
 
29507
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
29508
fi
 
29509
 
 
29510
 
 
29511
fi
 
29512
 
 
29513
 
 
29514
fi
 
29515
 
 
29516
 
 
29517
fi
 
29518
 
 
29519
 
 
29520
fi
 
29521
 
 
29522
 
 
29523
fi
 
29524
 
 
29525
    ;;
 
29526
  esac
 
29527
 
 
29528
  if test "x$lt_cv_dlopen" != xno; then
 
29529
    enable_dlopen=yes
 
29530
  else
 
29531
    enable_dlopen=no
 
29532
  fi
 
29533
 
 
29534
  case $lt_cv_dlopen in
 
29535
  dlopen)
 
29536
    save_CPPFLAGS="$CPPFLAGS"
 
29537
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
29538
 
 
29539
    save_LDFLAGS="$LDFLAGS"
 
29540
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
29541
 
 
29542
    save_LIBS="$LIBS"
 
29543
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
29544
 
 
29545
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
29546
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
29547
if test "${lt_cv_dlopen_self+set}" = set; then
 
29548
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29549
else
 
29550
          if test "$cross_compiling" = yes; then :
 
29551
  lt_cv_dlopen_self=cross
 
29552
else
 
29553
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
29554
  lt_status=$lt_dlunknown
 
29555
  cat > conftest.$ac_ext <<EOF
 
29556
#line 29556 "configure"
 
29557
#include "confdefs.h"
 
29558
 
 
29559
#if HAVE_DLFCN_H
 
29560
#include <dlfcn.h>
 
29561
#endif
 
29562
 
 
29563
#include <stdio.h>
 
29564
 
 
29565
#ifdef RTLD_GLOBAL
 
29566
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
29567
#else
 
29568
#  ifdef DL_GLOBAL
 
29569
#    define LT_DLGLOBAL         DL_GLOBAL
 
29570
#  else
 
29571
#    define LT_DLGLOBAL         0
 
29572
#  endif
 
29573
#endif
 
29574
 
 
29575
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
29576
   find out it does not work in some platform. */
 
29577
#ifndef LT_DLLAZY_OR_NOW
 
29578
#  ifdef RTLD_LAZY
 
29579
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
29580
#  else
 
29581
#    ifdef DL_LAZY
 
29582
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
29583
#    else
 
29584
#      ifdef RTLD_NOW
 
29585
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
29586
#      else
 
29587
#        ifdef DL_NOW
 
29588
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
29589
#        else
 
29590
#          define LT_DLLAZY_OR_NOW      0
 
29591
#        endif
 
29592
#      endif
 
29593
#    endif
 
29594
#  endif
 
29595
#endif
 
29596
 
 
29597
#ifdef __cplusplus
 
29598
extern "C" void exit (int);
 
29599
#endif
 
29600
 
 
29601
void fnord() { int i=42;}
 
29602
int main ()
 
29603
{
 
29604
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
29605
  int status = $lt_dlunknown;
 
29606
 
 
29607
  if (self)
 
29608
    {
 
29609
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
29610
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
29611
      /* dlclose (self); */
 
29612
    }
 
29613
 
 
29614
    exit (status);
 
29615
}
 
29616
EOF
 
29617
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29618
  (eval $ac_link) 2>&5
 
29619
  ac_status=$?
 
29620
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29621
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
29622
    (./conftest; exit; ) >&5 2>/dev/null
 
29623
    lt_status=$?
 
29624
    case x$lt_status in
 
29625
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
29626
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
29627
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
29628
    esac
 
29629
  else :
 
29630
    # compilation failed
 
29631
    lt_cv_dlopen_self=no
 
29632
  fi
 
29633
fi
 
29634
rm -fr conftest*
 
29635
 
 
29636
 
 
29637
fi
 
29638
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
29639
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
29640
 
 
29641
    if test "x$lt_cv_dlopen_self" = xyes; then
 
29642
      LDFLAGS="$LDFLAGS $link_static_flag"
 
29643
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
29644
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
29645
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
29646
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29647
else
 
29648
          if test "$cross_compiling" = yes; then :
 
29649
  lt_cv_dlopen_self_static=cross
 
29650
else
 
29651
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
29652
  lt_status=$lt_dlunknown
 
29653
  cat > conftest.$ac_ext <<EOF
 
29654
#line 29654 "configure"
 
29655
#include "confdefs.h"
 
29656
 
 
29657
#if HAVE_DLFCN_H
 
29658
#include <dlfcn.h>
 
29659
#endif
 
29660
 
 
29661
#include <stdio.h>
 
29662
 
 
29663
#ifdef RTLD_GLOBAL
 
29664
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
29665
#else
 
29666
#  ifdef DL_GLOBAL
 
29667
#    define LT_DLGLOBAL         DL_GLOBAL
 
29668
#  else
 
29669
#    define LT_DLGLOBAL         0
 
29670
#  endif
 
29671
#endif
 
29672
 
 
29673
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
29674
   find out it does not work in some platform. */
 
29675
#ifndef LT_DLLAZY_OR_NOW
 
29676
#  ifdef RTLD_LAZY
 
29677
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
29678
#  else
 
29679
#    ifdef DL_LAZY
 
29680
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
29681
#    else
 
29682
#      ifdef RTLD_NOW
 
29683
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
29684
#      else
 
29685
#        ifdef DL_NOW
 
29686
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
29687
#        else
 
29688
#          define LT_DLLAZY_OR_NOW      0
 
29689
#        endif
 
29690
#      endif
 
29691
#    endif
 
29692
#  endif
 
29693
#endif
 
29694
 
 
29695
#ifdef __cplusplus
 
29696
extern "C" void exit (int);
 
29697
#endif
 
29698
 
 
29699
void fnord() { int i=42;}
 
29700
int main ()
 
29701
{
 
29702
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
29703
  int status = $lt_dlunknown;
 
29704
 
 
29705
  if (self)
 
29706
    {
 
29707
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
29708
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
29709
      /* dlclose (self); */
 
29710
    }
 
29711
 
 
29712
    exit (status);
 
29713
}
 
29714
EOF
 
29715
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29716
  (eval $ac_link) 2>&5
 
29717
  ac_status=$?
 
29718
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29719
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
29720
    (./conftest; exit; ) >&5 2>/dev/null
 
29721
    lt_status=$?
 
29722
    case x$lt_status in
 
29723
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
29724
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
29725
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
29726
    esac
 
29727
  else :
 
29728
    # compilation failed
 
29729
    lt_cv_dlopen_self_static=no
 
29730
  fi
 
29731
fi
 
29732
rm -fr conftest*
 
29733
 
 
29734
 
 
29735
fi
 
29736
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
29737
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
29738
    fi
 
29739
 
 
29740
    CPPFLAGS="$save_CPPFLAGS"
 
29741
    LDFLAGS="$save_LDFLAGS"
 
29742
    LIBS="$save_LIBS"
 
29743
    ;;
 
29744
  esac
 
29745
 
 
29746
  case $lt_cv_dlopen_self in
 
29747
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
29748
  *) enable_dlopen_self=unknown ;;
 
29749
  esac
 
29750
 
 
29751
  case $lt_cv_dlopen_self_static in
 
29752
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
29753
  *) enable_dlopen_self_static=unknown ;;
 
29754
  esac
 
29755
fi
 
29756
 
 
29757
 
 
29758
# The else clause should only fire when bootstrapping the
 
29759
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
29760
# with your package, and you will get complaints that there are
 
29761
# no rules to generate ltmain.sh.
 
29762
if test -f "$ltmain"; then
 
29763
  # See if we are running on zsh, and set the options which allow our commands through
 
29764
  # without removal of \ escapes.
 
29765
  if test -n "${ZSH_VERSION+set}" ; then
 
29766
    setopt NO_GLOB_SUBST
 
29767
  fi
 
29768
  # Now quote all the things that may contain metacharacters while being
 
29769
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
29770
  # variables and quote the copies for generation of the libtool script.
 
29771
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
29772
    SED SHELL STRIP \
 
29773
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
29774
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
29775
    deplibs_check_method reload_flag reload_cmds need_locks \
 
29776
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
29777
    lt_cv_sys_global_symbol_to_c_name_address \
 
29778
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
29779
    old_postinstall_cmds old_postuninstall_cmds \
 
29780
    compiler_GCJ \
 
29781
    CC_GCJ \
 
29782
    LD_GCJ \
 
29783
    lt_prog_compiler_wl_GCJ \
 
29784
    lt_prog_compiler_pic_GCJ \
 
29785
    lt_prog_compiler_static_GCJ \
 
29786
    lt_prog_compiler_no_builtin_flag_GCJ \
 
29787
    export_dynamic_flag_spec_GCJ \
 
29788
    thread_safe_flag_spec_GCJ \
 
29789
    whole_archive_flag_spec_GCJ \
 
29790
    enable_shared_with_static_runtimes_GCJ \
 
29791
    old_archive_cmds_GCJ \
 
29792
    old_archive_from_new_cmds_GCJ \
 
29793
    predep_objects_GCJ \
 
29794
    postdep_objects_GCJ \
 
29795
    predeps_GCJ \
 
29796
    postdeps_GCJ \
 
29797
    compiler_lib_search_path_GCJ \
 
29798
    archive_cmds_GCJ \
 
29799
    archive_expsym_cmds_GCJ \
 
29800
    postinstall_cmds_GCJ \
 
29801
    postuninstall_cmds_GCJ \
 
29802
    old_archive_from_expsyms_cmds_GCJ \
 
29803
    allow_undefined_flag_GCJ \
 
29804
    no_undefined_flag_GCJ \
 
29805
    export_symbols_cmds_GCJ \
 
29806
    hardcode_libdir_flag_spec_GCJ \
 
29807
    hardcode_libdir_flag_spec_ld_GCJ \
 
29808
    hardcode_libdir_separator_GCJ \
 
29809
    hardcode_automatic_GCJ \
 
29810
    module_cmds_GCJ \
 
29811
    module_expsym_cmds_GCJ \
 
29812
    lt_cv_prog_compiler_c_o_GCJ \
 
29813
    exclude_expsyms_GCJ \
 
29814
    include_expsyms_GCJ; do
 
29815
 
 
29816
    case $var in
 
29817
    old_archive_cmds_GCJ | \
 
29818
    old_archive_from_new_cmds_GCJ | \
 
29819
    archive_cmds_GCJ | \
 
29820
    archive_expsym_cmds_GCJ | \
 
29821
    module_cmds_GCJ | \
 
29822
    module_expsym_cmds_GCJ | \
 
29823
    old_archive_from_expsyms_cmds_GCJ | \
 
29824
    export_symbols_cmds_GCJ | \
 
29825
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
29826
    postinstall_cmds | postuninstall_cmds | \
 
29827
    old_postinstall_cmds | old_postuninstall_cmds | \
 
29828
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
29829
      # Double-quote double-evaled strings.
 
29830
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
29831
      ;;
 
29832
    *)
 
29833
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
29834
      ;;
 
29835
    esac
 
29836
  done
 
29837
 
 
29838
  case $lt_echo in
 
29839
  *'\$0 --fallback-echo"')
 
29840
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
29841
    ;;
 
29842
  esac
 
29843
 
 
29844
cfgfile="$ofile"
 
29845
 
 
29846
  cat <<__EOF__ >> "$cfgfile"
 
29847
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
29848
 
 
29849
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
29850
 
 
29851
# Shell to use when invoking shell scripts.
 
29852
SHELL=$lt_SHELL
 
29853
 
 
29854
# Whether or not to build shared libraries.
 
29855
build_libtool_libs=$enable_shared
 
29856
 
 
29857
# Whether or not to build static libraries.
 
29858
build_old_libs=$enable_static
 
29859
 
 
29860
# Whether or not to add -lc for building shared libraries.
 
29861
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
29862
 
 
29863
# Whether or not to disallow shared libs when runtime libs are static
 
29864
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
29865
 
 
29866
# Whether or not to optimize for fast installation.
 
29867
fast_install=$enable_fast_install
 
29868
 
 
29869
# The host system.
 
29870
host_alias=$host_alias
 
29871
host=$host
 
29872
host_os=$host_os
 
29873
 
 
29874
# The build system.
 
29875
build_alias=$build_alias
 
29876
build=$build
 
29877
build_os=$build_os
 
29878
 
 
29879
# An echo program that does not interpret backslashes.
 
29880
echo=$lt_echo
 
29881
 
 
29882
# The archiver.
 
29883
AR=$lt_AR
 
29884
AR_FLAGS=$lt_AR_FLAGS
 
29885
 
 
29886
# A C compiler.
 
29887
LTCC=$lt_LTCC
 
29888
 
 
29889
# A language-specific compiler.
 
29890
CC=$lt_compiler_GCJ
 
29891
 
 
29892
# Is the compiler the GNU C compiler?
 
29893
with_gcc=$GCC_GCJ
 
29894
 
 
29895
# An ERE matcher.
 
29896
EGREP=$lt_EGREP
 
29897
 
 
29898
# The linker used to build libraries.
 
29899
LD=$lt_LD_GCJ
 
29900
 
 
29901
# Whether we need hard or soft links.
 
29902
LN_S=$lt_LN_S
 
29903
 
 
29904
# A BSD-compatible nm program.
 
29905
NM=$lt_NM
 
29906
 
 
29907
# A symbol stripping program
 
29908
STRIP=$lt_STRIP
 
29909
 
 
29910
# Used to examine libraries when file_magic_cmd begins "file"
 
29911
MAGIC_CMD=$MAGIC_CMD
 
29912
 
 
29913
# Used on cygwin: DLL creation program.
 
29914
DLLTOOL="$DLLTOOL"
 
29915
 
 
29916
# Used on cygwin: object dumper.
 
29917
OBJDUMP="$OBJDUMP"
 
29918
 
 
29919
# Used on cygwin: assembler.
 
29920
AS="$AS"
 
29921
 
 
29922
# The name of the directory that contains temporary libtool files.
 
29923
objdir=$objdir
 
29924
 
 
29925
# How to create reloadable object files.
 
29926
reload_flag=$lt_reload_flag
 
29927
reload_cmds=$lt_reload_cmds
 
29928
 
 
29929
# How to pass a linker flag through the compiler.
 
29930
wl=$lt_lt_prog_compiler_wl_GCJ
 
29931
 
 
29932
# Object file suffix (normally "o").
 
29933
objext="$ac_objext"
 
29934
 
 
29935
# Old archive suffix (normally "a").
 
29936
libext="$libext"
 
29937
 
 
29938
# Shared library suffix (normally ".so").
 
29939
shrext_cmds='$shrext_cmds'
 
29940
 
 
29941
# Executable file suffix (normally "").
 
29942
exeext="$exeext"
 
29943
 
 
29944
# Additional compiler flags for building library objects.
 
29945
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
29946
pic_mode=$pic_mode
 
29947
 
 
29948
# What is the maximum length of a command?
 
29949
max_cmd_len=$lt_cv_sys_max_cmd_len
 
29950
 
 
29951
# Does compiler simultaneously support -c and -o options?
 
29952
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
29953
 
 
29954
# Must we lock files when doing compilation?
 
29955
need_locks=$lt_need_locks
 
29956
 
 
29957
# Do we need the lib prefix for modules?
 
29958
need_lib_prefix=$need_lib_prefix
 
29959
 
 
29960
# Do we need a version for libraries?
 
29961
need_version=$need_version
 
29962
 
 
29963
# Whether dlopen is supported.
 
29964
dlopen_support=$enable_dlopen
 
29965
 
 
29966
# Whether dlopen of programs is supported.
 
29967
dlopen_self=$enable_dlopen_self
 
29968
 
 
29969
# Whether dlopen of statically linked programs is supported.
 
29970
dlopen_self_static=$enable_dlopen_self_static
 
29971
 
 
29972
# Compiler flag to prevent dynamic linking.
 
29973
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
29974
 
 
29975
# Compiler flag to turn off builtin functions.
 
29976
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
29977
 
 
29978
# Compiler flag to allow reflexive dlopens.
 
29979
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
29980
 
 
29981
# Compiler flag to generate shared objects directly from archives.
 
29982
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
29983
 
 
29984
# Compiler flag to generate thread-safe objects.
 
29985
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
29986
 
 
29987
# Library versioning type.
 
29988
version_type=$version_type
 
29989
 
 
29990
# Format of library name prefix.
 
29991
libname_spec=$lt_libname_spec
 
29992
 
 
29993
# List of archive names.  First name is the real one, the rest are links.
 
29994
# The last name is the one that the linker finds with -lNAME.
 
29995
library_names_spec=$lt_library_names_spec
 
29996
 
 
29997
# The coded name of the library, if different from the real name.
 
29998
soname_spec=$lt_soname_spec
 
29999
 
 
30000
# Commands used to build and install an old-style archive.
 
30001
RANLIB=$lt_RANLIB
 
30002
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
30003
old_postinstall_cmds=$lt_old_postinstall_cmds
 
30004
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
30005
 
 
30006
# Create an old-style archive from a shared archive.
 
30007
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
30008
 
 
30009
# Create a temporary old-style archive to link instead of a shared archive.
 
30010
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
30011
 
 
30012
# Commands used to build and install a shared archive.
 
30013
archive_cmds=$lt_archive_cmds_GCJ
 
30014
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
30015
postinstall_cmds=$lt_postinstall_cmds
 
30016
postuninstall_cmds=$lt_postuninstall_cmds
 
30017
 
 
30018
# Commands used to build a loadable module (assumed same as above if empty)
 
30019
module_cmds=$lt_module_cmds_GCJ
 
30020
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
30021
 
 
30022
# Commands to strip libraries.
 
30023
old_striplib=$lt_old_striplib
 
30024
striplib=$lt_striplib
 
30025
 
 
30026
# Dependencies to place before the objects being linked to create a
 
30027
# shared library.
 
30028
predep_objects=$lt_predep_objects_GCJ
 
30029
 
 
30030
# Dependencies to place after the objects being linked to create a
 
30031
# shared library.
 
30032
postdep_objects=$lt_postdep_objects_GCJ
 
30033
 
 
30034
# Dependencies to place before the objects being linked to create a
 
30035
# shared library.
 
30036
predeps=$lt_predeps_GCJ
 
30037
 
 
30038
# Dependencies to place after the objects being linked to create a
 
30039
# shared library.
 
30040
postdeps=$lt_postdeps_GCJ
 
30041
 
 
30042
# The library search path used internally by the compiler when linking
 
30043
# a shared library.
 
30044
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
30045
 
 
30046
# Method to check whether dependent libraries are shared objects.
 
30047
deplibs_check_method=$lt_deplibs_check_method
 
30048
 
 
30049
# Command to use when deplibs_check_method == file_magic.
 
30050
file_magic_cmd=$lt_file_magic_cmd
 
30051
 
 
30052
# Flag that allows shared libraries with undefined symbols to be built.
 
30053
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
30054
 
 
30055
# Flag that forces no undefined symbols.
 
30056
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
30057
 
 
30058
# Commands used to finish a libtool library installation in a directory.
 
30059
finish_cmds=$lt_finish_cmds
 
30060
 
 
30061
# Same as above, but a single script fragment to be evaled but not shown.
 
30062
finish_eval=$lt_finish_eval
 
30063
 
 
30064
# Take the output of nm and produce a listing of raw symbols and C names.
 
30065
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
30066
 
 
30067
# Transform the output of nm in a proper C declaration
 
30068
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
30069
 
 
30070
# Transform the output of nm in a C name address pair
 
30071
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
30072
 
 
30073
# This is the shared library runtime path variable.
 
30074
runpath_var=$runpath_var
 
30075
 
 
30076
# This is the shared library path variable.
 
30077
shlibpath_var=$shlibpath_var
 
30078
 
 
30079
# Is shlibpath searched before the hard-coded library search path?
 
30080
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
30081
 
 
30082
# How to hardcode a shared library path into an executable.
 
30083
hardcode_action=$hardcode_action_GCJ
 
30084
 
 
30085
# Whether we should hardcode library paths into libraries.
 
30086
hardcode_into_libs=$hardcode_into_libs
 
30087
 
 
30088
# Flag to hardcode \$libdir into a binary during linking.
 
30089
# This must work even if \$libdir does not exist.
 
30090
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
30091
 
 
30092
# If ld is used when linking, flag to hardcode \$libdir into
 
30093
# a binary during linking. This must work even if \$libdir does
 
30094
# not exist.
 
30095
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
30096
 
 
30097
# Whether we need a single -rpath flag with a separated argument.
 
30098
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
30099
 
 
30100
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
30101
# resulting binary.
 
30102
hardcode_direct=$hardcode_direct_GCJ
 
30103
 
 
30104
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
30105
# resulting binary.
 
30106
hardcode_minus_L=$hardcode_minus_L_GCJ
 
30107
 
 
30108
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
30109
# the resulting binary.
 
30110
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
30111
 
 
30112
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
30113
# and all subsequent libraries and executables linked against it.
 
30114
hardcode_automatic=$hardcode_automatic_GCJ
 
30115
 
 
30116
# Variables whose values should be saved in libtool wrapper scripts and
 
30117
# restored at relink time.
 
30118
variables_saved_for_relink="$variables_saved_for_relink"
 
30119
 
 
30120
# Whether libtool must link a program against all its dependency libraries.
 
30121
link_all_deplibs=$link_all_deplibs_GCJ
 
30122
 
 
30123
# Compile-time system search path for libraries
 
30124
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
30125
 
 
30126
# Run-time system search path for libraries
 
30127
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
30128
 
 
30129
# Fix the shell variable \$srcfile for the compiler.
 
30130
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
30131
 
 
30132
# Set to yes if exported symbols are required.
 
30133
always_export_symbols=$always_export_symbols_GCJ
 
30134
 
 
30135
# The commands to list exported symbols.
 
30136
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
30137
 
 
30138
# The commands to extract the exported symbol list from a shared archive.
 
30139
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
30140
 
 
30141
# Symbols that should not be listed in the preloaded symbols.
 
30142
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
30143
 
 
30144
# Symbols that must always be exported.
 
30145
include_expsyms=$lt_include_expsyms_GCJ
 
30146
 
 
30147
# ### END LIBTOOL TAG CONFIG: $tagname
 
30148
 
 
30149
__EOF__
 
30150
 
 
30151
 
 
30152
else
 
30153
  # If there is no Makefile yet, we rely on a make rule to execute
 
30154
  # `config.status --recheck' to rerun these tests and create the
 
30155
  # libtool script then.
 
30156
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
30157
  if test -f "$ltmain_in"; then
 
30158
    test -f Makefile && make "$ltmain"
 
30159
  fi
 
30160
fi
 
30161
 
 
30162
 
 
30163
ac_ext=c
 
30164
ac_cpp='$CPP $CPPFLAGS'
 
30165
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
30166
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
30167
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
30168
 
 
30169
CC="$lt_save_CC"
 
30170
 
 
30171
        else
 
30172
          tagname=""
 
30173
        fi
 
30174
        ;;
 
30175
 
 
30176
      RC)
 
30177
 
 
30178
 
 
30179
 
 
30180
# Source file extension for RC test sources.
 
30181
ac_ext=rc
 
30182
 
 
30183
# Object file extension for compiled RC test sources.
 
30184
objext=o
 
30185
objext_RC=$objext
 
30186
 
 
30187
# Code to be used in simple compile tests
 
30188
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
30189
 
 
30190
# Code to be used in simple link tests
 
30191
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
30192
 
 
30193
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
30194
 
 
30195
# If no C compiler was specified, use CC.
 
30196
LTCC=${LTCC-"$CC"}
 
30197
 
 
30198
# Allow CC to be a program name with arguments.
 
30199
compiler=$CC
 
30200
 
 
30201
 
 
30202
# save warnings/boilerplate of simple test code
 
30203
ac_outfile=conftest.$ac_objext
 
30204
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
30205
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
30206
_lt_compiler_boilerplate=`cat conftest.err`
 
30207
$rm conftest*
 
30208
 
 
30209
ac_outfile=conftest.$ac_objext
 
30210
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
30211
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
30212
_lt_linker_boilerplate=`cat conftest.err`
 
30213
$rm conftest*
 
30214
 
 
30215
 
 
30216
# Allow CC to be a program name with arguments.
 
30217
lt_save_CC="$CC"
 
30218
CC=${RC-"windres"}
 
30219
compiler=$CC
 
30220
compiler_RC=$CC
 
30221
for cc_temp in $compiler""; do
 
30222
  case $cc_temp in
 
30223
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
30224
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
30225
    \-*) ;;
 
30226
    *) break;;
 
30227
  esac
 
30228
done
 
30229
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
30230
 
 
30231
lt_cv_prog_compiler_c_o_RC=yes
 
30232
 
 
30233
# The else clause should only fire when bootstrapping the
 
30234
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
30235
# with your package, and you will get complaints that there are
 
30236
# no rules to generate ltmain.sh.
 
30237
if test -f "$ltmain"; then
 
30238
  # See if we are running on zsh, and set the options which allow our commands through
 
30239
  # without removal of \ escapes.
 
30240
  if test -n "${ZSH_VERSION+set}" ; then
 
30241
    setopt NO_GLOB_SUBST
 
30242
  fi
 
30243
  # Now quote all the things that may contain metacharacters while being
 
30244
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
30245
  # variables and quote the copies for generation of the libtool script.
 
30246
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
30247
    SED SHELL STRIP \
 
30248
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
30249
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
30250
    deplibs_check_method reload_flag reload_cmds need_locks \
 
30251
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
30252
    lt_cv_sys_global_symbol_to_c_name_address \
 
30253
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
30254
    old_postinstall_cmds old_postuninstall_cmds \
 
30255
    compiler_RC \
 
30256
    CC_RC \
 
30257
    LD_RC \
 
30258
    lt_prog_compiler_wl_RC \
 
30259
    lt_prog_compiler_pic_RC \
 
30260
    lt_prog_compiler_static_RC \
 
30261
    lt_prog_compiler_no_builtin_flag_RC \
 
30262
    export_dynamic_flag_spec_RC \
 
30263
    thread_safe_flag_spec_RC \
 
30264
    whole_archive_flag_spec_RC \
 
30265
    enable_shared_with_static_runtimes_RC \
 
30266
    old_archive_cmds_RC \
 
30267
    old_archive_from_new_cmds_RC \
 
30268
    predep_objects_RC \
 
30269
    postdep_objects_RC \
 
30270
    predeps_RC \
 
30271
    postdeps_RC \
 
30272
    compiler_lib_search_path_RC \
 
30273
    archive_cmds_RC \
 
30274
    archive_expsym_cmds_RC \
 
30275
    postinstall_cmds_RC \
 
30276
    postuninstall_cmds_RC \
 
30277
    old_archive_from_expsyms_cmds_RC \
 
30278
    allow_undefined_flag_RC \
 
30279
    no_undefined_flag_RC \
 
30280
    export_symbols_cmds_RC \
 
30281
    hardcode_libdir_flag_spec_RC \
 
30282
    hardcode_libdir_flag_spec_ld_RC \
 
30283
    hardcode_libdir_separator_RC \
 
30284
    hardcode_automatic_RC \
 
30285
    module_cmds_RC \
 
30286
    module_expsym_cmds_RC \
 
30287
    lt_cv_prog_compiler_c_o_RC \
 
30288
    exclude_expsyms_RC \
 
30289
    include_expsyms_RC; do
 
30290
 
 
30291
    case $var in
 
30292
    old_archive_cmds_RC | \
 
30293
    old_archive_from_new_cmds_RC | \
 
30294
    archive_cmds_RC | \
 
30295
    archive_expsym_cmds_RC | \
 
30296
    module_cmds_RC | \
 
30297
    module_expsym_cmds_RC | \
 
30298
    old_archive_from_expsyms_cmds_RC | \
 
30299
    export_symbols_cmds_RC | \
 
30300
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
30301
    postinstall_cmds | postuninstall_cmds | \
 
30302
    old_postinstall_cmds | old_postuninstall_cmds | \
 
30303
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
30304
      # Double-quote double-evaled strings.
 
30305
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
30306
      ;;
 
30307
    *)
 
30308
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
30309
      ;;
 
30310
    esac
 
30311
  done
 
30312
 
 
30313
  case $lt_echo in
 
30314
  *'\$0 --fallback-echo"')
 
30315
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
30316
    ;;
 
30317
  esac
 
30318
 
 
30319
cfgfile="$ofile"
 
30320
 
 
30321
  cat <<__EOF__ >> "$cfgfile"
 
30322
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
30323
 
 
30324
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
30325
 
 
30326
# Shell to use when invoking shell scripts.
 
30327
SHELL=$lt_SHELL
 
30328
 
 
30329
# Whether or not to build shared libraries.
 
30330
build_libtool_libs=$enable_shared
 
30331
 
 
30332
# Whether or not to build static libraries.
 
30333
build_old_libs=$enable_static
 
30334
 
 
30335
# Whether or not to add -lc for building shared libraries.
 
30336
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
30337
 
 
30338
# Whether or not to disallow shared libs when runtime libs are static
 
30339
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
30340
 
 
30341
# Whether or not to optimize for fast installation.
 
30342
fast_install=$enable_fast_install
 
30343
 
 
30344
# The host system.
 
30345
host_alias=$host_alias
 
30346
host=$host
 
30347
host_os=$host_os
 
30348
 
 
30349
# The build system.
 
30350
build_alias=$build_alias
 
30351
build=$build
 
30352
build_os=$build_os
 
30353
 
 
30354
# An echo program that does not interpret backslashes.
 
30355
echo=$lt_echo
 
30356
 
 
30357
# The archiver.
 
30358
AR=$lt_AR
 
30359
AR_FLAGS=$lt_AR_FLAGS
 
30360
 
 
30361
# A C compiler.
 
30362
LTCC=$lt_LTCC
 
30363
 
 
30364
# A language-specific compiler.
 
30365
CC=$lt_compiler_RC
 
30366
 
 
30367
# Is the compiler the GNU C compiler?
 
30368
with_gcc=$GCC_RC
 
30369
 
 
30370
# An ERE matcher.
 
30371
EGREP=$lt_EGREP
 
30372
 
 
30373
# The linker used to build libraries.
 
30374
LD=$lt_LD_RC
 
30375
 
 
30376
# Whether we need hard or soft links.
 
30377
LN_S=$lt_LN_S
 
30378
 
 
30379
# A BSD-compatible nm program.
 
30380
NM=$lt_NM
 
30381
 
 
30382
# A symbol stripping program
 
30383
STRIP=$lt_STRIP
 
30384
 
 
30385
# Used to examine libraries when file_magic_cmd begins "file"
 
30386
MAGIC_CMD=$MAGIC_CMD
 
30387
 
 
30388
# Used on cygwin: DLL creation program.
 
30389
DLLTOOL="$DLLTOOL"
 
30390
 
 
30391
# Used on cygwin: object dumper.
 
30392
OBJDUMP="$OBJDUMP"
 
30393
 
 
30394
# Used on cygwin: assembler.
 
30395
AS="$AS"
 
30396
 
 
30397
# The name of the directory that contains temporary libtool files.
 
30398
objdir=$objdir
 
30399
 
 
30400
# How to create reloadable object files.
 
30401
reload_flag=$lt_reload_flag
 
30402
reload_cmds=$lt_reload_cmds
 
30403
 
 
30404
# How to pass a linker flag through the compiler.
 
30405
wl=$lt_lt_prog_compiler_wl_RC
 
30406
 
 
30407
# Object file suffix (normally "o").
 
30408
objext="$ac_objext"
 
30409
 
 
30410
# Old archive suffix (normally "a").
 
30411
libext="$libext"
 
30412
 
 
30413
# Shared library suffix (normally ".so").
 
30414
shrext_cmds='$shrext_cmds'
 
30415
 
 
30416
# Executable file suffix (normally "").
 
30417
exeext="$exeext"
 
30418
 
 
30419
# Additional compiler flags for building library objects.
 
30420
pic_flag=$lt_lt_prog_compiler_pic_RC
 
30421
pic_mode=$pic_mode
 
30422
 
 
30423
# What is the maximum length of a command?
 
30424
max_cmd_len=$lt_cv_sys_max_cmd_len
 
30425
 
 
30426
# Does compiler simultaneously support -c and -o options?
 
30427
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
30428
 
 
30429
# Must we lock files when doing compilation?
 
30430
need_locks=$lt_need_locks
 
30431
 
 
30432
# Do we need the lib prefix for modules?
 
30433
need_lib_prefix=$need_lib_prefix
 
30434
 
 
30435
# Do we need a version for libraries?
 
30436
need_version=$need_version
 
30437
 
 
30438
# Whether dlopen is supported.
 
30439
dlopen_support=$enable_dlopen
 
30440
 
 
30441
# Whether dlopen of programs is supported.
 
30442
dlopen_self=$enable_dlopen_self
 
30443
 
 
30444
# Whether dlopen of statically linked programs is supported.
 
30445
dlopen_self_static=$enable_dlopen_self_static
 
30446
 
 
30447
# Compiler flag to prevent dynamic linking.
 
30448
link_static_flag=$lt_lt_prog_compiler_static_RC
 
30449
 
 
30450
# Compiler flag to turn off builtin functions.
 
30451
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
30452
 
 
30453
# Compiler flag to allow reflexive dlopens.
 
30454
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
30455
 
 
30456
# Compiler flag to generate shared objects directly from archives.
 
30457
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
30458
 
 
30459
# Compiler flag to generate thread-safe objects.
 
30460
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
30461
 
 
30462
# Library versioning type.
 
30463
version_type=$version_type
 
30464
 
 
30465
# Format of library name prefix.
 
30466
libname_spec=$lt_libname_spec
 
30467
 
 
30468
# List of archive names.  First name is the real one, the rest are links.
 
30469
# The last name is the one that the linker finds with -lNAME.
 
30470
library_names_spec=$lt_library_names_spec
 
30471
 
 
30472
# The coded name of the library, if different from the real name.
 
30473
soname_spec=$lt_soname_spec
 
30474
 
 
30475
# Commands used to build and install an old-style archive.
 
30476
RANLIB=$lt_RANLIB
 
30477
old_archive_cmds=$lt_old_archive_cmds_RC
 
30478
old_postinstall_cmds=$lt_old_postinstall_cmds
 
30479
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
30480
 
 
30481
# Create an old-style archive from a shared archive.
 
30482
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
30483
 
 
30484
# Create a temporary old-style archive to link instead of a shared archive.
 
30485
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
30486
 
 
30487
# Commands used to build and install a shared archive.
 
30488
archive_cmds=$lt_archive_cmds_RC
 
30489
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
30490
postinstall_cmds=$lt_postinstall_cmds
 
30491
postuninstall_cmds=$lt_postuninstall_cmds
 
30492
 
 
30493
# Commands used to build a loadable module (assumed same as above if empty)
 
30494
module_cmds=$lt_module_cmds_RC
 
30495
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
30496
 
 
30497
# Commands to strip libraries.
 
30498
old_striplib=$lt_old_striplib
 
30499
striplib=$lt_striplib
 
30500
 
 
30501
# Dependencies to place before the objects being linked to create a
 
30502
# shared library.
 
30503
predep_objects=$lt_predep_objects_RC
 
30504
 
 
30505
# Dependencies to place after the objects being linked to create a
 
30506
# shared library.
 
30507
postdep_objects=$lt_postdep_objects_RC
 
30508
 
 
30509
# Dependencies to place before the objects being linked to create a
 
30510
# shared library.
 
30511
predeps=$lt_predeps_RC
 
30512
 
 
30513
# Dependencies to place after the objects being linked to create a
 
30514
# shared library.
 
30515
postdeps=$lt_postdeps_RC
 
30516
 
 
30517
# The library search path used internally by the compiler when linking
 
30518
# a shared library.
 
30519
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
30520
 
 
30521
# Method to check whether dependent libraries are shared objects.
 
30522
deplibs_check_method=$lt_deplibs_check_method
 
30523
 
 
30524
# Command to use when deplibs_check_method == file_magic.
 
30525
file_magic_cmd=$lt_file_magic_cmd
 
30526
 
 
30527
# Flag that allows shared libraries with undefined symbols to be built.
 
30528
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
30529
 
 
30530
# Flag that forces no undefined symbols.
 
30531
no_undefined_flag=$lt_no_undefined_flag_RC
 
30532
 
 
30533
# Commands used to finish a libtool library installation in a directory.
 
30534
finish_cmds=$lt_finish_cmds
 
30535
 
 
30536
# Same as above, but a single script fragment to be evaled but not shown.
 
30537
finish_eval=$lt_finish_eval
 
30538
 
 
30539
# Take the output of nm and produce a listing of raw symbols and C names.
 
30540
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
30541
 
 
30542
# Transform the output of nm in a proper C declaration
 
30543
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
30544
 
 
30545
# Transform the output of nm in a C name address pair
 
30546
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
30547
 
 
30548
# This is the shared library runtime path variable.
 
30549
runpath_var=$runpath_var
 
30550
 
 
30551
# This is the shared library path variable.
 
30552
shlibpath_var=$shlibpath_var
 
30553
 
 
30554
# Is shlibpath searched before the hard-coded library search path?
 
30555
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
30556
 
 
30557
# How to hardcode a shared library path into an executable.
 
30558
hardcode_action=$hardcode_action_RC
 
30559
 
 
30560
# Whether we should hardcode library paths into libraries.
 
30561
hardcode_into_libs=$hardcode_into_libs
 
30562
 
 
30563
# Flag to hardcode \$libdir into a binary during linking.
 
30564
# This must work even if \$libdir does not exist.
 
30565
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
30566
 
 
30567
# If ld is used when linking, flag to hardcode \$libdir into
 
30568
# a binary during linking. This must work even if \$libdir does
 
30569
# not exist.
 
30570
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
30571
 
 
30572
# Whether we need a single -rpath flag with a separated argument.
 
30573
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
30574
 
 
30575
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
30576
# resulting binary.
 
30577
hardcode_direct=$hardcode_direct_RC
 
30578
 
 
30579
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
30580
# resulting binary.
 
30581
hardcode_minus_L=$hardcode_minus_L_RC
 
30582
 
 
30583
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
30584
# the resulting binary.
 
30585
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
30586
 
 
30587
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
30588
# and all subsequent libraries and executables linked against it.
 
30589
hardcode_automatic=$hardcode_automatic_RC
 
30590
 
 
30591
# Variables whose values should be saved in libtool wrapper scripts and
 
30592
# restored at relink time.
 
30593
variables_saved_for_relink="$variables_saved_for_relink"
 
30594
 
 
30595
# Whether libtool must link a program against all its dependency libraries.
 
30596
link_all_deplibs=$link_all_deplibs_RC
 
30597
 
 
30598
# Compile-time system search path for libraries
 
30599
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
30600
 
 
30601
# Run-time system search path for libraries
 
30602
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
30603
 
 
30604
# Fix the shell variable \$srcfile for the compiler.
 
30605
fix_srcfile_path="$fix_srcfile_path_RC"
 
30606
 
 
30607
# Set to yes if exported symbols are required.
 
30608
always_export_symbols=$always_export_symbols_RC
 
30609
 
 
30610
# The commands to list exported symbols.
 
30611
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
30612
 
 
30613
# The commands to extract the exported symbol list from a shared archive.
 
30614
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
30615
 
 
30616
# Symbols that should not be listed in the preloaded symbols.
 
30617
exclude_expsyms=$lt_exclude_expsyms_RC
 
30618
 
 
30619
# Symbols that must always be exported.
 
30620
include_expsyms=$lt_include_expsyms_RC
 
30621
 
 
30622
# ### END LIBTOOL TAG CONFIG: $tagname
 
30623
 
 
30624
__EOF__
 
30625
 
 
30626
 
 
30627
else
 
30628
  # If there is no Makefile yet, we rely on a make rule to execute
 
30629
  # `config.status --recheck' to rerun these tests and create the
 
30630
  # libtool script then.
 
30631
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
30632
  if test -f "$ltmain_in"; then
 
30633
    test -f Makefile && make "$ltmain"
 
30634
  fi
 
30635
fi
 
30636
 
 
30637
 
 
30638
ac_ext=c
 
30639
ac_cpp='$CPP $CPPFLAGS'
 
30640
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
30641
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
30642
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
30643
 
 
30644
CC="$lt_save_CC"
 
30645
 
 
30646
        ;;
 
30647
 
 
30648
      *)
 
30649
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
30650
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
30651
   { (exit 1); exit 1; }; }
 
30652
        ;;
 
30653
      esac
 
30654
 
 
30655
      # Append the new tag name to the list of available tags.
 
30656
      if test -n "$tagname" ; then
 
30657
      available_tags="$available_tags $tagname"
 
30658
    fi
 
30659
    fi
 
30660
  done
 
30661
  IFS="$lt_save_ifs"
 
30662
 
 
30663
  # Now substitute the updated list of available tags.
 
30664
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
30665
    mv "${ofile}T" "$ofile"
 
30666
    chmod +x "$ofile"
 
30667
  else
 
30668
    rm -f "${ofile}T"
 
30669
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
30670
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
30671
   { (exit 1); exit 1; }; }
 
30672
  fi
 
30673
fi
 
30674
 
 
30675
 
 
30676
 
 
30677
# This can be used to rebuild libtool when needed
 
30678
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
30679
 
 
30680
# Always use our own libtool.
 
30681
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
30682
 
 
30683
# Prevent multiple expansion
 
30684
 
 
30685
 
 
30686
 
 
30687
 
 
30688
 
 
30689
 
 
30690
 
 
30691
 
 
30692
 
 
30693
 
 
30694
 
 
30695
 
 
30696
 
 
30697
 
 
30698
 
 
30699
 
 
30700
 
 
30701
 
 
30702
 
 
30703
 
 
30704
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
30705
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
30706
LN_S=$as_ln_s
 
30707
if test "$LN_S" = "ln -s"; then
 
30708
  echo "$as_me:$LINENO: result: yes" >&5
 
30709
echo "${ECHO_T}yes" >&6
 
30710
else
 
30711
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
30712
echo "${ECHO_T}no, using $LN_S" >&6
 
30713
fi
 
30714
 
 
30715
if test $ac_cv_c_compiler_gnu = yes; then
 
30716
    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
 
30717
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
 
30718
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
 
30719
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30720
else
 
30721
    ac_pattern="Autoconf.*'x'"
 
30722
  cat >conftest.$ac_ext <<_ACEOF
 
30723
/* confdefs.h.  */
 
30724
_ACEOF
 
30725
cat confdefs.h >>conftest.$ac_ext
 
30726
cat >>conftest.$ac_ext <<_ACEOF
 
30727
/* end confdefs.h.  */
 
30728
#include <sgtty.h>
 
30729
Autoconf TIOCGETP
 
30730
_ACEOF
 
30731
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
30732
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
 
30733
  ac_cv_prog_gcc_traditional=yes
 
30734
else
 
30735
  ac_cv_prog_gcc_traditional=no
 
30736
fi
 
30737
rm -f conftest*
 
30738
 
 
30739
 
 
30740
  if test $ac_cv_prog_gcc_traditional = no; then
 
30741
    cat >conftest.$ac_ext <<_ACEOF
 
30742
/* confdefs.h.  */
 
30743
_ACEOF
 
30744
cat confdefs.h >>conftest.$ac_ext
 
30745
cat >>conftest.$ac_ext <<_ACEOF
 
30746
/* end confdefs.h.  */
 
30747
#include <termio.h>
 
30748
Autoconf TCGETA
 
30749
_ACEOF
 
30750
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
30751
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
 
30752
  ac_cv_prog_gcc_traditional=yes
 
30753
fi
 
30754
rm -f conftest*
 
30755
 
 
30756
  fi
 
30757
fi
 
30758
echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
 
30759
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
 
30760
  if test $ac_cv_prog_gcc_traditional = yes; then
 
30761
    CC="$CC -traditional"
 
30762
  fi
 
30763
fi
 
30764
 
 
30765
echo "$as_me:$LINENO: checking for working volatile" >&5
 
30766
echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
 
30767
if test "${ac_cv_c_volatile+set}" = set; then
 
30768
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30769
else
 
30770
  cat >conftest.$ac_ext <<_ACEOF
 
30771
/* confdefs.h.  */
 
30772
_ACEOF
 
30773
cat confdefs.h >>conftest.$ac_ext
 
30774
cat >>conftest.$ac_ext <<_ACEOF
 
30775
/* end confdefs.h.  */
 
30776
 
 
30777
int
 
30778
main ()
 
30779
{
 
30780
 
 
30781
volatile int x;
 
30782
int * volatile y;
 
30783
  ;
 
30784
  return 0;
 
30785
}
 
30786
_ACEOF
 
30787
rm -f conftest.$ac_objext
 
30788
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
30789
  (eval $ac_compile) 2>conftest.er1
 
30790
  ac_status=$?
 
30791
  grep -v '^ *+' conftest.er1 >conftest.err
 
30792
  rm -f conftest.er1
 
30793
  cat conftest.err >&5
 
30794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30795
  (exit $ac_status); } &&
 
30796
         { ac_try='test -z "$ac_c_werror_flag"
 
30797
                         || test ! -s conftest.err'
 
30798
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30799
  (eval $ac_try) 2>&5
 
30800
  ac_status=$?
 
30801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30802
  (exit $ac_status); }; } &&
 
30803
         { ac_try='test -s conftest.$ac_objext'
 
30804
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30805
  (eval $ac_try) 2>&5
 
30806
  ac_status=$?
 
30807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30808
  (exit $ac_status); }; }; then
 
30809
  ac_cv_c_volatile=yes
 
30810
else
 
30811
  echo "$as_me: failed program was:" >&5
 
30812
sed 's/^/| /' conftest.$ac_ext >&5
 
30813
 
 
30814
ac_cv_c_volatile=no
 
30815
fi
 
30816
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
30817
fi
 
30818
echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
 
30819
echo "${ECHO_T}$ac_cv_c_volatile" >&6
 
30820
if test $ac_cv_c_volatile = no; then
 
30821
 
 
30822
cat >>confdefs.h <<\_ACEOF
 
30823
#define volatile
 
30824
_ACEOF
 
30825
 
 
30826
fi
 
30827
 
 
30828
echo "$as_me:$LINENO: checking for library containing strerror" >&5
 
30829
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
 
30830
if test "${ac_cv_search_strerror+set}" = set; then
 
30831
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30832
else
 
30833
  ac_func_search_save_LIBS=$LIBS
 
30834
ac_cv_search_strerror=no
 
30835
cat >conftest.$ac_ext <<_ACEOF
 
30836
/* confdefs.h.  */
 
30837
_ACEOF
 
30838
cat confdefs.h >>conftest.$ac_ext
 
30839
cat >>conftest.$ac_ext <<_ACEOF
 
30840
/* end confdefs.h.  */
 
30841
 
 
30842
/* Override any gcc2 internal prototype to avoid an error.  */
 
30843
#ifdef __cplusplus
 
30844
extern "C"
 
30845
#endif
 
30846
/* We use char because int might match the return type of a gcc2
 
30847
   builtin and then its argument prototype would still apply.  */
 
30848
char strerror ();
 
30849
int
 
30850
main ()
 
30851
{
 
30852
strerror ();
 
30853
  ;
 
30854
  return 0;
 
30855
}
 
30856
_ACEOF
 
30857
rm -f conftest.$ac_objext conftest$ac_exeext
 
30858
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
30859
  (eval $ac_link) 2>conftest.er1
 
30860
  ac_status=$?
 
30861
  grep -v '^ *+' conftest.er1 >conftest.err
 
30862
  rm -f conftest.er1
 
30863
  cat conftest.err >&5
 
30864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30865
  (exit $ac_status); } &&
 
30866
         { ac_try='test -z "$ac_c_werror_flag"
 
30867
                         || test ! -s conftest.err'
 
30868
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30869
  (eval $ac_try) 2>&5
 
30870
  ac_status=$?
 
30871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30872
  (exit $ac_status); }; } &&
 
30873
         { ac_try='test -s conftest$ac_exeext'
 
30874
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30875
  (eval $ac_try) 2>&5
 
30876
  ac_status=$?
 
30877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30878
  (exit $ac_status); }; }; then
 
30879
  ac_cv_search_strerror="none required"
 
30880
else
 
30881
  echo "$as_me: failed program was:" >&5
 
30882
sed 's/^/| /' conftest.$ac_ext >&5
 
30883
 
 
30884
fi
 
30885
rm -f conftest.err conftest.$ac_objext \
 
30886
      conftest$ac_exeext conftest.$ac_ext
 
30887
if test "$ac_cv_search_strerror" = no; then
 
30888
  for ac_lib in cposix; do
 
30889
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
30890
    cat >conftest.$ac_ext <<_ACEOF
 
30891
/* confdefs.h.  */
 
30892
_ACEOF
 
30893
cat confdefs.h >>conftest.$ac_ext
 
30894
cat >>conftest.$ac_ext <<_ACEOF
 
30895
/* end confdefs.h.  */
 
30896
 
 
30897
/* Override any gcc2 internal prototype to avoid an error.  */
 
30898
#ifdef __cplusplus
 
30899
extern "C"
 
30900
#endif
 
30901
/* We use char because int might match the return type of a gcc2
 
30902
   builtin and then its argument prototype would still apply.  */
 
30903
char strerror ();
 
30904
int
 
30905
main ()
 
30906
{
 
30907
strerror ();
 
30908
  ;
 
30909
  return 0;
 
30910
}
 
30911
_ACEOF
 
30912
rm -f conftest.$ac_objext conftest$ac_exeext
 
30913
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
30914
  (eval $ac_link) 2>conftest.er1
 
30915
  ac_status=$?
 
30916
  grep -v '^ *+' conftest.er1 >conftest.err
 
30917
  rm -f conftest.er1
 
30918
  cat conftest.err >&5
 
30919
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30920
  (exit $ac_status); } &&
 
30921
         { ac_try='test -z "$ac_c_werror_flag"
 
30922
                         || test ! -s conftest.err'
 
30923
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30924
  (eval $ac_try) 2>&5
 
30925
  ac_status=$?
 
30926
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30927
  (exit $ac_status); }; } &&
 
30928
         { ac_try='test -s conftest$ac_exeext'
 
30929
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30930
  (eval $ac_try) 2>&5
 
30931
  ac_status=$?
 
30932
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30933
  (exit $ac_status); }; }; then
 
30934
  ac_cv_search_strerror="-l$ac_lib"
 
30935
break
 
30936
else
 
30937
  echo "$as_me: failed program was:" >&5
 
30938
sed 's/^/| /' conftest.$ac_ext >&5
 
30939
 
 
30940
fi
 
30941
rm -f conftest.err conftest.$ac_objext \
 
30942
      conftest$ac_exeext conftest.$ac_ext
 
30943
  done
 
30944
fi
 
30945
LIBS=$ac_func_search_save_LIBS
 
30946
fi
 
30947
echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
 
30948
echo "${ECHO_T}$ac_cv_search_strerror" >&6
 
30949
if test "$ac_cv_search_strerror" != no; then
 
30950
  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
 
30951
 
 
30952
fi
 
30953
 
5673
30954
# Extract the first word of "sh", so it can be a program name with args.
5674
30955
set dummy sh; ac_word=$2
5675
30956
echo "$as_me:$LINENO: checking for $ac_word" >&5
5916
31197
  cat conftest.err >&5
5917
31198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918
31199
  (exit $ac_status); } &&
5919
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
31200
         { ac_try='test -z "$ac_c_werror_flag"
 
31201
                         || test ! -s conftest.err'
5920
31202
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5921
31203
  (eval $ac_try) 2>&5
5922
31204
  ac_status=$?
5953
31235
    ;;
5954
31236
esac
5955
31237
 
5956
 
echo "$as_me:$LINENO: checking for nlist in -lelf" >&5
5957
 
echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6
5958
 
if test "${ac_cv_lib_elf_nlist+set}" = set; then
5959
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5960
 
else
5961
 
  ac_check_lib_save_LIBS=$LIBS
5962
 
LIBS="-lelf  $LIBS"
5963
 
cat >conftest.$ac_ext <<_ACEOF
5964
 
/* confdefs.h.  */
5965
 
_ACEOF
5966
 
cat confdefs.h >>conftest.$ac_ext
5967
 
cat >>conftest.$ac_ext <<_ACEOF
5968
 
/* end confdefs.h.  */
5969
 
 
5970
 
/* Override any gcc2 internal prototype to avoid an error.  */
5971
 
#ifdef __cplusplus
5972
 
extern "C"
5973
 
#endif
5974
 
/* We use char because int might match the return type of a gcc2
5975
 
   builtin and then its argument prototype would still apply.  */
5976
 
char nlist ();
5977
 
int
5978
 
main ()
5979
 
{
5980
 
nlist ();
5981
 
  ;
5982
 
  return 0;
5983
 
}
5984
 
_ACEOF
5985
 
rm -f conftest.$ac_objext conftest$ac_exeext
5986
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5987
 
  (eval $ac_link) 2>conftest.er1
5988
 
  ac_status=$?
5989
 
  grep -v '^ *+' conftest.er1 >conftest.err
5990
 
  rm -f conftest.er1
5991
 
  cat conftest.err >&5
5992
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993
 
  (exit $ac_status); } &&
5994
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5995
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996
 
  (eval $ac_try) 2>&5
5997
 
  ac_status=$?
5998
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999
 
  (exit $ac_status); }; } &&
6000
 
         { ac_try='test -s conftest$ac_exeext'
6001
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002
 
  (eval $ac_try) 2>&5
6003
 
  ac_status=$?
6004
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005
 
  (exit $ac_status); }; }; then
6006
 
  ac_cv_lib_elf_nlist=yes
6007
 
else
6008
 
  echo "$as_me: failed program was:" >&5
6009
 
sed 's/^/| /' conftest.$ac_ext >&5
6010
 
 
6011
 
ac_cv_lib_elf_nlist=no
6012
 
fi
6013
 
rm -f conftest.err conftest.$ac_objext \
6014
 
      conftest$ac_exeext conftest.$ac_ext
6015
 
LIBS=$ac_check_lib_save_LIBS
6016
 
fi
6017
 
echo "$as_me:$LINENO: result: $ac_cv_lib_elf_nlist" >&5
6018
 
echo "${ECHO_T}$ac_cv_lib_elf_nlist" >&6
6019
 
if test $ac_cv_lib_elf_nlist = yes; then
6020
 
  cat >>confdefs.h <<_ACEOF
6021
 
#define HAVE_LIBELF 1
6022
 
_ACEOF
6023
 
 
6024
 
  LIBS="-lelf $LIBS"
6025
 
 
6026
 
fi
6027
 
 
6028
 
echo "$as_me:$LINENO: checking for main in -lkvm" >&5
6029
 
echo $ECHO_N "checking for main in -lkvm... $ECHO_C" >&6
6030
 
if test "${ac_cv_lib_kvm_main+set}" = set; then
6031
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6032
 
else
6033
 
  ac_check_lib_save_LIBS=$LIBS
6034
 
LIBS="-lkvm  $LIBS"
6035
 
cat >conftest.$ac_ext <<_ACEOF
6036
 
/* confdefs.h.  */
6037
 
_ACEOF
6038
 
cat confdefs.h >>conftest.$ac_ext
6039
 
cat >>conftest.$ac_ext <<_ACEOF
6040
 
/* end confdefs.h.  */
6041
 
 
6042
 
 
6043
 
int
6044
 
main ()
6045
 
{
6046
 
main ();
6047
 
  ;
6048
 
  return 0;
6049
 
}
6050
 
_ACEOF
6051
 
rm -f conftest.$ac_objext conftest$ac_exeext
6052
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6053
 
  (eval $ac_link) 2>conftest.er1
6054
 
  ac_status=$?
6055
 
  grep -v '^ *+' conftest.er1 >conftest.err
6056
 
  rm -f conftest.er1
6057
 
  cat conftest.err >&5
6058
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059
 
  (exit $ac_status); } &&
6060
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6061
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6062
 
  (eval $ac_try) 2>&5
6063
 
  ac_status=$?
6064
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065
 
  (exit $ac_status); }; } &&
6066
 
         { ac_try='test -s conftest$ac_exeext'
6067
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068
 
  (eval $ac_try) 2>&5
6069
 
  ac_status=$?
6070
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071
 
  (exit $ac_status); }; }; then
6072
 
  ac_cv_lib_kvm_main=yes
6073
 
else
6074
 
  echo "$as_me: failed program was:" >&5
6075
 
sed 's/^/| /' conftest.$ac_ext >&5
6076
 
 
6077
 
ac_cv_lib_kvm_main=no
6078
 
fi
6079
 
rm -f conftest.err conftest.$ac_objext \
6080
 
      conftest$ac_exeext conftest.$ac_ext
6081
 
LIBS=$ac_check_lib_save_LIBS
6082
 
fi
6083
 
echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_main" >&5
6084
 
echo "${ECHO_T}$ac_cv_lib_kvm_main" >&6
6085
 
if test $ac_cv_lib_kvm_main = yes; then
6086
 
  cat >>confdefs.h <<_ACEOF
6087
 
#define HAVE_LIBKVM 1
6088
 
_ACEOF
6089
 
 
6090
 
  LIBS="-lkvm $LIBS"
6091
 
 
6092
 
fi
6093
 
 
6094
 
echo "$as_me:$LINENO: checking for nlist in -lld" >&5
6095
 
echo $ECHO_N "checking for nlist in -lld... $ECHO_C" >&6
6096
 
if test "${ac_cv_lib_ld_nlist+set}" = set; then
6097
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6098
 
else
6099
 
  ac_check_lib_save_LIBS=$LIBS
6100
 
LIBS="-lld  $LIBS"
6101
 
cat >conftest.$ac_ext <<_ACEOF
6102
 
/* confdefs.h.  */
6103
 
_ACEOF
6104
 
cat confdefs.h >>conftest.$ac_ext
6105
 
cat >>conftest.$ac_ext <<_ACEOF
6106
 
/* end confdefs.h.  */
6107
 
 
6108
 
/* Override any gcc2 internal prototype to avoid an error.  */
6109
 
#ifdef __cplusplus
6110
 
extern "C"
6111
 
#endif
6112
 
/* We use char because int might match the return type of a gcc2
6113
 
   builtin and then its argument prototype would still apply.  */
6114
 
char nlist ();
6115
 
int
6116
 
main ()
6117
 
{
6118
 
nlist ();
6119
 
  ;
6120
 
  return 0;
6121
 
}
6122
 
_ACEOF
6123
 
rm -f conftest.$ac_objext conftest$ac_exeext
6124
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6125
 
  (eval $ac_link) 2>conftest.er1
6126
 
  ac_status=$?
6127
 
  grep -v '^ *+' conftest.er1 >conftest.err
6128
 
  rm -f conftest.er1
6129
 
  cat conftest.err >&5
6130
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131
 
  (exit $ac_status); } &&
6132
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6133
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134
 
  (eval $ac_try) 2>&5
6135
 
  ac_status=$?
6136
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137
 
  (exit $ac_status); }; } &&
6138
 
         { ac_try='test -s conftest$ac_exeext'
6139
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140
 
  (eval $ac_try) 2>&5
6141
 
  ac_status=$?
6142
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143
 
  (exit $ac_status); }; }; then
6144
 
  ac_cv_lib_ld_nlist=yes
6145
 
else
6146
 
  echo "$as_me: failed program was:" >&5
6147
 
sed 's/^/| /' conftest.$ac_ext >&5
6148
 
 
6149
 
ac_cv_lib_ld_nlist=no
6150
 
fi
6151
 
rm -f conftest.err conftest.$ac_objext \
6152
 
      conftest$ac_exeext conftest.$ac_ext
6153
 
LIBS=$ac_check_lib_save_LIBS
6154
 
fi
6155
 
echo "$as_me:$LINENO: result: $ac_cv_lib_ld_nlist" >&5
6156
 
echo "${ECHO_T}$ac_cv_lib_ld_nlist" >&6
6157
 
if test $ac_cv_lib_ld_nlist = yes; then
6158
 
  cat >>confdefs.h <<_ACEOF
6159
 
#define HAVE_LIBLD 1
6160
 
_ACEOF
6161
 
 
6162
 
  LIBS="-lld $LIBS"
6163
 
 
6164
 
fi
6165
 
 
6166
 
 
6167
 
echo "$as_me:$LINENO: checking for nlist in -lmld" >&5
6168
 
echo $ECHO_N "checking for nlist in -lmld... $ECHO_C" >&6
6169
 
if test "${ac_cv_lib_mld_nlist+set}" = set; then
6170
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6171
 
else
6172
 
  ac_check_lib_save_LIBS=$LIBS
6173
 
LIBS="-lmld  $LIBS"
6174
 
cat >conftest.$ac_ext <<_ACEOF
6175
 
/* confdefs.h.  */
6176
 
_ACEOF
6177
 
cat confdefs.h >>conftest.$ac_ext
6178
 
cat >>conftest.$ac_ext <<_ACEOF
6179
 
/* end confdefs.h.  */
6180
 
 
6181
 
/* Override any gcc2 internal prototype to avoid an error.  */
6182
 
#ifdef __cplusplus
6183
 
extern "C"
6184
 
#endif
6185
 
/* We use char because int might match the return type of a gcc2
6186
 
   builtin and then its argument prototype would still apply.  */
6187
 
char nlist ();
6188
 
int
6189
 
main ()
6190
 
{
6191
 
nlist ();
6192
 
  ;
6193
 
  return 0;
6194
 
}
6195
 
_ACEOF
6196
 
rm -f conftest.$ac_objext conftest$ac_exeext
6197
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6198
 
  (eval $ac_link) 2>conftest.er1
6199
 
  ac_status=$?
6200
 
  grep -v '^ *+' conftest.er1 >conftest.err
6201
 
  rm -f conftest.er1
6202
 
  cat conftest.err >&5
6203
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204
 
  (exit $ac_status); } &&
6205
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6206
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207
 
  (eval $ac_try) 2>&5
6208
 
  ac_status=$?
6209
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210
 
  (exit $ac_status); }; } &&
6211
 
         { ac_try='test -s conftest$ac_exeext'
6212
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213
 
  (eval $ac_try) 2>&5
6214
 
  ac_status=$?
6215
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216
 
  (exit $ac_status); }; }; then
6217
 
  ac_cv_lib_mld_nlist=yes
6218
 
else
6219
 
  echo "$as_me: failed program was:" >&5
6220
 
sed 's/^/| /' conftest.$ac_ext >&5
6221
 
 
6222
 
ac_cv_lib_mld_nlist=no
6223
 
fi
6224
 
rm -f conftest.err conftest.$ac_objext \
6225
 
      conftest$ac_exeext conftest.$ac_ext
6226
 
LIBS=$ac_check_lib_save_LIBS
6227
 
fi
6228
 
echo "$as_me:$LINENO: result: $ac_cv_lib_mld_nlist" >&5
6229
 
echo "${ECHO_T}$ac_cv_lib_mld_nlist" >&6
6230
 
if test $ac_cv_lib_mld_nlist = yes; then
6231
 
  cat >>confdefs.h <<_ACEOF
6232
 
#define HAVE_LIBMLD 1
6233
 
_ACEOF
6234
 
 
6235
 
  LIBS="-lmld $LIBS"
6236
 
 
6237
 
fi
6238
 
 
6239
31238
echo "$as_me:$LINENO: checking for gethostent" >&5
6240
31239
echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
6241
31240
if test "${ac_cv_func_gethostent+set}" = set; then
6301
31300
  cat conftest.err >&5
6302
31301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303
31302
  (exit $ac_status); } &&
6304
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
31303
         { ac_try='test -z "$ac_c_werror_flag"
 
31304
                         || test ! -s conftest.err'
6305
31305
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6306
31306
  (eval $ac_try) 2>&5
6307
31307
  ac_status=$?
6335
31335
  echo $ECHO_N "(cached) $ECHO_C" >&6
6336
31336
else
6337
31337
  ac_check_lib_save_LIBS=$LIBS
6338
 
LIBS="-lnsl -lsocket $LIBS"
 
31338
LIBS="-lnsl $libxnet -lsocket $LIBS"
6339
31339
cat >conftest.$ac_ext <<_ACEOF
6340
31340
/* confdefs.h.  */
6341
31341
_ACEOF
6367
31367
  cat conftest.err >&5
6368
31368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369
31369
  (exit $ac_status); } &&
6370
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
31370
         { ac_try='test -z "$ac_c_werror_flag"
 
31371
                         || test ! -s conftest.err'
6371
31372
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372
31373
  (eval $ac_try) 2>&5
6373
31374
  ac_status=$?
6468
31469
  cat conftest.err >&5
6469
31470
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470
31471
  (exit $ac_status); } &&
6471
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
31472
         { ac_try='test -z "$ac_c_werror_flag"
 
31473
                         || test ! -s conftest.err'
6472
31474
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473
31475
  (eval $ac_try) 2>&5
6474
31476
  ac_status=$?
6534
31536
  cat conftest.err >&5
6535
31537
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536
31538
  (exit $ac_status); } &&
6537
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
31539
         { ac_try='test -z "$ac_c_werror_flag"
 
31540
                         || test ! -s conftest.err'
6538
31541
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539
31542
  (eval $ac_try) 2>&5
6540
31543
  ac_status=$?
6574
31577
  echo $ECHO_N "(cached) $ECHO_C" >&6
6575
31578
else
6576
31579
  ac_check_lib_save_LIBS=$LIBS
6577
 
LIBS="-lsyslog -lsocket $LIBS"
 
31580
LIBS="-lsyslog $libxnet -lsocket $LIBS"
6578
31581
cat >conftest.$ac_ext <<_ACEOF
6579
31582
/* confdefs.h.  */
6580
31583
_ACEOF
6606
31609
  cat conftest.err >&5
6607
31610
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608
31611
  (exit $ac_status); } &&
6609
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
31612
         { ac_try='test -z "$ac_c_werror_flag"
 
31613
                         || test ! -s conftest.err'
6610
31614
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611
31615
  (eval $ac_try) 2>&5
6612
31616
  ac_status=$?
6683
31687
  cat conftest.err >&5
6684
31688
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685
31689
  (exit $ac_status); } &&
6686
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
31690
         { ac_try='test -z "$ac_c_werror_flag"
 
31691
                         || test ! -s conftest.err'
6687
31692
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688
31693
  (eval $ac_try) 2>&5
6689
31694
  ac_status=$?
6755
31760
  cat conftest.err >&5
6756
31761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757
31762
  (exit $ac_status); } &&
6758
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
31763
         { ac_try='test -z "$ac_c_werror_flag"
 
31764
                         || test ! -s conftest.err'
6759
31765
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760
31766
  (eval $ac_try) 2>&5
6761
31767
  ac_status=$?
6860
31866
  cat conftest.err >&5
6861
31867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862
31868
  (exit $ac_status); } &&
6863
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
31869
         { ac_try='test -z "$ac_c_werror_flag"
 
31870
                         || test ! -s conftest.err'
6864
31871
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6865
31872
  (eval $ac_try) 2>&5
6866
31873
  ac_status=$?
6927
31934
  cat conftest.err >&5
6928
31935
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929
31936
  (exit $ac_status); } &&
6930
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
31937
         { ac_try='test -z "$ac_c_werror_flag"
 
31938
                         || test ! -s conftest.err'
6931
31939
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932
31940
  (eval $ac_try) 2>&5
6933
31941
  ac_status=$?
7046
32054
 *no*) ;;
7047
32055
 *) save_LIBS=$LIBS
7048
32056
    LIBS=
 
32057
    # Ralf Wildenhues: either unset ... or cache READLINE_LIBS
 
32058
    unset ac_cv_lib_readline_readline
7049
32059
 
7050
32060
echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
7051
32061
echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
7085
32095
  cat conftest.err >&5
7086
32096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087
32097
  (exit $ac_status); } &&
7088
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
32098
         { ac_try='test -z "$ac_c_werror_flag"
 
32099
                         || test ! -s conftest.err'
7089
32100
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090
32101
  (eval $ac_try) 2>&5
7091
32102
  ac_status=$?
7159
32170
  cat conftest.err >&5
7160
32171
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161
32172
  (exit $ac_status); } &&
7162
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
32173
         { ac_try='test -z "$ac_c_werror_flag"
 
32174
                         || test ! -s conftest.err'
7163
32175
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7164
32176
  (eval $ac_try) 2>&5
7165
32177
  ac_status=$?
7234
32246
  cat conftest.err >&5
7235
32247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236
32248
  (exit $ac_status); } &&
7237
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
32249
         { ac_try='test -z "$ac_c_werror_flag"
 
32250
                         || test ! -s conftest.err'
7238
32251
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7239
32252
  (eval $ac_try) 2>&5
7240
32253
  ac_status=$?
7328
32341
  cat conftest.err >&5
7329
32342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330
32343
  (exit $ac_status); } &&
7331
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
32344
         { ac_try='test -z "$ac_c_werror_flag"
 
32345
                         || test ! -s conftest.err'
7332
32346
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7333
32347
  (eval $ac_try) 2>&5
7334
32348
  ac_status=$?
7400
32414
  cat conftest.err >&5
7401
32415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402
32416
  (exit $ac_status); } &&
7403
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
32417
         { ac_try='test -z "$ac_c_werror_flag"
 
32418
                         || test ! -s conftest.err'
7404
32419
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7405
32420
  (eval $ac_try) 2>&5
7406
32421
  ac_status=$?
7504
32519
  cat conftest.err >&5
7505
32520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506
32521
  (exit $ac_status); } &&
7507
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
32522
         { ac_try='test -z "$ac_c_werror_flag"
 
32523
                         || test ! -s conftest.err'
7508
32524
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7509
32525
  (eval $ac_try) 2>&5
7510
32526
  ac_status=$?
7570
32586
  cat conftest.err >&5
7571
32587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572
32588
  (exit $ac_status); } &&
7573
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
32589
         { ac_try='test -z "$ac_c_werror_flag"
 
32590
                         || test ! -s conftest.err'
7574
32591
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575
32592
  (eval $ac_try) 2>&5
7576
32593
  ac_status=$?
7604
32621
 
7605
32622
fi
7606
32623
 
 
32624
 
 
32625
echo "$as_me:$LINENO: checking for setsockopt in -lxnet" >&5
 
32626
echo $ECHO_N "checking for setsockopt in -lxnet... $ECHO_C" >&6
 
32627
if test "${ac_cv_lib_xnet_setsockopt+set}" = set; then
 
32628
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32629
else
 
32630
  ac_check_lib_save_LIBS=$LIBS
 
32631
LIBS="-lxnet  $LIBS"
 
32632
cat >conftest.$ac_ext <<_ACEOF
 
32633
/* confdefs.h.  */
 
32634
_ACEOF
 
32635
cat confdefs.h >>conftest.$ac_ext
 
32636
cat >>conftest.$ac_ext <<_ACEOF
 
32637
/* end confdefs.h.  */
 
32638
 
 
32639
/* Override any gcc2 internal prototype to avoid an error.  */
 
32640
#ifdef __cplusplus
 
32641
extern "C"
 
32642
#endif
 
32643
/* We use char because int might match the return type of a gcc2
 
32644
   builtin and then its argument prototype would still apply.  */
 
32645
char setsockopt ();
 
32646
int
 
32647
main ()
 
32648
{
 
32649
setsockopt ();
 
32650
  ;
 
32651
  return 0;
 
32652
}
 
32653
_ACEOF
 
32654
rm -f conftest.$ac_objext conftest$ac_exeext
 
32655
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
32656
  (eval $ac_link) 2>conftest.er1
 
32657
  ac_status=$?
 
32658
  grep -v '^ *+' conftest.er1 >conftest.err
 
32659
  rm -f conftest.er1
 
32660
  cat conftest.err >&5
 
32661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32662
  (exit $ac_status); } &&
 
32663
         { ac_try='test -z "$ac_c_werror_flag"
 
32664
                         || test ! -s conftest.err'
 
32665
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32666
  (eval $ac_try) 2>&5
 
32667
  ac_status=$?
 
32668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32669
  (exit $ac_status); }; } &&
 
32670
         { ac_try='test -s conftest$ac_exeext'
 
32671
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32672
  (eval $ac_try) 2>&5
 
32673
  ac_status=$?
 
32674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32675
  (exit $ac_status); }; }; then
 
32676
  ac_cv_lib_xnet_setsockopt=yes
 
32677
else
 
32678
  echo "$as_me: failed program was:" >&5
 
32679
sed 's/^/| /' conftest.$ac_ext >&5
 
32680
 
 
32681
ac_cv_lib_xnet_setsockopt=no
 
32682
fi
 
32683
rm -f conftest.err conftest.$ac_objext \
 
32684
      conftest$ac_exeext conftest.$ac_ext
 
32685
LIBS=$ac_check_lib_save_LIBS
 
32686
fi
 
32687
echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_setsockopt" >&5
 
32688
echo "${ECHO_T}$ac_cv_lib_xnet_setsockopt" >&6
 
32689
if test $ac_cv_lib_xnet_setsockopt = yes; then
 
32690
  cat >>confdefs.h <<_ACEOF
 
32691
#define HAVE_LIBXNET 1
 
32692
_ACEOF
 
32693
 
 
32694
  LIBS="-lxnet $LIBS"
 
32695
 
 
32696
fi
 
32697
 
7607
32698
fi
7608
32699
 
7609
32700
 
7640
32731
  cat conftest.err >&5
7641
32732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642
32733
  (exit $ac_status); } &&
7643
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
32734
         { ac_try='test -z "$ac_c_werror_flag"
 
32735
                         || test ! -s conftest.err'
7644
32736
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645
32737
  (eval $ac_try) 2>&5
7646
32738
  ac_status=$?
7773
32865
fi
7774
32866
 
7775
32867
 
7776
 
 
7777
 
 
7778
 
 
7779
 
 
7780
 
for ac_header in bstring.h errno.h fcntl.h ieeefp.h math.h
7781
 
do
7782
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7783
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7784
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
7785
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7786
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7787
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7788
 
fi
7789
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7790
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7791
 
else
7792
 
  # Is the header compilable?
7793
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
7794
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7795
 
cat >conftest.$ac_ext <<_ACEOF
7796
 
/* confdefs.h.  */
7797
 
_ACEOF
7798
 
cat confdefs.h >>conftest.$ac_ext
7799
 
cat >>conftest.$ac_ext <<_ACEOF
7800
 
/* end confdefs.h.  */
7801
 
$ac_includes_default
7802
 
#include <$ac_header>
7803
 
_ACEOF
7804
 
rm -f conftest.$ac_objext
7805
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7806
 
  (eval $ac_compile) 2>conftest.er1
7807
 
  ac_status=$?
7808
 
  grep -v '^ *+' conftest.er1 >conftest.err
7809
 
  rm -f conftest.er1
7810
 
  cat conftest.err >&5
7811
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812
 
  (exit $ac_status); } &&
7813
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7814
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7815
 
  (eval $ac_try) 2>&5
7816
 
  ac_status=$?
7817
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818
 
  (exit $ac_status); }; } &&
7819
 
         { ac_try='test -s conftest.$ac_objext'
7820
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821
 
  (eval $ac_try) 2>&5
7822
 
  ac_status=$?
7823
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824
 
  (exit $ac_status); }; }; then
7825
 
  ac_header_compiler=yes
7826
 
else
7827
 
  echo "$as_me: failed program was:" >&5
7828
 
sed 's/^/| /' conftest.$ac_ext >&5
7829
 
 
7830
 
ac_header_compiler=no
7831
 
fi
7832
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7833
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7834
 
echo "${ECHO_T}$ac_header_compiler" >&6
7835
 
 
7836
 
# Is the header present?
7837
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
7838
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7839
 
cat >conftest.$ac_ext <<_ACEOF
7840
 
/* confdefs.h.  */
7841
 
_ACEOF
7842
 
cat confdefs.h >>conftest.$ac_ext
7843
 
cat >>conftest.$ac_ext <<_ACEOF
7844
 
/* end confdefs.h.  */
7845
 
#include <$ac_header>
7846
 
_ACEOF
7847
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7848
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7849
 
  ac_status=$?
7850
 
  grep -v '^ *+' conftest.er1 >conftest.err
7851
 
  rm -f conftest.er1
7852
 
  cat conftest.err >&5
7853
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854
 
  (exit $ac_status); } >/dev/null; then
7855
 
  if test -s conftest.err; then
7856
 
    ac_cpp_err=$ac_c_preproc_warn_flag
7857
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7858
 
  else
7859
 
    ac_cpp_err=
7860
 
  fi
7861
 
else
7862
 
  ac_cpp_err=yes
7863
 
fi
7864
 
if test -z "$ac_cpp_err"; then
7865
 
  ac_header_preproc=yes
7866
 
else
7867
 
  echo "$as_me: failed program was:" >&5
7868
 
sed 's/^/| /' conftest.$ac_ext >&5
7869
 
 
7870
 
  ac_header_preproc=no
7871
 
fi
7872
 
rm -f conftest.err conftest.$ac_ext
7873
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7874
 
echo "${ECHO_T}$ac_header_preproc" >&6
7875
 
 
7876
 
# So?  What about this header?
7877
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7878
 
  yes:no: )
7879
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7880
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7881
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7882
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7883
 
    ac_header_preproc=yes
7884
 
    ;;
7885
 
  no:yes:* )
7886
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7887
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7888
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7889
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7890
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7891
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7892
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7893
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7894
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7895
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7896
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7897
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7898
 
    (
7899
 
      cat <<\_ASBOX
7900
 
## ------------------------------ ##
7901
 
## Report this to the ntp lists.  ##
7902
 
## ------------------------------ ##
7903
 
_ASBOX
7904
 
    ) |
7905
 
      sed "s/^/$as_me: WARNING:     /" >&2
7906
 
    ;;
7907
 
esac
7908
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
7909
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7910
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7911
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7912
 
else
7913
 
  eval "$as_ac_Header=\$ac_header_preproc"
7914
 
fi
7915
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7916
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7917
 
 
7918
 
fi
7919
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7920
 
  cat >>confdefs.h <<_ACEOF
7921
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7922
 
_ACEOF
7923
 
 
7924
 
fi
7925
 
 
7926
 
done
 
32868
for ac_header in bstring.h
 
32869
do
 
32870
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
32871
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
32872
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
32873
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
32874
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
32875
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32876
fi
 
32877
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
32878
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
32879
else
 
32880
  # Is the header compilable?
 
32881
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
32882
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
32883
cat >conftest.$ac_ext <<_ACEOF
 
32884
/* confdefs.h.  */
 
32885
_ACEOF
 
32886
cat confdefs.h >>conftest.$ac_ext
 
32887
cat >>conftest.$ac_ext <<_ACEOF
 
32888
/* end confdefs.h.  */
 
32889
$ac_includes_default
 
32890
#include <$ac_header>
 
32891
_ACEOF
 
32892
rm -f conftest.$ac_objext
 
32893
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
32894
  (eval $ac_compile) 2>conftest.er1
 
32895
  ac_status=$?
 
32896
  grep -v '^ *+' conftest.er1 >conftest.err
 
32897
  rm -f conftest.er1
 
32898
  cat conftest.err >&5
 
32899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32900
  (exit $ac_status); } &&
 
32901
         { ac_try='test -z "$ac_c_werror_flag"
 
32902
                         || test ! -s conftest.err'
 
32903
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32904
  (eval $ac_try) 2>&5
 
32905
  ac_status=$?
 
32906
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32907
  (exit $ac_status); }; } &&
 
32908
         { ac_try='test -s conftest.$ac_objext'
 
32909
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32910
  (eval $ac_try) 2>&5
 
32911
  ac_status=$?
 
32912
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32913
  (exit $ac_status); }; }; then
 
32914
  ac_header_compiler=yes
 
32915
else
 
32916
  echo "$as_me: failed program was:" >&5
 
32917
sed 's/^/| /' conftest.$ac_ext >&5
 
32918
 
 
32919
ac_header_compiler=no
 
32920
fi
 
32921
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
32922
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
32923
echo "${ECHO_T}$ac_header_compiler" >&6
 
32924
 
 
32925
# Is the header present?
 
32926
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
32927
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
32928
cat >conftest.$ac_ext <<_ACEOF
 
32929
/* confdefs.h.  */
 
32930
_ACEOF
 
32931
cat confdefs.h >>conftest.$ac_ext
 
32932
cat >>conftest.$ac_ext <<_ACEOF
 
32933
/* end confdefs.h.  */
 
32934
#include <$ac_header>
 
32935
_ACEOF
 
32936
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
32937
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
32938
  ac_status=$?
 
32939
  grep -v '^ *+' conftest.er1 >conftest.err
 
32940
  rm -f conftest.er1
 
32941
  cat conftest.err >&5
 
32942
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32943
  (exit $ac_status); } >/dev/null; then
 
32944
  if test -s conftest.err; then
 
32945
    ac_cpp_err=$ac_c_preproc_warn_flag
 
32946
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
32947
  else
 
32948
    ac_cpp_err=
 
32949
  fi
 
32950
else
 
32951
  ac_cpp_err=yes
 
32952
fi
 
32953
if test -z "$ac_cpp_err"; then
 
32954
  ac_header_preproc=yes
 
32955
else
 
32956
  echo "$as_me: failed program was:" >&5
 
32957
sed 's/^/| /' conftest.$ac_ext >&5
 
32958
 
 
32959
  ac_header_preproc=no
 
32960
fi
 
32961
rm -f conftest.err conftest.$ac_ext
 
32962
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
32963
echo "${ECHO_T}$ac_header_preproc" >&6
 
32964
 
 
32965
# So?  What about this header?
 
32966
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
32967
  yes:no: )
 
32968
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
32969
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
32970
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
32971
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
32972
    ac_header_preproc=yes
 
32973
    ;;
 
32974
  no:yes:* )
 
32975
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
32976
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
32977
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
32978
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
32979
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
32980
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
32981
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
32982
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
32983
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
32984
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
32985
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
32986
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
32987
    (
 
32988
      cat <<\_ASBOX
 
32989
## ------------------------------ ##
 
32990
## Report this to the ntp lists.  ##
 
32991
## ------------------------------ ##
 
32992
_ASBOX
 
32993
    ) |
 
32994
      sed "s/^/$as_me: WARNING:     /" >&2
 
32995
    ;;
 
32996
esac
 
32997
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
32998
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
32999
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
33000
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
33001
else
 
33002
  eval "$as_ac_Header=\$ac_header_preproc"
 
33003
fi
 
33004
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
33005
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
33006
 
 
33007
fi
 
33008
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
33009
  cat >>confdefs.h <<_ACEOF
 
33010
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
33011
_ACEOF
 
33012
 
 
33013
fi
 
33014
 
 
33015
done
 
33016
 
 
33017
if test "${ac_cv_header_dns_sd_h+set}" = set; then
 
33018
  echo "$as_me:$LINENO: checking for dns_sd.h" >&5
 
33019
echo $ECHO_N "checking for dns_sd.h... $ECHO_C" >&6
 
33020
if test "${ac_cv_header_dns_sd_h+set}" = set; then
 
33021
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
33022
fi
 
33023
echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
 
33024
echo "${ECHO_T}$ac_cv_header_dns_sd_h" >&6
 
33025
else
 
33026
  # Is the header compilable?
 
33027
echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
 
33028
echo $ECHO_N "checking dns_sd.h usability... $ECHO_C" >&6
 
33029
cat >conftest.$ac_ext <<_ACEOF
 
33030
/* confdefs.h.  */
 
33031
_ACEOF
 
33032
cat confdefs.h >>conftest.$ac_ext
 
33033
cat >>conftest.$ac_ext <<_ACEOF
 
33034
/* end confdefs.h.  */
 
33035
$ac_includes_default
 
33036
#include <dns_sd.h>
 
33037
_ACEOF
 
33038
rm -f conftest.$ac_objext
 
33039
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
33040
  (eval $ac_compile) 2>conftest.er1
 
33041
  ac_status=$?
 
33042
  grep -v '^ *+' conftest.er1 >conftest.err
 
33043
  rm -f conftest.er1
 
33044
  cat conftest.err >&5
 
33045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33046
  (exit $ac_status); } &&
 
33047
         { ac_try='test -z "$ac_c_werror_flag"
 
33048
                         || test ! -s conftest.err'
 
33049
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33050
  (eval $ac_try) 2>&5
 
33051
  ac_status=$?
 
33052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33053
  (exit $ac_status); }; } &&
 
33054
         { ac_try='test -s conftest.$ac_objext'
 
33055
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33056
  (eval $ac_try) 2>&5
 
33057
  ac_status=$?
 
33058
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33059
  (exit $ac_status); }; }; then
 
33060
  ac_header_compiler=yes
 
33061
else
 
33062
  echo "$as_me: failed program was:" >&5
 
33063
sed 's/^/| /' conftest.$ac_ext >&5
 
33064
 
 
33065
ac_header_compiler=no
 
33066
fi
 
33067
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
33068
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
33069
echo "${ECHO_T}$ac_header_compiler" >&6
 
33070
 
 
33071
# Is the header present?
 
33072
echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
 
33073
echo $ECHO_N "checking dns_sd.h presence... $ECHO_C" >&6
 
33074
cat >conftest.$ac_ext <<_ACEOF
 
33075
/* confdefs.h.  */
 
33076
_ACEOF
 
33077
cat confdefs.h >>conftest.$ac_ext
 
33078
cat >>conftest.$ac_ext <<_ACEOF
 
33079
/* end confdefs.h.  */
 
33080
#include <dns_sd.h>
 
33081
_ACEOF
 
33082
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
33083
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
33084
  ac_status=$?
 
33085
  grep -v '^ *+' conftest.er1 >conftest.err
 
33086
  rm -f conftest.er1
 
33087
  cat conftest.err >&5
 
33088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33089
  (exit $ac_status); } >/dev/null; then
 
33090
  if test -s conftest.err; then
 
33091
    ac_cpp_err=$ac_c_preproc_warn_flag
 
33092
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
33093
  else
 
33094
    ac_cpp_err=
 
33095
  fi
 
33096
else
 
33097
  ac_cpp_err=yes
 
33098
fi
 
33099
if test -z "$ac_cpp_err"; then
 
33100
  ac_header_preproc=yes
 
33101
else
 
33102
  echo "$as_me: failed program was:" >&5
 
33103
sed 's/^/| /' conftest.$ac_ext >&5
 
33104
 
 
33105
  ac_header_preproc=no
 
33106
fi
 
33107
rm -f conftest.err conftest.$ac_ext
 
33108
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
33109
echo "${ECHO_T}$ac_header_preproc" >&6
 
33110
 
 
33111
# So?  What about this header?
 
33112
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
33113
  yes:no: )
 
33114
    { echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
33115
echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
33116
    { echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
 
33117
echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
 
33118
    ac_header_preproc=yes
 
33119
    ;;
 
33120
  no:yes:* )
 
33121
    { echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
 
33122
echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
 
33123
    { echo "$as_me:$LINENO: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&5
 
33124
echo "$as_me: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&2;}
 
33125
    { echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
 
33126
echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
 
33127
    { echo "$as_me:$LINENO: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&5
 
33128
echo "$as_me: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
33129
    { echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
 
33130
echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
 
33131
    { echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
 
33132
echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
 
33133
    (
 
33134
      cat <<\_ASBOX
 
33135
## ------------------------------ ##
 
33136
## Report this to the ntp lists.  ##
 
33137
## ------------------------------ ##
 
33138
_ASBOX
 
33139
    ) |
 
33140
      sed "s/^/$as_me: WARNING:     /" >&2
 
33141
    ;;
 
33142
esac
 
33143
echo "$as_me:$LINENO: checking for dns_sd.h" >&5
 
33144
echo $ECHO_N "checking for dns_sd.h... $ECHO_C" >&6
 
33145
if test "${ac_cv_header_dns_sd_h+set}" = set; then
 
33146
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
33147
else
 
33148
  ac_cv_header_dns_sd_h=$ac_header_preproc
 
33149
fi
 
33150
echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
 
33151
echo "${ECHO_T}$ac_cv_header_dns_sd_h" >&6
 
33152
 
 
33153
fi
 
33154
if test $ac_cv_header_dns_sd_h = yes; then
 
33155
  echo "$as_me:$LINENO: checking for DNSServiceRegister in -ldns_sd" >&5
 
33156
echo $ECHO_N "checking for DNSServiceRegister in -ldns_sd... $ECHO_C" >&6
 
33157
if test "${ac_cv_lib_dns_sd_DNSServiceRegister+set}" = set; then
 
33158
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
33159
else
 
33160
  ac_check_lib_save_LIBS=$LIBS
 
33161
LIBS="-ldns_sd  $LIBS"
 
33162
cat >conftest.$ac_ext <<_ACEOF
 
33163
/* confdefs.h.  */
 
33164
_ACEOF
 
33165
cat confdefs.h >>conftest.$ac_ext
 
33166
cat >>conftest.$ac_ext <<_ACEOF
 
33167
/* end confdefs.h.  */
 
33168
 
 
33169
/* Override any gcc2 internal prototype to avoid an error.  */
 
33170
#ifdef __cplusplus
 
33171
extern "C"
 
33172
#endif
 
33173
/* We use char because int might match the return type of a gcc2
 
33174
   builtin and then its argument prototype would still apply.  */
 
33175
char DNSServiceRegister ();
 
33176
int
 
33177
main ()
 
33178
{
 
33179
DNSServiceRegister ();
 
33180
  ;
 
33181
  return 0;
 
33182
}
 
33183
_ACEOF
 
33184
rm -f conftest.$ac_objext conftest$ac_exeext
 
33185
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
33186
  (eval $ac_link) 2>conftest.er1
 
33187
  ac_status=$?
 
33188
  grep -v '^ *+' conftest.er1 >conftest.err
 
33189
  rm -f conftest.er1
 
33190
  cat conftest.err >&5
 
33191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33192
  (exit $ac_status); } &&
 
33193
         { ac_try='test -z "$ac_c_werror_flag"
 
33194
                         || test ! -s conftest.err'
 
33195
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33196
  (eval $ac_try) 2>&5
 
33197
  ac_status=$?
 
33198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33199
  (exit $ac_status); }; } &&
 
33200
         { ac_try='test -s conftest$ac_exeext'
 
33201
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33202
  (eval $ac_try) 2>&5
 
33203
  ac_status=$?
 
33204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33205
  (exit $ac_status); }; }; then
 
33206
  ac_cv_lib_dns_sd_DNSServiceRegister=yes
 
33207
else
 
33208
  echo "$as_me: failed program was:" >&5
 
33209
sed 's/^/| /' conftest.$ac_ext >&5
 
33210
 
 
33211
ac_cv_lib_dns_sd_DNSServiceRegister=no
 
33212
fi
 
33213
rm -f conftest.err conftest.$ac_objext \
 
33214
      conftest$ac_exeext conftest.$ac_ext
 
33215
LIBS=$ac_check_lib_save_LIBS
 
33216
fi
 
33217
echo "$as_me:$LINENO: result: $ac_cv_lib_dns_sd_DNSServiceRegister" >&5
 
33218
echo "${ECHO_T}$ac_cv_lib_dns_sd_DNSServiceRegister" >&6
 
33219
if test $ac_cv_lib_dns_sd_DNSServiceRegister = yes; then
 
33220
 
 
33221
cat >>confdefs.h <<\_ACEOF
 
33222
#define HAVE_DNSREGISTRATION 1
 
33223
_ACEOF
 
33224
 
 
33225
fi
 
33226
 
 
33227
fi
 
33228
 
 
33229
 
 
33230
case "$ac_cv_lib_dns_sd_DNSServiceRegister" in
 
33231
 yes) LIBS="-ldns_sd $LIBS" ;;
 
33232
esac
 
33233
 
 
33234
 
 
33235
 
 
33236
 
 
33237
for ac_header in errno.h fcntl.h ieeefp.h math.h
 
33238
do
 
33239
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
33240
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
33241
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
33242
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
33243
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
33244
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
33245
fi
 
33246
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
33247
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
33248
else
 
33249
  # Is the header compilable?
 
33250
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
33251
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
33252
cat >conftest.$ac_ext <<_ACEOF
 
33253
/* confdefs.h.  */
 
33254
_ACEOF
 
33255
cat confdefs.h >>conftest.$ac_ext
 
33256
cat >>conftest.$ac_ext <<_ACEOF
 
33257
/* end confdefs.h.  */
 
33258
$ac_includes_default
 
33259
#include <$ac_header>
 
33260
_ACEOF
 
33261
rm -f conftest.$ac_objext
 
33262
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
33263
  (eval $ac_compile) 2>conftest.er1
 
33264
  ac_status=$?
 
33265
  grep -v '^ *+' conftest.er1 >conftest.err
 
33266
  rm -f conftest.er1
 
33267
  cat conftest.err >&5
 
33268
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33269
  (exit $ac_status); } &&
 
33270
         { ac_try='test -z "$ac_c_werror_flag"
 
33271
                         || test ! -s conftest.err'
 
33272
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33273
  (eval $ac_try) 2>&5
 
33274
  ac_status=$?
 
33275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33276
  (exit $ac_status); }; } &&
 
33277
         { ac_try='test -s conftest.$ac_objext'
 
33278
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33279
  (eval $ac_try) 2>&5
 
33280
  ac_status=$?
 
33281
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33282
  (exit $ac_status); }; }; then
 
33283
  ac_header_compiler=yes
 
33284
else
 
33285
  echo "$as_me: failed program was:" >&5
 
33286
sed 's/^/| /' conftest.$ac_ext >&5
 
33287
 
 
33288
ac_header_compiler=no
 
33289
fi
 
33290
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
33291
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
33292
echo "${ECHO_T}$ac_header_compiler" >&6
 
33293
 
 
33294
# Is the header present?
 
33295
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
33296
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
33297
cat >conftest.$ac_ext <<_ACEOF
 
33298
/* confdefs.h.  */
 
33299
_ACEOF
 
33300
cat confdefs.h >>conftest.$ac_ext
 
33301
cat >>conftest.$ac_ext <<_ACEOF
 
33302
/* end confdefs.h.  */
 
33303
#include <$ac_header>
 
33304
_ACEOF
 
33305
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
33306
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
33307
  ac_status=$?
 
33308
  grep -v '^ *+' conftest.er1 >conftest.err
 
33309
  rm -f conftest.er1
 
33310
  cat conftest.err >&5
 
33311
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33312
  (exit $ac_status); } >/dev/null; then
 
33313
  if test -s conftest.err; then
 
33314
    ac_cpp_err=$ac_c_preproc_warn_flag
 
33315
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
33316
  else
 
33317
    ac_cpp_err=
 
33318
  fi
 
33319
else
 
33320
  ac_cpp_err=yes
 
33321
fi
 
33322
if test -z "$ac_cpp_err"; then
 
33323
  ac_header_preproc=yes
 
33324
else
 
33325
  echo "$as_me: failed program was:" >&5
 
33326
sed 's/^/| /' conftest.$ac_ext >&5
 
33327
 
 
33328
  ac_header_preproc=no
 
33329
fi
 
33330
rm -f conftest.err conftest.$ac_ext
 
33331
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
33332
echo "${ECHO_T}$ac_header_preproc" >&6
 
33333
 
 
33334
# So?  What about this header?
 
33335
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
33336
  yes:no: )
 
33337
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
33338
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
33339
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
33340
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
33341
    ac_header_preproc=yes
 
33342
    ;;
 
33343
  no:yes:* )
 
33344
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
33345
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
33346
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
33347
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
33348
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
33349
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
33350
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
33351
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
33352
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
33353
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
33354
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
33355
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
33356
    (
 
33357
      cat <<\_ASBOX
 
33358
## ------------------------------ ##
 
33359
## Report this to the ntp lists.  ##
 
33360
## ------------------------------ ##
 
33361
_ASBOX
 
33362
    ) |
 
33363
      sed "s/^/$as_me: WARNING:     /" >&2
 
33364
    ;;
 
33365
esac
 
33366
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
33367
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
33368
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
33369
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
33370
else
 
33371
  eval "$as_ac_Header=\$ac_header_preproc"
 
33372
fi
 
33373
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
33374
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
33375
 
 
33376
fi
 
33377
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
33378
  cat >>confdefs.h <<_ACEOF
 
33379
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
33380
_ACEOF
 
33381
 
 
33382
fi
 
33383
 
 
33384
done
 
33385
 
7927
33386
 
7928
33387
# HMS: Lame, but fast.
7929
33388
if test -f /etc/redhat-release
7934
33393
for ac_header in md5.h
7935
33394
do
7936
33395
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7937
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7938
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
33396
echo "$as_me:$LINENO: checking for $ac_header" >&5
7939
33397
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7940
33398
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7941
33399
  echo $ECHO_N "(cached) $ECHO_C" >&6
7942
 
fi
7943
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7944
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7945
33400
else
7946
 
  # Is the header compilable?
7947
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
7948
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7949
 
cat >conftest.$ac_ext <<_ACEOF
 
33401
  cat >conftest.$ac_ext <<_ACEOF
7950
33402
/* confdefs.h.  */
7951
33403
_ACEOF
7952
33404
cat confdefs.h >>conftest.$ac_ext
7953
33405
cat >>conftest.$ac_ext <<_ACEOF
7954
33406
/* end confdefs.h.  */
7955
 
$ac_includes_default
 
33407
#if HAVE_SYS_TYPES_H
 
33408
#include <sys/types.h>
 
33409
#endif
 
33410
 
 
33411
 
7956
33412
#include <$ac_header>
7957
33413
_ACEOF
7958
33414
rm -f conftest.$ac_objext
7964
33420
  cat conftest.err >&5
7965
33421
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966
33422
  (exit $ac_status); } &&
7967
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
33423
         { ac_try='test -z "$ac_c_werror_flag"
 
33424
                         || test ! -s conftest.err'
7968
33425
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7969
33426
  (eval $ac_try) 2>&5
7970
33427
  ac_status=$?
7976
33433
  ac_status=$?
7977
33434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978
33435
  (exit $ac_status); }; }; then
7979
 
  ac_header_compiler=yes
 
33436
  eval "$as_ac_Header=yes"
7980
33437
else
7981
33438
  echo "$as_me: failed program was:" >&5
7982
33439
sed 's/^/| /' conftest.$ac_ext >&5
7983
33440
 
7984
 
ac_header_compiler=no
 
33441
eval "$as_ac_Header=no"
7985
33442
fi
7986
33443
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7987
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7988
 
echo "${ECHO_T}$ac_header_compiler" >&6
7989
 
 
7990
 
# Is the header present?
7991
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
7992
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7993
 
cat >conftest.$ac_ext <<_ACEOF
7994
 
/* confdefs.h.  */
7995
 
_ACEOF
7996
 
cat confdefs.h >>conftest.$ac_ext
7997
 
cat >>conftest.$ac_ext <<_ACEOF
7998
 
/* end confdefs.h.  */
7999
 
#include <$ac_header>
8000
 
_ACEOF
8001
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8002
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8003
 
  ac_status=$?
8004
 
  grep -v '^ *+' conftest.er1 >conftest.err
8005
 
  rm -f conftest.er1
8006
 
  cat conftest.err >&5
8007
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008
 
  (exit $ac_status); } >/dev/null; then
8009
 
  if test -s conftest.err; then
8010
 
    ac_cpp_err=$ac_c_preproc_warn_flag
8011
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8012
 
  else
8013
 
    ac_cpp_err=
8014
 
  fi
8015
 
else
8016
 
  ac_cpp_err=yes
8017
 
fi
8018
 
if test -z "$ac_cpp_err"; then
8019
 
  ac_header_preproc=yes
8020
 
else
8021
 
  echo "$as_me: failed program was:" >&5
8022
 
sed 's/^/| /' conftest.$ac_ext >&5
8023
 
 
8024
 
  ac_header_preproc=no
8025
 
fi
8026
 
rm -f conftest.err conftest.$ac_ext
8027
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8028
 
echo "${ECHO_T}$ac_header_preproc" >&6
8029
 
 
8030
 
# So?  What about this header?
8031
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8032
 
  yes:no: )
8033
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8034
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8035
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8036
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8037
 
    ac_header_preproc=yes
8038
 
    ;;
8039
 
  no:yes:* )
8040
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8041
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8042
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8043
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8044
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8045
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8046
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8047
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8048
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8049
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8050
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8051
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8052
 
    (
8053
 
      cat <<\_ASBOX
8054
 
## ------------------------------ ##
8055
 
## Report this to the ntp lists.  ##
8056
 
## ------------------------------ ##
8057
 
_ASBOX
8058
 
    ) |
8059
 
      sed "s/^/$as_me: WARNING:     /" >&2
8060
 
    ;;
8061
 
esac
8062
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
8063
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8064
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8065
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8066
 
else
8067
 
  eval "$as_ac_Header=\$ac_header_preproc"
8068
33444
fi
8069
33445
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8070
33446
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8071
 
 
8072
 
fi
8073
33447
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8074
33448
  cat >>confdefs.h <<_ACEOF
8075
33449
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8116
33490
  cat conftest.err >&5
8117
33491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118
33492
  (exit $ac_status); } &&
8119
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
33493
         { ac_try='test -z "$ac_c_werror_flag"
 
33494
                         || test ! -s conftest.err'
8120
33495
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8121
33496
  (eval $ac_try) 2>&5
8122
33497
  ac_status=$?
8269
33644
  cat conftest.err >&5
8270
33645
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271
33646
  (exit $ac_status); } &&
8272
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
33647
         { ac_try='test -z "$ac_c_werror_flag"
 
33648
                         || test ! -s conftest.err'
8273
33649
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8274
33650
  (eval $ac_try) 2>&5
8275
33651
  ac_status=$?
8421
33797
  cat conftest.err >&5
8422
33798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423
33799
  (exit $ac_status); } &&
8424
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
33800
         { ac_try='test -z "$ac_c_werror_flag"
 
33801
                         || test ! -s conftest.err'
8425
33802
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426
33803
  (eval $ac_try) 2>&5
8427
33804
  ac_status=$?
8572
33949
  cat conftest.err >&5
8573
33950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574
33951
  (exit $ac_status); } &&
8575
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
33952
         { ac_try='test -z "$ac_c_werror_flag"
 
33953
                         || test ! -s conftest.err'
8576
33954
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8577
33955
  (eval $ac_try) 2>&5
8578
33956
  ac_status=$?
8723
34101
  cat conftest.err >&5
8724
34102
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725
34103
  (exit $ac_status); } &&
8726
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
34104
         { ac_try='test -z "$ac_c_werror_flag"
 
34105
                         || test ! -s conftest.err'
8727
34106
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728
34107
  (eval $ac_try) 2>&5
8729
34108
  ac_status=$?
8875
34254
  cat conftest.err >&5
8876
34255
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877
34256
  (exit $ac_status); } &&
8878
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
34257
         { ac_try='test -z "$ac_c_werror_flag"
 
34258
                         || test ! -s conftest.err'
8879
34259
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880
34260
  (eval $ac_try) 2>&5
8881
34261
  ac_status=$?
9025
34405
  cat conftest.err >&5
9026
34406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027
34407
  (exit $ac_status); } &&
9028
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
34408
         { ac_try='test -z "$ac_c_werror_flag"
 
34409
                         || test ! -s conftest.err'
 
34410
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34411
  (eval $ac_try) 2>&5
 
34412
  ac_status=$?
 
34413
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34414
  (exit $ac_status); }; } &&
 
34415
         { ac_try='test -s conftest.$ac_objext'
 
34416
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34417
  (eval $ac_try) 2>&5
 
34418
  ac_status=$?
 
34419
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34420
  (exit $ac_status); }; }; then
 
34421
  ac_header_compiler=yes
 
34422
else
 
34423
  echo "$as_me: failed program was:" >&5
 
34424
sed 's/^/| /' conftest.$ac_ext >&5
 
34425
 
 
34426
ac_header_compiler=no
 
34427
fi
 
34428
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
34429
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
34430
echo "${ECHO_T}$ac_header_compiler" >&6
 
34431
 
 
34432
# Is the header present?
 
34433
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
34434
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
34435
cat >conftest.$ac_ext <<_ACEOF
 
34436
/* confdefs.h.  */
 
34437
_ACEOF
 
34438
cat confdefs.h >>conftest.$ac_ext
 
34439
cat >>conftest.$ac_ext <<_ACEOF
 
34440
/* end confdefs.h.  */
 
34441
#include <$ac_header>
 
34442
_ACEOF
 
34443
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
34444
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
34445
  ac_status=$?
 
34446
  grep -v '^ *+' conftest.er1 >conftest.err
 
34447
  rm -f conftest.er1
 
34448
  cat conftest.err >&5
 
34449
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34450
  (exit $ac_status); } >/dev/null; then
 
34451
  if test -s conftest.err; then
 
34452
    ac_cpp_err=$ac_c_preproc_warn_flag
 
34453
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
34454
  else
 
34455
    ac_cpp_err=
 
34456
  fi
 
34457
else
 
34458
  ac_cpp_err=yes
 
34459
fi
 
34460
if test -z "$ac_cpp_err"; then
 
34461
  ac_header_preproc=yes
 
34462
else
 
34463
  echo "$as_me: failed program was:" >&5
 
34464
sed 's/^/| /' conftest.$ac_ext >&5
 
34465
 
 
34466
  ac_header_preproc=no
 
34467
fi
 
34468
rm -f conftest.err conftest.$ac_ext
 
34469
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
34470
echo "${ECHO_T}$ac_header_preproc" >&6
 
34471
 
 
34472
# So?  What about this header?
 
34473
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
34474
  yes:no: )
 
34475
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
34476
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
34477
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
34478
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
34479
    ac_header_preproc=yes
 
34480
    ;;
 
34481
  no:yes:* )
 
34482
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
34483
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
34484
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
34485
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
34486
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
34487
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
34488
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
34489
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
34490
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
34491
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
34492
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
34493
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
34494
    (
 
34495
      cat <<\_ASBOX
 
34496
## ------------------------------ ##
 
34497
## Report this to the ntp lists.  ##
 
34498
## ------------------------------ ##
 
34499
_ASBOX
 
34500
    ) |
 
34501
      sed "s/^/$as_me: WARNING:     /" >&2
 
34502
    ;;
 
34503
esac
 
34504
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
34505
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
34506
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
34507
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
34508
else
 
34509
  eval "$as_ac_Header=\$ac_header_preproc"
 
34510
fi
 
34511
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
34512
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
34513
 
 
34514
fi
 
34515
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
34516
  cat >>confdefs.h <<_ACEOF
 
34517
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
34518
_ACEOF
 
34519
 
 
34520
fi
 
34521
 
 
34522
done
 
34523
 
 
34524
 
 
34525
for ac_header in sys/socket.h
 
34526
do
 
34527
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
34528
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
34529
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
34530
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
34531
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
34532
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
34533
fi
 
34534
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
34535
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
34536
else
 
34537
  # Is the header compilable?
 
34538
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
34539
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
34540
cat >conftest.$ac_ext <<_ACEOF
 
34541
/* confdefs.h.  */
 
34542
_ACEOF
 
34543
cat confdefs.h >>conftest.$ac_ext
 
34544
cat >>conftest.$ac_ext <<_ACEOF
 
34545
/* end confdefs.h.  */
 
34546
$ac_includes_default
 
34547
#include <$ac_header>
 
34548
_ACEOF
 
34549
rm -f conftest.$ac_objext
 
34550
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
34551
  (eval $ac_compile) 2>conftest.er1
 
34552
  ac_status=$?
 
34553
  grep -v '^ *+' conftest.er1 >conftest.err
 
34554
  rm -f conftest.er1
 
34555
  cat conftest.err >&5
 
34556
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34557
  (exit $ac_status); } &&
 
34558
         { ac_try='test -z "$ac_c_werror_flag"
 
34559
                         || test ! -s conftest.err'
9029
34560
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9030
34561
  (eval $ac_try) 2>&5
9031
34562
  ac_status=$?
9171
34702
  cat conftest.err >&5
9172
34703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173
34704
  (exit $ac_status); } &&
9174
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
34705
         { ac_try='test -z "$ac_c_werror_flag"
 
34706
                         || test ! -s conftest.err'
9175
34707
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9176
34708
  (eval $ac_try) 2>&5
9177
34709
  ac_status=$?
9237
34769
  cat conftest.err >&5
9238
34770
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239
34771
  (exit $ac_status); } &&
9240
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
34772
         { ac_try='test -z "$ac_c_werror_flag"
 
34773
                         || test ! -s conftest.err'
9241
34774
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9242
34775
  (eval $ac_try) 2>&5
9243
34776
  ac_status=$?
9353
34886
done
9354
34887
 
9355
34888
 
 
34889
for ac_header in net/route.h
 
34890
do
 
34891
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
34892
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
34893
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
34894
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
34895
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
34896
else
 
34897
  cat >conftest.$ac_ext <<_ACEOF
 
34898
/* confdefs.h.  */
 
34899
_ACEOF
 
34900
cat confdefs.h >>conftest.$ac_ext
 
34901
cat >>conftest.$ac_ext <<_ACEOF
 
34902
/* end confdefs.h.  */
 
34903
 
 
34904
#include <sys/types.h>
 
34905
#include <sys/socket.h>
 
34906
#include <net/if.h>
 
34907
 
 
34908
 
 
34909
#include <$ac_header>
 
34910
_ACEOF
 
34911
rm -f conftest.$ac_objext
 
34912
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
34913
  (eval $ac_compile) 2>conftest.er1
 
34914
  ac_status=$?
 
34915
  grep -v '^ *+' conftest.er1 >conftest.err
 
34916
  rm -f conftest.er1
 
34917
  cat conftest.err >&5
 
34918
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34919
  (exit $ac_status); } &&
 
34920
         { ac_try='test -z "$ac_c_werror_flag"
 
34921
                         || test ! -s conftest.err'
 
34922
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34923
  (eval $ac_try) 2>&5
 
34924
  ac_status=$?
 
34925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34926
  (exit $ac_status); }; } &&
 
34927
         { ac_try='test -s conftest.$ac_objext'
 
34928
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34929
  (eval $ac_try) 2>&5
 
34930
  ac_status=$?
 
34931
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34932
  (exit $ac_status); }; }; then
 
34933
  eval "$as_ac_Header=yes"
 
34934
else
 
34935
  echo "$as_me: failed program was:" >&5
 
34936
sed 's/^/| /' conftest.$ac_ext >&5
 
34937
 
 
34938
eval "$as_ac_Header=no"
 
34939
fi
 
34940
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
34941
fi
 
34942
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
34943
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
34944
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
34945
  cat >>confdefs.h <<_ACEOF
 
34946
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
34947
_ACEOF
 
34948
 
 
34949
fi
 
34950
 
 
34951
done
 
34952
 
 
34953
 
9356
34954
 
9357
34955
for ac_header in netinet/in_system.h netinet/in_systm.h
9358
34956
do
9387
34985
  cat conftest.err >&5
9388
34986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389
34987
  (exit $ac_status); } &&
9390
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
34988
         { ac_try='test -z "$ac_c_werror_flag"
 
34989
                         || test ! -s conftest.err'
9391
34990
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392
34991
  (eval $ac_try) 2>&5
9393
34992
  ac_status=$?
9536
35135
  cat conftest.err >&5
9537
35136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538
35137
  (exit $ac_status); } &&
9539
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
35138
         { ac_try='test -z "$ac_c_werror_flag"
 
35139
                         || test ! -s conftest.err'
9540
35140
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9541
35141
  (eval $ac_try) 2>&5
9542
35142
  ac_status=$?
9688
35288
  cat conftest.err >&5
9689
35289
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690
35290
  (exit $ac_status); } &&
9691
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
35291
         { ac_try='test -z "$ac_c_werror_flag"
 
35292
                         || test ! -s conftest.err'
9692
35293
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9693
35294
  (eval $ac_try) 2>&5
9694
35295
  ac_status=$?
9754
35355
  cat conftest.err >&5
9755
35356
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756
35357
  (exit $ac_status); } &&
9757
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
35358
         { ac_try='test -z "$ac_c_werror_flag"
 
35359
                         || test ! -s conftest.err'
9758
35360
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759
35361
  (eval $ac_try) 2>&5
9760
35362
  ac_status=$?
9908
35510
  cat conftest.err >&5
9909
35511
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910
35512
  (exit $ac_status); } &&
9911
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
35513
         { ac_try='test -z "$ac_c_werror_flag"
 
35514
                         || test ! -s conftest.err'
9912
35515
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913
35516
  (eval $ac_try) 2>&5
9914
35517
  ac_status=$?
10025
35628
 
10026
35629
 
10027
35630
 
10028
 
 
10029
 
for ac_header in sys/clkdefs.h sys/file.h sys/var.h
 
35631
for ac_header in sys/clkdefs.h sys/file.h
10030
35632
do
10031
35633
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10032
35634
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10059
35661
  cat conftest.err >&5
10060
35662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061
35663
  (exit $ac_status); } &&
10062
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
35664
         { ac_try='test -z "$ac_c_werror_flag"
 
35665
                         || test ! -s conftest.err'
10063
35666
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064
35667
  (eval $ac_try) 2>&5
10065
35668
  ac_status=$?
10210
35813
  cat conftest.err >&5
10211
35814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212
35815
  (exit $ac_status); } &&
10213
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
35816
         { ac_try='test -z "$ac_c_werror_flag"
 
35817
                         || test ! -s conftest.err'
10214
35818
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10215
35819
  (eval $ac_try) 2>&5
10216
35820
  ac_status=$?
10361
35965
  cat conftest.err >&5
10362
35966
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363
35967
  (exit $ac_status); } &&
10364
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
35968
         { ac_try='test -z "$ac_c_werror_flag"
 
35969
                         || test ! -s conftest.err'
10365
35970
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10366
35971
  (eval $ac_try) 2>&5
10367
35972
  ac_status=$?
10514
36119
  cat conftest.err >&5
10515
36120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516
36121
  (exit $ac_status); } &&
10517
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10518
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10519
 
  (eval $ac_try) 2>&5
10520
 
  ac_status=$?
10521
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522
 
  (exit $ac_status); }; } &&
10523
 
         { ac_try='test -s conftest.$ac_objext'
10524
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10525
 
  (eval $ac_try) 2>&5
10526
 
  ac_status=$?
10527
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528
 
  (exit $ac_status); }; }; then
10529
 
  ac_header_compiler=yes
10530
 
else
10531
 
  echo "$as_me: failed program was:" >&5
10532
 
sed 's/^/| /' conftest.$ac_ext >&5
10533
 
 
10534
 
ac_header_compiler=no
10535
 
fi
10536
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10537
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10538
 
echo "${ECHO_T}$ac_header_compiler" >&6
10539
 
 
10540
 
# Is the header present?
10541
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
10542
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10543
 
cat >conftest.$ac_ext <<_ACEOF
10544
 
/* confdefs.h.  */
10545
 
_ACEOF
10546
 
cat confdefs.h >>conftest.$ac_ext
10547
 
cat >>conftest.$ac_ext <<_ACEOF
10548
 
/* end confdefs.h.  */
10549
 
#include <$ac_header>
10550
 
_ACEOF
10551
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10552
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10553
 
  ac_status=$?
10554
 
  grep -v '^ *+' conftest.er1 >conftest.err
10555
 
  rm -f conftest.er1
10556
 
  cat conftest.err >&5
10557
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558
 
  (exit $ac_status); } >/dev/null; then
10559
 
  if test -s conftest.err; then
10560
 
    ac_cpp_err=$ac_c_preproc_warn_flag
10561
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10562
 
  else
10563
 
    ac_cpp_err=
10564
 
  fi
10565
 
else
10566
 
  ac_cpp_err=yes
10567
 
fi
10568
 
if test -z "$ac_cpp_err"; then
10569
 
  ac_header_preproc=yes
10570
 
else
10571
 
  echo "$as_me: failed program was:" >&5
10572
 
sed 's/^/| /' conftest.$ac_ext >&5
10573
 
 
10574
 
  ac_header_preproc=no
10575
 
fi
10576
 
rm -f conftest.err conftest.$ac_ext
10577
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10578
 
echo "${ECHO_T}$ac_header_preproc" >&6
10579
 
 
10580
 
# So?  What about this header?
10581
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10582
 
  yes:no: )
10583
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10584
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10585
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10586
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10587
 
    ac_header_preproc=yes
10588
 
    ;;
10589
 
  no:yes:* )
10590
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10591
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10592
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10593
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10594
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10595
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10596
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10597
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10598
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10599
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10600
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10601
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10602
 
    (
10603
 
      cat <<\_ASBOX
10604
 
## ------------------------------ ##
10605
 
## Report this to the ntp lists.  ##
10606
 
## ------------------------------ ##
10607
 
_ASBOX
10608
 
    ) |
10609
 
      sed "s/^/$as_me: WARNING:     /" >&2
10610
 
    ;;
10611
 
esac
10612
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
10613
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10614
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10615
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10616
 
else
10617
 
  eval "$as_ac_Header=\$ac_header_preproc"
10618
 
fi
10619
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10620
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10621
 
 
10622
 
fi
10623
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
10624
 
  cat >>confdefs.h <<_ACEOF
10625
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10626
 
_ACEOF
10627
 
 
10628
 
fi
10629
 
 
10630
 
done
10631
 
 
10632
 
 
10633
 
 
10634
 
 
10635
 
 
10636
 
for ac_header in sys/ppstime.h sys/proc.h sys/resource.h sys/sched.h
10637
 
do
10638
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10639
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10640
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
10641
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10642
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10643
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10644
 
fi
10645
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10646
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10647
 
else
10648
 
  # Is the header compilable?
10649
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
10650
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10651
 
cat >conftest.$ac_ext <<_ACEOF
10652
 
/* confdefs.h.  */
10653
 
_ACEOF
10654
 
cat confdefs.h >>conftest.$ac_ext
10655
 
cat >>conftest.$ac_ext <<_ACEOF
10656
 
/* end confdefs.h.  */
10657
 
$ac_includes_default
10658
 
#include <$ac_header>
10659
 
_ACEOF
10660
 
rm -f conftest.$ac_objext
10661
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10662
 
  (eval $ac_compile) 2>conftest.er1
10663
 
  ac_status=$?
10664
 
  grep -v '^ *+' conftest.er1 >conftest.err
10665
 
  rm -f conftest.er1
10666
 
  cat conftest.err >&5
10667
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668
 
  (exit $ac_status); } &&
10669
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10670
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671
 
  (eval $ac_try) 2>&5
10672
 
  ac_status=$?
10673
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674
 
  (exit $ac_status); }; } &&
10675
 
         { ac_try='test -s conftest.$ac_objext'
10676
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10677
 
  (eval $ac_try) 2>&5
10678
 
  ac_status=$?
10679
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680
 
  (exit $ac_status); }; }; then
10681
 
  ac_header_compiler=yes
10682
 
else
10683
 
  echo "$as_me: failed program was:" >&5
10684
 
sed 's/^/| /' conftest.$ac_ext >&5
10685
 
 
10686
 
ac_header_compiler=no
10687
 
fi
10688
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10689
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10690
 
echo "${ECHO_T}$ac_header_compiler" >&6
10691
 
 
10692
 
# Is the header present?
10693
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
10694
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10695
 
cat >conftest.$ac_ext <<_ACEOF
10696
 
/* confdefs.h.  */
10697
 
_ACEOF
10698
 
cat confdefs.h >>conftest.$ac_ext
10699
 
cat >>conftest.$ac_ext <<_ACEOF
10700
 
/* end confdefs.h.  */
10701
 
#include <$ac_header>
10702
 
_ACEOF
10703
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10704
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10705
 
  ac_status=$?
10706
 
  grep -v '^ *+' conftest.er1 >conftest.err
10707
 
  rm -f conftest.er1
10708
 
  cat conftest.err >&5
10709
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710
 
  (exit $ac_status); } >/dev/null; then
10711
 
  if test -s conftest.err; then
10712
 
    ac_cpp_err=$ac_c_preproc_warn_flag
10713
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10714
 
  else
10715
 
    ac_cpp_err=
10716
 
  fi
10717
 
else
10718
 
  ac_cpp_err=yes
10719
 
fi
10720
 
if test -z "$ac_cpp_err"; then
10721
 
  ac_header_preproc=yes
10722
 
else
10723
 
  echo "$as_me: failed program was:" >&5
10724
 
sed 's/^/| /' conftest.$ac_ext >&5
10725
 
 
10726
 
  ac_header_preproc=no
10727
 
fi
10728
 
rm -f conftest.err conftest.$ac_ext
10729
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10730
 
echo "${ECHO_T}$ac_header_preproc" >&6
10731
 
 
10732
 
# So?  What about this header?
10733
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10734
 
  yes:no: )
10735
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10736
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10737
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10738
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10739
 
    ac_header_preproc=yes
10740
 
    ;;
10741
 
  no:yes:* )
10742
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10743
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10744
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10745
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10746
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10747
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10748
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10749
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10750
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10751
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10752
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10753
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10754
 
    (
10755
 
      cat <<\_ASBOX
10756
 
## ------------------------------ ##
10757
 
## Report this to the ntp lists.  ##
10758
 
## ------------------------------ ##
10759
 
_ASBOX
10760
 
    ) |
10761
 
      sed "s/^/$as_me: WARNING:     /" >&2
10762
 
    ;;
10763
 
esac
10764
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
10765
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10766
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10767
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10768
 
else
10769
 
  eval "$as_ac_Header=\$ac_header_preproc"
10770
 
fi
10771
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10772
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10773
 
 
10774
 
fi
10775
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
10776
 
  cat >>confdefs.h <<_ACEOF
10777
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10778
 
_ACEOF
10779
 
 
10780
 
fi
10781
 
 
10782
 
done
10783
 
 
 
36122
         { ac_try='test -z "$ac_c_werror_flag"
 
36123
                         || test ! -s conftest.err'
 
36124
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36125
  (eval $ac_try) 2>&5
 
36126
  ac_status=$?
 
36127
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36128
  (exit $ac_status); }; } &&
 
36129
         { ac_try='test -s conftest.$ac_objext'
 
36130
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36131
  (eval $ac_try) 2>&5
 
36132
  ac_status=$?
 
36133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36134
  (exit $ac_status); }; }; then
 
36135
  ac_header_compiler=yes
 
36136
else
 
36137
  echo "$as_me: failed program was:" >&5
 
36138
sed 's/^/| /' conftest.$ac_ext >&5
 
36139
 
 
36140
ac_header_compiler=no
 
36141
fi
 
36142
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
36143
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
36144
echo "${ECHO_T}$ac_header_compiler" >&6
 
36145
 
 
36146
# Is the header present?
 
36147
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
36148
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
36149
cat >conftest.$ac_ext <<_ACEOF
 
36150
/* confdefs.h.  */
 
36151
_ACEOF
 
36152
cat confdefs.h >>conftest.$ac_ext
 
36153
cat >>conftest.$ac_ext <<_ACEOF
 
36154
/* end confdefs.h.  */
 
36155
#include <$ac_header>
 
36156
_ACEOF
 
36157
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
36158
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
36159
  ac_status=$?
 
36160
  grep -v '^ *+' conftest.er1 >conftest.err
 
36161
  rm -f conftest.er1
 
36162
  cat conftest.err >&5
 
36163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36164
  (exit $ac_status); } >/dev/null; then
 
36165
  if test -s conftest.err; then
 
36166
    ac_cpp_err=$ac_c_preproc_warn_flag
 
36167
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
36168
  else
 
36169
    ac_cpp_err=
 
36170
  fi
 
36171
else
 
36172
  ac_cpp_err=yes
 
36173
fi
 
36174
if test -z "$ac_cpp_err"; then
 
36175
  ac_header_preproc=yes
 
36176
else
 
36177
  echo "$as_me: failed program was:" >&5
 
36178
sed 's/^/| /' conftest.$ac_ext >&5
 
36179
 
 
36180
  ac_header_preproc=no
 
36181
fi
 
36182
rm -f conftest.err conftest.$ac_ext
 
36183
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
36184
echo "${ECHO_T}$ac_header_preproc" >&6
 
36185
 
 
36186
# So?  What about this header?
 
36187
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
36188
  yes:no: )
 
36189
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
36190
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
36191
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
36192
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
36193
    ac_header_preproc=yes
 
36194
    ;;
 
36195
  no:yes:* )
 
36196
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
36197
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
36198
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
36199
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
36200
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
36201
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
36202
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
36203
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
36204
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
36205
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
36206
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
36207
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
36208
    (
 
36209
      cat <<\_ASBOX
 
36210
## ------------------------------ ##
 
36211
## Report this to the ntp lists.  ##
 
36212
## ------------------------------ ##
 
36213
_ASBOX
 
36214
    ) |
 
36215
      sed "s/^/$as_me: WARNING:     /" >&2
 
36216
    ;;
 
36217
esac
 
36218
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
36219
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
36220
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
36221
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
36222
else
 
36223
  eval "$as_ac_Header=\$ac_header_preproc"
 
36224
fi
 
36225
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
36226
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
36227
 
 
36228
fi
 
36229
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
36230
  cat >>confdefs.h <<_ACEOF
 
36231
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
36232
_ACEOF
 
36233
 
 
36234
fi
 
36235
 
 
36236
done
 
36237
 
 
36238
# HMS: Check sys/proc.h and sys/resource.h after some others
 
36239
 
 
36240
for ac_header in sys/ppstime.h
 
36241
do
 
36242
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
36243
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
36244
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
36245
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
36246
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
36247
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
36248
fi
 
36249
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
36250
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
36251
else
 
36252
  # Is the header compilable?
 
36253
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
36254
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
36255
cat >conftest.$ac_ext <<_ACEOF
 
36256
/* confdefs.h.  */
 
36257
_ACEOF
 
36258
cat confdefs.h >>conftest.$ac_ext
 
36259
cat >>conftest.$ac_ext <<_ACEOF
 
36260
/* end confdefs.h.  */
 
36261
$ac_includes_default
 
36262
#include <$ac_header>
 
36263
_ACEOF
 
36264
rm -f conftest.$ac_objext
 
36265
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
36266
  (eval $ac_compile) 2>conftest.er1
 
36267
  ac_status=$?
 
36268
  grep -v '^ *+' conftest.er1 >conftest.err
 
36269
  rm -f conftest.er1
 
36270
  cat conftest.err >&5
 
36271
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36272
  (exit $ac_status); } &&
 
36273
         { ac_try='test -z "$ac_c_werror_flag"
 
36274
                         || test ! -s conftest.err'
 
36275
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36276
  (eval $ac_try) 2>&5
 
36277
  ac_status=$?
 
36278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36279
  (exit $ac_status); }; } &&
 
36280
         { ac_try='test -s conftest.$ac_objext'
 
36281
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36282
  (eval $ac_try) 2>&5
 
36283
  ac_status=$?
 
36284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36285
  (exit $ac_status); }; }; then
 
36286
  ac_header_compiler=yes
 
36287
else
 
36288
  echo "$as_me: failed program was:" >&5
 
36289
sed 's/^/| /' conftest.$ac_ext >&5
 
36290
 
 
36291
ac_header_compiler=no
 
36292
fi
 
36293
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
36294
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
36295
echo "${ECHO_T}$ac_header_compiler" >&6
 
36296
 
 
36297
# Is the header present?
 
36298
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
36299
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
36300
cat >conftest.$ac_ext <<_ACEOF
 
36301
/* confdefs.h.  */
 
36302
_ACEOF
 
36303
cat confdefs.h >>conftest.$ac_ext
 
36304
cat >>conftest.$ac_ext <<_ACEOF
 
36305
/* end confdefs.h.  */
 
36306
#include <$ac_header>
 
36307
_ACEOF
 
36308
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
36309
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
36310
  ac_status=$?
 
36311
  grep -v '^ *+' conftest.er1 >conftest.err
 
36312
  rm -f conftest.er1
 
36313
  cat conftest.err >&5
 
36314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36315
  (exit $ac_status); } >/dev/null; then
 
36316
  if test -s conftest.err; then
 
36317
    ac_cpp_err=$ac_c_preproc_warn_flag
 
36318
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
36319
  else
 
36320
    ac_cpp_err=
 
36321
  fi
 
36322
else
 
36323
  ac_cpp_err=yes
 
36324
fi
 
36325
if test -z "$ac_cpp_err"; then
 
36326
  ac_header_preproc=yes
 
36327
else
 
36328
  echo "$as_me: failed program was:" >&5
 
36329
sed 's/^/| /' conftest.$ac_ext >&5
 
36330
 
 
36331
  ac_header_preproc=no
 
36332
fi
 
36333
rm -f conftest.err conftest.$ac_ext
 
36334
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
36335
echo "${ECHO_T}$ac_header_preproc" >&6
 
36336
 
 
36337
# So?  What about this header?
 
36338
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
36339
  yes:no: )
 
36340
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
36341
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
36342
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
36343
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
36344
    ac_header_preproc=yes
 
36345
    ;;
 
36346
  no:yes:* )
 
36347
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
36348
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
36349
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
36350
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
36351
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
36352
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
36353
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
36354
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
36355
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
36356
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
36357
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
36358
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
36359
    (
 
36360
      cat <<\_ASBOX
 
36361
## ------------------------------ ##
 
36362
## Report this to the ntp lists.  ##
 
36363
## ------------------------------ ##
 
36364
_ASBOX
 
36365
    ) |
 
36366
      sed "s/^/$as_me: WARNING:     /" >&2
 
36367
    ;;
 
36368
esac
 
36369
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
36370
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
36371
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
36372
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
36373
else
 
36374
  eval "$as_ac_Header=\$ac_header_preproc"
 
36375
fi
 
36376
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
36377
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
36378
 
 
36379
fi
 
36380
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
36381
  cat >>confdefs.h <<_ACEOF
 
36382
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
36383
_ACEOF
 
36384
 
 
36385
fi
 
36386
 
 
36387
done
 
36388
 
 
36389
case "$ac_cv_header_sched_h" in
 
36390
 yes) ;;
 
36391
 *)
 
36392
for ac_header in sys/sched.h
 
36393
do
 
36394
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
36395
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
36396
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
36397
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
36398
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
36399
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
36400
fi
 
36401
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
36402
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
36403
else
 
36404
  # Is the header compilable?
 
36405
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
36406
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
36407
cat >conftest.$ac_ext <<_ACEOF
 
36408
/* confdefs.h.  */
 
36409
_ACEOF
 
36410
cat confdefs.h >>conftest.$ac_ext
 
36411
cat >>conftest.$ac_ext <<_ACEOF
 
36412
/* end confdefs.h.  */
 
36413
$ac_includes_default
 
36414
#include <$ac_header>
 
36415
_ACEOF
 
36416
rm -f conftest.$ac_objext
 
36417
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
36418
  (eval $ac_compile) 2>conftest.er1
 
36419
  ac_status=$?
 
36420
  grep -v '^ *+' conftest.er1 >conftest.err
 
36421
  rm -f conftest.er1
 
36422
  cat conftest.err >&5
 
36423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36424
  (exit $ac_status); } &&
 
36425
         { ac_try='test -z "$ac_c_werror_flag"
 
36426
                         || test ! -s conftest.err'
 
36427
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36428
  (eval $ac_try) 2>&5
 
36429
  ac_status=$?
 
36430
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36431
  (exit $ac_status); }; } &&
 
36432
         { ac_try='test -s conftest.$ac_objext'
 
36433
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36434
  (eval $ac_try) 2>&5
 
36435
  ac_status=$?
 
36436
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36437
  (exit $ac_status); }; }; then
 
36438
  ac_header_compiler=yes
 
36439
else
 
36440
  echo "$as_me: failed program was:" >&5
 
36441
sed 's/^/| /' conftest.$ac_ext >&5
 
36442
 
 
36443
ac_header_compiler=no
 
36444
fi
 
36445
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
36446
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
36447
echo "${ECHO_T}$ac_header_compiler" >&6
 
36448
 
 
36449
# Is the header present?
 
36450
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
36451
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
36452
cat >conftest.$ac_ext <<_ACEOF
 
36453
/* confdefs.h.  */
 
36454
_ACEOF
 
36455
cat confdefs.h >>conftest.$ac_ext
 
36456
cat >>conftest.$ac_ext <<_ACEOF
 
36457
/* end confdefs.h.  */
 
36458
#include <$ac_header>
 
36459
_ACEOF
 
36460
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
36461
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
36462
  ac_status=$?
 
36463
  grep -v '^ *+' conftest.er1 >conftest.err
 
36464
  rm -f conftest.er1
 
36465
  cat conftest.err >&5
 
36466
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36467
  (exit $ac_status); } >/dev/null; then
 
36468
  if test -s conftest.err; then
 
36469
    ac_cpp_err=$ac_c_preproc_warn_flag
 
36470
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
36471
  else
 
36472
    ac_cpp_err=
 
36473
  fi
 
36474
else
 
36475
  ac_cpp_err=yes
 
36476
fi
 
36477
if test -z "$ac_cpp_err"; then
 
36478
  ac_header_preproc=yes
 
36479
else
 
36480
  echo "$as_me: failed program was:" >&5
 
36481
sed 's/^/| /' conftest.$ac_ext >&5
 
36482
 
 
36483
  ac_header_preproc=no
 
36484
fi
 
36485
rm -f conftest.err conftest.$ac_ext
 
36486
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
36487
echo "${ECHO_T}$ac_header_preproc" >&6
 
36488
 
 
36489
# So?  What about this header?
 
36490
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
36491
  yes:no: )
 
36492
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
36493
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
36494
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
36495
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
36496
    ac_header_preproc=yes
 
36497
    ;;
 
36498
  no:yes:* )
 
36499
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
36500
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
36501
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
36502
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
36503
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
36504
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
36505
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
36506
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
36507
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
36508
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
36509
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
36510
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
36511
    (
 
36512
      cat <<\_ASBOX
 
36513
## ------------------------------ ##
 
36514
## Report this to the ntp lists.  ##
 
36515
## ------------------------------ ##
 
36516
_ASBOX
 
36517
    ) |
 
36518
      sed "s/^/$as_me: WARNING:     /" >&2
 
36519
    ;;
 
36520
esac
 
36521
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
36522
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
36523
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
36524
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
36525
else
 
36526
  eval "$as_ac_Header=\$ac_header_preproc"
 
36527
fi
 
36528
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
36529
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
36530
 
 
36531
fi
 
36532
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
36533
  cat >>confdefs.h <<_ACEOF
 
36534
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
36535
_ACEOF
 
36536
 
 
36537
fi
 
36538
 
 
36539
done
 
36540
 ;;
 
36541
esac
10784
36542
case "$host" in
10785
36543
 *-*-sco*)
10786
36544
 
10817
36575
  cat conftest.err >&5
10818
36576
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819
36577
  (exit $ac_status); } &&
10820
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
36578
         { ac_try='test -z "$ac_c_werror_flag"
 
36579
                         || test ! -s conftest.err'
10821
36580
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10822
36581
  (eval $ac_try) 2>&5
10823
36582
  ac_status=$?
10934
36693
 
10935
36694
    ;;
10936
36695
esac
10937
 
 
10938
 
 
10939
 
 
10940
 
 
10941
 
for ac_header in sys/select.h sys/shm.h sys/signal.h sys/sockio.h
 
36696
# HMS: Check sys/shm.h after some others
 
36697
 
 
36698
 
 
36699
 
 
36700
for ac_header in sys/select.h sys/signal.h sys/sockio.h
10942
36701
do
10943
36702
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10944
36703
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10971
36730
  cat conftest.err >&5
10972
36731
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973
36732
  (exit $ac_status); } &&
10974
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
36733
         { ac_try='test -z "$ac_c_werror_flag"
 
36734
                         || test ! -s conftest.err'
10975
36735
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10976
36736
  (eval $ac_try) 2>&5
10977
36737
  ac_status=$?
11086
36846
 
11087
36847
done
11088
36848
 
 
36849
# HMS: Checked sys/socket.h earlier
11089
36850
case "$host" in
11090
36851
 *-*-netbsd*) ;;
11091
36852
 *)
11123
36884
  cat conftest.err >&5
11124
36885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125
36886
  (exit $ac_status); } &&
11126
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
36887
         { ac_try='test -z "$ac_c_werror_flag"
 
36888
                         || test ! -s conftest.err'
11127
36889
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11128
36890
  (eval $ac_try) 2>&5
11129
36891
  ac_status=$?
11275
37037
  cat conftest.err >&5
11276
37038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277
37039
  (exit $ac_status); } &&
11278
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
37040
         { ac_try='test -z "$ac_c_werror_flag"
 
37041
                         || test ! -s conftest.err'
11279
37042
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11280
37043
  (eval $ac_try) 2>&5
11281
37044
  ac_status=$?
11427
37190
  cat conftest.err >&5
11428
37191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429
37192
  (exit $ac_status); } &&
11430
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
37193
         { ac_try='test -z "$ac_c_werror_flag"
 
37194
                         || test ! -s conftest.err'
11431
37195
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432
37196
  (eval $ac_try) 2>&5
11433
37197
  ac_status=$?
11578
37342
  cat conftest.err >&5
11579
37343
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580
37344
  (exit $ac_status); } &&
11581
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
37345
         { ac_try='test -z "$ac_c_werror_flag"
 
37346
                         || test ! -s conftest.err'
11582
37347
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11583
37348
  (eval $ac_try) 2>&5
11584
37349
  ac_status=$?
11699
37464
cat confdefs.h >>conftest.$ac_ext
11700
37465
cat >>conftest.$ac_ext <<_ACEOF
11701
37466
/* end confdefs.h.  */
 
37467
#if HAVE_SYS_TIME_H
 
37468
# include <sys/time.h>
 
37469
#endif
 
37470
#if HAVE_ERRNO_H
 
37471
# include <errno.h>
 
37472
#endif
11702
37473
#include <sys/timepps.h>
11703
37474
#ifdef PPS_API_VERS_1
11704
37475
yes
11711
37482
for ac_header in sys/timepps.h
11712
37483
do
11713
37484
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11714
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11715
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
37485
echo "$as_me:$LINENO: checking for $ac_header" >&5
11716
37486
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11717
37487
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11718
37488
  echo $ECHO_N "(cached) $ECHO_C" >&6
11719
 
fi
11720
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11721
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11722
37489
else
11723
 
  # Is the header compilable?
11724
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
11725
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11726
 
cat >conftest.$ac_ext <<_ACEOF
 
37490
  cat >conftest.$ac_ext <<_ACEOF
11727
37491
/* confdefs.h.  */
11728
37492
_ACEOF
11729
37493
cat confdefs.h >>conftest.$ac_ext
11730
37494
cat >>conftest.$ac_ext <<_ACEOF
11731
37495
/* end confdefs.h.  */
11732
 
$ac_includes_default
 
37496
#if HAVE_SYS_TIME_H
 
37497
# include <sys/time.h>
 
37498
#endif
 
37499
#if HAVE_ERRNO_H
 
37500
# include <errno.h>
 
37501
#endif
 
37502
 
 
37503
 
11733
37504
#include <$ac_header>
11734
37505
_ACEOF
11735
37506
rm -f conftest.$ac_objext
11741
37512
  cat conftest.err >&5
11742
37513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743
37514
  (exit $ac_status); } &&
11744
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
37515
         { ac_try='test -z "$ac_c_werror_flag"
 
37516
                         || test ! -s conftest.err'
11745
37517
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11746
37518
  (eval $ac_try) 2>&5
11747
37519
  ac_status=$?
11753
37525
  ac_status=$?
11754
37526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755
37527
  (exit $ac_status); }; }; then
11756
 
  ac_header_compiler=yes
 
37528
  eval "$as_ac_Header=yes"
11757
37529
else
11758
37530
  echo "$as_me: failed program was:" >&5
11759
37531
sed 's/^/| /' conftest.$ac_ext >&5
11760
37532
 
11761
 
ac_header_compiler=no
 
37533
eval "$as_ac_Header=no"
11762
37534
fi
11763
37535
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11764
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11765
 
echo "${ECHO_T}$ac_header_compiler" >&6
11766
 
 
11767
 
# Is the header present?
11768
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
11769
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11770
 
cat >conftest.$ac_ext <<_ACEOF
11771
 
/* confdefs.h.  */
11772
 
_ACEOF
11773
 
cat confdefs.h >>conftest.$ac_ext
11774
 
cat >>conftest.$ac_ext <<_ACEOF
11775
 
/* end confdefs.h.  */
11776
 
#include <$ac_header>
11777
 
_ACEOF
11778
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11779
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11780
 
  ac_status=$?
11781
 
  grep -v '^ *+' conftest.er1 >conftest.err
11782
 
  rm -f conftest.er1
11783
 
  cat conftest.err >&5
11784
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785
 
  (exit $ac_status); } >/dev/null; then
11786
 
  if test -s conftest.err; then
11787
 
    ac_cpp_err=$ac_c_preproc_warn_flag
11788
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11789
 
  else
11790
 
    ac_cpp_err=
11791
 
  fi
11792
 
else
11793
 
  ac_cpp_err=yes
11794
 
fi
11795
 
if test -z "$ac_cpp_err"; then
11796
 
  ac_header_preproc=yes
11797
 
else
11798
 
  echo "$as_me: failed program was:" >&5
11799
 
sed 's/^/| /' conftest.$ac_ext >&5
11800
 
 
11801
 
  ac_header_preproc=no
11802
 
fi
11803
 
rm -f conftest.err conftest.$ac_ext
11804
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11805
 
echo "${ECHO_T}$ac_header_preproc" >&6
11806
 
 
11807
 
# So?  What about this header?
11808
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11809
 
  yes:no: )
11810
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11811
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11812
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11813
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11814
 
    ac_header_preproc=yes
11815
 
    ;;
11816
 
  no:yes:* )
11817
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11818
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11819
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11820
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11821
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11822
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11823
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11824
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11825
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11826
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11827
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11828
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11829
 
    (
11830
 
      cat <<\_ASBOX
11831
 
## ------------------------------ ##
11832
 
## Report this to the ntp lists.  ##
11833
 
## ------------------------------ ##
11834
 
_ASBOX
11835
 
    ) |
11836
 
      sed "s/^/$as_me: WARNING:     /" >&2
11837
 
    ;;
11838
 
esac
11839
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
11840
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11841
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11842
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11843
 
else
11844
 
  eval "$as_ac_Header=\$ac_header_preproc"
11845
37536
fi
11846
37537
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11847
37538
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11848
 
 
11849
 
fi
11850
37539
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11851
37540
  cat >>confdefs.h <<_ACEOF
11852
37541
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11856
37545
 
11857
37546
done
11858
37547
 
 
37548
 
11859
37549
fi
11860
37550
rm -f conftest*
11861
37551
 
11863
37553
 
11864
37554
 
11865
37555
 
11866
 
 
11867
 
for ac_header in sys/timers.h sys/timex.h sys/tpro.h sys/types.h sys/wait.h
 
37556
for ac_header in sys/timers.h sys/tpro.h sys/types.h sys/wait.h
11868
37557
do
11869
37558
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11870
37559
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11897
37586
  cat conftest.err >&5
11898
37587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899
37588
  (exit $ac_status); } &&
11900
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
37589
         { ac_try='test -z "$ac_c_werror_flag"
 
37590
                         || test ! -s conftest.err'
11901
37591
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11902
37592
  (eval $ac_try) 2>&5
11903
37593
  ac_status=$?
12045
37735
  cat conftest.err >&5
12046
37736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047
37737
  (exit $ac_status); } &&
12048
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
37738
         { ac_try='test -z "$ac_c_werror_flag"
 
37739
                         || test ! -s conftest.err'
12049
37740
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050
37741
  (eval $ac_try) 2>&5
12051
37742
  ac_status=$?
12113
37804
  cat conftest.err >&5
12114
37805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115
37806
  (exit $ac_status); } &&
12116
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
37807
         { ac_try='test -z "$ac_c_werror_flag"
 
37808
                         || test ! -s conftest.err'
12117
37809
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118
37810
  (eval $ac_try) 2>&5
12119
37811
  ac_status=$?
12266
37958
  cat conftest.err >&5
12267
37959
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268
37960
  (exit $ac_status); } &&
12269
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
37961
         { ac_try='test -z "$ac_c_werror_flag"
 
37962
                         || test ! -s conftest.err'
12270
37963
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12271
37964
  (eval $ac_try) 2>&5
12272
37965
  ac_status=$?
12384
38077
  ;;
12385
38078
esac
12386
38079
 
12387
 
if test "${ac_cv_header_nlist_h+set}" = set; then
 
38080
case "$host" in
 
38081
 *-*-linux*)
 
38082
 
 
38083
 
 
38084
for ac_func in __adjtimex __ntp_gettime
 
38085
do
 
38086
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
38087
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
38088
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
38089
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
38090
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
38091
else
 
38092
  cat >conftest.$ac_ext <<_ACEOF
 
38093
/* confdefs.h.  */
 
38094
_ACEOF
 
38095
cat confdefs.h >>conftest.$ac_ext
 
38096
cat >>conftest.$ac_ext <<_ACEOF
 
38097
/* end confdefs.h.  */
 
38098
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
38099
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
38100
#define $ac_func innocuous_$ac_func
 
38101
 
 
38102
/* System header to define __stub macros and hopefully few prototypes,
 
38103
    which can conflict with char $ac_func (); below.
 
38104
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
38105
    <limits.h> exists even on freestanding compilers.  */
 
38106
 
 
38107
#ifdef __STDC__
 
38108
# include <limits.h>
 
38109
#else
 
38110
# include <assert.h>
 
38111
#endif
 
38112
 
 
38113
#undef $ac_func
 
38114
 
 
38115
/* Override any gcc2 internal prototype to avoid an error.  */
 
38116
#ifdef __cplusplus
 
38117
extern "C"
 
38118
{
 
38119
#endif
 
38120
/* We use char because int might match the return type of a gcc2
 
38121
   builtin and then its argument prototype would still apply.  */
 
38122
char $ac_func ();
 
38123
/* The GNU C library defines this for functions which it implements
 
38124
    to always fail with ENOSYS.  Some functions are actually named
 
38125
    something starting with __ and the normal name is an alias.  */
 
38126
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
38127
choke me
 
38128
#else
 
38129
char (*f) () = $ac_func;
 
38130
#endif
 
38131
#ifdef __cplusplus
 
38132
}
 
38133
#endif
 
38134
 
 
38135
int
 
38136
main ()
 
38137
{
 
38138
return f != $ac_func;
 
38139
  ;
 
38140
  return 0;
 
38141
}
 
38142
_ACEOF
 
38143
rm -f conftest.$ac_objext conftest$ac_exeext
 
38144
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
38145
  (eval $ac_link) 2>conftest.er1
 
38146
  ac_status=$?
 
38147
  grep -v '^ *+' conftest.er1 >conftest.err
 
38148
  rm -f conftest.er1
 
38149
  cat conftest.err >&5
 
38150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38151
  (exit $ac_status); } &&
 
38152
         { ac_try='test -z "$ac_c_werror_flag"
 
38153
                         || test ! -s conftest.err'
 
38154
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38155
  (eval $ac_try) 2>&5
 
38156
  ac_status=$?
 
38157
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38158
  (exit $ac_status); }; } &&
 
38159
         { ac_try='test -s conftest$ac_exeext'
 
38160
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38161
  (eval $ac_try) 2>&5
 
38162
  ac_status=$?
 
38163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38164
  (exit $ac_status); }; }; then
 
38165
  eval "$as_ac_var=yes"
 
38166
else
 
38167
  echo "$as_me: failed program was:" >&5
 
38168
sed 's/^/| /' conftest.$ac_ext >&5
 
38169
 
 
38170
eval "$as_ac_var=no"
 
38171
fi
 
38172
rm -f conftest.err conftest.$ac_objext \
 
38173
      conftest$ac_exeext conftest.$ac_ext
 
38174
fi
 
38175
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
38176
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
38177
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
38178
  cat >>confdefs.h <<_ACEOF
 
38179
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
38180
_ACEOF
 
38181
 
 
38182
fi
 
38183
done
 
38184
 
 
38185
    ;;
 
38186
esac
 
38187
case "$ac_cv_func___adjtimex" in
 
38188
 yes) ;;
 
38189
 *)
 
38190
 
 
38191
echo "$as_me:$LINENO: checking for nlist in -lelf" >&5
 
38192
echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6
 
38193
if test "${ac_cv_lib_elf_nlist+set}" = set; then
 
38194
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
38195
else
 
38196
  ac_check_lib_save_LIBS=$LIBS
 
38197
LIBS="-lelf  $LIBS"
 
38198
cat >conftest.$ac_ext <<_ACEOF
 
38199
/* confdefs.h.  */
 
38200
_ACEOF
 
38201
cat confdefs.h >>conftest.$ac_ext
 
38202
cat >>conftest.$ac_ext <<_ACEOF
 
38203
/* end confdefs.h.  */
 
38204
 
 
38205
/* Override any gcc2 internal prototype to avoid an error.  */
 
38206
#ifdef __cplusplus
 
38207
extern "C"
 
38208
#endif
 
38209
/* We use char because int might match the return type of a gcc2
 
38210
   builtin and then its argument prototype would still apply.  */
 
38211
char nlist ();
 
38212
int
 
38213
main ()
 
38214
{
 
38215
nlist ();
 
38216
  ;
 
38217
  return 0;
 
38218
}
 
38219
_ACEOF
 
38220
rm -f conftest.$ac_objext conftest$ac_exeext
 
38221
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
38222
  (eval $ac_link) 2>conftest.er1
 
38223
  ac_status=$?
 
38224
  grep -v '^ *+' conftest.er1 >conftest.err
 
38225
  rm -f conftest.er1
 
38226
  cat conftest.err >&5
 
38227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38228
  (exit $ac_status); } &&
 
38229
         { ac_try='test -z "$ac_c_werror_flag"
 
38230
                         || test ! -s conftest.err'
 
38231
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38232
  (eval $ac_try) 2>&5
 
38233
  ac_status=$?
 
38234
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38235
  (exit $ac_status); }; } &&
 
38236
         { ac_try='test -s conftest$ac_exeext'
 
38237
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38238
  (eval $ac_try) 2>&5
 
38239
  ac_status=$?
 
38240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38241
  (exit $ac_status); }; }; then
 
38242
  ac_cv_lib_elf_nlist=yes
 
38243
else
 
38244
  echo "$as_me: failed program was:" >&5
 
38245
sed 's/^/| /' conftest.$ac_ext >&5
 
38246
 
 
38247
ac_cv_lib_elf_nlist=no
 
38248
fi
 
38249
rm -f conftest.err conftest.$ac_objext \
 
38250
      conftest$ac_exeext conftest.$ac_ext
 
38251
LIBS=$ac_check_lib_save_LIBS
 
38252
fi
 
38253
echo "$as_me:$LINENO: result: $ac_cv_lib_elf_nlist" >&5
 
38254
echo "${ECHO_T}$ac_cv_lib_elf_nlist" >&6
 
38255
if test $ac_cv_lib_elf_nlist = yes; then
 
38256
  cat >>confdefs.h <<_ACEOF
 
38257
#define HAVE_LIBELF 1
 
38258
_ACEOF
 
38259
 
 
38260
  LIBS="-lelf $LIBS"
 
38261
 
 
38262
fi
 
38263
 
 
38264
echo "$as_me:$LINENO: checking for main in -lkvm" >&5
 
38265
echo $ECHO_N "checking for main in -lkvm... $ECHO_C" >&6
 
38266
if test "${ac_cv_lib_kvm_main+set}" = set; then
 
38267
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
38268
else
 
38269
  ac_check_lib_save_LIBS=$LIBS
 
38270
LIBS="-lkvm  $LIBS"
 
38271
cat >conftest.$ac_ext <<_ACEOF
 
38272
/* confdefs.h.  */
 
38273
_ACEOF
 
38274
cat confdefs.h >>conftest.$ac_ext
 
38275
cat >>conftest.$ac_ext <<_ACEOF
 
38276
/* end confdefs.h.  */
 
38277
 
 
38278
 
 
38279
int
 
38280
main ()
 
38281
{
 
38282
main ();
 
38283
  ;
 
38284
  return 0;
 
38285
}
 
38286
_ACEOF
 
38287
rm -f conftest.$ac_objext conftest$ac_exeext
 
38288
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
38289
  (eval $ac_link) 2>conftest.er1
 
38290
  ac_status=$?
 
38291
  grep -v '^ *+' conftest.er1 >conftest.err
 
38292
  rm -f conftest.er1
 
38293
  cat conftest.err >&5
 
38294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38295
  (exit $ac_status); } &&
 
38296
         { ac_try='test -z "$ac_c_werror_flag"
 
38297
                         || test ! -s conftest.err'
 
38298
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38299
  (eval $ac_try) 2>&5
 
38300
  ac_status=$?
 
38301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38302
  (exit $ac_status); }; } &&
 
38303
         { ac_try='test -s conftest$ac_exeext'
 
38304
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38305
  (eval $ac_try) 2>&5
 
38306
  ac_status=$?
 
38307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38308
  (exit $ac_status); }; }; then
 
38309
  ac_cv_lib_kvm_main=yes
 
38310
else
 
38311
  echo "$as_me: failed program was:" >&5
 
38312
sed 's/^/| /' conftest.$ac_ext >&5
 
38313
 
 
38314
ac_cv_lib_kvm_main=no
 
38315
fi
 
38316
rm -f conftest.err conftest.$ac_objext \
 
38317
      conftest$ac_exeext conftest.$ac_ext
 
38318
LIBS=$ac_check_lib_save_LIBS
 
38319
fi
 
38320
echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_main" >&5
 
38321
echo "${ECHO_T}$ac_cv_lib_kvm_main" >&6
 
38322
if test $ac_cv_lib_kvm_main = yes; then
 
38323
  cat >>confdefs.h <<_ACEOF
 
38324
#define HAVE_LIBKVM 1
 
38325
_ACEOF
 
38326
 
 
38327
  LIBS="-lkvm $LIBS"
 
38328
 
 
38329
fi
 
38330
 
 
38331
echo "$as_me:$LINENO: checking for nlist in -lld" >&5
 
38332
echo $ECHO_N "checking for nlist in -lld... $ECHO_C" >&6
 
38333
if test "${ac_cv_lib_ld_nlist+set}" = set; then
 
38334
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
38335
else
 
38336
  ac_check_lib_save_LIBS=$LIBS
 
38337
LIBS="-lld  $LIBS"
 
38338
cat >conftest.$ac_ext <<_ACEOF
 
38339
/* confdefs.h.  */
 
38340
_ACEOF
 
38341
cat confdefs.h >>conftest.$ac_ext
 
38342
cat >>conftest.$ac_ext <<_ACEOF
 
38343
/* end confdefs.h.  */
 
38344
 
 
38345
/* Override any gcc2 internal prototype to avoid an error.  */
 
38346
#ifdef __cplusplus
 
38347
extern "C"
 
38348
#endif
 
38349
/* We use char because int might match the return type of a gcc2
 
38350
   builtin and then its argument prototype would still apply.  */
 
38351
char nlist ();
 
38352
int
 
38353
main ()
 
38354
{
 
38355
nlist ();
 
38356
  ;
 
38357
  return 0;
 
38358
}
 
38359
_ACEOF
 
38360
rm -f conftest.$ac_objext conftest$ac_exeext
 
38361
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
38362
  (eval $ac_link) 2>conftest.er1
 
38363
  ac_status=$?
 
38364
  grep -v '^ *+' conftest.er1 >conftest.err
 
38365
  rm -f conftest.er1
 
38366
  cat conftest.err >&5
 
38367
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38368
  (exit $ac_status); } &&
 
38369
         { ac_try='test -z "$ac_c_werror_flag"
 
38370
                         || test ! -s conftest.err'
 
38371
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38372
  (eval $ac_try) 2>&5
 
38373
  ac_status=$?
 
38374
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38375
  (exit $ac_status); }; } &&
 
38376
         { ac_try='test -s conftest$ac_exeext'
 
38377
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38378
  (eval $ac_try) 2>&5
 
38379
  ac_status=$?
 
38380
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38381
  (exit $ac_status); }; }; then
 
38382
  ac_cv_lib_ld_nlist=yes
 
38383
else
 
38384
  echo "$as_me: failed program was:" >&5
 
38385
sed 's/^/| /' conftest.$ac_ext >&5
 
38386
 
 
38387
ac_cv_lib_ld_nlist=no
 
38388
fi
 
38389
rm -f conftest.err conftest.$ac_objext \
 
38390
      conftest$ac_exeext conftest.$ac_ext
 
38391
LIBS=$ac_check_lib_save_LIBS
 
38392
fi
 
38393
echo "$as_me:$LINENO: result: $ac_cv_lib_ld_nlist" >&5
 
38394
echo "${ECHO_T}$ac_cv_lib_ld_nlist" >&6
 
38395
if test $ac_cv_lib_ld_nlist = yes; then
 
38396
  cat >>confdefs.h <<_ACEOF
 
38397
#define HAVE_LIBLD 1
 
38398
_ACEOF
 
38399
 
 
38400
  LIBS="-lld $LIBS"
 
38401
 
 
38402
fi
 
38403
 
 
38404
 
 
38405
echo "$as_me:$LINENO: checking for nlist in -lmld" >&5
 
38406
echo $ECHO_N "checking for nlist in -lmld... $ECHO_C" >&6
 
38407
if test "${ac_cv_lib_mld_nlist+set}" = set; then
 
38408
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
38409
else
 
38410
  ac_check_lib_save_LIBS=$LIBS
 
38411
LIBS="-lmld  $LIBS"
 
38412
cat >conftest.$ac_ext <<_ACEOF
 
38413
/* confdefs.h.  */
 
38414
_ACEOF
 
38415
cat confdefs.h >>conftest.$ac_ext
 
38416
cat >>conftest.$ac_ext <<_ACEOF
 
38417
/* end confdefs.h.  */
 
38418
 
 
38419
/* Override any gcc2 internal prototype to avoid an error.  */
 
38420
#ifdef __cplusplus
 
38421
extern "C"
 
38422
#endif
 
38423
/* We use char because int might match the return type of a gcc2
 
38424
   builtin and then its argument prototype would still apply.  */
 
38425
char nlist ();
 
38426
int
 
38427
main ()
 
38428
{
 
38429
nlist ();
 
38430
  ;
 
38431
  return 0;
 
38432
}
 
38433
_ACEOF
 
38434
rm -f conftest.$ac_objext conftest$ac_exeext
 
38435
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
38436
  (eval $ac_link) 2>conftest.er1
 
38437
  ac_status=$?
 
38438
  grep -v '^ *+' conftest.er1 >conftest.err
 
38439
  rm -f conftest.er1
 
38440
  cat conftest.err >&5
 
38441
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38442
  (exit $ac_status); } &&
 
38443
         { ac_try='test -z "$ac_c_werror_flag"
 
38444
                         || test ! -s conftest.err'
 
38445
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38446
  (eval $ac_try) 2>&5
 
38447
  ac_status=$?
 
38448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38449
  (exit $ac_status); }; } &&
 
38450
         { ac_try='test -s conftest$ac_exeext'
 
38451
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38452
  (eval $ac_try) 2>&5
 
38453
  ac_status=$?
 
38454
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38455
  (exit $ac_status); }; }; then
 
38456
  ac_cv_lib_mld_nlist=yes
 
38457
else
 
38458
  echo "$as_me: failed program was:" >&5
 
38459
sed 's/^/| /' conftest.$ac_ext >&5
 
38460
 
 
38461
ac_cv_lib_mld_nlist=no
 
38462
fi
 
38463
rm -f conftest.err conftest.$ac_objext \
 
38464
      conftest$ac_exeext conftest.$ac_ext
 
38465
LIBS=$ac_check_lib_save_LIBS
 
38466
fi
 
38467
echo "$as_me:$LINENO: result: $ac_cv_lib_mld_nlist" >&5
 
38468
echo "${ECHO_T}$ac_cv_lib_mld_nlist" >&6
 
38469
if test $ac_cv_lib_mld_nlist = yes; then
 
38470
  cat >>confdefs.h <<_ACEOF
 
38471
#define HAVE_LIBMLD 1
 
38472
_ACEOF
 
38473
 
 
38474
  LIBS="-lmld $LIBS"
 
38475
 
 
38476
fi
 
38477
 
 
38478
    if test "${ac_cv_header_nlist_h+set}" = set; then
12388
38479
  echo "$as_me:$LINENO: checking for nlist.h" >&5
12389
38480
echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6
12390
38481
if test "${ac_cv_header_nlist_h+set}" = set; then
12414
38505
  cat conftest.err >&5
12415
38506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416
38507
  (exit $ac_status); } &&
12417
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
38508
         { ac_try='test -z "$ac_c_werror_flag"
 
38509
                         || test ! -s conftest.err'
12418
38510
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12419
38511
  (eval $ac_try) 2>&5
12420
38512
  ac_status=$?
12526
38618
#define NLIST_STRUCT 1
12527
38619
_ACEOF
12528
38620
 
12529
 
echo "$as_me:$LINENO: checking for n_un in struct nlist" >&5
 
38621
     echo "$as_me:$LINENO: checking for n_un in struct nlist" >&5
12530
38622
echo $ECHO_N "checking for n_un in struct nlist... $ECHO_C" >&6
12531
38623
if test "${ac_cv_struct_nlist_n_un+set}" = set; then
12532
38624
  echo $ECHO_N "(cached) $ECHO_C" >&6
12555
38647
  cat conftest.err >&5
12556
38648
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557
38649
  (exit $ac_status); } &&
12558
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
38650
         { ac_try='test -z "$ac_c_werror_flag"
 
38651
                         || test ! -s conftest.err'
12559
38652
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12560
38653
  (eval $ac_try) 2>&5
12561
38654
  ac_status=$?
12578
38671
fi
12579
38672
echo "$as_me:$LINENO: result: $ac_cv_struct_nlist_n_un" >&5
12580
38673
echo "${ECHO_T}$ac_cv_struct_nlist_n_un" >&6
12581
 
if test $ac_cv_struct_nlist_n_un = yes; then
 
38674
     if test $ac_cv_struct_nlist_n_un = yes; then
12582
38675
 
12583
38676
cat >>confdefs.h <<\_ACEOF
12584
38677
#define NLIST_NAME_UNION 1
12585
38678
_ACEOF
12586
38679
 
12587
 
fi
12588
 
 
12589
 
fi
12590
 
 
12591
 
 
12592
 
if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
12593
 
  echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5
12594
 
echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6
12595
 
if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
12596
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12597
 
fi
12598
 
echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5
12599
 
echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6
12600
 
else
12601
 
  # Is the header compilable?
12602
 
echo "$as_me:$LINENO: checking libelf/nlist.h usability" >&5
12603
 
echo $ECHO_N "checking libelf/nlist.h usability... $ECHO_C" >&6
12604
 
cat >conftest.$ac_ext <<_ACEOF
12605
 
/* confdefs.h.  */
12606
 
_ACEOF
12607
 
cat confdefs.h >>conftest.$ac_ext
12608
 
cat >>conftest.$ac_ext <<_ACEOF
12609
 
/* end confdefs.h.  */
12610
 
$ac_includes_default
12611
 
#include <libelf/nlist.h>
12612
 
_ACEOF
12613
 
rm -f conftest.$ac_objext
12614
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12615
 
  (eval $ac_compile) 2>conftest.er1
12616
 
  ac_status=$?
12617
 
  grep -v '^ *+' conftest.er1 >conftest.err
12618
 
  rm -f conftest.er1
12619
 
  cat conftest.err >&5
12620
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621
 
  (exit $ac_status); } &&
12622
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12623
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12624
 
  (eval $ac_try) 2>&5
12625
 
  ac_status=$?
12626
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627
 
  (exit $ac_status); }; } &&
12628
 
         { ac_try='test -s conftest.$ac_objext'
12629
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12630
 
  (eval $ac_try) 2>&5
12631
 
  ac_status=$?
12632
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633
 
  (exit $ac_status); }; }; then
12634
 
  ac_header_compiler=yes
12635
 
else
12636
 
  echo "$as_me: failed program was:" >&5
12637
 
sed 's/^/| /' conftest.$ac_ext >&5
12638
 
 
12639
 
ac_header_compiler=no
12640
 
fi
12641
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12642
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12643
 
echo "${ECHO_T}$ac_header_compiler" >&6
12644
 
 
12645
 
# Is the header present?
12646
 
echo "$as_me:$LINENO: checking libelf/nlist.h presence" >&5
12647
 
echo $ECHO_N "checking libelf/nlist.h presence... $ECHO_C" >&6
12648
 
cat >conftest.$ac_ext <<_ACEOF
12649
 
/* confdefs.h.  */
12650
 
_ACEOF
12651
 
cat confdefs.h >>conftest.$ac_ext
12652
 
cat >>conftest.$ac_ext <<_ACEOF
12653
 
/* end confdefs.h.  */
12654
 
#include <libelf/nlist.h>
12655
 
_ACEOF
12656
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12657
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12658
 
  ac_status=$?
12659
 
  grep -v '^ *+' conftest.er1 >conftest.err
12660
 
  rm -f conftest.er1
12661
 
  cat conftest.err >&5
12662
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663
 
  (exit $ac_status); } >/dev/null; then
12664
 
  if test -s conftest.err; then
12665
 
    ac_cpp_err=$ac_c_preproc_warn_flag
12666
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12667
 
  else
12668
 
    ac_cpp_err=
12669
 
  fi
12670
 
else
12671
 
  ac_cpp_err=yes
12672
 
fi
12673
 
if test -z "$ac_cpp_err"; then
12674
 
  ac_header_preproc=yes
12675
 
else
12676
 
  echo "$as_me: failed program was:" >&5
12677
 
sed 's/^/| /' conftest.$ac_ext >&5
12678
 
 
12679
 
  ac_header_preproc=no
12680
 
fi
12681
 
rm -f conftest.err conftest.$ac_ext
12682
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12683
 
echo "${ECHO_T}$ac_header_preproc" >&6
12684
 
 
12685
 
# So?  What about this header?
12686
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12687
 
  yes:no: )
12688
 
    { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
12689
 
echo "$as_me: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12690
 
    { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&5
12691
 
echo "$as_me: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&2;}
12692
 
    ac_header_preproc=yes
12693
 
    ;;
12694
 
  no:yes:* )
12695
 
    { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: present but cannot be compiled" >&5
12696
 
echo "$as_me: WARNING: libelf/nlist.h: present but cannot be compiled" >&2;}
12697
 
    { echo "$as_me:$LINENO: WARNING: libelf/nlist.h:     check for missing prerequisite headers?" >&5
12698
 
echo "$as_me: WARNING: libelf/nlist.h:     check for missing prerequisite headers?" >&2;}
12699
 
    { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: see the Autoconf documentation" >&5
12700
 
echo "$as_me: WARNING: libelf/nlist.h: see the Autoconf documentation" >&2;}
12701
 
    { echo "$as_me:$LINENO: WARNING: libelf/nlist.h:     section \"Present But Cannot Be Compiled\"" >&5
12702
 
echo "$as_me: WARNING: libelf/nlist.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12703
 
    { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&5
12704
 
echo "$as_me: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&2;}
12705
 
    { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&5
12706
 
echo "$as_me: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&2;}
12707
 
    (
12708
 
      cat <<\_ASBOX
12709
 
## ------------------------------ ##
12710
 
## Report this to the ntp lists.  ##
12711
 
## ------------------------------ ##
12712
 
_ASBOX
12713
 
    ) |
12714
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
38680
     fi
 
38681
 
 
38682
fi
 
38683
 
12715
38684
    ;;
12716
38685
esac
12717
 
echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5
12718
 
echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6
12719
 
if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
12720
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12721
 
else
12722
 
  ac_cv_header_libelf_nlist_h=$ac_header_preproc
12723
 
fi
12724
 
echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5
12725
 
echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6
12726
 
 
12727
 
fi
12728
 
if test $ac_cv_header_libelf_nlist_h = yes; then
12729
 
 
12730
 
cat >>confdefs.h <<\_ACEOF
12731
 
#define LIBELF_NLIST_STRUCT 1
12732
 
_ACEOF
12733
 
 
12734
 
echo "$as_me:$LINENO: checking for n_un in struct nlist" >&5
12735
 
echo $ECHO_N "checking for n_un in struct nlist... $ECHO_C" >&6
12736
 
if test "${ac_cv_struct_nlist_n_un+set}" = set; then
12737
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12738
 
else
12739
 
  cat >conftest.$ac_ext <<_ACEOF
12740
 
/* confdefs.h.  */
12741
 
_ACEOF
12742
 
cat confdefs.h >>conftest.$ac_ext
12743
 
cat >>conftest.$ac_ext <<_ACEOF
12744
 
/* end confdefs.h.  */
12745
 
#include <libelf/nlist.h>
12746
 
int
12747
 
main ()
12748
 
{
12749
 
struct nlist n; n.n_un.n_name = 0;
12750
 
  ;
12751
 
  return 0;
12752
 
}
12753
 
_ACEOF
12754
 
rm -f conftest.$ac_objext
12755
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12756
 
  (eval $ac_compile) 2>conftest.er1
12757
 
  ac_status=$?
12758
 
  grep -v '^ *+' conftest.er1 >conftest.err
12759
 
  rm -f conftest.er1
12760
 
  cat conftest.err >&5
12761
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762
 
  (exit $ac_status); } &&
12763
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12764
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765
 
  (eval $ac_try) 2>&5
12766
 
  ac_status=$?
12767
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768
 
  (exit $ac_status); }; } &&
12769
 
         { ac_try='test -s conftest.$ac_objext'
12770
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771
 
  (eval $ac_try) 2>&5
12772
 
  ac_status=$?
12773
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774
 
  (exit $ac_status); }; }; then
12775
 
  ac_cv_struct_nlist_n_un=yes
12776
 
else
12777
 
  echo "$as_me: failed program was:" >&5
12778
 
sed 's/^/| /' conftest.$ac_ext >&5
12779
 
 
12780
 
ac_cv_struct_nlist_n_un=no
12781
 
fi
12782
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12783
 
fi
12784
 
echo "$as_me:$LINENO: result: $ac_cv_struct_nlist_n_un" >&5
12785
 
echo "${ECHO_T}$ac_cv_struct_nlist_n_un" >&6
12786
 
if test $ac_cv_struct_nlist_n_un = yes; then
12787
 
 
12788
 
cat >>confdefs.h <<\_ACEOF
12789
 
#define NLIST_NAME_UNION 1
12790
 
_ACEOF
12791
 
 
12792
 
fi
12793
 
 
12794
 
fi
12795
 
 
 
38686
 
 
38687
 
 
38688
 
 
38689
for ac_header in sys/proc.h
 
38690
do
 
38691
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
38692
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
38693
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
38694
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
38695
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
38696
else
 
38697
  cat >conftest.$ac_ext <<_ACEOF
 
38698
/* confdefs.h.  */
 
38699
_ACEOF
 
38700
cat confdefs.h >>conftest.$ac_ext
 
38701
cat >>conftest.$ac_ext <<_ACEOF
 
38702
/* end confdefs.h.  */
 
38703
#if HAVE_SYS_TYPES_H
 
38704
# include <sys/types.h>
 
38705
#endif
 
38706
#if HAVE_SYS_TIME_H
 
38707
# include <sys/time.h>
 
38708
#endif
 
38709
 
 
38710
 
 
38711
#include <$ac_header>
 
38712
_ACEOF
 
38713
rm -f conftest.$ac_objext
 
38714
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
38715
  (eval $ac_compile) 2>conftest.er1
 
38716
  ac_status=$?
 
38717
  grep -v '^ *+' conftest.er1 >conftest.err
 
38718
  rm -f conftest.er1
 
38719
  cat conftest.err >&5
 
38720
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38721
  (exit $ac_status); } &&
 
38722
         { ac_try='test -z "$ac_c_werror_flag"
 
38723
                         || test ! -s conftest.err'
 
38724
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38725
  (eval $ac_try) 2>&5
 
38726
  ac_status=$?
 
38727
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38728
  (exit $ac_status); }; } &&
 
38729
         { ac_try='test -s conftest.$ac_objext'
 
38730
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38731
  (eval $ac_try) 2>&5
 
38732
  ac_status=$?
 
38733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38734
  (exit $ac_status); }; }; then
 
38735
  eval "$as_ac_Header=yes"
 
38736
else
 
38737
  echo "$as_me: failed program was:" >&5
 
38738
sed 's/^/| /' conftest.$ac_ext >&5
 
38739
 
 
38740
eval "$as_ac_Header=no"
 
38741
fi
 
38742
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
38743
fi
 
38744
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
38745
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
38746
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
38747
  cat >>confdefs.h <<_ACEOF
 
38748
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
38749
_ACEOF
 
38750
 
 
38751
fi
 
38752
 
 
38753
done
 
38754
 
 
38755
 
 
38756
 
 
38757
for ac_header in sys/resource.h
 
38758
do
 
38759
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
38760
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
38761
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
38762
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
38763
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
38764
else
 
38765
  cat >conftest.$ac_ext <<_ACEOF
 
38766
/* confdefs.h.  */
 
38767
_ACEOF
 
38768
cat confdefs.h >>conftest.$ac_ext
 
38769
cat >>conftest.$ac_ext <<_ACEOF
 
38770
/* end confdefs.h.  */
 
38771
#if HAVE_SYS_TIME_H
 
38772
# include <sys/time.h>
 
38773
#endif
 
38774
 
 
38775
 
 
38776
#include <$ac_header>
 
38777
_ACEOF
 
38778
rm -f conftest.$ac_objext
 
38779
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
38780
  (eval $ac_compile) 2>conftest.er1
 
38781
  ac_status=$?
 
38782
  grep -v '^ *+' conftest.er1 >conftest.err
 
38783
  rm -f conftest.er1
 
38784
  cat conftest.err >&5
 
38785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38786
  (exit $ac_status); } &&
 
38787
         { ac_try='test -z "$ac_c_werror_flag"
 
38788
                         || test ! -s conftest.err'
 
38789
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38790
  (eval $ac_try) 2>&5
 
38791
  ac_status=$?
 
38792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38793
  (exit $ac_status); }; } &&
 
38794
         { ac_try='test -s conftest.$ac_objext'
 
38795
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38796
  (eval $ac_try) 2>&5
 
38797
  ac_status=$?
 
38798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38799
  (exit $ac_status); }; }; then
 
38800
  eval "$as_ac_Header=yes"
 
38801
else
 
38802
  echo "$as_me: failed program was:" >&5
 
38803
sed 's/^/| /' conftest.$ac_ext >&5
 
38804
 
 
38805
eval "$as_ac_Header=no"
 
38806
fi
 
38807
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
38808
fi
 
38809
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
38810
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
38811
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
38812
  cat >>confdefs.h <<_ACEOF
 
38813
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
38814
_ACEOF
 
38815
 
 
38816
fi
 
38817
 
 
38818
done
 
38819
 
 
38820
 
 
38821
 
 
38822
for ac_header in sys/shm.h
 
38823
do
 
38824
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
38825
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
38826
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
38827
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
38828
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
38829
else
 
38830
  cat >conftest.$ac_ext <<_ACEOF
 
38831
/* confdefs.h.  */
 
38832
_ACEOF
 
38833
cat confdefs.h >>conftest.$ac_ext
 
38834
cat >>conftest.$ac_ext <<_ACEOF
 
38835
/* end confdefs.h.  */
 
38836
#if HAVE_SYS_TYPES_H
 
38837
# include <sys/types.h>
 
38838
#endif
 
38839
#if HAVE_SYS_IPC_H
 
38840
# include <sys/ipc.h>
 
38841
#endif
 
38842
 
 
38843
 
 
38844
#include <$ac_header>
 
38845
_ACEOF
 
38846
rm -f conftest.$ac_objext
 
38847
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
38848
  (eval $ac_compile) 2>conftest.er1
 
38849
  ac_status=$?
 
38850
  grep -v '^ *+' conftest.er1 >conftest.err
 
38851
  rm -f conftest.er1
 
38852
  cat conftest.err >&5
 
38853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38854
  (exit $ac_status); } &&
 
38855
         { ac_try='test -z "$ac_c_werror_flag"
 
38856
                         || test ! -s conftest.err'
 
38857
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38858
  (eval $ac_try) 2>&5
 
38859
  ac_status=$?
 
38860
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38861
  (exit $ac_status); }; } &&
 
38862
         { ac_try='test -s conftest.$ac_objext'
 
38863
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38864
  (eval $ac_try) 2>&5
 
38865
  ac_status=$?
 
38866
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38867
  (exit $ac_status); }; }; then
 
38868
  eval "$as_ac_Header=yes"
 
38869
else
 
38870
  echo "$as_me: failed program was:" >&5
 
38871
sed 's/^/| /' conftest.$ac_ext >&5
 
38872
 
 
38873
eval "$as_ac_Header=no"
 
38874
fi
 
38875
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
38876
fi
 
38877
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
38878
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
38879
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
38880
  cat >>confdefs.h <<_ACEOF
 
38881
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
38882
_ACEOF
 
38883
 
 
38884
fi
 
38885
 
 
38886
done
 
38887
 
 
38888
 
 
38889
 
 
38890
for ac_header in sys/timex.h
 
38891
do
 
38892
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
38893
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
38894
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
38895
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
38896
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
38897
else
 
38898
  cat >conftest.$ac_ext <<_ACEOF
 
38899
/* confdefs.h.  */
 
38900
_ACEOF
 
38901
cat confdefs.h >>conftest.$ac_ext
 
38902
cat >>conftest.$ac_ext <<_ACEOF
 
38903
/* end confdefs.h.  */
 
38904
#if HAVE_SYS_TIME_H
 
38905
# include <sys/time.h>
 
38906
#endif
 
38907
 
 
38908
 
 
38909
#include <$ac_header>
 
38910
_ACEOF
 
38911
rm -f conftest.$ac_objext
 
38912
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
38913
  (eval $ac_compile) 2>conftest.er1
 
38914
  ac_status=$?
 
38915
  grep -v '^ *+' conftest.er1 >conftest.err
 
38916
  rm -f conftest.er1
 
38917
  cat conftest.err >&5
 
38918
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38919
  (exit $ac_status); } &&
 
38920
         { ac_try='test -z "$ac_c_werror_flag"
 
38921
                         || test ! -s conftest.err'
 
38922
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38923
  (eval $ac_try) 2>&5
 
38924
  ac_status=$?
 
38925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38926
  (exit $ac_status); }; } &&
 
38927
         { ac_try='test -s conftest.$ac_objext'
 
38928
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38929
  (eval $ac_try) 2>&5
 
38930
  ac_status=$?
 
38931
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38932
  (exit $ac_status); }; }; then
 
38933
  eval "$as_ac_Header=yes"
 
38934
else
 
38935
  echo "$as_me: failed program was:" >&5
 
38936
sed 's/^/| /' conftest.$ac_ext >&5
 
38937
 
 
38938
eval "$as_ac_Header=no"
 
38939
fi
 
38940
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
38941
fi
 
38942
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
38943
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
38944
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
38945
  cat >>confdefs.h <<_ACEOF
 
38946
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
38947
_ACEOF
 
38948
 
 
38949
fi
 
38950
 
 
38951
done
12796
38952
 
12797
38953
 
12798
38954
 
12832
38988
  cat conftest.err >&5
12833
38989
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834
38990
  (exit $ac_status); } &&
12835
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
38991
         { ac_try='test -z "$ac_c_werror_flag"
 
38992
                         || test ! -s conftest.err'
12836
38993
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12837
38994
  (eval $ac_try) 2>&5
12838
38995
  ac_status=$?
12895
39052
  cat conftest.err >&5
12896
39053
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897
39054
  (exit $ac_status); } &&
12898
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
39055
         { ac_try='test -z "$ac_c_werror_flag"
 
39056
                         || test ! -s conftest.err'
12899
39057
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12900
39058
  (eval $ac_try) 2>&5
12901
39059
  ac_status=$?
12930
39088
    ;;
12931
39089
esac
12932
39090
 
12933
 
case "$host" in
12934
 
 sparc-*-solaris2*)
 
39091
# AM_C_PROTOTYPES gives us ansi2knr
 
39092
case "$build" in
 
39093
 *-*-solaris2*)
12935
39094
    # Assume that solaris2 is Ansi C...
12936
39095
    ;;
12937
39096
 *)
12938
 
 
12939
 
 
12940
 
 
12941
 
echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
12942
 
echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
12943
 
if test "${am_cv_prog_cc_stdc+set}" = set; then
12944
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12945
 
else
12946
 
  am_cv_prog_cc_stdc=no
12947
 
ac_save_CC="$CC"
12948
 
# Don't try gcc -ansi; that turns off useful extensions and
12949
 
# breaks some systems' header files.
12950
 
# AIX                   -qlanglvl=ansi
12951
 
# Ultrix and OSF/1      -std1
12952
 
# HP-UX 10.20 and later -Ae
12953
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
12954
 
# SVR4                  -Xc -D__EXTENSIONS__
12955
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12956
 
do
12957
 
  CC="$ac_save_CC $ac_arg"
12958
 
  cat >conftest.$ac_ext <<_ACEOF
12959
 
/* confdefs.h.  */
12960
 
_ACEOF
12961
 
cat confdefs.h >>conftest.$ac_ext
12962
 
cat >>conftest.$ac_ext <<_ACEOF
12963
 
/* end confdefs.h.  */
12964
 
#include <stdarg.h>
12965
 
#include <stdio.h>
12966
 
#include <sys/types.h>
12967
 
#include <sys/stat.h>
12968
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12969
 
struct buf { int x; };
12970
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
12971
 
static char *e (p, i)
12972
 
     char **p;
12973
 
     int i;
12974
 
{
12975
 
  return p[i];
12976
 
}
12977
 
static char *f (char * (*g) (char **, int), char **p, ...)
12978
 
{
12979
 
  char *s;
12980
 
  va_list v;
12981
 
  va_start (v,p);
12982
 
  s = g (p, va_arg (v,int));
12983
 
  va_end (v);
12984
 
  return s;
12985
 
}
12986
 
int test (int i, double x);
12987
 
struct s1 {int (*f) (int a);};
12988
 
struct s2 {int (*f) (double a);};
12989
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12990
 
int argc;
12991
 
char **argv;
12992
 
 
12993
 
int
12994
 
main ()
12995
 
{
12996
 
 
12997
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12998
 
 
12999
 
  ;
13000
 
  return 0;
13001
 
}
13002
 
_ACEOF
13003
 
rm -f conftest.$ac_objext
13004
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13005
 
  (eval $ac_compile) 2>conftest.er1
13006
 
  ac_status=$?
13007
 
  grep -v '^ *+' conftest.er1 >conftest.err
13008
 
  rm -f conftest.er1
13009
 
  cat conftest.err >&5
13010
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011
 
  (exit $ac_status); } &&
13012
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13013
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13014
 
  (eval $ac_try) 2>&5
13015
 
  ac_status=$?
13016
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017
 
  (exit $ac_status); }; } &&
13018
 
         { ac_try='test -s conftest.$ac_objext'
13019
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13020
 
  (eval $ac_try) 2>&5
13021
 
  ac_status=$?
13022
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023
 
  (exit $ac_status); }; }; then
13024
 
  am_cv_prog_cc_stdc="$ac_arg"; break
13025
 
else
13026
 
  echo "$as_me: failed program was:" >&5
13027
 
sed 's/^/| /' conftest.$ac_ext >&5
13028
 
 
13029
 
fi
13030
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13031
 
done
13032
 
CC="$ac_save_CC"
13033
 
 
13034
 
fi
13035
 
 
13036
 
if test -z "$am_cv_prog_cc_stdc"; then
13037
 
  echo "$as_me:$LINENO: result: none needed" >&5
13038
 
echo "${ECHO_T}none needed" >&6
13039
 
else
13040
 
  echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
13041
 
echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
13042
 
fi
13043
 
case "x$am_cv_prog_cc_stdc" in
13044
 
  x|xno) ;;
13045
 
  *) CC="$CC $am_cv_prog_cc_stdc" ;;
13046
 
esac
13047
 
 
13048
 
 
13049
 
 
13050
 
echo "$as_me:$LINENO: checking for function prototypes" >&5
 
39097
    echo "$as_me:$LINENO: checking for function prototypes" >&5
13051
39098
echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
13052
 
if test "$am_cv_prog_cc_stdc" != no; then
 
39099
if test "$ac_cv_prog_cc_stdc" != no; then
13053
39100
  echo "$as_me:$LINENO: result: yes" >&5
13054
39101
echo "${ECHO_T}yes" >&6
13055
39102
 
13057
39104
#define PROTOTYPES 1
13058
39105
_ACEOF
13059
39106
 
 
39107
 
 
39108
cat >>confdefs.h <<\_ACEOF
 
39109
#define __PROTOTYPES 1
 
39110
_ACEOF
 
39111
 
 
39112
else
 
39113
  echo "$as_me:$LINENO: result: no" >&5
 
39114
echo "${ECHO_T}no" >&6
 
39115
fi
 
39116
 
 
39117
 
 
39118
if test "$ac_cv_prog_cc_stdc" != no; then
13060
39119
  U= ANSI2KNR=
13061
39120
else
13062
 
  echo "$as_me:$LINENO: result: no" >&5
13063
 
echo "${ECHO_T}no" >&6
13064
39121
  U=_ ANSI2KNR=./ansi2knr
13065
39122
fi
13066
39123
# Ensure some checks needed by ansi2knr itself.
13067
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13068
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13069
 
if test "${ac_cv_header_stdc+set}" = set; then
13070
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13071
 
else
13072
 
  cat >conftest.$ac_ext <<_ACEOF
13073
 
/* confdefs.h.  */
13074
 
_ACEOF
13075
 
cat confdefs.h >>conftest.$ac_ext
13076
 
cat >>conftest.$ac_ext <<_ACEOF
13077
 
/* end confdefs.h.  */
13078
 
#include <stdlib.h>
13079
 
#include <stdarg.h>
13080
 
#include <string.h>
13081
 
#include <float.h>
13082
 
 
13083
 
int
13084
 
main ()
13085
 
{
13086
 
 
13087
 
  ;
13088
 
  return 0;
13089
 
}
13090
 
_ACEOF
13091
 
rm -f conftest.$ac_objext
13092
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13093
 
  (eval $ac_compile) 2>conftest.er1
13094
 
  ac_status=$?
13095
 
  grep -v '^ *+' conftest.er1 >conftest.err
13096
 
  rm -f conftest.er1
13097
 
  cat conftest.err >&5
13098
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099
 
  (exit $ac_status); } &&
13100
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13101
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13102
 
  (eval $ac_try) 2>&5
13103
 
  ac_status=$?
13104
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105
 
  (exit $ac_status); }; } &&
13106
 
         { ac_try='test -s conftest.$ac_objext'
13107
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13108
 
  (eval $ac_try) 2>&5
13109
 
  ac_status=$?
13110
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111
 
  (exit $ac_status); }; }; then
13112
 
  ac_cv_header_stdc=yes
13113
 
else
13114
 
  echo "$as_me: failed program was:" >&5
13115
 
sed 's/^/| /' conftest.$ac_ext >&5
13116
 
 
13117
 
ac_cv_header_stdc=no
13118
 
fi
13119
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13120
 
 
13121
 
if test $ac_cv_header_stdc = yes; then
13122
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13123
 
  cat >conftest.$ac_ext <<_ACEOF
13124
 
/* confdefs.h.  */
13125
 
_ACEOF
13126
 
cat confdefs.h >>conftest.$ac_ext
13127
 
cat >>conftest.$ac_ext <<_ACEOF
13128
 
/* end confdefs.h.  */
13129
 
#include <string.h>
13130
 
 
13131
 
_ACEOF
13132
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13133
 
  $EGREP "memchr" >/dev/null 2>&1; then
13134
 
  :
13135
 
else
13136
 
  ac_cv_header_stdc=no
13137
 
fi
13138
 
rm -f conftest*
13139
 
 
13140
 
fi
13141
 
 
13142
 
if test $ac_cv_header_stdc = yes; then
13143
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13144
 
  cat >conftest.$ac_ext <<_ACEOF
13145
 
/* confdefs.h.  */
13146
 
_ACEOF
13147
 
cat confdefs.h >>conftest.$ac_ext
13148
 
cat >>conftest.$ac_ext <<_ACEOF
13149
 
/* end confdefs.h.  */
13150
 
#include <stdlib.h>
13151
 
 
13152
 
_ACEOF
13153
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13154
 
  $EGREP "free" >/dev/null 2>&1; then
13155
 
  :
13156
 
else
13157
 
  ac_cv_header_stdc=no
13158
 
fi
13159
 
rm -f conftest*
13160
 
 
13161
 
fi
13162
 
 
13163
 
if test $ac_cv_header_stdc = yes; then
13164
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13165
 
  if test "$cross_compiling" = yes; then
13166
 
  :
13167
 
else
13168
 
  cat >conftest.$ac_ext <<_ACEOF
13169
 
/* confdefs.h.  */
13170
 
_ACEOF
13171
 
cat confdefs.h >>conftest.$ac_ext
13172
 
cat >>conftest.$ac_ext <<_ACEOF
13173
 
/* end confdefs.h.  */
13174
 
#include <ctype.h>
13175
 
#if ((' ' & 0x0FF) == 0x020)
13176
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13177
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13178
 
#else
13179
 
# define ISLOWER(c) \
13180
 
                   (('a' <= (c) && (c) <= 'i') \
13181
 
                     || ('j' <= (c) && (c) <= 'r') \
13182
 
                     || ('s' <= (c) && (c) <= 'z'))
13183
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13184
 
#endif
13185
 
 
13186
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13187
 
int
13188
 
main ()
13189
 
{
13190
 
  int i;
13191
 
  for (i = 0; i < 256; i++)
13192
 
    if (XOR (islower (i), ISLOWER (i))
13193
 
        || toupper (i) != TOUPPER (i))
13194
 
      exit(2);
13195
 
  exit (0);
13196
 
}
13197
 
_ACEOF
13198
 
rm -f conftest$ac_exeext
13199
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13200
 
  (eval $ac_link) 2>&5
13201
 
  ac_status=$?
13202
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13204
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13205
 
  (eval $ac_try) 2>&5
13206
 
  ac_status=$?
13207
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208
 
  (exit $ac_status); }; }; then
13209
 
  :
13210
 
else
13211
 
  echo "$as_me: program exited with status $ac_status" >&5
13212
 
echo "$as_me: failed program was:" >&5
13213
 
sed 's/^/| /' conftest.$ac_ext >&5
13214
 
 
13215
 
( exit $ac_status )
13216
 
ac_cv_header_stdc=no
13217
 
fi
13218
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13219
 
fi
13220
 
fi
13221
 
fi
13222
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13223
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
13224
 
if test $ac_cv_header_stdc = yes; then
13225
 
 
13226
 
cat >>confdefs.h <<\_ACEOF
13227
 
#define STDC_HEADERS 1
13228
 
_ACEOF
13229
 
 
13230
 
fi
13231
39124
 
13232
39125
 
13233
39126
for ac_header in string.h
13263
39156
  cat conftest.err >&5
13264
39157
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265
39158
  (exit $ac_status); } &&
13266
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
39159
         { ac_try='test -z "$ac_c_werror_flag"
 
39160
                         || test ! -s conftest.err'
13267
39161
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13268
39162
  (eval $ac_try) 2>&5
13269
39163
  ac_status=$?
13413
39307
  cat conftest.err >&5
13414
39308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415
39309
  (exit $ac_status); } &&
13416
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
39310
         { ac_try='test -z "$ac_c_werror_flag"
 
39311
                         || test ! -s conftest.err'
13417
39312
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13418
39313
  (eval $ac_try) 2>&5
13419
39314
  ac_status=$?
13520
39415
  cat conftest.err >&5
13521
39416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522
39417
  (exit $ac_status); } &&
13523
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
39418
         { ac_try='test -z "$ac_c_werror_flag"
 
39419
                         || test ! -s conftest.err'
13524
39420
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525
39421
  (eval $ac_try) 2>&5
13526
39422
  ac_status=$?
13586
39482
  cat conftest.err >&5
13587
39483
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588
39484
  (exit $ac_status); } &&
13589
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
39485
         { ac_try='test -z "$ac_c_werror_flag"
 
39486
                         || test ! -s conftest.err'
13590
39487
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13591
39488
  (eval $ac_try) 2>&5
13592
39489
  ac_status=$?
13628
39525
  cat conftest.err >&5
13629
39526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630
39527
  (exit $ac_status); } &&
13631
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
39528
         { ac_try='test -z "$ac_c_werror_flag"
 
39529
                         || test ! -s conftest.err'
13632
39530
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13633
39531
  (eval $ac_try) 2>&5
13634
39532
  ac_status=$?
13685
39583
  cat conftest.err >&5
13686
39584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687
39585
  (exit $ac_status); } &&
13688
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
39586
         { ac_try='test -z "$ac_c_werror_flag"
 
39587
                         || test ! -s conftest.err'
13689
39588
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13690
39589
  (eval $ac_try) 2>&5
13691
39590
  ac_status=$?
13817
39716
  cat conftest.err >&5
13818
39717
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819
39718
  (exit $ac_status); } &&
13820
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
39719
         { ac_try='test -z "$ac_c_werror_flag"
 
39720
                         || test ! -s conftest.err'
13821
39721
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13822
39722
  (eval $ac_try) 2>&5
13823
39723
  ac_status=$?
13878
39778
  cat conftest.err >&5
13879
39779
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880
39780
  (exit $ac_status); } &&
13881
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
39781
         { ac_try='test -z "$ac_c_werror_flag"
 
39782
                         || test ! -s conftest.err'
13882
39783
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883
39784
  (eval $ac_try) 2>&5
13884
39785
  ac_status=$?
13943
39844
  cat conftest.err >&5
13944
39845
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945
39846
  (exit $ac_status); } &&
13946
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
39847
         { ac_try='test -z "$ac_c_werror_flag"
 
39848
                         || test ! -s conftest.err'
13947
39849
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13948
39850
  (eval $ac_try) 2>&5
13949
39851
  ac_status=$?
14008
39910
  cat conftest.err >&5
14009
39911
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010
39912
  (exit $ac_status); } &&
14011
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
39913
         { ac_try='test -z "$ac_c_werror_flag"
 
39914
                         || test ! -s conftest.err'
14012
39915
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14013
39916
  (eval $ac_try) 2>&5
14014
39917
  ac_status=$?
14041
39944
 
14042
39945
fi
14043
39946
 
 
39947
echo "$as_me:$LINENO: checking for time_t" >&5
 
39948
echo $ECHO_N "checking for time_t... $ECHO_C" >&6
 
39949
if test "${ac_cv_type_time_t+set}" = set; then
 
39950
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
39951
else
 
39952
  cat >conftest.$ac_ext <<_ACEOF
 
39953
/* confdefs.h.  */
 
39954
_ACEOF
 
39955
cat confdefs.h >>conftest.$ac_ext
 
39956
cat >>conftest.$ac_ext <<_ACEOF
 
39957
/* end confdefs.h.  */
 
39958
$ac_includes_default
 
39959
int
 
39960
main ()
 
39961
{
 
39962
if ((time_t *) 0)
 
39963
  return 0;
 
39964
if (sizeof (time_t))
 
39965
  return 0;
 
39966
  ;
 
39967
  return 0;
 
39968
}
 
39969
_ACEOF
 
39970
rm -f conftest.$ac_objext
 
39971
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
39972
  (eval $ac_compile) 2>conftest.er1
 
39973
  ac_status=$?
 
39974
  grep -v '^ *+' conftest.er1 >conftest.err
 
39975
  rm -f conftest.er1
 
39976
  cat conftest.err >&5
 
39977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39978
  (exit $ac_status); } &&
 
39979
         { ac_try='test -z "$ac_c_werror_flag"
 
39980
                         || test ! -s conftest.err'
 
39981
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
39982
  (eval $ac_try) 2>&5
 
39983
  ac_status=$?
 
39984
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39985
  (exit $ac_status); }; } &&
 
39986
         { ac_try='test -s conftest.$ac_objext'
 
39987
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
39988
  (eval $ac_try) 2>&5
 
39989
  ac_status=$?
 
39990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39991
  (exit $ac_status); }; }; then
 
39992
  ac_cv_type_time_t=yes
 
39993
else
 
39994
  echo "$as_me: failed program was:" >&5
 
39995
sed 's/^/| /' conftest.$ac_ext >&5
 
39996
 
 
39997
ac_cv_type_time_t=no
 
39998
fi
 
39999
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
40000
fi
 
40001
echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
 
40002
echo "${ECHO_T}$ac_cv_type_time_t" >&6
 
40003
 
 
40004
echo "$as_me:$LINENO: checking size of time_t" >&5
 
40005
echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
 
40006
if test "${ac_cv_sizeof_time_t+set}" = set; then
 
40007
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
40008
else
 
40009
  if test "$ac_cv_type_time_t" = yes; then
 
40010
  # The cast to unsigned long works around a bug in the HP C Compiler
 
40011
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
40012
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
40013
  # This bug is HP SR number 8606223364.
 
40014
  if test "$cross_compiling" = yes; then
 
40015
  # Depending upon the size, compute the lo and hi bounds.
 
40016
cat >conftest.$ac_ext <<_ACEOF
 
40017
/* confdefs.h.  */
 
40018
_ACEOF
 
40019
cat confdefs.h >>conftest.$ac_ext
 
40020
cat >>conftest.$ac_ext <<_ACEOF
 
40021
/* end confdefs.h.  */
 
40022
$ac_includes_default
 
40023
int
 
40024
main ()
 
40025
{
 
40026
static int test_array [1 - 2 * !(((long) (sizeof (time_t))) >= 0)];
 
40027
test_array [0] = 0
 
40028
 
 
40029
  ;
 
40030
  return 0;
 
40031
}
 
40032
_ACEOF
 
40033
rm -f conftest.$ac_objext
 
40034
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
40035
  (eval $ac_compile) 2>conftest.er1
 
40036
  ac_status=$?
 
40037
  grep -v '^ *+' conftest.er1 >conftest.err
 
40038
  rm -f conftest.er1
 
40039
  cat conftest.err >&5
 
40040
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40041
  (exit $ac_status); } &&
 
40042
         { ac_try='test -z "$ac_c_werror_flag"
 
40043
                         || test ! -s conftest.err'
 
40044
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40045
  (eval $ac_try) 2>&5
 
40046
  ac_status=$?
 
40047
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40048
  (exit $ac_status); }; } &&
 
40049
         { ac_try='test -s conftest.$ac_objext'
 
40050
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40051
  (eval $ac_try) 2>&5
 
40052
  ac_status=$?
 
40053
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40054
  (exit $ac_status); }; }; then
 
40055
  ac_lo=0 ac_mid=0
 
40056
  while :; do
 
40057
    cat >conftest.$ac_ext <<_ACEOF
 
40058
/* confdefs.h.  */
 
40059
_ACEOF
 
40060
cat confdefs.h >>conftest.$ac_ext
 
40061
cat >>conftest.$ac_ext <<_ACEOF
 
40062
/* end confdefs.h.  */
 
40063
$ac_includes_default
 
40064
int
 
40065
main ()
 
40066
{
 
40067
static int test_array [1 - 2 * !(((long) (sizeof (time_t))) <= $ac_mid)];
 
40068
test_array [0] = 0
 
40069
 
 
40070
  ;
 
40071
  return 0;
 
40072
}
 
40073
_ACEOF
 
40074
rm -f conftest.$ac_objext
 
40075
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
40076
  (eval $ac_compile) 2>conftest.er1
 
40077
  ac_status=$?
 
40078
  grep -v '^ *+' conftest.er1 >conftest.err
 
40079
  rm -f conftest.er1
 
40080
  cat conftest.err >&5
 
40081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40082
  (exit $ac_status); } &&
 
40083
         { ac_try='test -z "$ac_c_werror_flag"
 
40084
                         || test ! -s conftest.err'
 
40085
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40086
  (eval $ac_try) 2>&5
 
40087
  ac_status=$?
 
40088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40089
  (exit $ac_status); }; } &&
 
40090
         { ac_try='test -s conftest.$ac_objext'
 
40091
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40092
  (eval $ac_try) 2>&5
 
40093
  ac_status=$?
 
40094
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40095
  (exit $ac_status); }; }; then
 
40096
  ac_hi=$ac_mid; break
 
40097
else
 
40098
  echo "$as_me: failed program was:" >&5
 
40099
sed 's/^/| /' conftest.$ac_ext >&5
 
40100
 
 
40101
ac_lo=`expr $ac_mid + 1`
 
40102
                    if test $ac_lo -le $ac_mid; then
 
40103
                      ac_lo= ac_hi=
 
40104
                      break
 
40105
                    fi
 
40106
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
40107
fi
 
40108
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
40109
  done
 
40110
else
 
40111
  echo "$as_me: failed program was:" >&5
 
40112
sed 's/^/| /' conftest.$ac_ext >&5
 
40113
 
 
40114
cat >conftest.$ac_ext <<_ACEOF
 
40115
/* confdefs.h.  */
 
40116
_ACEOF
 
40117
cat confdefs.h >>conftest.$ac_ext
 
40118
cat >>conftest.$ac_ext <<_ACEOF
 
40119
/* end confdefs.h.  */
 
40120
$ac_includes_default
 
40121
int
 
40122
main ()
 
40123
{
 
40124
static int test_array [1 - 2 * !(((long) (sizeof (time_t))) < 0)];
 
40125
test_array [0] = 0
 
40126
 
 
40127
  ;
 
40128
  return 0;
 
40129
}
 
40130
_ACEOF
 
40131
rm -f conftest.$ac_objext
 
40132
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
40133
  (eval $ac_compile) 2>conftest.er1
 
40134
  ac_status=$?
 
40135
  grep -v '^ *+' conftest.er1 >conftest.err
 
40136
  rm -f conftest.er1
 
40137
  cat conftest.err >&5
 
40138
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40139
  (exit $ac_status); } &&
 
40140
         { ac_try='test -z "$ac_c_werror_flag"
 
40141
                         || test ! -s conftest.err'
 
40142
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40143
  (eval $ac_try) 2>&5
 
40144
  ac_status=$?
 
40145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40146
  (exit $ac_status); }; } &&
 
40147
         { ac_try='test -s conftest.$ac_objext'
 
40148
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40149
  (eval $ac_try) 2>&5
 
40150
  ac_status=$?
 
40151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40152
  (exit $ac_status); }; }; then
 
40153
  ac_hi=-1 ac_mid=-1
 
40154
  while :; do
 
40155
    cat >conftest.$ac_ext <<_ACEOF
 
40156
/* confdefs.h.  */
 
40157
_ACEOF
 
40158
cat confdefs.h >>conftest.$ac_ext
 
40159
cat >>conftest.$ac_ext <<_ACEOF
 
40160
/* end confdefs.h.  */
 
40161
$ac_includes_default
 
40162
int
 
40163
main ()
 
40164
{
 
40165
static int test_array [1 - 2 * !(((long) (sizeof (time_t))) >= $ac_mid)];
 
40166
test_array [0] = 0
 
40167
 
 
40168
  ;
 
40169
  return 0;
 
40170
}
 
40171
_ACEOF
 
40172
rm -f conftest.$ac_objext
 
40173
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
40174
  (eval $ac_compile) 2>conftest.er1
 
40175
  ac_status=$?
 
40176
  grep -v '^ *+' conftest.er1 >conftest.err
 
40177
  rm -f conftest.er1
 
40178
  cat conftest.err >&5
 
40179
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40180
  (exit $ac_status); } &&
 
40181
         { ac_try='test -z "$ac_c_werror_flag"
 
40182
                         || test ! -s conftest.err'
 
40183
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40184
  (eval $ac_try) 2>&5
 
40185
  ac_status=$?
 
40186
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40187
  (exit $ac_status); }; } &&
 
40188
         { ac_try='test -s conftest.$ac_objext'
 
40189
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40190
  (eval $ac_try) 2>&5
 
40191
  ac_status=$?
 
40192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40193
  (exit $ac_status); }; }; then
 
40194
  ac_lo=$ac_mid; break
 
40195
else
 
40196
  echo "$as_me: failed program was:" >&5
 
40197
sed 's/^/| /' conftest.$ac_ext >&5
 
40198
 
 
40199
ac_hi=`expr '(' $ac_mid ')' - 1`
 
40200
                       if test $ac_mid -le $ac_hi; then
 
40201
                         ac_lo= ac_hi=
 
40202
                         break
 
40203
                       fi
 
40204
                       ac_mid=`expr 2 '*' $ac_mid`
 
40205
fi
 
40206
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
40207
  done
 
40208
else
 
40209
  echo "$as_me: failed program was:" >&5
 
40210
sed 's/^/| /' conftest.$ac_ext >&5
 
40211
 
 
40212
ac_lo= ac_hi=
 
40213
fi
 
40214
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
40215
fi
 
40216
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
40217
# Binary search between lo and hi bounds.
 
40218
while test "x$ac_lo" != "x$ac_hi"; do
 
40219
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
40220
  cat >conftest.$ac_ext <<_ACEOF
 
40221
/* confdefs.h.  */
 
40222
_ACEOF
 
40223
cat confdefs.h >>conftest.$ac_ext
 
40224
cat >>conftest.$ac_ext <<_ACEOF
 
40225
/* end confdefs.h.  */
 
40226
$ac_includes_default
 
40227
int
 
40228
main ()
 
40229
{
 
40230
static int test_array [1 - 2 * !(((long) (sizeof (time_t))) <= $ac_mid)];
 
40231
test_array [0] = 0
 
40232
 
 
40233
  ;
 
40234
  return 0;
 
40235
}
 
40236
_ACEOF
 
40237
rm -f conftest.$ac_objext
 
40238
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
40239
  (eval $ac_compile) 2>conftest.er1
 
40240
  ac_status=$?
 
40241
  grep -v '^ *+' conftest.er1 >conftest.err
 
40242
  rm -f conftest.er1
 
40243
  cat conftest.err >&5
 
40244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40245
  (exit $ac_status); } &&
 
40246
         { ac_try='test -z "$ac_c_werror_flag"
 
40247
                         || test ! -s conftest.err'
 
40248
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40249
  (eval $ac_try) 2>&5
 
40250
  ac_status=$?
 
40251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40252
  (exit $ac_status); }; } &&
 
40253
         { ac_try='test -s conftest.$ac_objext'
 
40254
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40255
  (eval $ac_try) 2>&5
 
40256
  ac_status=$?
 
40257
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40258
  (exit $ac_status); }; }; then
 
40259
  ac_hi=$ac_mid
 
40260
else
 
40261
  echo "$as_me: failed program was:" >&5
 
40262
sed 's/^/| /' conftest.$ac_ext >&5
 
40263
 
 
40264
ac_lo=`expr '(' $ac_mid ')' + 1`
 
40265
fi
 
40266
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
40267
done
 
40268
case $ac_lo in
 
40269
?*) ac_cv_sizeof_time_t=$ac_lo;;
 
40270
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t), 77
 
40271
See \`config.log' for more details." >&5
 
40272
echo "$as_me: error: cannot compute sizeof (time_t), 77
 
40273
See \`config.log' for more details." >&2;}
 
40274
   { (exit 1); exit 1; }; } ;;
 
40275
esac
 
40276
else
 
40277
  if test "$cross_compiling" = yes; then
 
40278
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
40279
See \`config.log' for more details." >&5
 
40280
echo "$as_me: error: cannot run test program while cross compiling
 
40281
See \`config.log' for more details." >&2;}
 
40282
   { (exit 1); exit 1; }; }
 
40283
else
 
40284
  cat >conftest.$ac_ext <<_ACEOF
 
40285
/* confdefs.h.  */
 
40286
_ACEOF
 
40287
cat confdefs.h >>conftest.$ac_ext
 
40288
cat >>conftest.$ac_ext <<_ACEOF
 
40289
/* end confdefs.h.  */
 
40290
$ac_includes_default
 
40291
long longval () { return (long) (sizeof (time_t)); }
 
40292
unsigned long ulongval () { return (long) (sizeof (time_t)); }
 
40293
#include <stdio.h>
 
40294
#include <stdlib.h>
 
40295
int
 
40296
main ()
 
40297
{
 
40298
 
 
40299
  FILE *f = fopen ("conftest.val", "w");
 
40300
  if (! f)
 
40301
    exit (1);
 
40302
  if (((long) (sizeof (time_t))) < 0)
 
40303
    {
 
40304
      long i = longval ();
 
40305
      if (i != ((long) (sizeof (time_t))))
 
40306
        exit (1);
 
40307
      fprintf (f, "%ld\n", i);
 
40308
    }
 
40309
  else
 
40310
    {
 
40311
      unsigned long i = ulongval ();
 
40312
      if (i != ((long) (sizeof (time_t))))
 
40313
        exit (1);
 
40314
      fprintf (f, "%lu\n", i);
 
40315
    }
 
40316
  exit (ferror (f) || fclose (f) != 0);
 
40317
 
 
40318
  ;
 
40319
  return 0;
 
40320
}
 
40321
_ACEOF
 
40322
rm -f conftest$ac_exeext
 
40323
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
40324
  (eval $ac_link) 2>&5
 
40325
  ac_status=$?
 
40326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40327
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
40328
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40329
  (eval $ac_try) 2>&5
 
40330
  ac_status=$?
 
40331
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40332
  (exit $ac_status); }; }; then
 
40333
  ac_cv_sizeof_time_t=`cat conftest.val`
 
40334
else
 
40335
  echo "$as_me: program exited with status $ac_status" >&5
 
40336
echo "$as_me: failed program was:" >&5
 
40337
sed 's/^/| /' conftest.$ac_ext >&5
 
40338
 
 
40339
( exit $ac_status )
 
40340
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t), 77
 
40341
See \`config.log' for more details." >&5
 
40342
echo "$as_me: error: cannot compute sizeof (time_t), 77
 
40343
See \`config.log' for more details." >&2;}
 
40344
   { (exit 1); exit 1; }; }
 
40345
fi
 
40346
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
40347
fi
 
40348
fi
 
40349
rm -f conftest.val
 
40350
else
 
40351
  ac_cv_sizeof_time_t=0
 
40352
fi
 
40353
fi
 
40354
echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
 
40355
echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
 
40356
cat >>confdefs.h <<_ACEOF
 
40357
#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
 
40358
_ACEOF
 
40359
 
 
40360
 
 
40361
echo "$as_me:$LINENO: checking for uintptr_t" >&5
 
40362
echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
 
40363
if test "${ac_cv_type_uintptr_t+set}" = set; then
 
40364
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
40365
else
 
40366
  cat >conftest.$ac_ext <<_ACEOF
 
40367
/* confdefs.h.  */
 
40368
_ACEOF
 
40369
cat confdefs.h >>conftest.$ac_ext
 
40370
cat >>conftest.$ac_ext <<_ACEOF
 
40371
/* end confdefs.h.  */
 
40372
$ac_includes_default
 
40373
int
 
40374
main ()
 
40375
{
 
40376
if ((uintptr_t *) 0)
 
40377
  return 0;
 
40378
if (sizeof (uintptr_t))
 
40379
  return 0;
 
40380
  ;
 
40381
  return 0;
 
40382
}
 
40383
_ACEOF
 
40384
rm -f conftest.$ac_objext
 
40385
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
40386
  (eval $ac_compile) 2>conftest.er1
 
40387
  ac_status=$?
 
40388
  grep -v '^ *+' conftest.er1 >conftest.err
 
40389
  rm -f conftest.er1
 
40390
  cat conftest.err >&5
 
40391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40392
  (exit $ac_status); } &&
 
40393
         { ac_try='test -z "$ac_c_werror_flag"
 
40394
                         || test ! -s conftest.err'
 
40395
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40396
  (eval $ac_try) 2>&5
 
40397
  ac_status=$?
 
40398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40399
  (exit $ac_status); }; } &&
 
40400
         { ac_try='test -s conftest.$ac_objext'
 
40401
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40402
  (eval $ac_try) 2>&5
 
40403
  ac_status=$?
 
40404
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40405
  (exit $ac_status); }; }; then
 
40406
  ac_cv_type_uintptr_t=yes
 
40407
else
 
40408
  echo "$as_me: failed program was:" >&5
 
40409
sed 's/^/| /' conftest.$ac_ext >&5
 
40410
 
 
40411
ac_cv_type_uintptr_t=no
 
40412
fi
 
40413
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
40414
fi
 
40415
echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
 
40416
echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
 
40417
if test $ac_cv_type_uintptr_t = yes; then
 
40418
 
 
40419
cat >>confdefs.h <<_ACEOF
 
40420
#define HAVE_UINTPTR_T 1
 
40421
_ACEOF
 
40422
 
 
40423
 
 
40424
fi
 
40425
 
 
40426
 
 
40427
 
 
40428
 
 
40429
 
14044
40430
echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14045
40431
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14046
40432
if test "${ac_cv_struct_tm+set}" = set; then
14072
40458
  cat conftest.err >&5
14073
40459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074
40460
  (exit $ac_status); } &&
14075
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
40461
         { ac_try='test -z "$ac_c_werror_flag"
 
40462
                         || test ! -s conftest.err'
14076
40463
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14077
40464
  (eval $ac_try) 2>&5
14078
40465
  ac_status=$?
14133
40520
  cat conftest.err >&5
14134
40521
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135
40522
  (exit $ac_status); } &&
14136
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
40523
         { ac_try='test -z "$ac_c_werror_flag"
 
40524
                         || test ! -s conftest.err'
14137
40525
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14138
40526
  (eval $ac_try) 2>&5
14139
40527
  ac_status=$?
14194
40582
  cat conftest.err >&5
14195
40583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196
40584
  (exit $ac_status); } &&
14197
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
40585
         { ac_try='test -z "$ac_c_werror_flag"
 
40586
                         || test ! -s conftest.err'
14198
40587
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199
40588
  (eval $ac_try) 2>&5
14200
40589
  ac_status=$?
14226
40615
 
14227
40616
fi
14228
40617
 
 
40618
#
 
40619
# Look for in_port_t.
 
40620
#
 
40621
echo "$as_me:$LINENO: checking for in_port_t" >&5
 
40622
echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6
 
40623
cat >conftest.$ac_ext <<_ACEOF
 
40624
/* confdefs.h.  */
 
40625
_ACEOF
 
40626
cat confdefs.h >>conftest.$ac_ext
 
40627
cat >>conftest.$ac_ext <<_ACEOF
 
40628
/* end confdefs.h.  */
 
40629
 
 
40630
#include <sys/types.h>
 
40631
#include <netinet/in.h>
 
40632
int
 
40633
main ()
 
40634
{
 
40635
in_port_t port = 25; return (0);
 
40636
  ;
 
40637
  return 0;
 
40638
}
 
40639
_ACEOF
 
40640
rm -f conftest.$ac_objext
 
40641
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
40642
  (eval $ac_compile) 2>conftest.er1
 
40643
  ac_status=$?
 
40644
  grep -v '^ *+' conftest.er1 >conftest.err
 
40645
  rm -f conftest.er1
 
40646
  cat conftest.err >&5
 
40647
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40648
  (exit $ac_status); } &&
 
40649
         { ac_try='test -z "$ac_c_werror_flag"
 
40650
                         || test ! -s conftest.err'
 
40651
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40652
  (eval $ac_try) 2>&5
 
40653
  ac_status=$?
 
40654
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40655
  (exit $ac_status); }; } &&
 
40656
         { ac_try='test -s conftest.$ac_objext'
 
40657
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40658
  (eval $ac_try) 2>&5
 
40659
  ac_status=$?
 
40660
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40661
  (exit $ac_status); }; }; then
 
40662
  echo "$as_me:$LINENO: result: yes" >&5
 
40663
echo "${ECHO_T}yes" >&6
 
40664
 
 
40665
else
 
40666
  echo "$as_me: failed program was:" >&5
 
40667
sed 's/^/| /' conftest.$ac_ext >&5
 
40668
 
 
40669
echo "$as_me:$LINENO: result: no" >&5
 
40670
echo "${ECHO_T}no" >&6
 
40671
 
 
40672
cat >>confdefs.h <<\_ACEOF
 
40673
#define ISC_PLATFORM_NEEDPORTT 1
 
40674
_ACEOF
 
40675
 
 
40676
 
 
40677
fi
 
40678
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
40679
 
14229
40680
echo "$as_me:$LINENO: checking for a fallback value for HZ" >&5
14230
40681
echo $ECHO_N "checking for a fallback value for HZ... $ECHO_C" >&6
14231
40682
if test "${ac_cv_var_default_hz+set}" = set; then
14284
40735
 
14285
40736
 
14286
40737
 
 
40738
echo "$as_me:$LINENO: checking for struct rt_msghdr" >&5
 
40739
echo $ECHO_N "checking for struct rt_msghdr... $ECHO_C" >&6
 
40740
if test "${ac_cv_struct_rt_msghdr+set}" = set; then
 
40741
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
40742
else
 
40743
  cat >conftest.$ac_ext <<_ACEOF
 
40744
/* confdefs.h.  */
 
40745
_ACEOF
 
40746
cat confdefs.h >>conftest.$ac_ext
 
40747
cat >>conftest.$ac_ext <<_ACEOF
 
40748
/* end confdefs.h.  */
 
40749
 
 
40750
#include <sys/types.h>
 
40751
#include <sys/socket.h>
 
40752
#include <net/if.h>
 
40753
#include <net/route.h>
 
40754
int
 
40755
main ()
 
40756
{
 
40757
struct rt_msghdr p;
 
40758
  ;
 
40759
  return 0;
 
40760
}
 
40761
_ACEOF
 
40762
rm -f conftest.$ac_objext
 
40763
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
40764
  (eval $ac_compile) 2>conftest.er1
 
40765
  ac_status=$?
 
40766
  grep -v '^ *+' conftest.er1 >conftest.err
 
40767
  rm -f conftest.er1
 
40768
  cat conftest.err >&5
 
40769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40770
  (exit $ac_status); } &&
 
40771
         { ac_try='test -z "$ac_c_werror_flag"
 
40772
                         || test ! -s conftest.err'
 
40773
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40774
  (eval $ac_try) 2>&5
 
40775
  ac_status=$?
 
40776
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40777
  (exit $ac_status); }; } &&
 
40778
         { ac_try='test -s conftest.$ac_objext'
 
40779
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40780
  (eval $ac_try) 2>&5
 
40781
  ac_status=$?
 
40782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40783
  (exit $ac_status); }; }; then
 
40784
  ac_cv_struct_rt_msghdr=yes
 
40785
else
 
40786
  echo "$as_me: failed program was:" >&5
 
40787
sed 's/^/| /' conftest.$ac_ext >&5
 
40788
 
 
40789
ac_cv_struct_rt_msghdr=no
 
40790
fi
 
40791
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
40792
 
 
40793
fi
 
40794
echo "$as_me:$LINENO: result: $ac_cv_struct_rt_msghdr" >&5
 
40795
echo "${ECHO_T}$ac_cv_struct_rt_msghdr" >&6
 
40796
if test $ac_cv_struct_rt_msghdr = yes; then
 
40797
 
 
40798
cat >>confdefs.h <<\_ACEOF
 
40799
#define HAS_ROUTING_SOCKET 1
 
40800
_ACEOF
 
40801
 
 
40802
fi
 
40803
 
14287
40804
echo "$as_me:$LINENO: checking struct sigaction for sa_sigaction" >&5
14288
40805
echo $ECHO_N "checking struct sigaction for sa_sigaction... $ECHO_C" >&6
14289
40806
if test "${ac_cv_struct_sigaction_has_sa_sigaction+set}" = set; then
14314
40831
  cat conftest.err >&5
14315
40832
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316
40833
  (exit $ac_status); } &&
14317
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
40834
         { ac_try='test -z "$ac_c_werror_flag"
 
40835
                         || test ! -s conftest.err'
14318
40836
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319
40837
  (eval $ac_try) 2>&5
14320
40838
  ac_status=$?
14389
40907
  cat conftest.err >&5
14390
40908
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391
40909
  (exit $ac_status); } &&
14392
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
40910
         { ac_try='test -z "$ac_c_werror_flag"
 
40911
                         || test ! -s conftest.err'
14393
40912
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394
40913
  (eval $ac_try) 2>&5
14395
40914
  ac_status=$?
14454
40973
  cat conftest.err >&5
14455
40974
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456
40975
  (exit $ac_status); } &&
14457
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
40976
         { ac_try='test -z "$ac_c_werror_flag"
 
40977
                         || test ! -s conftest.err'
14458
40978
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14459
40979
  (eval $ac_try) 2>&5
14460
40980
  ac_status=$?
14506
41026
main ()
14507
41027
{
14508
41028
 
14509
 
extern struct sockaddr_storage *ss;
14510
 
return 0;
 
41029
struct sockaddr_storage n;
14511
41030
  ;
14512
41031
  return 0;
14513
41032
}
14521
41040
  cat conftest.err >&5
14522
41041
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523
41042
  (exit $ac_status); } &&
14524
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
41043
         { ac_try='test -z "$ac_c_werror_flag"
 
41044
                         || test ! -s conftest.err'
14525
41045
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526
41046
  (eval $ac_try) 2>&5
14527
41047
  ac_status=$?
14586
41106
  cat conftest.err >&5
14587
41107
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588
41108
  (exit $ac_status); } &&
14589
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
41109
         { ac_try='test -z "$ac_c_werror_flag"
 
41110
                         || test ! -s conftest.err'
14590
41111
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14591
41112
  (eval $ac_try) 2>&5
14592
41113
  ac_status=$?
14618
41139
 
14619
41140
else
14620
41141
    # Hack around a problem...
 
41142
    # HMS: This is $host because we need the -D if we are building *for* it.
 
41143
    # HMS: 061029: Now that we separate the ss_* checks this is causing
 
41144
    # a problem - disable it until we get to the bottom of it.
14621
41145
    case "$host" in
14622
 
     *-*-hpux11.11) CPPFLAGS="$CPPFLAGS -D_NETINET_IN6_H"
 
41146
     XXX*-*-hpux11.11) CPPFLAGS="$CPPFLAGS -D_NETINET_IN6_H"
14623
41147
        ;;
14624
41148
    esac
14625
41149
fi
14657
41181
  cat conftest.err >&5
14658
41182
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659
41183
  (exit $ac_status); } &&
14660
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
41184
         { ac_try='test -z "$ac_c_werror_flag"
 
41185
                         || test ! -s conftest.err'
14661
41186
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14662
41187
  (eval $ac_try) 2>&5
14663
41188
  ac_status=$?
14693
41218
 
14694
41219
 
14695
41220
 
 
41221
echo "$as_me:$LINENO: checking for ss_len field in struct sockaddr_storage" >&5
 
41222
echo $ECHO_N "checking for ss_len field in struct sockaddr_storage... $ECHO_C" >&6
 
41223
if test "${ac_cv_have_ss_len_in_struct_ss+set}" = set; then
 
41224
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
41225
else
 
41226
 
 
41227
        cat >conftest.$ac_ext <<_ACEOF
 
41228
/* confdefs.h.  */
 
41229
_ACEOF
 
41230
cat confdefs.h >>conftest.$ac_ext
 
41231
cat >>conftest.$ac_ext <<_ACEOF
 
41232
/* end confdefs.h.  */
 
41233
 
 
41234
#include <sys/types.h>
 
41235
#include <sys/socket.h>
 
41236
 
 
41237
int
 
41238
main ()
 
41239
{
 
41240
 struct sockaddr_storage s; s.ss_len = 1;
 
41241
  ;
 
41242
  return 0;
 
41243
}
 
41244
_ACEOF
 
41245
rm -f conftest.$ac_objext
 
41246
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
41247
  (eval $ac_compile) 2>conftest.er1
 
41248
  ac_status=$?
 
41249
  grep -v '^ *+' conftest.er1 >conftest.err
 
41250
  rm -f conftest.er1
 
41251
  cat conftest.err >&5
 
41252
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41253
  (exit $ac_status); } &&
 
41254
         { ac_try='test -z "$ac_c_werror_flag"
 
41255
                         || test ! -s conftest.err'
 
41256
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
41257
  (eval $ac_try) 2>&5
 
41258
  ac_status=$?
 
41259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41260
  (exit $ac_status); }; } &&
 
41261
         { ac_try='test -s conftest.$ac_objext'
 
41262
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
41263
  (eval $ac_try) 2>&5
 
41264
  ac_status=$?
 
41265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41266
  (exit $ac_status); }; }; then
 
41267
   ac_cv_have_ss_len_in_struct_ss="yes"
 
41268
else
 
41269
  echo "$as_me: failed program was:" >&5
 
41270
sed 's/^/| /' conftest.$ac_ext >&5
 
41271
 
 
41272
 ac_cv_have_ss_len_in_struct_ss="no"
 
41273
fi
 
41274
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
41275
 
 
41276
fi
 
41277
echo "$as_me:$LINENO: result: $ac_cv_have_ss_len_in_struct_ss" >&5
 
41278
echo "${ECHO_T}$ac_cv_have_ss_len_in_struct_ss" >&6
 
41279
if test "x$ac_cv_have_ss_len_in_struct_ss" = "xyes" ; then
 
41280
 
 
41281
cat >>confdefs.h <<\_ACEOF
 
41282
#define HAVE_SS_LEN_IN_SS 1
 
41283
_ACEOF
 
41284
 
 
41285
fi
 
41286
 
 
41287
echo "$as_me:$LINENO: checking for __ss_len field in struct sockaddr_storage" >&5
 
41288
echo $ECHO_N "checking for __ss_len field in struct sockaddr_storage... $ECHO_C" >&6
 
41289
if test "${ac_cv_have___ss_len_in_struct_ss+set}" = set; then
 
41290
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
41291
else
 
41292
 
 
41293
        cat >conftest.$ac_ext <<_ACEOF
 
41294
/* confdefs.h.  */
 
41295
_ACEOF
 
41296
cat confdefs.h >>conftest.$ac_ext
 
41297
cat >>conftest.$ac_ext <<_ACEOF
 
41298
/* end confdefs.h.  */
 
41299
 
 
41300
#include <sys/types.h>
 
41301
#include <sys/socket.h>
 
41302
 
 
41303
int
 
41304
main ()
 
41305
{
 
41306
 struct sockaddr_storage s; s.__ss_len = 1;
 
41307
  ;
 
41308
  return 0;
 
41309
}
 
41310
_ACEOF
 
41311
rm -f conftest.$ac_objext
 
41312
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
41313
  (eval $ac_compile) 2>conftest.er1
 
41314
  ac_status=$?
 
41315
  grep -v '^ *+' conftest.er1 >conftest.err
 
41316
  rm -f conftest.er1
 
41317
  cat conftest.err >&5
 
41318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41319
  (exit $ac_status); } &&
 
41320
         { ac_try='test -z "$ac_c_werror_flag"
 
41321
                         || test ! -s conftest.err'
 
41322
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
41323
  (eval $ac_try) 2>&5
 
41324
  ac_status=$?
 
41325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41326
  (exit $ac_status); }; } &&
 
41327
         { ac_try='test -s conftest.$ac_objext'
 
41328
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
41329
  (eval $ac_try) 2>&5
 
41330
  ac_status=$?
 
41331
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41332
  (exit $ac_status); }; }; then
 
41333
   ac_cv_have___ss_len_in_struct_ss="yes"
 
41334
else
 
41335
  echo "$as_me: failed program was:" >&5
 
41336
sed 's/^/| /' conftest.$ac_ext >&5
 
41337
 
 
41338
 ac_cv_have___ss_len_in_struct_ss="no"
 
41339
 
 
41340
fi
 
41341
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
41342
 
 
41343
fi
 
41344
echo "$as_me:$LINENO: result: $ac_cv_have___ss_len_in_struct_ss" >&5
 
41345
echo "${ECHO_T}$ac_cv_have___ss_len_in_struct_ss" >&6
 
41346
if test "x$ac_cv_have___ss_len_in_struct_ss" = "xyes" ; then
 
41347
 
 
41348
cat >>confdefs.h <<\_ACEOF
 
41349
#define HAVE___SS_LEN_IN_SS 1
 
41350
_ACEOF
 
41351
 
 
41352
fi
 
41353
 
 
41354
 
 
41355
 
 
41356
 
14696
41357
case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
14697
41358
  *yes*)
14698
41359
    echo "$as_me:$LINENO: checking for struct snd_size" >&5
14732
41393
  cat conftest.err >&5
14733
41394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734
41395
  (exit $ac_status); } &&
14735
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
41396
         { ac_try='test -z "$ac_c_werror_flag"
 
41397
                         || test ! -s conftest.err'
14736
41398
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14737
41399
  (eval $ac_try) 2>&5
14738
41400
  ac_status=$?
14798
41460
  cat conftest.err >&5
14799
41461
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800
41462
  (exit $ac_status); } &&
14801
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
41463
         { ac_try='test -z "$ac_c_werror_flag"
 
41464
                         || test ! -s conftest.err'
14802
41465
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803
41466
  (eval $ac_try) 2>&5
14804
41467
  ac_status=$?
14862
41525
  cat conftest.err >&5
14863
41526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864
41527
  (exit $ac_status); } &&
14865
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
41528
         { ac_try='test -z "$ac_c_werror_flag"
 
41529
                         || test ! -s conftest.err'
14866
41530
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14867
41531
  (eval $ac_try) 2>&5
14868
41532
  ac_status=$?
14932
41596
  cat conftest.err >&5
14933
41597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934
41598
  (exit $ac_status); } &&
14935
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
41599
         { ac_try='test -z "$ac_c_werror_flag"
 
41600
                         || test ! -s conftest.err'
14936
41601
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14937
41602
  (eval $ac_try) 2>&5
14938
41603
  ac_status=$?
14994
41659
  cat conftest.err >&5
14995
41660
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996
41661
  (exit $ac_status); } &&
14997
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
41662
         { ac_try='test -z "$ac_c_werror_flag"
 
41663
                         || test ! -s conftest.err'
14998
41664
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999
41665
  (eval $ac_try) 2>&5
15000
41666
  ac_status=$?
15070
41736
  cat conftest.err >&5
15071
41737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072
41738
  (exit $ac_status); } &&
15073
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
41739
         { ac_try='test -z "$ac_c_werror_flag"
 
41740
                         || test ! -s conftest.err'
15074
41741
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15075
41742
  (eval $ac_try) 2>&5
15076
41743
  ac_status=$?
15127
41794
  cat conftest.err >&5
15128
41795
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129
41796
  (exit $ac_status); } &&
15130
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
41797
         { ac_try='test -z "$ac_c_werror_flag"
 
41798
                         || test ! -s conftest.err'
15131
41799
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15132
41800
  (eval $ac_try) 2>&5
15133
41801
  ac_status=$?
15191
41859
  cat conftest.err >&5
15192
41860
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193
41861
  (exit $ac_status); } &&
15194
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
41862
         { ac_try='test -z "$ac_c_werror_flag"
 
41863
                         || test ! -s conftest.err'
15195
41864
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15196
41865
  (eval $ac_try) 2>&5
15197
41866
  ac_status=$?
15264
41933
  cat conftest.err >&5
15265
41934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266
41935
  (exit $ac_status); } &&
15267
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
41936
         { ac_try='test -z "$ac_c_werror_flag"
 
41937
                         || test ! -s conftest.err'
15268
41938
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15269
41939
  (eval $ac_try) 2>&5
15270
41940
  ac_status=$?
15325
41995
  cat conftest.err >&5
15326
41996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327
41997
  (exit $ac_status); } &&
15328
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
41998
         { ac_try='test -z "$ac_c_werror_flag"
 
41999
                         || test ! -s conftest.err'
15329
42000
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330
42001
  (eval $ac_try) 2>&5
15331
42002
  ac_status=$?
15387
42058
  cat conftest.err >&5
15388
42059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389
42060
  (exit $ac_status); } &&
15390
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
42061
         { ac_try='test -z "$ac_c_werror_flag"
 
42062
                         || test ! -s conftest.err'
15391
42063
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15392
42064
  (eval $ac_try) 2>&5
15393
42065
  ac_status=$?
15427
42099
  cat conftest.err >&5
15428
42100
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429
42101
  (exit $ac_status); } &&
15430
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
42102
         { ac_try='test -z "$ac_c_werror_flag"
 
42103
                         || test ! -s conftest.err'
15431
42104
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15432
42105
  (eval $ac_try) 2>&5
15433
42106
  ac_status=$?
15483
42156
  cat conftest.err >&5
15484
42157
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485
42158
  (exit $ac_status); } &&
15486
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
42159
         { ac_try='test -z "$ac_c_werror_flag"
 
42160
                         || test ! -s conftest.err'
15487
42161
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15488
42162
  (eval $ac_try) 2>&5
15489
42163
  ac_status=$?
15523
42197
  cat conftest.err >&5
15524
42198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525
42199
  (exit $ac_status); } &&
15526
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
42200
         { ac_try='test -z "$ac_c_werror_flag"
 
42201
                         || test ! -s conftest.err'
15527
42202
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528
42203
  (eval $ac_try) 2>&5
15529
42204
  ac_status=$?
15587
42262
  cat conftest.err >&5
15588
42263
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589
42264
  (exit $ac_status); } &&
15590
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
42265
         { ac_try='test -z "$ac_c_werror_flag"
 
42266
                         || test ! -s conftest.err'
15591
42267
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15592
42268
  (eval $ac_try) 2>&5
15593
42269
  ac_status=$?
15618
42294
esac
15619
42295
else
15620
42296
  if test "$cross_compiling" = yes; then
15621
 
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15622
 
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
42297
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
42298
See \`config.log' for more details." >&5
 
42299
echo "$as_me: error: cannot run test program while cross compiling
 
42300
See \`config.log' for more details." >&2;}
15623
42301
   { (exit 1); exit 1; }; }
15624
42302
else
15625
42303
  cat >conftest.$ac_ext <<_ACEOF
15731
42409
  cat conftest.err >&5
15732
42410
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733
42411
  (exit $ac_status); } &&
15734
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
42412
         { ac_try='test -z "$ac_c_werror_flag"
 
42413
                         || test ! -s conftest.err'
15735
42414
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15736
42415
  (eval $ac_try) 2>&5
15737
42416
  ac_status=$?
15793
42472
  cat conftest.err >&5
15794
42473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795
42474
  (exit $ac_status); } &&
15796
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
42475
         { ac_try='test -z "$ac_c_werror_flag"
 
42476
                         || test ! -s conftest.err'
15797
42477
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798
42478
  (eval $ac_try) 2>&5
15799
42479
  ac_status=$?
15833
42513
  cat conftest.err >&5
15834
42514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835
42515
  (exit $ac_status); } &&
15836
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
42516
         { ac_try='test -z "$ac_c_werror_flag"
 
42517
                         || test ! -s conftest.err'
15837
42518
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15838
42519
  (eval $ac_try) 2>&5
15839
42520
  ac_status=$?
15889
42570
  cat conftest.err >&5
15890
42571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891
42572
  (exit $ac_status); } &&
15892
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
42573
         { ac_try='test -z "$ac_c_werror_flag"
 
42574
                         || test ! -s conftest.err'
15893
42575
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15894
42576
  (eval $ac_try) 2>&5
15895
42577
  ac_status=$?
15929
42611
  cat conftest.err >&5
15930
42612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931
42613
  (exit $ac_status); } &&
15932
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
42614
         { ac_try='test -z "$ac_c_werror_flag"
 
42615
                         || test ! -s conftest.err'
15933
42616
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15934
42617
  (eval $ac_try) 2>&5
15935
42618
  ac_status=$?
15993
42676
  cat conftest.err >&5
15994
42677
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995
42678
  (exit $ac_status); } &&
15996
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
42679
         { ac_try='test -z "$ac_c_werror_flag"
 
42680
                         || test ! -s conftest.err'
15997
42681
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15998
42682
  (eval $ac_try) 2>&5
15999
42683
  ac_status=$?
16024
42708
esac
16025
42709
else
16026
42710
  if test "$cross_compiling" = yes; then
16027
 
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16028
 
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
42711
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
42712
See \`config.log' for more details." >&5
 
42713
echo "$as_me: error: cannot run test program while cross compiling
 
42714
See \`config.log' for more details." >&2;}
16029
42715
   { (exit 1); exit 1; }; }
16030
42716
else
16031
42717
  cat >conftest.$ac_ext <<_ACEOF
16137
42823
  cat conftest.err >&5
16138
42824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139
42825
  (exit $ac_status); } &&
16140
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
42826
         { ac_try='test -z "$ac_c_werror_flag"
 
42827
                         || test ! -s conftest.err'
16141
42828
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16142
42829
  (eval $ac_try) 2>&5
16143
42830
  ac_status=$?
16199
42886
  cat conftest.err >&5
16200
42887
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201
42888
  (exit $ac_status); } &&
16202
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
42889
         { ac_try='test -z "$ac_c_werror_flag"
 
42890
                         || test ! -s conftest.err'
16203
42891
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16204
42892
  (eval $ac_try) 2>&5
16205
42893
  ac_status=$?
16239
42927
  cat conftest.err >&5
16240
42928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241
42929
  (exit $ac_status); } &&
16242
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
42930
         { ac_try='test -z "$ac_c_werror_flag"
 
42931
                         || test ! -s conftest.err'
16243
42932
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16244
42933
  (eval $ac_try) 2>&5
16245
42934
  ac_status=$?
16295
42984
  cat conftest.err >&5
16296
42985
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297
42986
  (exit $ac_status); } &&
16298
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
42987
         { ac_try='test -z "$ac_c_werror_flag"
 
42988
                         || test ! -s conftest.err'
16299
42989
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16300
42990
  (eval $ac_try) 2>&5
16301
42991
  ac_status=$?
16335
43025
  cat conftest.err >&5
16336
43026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337
43027
  (exit $ac_status); } &&
16338
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
43028
         { ac_try='test -z "$ac_c_werror_flag"
 
43029
                         || test ! -s conftest.err'
16339
43030
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16340
43031
  (eval $ac_try) 2>&5
16341
43032
  ac_status=$?
16399
43090
  cat conftest.err >&5
16400
43091
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401
43092
  (exit $ac_status); } &&
16402
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
43093
         { ac_try='test -z "$ac_c_werror_flag"
 
43094
                         || test ! -s conftest.err'
16403
43095
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16404
43096
  (eval $ac_try) 2>&5
16405
43097
  ac_status=$?
16430
43122
esac
16431
43123
else
16432
43124
  if test "$cross_compiling" = yes; then
16433
 
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16434
 
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
43125
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
43126
See \`config.log' for more details." >&5
 
43127
echo "$as_me: error: cannot run test program while cross compiling
 
43128
See \`config.log' for more details." >&2;}
16435
43129
   { (exit 1); exit 1; }; }
16436
43130
else
16437
43131
  cat >conftest.$ac_ext <<_ACEOF
16544
43238
  cat conftest.err >&5
16545
43239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546
43240
  (exit $ac_status); } &&
16547
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
43241
         { ac_try='test -z "$ac_c_werror_flag"
 
43242
                         || test ! -s conftest.err'
16548
43243
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16549
43244
  (eval $ac_try) 2>&5
16550
43245
  ac_status=$?
16649
43344
 
16650
43345
 
16651
43346
case "$host" in
16652
 
 *-*-linux*)
16653
 
 
16654
 
 
16655
 
for ac_func in __adjtimex __ntp_gettime
16656
 
do
16657
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16658
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
16659
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16660
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
16661
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16662
 
else
16663
 
  cat >conftest.$ac_ext <<_ACEOF
16664
 
/* confdefs.h.  */
16665
 
_ACEOF
16666
 
cat confdefs.h >>conftest.$ac_ext
16667
 
cat >>conftest.$ac_ext <<_ACEOF
16668
 
/* end confdefs.h.  */
16669
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16670
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16671
 
#define $ac_func innocuous_$ac_func
16672
 
 
16673
 
/* System header to define __stub macros and hopefully few prototypes,
16674
 
    which can conflict with char $ac_func (); below.
16675
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16676
 
    <limits.h> exists even on freestanding compilers.  */
16677
 
 
16678
 
#ifdef __STDC__
16679
 
# include <limits.h>
16680
 
#else
16681
 
# include <assert.h>
16682
 
#endif
16683
 
 
16684
 
#undef $ac_func
16685
 
 
16686
 
/* Override any gcc2 internal prototype to avoid an error.  */
16687
 
#ifdef __cplusplus
16688
 
extern "C"
16689
 
{
16690
 
#endif
16691
 
/* We use char because int might match the return type of a gcc2
16692
 
   builtin and then its argument prototype would still apply.  */
16693
 
char $ac_func ();
16694
 
/* The GNU C library defines this for functions which it implements
16695
 
    to always fail with ENOSYS.  Some functions are actually named
16696
 
    something starting with __ and the normal name is an alias.  */
16697
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16698
 
choke me
16699
 
#else
16700
 
char (*f) () = $ac_func;
16701
 
#endif
16702
 
#ifdef __cplusplus
16703
 
}
16704
 
#endif
16705
 
 
16706
 
int
16707
 
main ()
16708
 
{
16709
 
return f != $ac_func;
16710
 
  ;
16711
 
  return 0;
16712
 
}
16713
 
_ACEOF
16714
 
rm -f conftest.$ac_objext conftest$ac_exeext
16715
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16716
 
  (eval $ac_link) 2>conftest.er1
16717
 
  ac_status=$?
16718
 
  grep -v '^ *+' conftest.er1 >conftest.err
16719
 
  rm -f conftest.er1
16720
 
  cat conftest.err >&5
16721
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722
 
  (exit $ac_status); } &&
16723
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16724
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16725
 
  (eval $ac_try) 2>&5
16726
 
  ac_status=$?
16727
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728
 
  (exit $ac_status); }; } &&
16729
 
         { ac_try='test -s conftest$ac_exeext'
16730
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16731
 
  (eval $ac_try) 2>&5
16732
 
  ac_status=$?
16733
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734
 
  (exit $ac_status); }; }; then
16735
 
  eval "$as_ac_var=yes"
16736
 
else
16737
 
  echo "$as_me: failed program was:" >&5
16738
 
sed 's/^/| /' conftest.$ac_ext >&5
16739
 
 
16740
 
eval "$as_ac_var=no"
16741
 
fi
16742
 
rm -f conftest.err conftest.$ac_objext \
16743
 
      conftest$ac_exeext conftest.$ac_ext
16744
 
fi
16745
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16746
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16747
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
16748
 
  cat >>confdefs.h <<_ACEOF
16749
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16750
 
_ACEOF
16751
 
 
16752
 
fi
16753
 
done
16754
 
 
16755
 
    ;;
16756
 
esac
16757
 
case "$host" in
16758
43347
 *-*-aix[45]*)
16759
43348
        # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
16760
43349
        # (returning ENOSYS).  I didn't check 4.2.  If, in the future,
16832
43421
  cat conftest.err >&5
16833
43422
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834
43423
  (exit $ac_status); } &&
16835
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
43424
         { ac_try='test -z "$ac_c_werror_flag"
 
43425
                         || test ! -s conftest.err'
16836
43426
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16837
43427
  (eval $ac_try) 2>&5
16838
43428
  ac_status=$?
16935
43525
  cat conftest.err >&5
16936
43526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937
43527
  (exit $ac_status); } &&
16938
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
43528
         { ac_try='test -z "$ac_c_werror_flag"
 
43529
                         || test ! -s conftest.err'
16939
43530
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16940
43531
  (eval $ac_try) 2>&5
16941
43532
  ac_status=$?
17036
43627
  cat conftest.err >&5
17037
43628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038
43629
  (exit $ac_status); } &&
17039
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
43630
         { ac_try='test -z "$ac_c_werror_flag"
 
43631
                         || test ! -s conftest.err'
17040
43632
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17041
43633
  (eval $ac_try) 2>&5
17042
43634
  ac_status=$?
17135
43727
  cat conftest.err >&5
17136
43728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137
43729
  (exit $ac_status); } &&
17138
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
43730
         { ac_try='test -z "$ac_c_werror_flag"
 
43731
                         || test ! -s conftest.err'
17139
43732
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17140
43733
  (eval $ac_try) 2>&5
17141
43734
  ac_status=$?
17193
43786
  cat conftest.err >&5
17194
43787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195
43788
  (exit $ac_status); } &&
17196
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
43789
         { ac_try='test -z "$ac_c_werror_flag"
 
43790
                         || test ! -s conftest.err'
17197
43791
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17198
43792
  (eval $ac_try) 2>&5
17199
43793
  ac_status=$?
17230
43824
 
17231
43825
 
17232
43826
 
17233
 
 
17234
 
for ac_func in getbootfile getclock getdtablesize getrusage
17235
 
do
17236
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17237
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
17238
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17239
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
17240
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17241
 
else
17242
 
  cat >conftest.$ac_ext <<_ACEOF
17243
 
/* confdefs.h.  */
17244
 
_ACEOF
17245
 
cat confdefs.h >>conftest.$ac_ext
17246
 
cat >>conftest.$ac_ext <<_ACEOF
17247
 
/* end confdefs.h.  */
17248
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17249
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17250
 
#define $ac_func innocuous_$ac_func
17251
 
 
17252
 
/* System header to define __stub macros and hopefully few prototypes,
17253
 
    which can conflict with char $ac_func (); below.
17254
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17255
 
    <limits.h> exists even on freestanding compilers.  */
17256
 
 
17257
 
#ifdef __STDC__
17258
 
# include <limits.h>
17259
 
#else
17260
 
# include <assert.h>
17261
 
#endif
17262
 
 
17263
 
#undef $ac_func
17264
 
 
17265
 
/* Override any gcc2 internal prototype to avoid an error.  */
17266
 
#ifdef __cplusplus
17267
 
extern "C"
17268
 
{
17269
 
#endif
17270
 
/* We use char because int might match the return type of a gcc2
17271
 
   builtin and then its argument prototype would still apply.  */
17272
 
char $ac_func ();
17273
 
/* The GNU C library defines this for functions which it implements
17274
 
    to always fail with ENOSYS.  Some functions are actually named
17275
 
    something starting with __ and the normal name is an alias.  */
17276
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17277
 
choke me
17278
 
#else
17279
 
char (*f) () = $ac_func;
17280
 
#endif
17281
 
#ifdef __cplusplus
17282
 
}
17283
 
#endif
17284
 
 
17285
 
int
17286
 
main ()
17287
 
{
17288
 
return f != $ac_func;
17289
 
  ;
17290
 
  return 0;
17291
 
}
17292
 
_ACEOF
17293
 
rm -f conftest.$ac_objext conftest$ac_exeext
17294
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17295
 
  (eval $ac_link) 2>conftest.er1
17296
 
  ac_status=$?
17297
 
  grep -v '^ *+' conftest.er1 >conftest.err
17298
 
  rm -f conftest.er1
17299
 
  cat conftest.err >&5
17300
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301
 
  (exit $ac_status); } &&
17302
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
43827
for ac_func in getbootfile getclock getdtablesize
 
43828
do
 
43829
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
43830
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
43831
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
43832
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
43833
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
43834
else
 
43835
  cat >conftest.$ac_ext <<_ACEOF
 
43836
/* confdefs.h.  */
 
43837
_ACEOF
 
43838
cat confdefs.h >>conftest.$ac_ext
 
43839
cat >>conftest.$ac_ext <<_ACEOF
 
43840
/* end confdefs.h.  */
 
43841
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
43842
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
43843
#define $ac_func innocuous_$ac_func
 
43844
 
 
43845
/* System header to define __stub macros and hopefully few prototypes,
 
43846
    which can conflict with char $ac_func (); below.
 
43847
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
43848
    <limits.h> exists even on freestanding compilers.  */
 
43849
 
 
43850
#ifdef __STDC__
 
43851
# include <limits.h>
 
43852
#else
 
43853
# include <assert.h>
 
43854
#endif
 
43855
 
 
43856
#undef $ac_func
 
43857
 
 
43858
/* Override any gcc2 internal prototype to avoid an error.  */
 
43859
#ifdef __cplusplus
 
43860
extern "C"
 
43861
{
 
43862
#endif
 
43863
/* We use char because int might match the return type of a gcc2
 
43864
   builtin and then its argument prototype would still apply.  */
 
43865
char $ac_func ();
 
43866
/* The GNU C library defines this for functions which it implements
 
43867
    to always fail with ENOSYS.  Some functions are actually named
 
43868
    something starting with __ and the normal name is an alias.  */
 
43869
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
43870
choke me
 
43871
#else
 
43872
char (*f) () = $ac_func;
 
43873
#endif
 
43874
#ifdef __cplusplus
 
43875
}
 
43876
#endif
 
43877
 
 
43878
int
 
43879
main ()
 
43880
{
 
43881
return f != $ac_func;
 
43882
  ;
 
43883
  return 0;
 
43884
}
 
43885
_ACEOF
 
43886
rm -f conftest.$ac_objext conftest$ac_exeext
 
43887
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
43888
  (eval $ac_link) 2>conftest.er1
 
43889
  ac_status=$?
 
43890
  grep -v '^ *+' conftest.er1 >conftest.err
 
43891
  rm -f conftest.er1
 
43892
  cat conftest.err >&5
 
43893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
43894
  (exit $ac_status); } &&
 
43895
         { ac_try='test -z "$ac_c_werror_flag"
 
43896
                         || test ! -s conftest.err'
 
43897
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
43898
  (eval $ac_try) 2>&5
 
43899
  ac_status=$?
 
43900
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
43901
  (exit $ac_status); }; } &&
 
43902
         { ac_try='test -s conftest$ac_exeext'
 
43903
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
43904
  (eval $ac_try) 2>&5
 
43905
  ac_status=$?
 
43906
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
43907
  (exit $ac_status); }; }; then
 
43908
  eval "$as_ac_var=yes"
 
43909
else
 
43910
  echo "$as_me: failed program was:" >&5
 
43911
sed 's/^/| /' conftest.$ac_ext >&5
 
43912
 
 
43913
eval "$as_ac_var=no"
 
43914
fi
 
43915
rm -f conftest.err conftest.$ac_objext \
 
43916
      conftest$ac_exeext conftest.$ac_ext
 
43917
fi
 
43918
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
43919
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
43920
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
43921
  cat >>confdefs.h <<_ACEOF
 
43922
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
43923
_ACEOF
 
43924
 
 
43925
fi
 
43926
done
 
43927
 
 
43928
 
 
43929
# Check whether --enable-getifaddrs or --disable-getifaddrs was given.
 
43930
if test "${enable_getifaddrs+set}" = set; then
 
43931
  enableval="$enable_getifaddrs"
 
43932
  want_getifaddrs="$enableval"
 
43933
else
 
43934
  want_getifaddrs="yes"
 
43935
fi;
 
43936
 
 
43937
case $want_getifaddrs in
 
43938
yes|glibc)
 
43939
#
 
43940
# Do we have getifaddrs() ?
 
43941
#
 
43942
case $host in
 
43943
*-linux*)
 
43944
        # Some recent versions of glibc support getifaddrs() which does not
 
43945
        # provide AF_INET6 addresses while the function provided by the USAGI
 
43946
        # project handles the AF_INET6 case correctly.  We need to avoid
 
43947
        # using the former but prefer the latter unless overridden by
 
43948
        # --enable-getifaddrs=glibc.
 
43949
        if test $want_getifaddrs = glibc
 
43950
        then
 
43951
 
 
43952
for ac_func in getifaddrs
 
43953
do
 
43954
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
43955
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
43956
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
43957
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
43958
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
43959
else
 
43960
  cat >conftest.$ac_ext <<_ACEOF
 
43961
/* confdefs.h.  */
 
43962
_ACEOF
 
43963
cat confdefs.h >>conftest.$ac_ext
 
43964
cat >>conftest.$ac_ext <<_ACEOF
 
43965
/* end confdefs.h.  */
 
43966
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
43967
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
43968
#define $ac_func innocuous_$ac_func
 
43969
 
 
43970
/* System header to define __stub macros and hopefully few prototypes,
 
43971
    which can conflict with char $ac_func (); below.
 
43972
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
43973
    <limits.h> exists even on freestanding compilers.  */
 
43974
 
 
43975
#ifdef __STDC__
 
43976
# include <limits.h>
 
43977
#else
 
43978
# include <assert.h>
 
43979
#endif
 
43980
 
 
43981
#undef $ac_func
 
43982
 
 
43983
/* Override any gcc2 internal prototype to avoid an error.  */
 
43984
#ifdef __cplusplus
 
43985
extern "C"
 
43986
{
 
43987
#endif
 
43988
/* We use char because int might match the return type of a gcc2
 
43989
   builtin and then its argument prototype would still apply.  */
 
43990
char $ac_func ();
 
43991
/* The GNU C library defines this for functions which it implements
 
43992
    to always fail with ENOSYS.  Some functions are actually named
 
43993
    something starting with __ and the normal name is an alias.  */
 
43994
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
43995
choke me
 
43996
#else
 
43997
char (*f) () = $ac_func;
 
43998
#endif
 
43999
#ifdef __cplusplus
 
44000
}
 
44001
#endif
 
44002
 
 
44003
int
 
44004
main ()
 
44005
{
 
44006
return f != $ac_func;
 
44007
  ;
 
44008
  return 0;
 
44009
}
 
44010
_ACEOF
 
44011
rm -f conftest.$ac_objext conftest$ac_exeext
 
44012
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
44013
  (eval $ac_link) 2>conftest.er1
 
44014
  ac_status=$?
 
44015
  grep -v '^ *+' conftest.er1 >conftest.err
 
44016
  rm -f conftest.er1
 
44017
  cat conftest.err >&5
 
44018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
44019
  (exit $ac_status); } &&
 
44020
         { ac_try='test -z "$ac_c_werror_flag"
 
44021
                         || test ! -s conftest.err'
 
44022
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
44023
  (eval $ac_try) 2>&5
 
44024
  ac_status=$?
 
44025
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
44026
  (exit $ac_status); }; } &&
 
44027
         { ac_try='test -s conftest$ac_exeext'
 
44028
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
44029
  (eval $ac_try) 2>&5
 
44030
  ac_status=$?
 
44031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
44032
  (exit $ac_status); }; }; then
 
44033
  eval "$as_ac_var=yes"
 
44034
else
 
44035
  echo "$as_me: failed program was:" >&5
 
44036
sed 's/^/| /' conftest.$ac_ext >&5
 
44037
 
 
44038
eval "$as_ac_var=no"
 
44039
fi
 
44040
rm -f conftest.err conftest.$ac_objext \
 
44041
      conftest$ac_exeext conftest.$ac_ext
 
44042
fi
 
44043
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
44044
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
44045
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
44046
  cat >>confdefs.h <<_ACEOF
 
44047
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
44048
_ACEOF
 
44049
 
 
44050
fi
 
44051
done
 
44052
 
 
44053
        else
 
44054
                save_LIBS="$LIBS"
 
44055
                LIBS="-L/usr/local/v6/lib $LIBS"
 
44056
                echo "$as_me:$LINENO: checking for getifaddrs in -linet6" >&5
 
44057
echo $ECHO_N "checking for getifaddrs in -linet6... $ECHO_C" >&6
 
44058
if test "${ac_cv_lib_inet6_getifaddrs+set}" = set; then
 
44059
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
44060
else
 
44061
  ac_check_lib_save_LIBS=$LIBS
 
44062
LIBS="-linet6  $LIBS"
 
44063
cat >conftest.$ac_ext <<_ACEOF
 
44064
/* confdefs.h.  */
 
44065
_ACEOF
 
44066
cat confdefs.h >>conftest.$ac_ext
 
44067
cat >>conftest.$ac_ext <<_ACEOF
 
44068
/* end confdefs.h.  */
 
44069
 
 
44070
/* Override any gcc2 internal prototype to avoid an error.  */
 
44071
#ifdef __cplusplus
 
44072
extern "C"
 
44073
#endif
 
44074
/* We use char because int might match the return type of a gcc2
 
44075
   builtin and then its argument prototype would still apply.  */
 
44076
char getifaddrs ();
 
44077
int
 
44078
main ()
 
44079
{
 
44080
getifaddrs ();
 
44081
  ;
 
44082
  return 0;
 
44083
}
 
44084
_ACEOF
 
44085
rm -f conftest.$ac_objext conftest$ac_exeext
 
44086
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
44087
  (eval $ac_link) 2>conftest.er1
 
44088
  ac_status=$?
 
44089
  grep -v '^ *+' conftest.er1 >conftest.err
 
44090
  rm -f conftest.er1
 
44091
  cat conftest.err >&5
 
44092
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
44093
  (exit $ac_status); } &&
 
44094
         { ac_try='test -z "$ac_c_werror_flag"
 
44095
                         || test ! -s conftest.err'
 
44096
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
44097
  (eval $ac_try) 2>&5
 
44098
  ac_status=$?
 
44099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
44100
  (exit $ac_status); }; } &&
 
44101
         { ac_try='test -s conftest$ac_exeext'
 
44102
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
44103
  (eval $ac_try) 2>&5
 
44104
  ac_status=$?
 
44105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
44106
  (exit $ac_status); }; }; then
 
44107
  ac_cv_lib_inet6_getifaddrs=yes
 
44108
else
 
44109
  echo "$as_me: failed program was:" >&5
 
44110
sed 's/^/| /' conftest.$ac_ext >&5
 
44111
 
 
44112
ac_cv_lib_inet6_getifaddrs=no
 
44113
fi
 
44114
rm -f conftest.err conftest.$ac_objext \
 
44115
      conftest$ac_exeext conftest.$ac_ext
 
44116
LIBS=$ac_check_lib_save_LIBS
 
44117
fi
 
44118
echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getifaddrs" >&5
 
44119
echo "${ECHO_T}$ac_cv_lib_inet6_getifaddrs" >&6
 
44120
if test $ac_cv_lib_inet6_getifaddrs = yes; then
 
44121
  LIBS="$LIBS -linet6"
 
44122
                        cat >>confdefs.h <<\_ACEOF
 
44123
#define HAVE_GETIFADDRS 1
 
44124
_ACEOF
 
44125
 
 
44126
else
 
44127
  LIBS=${save_LIBS}
 
44128
fi
 
44129
 
 
44130
        fi
 
44131
        ;;
 
44132
*)
 
44133
 
 
44134
for ac_func in getifaddrs
 
44135
do
 
44136
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
44137
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
44138
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
44139
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
44140
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
44141
else
 
44142
  cat >conftest.$ac_ext <<_ACEOF
 
44143
/* confdefs.h.  */
 
44144
_ACEOF
 
44145
cat confdefs.h >>conftest.$ac_ext
 
44146
cat >>conftest.$ac_ext <<_ACEOF
 
44147
/* end confdefs.h.  */
 
44148
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
44149
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
44150
#define $ac_func innocuous_$ac_func
 
44151
 
 
44152
/* System header to define __stub macros and hopefully few prototypes,
 
44153
    which can conflict with char $ac_func (); below.
 
44154
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
44155
    <limits.h> exists even on freestanding compilers.  */
 
44156
 
 
44157
#ifdef __STDC__
 
44158
# include <limits.h>
 
44159
#else
 
44160
# include <assert.h>
 
44161
#endif
 
44162
 
 
44163
#undef $ac_func
 
44164
 
 
44165
/* Override any gcc2 internal prototype to avoid an error.  */
 
44166
#ifdef __cplusplus
 
44167
extern "C"
 
44168
{
 
44169
#endif
 
44170
/* We use char because int might match the return type of a gcc2
 
44171
   builtin and then its argument prototype would still apply.  */
 
44172
char $ac_func ();
 
44173
/* The GNU C library defines this for functions which it implements
 
44174
    to always fail with ENOSYS.  Some functions are actually named
 
44175
    something starting with __ and the normal name is an alias.  */
 
44176
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
44177
choke me
 
44178
#else
 
44179
char (*f) () = $ac_func;
 
44180
#endif
 
44181
#ifdef __cplusplus
 
44182
}
 
44183
#endif
 
44184
 
 
44185
int
 
44186
main ()
 
44187
{
 
44188
return f != $ac_func;
 
44189
  ;
 
44190
  return 0;
 
44191
}
 
44192
_ACEOF
 
44193
rm -f conftest.$ac_objext conftest$ac_exeext
 
44194
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
44195
  (eval $ac_link) 2>conftest.er1
 
44196
  ac_status=$?
 
44197
  grep -v '^ *+' conftest.er1 >conftest.err
 
44198
  rm -f conftest.er1
 
44199
  cat conftest.err >&5
 
44200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
44201
  (exit $ac_status); } &&
 
44202
         { ac_try='test -z "$ac_c_werror_flag"
 
44203
                         || test ! -s conftest.err'
 
44204
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
44205
  (eval $ac_try) 2>&5
 
44206
  ac_status=$?
 
44207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
44208
  (exit $ac_status); }; } &&
 
44209
         { ac_try='test -s conftest$ac_exeext'
 
44210
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
44211
  (eval $ac_try) 2>&5
 
44212
  ac_status=$?
 
44213
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
44214
  (exit $ac_status); }; }; then
 
44215
  eval "$as_ac_var=yes"
 
44216
else
 
44217
  echo "$as_me: failed program was:" >&5
 
44218
sed 's/^/| /' conftest.$ac_ext >&5
 
44219
 
 
44220
eval "$as_ac_var=no"
 
44221
fi
 
44222
rm -f conftest.err conftest.$ac_objext \
 
44223
      conftest$ac_exeext conftest.$ac_ext
 
44224
fi
 
44225
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
44226
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
44227
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
44228
  cat >>confdefs.h <<_ACEOF
 
44229
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
44230
_ACEOF
 
44231
 
 
44232
fi
 
44233
done
 
44234
 
 
44235
        ;;
 
44236
esac
 
44237
;;
 
44238
no)
 
44239
;;
 
44240
esac
 
44241
 
 
44242
echo "$as_me:$LINENO: checking type of socklen arg for getsockname()" >&5
 
44243
echo $ECHO_N "checking type of socklen arg for getsockname()... $ECHO_C" >&6
 
44244
if test "${ac_cv_func_getsockname_arg2+set}" = set; then
 
44245
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
44246
else
 
44247
  if test "${ac_cv_func_getsockname_socklen_type+set}" = set; then
 
44248
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
44249
else
 
44250
   for ac_cv_func_getsockname_arg2 in 'struct sockaddr *' 'void *'; do
 
44251
  for ac_cv_func_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
 
44252
   cat >conftest.$ac_ext <<_ACEOF
 
44253
/* confdefs.h.  */
 
44254
_ACEOF
 
44255
cat confdefs.h >>conftest.$ac_ext
 
44256
cat >>conftest.$ac_ext <<_ACEOF
 
44257
/* end confdefs.h.  */
 
44258
#ifdef HAVE_SYS_TYPES_H
 
44259
#include <sys/types.h>
 
44260
#endif
 
44261
#ifdef HAVE_SYS_SOCKET_H
 
44262
#include <sys/socket.h>
 
44263
#endif
 
44264
extern getsockname (int, $ac_cv_func_getsockname_arg2, $ac_cv_func_getsockname_socklen_type *);
 
44265
int
 
44266
main ()
 
44267
{
 
44268
 
 
44269
  ;
 
44270
  return 0;
 
44271
}
 
44272
_ACEOF
 
44273
rm -f conftest.$ac_objext
 
44274
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
44275
  (eval $ac_compile) 2>conftest.er1
 
44276
  ac_status=$?
 
44277
  grep -v '^ *+' conftest.er1 >conftest.err
 
44278
  rm -f conftest.er1
 
44279
  cat conftest.err >&5
 
44280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
44281
  (exit $ac_status); } &&
 
44282
         { ac_try='test -z "$ac_c_werror_flag"
 
44283
                         || test ! -s conftest.err'
 
44284
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
44285
  (eval $ac_try) 2>&5
 
44286
  ac_status=$?
 
44287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
44288
  (exit $ac_status); }; } &&
 
44289
         { ac_try='test -s conftest.$ac_objext'
 
44290
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
44291
  (eval $ac_try) 2>&5
 
44292
  ac_status=$?
 
44293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
44294
  (exit $ac_status); }; }; then
 
44295
      ac_not_found=no ; break 2
 
44296
else
 
44297
  echo "$as_me: failed program was:" >&5
 
44298
sed 's/^/| /' conftest.$ac_ext >&5
 
44299
 
 
44300
ac_not_found=yes
 
44301
fi
 
44302
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
44303
   done
 
44304
  done
 
44305
 
 
44306
fi
 
44307
 
 
44308
fi
 
44309
if test "$ac_not_found" = yes; then
 
44310
 ac_cv_func_getsockname_socklen_type='socklen_t'
 
44311
fi
 
44312
echo "$as_me:$LINENO: result: $ac_cv_func_getsockname_socklen_type" >&5
 
44313
echo "${ECHO_T}$ac_cv_func_getsockname_socklen_type" >&6
 
44314
 
 
44315
cat >>confdefs.h <<_ACEOF
 
44316
#define GETSOCKNAME_SOCKLEN_TYPE $ac_cv_func_getsockname_socklen_type
 
44317
_ACEOF
 
44318
 
 
44319
 
 
44320
 
 
44321
for ac_func in getrusage
 
44322
do
 
44323
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
44324
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
44325
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
44326
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
44327
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
44328
else
 
44329
  cat >conftest.$ac_ext <<_ACEOF
 
44330
/* confdefs.h.  */
 
44331
_ACEOF
 
44332
cat confdefs.h >>conftest.$ac_ext
 
44333
cat >>conftest.$ac_ext <<_ACEOF
 
44334
/* end confdefs.h.  */
 
44335
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
44336
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
44337
#define $ac_func innocuous_$ac_func
 
44338
 
 
44339
/* System header to define __stub macros and hopefully few prototypes,
 
44340
    which can conflict with char $ac_func (); below.
 
44341
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
44342
    <limits.h> exists even on freestanding compilers.  */
 
44343
 
 
44344
#ifdef __STDC__
 
44345
# include <limits.h>
 
44346
#else
 
44347
# include <assert.h>
 
44348
#endif
 
44349
 
 
44350
#undef $ac_func
 
44351
 
 
44352
/* Override any gcc2 internal prototype to avoid an error.  */
 
44353
#ifdef __cplusplus
 
44354
extern "C"
 
44355
{
 
44356
#endif
 
44357
/* We use char because int might match the return type of a gcc2
 
44358
   builtin and then its argument prototype would still apply.  */
 
44359
char $ac_func ();
 
44360
/* The GNU C library defines this for functions which it implements
 
44361
    to always fail with ENOSYS.  Some functions are actually named
 
44362
    something starting with __ and the normal name is an alias.  */
 
44363
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
44364
choke me
 
44365
#else
 
44366
char (*f) () = $ac_func;
 
44367
#endif
 
44368
#ifdef __cplusplus
 
44369
}
 
44370
#endif
 
44371
 
 
44372
int
 
44373
main ()
 
44374
{
 
44375
return f != $ac_func;
 
44376
  ;
 
44377
  return 0;
 
44378
}
 
44379
_ACEOF
 
44380
rm -f conftest.$ac_objext conftest$ac_exeext
 
44381
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
44382
  (eval $ac_link) 2>conftest.er1
 
44383
  ac_status=$?
 
44384
  grep -v '^ *+' conftest.er1 >conftest.err
 
44385
  rm -f conftest.er1
 
44386
  cat conftest.err >&5
 
44387
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
44388
  (exit $ac_status); } &&
 
44389
         { ac_try='test -z "$ac_c_werror_flag"
 
44390
                         || test ! -s conftest.err'
17303
44391
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17304
44392
  (eval $ac_try) 2>&5
17305
44393
  ac_status=$?
17396
44484
  cat conftest.err >&5
17397
44485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398
44486
  (exit $ac_status); } &&
17399
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
44487
         { ac_try='test -z "$ac_c_werror_flag"
 
44488
                         || test ! -s conftest.err'
17400
44489
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17401
44490
  (eval $ac_try) 2>&5
17402
44491
  ac_status=$?
17502
44591
  cat conftest.err >&5
17503
44592
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504
44593
  (exit $ac_status); } &&
17505
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
44594
         { ac_try='test -z "$ac_c_werror_flag"
 
44595
                         || test ! -s conftest.err'
17506
44596
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17507
44597
  (eval $ac_try) 2>&5
17508
44598
  ac_status=$?
17605
44695
  cat conftest.err >&5
17606
44696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607
44697
  (exit $ac_status); } &&
17608
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
44698
         { ac_try='test -z "$ac_c_werror_flag"
 
44699
                         || test ! -s conftest.err'
17609
44700
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17610
44701
  (eval $ac_try) 2>&5
17611
44702
  ac_status=$?
17637
44728
fi
17638
44729
done
17639
44730
 
 
44731
 
 
44732
#
 
44733
# Check for if_nametoindex() for IPv6 scoped addresses support
 
44734
#
 
44735
echo "$as_me:$LINENO: checking for if_nametoindex" >&5
 
44736
echo $ECHO_N "checking for if_nametoindex... $ECHO_C" >&6
 
44737
if test "${ac_cv_func_if_nametoindex+set}" = set; then
 
44738
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
44739
else
 
44740
  cat >conftest.$ac_ext <<_ACEOF
 
44741
/* confdefs.h.  */
 
44742
_ACEOF
 
44743
cat confdefs.h >>conftest.$ac_ext
 
44744
cat >>conftest.$ac_ext <<_ACEOF
 
44745
/* end confdefs.h.  */
 
44746
/* Define if_nametoindex to an innocuous variant, in case <limits.h> declares if_nametoindex.
 
44747
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
44748
#define if_nametoindex innocuous_if_nametoindex
 
44749
 
 
44750
/* System header to define __stub macros and hopefully few prototypes,
 
44751
    which can conflict with char if_nametoindex (); below.
 
44752
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
44753
    <limits.h> exists even on freestanding compilers.  */
 
44754
 
 
44755
#ifdef __STDC__
 
44756
# include <limits.h>
 
44757
#else
 
44758
# include <assert.h>
 
44759
#endif
 
44760
 
 
44761
#undef if_nametoindex
 
44762
 
 
44763
/* Override any gcc2 internal prototype to avoid an error.  */
 
44764
#ifdef __cplusplus
 
44765
extern "C"
 
44766
{
 
44767
#endif
 
44768
/* We use char because int might match the return type of a gcc2
 
44769
   builtin and then its argument prototype would still apply.  */
 
44770
char if_nametoindex ();
 
44771
/* The GNU C library defines this for functions which it implements
 
44772
    to always fail with ENOSYS.  Some functions are actually named
 
44773
    something starting with __ and the normal name is an alias.  */
 
44774
#if defined (__stub_if_nametoindex) || defined (__stub___if_nametoindex)
 
44775
choke me
 
44776
#else
 
44777
char (*f) () = if_nametoindex;
 
44778
#endif
 
44779
#ifdef __cplusplus
 
44780
}
 
44781
#endif
 
44782
 
 
44783
int
 
44784
main ()
 
44785
{
 
44786
return f != if_nametoindex;
 
44787
  ;
 
44788
  return 0;
 
44789
}
 
44790
_ACEOF
 
44791
rm -f conftest.$ac_objext conftest$ac_exeext
 
44792
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
44793
  (eval $ac_link) 2>conftest.er1
 
44794
  ac_status=$?
 
44795
  grep -v '^ *+' conftest.er1 >conftest.err
 
44796
  rm -f conftest.er1
 
44797
  cat conftest.err >&5
 
44798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
44799
  (exit $ac_status); } &&
 
44800
         { ac_try='test -z "$ac_c_werror_flag"
 
44801
                         || test ! -s conftest.err'
 
44802
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
44803
  (eval $ac_try) 2>&5
 
44804
  ac_status=$?
 
44805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
44806
  (exit $ac_status); }; } &&
 
44807
         { ac_try='test -s conftest$ac_exeext'
 
44808
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
44809
  (eval $ac_try) 2>&5
 
44810
  ac_status=$?
 
44811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
44812
  (exit $ac_status); }; }; then
 
44813
  ac_cv_func_if_nametoindex=yes
 
44814
else
 
44815
  echo "$as_me: failed program was:" >&5
 
44816
sed 's/^/| /' conftest.$ac_ext >&5
 
44817
 
 
44818
ac_cv_func_if_nametoindex=no
 
44819
fi
 
44820
rm -f conftest.err conftest.$ac_objext \
 
44821
      conftest$ac_exeext conftest.$ac_ext
 
44822
fi
 
44823
echo "$as_me:$LINENO: result: $ac_cv_func_if_nametoindex" >&5
 
44824
echo "${ECHO_T}$ac_cv_func_if_nametoindex" >&6
 
44825
if test $ac_cv_func_if_nametoindex = yes; then
 
44826
  ac_cv_have_if_nametoindex=yes
 
44827
else
 
44828
  ac_cv_have_if_nametoindex=no
 
44829
fi
 
44830
 
 
44831
case $ac_cv_have_if_nametoindex in
 
44832
 no)
 
44833
        case "$host" in
 
44834
        *-hp-hpux*)
 
44835
                echo "$as_me:$LINENO: checking for if_nametoindex in -lipv6" >&5
 
44836
echo $ECHO_N "checking for if_nametoindex in -lipv6... $ECHO_C" >&6
 
44837
if test "${ac_cv_lib_ipv6_if_nametoindex+set}" = set; then
 
44838
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
44839
else
 
44840
  ac_check_lib_save_LIBS=$LIBS
 
44841
LIBS="-lipv6  $LIBS"
 
44842
cat >conftest.$ac_ext <<_ACEOF
 
44843
/* confdefs.h.  */
 
44844
_ACEOF
 
44845
cat confdefs.h >>conftest.$ac_ext
 
44846
cat >>conftest.$ac_ext <<_ACEOF
 
44847
/* end confdefs.h.  */
 
44848
 
 
44849
/* Override any gcc2 internal prototype to avoid an error.  */
 
44850
#ifdef __cplusplus
 
44851
extern "C"
 
44852
#endif
 
44853
/* We use char because int might match the return type of a gcc2
 
44854
   builtin and then its argument prototype would still apply.  */
 
44855
char if_nametoindex ();
 
44856
int
 
44857
main ()
 
44858
{
 
44859
if_nametoindex ();
 
44860
  ;
 
44861
  return 0;
 
44862
}
 
44863
_ACEOF
 
44864
rm -f conftest.$ac_objext conftest$ac_exeext
 
44865
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
44866
  (eval $ac_link) 2>conftest.er1
 
44867
  ac_status=$?
 
44868
  grep -v '^ *+' conftest.er1 >conftest.err
 
44869
  rm -f conftest.er1
 
44870
  cat conftest.err >&5
 
44871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
44872
  (exit $ac_status); } &&
 
44873
         { ac_try='test -z "$ac_c_werror_flag"
 
44874
                         || test ! -s conftest.err'
 
44875
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
44876
  (eval $ac_try) 2>&5
 
44877
  ac_status=$?
 
44878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
44879
  (exit $ac_status); }; } &&
 
44880
         { ac_try='test -s conftest$ac_exeext'
 
44881
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
44882
  (eval $ac_try) 2>&5
 
44883
  ac_status=$?
 
44884
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
44885
  (exit $ac_status); }; }; then
 
44886
  ac_cv_lib_ipv6_if_nametoindex=yes
 
44887
else
 
44888
  echo "$as_me: failed program was:" >&5
 
44889
sed 's/^/| /' conftest.$ac_ext >&5
 
44890
 
 
44891
ac_cv_lib_ipv6_if_nametoindex=no
 
44892
fi
 
44893
rm -f conftest.err conftest.$ac_objext \
 
44894
      conftest$ac_exeext conftest.$ac_ext
 
44895
LIBS=$ac_check_lib_save_LIBS
 
44896
fi
 
44897
echo "$as_me:$LINENO: result: $ac_cv_lib_ipv6_if_nametoindex" >&5
 
44898
echo "${ECHO_T}$ac_cv_lib_ipv6_if_nametoindex" >&6
 
44899
if test $ac_cv_lib_ipv6_if_nametoindex = yes; then
 
44900
  ac_cv_have_if_nametoindex=yes
 
44901
                                LIBS="-lipv6 $LIBS"
 
44902
fi
 
44903
 
 
44904
        ;;
 
44905
        esac
 
44906
esac
 
44907
case $ac_cv_have_if_nametoindex in
 
44908
 yes)
 
44909
 
 
44910
cat >>confdefs.h <<\_ACEOF
 
44911
#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1
 
44912
_ACEOF
 
44913
 
 
44914
        ;;
 
44915
esac
 
44916
 
17640
44917
echo "$as_me:$LINENO: checking for inet_ntop" >&5
17641
44918
echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
17642
44919
if test "${ac_cv_func_inet_ntop+set}" = set; then
17702
44979
  cat conftest.err >&5
17703
44980
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704
44981
  (exit $ac_status); } &&
17705
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
44982
         { ac_try='test -z "$ac_c_werror_flag"
 
44983
                         || test ! -s conftest.err'
17706
44984
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17707
44985
  (eval $ac_try) 2>&5
17708
44986
  ac_status=$?
17736
45014
 
17737
45015
fi
17738
45016
 
 
45017
echo "$as_me:$LINENO: checking for inet_pton" >&5
 
45018
echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
 
45019
if test "${ac_cv_func_inet_pton+set}" = set; then
 
45020
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
45021
else
 
45022
  cat >conftest.$ac_ext <<_ACEOF
 
45023
/* confdefs.h.  */
 
45024
_ACEOF
 
45025
cat confdefs.h >>conftest.$ac_ext
 
45026
cat >>conftest.$ac_ext <<_ACEOF
 
45027
/* end confdefs.h.  */
 
45028
/* Define inet_pton to an innocuous variant, in case <limits.h> declares inet_pton.
 
45029
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
45030
#define inet_pton innocuous_inet_pton
 
45031
 
 
45032
/* System header to define __stub macros and hopefully few prototypes,
 
45033
    which can conflict with char inet_pton (); below.
 
45034
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
45035
    <limits.h> exists even on freestanding compilers.  */
 
45036
 
 
45037
#ifdef __STDC__
 
45038
# include <limits.h>
 
45039
#else
 
45040
# include <assert.h>
 
45041
#endif
 
45042
 
 
45043
#undef inet_pton
 
45044
 
 
45045
/* Override any gcc2 internal prototype to avoid an error.  */
 
45046
#ifdef __cplusplus
 
45047
extern "C"
 
45048
{
 
45049
#endif
 
45050
/* We use char because int might match the return type of a gcc2
 
45051
   builtin and then its argument prototype would still apply.  */
 
45052
char inet_pton ();
 
45053
/* The GNU C library defines this for functions which it implements
 
45054
    to always fail with ENOSYS.  Some functions are actually named
 
45055
    something starting with __ and the normal name is an alias.  */
 
45056
#if defined (__stub_inet_pton) || defined (__stub___inet_pton)
 
45057
choke me
 
45058
#else
 
45059
char (*f) () = inet_pton;
 
45060
#endif
 
45061
#ifdef __cplusplus
 
45062
}
 
45063
#endif
 
45064
 
 
45065
int
 
45066
main ()
 
45067
{
 
45068
return f != inet_pton;
 
45069
  ;
 
45070
  return 0;
 
45071
}
 
45072
_ACEOF
 
45073
rm -f conftest.$ac_objext conftest$ac_exeext
 
45074
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
45075
  (eval $ac_link) 2>conftest.er1
 
45076
  ac_status=$?
 
45077
  grep -v '^ *+' conftest.er1 >conftest.err
 
45078
  rm -f conftest.er1
 
45079
  cat conftest.err >&5
 
45080
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
45081
  (exit $ac_status); } &&
 
45082
         { ac_try='test -z "$ac_c_werror_flag"
 
45083
                         || test ! -s conftest.err'
 
45084
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
45085
  (eval $ac_try) 2>&5
 
45086
  ac_status=$?
 
45087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
45088
  (exit $ac_status); }; } &&
 
45089
         { ac_try='test -s conftest$ac_exeext'
 
45090
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
45091
  (eval $ac_try) 2>&5
 
45092
  ac_status=$?
 
45093
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
45094
  (exit $ac_status); }; }; then
 
45095
  ac_cv_func_inet_pton=yes
 
45096
else
 
45097
  echo "$as_me: failed program was:" >&5
 
45098
sed 's/^/| /' conftest.$ac_ext >&5
 
45099
 
 
45100
ac_cv_func_inet_pton=no
 
45101
fi
 
45102
rm -f conftest.err conftest.$ac_objext \
 
45103
      conftest$ac_exeext conftest.$ac_ext
 
45104
fi
 
45105
echo "$as_me:$LINENO: result: $ac_cv_func_inet_pton" >&5
 
45106
echo "${ECHO_T}$ac_cv_func_inet_pton" >&6
 
45107
if test $ac_cv_func_inet_pton = yes; then
 
45108
  :
 
45109
else
 
45110
 
 
45111
cat >>confdefs.h <<\_ACEOF
 
45112
#define ISC_PLATFORM_NEEDPTON 1
 
45113
_ACEOF
 
45114
 
 
45115
fi
 
45116
 
 
45117
echo "$as_me:$LINENO: checking for inet_aton" >&5
 
45118
echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
 
45119
if test "${ac_cv_func_inet_aton+set}" = set; then
 
45120
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
45121
else
 
45122
  cat >conftest.$ac_ext <<_ACEOF
 
45123
/* confdefs.h.  */
 
45124
_ACEOF
 
45125
cat confdefs.h >>conftest.$ac_ext
 
45126
cat >>conftest.$ac_ext <<_ACEOF
 
45127
/* end confdefs.h.  */
 
45128
/* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton.
 
45129
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
45130
#define inet_aton innocuous_inet_aton
 
45131
 
 
45132
/* System header to define __stub macros and hopefully few prototypes,
 
45133
    which can conflict with char inet_aton (); below.
 
45134
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
45135
    <limits.h> exists even on freestanding compilers.  */
 
45136
 
 
45137
#ifdef __STDC__
 
45138
# include <limits.h>
 
45139
#else
 
45140
# include <assert.h>
 
45141
#endif
 
45142
 
 
45143
#undef inet_aton
 
45144
 
 
45145
/* Override any gcc2 internal prototype to avoid an error.  */
 
45146
#ifdef __cplusplus
 
45147
extern "C"
 
45148
{
 
45149
#endif
 
45150
/* We use char because int might match the return type of a gcc2
 
45151
   builtin and then its argument prototype would still apply.  */
 
45152
char inet_aton ();
 
45153
/* The GNU C library defines this for functions which it implements
 
45154
    to always fail with ENOSYS.  Some functions are actually named
 
45155
    something starting with __ and the normal name is an alias.  */
 
45156
#if defined (__stub_inet_aton) || defined (__stub___inet_aton)
 
45157
choke me
 
45158
#else
 
45159
char (*f) () = inet_aton;
 
45160
#endif
 
45161
#ifdef __cplusplus
 
45162
}
 
45163
#endif
 
45164
 
 
45165
int
 
45166
main ()
 
45167
{
 
45168
return f != inet_aton;
 
45169
  ;
 
45170
  return 0;
 
45171
}
 
45172
_ACEOF
 
45173
rm -f conftest.$ac_objext conftest$ac_exeext
 
45174
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
45175
  (eval $ac_link) 2>conftest.er1
 
45176
  ac_status=$?
 
45177
  grep -v '^ *+' conftest.er1 >conftest.err
 
45178
  rm -f conftest.er1
 
45179
  cat conftest.err >&5
 
45180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
45181
  (exit $ac_status); } &&
 
45182
         { ac_try='test -z "$ac_c_werror_flag"
 
45183
                         || test ! -s conftest.err'
 
45184
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
45185
  (eval $ac_try) 2>&5
 
45186
  ac_status=$?
 
45187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
45188
  (exit $ac_status); }; } &&
 
45189
         { ac_try='test -s conftest$ac_exeext'
 
45190
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
45191
  (eval $ac_try) 2>&5
 
45192
  ac_status=$?
 
45193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
45194
  (exit $ac_status); }; }; then
 
45195
  ac_cv_func_inet_aton=yes
 
45196
else
 
45197
  echo "$as_me: failed program was:" >&5
 
45198
sed 's/^/| /' conftest.$ac_ext >&5
 
45199
 
 
45200
ac_cv_func_inet_aton=no
 
45201
fi
 
45202
rm -f conftest.err conftest.$ac_objext \
 
45203
      conftest$ac_exeext conftest.$ac_ext
 
45204
fi
 
45205
echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
 
45206
echo "${ECHO_T}$ac_cv_func_inet_aton" >&6
 
45207
if test $ac_cv_func_inet_aton = yes; then
 
45208
  :
 
45209
else
 
45210
 
 
45211
cat >>confdefs.h <<\_ACEOF
 
45212
#define ISC_PLATFORM_NEEDATON 1
 
45213
_ACEOF
 
45214
 
 
45215
fi
 
45216
 
17739
45217
 
17740
45218
 
17741
45219
 
17809
45287
  cat conftest.err >&5
17810
45288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811
45289
  (exit $ac_status); } &&
17812
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
45290
         { ac_try='test -z "$ac_c_werror_flag"
 
45291
                         || test ! -s conftest.err'
17813
45292
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17814
45293
  (eval $ac_try) 2>&5
17815
45294
  ac_status=$?
17914
45393
  cat conftest.err >&5
17915
45394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916
45395
  (exit $ac_status); } &&
17917
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
45396
         { ac_try='test -z "$ac_c_werror_flag"
 
45397
                         || test ! -s conftest.err'
17918
45398
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17919
45399
  (eval $ac_try) 2>&5
17920
45400
  ac_status=$?
18017
45497
  cat conftest.err >&5
18018
45498
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019
45499
  (exit $ac_status); } &&
18020
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
45500
         { ac_try='test -z "$ac_c_werror_flag"
 
45501
                         || test ! -s conftest.err'
18021
45502
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18022
45503
  (eval $ac_try) 2>&5
18023
45504
  ac_status=$?
18056
45537
 *-*-irix[45]*)
18057
45538
    # Just a stub in "old" Irix.  Idiots.
18058
45539
    ;;
 
45540
 *-*-linux*)
 
45541
    # there, but more trouble than it is worth for now (resolver problems)
 
45542
    ;;
18059
45543
 *-*-qnx*)
18060
45544
    # Apparently there but not working in QNX.  Idiots?
18061
45545
    ;;
18134
45618
  cat conftest.err >&5
18135
45619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136
45620
  (exit $ac_status); } &&
18137
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
45621
         { ac_try='test -z "$ac_c_werror_flag"
 
45622
                         || test ! -s conftest.err'
18138
45623
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18139
45624
  (eval $ac_try) 2>&5
18140
45625
  ac_status=$?
18235
45720
  cat conftest.err >&5
18236
45721
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237
45722
  (exit $ac_status); } &&
18238
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
45723
         { ac_try='test -z "$ac_c_werror_flag"
 
45724
                         || test ! -s conftest.err'
18239
45725
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18240
45726
  (eval $ac_try) 2>&5
18241
45727
  ac_status=$?
18337
45823
  cat conftest.err >&5
18338
45824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339
45825
  (exit $ac_status); } &&
18340
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
45826
         { ac_try='test -z "$ac_c_werror_flag"
 
45827
                         || test ! -s conftest.err'
18341
45828
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18342
45829
  (eval $ac_try) 2>&5
18343
45830
  ac_status=$?
18373
45860
esac
18374
45861
 
18375
45862
 
18376
 
 
18377
 
 
18378
 
for ac_func in mrand48 srand48 nice nlist
 
45863
for ac_func in nice nlist
18379
45864
do
18380
45865
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18381
45866
echo "$as_me:$LINENO: checking for $ac_func" >&5
18443
45928
  cat conftest.err >&5
18444
45929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445
45930
  (exit $ac_status); } &&
18446
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
45931
         { ac_try='test -z "$ac_c_werror_flag"
 
45932
                         || test ! -s conftest.err'
18447
45933
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18448
45934
  (eval $ac_try) 2>&5
18449
45935
  ac_status=$?
18549
46035
  cat conftest.err >&5
18550
46036
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551
46037
  (exit $ac_status); } &&
18552
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
46038
         { ac_try='test -z "$ac_c_werror_flag"
 
46039
                         || test ! -s conftest.err'
18553
46040
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18554
46041
  (eval $ac_try) 2>&5
18555
46042
  ac_status=$?
18588
46075
 
18589
46076
 
18590
46077
 
18591
 
for ac_func in plock pututline pututxline readlink rtprio
18592
 
do
18593
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18594
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
18595
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18596
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
18597
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18598
 
else
18599
 
  cat >conftest.$ac_ext <<_ACEOF
18600
 
/* confdefs.h.  */
18601
 
_ACEOF
18602
 
cat confdefs.h >>conftest.$ac_ext
18603
 
cat >>conftest.$ac_ext <<_ACEOF
18604
 
/* end confdefs.h.  */
18605
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18606
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18607
 
#define $ac_func innocuous_$ac_func
18608
 
 
18609
 
/* System header to define __stub macros and hopefully few prototypes,
18610
 
    which can conflict with char $ac_func (); below.
18611
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18612
 
    <limits.h> exists even on freestanding compilers.  */
18613
 
 
18614
 
#ifdef __STDC__
18615
 
# include <limits.h>
18616
 
#else
18617
 
# include <assert.h>
18618
 
#endif
18619
 
 
18620
 
#undef $ac_func
18621
 
 
18622
 
/* Override any gcc2 internal prototype to avoid an error.  */
18623
 
#ifdef __cplusplus
18624
 
extern "C"
18625
 
{
18626
 
#endif
18627
 
/* We use char because int might match the return type of a gcc2
18628
 
   builtin and then its argument prototype would still apply.  */
18629
 
char $ac_func ();
18630
 
/* The GNU C library defines this for functions which it implements
18631
 
    to always fail with ENOSYS.  Some functions are actually named
18632
 
    something starting with __ and the normal name is an alias.  */
18633
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18634
 
choke me
18635
 
#else
18636
 
char (*f) () = $ac_func;
18637
 
#endif
18638
 
#ifdef __cplusplus
18639
 
}
18640
 
#endif
18641
 
 
18642
 
int
18643
 
main ()
18644
 
{
18645
 
return f != $ac_func;
18646
 
  ;
18647
 
  return 0;
18648
 
}
18649
 
_ACEOF
18650
 
rm -f conftest.$ac_objext conftest$ac_exeext
18651
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18652
 
  (eval $ac_link) 2>conftest.er1
18653
 
  ac_status=$?
18654
 
  grep -v '^ *+' conftest.er1 >conftest.err
18655
 
  rm -f conftest.er1
18656
 
  cat conftest.err >&5
18657
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658
 
  (exit $ac_status); } &&
18659
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18660
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18661
 
  (eval $ac_try) 2>&5
18662
 
  ac_status=$?
18663
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664
 
  (exit $ac_status); }; } &&
18665
 
         { ac_try='test -s conftest$ac_exeext'
18666
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18667
 
  (eval $ac_try) 2>&5
18668
 
  ac_status=$?
18669
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670
 
  (exit $ac_status); }; }; then
18671
 
  eval "$as_ac_var=yes"
18672
 
else
18673
 
  echo "$as_me: failed program was:" >&5
18674
 
sed 's/^/| /' conftest.$ac_ext >&5
18675
 
 
18676
 
eval "$as_ac_var=no"
18677
 
fi
18678
 
rm -f conftest.err conftest.$ac_objext \
18679
 
      conftest$ac_exeext conftest.$ac_ext
18680
 
fi
18681
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18682
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18683
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
18684
 
  cat >>confdefs.h <<_ACEOF
18685
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18686
 
_ACEOF
18687
 
 
18688
 
fi
18689
 
done
18690
 
 
18691
 
case "$ac_cv_func_mrand48" in
18692
 
 yes) ;;
18693
 
 *)
18694
 
for ac_func in random
18695
 
do
18696
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18697
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
18698
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18699
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
18700
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18701
 
else
18702
 
  cat >conftest.$ac_ext <<_ACEOF
18703
 
/* confdefs.h.  */
18704
 
_ACEOF
18705
 
cat confdefs.h >>conftest.$ac_ext
18706
 
cat >>conftest.$ac_ext <<_ACEOF
18707
 
/* end confdefs.h.  */
18708
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18709
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18710
 
#define $ac_func innocuous_$ac_func
18711
 
 
18712
 
/* System header to define __stub macros and hopefully few prototypes,
18713
 
    which can conflict with char $ac_func (); below.
18714
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18715
 
    <limits.h> exists even on freestanding compilers.  */
18716
 
 
18717
 
#ifdef __STDC__
18718
 
# include <limits.h>
18719
 
#else
18720
 
# include <assert.h>
18721
 
#endif
18722
 
 
18723
 
#undef $ac_func
18724
 
 
18725
 
/* Override any gcc2 internal prototype to avoid an error.  */
18726
 
#ifdef __cplusplus
18727
 
extern "C"
18728
 
{
18729
 
#endif
18730
 
/* We use char because int might match the return type of a gcc2
18731
 
   builtin and then its argument prototype would still apply.  */
18732
 
char $ac_func ();
18733
 
/* The GNU C library defines this for functions which it implements
18734
 
    to always fail with ENOSYS.  Some functions are actually named
18735
 
    something starting with __ and the normal name is an alias.  */
18736
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18737
 
choke me
18738
 
#else
18739
 
char (*f) () = $ac_func;
18740
 
#endif
18741
 
#ifdef __cplusplus
18742
 
}
18743
 
#endif
18744
 
 
18745
 
int
18746
 
main ()
18747
 
{
18748
 
return f != $ac_func;
18749
 
  ;
18750
 
  return 0;
18751
 
}
18752
 
_ACEOF
18753
 
rm -f conftest.$ac_objext conftest$ac_exeext
18754
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18755
 
  (eval $ac_link) 2>conftest.er1
18756
 
  ac_status=$?
18757
 
  grep -v '^ *+' conftest.er1 >conftest.err
18758
 
  rm -f conftest.er1
18759
 
  cat conftest.err >&5
18760
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761
 
  (exit $ac_status); } &&
18762
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18763
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18764
 
  (eval $ac_try) 2>&5
18765
 
  ac_status=$?
18766
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767
 
  (exit $ac_status); }; } &&
18768
 
         { ac_try='test -s conftest$ac_exeext'
18769
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18770
 
  (eval $ac_try) 2>&5
18771
 
  ac_status=$?
18772
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773
 
  (exit $ac_status); }; }; then
18774
 
  eval "$as_ac_var=yes"
18775
 
else
18776
 
  echo "$as_me: failed program was:" >&5
18777
 
sed 's/^/| /' conftest.$ac_ext >&5
18778
 
 
18779
 
eval "$as_ac_var=no"
18780
 
fi
18781
 
rm -f conftest.err conftest.$ac_objext \
18782
 
      conftest$ac_exeext conftest.$ac_ext
18783
 
fi
18784
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18785
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18786
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
18787
 
  cat >>confdefs.h <<_ACEOF
18788
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18789
 
_ACEOF
18790
 
 
18791
 
else
18792
 
  case $LIBOBJS in
18793
 
    "$ac_func.$ac_objext"   | \
18794
 
  *" $ac_func.$ac_objext"   | \
18795
 
    "$ac_func.$ac_objext "* | \
18796
 
  *" $ac_func.$ac_objext "* ) ;;
18797
 
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
18798
 
esac
18799
 
 
18800
 
fi
18801
 
done
18802
 
 
18803
 
 ;;
18804
 
esac
 
46078
 
 
46079
for ac_func in plock pututline pututxline readlink recvmsg rtprio
 
46080
do
 
46081
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
46082
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
46083
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
46084
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
46085
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
46086
else
 
46087
  cat >conftest.$ac_ext <<_ACEOF
 
46088
/* confdefs.h.  */
 
46089
_ACEOF
 
46090
cat confdefs.h >>conftest.$ac_ext
 
46091
cat >>conftest.$ac_ext <<_ACEOF
 
46092
/* end confdefs.h.  */
 
46093
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
46094
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
46095
#define $ac_func innocuous_$ac_func
 
46096
 
 
46097
/* System header to define __stub macros and hopefully few prototypes,
 
46098
    which can conflict with char $ac_func (); below.
 
46099
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
46100
    <limits.h> exists even on freestanding compilers.  */
 
46101
 
 
46102
#ifdef __STDC__
 
46103
# include <limits.h>
 
46104
#else
 
46105
# include <assert.h>
 
46106
#endif
 
46107
 
 
46108
#undef $ac_func
 
46109
 
 
46110
/* Override any gcc2 internal prototype to avoid an error.  */
 
46111
#ifdef __cplusplus
 
46112
extern "C"
 
46113
{
 
46114
#endif
 
46115
/* We use char because int might match the return type of a gcc2
 
46116
   builtin and then its argument prototype would still apply.  */
 
46117
char $ac_func ();
 
46118
/* The GNU C library defines this for functions which it implements
 
46119
    to always fail with ENOSYS.  Some functions are actually named
 
46120
    something starting with __ and the normal name is an alias.  */
 
46121
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
46122
choke me
 
46123
#else
 
46124
char (*f) () = $ac_func;
 
46125
#endif
 
46126
#ifdef __cplusplus
 
46127
}
 
46128
#endif
 
46129
 
 
46130
int
 
46131
main ()
 
46132
{
 
46133
return f != $ac_func;
 
46134
  ;
 
46135
  return 0;
 
46136
}
 
46137
_ACEOF
 
46138
rm -f conftest.$ac_objext conftest$ac_exeext
 
46139
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
46140
  (eval $ac_link) 2>conftest.er1
 
46141
  ac_status=$?
 
46142
  grep -v '^ *+' conftest.er1 >conftest.err
 
46143
  rm -f conftest.er1
 
46144
  cat conftest.err >&5
 
46145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
46146
  (exit $ac_status); } &&
 
46147
         { ac_try='test -z "$ac_c_werror_flag"
 
46148
                         || test ! -s conftest.err'
 
46149
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
46150
  (eval $ac_try) 2>&5
 
46151
  ac_status=$?
 
46152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
46153
  (exit $ac_status); }; } &&
 
46154
         { ac_try='test -s conftest$ac_exeext'
 
46155
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
46156
  (eval $ac_try) 2>&5
 
46157
  ac_status=$?
 
46158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
46159
  (exit $ac_status); }; }; then
 
46160
  eval "$as_ac_var=yes"
 
46161
else
 
46162
  echo "$as_me: failed program was:" >&5
 
46163
sed 's/^/| /' conftest.$ac_ext >&5
 
46164
 
 
46165
eval "$as_ac_var=no"
 
46166
fi
 
46167
rm -f conftest.err conftest.$ac_objext \
 
46168
      conftest$ac_exeext conftest.$ac_ext
 
46169
fi
 
46170
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
46171
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
46172
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
46173
  cat >>confdefs.h <<_ACEOF
 
46174
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
46175
_ACEOF
 
46176
 
 
46177
fi
 
46178
done
 
46179
 
18805
46180
case "$host" in
18806
46181
 *-*-aix[45]*)
18807
46182
    # Just a stub in AIX 4.  Idiots.
18878
46253
  cat conftest.err >&5
18879
46254
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880
46255
  (exit $ac_status); } &&
18881
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
46256
         { ac_try='test -z "$ac_c_werror_flag"
 
46257
                         || test ! -s conftest.err'
18882
46258
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18883
46259
  (eval $ac_try) 2>&5
18884
46260
  ac_status=$?
18984
46360
  cat conftest.err >&5
18985
46361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986
46362
  (exit $ac_status); } &&
18987
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
46363
         { ac_try='test -z "$ac_c_werror_flag"
 
46364
                         || test ! -s conftest.err'
18988
46365
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18989
46366
  (eval $ac_try) 2>&5
18990
46367
  ac_status=$?
19085
46462
  cat conftest.err >&5
19086
46463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087
46464
  (exit $ac_status); } &&
19088
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
46465
         { ac_try='test -z "$ac_c_werror_flag"
 
46466
                         || test ! -s conftest.err'
19089
46467
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19090
46468
  (eval $ac_try) 2>&5
19091
46469
  ac_status=$?
19186
46564
  cat conftest.err >&5
19187
46565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188
46566
  (exit $ac_status); } &&
19189
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
46567
         { ac_try='test -z "$ac_c_werror_flag"
 
46568
                         || test ! -s conftest.err'
19190
46569
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19191
46570
  (eval $ac_try) 2>&5
19192
46571
  ac_status=$?
19294
46673
  cat conftest.err >&5
19295
46674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296
46675
  (exit $ac_status); } &&
19297
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
46676
         { ac_try='test -z "$ac_c_werror_flag"
 
46677
                         || test ! -s conftest.err'
19298
46678
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19299
46679
  (eval $ac_try) 2>&5
19300
46680
  ac_status=$?
19401
46781
  cat conftest.err >&5
19402
46782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403
46783
  (exit $ac_status); } &&
19404
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
46784
         { ac_try='test -z "$ac_c_werror_flag"
 
46785
                         || test ! -s conftest.err'
19405
46786
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19406
46787
  (eval $ac_try) 2>&5
19407
46788
  ac_status=$?
19505
46886
  cat conftest.err >&5
19506
46887
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507
46888
  (exit $ac_status); } &&
19508
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
46889
         { ac_try='test -z "$ac_c_werror_flag"
 
46890
                         || test ! -s conftest.err'
19509
46891
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19510
46892
  (eval $ac_try) 2>&5
19511
46893
  ac_status=$?
19606
46988
  cat conftest.err >&5
19607
46989
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608
46990
  (exit $ac_status); } &&
19609
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
46991
         { ac_try='test -z "$ac_c_werror_flag"
 
46992
                         || test ! -s conftest.err'
19610
46993
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19611
46994
  (eval $ac_try) 2>&5
19612
46995
  ac_status=$?
19721
47104
  cat conftest.err >&5
19722
47105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723
47106
  (exit $ac_status); } &&
19724
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
47107
         { ac_try='test -z "$ac_c_werror_flag"
 
47108
                         || test ! -s conftest.err'
19725
47109
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726
47110
  (eval $ac_try) 2>&5
19727
47111
  ac_status=$?
19828
47212
  cat conftest.err >&5
19829
47213
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830
47214
  (exit $ac_status); } &&
19831
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
47215
         { ac_try='test -z "$ac_c_werror_flag"
 
47216
                         || test ! -s conftest.err'
19832
47217
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19833
47218
  (eval $ac_try) 2>&5
19834
47219
  ac_status=$?
19935
47320
  cat conftest.err >&5
19936
47321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937
47322
  (exit $ac_status); } &&
19938
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
47323
         { ac_try='test -z "$ac_c_werror_flag"
 
47324
                         || test ! -s conftest.err'
19939
47325
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940
47326
  (eval $ac_try) 2>&5
19941
47327
  ac_status=$?
19968
47354
done
19969
47355
 
19970
47356
 
 
47357
###
 
47358
 
 
47359
# http://bugs.ntp.isc.org/737
 
47360
case "$ac_cv_func_recvmsg" in
 
47361
 yes)
 
47362
 echo "$as_me:$LINENO: checking if we need extra help to define struct iovec" >&5
 
47363
echo $ECHO_N "checking if we need extra help to define struct iovec... $ECHO_C" >&6
 
47364
 if test "${ac_cv_struct_iovec_help+set}" = set; then
 
47365
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
47366
else
 
47367
   for ac_cv_struct_iovec_help in '0' '1'; do
 
47368
   cat >conftest.$ac_ext <<_ACEOF
 
47369
/* confdefs.h.  */
 
47370
_ACEOF
 
47371
cat confdefs.h >>conftest.$ac_ext
 
47372
cat >>conftest.$ac_ext <<_ACEOF
 
47373
/* end confdefs.h.  */
 
47374
#ifdef HAVE_SYS_TYPES_H
 
47375
#include <sys/types.h>
 
47376
#endif
 
47377
#ifdef HAVE_SYS_SOCKET_H
 
47378
#include <sys/socket.h>
 
47379
#endif
 
47380
#if $ac_cv_struct_iovec_help
 
47381
#include <sys/uio.h>
 
47382
#endif
 
47383
 
 
47384
void foo();
 
47385
void foo() {
 
47386
        ssize_t x;
 
47387
        int s = 0;
 
47388
        struct iovec iov;
 
47389
        struct msghdr mh;
 
47390
        int flags = 0;
 
47391
 
 
47392
        mh.msg_iov = &iov;
 
47393
        x = recvmsg(s, &mh, flags);
 
47394
}
 
47395
int
 
47396
main ()
 
47397
{
 
47398
 
 
47399
  ;
 
47400
  return 0;
 
47401
}
 
47402
_ACEOF
 
47403
rm -f conftest.$ac_objext
 
47404
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
47405
  (eval $ac_compile) 2>conftest.er1
 
47406
  ac_status=$?
 
47407
  grep -v '^ *+' conftest.er1 >conftest.err
 
47408
  rm -f conftest.er1
 
47409
  cat conftest.err >&5
 
47410
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
47411
  (exit $ac_status); } &&
 
47412
         { ac_try='test -z "$ac_c_werror_flag"
 
47413
                         || test ! -s conftest.err'
 
47414
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
47415
  (eval $ac_try) 2>&5
 
47416
  ac_status=$?
 
47417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
47418
  (exit $ac_status); }; } &&
 
47419
         { ac_try='test -s conftest.$ac_objext'
 
47420
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
47421
  (eval $ac_try) 2>&5
 
47422
  ac_status=$?
 
47423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
47424
  (exit $ac_status); }; }; then
 
47425
    ac_worked=yes ; break 1
 
47426
else
 
47427
  echo "$as_me: failed program was:" >&5
 
47428
sed 's/^/| /' conftest.$ac_ext >&5
 
47429
 
 
47430
ac_worked=no
 
47431
fi
 
47432
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
47433
  done
 
47434
 
 
47435
fi
 
47436
    case "$ac_worked$ac_cv_struct_iovec_help" in
 
47437
     yes1)
 
47438
 
 
47439
cat >>confdefs.h <<\_ACEOF
 
47440
#define HAVE_SYS_UIO_H 1
 
47441
_ACEOF
 
47442
 
 
47443
        ans=yes
 
47444
        ;;
 
47445
     *) ans=no
 
47446
    esac
 
47447
    echo "$as_me:$LINENO: result: $ans" >&5
 
47448
echo "${ECHO_T}$ans" >&6
 
47449
    ;;
 
47450
esac
 
47451
 
19971
47452
case "$host" in
19972
47453
 *-*-sunos4*)
19973
47454
 
20010
47491
  cat conftest.err >&5
20011
47492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012
47493
  (exit $ac_status); } &&
20013
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
47494
         { ac_try='test -z "$ac_c_werror_flag"
 
47495
                         || test ! -s conftest.err'
20014
47496
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20015
47497
  (eval $ac_try) 2>&5
20016
47498
  ac_status=$?
20078
47560
  cat conftest.err >&5
20079
47561
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080
47562
  (exit $ac_status); } &&
20081
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
47563
         { ac_try='test -z "$ac_c_werror_flag"
 
47564
                         || test ! -s conftest.err'
20082
47565
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20083
47566
  (eval $ac_try) 2>&5
20084
47567
  ac_status=$?
20158
47641
  cat conftest.err >&5
20159
47642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160
47643
  (exit $ac_status); } &&
20161
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
47644
         { ac_try='test -z "$ac_c_werror_flag"
 
47645
                         || test ! -s conftest.err'
20162
47646
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20163
47647
  (eval $ac_try) 2>&5
20164
47648
  ac_status=$?
20225
47709
  cat conftest.err >&5
20226
47710
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227
47711
  (exit $ac_status); } &&
20228
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
47712
         { ac_try='test -z "$ac_c_werror_flag"
 
47713
                         || test ! -s conftest.err'
20229
47714
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20230
47715
  (eval $ac_try) 2>&5
20231
47716
  ac_status=$?
20297
47782
  cat conftest.err >&5
20298
47783
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299
47784
  (exit $ac_status); } &&
20300
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
47785
         { ac_try='test -z "$ac_c_werror_flag"
 
47786
                         || test ! -s conftest.err'
20301
47787
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20302
47788
  (eval $ac_try) 2>&5
20303
47789
  ac_status=$?
20361
47847
  cat conftest.err >&5
20362
47848
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363
47849
  (exit $ac_status); } &&
20364
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
47850
         { ac_try='test -z "$ac_c_werror_flag"
 
47851
                         || test ! -s conftest.err'
20365
47852
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20366
47853
  (eval $ac_try) 2>&5
20367
47854
  ac_status=$?
20433
47920
  cat conftest.err >&5
20434
47921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435
47922
  (exit $ac_status); } &&
20436
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
47923
         { ac_try='test -z "$ac_c_werror_flag"
 
47924
                         || test ! -s conftest.err'
20437
47925
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20438
47926
  (eval $ac_try) 2>&5
20439
47927
  ac_status=$?
20490
47978
 
20491
47979
 
20492
47980
cat >>confdefs.h <<\_ACEOF
20493
 
#define DECL_MRAND48_0 1
20494
 
_ACEOF
20495
 
 
20496
 
 
20497
 
cat >>confdefs.h <<\_ACEOF
20498
47981
#define DECL_SELECT_0 1
20499
47982
_ACEOF
20500
47983
 
20505
47988
 
20506
47989
 
20507
47990
cat >>confdefs.h <<\_ACEOF
20508
 
#define DECL_SRAND48_0 1
20509
 
_ACEOF
20510
 
 
20511
 
 
20512
 
cat >>confdefs.h <<\_ACEOF
20513
47991
#define DECL_SYSLOG_0 1
20514
47992
_ACEOF
20515
47993
 
20684
48162
 
20685
48163
 
20686
48164
cat >>confdefs.h <<\_ACEOF
20687
 
#define DECL_MRAND48_0 1
20688
 
_ACEOF
20689
 
 
20690
 
 
20691
 
cat >>confdefs.h <<\_ACEOF
20692
48165
#define DECL_RENAME_0 1
20693
48166
_ACEOF
20694
48167
 
20712
48185
#define DECL_SIGVEC_0 1
20713
48186
_ACEOF
20714
48187
 
20715
 
 
20716
 
cat >>confdefs.h <<\_ACEOF
20717
 
#define DECL_SRAND48_0 1
20718
 
_ACEOF
20719
 
 
20720
48188
    case "`basename $ac_cv_prog_CC`" in
20721
48189
     acc*) ;;
20722
48190
     *)
20795
48263
 
20796
48264
 
20797
48265
cat >>confdefs.h <<\_ACEOF
20798
 
#define DECL_MRAND48_0 1
20799
 
_ACEOF
20800
 
 
20801
 
 
20802
 
cat >>confdefs.h <<\_ACEOF
20803
48266
#define DECL_NLIST_0 1
20804
48267
_ACEOF
20805
48268
 
20825
48288
 
20826
48289
 
20827
48290
cat >>confdefs.h <<\_ACEOF
20828
 
#define DECL_SRAND48_0 1
20829
 
_ACEOF
20830
 
 
20831
 
 
20832
 
cat >>confdefs.h <<\_ACEOF
20833
48291
#define DECL_STIME_0 1
20834
48292
_ACEOF
20835
48293
 
20974
48432
 *-*-freebsd*)
20975
48433
    ans=yes
20976
48434
    ;;
20977
 
 *-*-netbsd*)
 
48435
 *-*-netbsd*3.[0-8]*|*-*-netbsd*[0-2].*|*-*-netbsd*3.99.[0-7])
20978
48436
    ans=yes
20979
48437
    ;;
20980
48438
 *-*-openbsd*)
20998
48456
 ;;
20999
48457
esac
21000
48458
 
 
48459
echo "$as_me:$LINENO: checking if the OS misses to clear cached routes when more specific routes become available" >&5
 
48460
echo $ECHO_N "checking if the OS misses to clear cached routes when more specific routes become available... $ECHO_C" >&6
 
48461
if test "${ac_cv_os_routeupdates+set}" = set; then
 
48462
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
48463
else
 
48464
  case "$host" in
 
48465
 *-*-netbsd*)
 
48466
    ans=yes
 
48467
    ;;
 
48468
 *) ans=no
 
48469
    ;;
 
48470
esac
 
48471
ac_cv_os_routeupdates=$ans
 
48472
fi
 
48473
echo "$as_me:$LINENO: result: $ac_cv_os_routeupdates" >&5
 
48474
echo "${ECHO_T}$ac_cv_os_routeupdates" >&6
 
48475
case "$ac_cv_os_routeupdates" in
 
48476
 yes)
 
48477
cat >>confdefs.h <<\_ACEOF
 
48478
#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1
 
48479
_ACEOF
 
48480
 ;;
 
48481
esac
 
48482
 
 
48483
echo "$as_me:$LINENO: checking if the OS needs the wildcard socket set to REUSEADDR for binding interface addresses" >&5
 
48484
echo $ECHO_N "checking if the OS needs the wildcard socket set to REUSEADDR for binding interface addresses... $ECHO_C" >&6
 
48485
if test "${ac_cv_os_wildcardreuse+set}" = set; then
 
48486
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
48487
else
 
48488
  case "$host" in
 
48489
 *-*-linux*)
 
48490
    ans=yes
 
48491
    ;;
 
48492
 *) ans=no
 
48493
    ;;
 
48494
esac
 
48495
ac_cv_os_wildcardreuse=$ans
 
48496
fi
 
48497
echo "$as_me:$LINENO: result: $ac_cv_os_wildcardreuse" >&5
 
48498
echo "${ECHO_T}$ac_cv_os_wildcardreuse" >&6
 
48499
case "$ac_cv_os_wildcardreuse" in
 
48500
 yes)
 
48501
cat >>confdefs.h <<\_ACEOF
 
48502
#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1
 
48503
_ACEOF
 
48504
 ;;
 
48505
esac
 
48506
 
21001
48507
ntp_warning='GRONK'
21002
48508
echo "$as_me:$LINENO: checking if we'll use clock_settime or settimeofday or stime" >&5
21003
48509
echo $ECHO_N "checking if we'll use clock_settime or settimeofday or stime... $ECHO_C" >&6
21054
48560
 ;;
21055
48561
esac
21056
48562
 
21057
 
echo "$as_me:$LINENO: checking for Streams/TLI" >&5
21058
 
echo $ECHO_N "checking for Streams/TLI... $ECHO_C" >&6
21059
 
if test "${ac_cv_var_streams_tli+set}" = set; then
21060
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21061
 
else
21062
 
   case "$ac_cv_header_sys_stropts_h" in
21063
 
  yes)
21064
 
     ans=no
21065
 
     # There must be a better way...
21066
 
     case "$host" in
21067
 
      *-*-ptx*)
21068
 
         ans=yes
21069
 
         ;;
21070
 
     esac
21071
 
     ;;
21072
 
 esac
21073
 
 ac_cv_var_streams_tli=$ans
21074
 
fi
21075
 
echo "$as_me:$LINENO: result: $ac_cv_var_streams_tli" >&5
21076
 
echo "${ECHO_T}$ac_cv_var_streams_tli" >&6
21077
 
case "$ac_cv_var_streams_tli" in
21078
 
 yes)
21079
 
 
21080
 
cat >>confdefs.h <<\_ACEOF
21081
 
#define STREAMS_TLI 1
21082
 
_ACEOF
21083
 
 
21084
 
    ;;
21085
 
esac
21086
 
 
21087
48563
echo "$as_me:$LINENO: checking for SIGIO" >&5
21088
48564
echo $ECHO_N "checking for SIGIO... $ECHO_C" >&6
21089
48565
if test "${ac_cv_hdr_def_sigio+set}" = set; then
21489
48965
echo "$as_me:$LINENO: result: $ntp_ok" >&5
21490
48966
echo "${ECHO_T}$ntp_ok" >&6
21491
48967
 
 
48968
echo "$as_me:$LINENO: checking if we including processing time debugging code" >&5
 
48969
echo $ECHO_N "checking if we including processing time debugging code... $ECHO_C" >&6
 
48970
# Check whether --enable-debug-timing or --disable-debug-timing was given.
 
48971
if test "${enable_debug_timing+set}" = set; then
 
48972
  enableval="$enable_debug_timing"
 
48973
  ntp_ok=$enableval
 
48974
else
 
48975
  ntp_ok=no
 
48976
fi;
 
48977
if test "$ntp_ok" = "yes"; then
 
48978
 
 
48979
cat >>confdefs.h <<\_ACEOF
 
48980
#define DEBUG_TIMING 1
 
48981
_ACEOF
 
48982
 
 
48983
fi
 
48984
echo "$as_me:$LINENO: result: $ntp_ok" >&5
 
48985
echo "${ECHO_T}$ntp_ok" >&6
 
48986
 
21492
48987
echo "$as_me:$LINENO: checking for a the number of minutes in a DST adjustment" >&5
21493
48988
echo $ECHO_N "checking for a the number of minutes in a DST adjustment... $ECHO_C" >&6
21494
48989
# Check whether --enable-dst_minutes or --disable-dst_minutes was given.
21574
49069
echo "${ECHO_T}$ac_cv_var_mcast" >&6
21575
49070
case "$ac_cv_var_mcast" in
21576
49071
 yes)
 
49072
 
21577
49073
cat >>confdefs.h <<\_ACEOF
21578
49074
#define MCAST 1
21579
49075
_ACEOF
21580
 
 ;;
 
49076
 
 
49077
    echo "$as_me:$LINENO: checking arg type needed for IP*_MULTICAST_LOOP for setsockopt()" >&5
 
49078
echo $ECHO_N "checking arg type needed for IP*_MULTICAST_LOOP for setsockopt()... $ECHO_C" >&6
 
49079
if test "${ac_cv_var_typeof_ip_multicast_loop+set}" = set; then
 
49080
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
49081
else
 
49082
  case "$host" in
 
49083
         *-*-netbsd*|*-*-linux*)
 
49084
            ac_cv_var_typeof_ip_multicast_loop=u_int
 
49085
            ;;
 
49086
         *-*-winnt*)
 
49087
            ac_cv_var_typeof_ip_multicast_loop=BOOL
 
49088
            ;;
 
49089
         *) ac_cv_var_typeof_ip_multicast_loop=u_char
 
49090
            ;;
 
49091
        esac
 
49092
fi
 
49093
echo "$as_me:$LINENO: result: $ac_cv_var_typeof_ip_multicast_loop" >&5
 
49094
echo "${ECHO_T}$ac_cv_var_typeof_ip_multicast_loop" >&6
 
49095
 
 
49096
cat >>confdefs.h <<_ACEOF
 
49097
#define TYPEOF_IP_MULTICAST_LOOP $ac_cv_var_typeof_ip_multicast_loop
 
49098
_ACEOF
 
49099
 
 
49100
    ;;
21581
49101
esac
21582
49102
 
21583
49103
echo "$as_me:$LINENO: checking availability of ntp_{adj,get}time()" >&5
21586
49106
  echo $ECHO_N "(cached) $ECHO_C" >&6
21587
49107
else
21588
49108
  ac_cv_var_ntp_syscalls=no
21589
 
 case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime" in
21590
 
  yesyes)
21591
 
     ac_cv_var_ntp_syscalls=libc
21592
 
     ;;
21593
 
  *) case "$ac_cv_func___adjtimex" in
21594
 
      yes)
21595
 
         ac_cv_var_ntp_syscalls=adjtimex
21596
 
         ;;
21597
 
      *) cat >conftest.$ac_ext <<_ACEOF
 
49109
 case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in
 
49110
  yesyes*)
 
49111
    ac_cv_var_ntp_syscalls=libc
 
49112
    ;;
 
49113
  *yes)
 
49114
    ac_cv_var_ntp_syscalls=inline
 
49115
    ;;
 
49116
  *) cat >conftest.$ac_ext <<_ACEOF
21598
49117
/* confdefs.h.  */
21599
49118
_ACEOF
21600
49119
cat confdefs.h >>conftest.$ac_ext
21612
49131
fi
21613
49132
rm -f conftest*
21614
49133
 
21615
 
         ;;
21616
 
     esac
21617
 
     ;;
 
49134
    ;;
21618
49135
 esac
21619
49136
fi
21620
49137
echo "$as_me:$LINENO: result: $ac_cv_var_ntp_syscalls" >&5
21852
49369
 
21853
49370
# The PPSAPI headers need "inline" ($ac_cv_c_inline='inline')
21854
49371
 
21855
 
# The PPSAPI needs ATOM
21856
 
 
21857
49372
# The PPSAPI needs struct timespec.
21858
49373
 
21859
 
case "$ac_cv_c_inline$ac_cv_struct_timespec$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h" in
21860
 
 inlineyes*yes*)
 
49374
# The PPSAPI also needs a timepps header.
 
49375
 
 
49376
case "$ac_cv_c_inline$ac_cv_struct_timespec" in
 
49377
 inlineyes)
 
49378
    case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in
 
49379
     *yes* | *sunos* | *solaris* | *sco* | *netbsd* )
21861
49380
 
21862
49381
cat >>confdefs.h <<\_ACEOF
21863
49382
#define HAVE_PPSAPI 1
21864
49383
_ACEOF
21865
49384
 
21866
 
    ac_cv_var_oncore_ok=yes
21867
 
    ac_cv_var_ripe_ncc_ok=yes
21868
 
    ac_cv_var_jupiter_ok=yes
 
49385
        ac_cv_var_jupiter_ok=yes
 
49386
        ac_cv_var_oncore_ok=yes
 
49387
        ac_cv_var_parse_ok=yes
 
49388
        ac_cv_var_ripe_ncc_ok=yes
 
49389
        ;;
 
49390
    esac
21869
49391
    ;;
21870
49392
esac
21871
49393
 
21900
49422
  cat conftest.err >&5
21901
49423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902
49424
  (exit $ac_status); } &&
21903
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
49425
         { ac_try='test -z "$ac_c_werror_flag"
 
49426
                         || test ! -s conftest.err'
21904
49427
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21905
49428
  (eval $ac_try) 2>&5
21906
49429
  ac_status=$?
22160
49683
echo "$as_me:$LINENO: result: $ntp_eac" >&5
22161
49684
echo "${ECHO_T}$ntp_eac" >&6
22162
49685
 
 
49686
# HMS: Should we also require ac_cv_var_parse_ok?
22163
49687
echo "$as_me:$LINENO: checking if we have support for PARSE clocks" >&5
22164
49688
echo $ECHO_N "checking if we have support for PARSE clocks... $ECHO_C" >&6
22165
49689
case "$ac_cv_var_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
22673
50197
echo "$as_me:$LINENO: result: $ntp_ok" >&5
22674
50198
echo "${ECHO_T}$ntp_ok" >&6
22675
50199
 
22676
 
echo "$as_me:$LINENO: checking EES M201 MSF receiver" >&5
22677
 
echo $ECHO_N "checking EES M201 MSF receiver... $ECHO_C" >&6
22678
 
# Check whether --enable-MSFEES or --disable-MSFEES was given.
22679
 
if test "${enable_MSFEES+set}" = set; then
22680
 
  enableval="$enable_MSFEES"
22681
 
  ntp_ok=$enableval
22682
 
else
22683
 
  ntp_ok=$ntp_eac
22684
 
fi;
22685
 
if test "$ntp_ok" = "yes"; then
22686
 
    ntp_refclock=yes
22687
 
 
22688
 
cat >>confdefs.h <<\_ACEOF
22689
 
#define CLOCK_MSFEES 1
22690
 
_ACEOF
22691
 
 
22692
 
fi
22693
 
echo "$as_me:$LINENO: result: $ntp_ok" >&5
22694
 
echo "${ECHO_T}$ntp_ok" >&6
22695
50200
 
22696
50201
# Not Ultrix
22697
50202
echo "$as_me:$LINENO: checking Magnavox MX4200 GPS receiver" >&5
22853
50358
echo "$as_me:$LINENO: result: $ntp_ok" >&5
22854
50359
echo "${ECHO_T}$ntp_ok" >&6
22855
50360
 
22856
 
# Requires modem control
22857
 
echo "$as_me:$LINENO: checking PTB modem service" >&5
22858
 
echo $ECHO_N "checking PTB modem service... $ECHO_C" >&6
22859
 
# Check whether --enable-PTBACTS or --disable-PTBACTS was given.
22860
 
if test "${enable_PTBACTS+set}" = set; then
22861
 
  enableval="$enable_PTBACTS"
22862
 
  ntp_ok=$enableval
22863
 
else
22864
 
  cat >conftest.$ac_ext <<_ACEOF
22865
 
/* confdefs.h.  */
22866
 
_ACEOF
22867
 
cat confdefs.h >>conftest.$ac_ext
22868
 
cat >>conftest.$ac_ext <<_ACEOF
22869
 
/* end confdefs.h.  */
22870
 
#include <termios.h>
22871
 
#ifdef HAVE_SYS_IOCTL_H
22872
 
#include <sys/ioctl.h>
22873
 
#endif
22874
 
#ifdef TIOCMBIS
22875
 
         yes
22876
 
#endif
22877
 
 
22878
 
_ACEOF
22879
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22880
 
  $EGREP "yes" >/dev/null 2>&1; then
22881
 
  ntp_ok=$ntp_eac
22882
 
else
22883
 
  ntp_ok=no
22884
 
fi
22885
 
rm -f conftest*
22886
 
 
22887
 
fi;
22888
 
if test "$ntp_ok" = "yes"; then
22889
 
    ntp_refclock=yes
22890
 
 
22891
 
cat >>confdefs.h <<\_ACEOF
22892
 
#define CLOCK_PTBACTS 1
22893
 
_ACEOF
22894
 
 
22895
 
fi
22896
 
echo "$as_me:$LINENO: result: $ntp_ok" >&5
22897
 
echo "${ECHO_T}$ntp_ok" >&6
22898
 
 
22899
50361
echo "$as_me:$LINENO: checking RIPENCC specific Trimble driver" >&5
22900
50362
echo $ECHO_N "checking RIPENCC specific Trimble driver... $ECHO_C" >&6
22901
50363
# Check whether --enable-RIPENCC or --disable-RIPENCC was given.
22995
50457
echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
22996
50458
esac
22997
50459
 
22998
 
echo "$as_me:$LINENO: checking TRAK 8810 GPS receiver" >&5
22999
 
echo $ECHO_N "checking TRAK 8810 GPS receiver... $ECHO_C" >&6
23000
 
# Check whether --enable-TRAK or --disable-TRAK was given.
23001
 
if test "${enable_TRAK+set}" = set; then
23002
 
  enableval="$enable_TRAK"
23003
 
  ntp_ok=$enableval
23004
 
else
23005
 
  ntp_ok=$ntp_eac
23006
 
fi;
23007
 
if test "$ntp_ok" = "yes"; then
23008
 
    ntp_refclock=yes
23009
 
 
23010
 
cat >>confdefs.h <<\_ACEOF
23011
 
#define CLOCK_TRAK 1
23012
 
_ACEOF
23013
 
 
23014
 
fi
23015
 
echo "$as_me:$LINENO: result: $ntp_ok" >&5
23016
 
echo "${ECHO_T}$ntp_ok" >&6
23017
50460
 
23018
50461
# Not on a vax-dec-bsd
23019
50462
echo "$as_me:$LINENO: checking Kinemetrics/TrueTime receivers" >&5
23087
50530
echo "$as_me:$LINENO: result: $ntp_ok" >&5
23088
50531
echo "${ECHO_T}$ntp_ok" >&6
23089
50532
 
23090
 
# Requires modem control
23091
 
echo "$as_me:$LINENO: checking USNO modem service" >&5
23092
 
echo $ECHO_N "checking USNO modem service... $ECHO_C" >&6
23093
 
# Check whether --enable-USNO or --disable-USNO was given.
23094
 
if test "${enable_USNO+set}" = set; then
23095
 
  enableval="$enable_USNO"
23096
 
  ntp_ok=$enableval
23097
 
else
23098
 
  cat >conftest.$ac_ext <<_ACEOF
23099
 
/* confdefs.h.  */
23100
 
_ACEOF
23101
 
cat confdefs.h >>conftest.$ac_ext
23102
 
cat >>conftest.$ac_ext <<_ACEOF
23103
 
/* end confdefs.h.  */
23104
 
#include <termios.h>
23105
 
#ifdef HAVE_SYS_IOCTL_H
23106
 
#include <sys/ioctl.h>
23107
 
#endif
23108
 
#ifdef TIOCMBIS
23109
 
         yes
23110
 
#endif
23111
 
 
23112
 
_ACEOF
23113
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23114
 
  $EGREP "yes" >/dev/null 2>&1; then
23115
 
  ntp_ok=$ntp_eac
23116
 
else
23117
 
  ntp_ok=no
23118
 
fi
23119
 
rm -f conftest*
23120
 
 
23121
 
fi;
23122
 
if test "$ntp_ok" = "yes"; then
23123
 
    ntp_refclock=yes
23124
 
 
23125
 
cat >>confdefs.h <<\_ACEOF
23126
 
#define CLOCK_USNO 1
23127
 
_ACEOF
23128
 
 
23129
 
fi
23130
 
echo "$as_me:$LINENO: result: $ntp_ok" >&5
23131
 
echo "${ECHO_T}$ntp_ok" >&6
23132
 
 
23133
50533
echo "$as_me:$LINENO: checking WWV receiver" >&5
23134
50534
echo $ECHO_N "checking WWV receiver... $ECHO_C" >&6
23135
50535
# Check whether --enable-WWV or --disable-WWV was given.
23188
50588
     yes) ntp_eapc=$ntp_canparse ;;
23189
50589
     *) ntp_eapc=no ;;
23190
50590
    esac
 
50591
    # Delete the next line one of these days
23191
50592
    ntp_eapc=no
23192
50593
fi;
23193
50594
echo "$as_me:$LINENO: result: $ntp_eapc" >&5
23569
50970
    LIBPARSE=../libparse/libparse.a
23570
50971
    MAKE_LIBPARSE=libparse.a
23571
50972
    # HMS: check_y2k trips the 34 year problem now...
23572
 
    0 && MAKE_CHECK_Y2K=check_y2k
 
50973
    false && MAKE_CHECK_Y2K=check_y2k
23573
50974
 
23574
50975
cat >>confdefs.h <<\_ACEOF
23575
50976
#define PPS_SAMPLE 1
23595
50996
 
23596
50997
 
23597
50998
 
23598
 
 
23599
 
 
23600
50999
echo "$as_me:$LINENO: checking for openssl library directory" >&5
23601
51000
echo $ECHO_N "checking for openssl library directory... $ECHO_C" >&6
23602
51001
 
23605
51004
  withval="$with_openssl_libdir"
23606
51005
  ans=$withval
23607
51006
else
23608
 
  ans=yes
 
51007
  case "$build" in
 
51008
 $host) ans=yes ;;
 
51009
 *)     ans=no ;;
 
51010
esac
23609
51011
fi;
23610
51012
case "$ans" in
23611
51013
 no) ;;
23612
51014
 yes) # Look in:
23613
 
    ans="/usr/lib /usr/lib/openssl /usr/local/lib /usr/local/ssl/lib"
 
51015
    ans="/usr/lib /usr/lib/openssl /usr/sfw/lib /usr/local/lib /usr/local/ssl/lib"
23614
51016
    ;;
23615
51017
 *) # Look where they said
23616
51018
    ;;
23625
51027
            test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
23626
51028
            ;;
23627
51029
         *)
 
51030
            test -f $i/libcrypto.so -a -f $i/libssl.so && break
23628
51031
            test -f $i/libcrypto.a -a -f $i/libssl.a && break
23629
51032
            ;;
23630
51033
        esac
23651
51054
  withval="$with_openssl_incdir"
23652
51055
  ans=$withval
23653
51056
else
23654
 
  ans=yes
 
51057
  case "$build" in
 
51058
 $host) ans=yes ;;
 
51059
 *)     ans=no ;;
 
51060
esac
23655
51061
fi;
23656
51062
case "$ans" in
23657
51063
 no) ;;
23658
51064
 yes) # look in:
23659
 
    ans="/usr/include /usr/local/include /usr/local/ssl/include"
 
51065
    ans="/usr/include /usr/sfw/include /usr/local/include /usr/local/ssl/include"
23660
51066
    ;;
23661
51067
 *) # Look where they said
23662
51068
    ;;
23701
51107
        ans=openssl
23702
51108
        CPPFLAGS="$CPPFLAGS -I$OPENSSL_INC"
23703
51109
        LDFLAGS="$LDFLAGS -L$OPENSSL_LIB"
 
51110
        case "$need_dash_r" in
 
51111
         1) LDFLAGS="$LDFLAGS -R$OPENSSL_LIB"
 
51112
            ;;
 
51113
        esac
23704
51114
        LCRYPTO=-lcrypto
23705
51115
 
23706
 
        MAKE_NTP_KEYGEN=ntp-keygen
23707
51116
 
23708
51117
cat >>confdefs.h <<\_ACEOF
23709
51118
#define OPENSSL
23779
51188
  cat conftest.err >&5
23780
51189
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23781
51190
  (exit $ac_status); } &&
23782
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
51191
         { ac_try='test -z "$ac_c_werror_flag"
 
51192
                         || test ! -s conftest.err'
23783
51193
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23784
51194
  (eval $ac_try) 2>&5
23785
51195
  ac_status=$?
23843
51253
echo "$as_me:$LINENO: result: $ans" >&5
23844
51254
echo "${ECHO_T}$ans" >&6
23845
51255
 
23846
 
echo "$as_me:$LINENO: checking if we want to try SNTP" >&5
23847
 
echo $ECHO_N "checking if we want to try SNTP... $ECHO_C" >&6
23848
51256
 
23849
 
# Check whether --with-sntp or --without-sntp was given.
23850
 
if test "${with_sntp+set}" = set; then
23851
 
  withval="$with_sntp"
23852
 
  ans=$withval
23853
 
else
23854
 
  ans=no
23855
 
fi;
23856
 
case "$ans" in
23857
 
 no) ;;
 
51257
echo "$as_me:$LINENO: checking if we want to run check-layout" >&5
 
51258
echo $ECHO_N "checking if we want to run check-layout... $ECHO_C" >&6
 
51259
case "$cross_compiling$PATH_PERL" in
 
51260
 no/*)
 
51261
    MAKE_CHECK_LAYOUT=check-layout
 
51262
    ans=yes
 
51263
    ;;
23858
51264
 *)
23859
 
    MAKE_SNTP="sntp"
23860
 
 
23861
 
    ans=yes
 
51265
    ans=no
23862
51266
    ;;
23863
51267
esac
23864
51268
echo "$as_me:$LINENO: result: $ans" >&5
23872
51276
ans=no
23873
51277
if test "$ntp_parseutil" = "yes"; then
23874
51278
    case "$host" in
23875
 
     *-*-sunos4*|*-*-solaris2*|*-*-linux*)
 
51279
     *-*-sunos4*|*-*-solaris2*|*-*-linux*|*-*-netbsd*)
23876
51280
        ans="dcfd testdcf"
23877
51281
        DCFD=dcfd
23878
51282
        TESTDCF=testdcf
24640
52044
    ;;
24641
52045
esac
24642
52046
 
24643
 
echo "$as_me:$LINENO: checking if we want UDP wildcard delivery" >&5
24644
 
echo $ECHO_N "checking if we want UDP wildcard delivery... $ECHO_C" >&6
24645
 
if test "${ac_cv_var_udp_wildcard_delivery+set}" = set; then
24646
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24647
 
else
24648
 
  # Check whether --enable-udp-wildcard or --disable-udp-wildcard was given.
24649
 
if test "${enable_udp_wildcard+set}" = set; then
24650
 
  enableval="$enable_udp_wildcard"
24651
 
  ans=$enableval
24652
 
else
24653
 
  ans=no
24654
 
     case "$host" in
24655
 
      *-fujitsu-uxp*)
24656
 
         ans=yes
24657
 
         ;;
24658
 
      *-univel-sysv*)
24659
 
         ans=yes
24660
 
         ;;
24661
 
      *-*-aix3.2*)
24662
 
         ans=yes
24663
 
         ;;
24664
 
      *-*-aix[45]*)
24665
 
         ans=yes
24666
 
         ;;
24667
 
      *-*-bsdi*)
24668
 
         ans=yes
24669
 
         ;;
24670
 
      *-*-domainos)
24671
 
         ans=yes
24672
 
         ;;
24673
 
      *-*-freebsd*)
24674
 
        ans=yes
24675
 
        ;;
24676
 
      *-*-hpux*)
24677
 
         ans=yes
24678
 
         ;;
24679
 
      *-*-irix6*)
24680
 
         ans=yes
24681
 
         ;;
24682
 
      *-*-linux*)
24683
 
         ans=yes
24684
 
         ;;
24685
 
      *-*-mpeix*)
24686
 
         ans=yes
24687
 
         ;;
24688
 
      *-*-osf*)
24689
 
         ans=yes
24690
 
         ;;
24691
 
      *-*-ptx*)
24692
 
         ans=yes
24693
 
         ;;
24694
 
      *-*-solaris2*)
24695
 
         ans=yes
24696
 
         ;;
24697
 
      *-*-sunos4*)
24698
 
         ans=yes
24699
 
         ;;
24700
 
      *-*-unicosmp*)
24701
 
         ans=yes
24702
 
         ;;
24703
 
     esac
24704
 
fi;
24705
 
ac_cv_var_udp_wildcard_delivery=$ans
24706
 
fi
24707
 
echo "$as_me:$LINENO: result: $ac_cv_var_udp_wildcard_delivery" >&5
24708
 
echo "${ECHO_T}$ac_cv_var_udp_wildcard_delivery" >&6
24709
 
case "$ac_cv_var_udp_wildcard_delivery" in
24710
 
 yes)
24711
 
cat >>confdefs.h <<\_ACEOF
24712
 
#define UDP_WILDCARD_DELIVERY 1
24713
 
_ACEOF
24714
 
 ;;
24715
 
esac
24716
 
 
24717
52047
case "$build" in
24718
52048
 $host)
24719
52049
    ;;
24786
52116
         ans=yes
24787
52117
         ;;
24788
52118
      *-*-solaris2.1[0-9]*)
24789
 
         ans-no
 
52119
         ans=no
24790
52120
         ;;
24791
52121
      *-*-solaris2.[012]*)
24792
52122
         ans=yes
25001
52331
 ;;
25002
52332
esac
25003
52333
 
25004
 
echo "$as_me:$LINENO: checking if we should cache bad destination addresses" >&5
25005
 
echo $ECHO_N "checking if we should cache bad destination addresses... $ECHO_C" >&6
25006
 
if test "${ac_cv_errorcache+set}" = set; then
25007
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
25008
 
else
25009
 
  # Check whether --enable-errorcache or --disable-errorcache was given.
25010
 
if test "${enable_errorcache+set}" = set; then
25011
 
  enableval="$enable_errorcache"
25012
 
  ans=$enableval
25013
 
else
25014
 
  ans=no
25015
 
fi;
25016
 
ac_cv_errorcache=$ans
25017
 
fi
25018
 
echo "$as_me:$LINENO: result: $ac_cv_errorcache" >&5
25019
 
echo "${ECHO_T}$ac_cv_errorcache" >&6
25020
 
case "$ac_cv_errorcache" in
25021
 
 yes)
25022
 
cat >>confdefs.h <<\_ACEOF
25023
 
#define ERRORCACHE 10
25024
 
_ACEOF
25025
 
 ;;
25026
 
 no)
25027
 
cat >>confdefs.h <<\_ACEOF
25028
 
#define ERRORCACHE 0
25029
 
_ACEOF
25030
 
 ;;
25031
 
esac
25032
 
 
25033
52334
#
25034
52335
# ISC stuff
25035
52336
#
25094
52395
  cat conftest.err >&5
25095
52396
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25096
52397
  (exit $ac_status); } &&
25097
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
52398
         { ac_try='test -z "$ac_c_werror_flag"
 
52399
                         || test ! -s conftest.err'
25098
52400
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25099
52401
  (eval $ac_try) 2>&5
25100
52402
  ac_status=$?
25194
52496
        ;;
25195
52497
esac
25196
52498
 
 
52499
#
 
52500
# This is similar to the netinet6/in6.h issue.
 
52501
#
 
52502
case "$host" in
 
52503
*-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
 
52504
        # UnixWare
 
52505
        # ISC_PLATFORM_NEEDNETINETIN6H="#define ISC_PLATFORM_NEEDNETINETIN6H 1"
 
52506
        # LWRES_PLATFORM_NEEDNETINETIN6H="#define LWRES_PLATFORM_NEEDNETINETIN6H 1"
 
52507
 
 
52508
cat >>confdefs.h <<\_ACEOF
 
52509
#define ISC_PLATFORM_FIXIN6ISADDR 1
 
52510
_ACEOF
 
52511
 
 
52512
        isc_netinetin6_hack="#include <netinet/in6.h>"
 
52513
        ;;
 
52514
*)
 
52515
        # ISC_PLATFORM_NEEDNETINETIN6H="#undef ISC_PLATFORM_NEEDNETINETIN6H"
 
52516
        # LWRES_PLATFORM_NEEDNETINETIN6H="#undef LWRES_PLATFORM_NEEDNETINETIN6H"
 
52517
        # ISC_PLATFORM_FIXIN6ISADDR="#undef ISC_PLATFORM_FIXIN6ISADDR"
 
52518
        isc_netinetin6_hack=""
 
52519
        ;;
 
52520
esac
 
52521
 
 
52522
 
25197
52523
echo "$as_me:$LINENO: checking for struct if_laddrconf" >&5
25198
52524
echo $ECHO_N "checking for struct if_laddrconf... $ECHO_C" >&6
25199
52525
cat >conftest.$ac_ext <<_ACEOF
25223
52549
  cat conftest.err >&5
25224
52550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225
52551
  (exit $ac_status); } &&
25226
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
52552
         { ac_try='test -z "$ac_c_werror_flag"
 
52553
                         || test ! -s conftest.err'
25227
52554
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25228
52555
  (eval $ac_try) 2>&5
25229
52556
  ac_status=$?
25281
52608
  cat conftest.err >&5
25282
52609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25283
52610
  (exit $ac_status); } &&
25284
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
52611
         { ac_try='test -z "$ac_c_werror_flag"
 
52612
                         || test ! -s conftest.err'
25285
52613
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25286
52614
  (eval $ac_try) 2>&5
25287
52615
  ac_status=$?
25318
52646
_ACEOF
25319
52647
 
25320
52648
 
 
52649
    echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
 
52650
echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6
 
52651
if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
 
52652
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
52653
else
 
52654
  cat >conftest.$ac_ext <<_ACEOF
 
52655
/* confdefs.h.  */
 
52656
_ACEOF
 
52657
cat confdefs.h >>conftest.$ac_ext
 
52658
cat >>conftest.$ac_ext <<_ACEOF
 
52659
/* end confdefs.h.  */
 
52660
 
 
52661
#include <sys/types.h>
 
52662
#include <sys/socket.h>
 
52663
#include <netinet/in.h>
 
52664
$isc_netinetin6_hack
 
52665
$isc_netinet6in6_hack
 
52666
 
 
52667
 
 
52668
int
 
52669
main ()
 
52670
{
 
52671
static struct sockaddr_in6 ac_aggr;
 
52672
if (ac_aggr.sin6_scope_id)
 
52673
return 0;
 
52674
  ;
 
52675
  return 0;
 
52676
}
 
52677
_ACEOF
 
52678
rm -f conftest.$ac_objext
 
52679
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
52680
  (eval $ac_compile) 2>conftest.er1
 
52681
  ac_status=$?
 
52682
  grep -v '^ *+' conftest.er1 >conftest.err
 
52683
  rm -f conftest.er1
 
52684
  cat conftest.err >&5
 
52685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
52686
  (exit $ac_status); } &&
 
52687
         { ac_try='test -z "$ac_c_werror_flag"
 
52688
                         || test ! -s conftest.err'
 
52689
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
52690
  (eval $ac_try) 2>&5
 
52691
  ac_status=$?
 
52692
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
52693
  (exit $ac_status); }; } &&
 
52694
         { ac_try='test -s conftest.$ac_objext'
 
52695
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
52696
  (eval $ac_try) 2>&5
 
52697
  ac_status=$?
 
52698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
52699
  (exit $ac_status); }; }; then
 
52700
  ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
 
52701
else
 
52702
  echo "$as_me: failed program was:" >&5
 
52703
sed 's/^/| /' conftest.$ac_ext >&5
 
52704
 
 
52705
cat >conftest.$ac_ext <<_ACEOF
 
52706
/* confdefs.h.  */
 
52707
_ACEOF
 
52708
cat confdefs.h >>conftest.$ac_ext
 
52709
cat >>conftest.$ac_ext <<_ACEOF
 
52710
/* end confdefs.h.  */
 
52711
 
 
52712
#include <sys/types.h>
 
52713
#include <sys/socket.h>
 
52714
#include <netinet/in.h>
 
52715
$isc_netinetin6_hack
 
52716
$isc_netinet6in6_hack
 
52717
 
 
52718
 
 
52719
int
 
52720
main ()
 
52721
{
 
52722
static struct sockaddr_in6 ac_aggr;
 
52723
if (sizeof ac_aggr.sin6_scope_id)
 
52724
return 0;
 
52725
  ;
 
52726
  return 0;
 
52727
}
 
52728
_ACEOF
 
52729
rm -f conftest.$ac_objext
 
52730
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
52731
  (eval $ac_compile) 2>conftest.er1
 
52732
  ac_status=$?
 
52733
  grep -v '^ *+' conftest.er1 >conftest.err
 
52734
  rm -f conftest.er1
 
52735
  cat conftest.err >&5
 
52736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
52737
  (exit $ac_status); } &&
 
52738
         { ac_try='test -z "$ac_c_werror_flag"
 
52739
                         || test ! -s conftest.err'
 
52740
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
52741
  (eval $ac_try) 2>&5
 
52742
  ac_status=$?
 
52743
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
52744
  (exit $ac_status); }; } &&
 
52745
         { ac_try='test -s conftest.$ac_objext'
 
52746
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
52747
  (eval $ac_try) 2>&5
 
52748
  ac_status=$?
 
52749
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
52750
  (exit $ac_status); }; }; then
 
52751
  ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
 
52752
else
 
52753
  echo "$as_me: failed program was:" >&5
 
52754
sed 's/^/| /' conftest.$ac_ext >&5
 
52755
 
 
52756
ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
 
52757
fi
 
52758
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
52759
fi
 
52760
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
52761
fi
 
52762
echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
 
52763
echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6
 
52764
if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
 
52765
 
 
52766
cat >>confdefs.h <<_ACEOF
 
52767
#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
 
52768
_ACEOF
 
52769
 
 
52770
 
 
52771
fi
 
52772
 
 
52773
 
25321
52774
    echo "$as_me:$LINENO: checking for in6_pktinfo" >&5
25322
52775
echo $ECHO_N "checking for in6_pktinfo... $ECHO_C" >&6
25323
52776
    cat >conftest.$ac_ext <<_ACEOF
25350
52803
  cat conftest.err >&5
25351
52804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25352
52805
  (exit $ac_status); } &&
25353
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
52806
         { ac_try='test -z "$ac_c_werror_flag"
 
52807
                         || test ! -s conftest.err'
25354
52808
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25355
52809
  (eval $ac_try) 2>&5
25356
52810
  ac_status=$?
25378
52832
fi
25379
52833
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25380
52834
 
25381
 
    echo "$as_me:$LINENO: checking for in6addr_any" >&5
 
52835
    # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
 
52836
    echo "$as_me:$LINENO: checking for sin6_scope_id in struct sockaddr_in6" >&5
 
52837
echo $ECHO_N "checking for sin6_scope_id in struct sockaddr_in6... $ECHO_C" >&6
 
52838
    cat >conftest.$ac_ext <<_ACEOF
 
52839
/* confdefs.h.  */
 
52840
_ACEOF
 
52841
cat confdefs.h >>conftest.$ac_ext
 
52842
cat >>conftest.$ac_ext <<_ACEOF
 
52843
/* end confdefs.h.  */
 
52844
 
 
52845
#include <sys/types.h>
 
52846
#include <sys/socket.h>
 
52847
#include <netinet/in.h>
 
52848
$isc_netinetin6_hack
 
52849
$isc_netinet6in6_hack
 
52850
 
 
52851
int
 
52852
main ()
 
52853
{
 
52854
struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0);
 
52855
  ;
 
52856
  return 0;
 
52857
}
 
52858
_ACEOF
 
52859
rm -f conftest.$ac_objext
 
52860
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
52861
  (eval $ac_compile) 2>conftest.er1
 
52862
  ac_status=$?
 
52863
  grep -v '^ *+' conftest.er1 >conftest.err
 
52864
  rm -f conftest.er1
 
52865
  cat conftest.err >&5
 
52866
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
52867
  (exit $ac_status); } &&
 
52868
         { ac_try='test -z "$ac_c_werror_flag"
 
52869
                         || test ! -s conftest.err'
 
52870
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
52871
  (eval $ac_try) 2>&5
 
52872
  ac_status=$?
 
52873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
52874
  (exit $ac_status); }; } &&
 
52875
         { ac_try='test -s conftest.$ac_objext'
 
52876
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
52877
  (eval $ac_try) 2>&5
 
52878
  ac_status=$?
 
52879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
52880
  (exit $ac_status); }; }; then
 
52881
  echo "$as_me:$LINENO: result: yes" >&5
 
52882
echo "${ECHO_T}yes" >&6
 
52883
 
 
52884
cat >>confdefs.h <<\_ACEOF
 
52885
#define ISC_PLATFORM_HAVESCOPEID
 
52886
_ACEOF
 
52887
 
 
52888
else
 
52889
  echo "$as_me: failed program was:" >&5
 
52890
sed 's/^/| /' conftest.$ac_ext >&5
 
52891
 
 
52892
result="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
 
52893
fi
 
52894
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
52895
    LWRES_HAVE_SIN6_SCOPE_ID="$result"
 
52896
 
 
52897
    ;;
 
52898
esac
 
52899
 
 
52900
# We need this check run all the time...
 
52901
echo "$as_me:$LINENO: checking for in6addr_any" >&5
25382
52902
echo $ECHO_N "checking for in6addr_any... $ECHO_C" >&6
25383
 
    cat >conftest.$ac_ext <<_ACEOF
 
52903
cat >conftest.$ac_ext <<_ACEOF
25384
52904
/* confdefs.h.  */
25385
52905
_ACEOF
25386
52906
cat confdefs.h >>conftest.$ac_ext
25411
52931
  cat conftest.err >&5
25412
52932
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25413
52933
  (exit $ac_status); } &&
25414
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
52934
         { ac_try='test -z "$ac_c_werror_flag"
 
52935
                         || test ! -s conftest.err'
25415
52936
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25416
52937
  (eval $ac_try) 2>&5
25417
52938
  ac_status=$?
25440
52961
fi
25441
52962
rm -f conftest.err conftest.$ac_objext \
25442
52963
      conftest$ac_exeext conftest.$ac_ext
25443
 
    ;;
25444
 
esac
25445
52964
 
25446
52965
#
25447
52966
# Look for a sysctl call to get the list of network interfaces.
25481
53000
 
25482
53001
###
25483
53002
 
25484
 
case "$build" in
25485
 
 $host)
25486
 
    ;;
25487
 
 *) case "$host" in
25488
 
     *-*-vxworks*)
25489
 
        LDFLAGS="$LDFLAGS -r"
25490
 
        ;;
25491
 
    esac
25492
 
    ;;
25493
 
esac
25494
 
 
25495
53003
 
25496
53004
        ac_expanded=`(
25497
53005
            test "x$prefix" = xNONE && prefix="$ac_default_prefix"
25505
53013
 
25506
53014
 
25507
53015
 
25508
 
 
25509
 
if test -d $srcdir/arlib
25510
 
then
25511
 
 
25512
 
# Check whether --with-arlib or --without-arlib was given.
25513
 
if test "${with_arlib+set}" = set; then
25514
 
  withval="$with_arlib"
25515
 
  ans=$withval
25516
 
else
25517
 
  ans=no
25518
 
fi;
25519
 
 
25520
 
    case "$ans" in
25521
 
     yes)
25522
 
        ARLIB_DIR=arlib
25523
 
 
25524
 
 
25525
 
subdirs="$subdirs arlib"
25526
 
 
25527
 
        ;;
25528
 
    esac
25529
 
fi
25530
 
 
25531
53016
          ac_config_files="$ac_config_files Makefile"
25532
53017
 
25533
53018
          ac_config_files="$ac_config_files ElectricFence/Makefile"
25568
53053
 
25569
53054
          ac_config_files="$ac_config_files scripts/freq_adj"
25570
53055
 
 
53056
          ac_config_files="$ac_config_files scripts/html2man"
 
53057
 
25571
53058
          ac_config_files="$ac_config_files scripts/mkver"
25572
53059
 
25573
53060
          ac_config_files="$ac_config_files scripts/ntp-wait"
25585
53072
          ac_config_files="$ac_config_files util/Makefile"
25586
53073
 
25587
53074
 
25588
 
case "$MAKE_SNTP" in
25589
 
 '') ;;
25590
 
 *)
25591
53075
 
 
53076
ac_subdirs_all="$ac_subdirs_all sntp"
25592
53077
 
25593
53078
subdirs="$subdirs sntp"
25594
53079
 
25595
 
    ;;
25596
 
esac
25597
53080
 
25598
53081
cat >confcache <<\_ACEOF
25599
53082
# This file is a shell script that caches the results of configure
25619
53102
{
25620
53103
  (set) 2>&1 |
25621
53104
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
25622
 
    *ac_space=\ *)
 
53105
    *ac_space=\ *])
25623
53106
      # `set' does not quote correctly, so add quotes (double-quote
25624
53107
      # substitution turns \\\\ into \\, and sed turns \\ into \).
25625
53108
      sed -n \
25707
53190
Usually this means the macro was only invoked conditionally." >&2;}
25708
53191
   { (exit 1); exit 1; }; }
25709
53192
fi
 
53193
if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
 
53194
  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBOPTS\" was never defined.
 
53195
Usually this means the macro was only invoked conditionally." >&5
 
53196
echo "$as_me: error: conditional \"INSTALL_LIBOPTS\" was never defined.
 
53197
Usually this means the macro was only invoked conditionally." >&2;}
 
53198
   { (exit 1); exit 1; }; }
 
53199
fi
 
53200
if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
 
53201
  { { echo "$as_me:$LINENO: error: conditional \"NEED_LIBOPTS\" was never defined.
 
53202
Usually this means the macro was only invoked conditionally." >&5
 
53203
echo "$as_me: error: conditional \"NEED_LIBOPTS\" was never defined.
 
53204
Usually this means the macro was only invoked conditionally." >&2;}
 
53205
   { (exit 1); exit 1; }; }
 
53206
fi
 
53207
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
53208
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
53209
Usually this means the macro was only invoked conditionally." >&5
 
53210
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
53211
Usually this means the macro was only invoked conditionally." >&2;}
 
53212
   { (exit 1); exit 1; }; }
 
53213
fi
25710
53214
 
25711
53215
: ${CONFIG_STATUS=./config.status}
25712
53216
ac_clean_files_save=$ac_clean_files
25978
53482
} >&5
25979
53483
cat >&5 <<_CSEOF
25980
53484
 
25981
 
This file was extended by ntp $as_me 4.2.0a, which was
 
53485
This file was extended by ntp $as_me 4.2.4p4, which was
25982
53486
generated by GNU Autoconf 2.59.  Invocation command line was
25983
53487
 
25984
53488
  CONFIG_FILES    = $CONFIG_FILES
26041
53545
 
26042
53546
cat >>$CONFIG_STATUS <<_ACEOF
26043
53547
ac_cs_version="\\
26044
 
ntp config.status 4.2.0a
 
53548
ntp config.status 4.2.4p4
26045
53549
configured by $0, generated by GNU Autoconf 2.59,
26046
53550
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26047
53551
 
26151
53655
do
26152
53656
  case "$ac_config_target" in
26153
53657
  # Handling of arguments.
 
53658
  "libopts/Makefile" ) CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
26154
53659
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26155
53660
  "ElectricFence/Makefile" ) CONFIG_FILES="$CONFIG_FILES ElectricFence/Makefile" ;;
26156
53661
  "adjtimed/Makefile" ) CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;;
26171
53676
  "scripts/calc_tickadj" ) CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj" ;;
26172
53677
  "scripts/checktime" ) CONFIG_FILES="$CONFIG_FILES scripts/checktime" ;;
26173
53678
  "scripts/freq_adj" ) CONFIG_FILES="$CONFIG_FILES scripts/freq_adj" ;;
 
53679
  "scripts/html2man" ) CONFIG_FILES="$CONFIG_FILES scripts/html2man" ;;
26174
53680
  "scripts/mkver" ) CONFIG_FILES="$CONFIG_FILES scripts/mkver" ;;
26175
53681
  "scripts/ntp-wait" ) CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait" ;;
26176
53682
  "scripts/ntpsweep" ) CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep" ;;
26277
53783
s,@AUTOMAKE@,$AUTOMAKE,;t t
26278
53784
s,@AUTOHEADER@,$AUTOHEADER,;t t
26279
53785
s,@MAKEINFO@,$MAKEINFO,;t t
26280
 
s,@AMTAR@,$AMTAR,;t t
26281
53786
s,@install_sh@,$install_sh,;t t
26282
53787
s,@STRIP@,$STRIP,;t t
26283
53788
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26284
53789
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
53790
s,@mkdir_p@,$mkdir_p,;t t
26285
53791
s,@AWK@,$AWK,;t t
26286
53792
s,@SET_MAKE@,$SET_MAKE,;t t
26287
53793
s,@am__leading_dot@,$am__leading_dot,;t t
 
53794
s,@AMTAR@,$AMTAR,;t t
 
53795
s,@am__tar@,$am__tar,;t t
 
53796
s,@am__untar@,$am__untar,;t t
26288
53797
s,@build@,$build,;t t
26289
53798
s,@build_cpu@,$build_cpu,;t t
26290
53799
s,@build_vendor@,$build_vendor,;t t
26311
53820
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26312
53821
s,@CPP@,$CPP,;t t
26313
53822
s,@EGREP@,$EGREP,;t t
 
53823
s,@LIBOPTS_DIR@,$LIBOPTS_DIR,;t t
 
53824
s,@INSTALL_LIBOPTS_TRUE@,$INSTALL_LIBOPTS_TRUE,;t t
 
53825
s,@INSTALL_LIBOPTS_FALSE@,$INSTALL_LIBOPTS_FALSE,;t t
 
53826
s,@NEED_LIBOPTS_TRUE@,$NEED_LIBOPTS_TRUE,;t t
 
53827
s,@NEED_LIBOPTS_FALSE@,$NEED_LIBOPTS_FALSE,;t t
 
53828
s,@LIBOPTS_LDADD@,$LIBOPTS_LDADD,;t t
 
53829
s,@LIBOPTS_CFLAGS@,$LIBOPTS_CFLAGS,;t t
 
53830
s,@BINSUBDIR@,$BINSUBDIR,;t t
 
53831
s,@subdirs@,$subdirs,;t t
 
53832
s,@ARLIB_DIR@,$ARLIB_DIR,;t t
26314
53833
s,@LN_S@,$LN_S,;t t
 
53834
s,@ECHO@,$ECHO,;t t
 
53835
s,@AR@,$AR,;t t
 
53836
s,@ac_ct_AR@,$ac_ct_AR,;t t
26315
53837
s,@RANLIB@,$RANLIB,;t t
26316
53838
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
53839
s,@CXX@,$CXX,;t t
 
53840
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
53841
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
53842
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
53843
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
53844
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
53845
s,@CXXCPP@,$CXXCPP,;t t
 
53846
s,@F77@,$F77,;t t
 
53847
s,@FFLAGS@,$FFLAGS,;t t
 
53848
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
53849
s,@LIBTOOL@,$LIBTOOL,;t t
26317
53850
s,@PATH_SH@,$PATH_SH,;t t
26318
53851
s,@PATH_PERL@,$PATH_PERL,;t t
26319
53852
s,@READLINE_LIBS@,$READLINE_LIBS,;t t
26320
53853
s,@U@,$U,;t t
26321
53854
s,@ANSI2KNR@,$ANSI2KNR,;t t
26322
 
s,@LIBOBJS@,$LIBOBJS,;t t
26323
53855
s,@LIBPARSE@,$LIBPARSE,;t t
26324
53856
s,@MAKE_LIBPARSE@,$MAKE_LIBPARSE,;t t
26325
53857
s,@MAKE_LIBPARSE_KERNEL@,$MAKE_LIBPARSE_KERNEL,;t t
26327
53859
s,@OPENSSL@,$OPENSSL,;t t
26328
53860
s,@OPENSSL_INC@,$OPENSSL_INC,;t t
26329
53861
s,@OPENSSL_LIB@,$OPENSSL_LIB,;t t
26330
 
s,@MAKE_NTP_KEYGEN@,$MAKE_NTP_KEYGEN,;t t
26331
53862
s,@LCRYPTO@,$LCRYPTO,;t t
26332
53863
s,@EF_PROGS@,$EF_PROGS,;t t
26333
53864
s,@EF_LIBS@,$EF_LIBS,;t t
26334
 
s,@MAKE_SNTP@,$MAKE_SNTP,;t t
 
53865
s,@MAKE_CHECK_LAYOUT@,$MAKE_CHECK_LAYOUT,;t t
26335
53866
s,@TESTDCF@,$TESTDCF,;t t
26336
53867
s,@DCFD@,$DCFD,;t t
26337
53868
s,@MAKE_PARSEKMODULE@,$MAKE_PARSEKMODULE,;t t
26344
53875
s,@MAKE_TIMETRIM@,$MAKE_TIMETRIM,;t t
26345
53876
s,@MAKE_LIBNTPSIM@,$MAKE_LIBNTPSIM,;t t
26346
53877
s,@MAKE_NTPDSIM@,$MAKE_NTPDSIM,;t t
26347
 
s,@ARLIB_DIR@,$ARLIB_DIR,;t t
26348
 
s,@subdirs@,$subdirs,;t t
 
53878
s,@LIBOBJS@,$LIBOBJS,;t t
26349
53879
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26350
53880
CEOF
26351
53881
 
26513
54043
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
26514
54044
  esac
26515
54045
 
 
54046
  if test x"$ac_file" != x-; then
 
54047
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
54048
echo "$as_me: creating $ac_file" >&6;}
 
54049
    rm -f "$ac_file"
 
54050
  fi
26516
54051
  # Let's still pretend it is `configure' which instantiates (i.e., don't
26517
54052
  # use $as_me), people would be surprised to read:
26518
54053
  #    /* config.h.  Generated by config.status.  */
26551
54086
         fi;;
26552
54087
      esac
26553
54088
    done` || { (exit 1); exit 1; }
26554
 
 
26555
 
  if test x"$ac_file" != x-; then
26556
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
26557
 
echo "$as_me: creating $ac_file" >&6;}
26558
 
    rm -f "$ac_file"
26559
 
  fi
26560
54089
_ACEOF
26561
54090
cat >>$CONFIG_STATUS <<_ACEOF
26562
54091
  sed "$ac_vpsub
26590
54119
    scripts/calc_tickadj ) chmod +x scripts/calc_tickadj ;;
26591
54120
    scripts/checktime ) chmod +x scripts/checktime ;;
26592
54121
    scripts/freq_adj ) chmod +x scripts/freq_adj ;;
 
54122
    scripts/html2man ) chmod +x scripts/html2man ;;
26593
54123
    scripts/mkver ) chmod +x scripts/mkver ;;
26594
54124
    scripts/ntp-wait ) chmod +x scripts/ntp-wait ;;
26595
54125
    scripts/ntpsweep ) chmod +x scripts/ntpsweep ;;
26984
54514
  else
26985
54515
    continue
26986
54516
  fi
26987
 
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
26988
 
  # Extract the definition of DEP_FILES from the Makefile without
26989
 
  # running `make'.
26990
 
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
54517
  # Extract the definition of DEPDIR, am__include, and am__quote
 
54518
  # from the Makefile without running `make'.
 
54519
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26991
54520
  test -z "$DEPDIR" && continue
 
54521
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
54522
  test -z "am__include" && continue
 
54523
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26992
54524
  # When using ansi2knr, U may be empty or an underscore; expand it
26993
 
  U=`sed -n -e '/^U = / s///p' < "$mf"`
26994
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
26995
 
  # We invoke sed twice because it is the simplest approach to
26996
 
  # changing $(DEPDIR) to its actual value in the expansion.
26997
 
  for file in `sed -n -e '
26998
 
    /^DEP_FILES = .*\\\\$/ {
26999
 
      s/^DEP_FILES = //
27000
 
      :loop
27001
 
        s/\\\\$//
27002
 
        p
27003
 
        n
27004
 
        /\\\\$/ b loop
27005
 
      p
27006
 
    }
27007
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
54525
  U=`sed -n 's/^U = //p' < "$mf"`
 
54526
  # Find all dependency output files, they are included files with
 
54527
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
54528
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
54529
  # expansion.
 
54530
  for file in `sed -n "
 
54531
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27008
54532
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27009
54533
    # Make sure the directory exists.
27010
54534
    test -f "$dirpart/$file" && continue
27256
54780
   { (exit 1); exit 1; }; }
27257
54781
    fi
27258
54782
 
27259
 
    cd "$ac_popdir"
 
54783
    cd $ac_popdir
27260
54784
  done
27261
54785
fi
27262
54786