~ubuntu-branches/ubuntu/saucy/nut/saucy

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2005-07-20 19:48:50 UTC
  • mto: (16.1.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20050720194850-oo61wjr33rrx2mre
Tags: upstream-2.0.2
ImportĀ upstreamĀ versionĀ 2.0.2

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.57.
 
3
# Generated by GNU Autoconf 2.59.
4
4
#
5
 
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6
 
# Free Software Foundation, Inc.
 
5
# Copyright (C) 2003 Free Software Foundation, Inc.
7
6
# This configure script is free software; the Free Software Foundation
8
7
# gives unlimited permission to copy, distribute and modify it.
9
8
## --------------------- ##
20
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21
20
  set -o posix
22
21
fi
 
22
DUALCASE=1; export DUALCASE # for MKS sh
23
23
 
24
24
# Support unset when possible.
25
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26
26
  as_unset=unset
27
27
else
28
28
  as_unset=false
41
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42
42
  LC_TELEPHONE LC_TIME
43
43
do
44
 
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
44
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
45
    eval $as_var=C; export $as_var
46
46
  else
47
47
    $as_unset $as_var
218
218
if mkdir -p . 2>/dev/null; then
219
219
  as_mkdir_p=:
220
220
else
 
221
  test -d ./-p && rmdir ./-p
221
222
  as_mkdir_p=false
222
223
fi
223
224
 
224
225
as_executable_p="test -f"
225
226
 
226
227
# Sed expression to map a string onto a valid CPP name.
227
 
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
228
229
 
229
230
# Sed expression to map a string onto a valid variable name.
230
 
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
231
232
 
232
233
 
233
234
# IFS
309
310
# include <unistd.h>
310
311
#endif"
311
312
 
312
 
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP AR RANLIB ac_ct_RANLIB MISC_UPSCLI_OBJ MISC_UPSCLI_LIBOBJ SSL_CFLAGS SSL_LDFLAGS CGI_BUILD_TARGET GD_INCLUDES GD_LIBS NETSNMP_CFLAGS NETSNMP_LIBS LIBUSB_CFLAGS LIBUSB_LIBS DRIVER_BUILD_LIST DRIVER_INSTALL_TARGET STRLCPY LIBOBJ BUILDOBJ NETLIBS SERLIBS STATEPATH DRVPATH CGIPATH RUN_AS_USER LINUX_HIDDEV WORDS_BIGENDIAN LIBOBJS LTLIBOBJS'
 
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP AR RANLIB ac_ct_RANLIB NUT_VERSION UPSCLI_OBJ UPSCLI_LIBOBJ SSL_CFLAGS SSL_LDFLAGS CGI_BUILD_TARGET GD_INCLUDES GD_LIBS NETSNMP_CFLAGS NETSNMP_LIBS LIBUSB_CFLAGS LIBUSB_LIBS DRIVER_BUILD_LIST USB_DRIVER_LIST USBPAGES DRIVER_INSTALL_TARGET STRLCPY LIBOBJ BUILDOBJ NETLIBS SERLIBS STATEPATH DRVPATH CGIPATH RUN_AS_USER LINUX_HIDDEV WORDS_BIGENDIAN PKG_CFG_DIR USE_PKG_CFG LIBOBJS LTLIBOBJS'
313
314
ac_subst_files=''
314
315
 
315
316
# Initialize some variables set by options.
668
669
 
669
670
# Be sure to have absolute paths.
670
671
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671
 
              localstatedir libdir includedir oldincludedir infodir mandir
 
672
              localstatedir libdir includedir oldincludedir infodir mandir
672
673
do
673
674
  eval ac_val=$`echo $ac_var`
674
675
  case $ac_val in
708
709
  # Try the directory containing this script, then its parent.
709
710
  ac_confdir=`(dirname "$0") 2>/dev/null ||
710
711
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711
 
         X"$0" : 'X\(//\)[^/]' \| \
712
 
         X"$0" : 'X\(//\)$' \| \
713
 
         X"$0" : 'X\(/\)' \| \
714
 
         .     : '\(.\)' 2>/dev/null ||
 
712
         X"$0" : 'X\(//\)[^/]' \| \
 
713
         X"$0" : 'X\(//\)$' \| \
 
714
         X"$0" : 'X\(/\)' \| \
 
715
         .     : '\(.\)' 2>/dev/null ||
715
716
echo X"$0" |
716
717
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717
718
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
803
804
  cat <<_ACEOF
804
805
Installation directories:
805
806
  --prefix=PREFIX         install architecture-independent files in PREFIX
806
 
                          [$ac_default_prefix]
 
807
                          [$ac_default_prefix]
807
808
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808
 
                          [PREFIX]
 
809
                          [PREFIX]
809
810
 
810
811
By default, \`make install' will install all the files in
811
812
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
845
846
Optional Features:
846
847
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
847
848
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
848
 
  --enable-strip                        Strip debugging symbols from binaries       no
 
849
  --enable-strip                Strip debugging symbols from binaries       no
 
850
  --with-pkgconfig-dir=PATH    Path to pkg-config *.pc files /usr/lib/pkgconfig
849
851
 
850
852
Optional Packages:
851
853
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
854
856
 --with-gd-includes             Include flags for the gd library
855
857
 --with-gd-libs                 Linker flags for gd
856
858
 --with-cgi                     Build the CGI programs                      no
857
 
 --with-linux-hiddev=PATH       Linux hiddev.h    /usr/src/linux/include/linux
 
859
 --with-linux-hiddev=FILE       Linux hiddev.h     /usr/include/linux/hiddev.h
858
860
 --with-statepath=PATH          Path for ups state files        /var/state/ups
859
861
 --with-altpidpath=PATH         Path for driver/upsd .pid files    (statepath)
860
862
 --with-drvpath=PATH            Path for ups drivers              <prefix>/bin
910
912
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
911
913
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
912
914
esac
913
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
914
 
# absolute.
915
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
916
 
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
917
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
918
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
915
 
 
916
# Do not use `cd foo && pwd` to compute absolute paths, because
 
917
# the directories may not exist.
 
918
case `pwd` in
 
919
.) ac_abs_builddir="$ac_dir";;
 
920
*)
 
921
  case "$ac_dir" in
 
922
  .) ac_abs_builddir=`pwd`;;
 
923
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
924
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
925
  esac;;
 
926
esac
 
927
case $ac_abs_builddir in
 
928
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
929
*)
 
930
  case ${ac_top_builddir}. in
 
931
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
932
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
933
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
934
  esac;;
 
935
esac
 
936
case $ac_abs_builddir in
 
937
.) ac_abs_srcdir=$ac_srcdir;;
 
938
*)
 
939
  case $ac_srcdir in
 
940
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
941
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
942
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
943
  esac;;
 
944
esac
 
945
case $ac_abs_builddir in
 
946
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
947
*)
 
948
  case $ac_top_srcdir in
 
949
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
950
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
951
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
952
  esac;;
 
953
esac
919
954
 
920
955
    cd $ac_dir
921
956
    # Check for guested configure; otherwise get Cygnus style configure.
926
961
      echo
927
962
      $SHELL $ac_srcdir/configure  --help=recursive
928
963
    elif test -f $ac_srcdir/configure.ac ||
929
 
           test -f $ac_srcdir/configure.in; then
 
964
           test -f $ac_srcdir/configure.in; then
930
965
      echo
931
966
      $ac_configure --help
932
967
    else
933
968
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
934
969
    fi
935
 
    cd $ac_popdir
 
970
    cd "$ac_popdir"
936
971
  done
937
972
fi
938
973
 
940
975
if $ac_init_version; then
941
976
  cat <<\_ACEOF
942
977
 
943
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
944
 
Free Software Foundation, Inc.
 
978
Copyright (C) 2003 Free Software Foundation, Inc.
945
979
This configure script is free software; the Free Software Foundation
946
980
gives unlimited permission to copy, distribute and modify it.
947
981
_ACEOF
953
987
running configure, to aid debugging if configure makes a mistake.
954
988
 
955
989
It was created by $as_me, which was
956
 
generated by GNU Autoconf 2.57.  Invocation command line was
 
990
generated by GNU Autoconf 2.59.  Invocation command line was
957
991
 
958
992
  $ $0 $@
959
993
 
1030
1064
    2)
1031
1065
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1032
1066
      if test $ac_must_keep_next = true; then
1033
 
        ac_must_keep_next=false # Got value, back to normal.
 
1067
        ac_must_keep_next=false # Got value, back to normal.
1034
1068
      else
1035
 
        case $ac_arg in
1036
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
1037
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1038
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1039
 
          | -with-* | --with-* | -without-* | --without-* | --x)
1040
 
            case "$ac_configure_args0 " in
1041
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1042
 
            esac
1043
 
            ;;
1044
 
          -* ) ac_must_keep_next=true ;;
1045
 
        esac
 
1069
        case $ac_arg in
 
1070
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1071
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1072
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1073
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1074
            case "$ac_configure_args0 " in
 
1075
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1076
            esac
 
1077
            ;;
 
1078
          -* ) ac_must_keep_next=true ;;
 
1079
        esac
1046
1080
      fi
1047
1081
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1048
1082
      # Get rid of the leading space.
1076
1110
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1077
1111
    *ac_space=\ *)
1078
1112
      sed -n \
1079
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1080
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1113
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1114
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1081
1115
      ;;
1082
1116
    *)
1083
1117
      sed -n \
1084
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1118
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1085
1119
      ;;
1086
1120
    esac;
1087
1121
}
1110
1144
      for ac_var in $ac_subst_files
1111
1145
      do
1112
1146
        eval ac_val=$`echo $ac_var`
1113
 
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1147
        echo "$ac_var='"'"'$ac_val'"'"'"
1114
1148
      done | sort
1115
1149
      echo
1116
1150
    fi
1129
1163
      echo "$as_me: caught signal $ac_signal"
1130
1164
    echo "$as_me: exit $exit_status"
1131
1165
  } >&5
1132
 
  rm -f core core.* *.core &&
 
1166
  rm -f core *.core &&
1133
1167
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1134
1168
    exit $exit_status
1135
1169
     ' 0
1209
1243
# value.
1210
1244
ac_cache_corrupted=false
1211
1245
for ac_var in `(set) 2>&1 |
1212
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1246
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1213
1247
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1214
1248
  eval ac_new_set=\$ac_env_${ac_var}_set
1215
1249
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1226
1260
    ,);;
1227
1261
    *)
1228
1262
      if test "x$ac_old_val" != "x$ac_new_val"; then
1229
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1263
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1230
1264
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1231
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1265
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1232
1266
echo "$as_me:   former value:  $ac_old_val" >&2;}
1233
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1267
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1234
1268
echo "$as_me:   current value: $ac_new_val" >&2;}
1235
 
        ac_cache_corrupted=:
 
1269
        ac_cache_corrupted=:
1236
1270
      fi;;
1237
1271
  esac
1238
1272
  # Pass precious variables to config.status.
1288
1322
 
1289
1323
CFLAGS=${CFLAGS-"-O"}
1290
1324
 
 
1325
echo "$as_me:$LINENO: checking NUT version" >&5
 
1326
echo $ECHO_N "checking NUT version... $ECHO_C" >&6
 
1327
 
 
1328
if (test -f include/version)
 
1329
then
 
1330
        NUT_VERSION=`head -1 include/version`
 
1331
        echo "$as_me:$LINENO: result: $NUT_VERSION" >&5
 
1332
echo "${ECHO_T}$NUT_VERSION" >&6
 
1333
else
 
1334
        { { echo "$as_me:$LINENO: error: Can't read include/version - broken source distribution?" >&5
 
1335
echo "$as_me: error: Can't read include/version - broken source distribution?" >&2;}
 
1336
   { (exit 1); exit 1; }; }
 
1337
fi
 
1338
 
 
1339
 
 
1340
 
1291
1341
ac_aux_dir=
1292
1342
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1293
1343
  if test -f $ac_dir/install-sh; then
1748
1798
  (exit $ac_status); }
1749
1799
 
1750
1800
cat >conftest.$ac_ext <<_ACEOF
1751
 
#line $LINENO "configure"
1752
1801
/* confdefs.h.  */
1753
1802
_ACEOF
1754
1803
cat confdefs.h >>conftest.$ac_ext
1768
1817
# Try to create an executable without -o first, disregard a.out.
1769
1818
# It will help us diagnose broken compilers, and finding out an intuition
1770
1819
# of exeext.
1771
 
echo "$as_me:$LINENO: checking for C compiler default output" >&5
1772
 
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
 
1820
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
1821
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1773
1822
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1774
1823
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1775
1824
  (eval $ac_link_default) 2>&5
1789
1838
  test -f "$ac_file" || continue
1790
1839
  case $ac_file in
1791
1840
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1792
 
        ;;
 
1841
        ;;
1793
1842
    conftest.$ac_ext )
1794
 
        # This is the source file.
1795
 
        ;;
 
1843
        # This is the source file.
 
1844
        ;;
1796
1845
    [ab].out )
1797
 
        # We found the default executable, but exeext='' is most
1798
 
        # certainly right.
1799
 
        break;;
 
1846
        # We found the default executable, but exeext='' is most
 
1847
        # certainly right.
 
1848
        break;;
1800
1849
    *.* )
1801
 
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1802
 
        # FIXME: I believe we export ac_cv_exeext for Libtool,
1803
 
        # but it would be cool to find out if it's true.  Does anybody
1804
 
        # maintain Libtool? --akim.
1805
 
        export ac_cv_exeext
1806
 
        break;;
 
1850
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1851
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
1852
        # but it would be cool to find out if it's true.  Does anybody
 
1853
        # maintain Libtool? --akim.
 
1854
        export ac_cv_exeext
 
1855
        break;;
1807
1856
    * )
1808
 
        break;;
 
1857
        break;;
1809
1858
  esac
1810
1859
done
1811
1860
else
1879
1928
  case $ac_file in
1880
1929
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1881
1930
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1882
 
          export ac_cv_exeext
1883
 
          break;;
 
1931
          export ac_cv_exeext
 
1932
          break;;
1884
1933
    * ) break;;
1885
1934
  esac
1886
1935
done
1905
1954
  echo $ECHO_N "(cached) $ECHO_C" >&6
1906
1955
else
1907
1956
  cat >conftest.$ac_ext <<_ACEOF
1908
 
#line $LINENO "configure"
1909
1957
/* confdefs.h.  */
1910
1958
_ACEOF
1911
1959
cat confdefs.h >>conftest.$ac_ext
1956
2004
  echo $ECHO_N "(cached) $ECHO_C" >&6
1957
2005
else
1958
2006
  cat >conftest.$ac_ext <<_ACEOF
1959
 
#line $LINENO "configure"
1960
2007
/* confdefs.h.  */
1961
2008
_ACEOF
1962
2009
cat confdefs.h >>conftest.$ac_ext
1976
2023
_ACEOF
1977
2024
rm -f conftest.$ac_objext
1978
2025
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1979
 
  (eval $ac_compile) 2>&5
 
2026
  (eval $ac_compile) 2>conftest.er1
1980
2027
  ac_status=$?
 
2028
  grep -v '^ *+' conftest.er1 >conftest.err
 
2029
  rm -f conftest.er1
 
2030
  cat conftest.err >&5
1981
2031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982
2032
  (exit $ac_status); } &&
1983
 
         { ac_try='test -s conftest.$ac_objext'
 
2033
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2034
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2035
  (eval $ac_try) 2>&5
 
2036
  ac_status=$?
 
2037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2038
  (exit $ac_status); }; } &&
 
2039
         { ac_try='test -s conftest.$ac_objext'
1984
2040
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1985
2041
  (eval $ac_try) 2>&5
1986
2042
  ac_status=$?
1993
2049
 
1994
2050
ac_compiler_gnu=no
1995
2051
fi
1996
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2052
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1997
2053
ac_cv_c_compiler_gnu=$ac_compiler_gnu
1998
2054
 
1999
2055
fi
2009
2065
  echo $ECHO_N "(cached) $ECHO_C" >&6
2010
2066
else
2011
2067
  cat >conftest.$ac_ext <<_ACEOF
2012
 
#line $LINENO "configure"
2013
2068
/* confdefs.h.  */
2014
2069
_ACEOF
2015
2070
cat confdefs.h >>conftest.$ac_ext
2026
2081
_ACEOF
2027
2082
rm -f conftest.$ac_objext
2028
2083
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2029
 
  (eval $ac_compile) 2>&5
 
2084
  (eval $ac_compile) 2>conftest.er1
2030
2085
  ac_status=$?
 
2086
  grep -v '^ *+' conftest.er1 >conftest.err
 
2087
  rm -f conftest.er1
 
2088
  cat conftest.err >&5
2031
2089
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032
2090
  (exit $ac_status); } &&
2033
 
         { ac_try='test -s conftest.$ac_objext'
 
2091
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2092
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2093
  (eval $ac_try) 2>&5
 
2094
  ac_status=$?
 
2095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2096
  (exit $ac_status); }; } &&
 
2097
         { ac_try='test -s conftest.$ac_objext'
2034
2098
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2035
2099
  (eval $ac_try) 2>&5
2036
2100
  ac_status=$?
2043
2107
 
2044
2108
ac_cv_prog_cc_g=no
2045
2109
fi
2046
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2110
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2047
2111
fi
2048
2112
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2049
2113
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2070
2134
  ac_cv_prog_cc_stdc=no
2071
2135
ac_save_CC=$CC
2072
2136
cat >conftest.$ac_ext <<_ACEOF
2073
 
#line $LINENO "configure"
2074
2137
/* confdefs.h.  */
2075
2138
_ACEOF
2076
2139
cat confdefs.h >>conftest.$ac_ext
2098
2161
  va_end (v);
2099
2162
  return s;
2100
2163
}
 
2164
 
 
2165
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2166
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2167
   These don't provoke an error unfortunately, instead are silently treated
 
2168
   as 'x'.  The following induces an error, until -std1 is added to get
 
2169
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2170
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2171
   that's true only with -std1.  */
 
2172
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2173
 
2101
2174
int test (int i, double x);
2102
2175
struct s1 {int (*f) (int a);};
2103
2176
struct s2 {int (*f) (double a);};
2124
2197
  CC="$ac_save_CC $ac_arg"
2125
2198
  rm -f conftest.$ac_objext
2126
2199
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2127
 
  (eval $ac_compile) 2>&5
 
2200
  (eval $ac_compile) 2>conftest.er1
2128
2201
  ac_status=$?
 
2202
  grep -v '^ *+' conftest.er1 >conftest.err
 
2203
  rm -f conftest.er1
 
2204
  cat conftest.err >&5
2129
2205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130
2206
  (exit $ac_status); } &&
2131
 
         { ac_try='test -s conftest.$ac_objext'
 
2207
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2208
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2209
  (eval $ac_try) 2>&5
 
2210
  ac_status=$?
 
2211
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2212
  (exit $ac_status); }; } &&
 
2213
         { ac_try='test -s conftest.$ac_objext'
2132
2214
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2133
2215
  (eval $ac_try) 2>&5
2134
2216
  ac_status=$?
2141
2223
sed 's/^/| /' conftest.$ac_ext >&5
2142
2224
 
2143
2225
fi
2144
 
rm -f conftest.$ac_objext
 
2226
rm -f conftest.err conftest.$ac_objext
2145
2227
done
2146
2228
rm -f conftest.$ac_ext conftest.$ac_objext
2147
2229
CC=$ac_save_CC
2169
2251
_ACEOF
2170
2252
rm -f conftest.$ac_objext
2171
2253
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2172
 
  (eval $ac_compile) 2>&5
 
2254
  (eval $ac_compile) 2>conftest.er1
2173
2255
  ac_status=$?
 
2256
  grep -v '^ *+' conftest.er1 >conftest.err
 
2257
  rm -f conftest.er1
 
2258
  cat conftest.err >&5
2174
2259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175
2260
  (exit $ac_status); } &&
2176
 
         { ac_try='test -s conftest.$ac_objext'
 
2261
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2262
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2263
  (eval $ac_try) 2>&5
 
2264
  ac_status=$?
 
2265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2266
  (exit $ac_status); }; } &&
 
2267
         { ac_try='test -s conftest.$ac_objext'
2177
2268
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178
2269
  (eval $ac_try) 2>&5
2179
2270
  ac_status=$?
2180
2271
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181
2272
  (exit $ac_status); }; }; then
2182
2273
  for ac_declaration in \
2183
 
   ''\
2184
 
   '#include <stdlib.h>' \
 
2274
   '' \
2185
2275
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2186
2276
   'extern "C" void std::exit (int); using std::exit;' \
2187
2277
   'extern "C" void exit (int) throw ();' \
2189
2279
   'void exit (int);'
2190
2280
do
2191
2281
  cat >conftest.$ac_ext <<_ACEOF
2192
 
#line $LINENO "configure"
2193
2282
/* confdefs.h.  */
2194
2283
_ACEOF
2195
2284
cat confdefs.h >>conftest.$ac_ext
2196
2285
cat >>conftest.$ac_ext <<_ACEOF
2197
2286
/* end confdefs.h.  */
 
2287
$ac_declaration
2198
2288
#include <stdlib.h>
2199
 
$ac_declaration
2200
2289
int
2201
2290
main ()
2202
2291
{
2207
2296
_ACEOF
2208
2297
rm -f conftest.$ac_objext
2209
2298
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2210
 
  (eval $ac_compile) 2>&5
 
2299
  (eval $ac_compile) 2>conftest.er1
2211
2300
  ac_status=$?
 
2301
  grep -v '^ *+' conftest.er1 >conftest.err
 
2302
  rm -f conftest.er1
 
2303
  cat conftest.err >&5
2212
2304
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213
2305
  (exit $ac_status); } &&
2214
 
         { ac_try='test -s conftest.$ac_objext'
 
2306
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2307
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2308
  (eval $ac_try) 2>&5
 
2309
  ac_status=$?
 
2310
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2311
  (exit $ac_status); }; } &&
 
2312
         { ac_try='test -s conftest.$ac_objext'
2215
2313
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216
2314
  (eval $ac_try) 2>&5
2217
2315
  ac_status=$?
2224
2322
 
2225
2323
continue
2226
2324
fi
2227
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2325
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2228
2326
  cat >conftest.$ac_ext <<_ACEOF
2229
 
#line $LINENO "configure"
2230
2327
/* confdefs.h.  */
2231
2328
_ACEOF
2232
2329
cat confdefs.h >>conftest.$ac_ext
2243
2340
_ACEOF
2244
2341
rm -f conftest.$ac_objext
2245
2342
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2246
 
  (eval $ac_compile) 2>&5
 
2343
  (eval $ac_compile) 2>conftest.er1
2247
2344
  ac_status=$?
 
2345
  grep -v '^ *+' conftest.er1 >conftest.err
 
2346
  rm -f conftest.er1
 
2347
  cat conftest.err >&5
2248
2348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249
2349
  (exit $ac_status); } &&
2250
 
         { ac_try='test -s conftest.$ac_objext'
 
2350
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2351
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2352
  (eval $ac_try) 2>&5
 
2353
  ac_status=$?
 
2354
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2355
  (exit $ac_status); }; } &&
 
2356
         { ac_try='test -s conftest.$ac_objext'
2251
2357
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2252
2358
  (eval $ac_try) 2>&5
2253
2359
  ac_status=$?
2259
2365
sed 's/^/| /' conftest.$ac_ext >&5
2260
2366
 
2261
2367
fi
2262
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2368
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2263
2369
done
2264
2370
rm -f conftest*
2265
2371
if test -n "$ac_declaration"; then
2273
2379
sed 's/^/| /' conftest.$ac_ext >&5
2274
2380
 
2275
2381
fi
2276
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2382
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2277
2383
ac_ext=c
2278
2384
ac_cpp='$CPP $CPPFLAGS'
2279
2385
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2308
2414
  # On the NeXT, cc -E runs the code through the compiler's parser,
2309
2415
  # not just through cpp. "Syntax error" is here to catch this case.
2310
2416
  cat >conftest.$ac_ext <<_ACEOF
2311
 
#line $LINENO "configure"
2312
2417
/* confdefs.h.  */
2313
2418
_ACEOF
2314
2419
cat confdefs.h >>conftest.$ac_ext
2319
2424
#else
2320
2425
# include <assert.h>
2321
2426
#endif
2322
 
                     Syntax error
 
2427
                     Syntax error
2323
2428
_ACEOF
2324
2429
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2325
2430
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2331
2436
  (exit $ac_status); } >/dev/null; then
2332
2437
  if test -s conftest.err; then
2333
2438
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2439
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2334
2440
  else
2335
2441
    ac_cpp_err=
2336
2442
  fi
2351
2457
  # OK, works on sane cases.  Now check whether non-existent headers
2352
2458
  # can be detected and how.
2353
2459
  cat >conftest.$ac_ext <<_ACEOF
2354
 
#line $LINENO "configure"
2355
2460
/* confdefs.h.  */
2356
2461
_ACEOF
2357
2462
cat confdefs.h >>conftest.$ac_ext
2369
2474
  (exit $ac_status); } >/dev/null; then
2370
2475
  if test -s conftest.err; then
2371
2476
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2477
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2372
2478
  else
2373
2479
    ac_cpp_err=
2374
2480
  fi
2415
2521
  # On the NeXT, cc -E runs the code through the compiler's parser,
2416
2522
  # not just through cpp. "Syntax error" is here to catch this case.
2417
2523
  cat >conftest.$ac_ext <<_ACEOF
2418
 
#line $LINENO "configure"
2419
2524
/* confdefs.h.  */
2420
2525
_ACEOF
2421
2526
cat confdefs.h >>conftest.$ac_ext
2426
2531
#else
2427
2532
# include <assert.h>
2428
2533
#endif
2429
 
                     Syntax error
 
2534
                     Syntax error
2430
2535
_ACEOF
2431
2536
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2432
2537
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2438
2543
  (exit $ac_status); } >/dev/null; then
2439
2544
  if test -s conftest.err; then
2440
2545
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2546
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2441
2547
  else
2442
2548
    ac_cpp_err=
2443
2549
  fi
2458
2564
  # OK, works on sane cases.  Now check whether non-existent headers
2459
2565
  # can be detected and how.
2460
2566
  cat >conftest.$ac_ext <<_ACEOF
2461
 
#line $LINENO "configure"
2462
2567
/* confdefs.h.  */
2463
2568
_ACEOF
2464
2569
cat confdefs.h >>conftest.$ac_ext
2476
2581
  (exit $ac_status); } >/dev/null; then
2477
2582
  if test -s conftest.err; then
2478
2583
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2584
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2479
2585
  else
2480
2586
    ac_cpp_err=
2481
2587
  fi
2525
2631
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2526
2632
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2527
2633
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2634
# OS/2's system install, which has a completely different semantic
2528
2635
# ./install, which can be erroneously created by make from ./install.sh.
2529
2636
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2530
2637
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2541
2648
case $as_dir/ in
2542
2649
  ./ | .// | /cC/* | \
2543
2650
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2651
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2544
2652
  /usr/ucb/* ) ;;
2545
2653
  *)
2546
2654
    # OSF1 and SCO ODT 3.0 have their own names for install.
2548
2656
    # by default.
2549
2657
    for ac_prog in ginstall scoinst install; do
2550
2658
      for ac_exec_ext in '' $ac_executable_extensions; do
2551
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2552
 
          if test $ac_prog = install &&
2553
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2554
 
            # AIX install.  It has an incompatible calling convention.
2555
 
            :
2556
 
          elif test $ac_prog = install &&
2557
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2558
 
            # program-specific install script used by HP pwplus--don't use.
2559
 
            :
2560
 
          else
2561
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2562
 
            break 3
2563
 
          fi
2564
 
        fi
 
2659
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
2660
          if test $ac_prog = install &&
 
2661
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2662
            # AIX install.  It has an incompatible calling convention.
 
2663
            :
 
2664
          elif test $ac_prog = install &&
 
2665
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2666
            # program-specific install script used by HP pwplus--don't use.
 
2667
            :
 
2668
          else
 
2669
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2670
            break 3
 
2671
          fi
 
2672
        fi
2565
2673
      done
2566
2674
    done
2567
2675
    ;;
2734
2842
  ac_cv_c_inline=no
2735
2843
for ac_kw in inline __inline__ __inline; do
2736
2844
  cat >conftest.$ac_ext <<_ACEOF
2737
 
#line $LINENO "configure"
2738
2845
/* confdefs.h.  */
2739
2846
_ACEOF
2740
2847
cat confdefs.h >>conftest.$ac_ext
2749
2856
_ACEOF
2750
2857
rm -f conftest.$ac_objext
2751
2858
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2752
 
  (eval $ac_compile) 2>&5
 
2859
  (eval $ac_compile) 2>conftest.er1
2753
2860
  ac_status=$?
 
2861
  grep -v '^ *+' conftest.er1 >conftest.err
 
2862
  rm -f conftest.er1
 
2863
  cat conftest.err >&5
2754
2864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755
2865
  (exit $ac_status); } &&
2756
 
         { ac_try='test -s conftest.$ac_objext'
 
2866
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2867
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2868
  (eval $ac_try) 2>&5
 
2869
  ac_status=$?
 
2870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2871
  (exit $ac_status); }; } &&
 
2872
         { ac_try='test -s conftest.$ac_objext'
2757
2873
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758
2874
  (eval $ac_try) 2>&5
2759
2875
  ac_status=$?
2765
2881
sed 's/^/| /' conftest.$ac_ext >&5
2766
2882
 
2767
2883
fi
2768
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2884
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2769
2885
done
2770
2886
 
2771
2887
fi
2772
2888
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2773
2889
echo "${ECHO_T}$ac_cv_c_inline" >&6
 
2890
 
 
2891
 
2774
2892
case $ac_cv_c_inline in
2775
2893
  inline | yes) ;;
2776
 
  no)
2777
 
cat >>confdefs.h <<\_ACEOF
2778
 
#define inline
2779
 
_ACEOF
2780
 
 ;;
2781
 
  *)  cat >>confdefs.h <<_ACEOF
2782
 
#define inline $ac_cv_c_inline
2783
 
_ACEOF
2784
 
 ;;
 
2894
  *)
 
2895
    case $ac_cv_c_inline in
 
2896
      no) ac_val=;;
 
2897
      *) ac_val=$ac_cv_c_inline;;
 
2898
    esac
 
2899
    cat >>confdefs.h <<_ACEOF
 
2900
#ifndef __cplusplus
 
2901
#define inline $ac_val
 
2902
#endif
 
2903
_ACEOF
 
2904
    ;;
2785
2905
esac
2786
2906
 
2787
2907
 
2797
2917
  echo $ECHO_N "(cached) $ECHO_C" >&6
2798
2918
else
2799
2919
  cat >conftest.$ac_ext <<_ACEOF
2800
 
#line $LINENO "configure"
2801
2920
/* confdefs.h.  */
2802
2921
_ACEOF
2803
2922
cat confdefs.h >>conftest.$ac_ext
2804
2923
cat >>conftest.$ac_ext <<_ACEOF
2805
2924
/* end confdefs.h.  */
 
2925
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
2926
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
2927
#define $ac_func innocuous_$ac_func
 
2928
 
2806
2929
/* System header to define __stub macros and hopefully few prototypes,
2807
2930
    which can conflict with char $ac_func (); below.
2808
2931
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2809
2932
    <limits.h> exists even on freestanding compilers.  */
 
2933
 
2810
2934
#ifdef __STDC__
2811
2935
# include <limits.h>
2812
2936
#else
2813
2937
# include <assert.h>
2814
2938
#endif
 
2939
 
 
2940
#undef $ac_func
 
2941
 
2815
2942
/* Override any gcc2 internal prototype to avoid an error.  */
2816
2943
#ifdef __cplusplus
2817
2944
extern "C"
2842
2969
_ACEOF
2843
2970
rm -f conftest.$ac_objext conftest$ac_exeext
2844
2971
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2845
 
  (eval $ac_link) 2>&5
 
2972
  (eval $ac_link) 2>conftest.er1
2846
2973
  ac_status=$?
 
2974
  grep -v '^ *+' conftest.er1 >conftest.err
 
2975
  rm -f conftest.er1
 
2976
  cat conftest.err >&5
2847
2977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848
2978
  (exit $ac_status); } &&
2849
 
         { ac_try='test -s conftest$ac_exeext'
 
2979
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2980
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2981
  (eval $ac_try) 2>&5
 
2982
  ac_status=$?
 
2983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2984
  (exit $ac_status); }; } &&
 
2985
         { ac_try='test -s conftest$ac_exeext'
2850
2986
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851
2987
  (eval $ac_try) 2>&5
2852
2988
  ac_status=$?
2859
2995
 
2860
2996
eval "$as_ac_var=no"
2861
2997
fi
2862
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
2998
rm -f conftest.err conftest.$ac_objext \
 
2999
      conftest$ac_exeext conftest.$ac_ext
2863
3000
fi
2864
3001
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2865
3002
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2873
3010
 
2874
3011
 
2875
3012
 
2876
 
 
2877
 
for ac_func in cfsetispeed tcsendbreak cfmakeraw
 
3013
for ac_func in cfsetispeed tcsendbreak
2878
3014
do
2879
3015
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2880
3016
echo "$as_me:$LINENO: checking for $ac_func" >&5
2883
3019
  echo $ECHO_N "(cached) $ECHO_C" >&6
2884
3020
else
2885
3021
  cat >conftest.$ac_ext <<_ACEOF
2886
 
#line $LINENO "configure"
2887
3022
/* confdefs.h.  */
2888
3023
_ACEOF
2889
3024
cat confdefs.h >>conftest.$ac_ext
2890
3025
cat >>conftest.$ac_ext <<_ACEOF
2891
3026
/* end confdefs.h.  */
 
3027
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
3028
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
3029
#define $ac_func innocuous_$ac_func
 
3030
 
2892
3031
/* System header to define __stub macros and hopefully few prototypes,
2893
3032
    which can conflict with char $ac_func (); below.
2894
3033
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2895
3034
    <limits.h> exists even on freestanding compilers.  */
 
3035
 
2896
3036
#ifdef __STDC__
2897
3037
# include <limits.h>
2898
3038
#else
2899
3039
# include <assert.h>
2900
3040
#endif
 
3041
 
 
3042
#undef $ac_func
 
3043
 
2901
3044
/* Override any gcc2 internal prototype to avoid an error.  */
2902
3045
#ifdef __cplusplus
2903
3046
extern "C"
2928
3071
_ACEOF
2929
3072
rm -f conftest.$ac_objext conftest$ac_exeext
2930
3073
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2931
 
  (eval $ac_link) 2>&5
 
3074
  (eval $ac_link) 2>conftest.er1
2932
3075
  ac_status=$?
 
3076
  grep -v '^ *+' conftest.er1 >conftest.err
 
3077
  rm -f conftest.er1
 
3078
  cat conftest.err >&5
2933
3079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934
3080
  (exit $ac_status); } &&
2935
 
         { ac_try='test -s conftest$ac_exeext'
 
3081
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3082
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3083
  (eval $ac_try) 2>&5
 
3084
  ac_status=$?
 
3085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3086
  (exit $ac_status); }; } &&
 
3087
         { ac_try='test -s conftest$ac_exeext'
2936
3088
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937
3089
  (eval $ac_try) 2>&5
2938
3090
  ac_status=$?
2945
3097
 
2946
3098
eval "$as_ac_var=no"
2947
3099
fi
2948
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3100
rm -f conftest.err conftest.$ac_objext \
 
3101
      conftest$ac_exeext conftest.$ac_ext
2949
3102
fi
2950
3103
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2951
3104
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2969
3122
  echo $ECHO_N "(cached) $ECHO_C" >&6
2970
3123
else
2971
3124
  cat >conftest.$ac_ext <<_ACEOF
2972
 
#line $LINENO "configure"
2973
3125
/* confdefs.h.  */
2974
3126
_ACEOF
2975
3127
cat confdefs.h >>conftest.$ac_ext
2976
3128
cat >>conftest.$ac_ext <<_ACEOF
2977
3129
/* end confdefs.h.  */
 
3130
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
3131
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
3132
#define $ac_func innocuous_$ac_func
 
3133
 
2978
3134
/* System header to define __stub macros and hopefully few prototypes,
2979
3135
    which can conflict with char $ac_func (); below.
2980
3136
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2981
3137
    <limits.h> exists even on freestanding compilers.  */
 
3138
 
2982
3139
#ifdef __STDC__
2983
3140
# include <limits.h>
2984
3141
#else
2985
3142
# include <assert.h>
2986
3143
#endif
 
3144
 
 
3145
#undef $ac_func
 
3146
 
2987
3147
/* Override any gcc2 internal prototype to avoid an error.  */
2988
3148
#ifdef __cplusplus
2989
3149
extern "C"
3014
3174
_ACEOF
3015
3175
rm -f conftest.$ac_objext conftest$ac_exeext
3016
3176
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3017
 
  (eval $ac_link) 2>&5
 
3177
  (eval $ac_link) 2>conftest.er1
3018
3178
  ac_status=$?
 
3179
  grep -v '^ *+' conftest.er1 >conftest.err
 
3180
  rm -f conftest.er1
 
3181
  cat conftest.err >&5
3019
3182
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020
3183
  (exit $ac_status); } &&
3021
 
         { ac_try='test -s conftest$ac_exeext'
 
3184
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3185
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3186
  (eval $ac_try) 2>&5
 
3187
  ac_status=$?
 
3188
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3189
  (exit $ac_status); }; } &&
 
3190
         { ac_try='test -s conftest$ac_exeext'
3022
3191
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023
3192
  (eval $ac_try) 2>&5
3024
3193
  ac_status=$?
3031
3200
 
3032
3201
eval "$as_ac_var=no"
3033
3202
fi
3034
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3203
rm -f conftest.err conftest.$ac_objext \
 
3204
      conftest$ac_exeext conftest.$ac_ext
3035
3205
fi
3036
3206
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3037
3207
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3055
3225
  echo $ECHO_N "(cached) $ECHO_C" >&6
3056
3226
else
3057
3227
  cat >conftest.$ac_ext <<_ACEOF
3058
 
#line $LINENO "configure"
3059
3228
/* confdefs.h.  */
3060
3229
_ACEOF
3061
3230
cat confdefs.h >>conftest.$ac_ext
3062
3231
cat >>conftest.$ac_ext <<_ACEOF
3063
3232
/* end confdefs.h.  */
 
3233
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
3234
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
3235
#define $ac_func innocuous_$ac_func
 
3236
 
3064
3237
/* System header to define __stub macros and hopefully few prototypes,
3065
3238
    which can conflict with char $ac_func (); below.
3066
3239
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3067
3240
    <limits.h> exists even on freestanding compilers.  */
 
3241
 
3068
3242
#ifdef __STDC__
3069
3243
# include <limits.h>
3070
3244
#else
3071
3245
# include <assert.h>
3072
3246
#endif
 
3247
 
 
3248
#undef $ac_func
 
3249
 
3073
3250
/* Override any gcc2 internal prototype to avoid an error.  */
3074
3251
#ifdef __cplusplus
3075
3252
extern "C"
3100
3277
_ACEOF
3101
3278
rm -f conftest.$ac_objext conftest$ac_exeext
3102
3279
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3103
 
  (eval $ac_link) 2>&5
 
3280
  (eval $ac_link) 2>conftest.er1
3104
3281
  ac_status=$?
 
3282
  grep -v '^ *+' conftest.er1 >conftest.err
 
3283
  rm -f conftest.er1
 
3284
  cat conftest.err >&5
3105
3285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106
3286
  (exit $ac_status); } &&
3107
 
         { ac_try='test -s conftest$ac_exeext'
 
3287
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3288
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3289
  (eval $ac_try) 2>&5
 
3290
  ac_status=$?
 
3291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3292
  (exit $ac_status); }; } &&
 
3293
         { ac_try='test -s conftest$ac_exeext'
3108
3294
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109
3295
  (eval $ac_try) 2>&5
3110
3296
  ac_status=$?
3117
3303
 
3118
3304
eval "$as_ac_var=no"
3119
3305
fi
3120
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3306
rm -f conftest.err conftest.$ac_objext \
 
3307
      conftest$ac_exeext conftest.$ac_ext
3121
3308
fi
3122
3309
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3123
3310
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3143
3330
  echo $ECHO_N "(cached) $ECHO_C" >&6
3144
3331
else
3145
3332
  cat >conftest.$ac_ext <<_ACEOF
3146
 
#line $LINENO "configure"
3147
3333
/* confdefs.h.  */
3148
3334
_ACEOF
3149
3335
cat confdefs.h >>conftest.$ac_ext
3150
3336
cat >>conftest.$ac_ext <<_ACEOF
3151
3337
/* end confdefs.h.  */
 
3338
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
3339
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
3340
#define $ac_func innocuous_$ac_func
 
3341
 
3152
3342
/* System header to define __stub macros and hopefully few prototypes,
3153
3343
    which can conflict with char $ac_func (); below.
3154
3344
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3155
3345
    <limits.h> exists even on freestanding compilers.  */
 
3346
 
3156
3347
#ifdef __STDC__
3157
3348
# include <limits.h>
3158
3349
#else
3159
3350
# include <assert.h>
3160
3351
#endif
 
3352
 
 
3353
#undef $ac_func
 
3354
 
3161
3355
/* Override any gcc2 internal prototype to avoid an error.  */
3162
3356
#ifdef __cplusplus
3163
3357
extern "C"
3188
3382
_ACEOF
3189
3383
rm -f conftest.$ac_objext conftest$ac_exeext
3190
3384
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3191
 
  (eval $ac_link) 2>&5
 
3385
  (eval $ac_link) 2>conftest.er1
3192
3386
  ac_status=$?
 
3387
  grep -v '^ *+' conftest.er1 >conftest.err
 
3388
  rm -f conftest.er1
 
3389
  cat conftest.err >&5
3193
3390
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194
3391
  (exit $ac_status); } &&
3195
 
         { ac_try='test -s conftest$ac_exeext'
 
3392
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3393
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3394
  (eval $ac_try) 2>&5
 
3395
  ac_status=$?
 
3396
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3397
  (exit $ac_status); }; } &&
 
3398
         { ac_try='test -s conftest$ac_exeext'
3196
3399
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3197
3400
  (eval $ac_try) 2>&5
3198
3401
  ac_status=$?
3205
3408
 
3206
3409
eval "$as_ac_var=no"
3207
3410
fi
3208
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3411
rm -f conftest.err conftest.$ac_objext \
 
3412
      conftest$ac_exeext conftest.$ac_ext
3209
3413
fi
3210
3414
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3211
3415
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3231
3435
  echo $ECHO_N "(cached) $ECHO_C" >&6
3232
3436
else
3233
3437
  cat >conftest.$ac_ext <<_ACEOF
3234
 
#line $LINENO "configure"
3235
3438
/* confdefs.h.  */
3236
3439
_ACEOF
3237
3440
cat confdefs.h >>conftest.$ac_ext
3238
3441
cat >>conftest.$ac_ext <<_ACEOF
3239
3442
/* end confdefs.h.  */
 
3443
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
3444
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
3445
#define $ac_func innocuous_$ac_func
 
3446
 
3240
3447
/* System header to define __stub macros and hopefully few prototypes,
3241
3448
    which can conflict with char $ac_func (); below.
3242
3449
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3243
3450
    <limits.h> exists even on freestanding compilers.  */
 
3451
 
3244
3452
#ifdef __STDC__
3245
3453
# include <limits.h>
3246
3454
#else
3247
3455
# include <assert.h>
3248
3456
#endif
 
3457
 
 
3458
#undef $ac_func
 
3459
 
3249
3460
/* Override any gcc2 internal prototype to avoid an error.  */
3250
3461
#ifdef __cplusplus
3251
3462
extern "C"
3276
3487
_ACEOF
3277
3488
rm -f conftest.$ac_objext conftest$ac_exeext
3278
3489
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3279
 
  (eval $ac_link) 2>&5
 
3490
  (eval $ac_link) 2>conftest.er1
3280
3491
  ac_status=$?
 
3492
  grep -v '^ *+' conftest.er1 >conftest.err
 
3493
  rm -f conftest.er1
 
3494
  cat conftest.err >&5
3281
3495
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282
3496
  (exit $ac_status); } &&
3283
 
         { ac_try='test -s conftest$ac_exeext'
 
3497
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3498
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3499
  (eval $ac_try) 2>&5
 
3500
  ac_status=$?
 
3501
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3502
  (exit $ac_status); }; } &&
 
3503
         { ac_try='test -s conftest$ac_exeext'
3284
3504
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285
3505
  (eval $ac_try) 2>&5
3286
3506
  ac_status=$?
3293
3513
 
3294
3514
eval "$as_ac_var=no"
3295
3515
fi
3296
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3516
rm -f conftest.err conftest.$ac_objext \
 
3517
      conftest$ac_exeext conftest.$ac_ext
3297
3518
fi
3298
3519
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3299
3520
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3319
3540
  echo $ECHO_N "(cached) $ECHO_C" >&6
3320
3541
else
3321
3542
  cat >conftest.$ac_ext <<_ACEOF
3322
 
#line $LINENO "configure"
3323
3543
/* confdefs.h.  */
3324
3544
_ACEOF
3325
3545
cat confdefs.h >>conftest.$ac_ext
3326
3546
cat >>conftest.$ac_ext <<_ACEOF
3327
3547
/* end confdefs.h.  */
 
3548
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
3549
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
3550
#define $ac_func innocuous_$ac_func
 
3551
 
3328
3552
/* System header to define __stub macros and hopefully few prototypes,
3329
3553
    which can conflict with char $ac_func (); below.
3330
3554
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3331
3555
    <limits.h> exists even on freestanding compilers.  */
 
3556
 
3332
3557
#ifdef __STDC__
3333
3558
# include <limits.h>
3334
3559
#else
3335
3560
# include <assert.h>
3336
3561
#endif
 
3562
 
 
3563
#undef $ac_func
 
3564
 
3337
3565
/* Override any gcc2 internal prototype to avoid an error.  */
3338
3566
#ifdef __cplusplus
3339
3567
extern "C"
3364
3592
_ACEOF
3365
3593
rm -f conftest.$ac_objext conftest$ac_exeext
3366
3594
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3367
 
  (eval $ac_link) 2>&5
 
3595
  (eval $ac_link) 2>conftest.er1
3368
3596
  ac_status=$?
 
3597
  grep -v '^ *+' conftest.er1 >conftest.err
 
3598
  rm -f conftest.er1
 
3599
  cat conftest.err >&5
3369
3600
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370
3601
  (exit $ac_status); } &&
3371
 
         { ac_try='test -s conftest$ac_exeext'
 
3602
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3603
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3604
  (eval $ac_try) 2>&5
 
3605
  ac_status=$?
 
3606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3607
  (exit $ac_status); }; } &&
 
3608
         { ac_try='test -s conftest$ac_exeext'
3372
3609
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373
3610
  (eval $ac_try) 2>&5
3374
3611
  ac_status=$?
3381
3618
 
3382
3619
eval "$as_ac_var=no"
3383
3620
fi
3384
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3621
rm -f conftest.err conftest.$ac_objext \
 
3622
      conftest$ac_exeext conftest.$ac_ext
3385
3623
fi
3386
3624
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3387
3625
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3398
3636
done
3399
3637
 
3400
3638
 
3401
 
for ac_func in strlcpy
3402
 
do
3403
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3404
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
3405
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3406
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
3407
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3408
 
else
3409
 
  cat >conftest.$ac_ext <<_ACEOF
3410
 
#line $LINENO "configure"
3411
 
/* confdefs.h.  */
3412
 
_ACEOF
3413
 
cat confdefs.h >>conftest.$ac_ext
3414
 
cat >>conftest.$ac_ext <<_ACEOF
3415
 
/* end confdefs.h.  */
3416
 
/* System header to define __stub macros and hopefully few prototypes,
3417
 
    which can conflict with char $ac_func (); below.
3418
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3419
 
    <limits.h> exists even on freestanding compilers.  */
3420
 
#ifdef __STDC__
3421
 
# include <limits.h>
3422
 
#else
3423
 
# include <assert.h>
3424
 
#endif
3425
 
/* Override any gcc2 internal prototype to avoid an error.  */
3426
 
#ifdef __cplusplus
3427
 
extern "C"
3428
 
{
3429
 
#endif
3430
 
/* We use char because int might match the return type of a gcc2
3431
 
   builtin and then its argument prototype would still apply.  */
3432
 
char $ac_func ();
3433
 
/* The GNU C library defines this for functions which it implements
3434
 
    to always fail with ENOSYS.  Some functions are actually named
3435
 
    something starting with __ and the normal name is an alias.  */
3436
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3437
 
choke me
3438
 
#else
3439
 
char (*f) () = $ac_func;
3440
 
#endif
3441
 
#ifdef __cplusplus
3442
 
}
3443
 
#endif
3444
 
 
3445
 
int
3446
 
main ()
3447
 
{
3448
 
return f != $ac_func;
3449
 
  ;
3450
 
  return 0;
3451
 
}
3452
 
_ACEOF
3453
 
rm -f conftest.$ac_objext conftest$ac_exeext
3454
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3455
 
  (eval $ac_link) 2>&5
3456
 
  ac_status=$?
3457
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458
 
  (exit $ac_status); } &&
3459
 
         { ac_try='test -s conftest$ac_exeext'
3460
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461
 
  (eval $ac_try) 2>&5
3462
 
  ac_status=$?
3463
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464
 
  (exit $ac_status); }; }; then
3465
 
  eval "$as_ac_var=yes"
3466
 
else
3467
 
  echo "$as_me: failed program was:" >&5
3468
 
sed 's/^/| /' conftest.$ac_ext >&5
3469
 
 
3470
 
eval "$as_ac_var=no"
3471
 
fi
3472
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3473
 
fi
3474
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3475
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3476
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
3477
 
  cat >>confdefs.h <<_ACEOF
3478
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3479
 
_ACEOF
3480
 
 
3481
 
else
3482
 
  STRLCPY="../common/strlcpy.o"
3483
 
        BUILDOBJ="$BUILDOBJ strlcpy.o"
3484
 
 
3485
 
fi
3486
 
done
3487
 
 
3488
 
 
3489
3639
for ac_func in atexit
3490
3640
do
3491
3641
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3495
3645
  echo $ECHO_N "(cached) $ECHO_C" >&6
3496
3646
else
3497
3647
  cat >conftest.$ac_ext <<_ACEOF
3498
 
#line $LINENO "configure"
3499
3648
/* confdefs.h.  */
3500
3649
_ACEOF
3501
3650
cat confdefs.h >>conftest.$ac_ext
3502
3651
cat >>conftest.$ac_ext <<_ACEOF
3503
3652
/* end confdefs.h.  */
 
3653
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
3654
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
3655
#define $ac_func innocuous_$ac_func
 
3656
 
3504
3657
/* System header to define __stub macros and hopefully few prototypes,
3505
3658
    which can conflict with char $ac_func (); below.
3506
3659
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3507
3660
    <limits.h> exists even on freestanding compilers.  */
 
3661
 
3508
3662
#ifdef __STDC__
3509
3663
# include <limits.h>
3510
3664
#else
3511
3665
# include <assert.h>
3512
3666
#endif
 
3667
 
 
3668
#undef $ac_func
 
3669
 
3513
3670
/* Override any gcc2 internal prototype to avoid an error.  */
3514
3671
#ifdef __cplusplus
3515
3672
extern "C"
3540
3697
_ACEOF
3541
3698
rm -f conftest.$ac_objext conftest$ac_exeext
3542
3699
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3543
 
  (eval $ac_link) 2>&5
 
3700
  (eval $ac_link) 2>conftest.er1
3544
3701
  ac_status=$?
 
3702
  grep -v '^ *+' conftest.er1 >conftest.err
 
3703
  rm -f conftest.er1
 
3704
  cat conftest.err >&5
3545
3705
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546
3706
  (exit $ac_status); } &&
3547
 
         { ac_try='test -s conftest$ac_exeext'
 
3707
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3708
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3709
  (eval $ac_try) 2>&5
 
3710
  ac_status=$?
 
3711
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3712
  (exit $ac_status); }; } &&
 
3713
         { ac_try='test -s conftest$ac_exeext'
3548
3714
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549
3715
  (eval $ac_try) 2>&5
3550
3716
  ac_status=$?
3557
3723
 
3558
3724
eval "$as_ac_var=no"
3559
3725
fi
3560
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3726
rm -f conftest.err conftest.$ac_objext \
 
3727
      conftest$ac_exeext conftest.$ac_ext
3561
3728
fi
3562
3729
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3563
3730
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3580
3747
  echo $ECHO_N "(cached) $ECHO_C" >&6
3581
3748
else
3582
3749
  cat >conftest.$ac_ext <<_ACEOF
3583
 
#line $LINENO "configure"
3584
3750
/* confdefs.h.  */
3585
3751
_ACEOF
3586
3752
cat confdefs.h >>conftest.$ac_ext
3587
3753
cat >>conftest.$ac_ext <<_ACEOF
3588
3754
/* end confdefs.h.  */
 
3755
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
3756
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
3757
#define $ac_func innocuous_$ac_func
 
3758
 
3589
3759
/* System header to define __stub macros and hopefully few prototypes,
3590
3760
    which can conflict with char $ac_func (); below.
3591
3761
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3592
3762
    <limits.h> exists even on freestanding compilers.  */
 
3763
 
3593
3764
#ifdef __STDC__
3594
3765
# include <limits.h>
3595
3766
#else
3596
3767
# include <assert.h>
3597
3768
#endif
 
3769
 
 
3770
#undef $ac_func
 
3771
 
3598
3772
/* Override any gcc2 internal prototype to avoid an error.  */
3599
3773
#ifdef __cplusplus
3600
3774
extern "C"
3625
3799
_ACEOF
3626
3800
rm -f conftest.$ac_objext conftest$ac_exeext
3627
3801
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3628
 
  (eval $ac_link) 2>&5
 
3802
  (eval $ac_link) 2>conftest.er1
3629
3803
  ac_status=$?
 
3804
  grep -v '^ *+' conftest.er1 >conftest.err
 
3805
  rm -f conftest.er1
 
3806
  cat conftest.err >&5
3630
3807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631
3808
  (exit $ac_status); } &&
3632
 
         { ac_try='test -s conftest$ac_exeext'
 
3809
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3810
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3811
  (eval $ac_try) 2>&5
 
3812
  ac_status=$?
 
3813
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3814
  (exit $ac_status); }; } &&
 
3815
         { ac_try='test -s conftest$ac_exeext'
3633
3816
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634
3817
  (eval $ac_try) 2>&5
3635
3818
  ac_status=$?
3642
3825
 
3643
3826
eval "$as_ac_var=no"
3644
3827
fi
3645
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3828
rm -f conftest.err conftest.$ac_objext \
 
3829
      conftest$ac_exeext conftest.$ac_ext
3646
3830
fi
3647
3831
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3648
3832
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3660
3844
 
3661
3845
 
3662
3846
if test -z "$AR" ; then
3663
 
        MISC_UPSCLI_OBJ="upsclient.o ../common/parseconf.o"
3664
 
        MISC_UPSCLI_LIBOBJ="upsclient.o parseconf.o"
 
3847
        UPSCLI_OBJ="upsclient.o ../common/parseconf.o"
 
3848
        UPSCLI_LIBOBJ="upsclient.o parseconf.o"
3665
3849
else
3666
 
        MISC_UPSCLI_OBJ="libupsclient.a"
3667
 
        MISC_UPSCLI_LIBOBJ="-lupsclient"
 
3850
        UPSCLI_OBJ="libupsclient.a"
 
3851
        UPSCLI_LIBOBJ="-lupsclient"
3668
3852
fi
3669
3853
 
3670
3854
#
3671
 
# Only use -Wall when compiling with gcc
 
3855
# Only use these when compiling with gcc
3672
3856
#
3673
3857
if ( test "x$GCC" = "xyes" )
3674
3858
then
3675
 
  CFLAGS="$CFLAGS -Wall"
 
3859
  CFLAGS="$CFLAGS -Wall -Wsign-compare"
3676
3860
fi
3677
3861
 
3678
3862
# Endianness handling, using default behavior
3685
3869
else
3686
3870
  # See if sys/param.h defines the BYTE_ORDER macro.
3687
3871
cat >conftest.$ac_ext <<_ACEOF
3688
 
#line $LINENO "configure"
3689
3872
/* confdefs.h.  */
3690
3873
_ACEOF
3691
3874
cat confdefs.h >>conftest.$ac_ext
3707
3890
_ACEOF
3708
3891
rm -f conftest.$ac_objext
3709
3892
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3710
 
  (eval $ac_compile) 2>&5
 
3893
  (eval $ac_compile) 2>conftest.er1
3711
3894
  ac_status=$?
 
3895
  grep -v '^ *+' conftest.er1 >conftest.err
 
3896
  rm -f conftest.er1
 
3897
  cat conftest.err >&5
3712
3898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713
3899
  (exit $ac_status); } &&
3714
 
         { ac_try='test -s conftest.$ac_objext'
 
3900
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3901
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3902
  (eval $ac_try) 2>&5
 
3903
  ac_status=$?
 
3904
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3905
  (exit $ac_status); }; } &&
 
3906
         { ac_try='test -s conftest.$ac_objext'
3715
3907
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716
3908
  (eval $ac_try) 2>&5
3717
3909
  ac_status=$?
3719
3911
  (exit $ac_status); }; }; then
3720
3912
  # It does; now see whether it defined to BIG_ENDIAN or not.
3721
3913
cat >conftest.$ac_ext <<_ACEOF
3722
 
#line $LINENO "configure"
3723
3914
/* confdefs.h.  */
3724
3915
_ACEOF
3725
3916
cat confdefs.h >>conftest.$ac_ext
3741
3932
_ACEOF
3742
3933
rm -f conftest.$ac_objext
3743
3934
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3744
 
  (eval $ac_compile) 2>&5
 
3935
  (eval $ac_compile) 2>conftest.er1
3745
3936
  ac_status=$?
 
3937
  grep -v '^ *+' conftest.er1 >conftest.err
 
3938
  rm -f conftest.er1
 
3939
  cat conftest.err >&5
3746
3940
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747
3941
  (exit $ac_status); } &&
3748
 
         { ac_try='test -s conftest.$ac_objext'
 
3942
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3943
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3944
  (eval $ac_try) 2>&5
 
3945
  ac_status=$?
 
3946
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3947
  (exit $ac_status); }; } &&
 
3948
         { ac_try='test -s conftest.$ac_objext'
3749
3949
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3750
3950
  (eval $ac_try) 2>&5
3751
3951
  ac_status=$?
3758
3958
 
3759
3959
ac_cv_c_bigendian=no
3760
3960
fi
3761
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
3961
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3762
3962
else
3763
3963
  echo "$as_me: failed program was:" >&5
3764
3964
sed 's/^/| /' conftest.$ac_ext >&5
3768
3968
  # try to guess the endianness by grepping values into an object file
3769
3969
  ac_cv_c_bigendian=unknown
3770
3970
  cat >conftest.$ac_ext <<_ACEOF
3771
 
#line $LINENO "configure"
3772
3971
/* confdefs.h.  */
3773
3972
_ACEOF
3774
3973
cat confdefs.h >>conftest.$ac_ext
3790
3989
_ACEOF
3791
3990
rm -f conftest.$ac_objext
3792
3991
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3793
 
  (eval $ac_compile) 2>&5
 
3992
  (eval $ac_compile) 2>conftest.er1
3794
3993
  ac_status=$?
 
3994
  grep -v '^ *+' conftest.er1 >conftest.err
 
3995
  rm -f conftest.er1
 
3996
  cat conftest.err >&5
3795
3997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796
3998
  (exit $ac_status); } &&
3797
 
         { ac_try='test -s conftest.$ac_objext'
 
3999
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4000
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4001
  (eval $ac_try) 2>&5
 
4002
  ac_status=$?
 
4003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4004
  (exit $ac_status); }; } &&
 
4005
         { ac_try='test -s conftest.$ac_objext'
3798
4006
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799
4007
  (eval $ac_try) 2>&5
3800
4008
  ac_status=$?
3816
4024
sed 's/^/| /' conftest.$ac_ext >&5
3817
4025
 
3818
4026
fi
3819
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
4027
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3820
4028
else
3821
4029
  cat >conftest.$ac_ext <<_ACEOF
3822
 
#line $LINENO "configure"
3823
4030
/* confdefs.h.  */
3824
4031
_ACEOF
3825
4032
cat confdefs.h >>conftest.$ac_ext
3858
4065
( exit $ac_status )
3859
4066
ac_cv_c_bigendian=yes
3860
4067
fi
3861
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3862
 
fi
3863
 
fi
3864
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
4068
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4069
fi
 
4070
fi
 
4071
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3865
4072
fi
3866
4073
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3867
4074
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3888
4095
echo "$as_me:$LINENO: checking for getopt declarations" >&5
3889
4096
echo $ECHO_N "checking for getopt declarations... $ECHO_C" >&6
3890
4097
cat >conftest.$ac_ext <<_ACEOF
3891
 
#line $LINENO "configure"
3892
4098
/* confdefs.h.  */
3893
4099
_ACEOF
3894
4100
cat confdefs.h >>conftest.$ac_ext
3905
4111
_ACEOF
3906
4112
rm -f conftest.$ac_objext
3907
4113
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3908
 
  (eval $ac_compile) 2>&5
 
4114
  (eval $ac_compile) 2>conftest.er1
3909
4115
  ac_status=$?
 
4116
  grep -v '^ *+' conftest.er1 >conftest.err
 
4117
  rm -f conftest.er1
 
4118
  cat conftest.err >&5
3910
4119
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911
4120
  (exit $ac_status); } &&
3912
 
         { ac_try='test -s conftest.$ac_objext'
 
4121
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4122
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4123
  (eval $ac_try) 2>&5
 
4124
  ac_status=$?
 
4125
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4126
  (exit $ac_status); }; } &&
 
4127
         { ac_try='test -s conftest.$ac_objext'
3913
4128
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914
4129
  (eval $ac_try) 2>&5
3915
4130
  ac_status=$?
3922
4137
 
3923
4138
nut_getopt_decl_in_unistd=no
3924
4139
fi
3925
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
4140
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3926
4141
if test $nut_getopt_decl_in_unistd = yes; then
3927
4142
  echo "$as_me:$LINENO: result: in unistd.h" >&5
3928
4143
echo "${ECHO_T}in unistd.h" >&6
3934
4149
  echo $ECHO_N "(cached) $ECHO_C" >&6
3935
4150
else
3936
4151
  cat >conftest.$ac_ext <<_ACEOF
3937
 
#line $LINENO "configure"
3938
4152
/* confdefs.h.  */
3939
4153
_ACEOF
3940
4154
cat confdefs.h >>conftest.$ac_ext
3955
4169
_ACEOF
3956
4170
rm -f conftest.$ac_objext
3957
4171
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3958
 
  (eval $ac_compile) 2>&5
 
4172
  (eval $ac_compile) 2>conftest.er1
3959
4173
  ac_status=$?
 
4174
  grep -v '^ *+' conftest.er1 >conftest.err
 
4175
  rm -f conftest.er1
 
4176
  cat conftest.err >&5
3960
4177
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961
4178
  (exit $ac_status); } &&
3962
 
         { ac_try='test -s conftest.$ac_objext'
 
4179
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4180
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4181
  (eval $ac_try) 2>&5
 
4182
  ac_status=$?
 
4183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4184
  (exit $ac_status); }; } &&
 
4185
         { ac_try='test -s conftest.$ac_objext'
3963
4186
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964
4187
  (eval $ac_try) 2>&5
3965
4188
  ac_status=$?
3972
4195
 
3973
4196
ac_cv_header_stdc=no
3974
4197
fi
3975
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
4198
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3976
4199
 
3977
4200
if test $ac_cv_header_stdc = yes; then
3978
4201
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3979
4202
  cat >conftest.$ac_ext <<_ACEOF
3980
 
#line $LINENO "configure"
3981
4203
/* confdefs.h.  */
3982
4204
_ACEOF
3983
4205
cat confdefs.h >>conftest.$ac_ext
3999
4221
if test $ac_cv_header_stdc = yes; then
4000
4222
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4001
4223
  cat >conftest.$ac_ext <<_ACEOF
4002
 
#line $LINENO "configure"
4003
4224
/* confdefs.h.  */
4004
4225
_ACEOF
4005
4226
cat confdefs.h >>conftest.$ac_ext
4024
4245
  :
4025
4246
else
4026
4247
  cat >conftest.$ac_ext <<_ACEOF
4027
 
#line $LINENO "configure"
4028
4248
/* confdefs.h.  */
4029
4249
_ACEOF
4030
4250
cat confdefs.h >>conftest.$ac_ext
4036
4256
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4037
4257
#else
4038
4258
# define ISLOWER(c) \
4039
 
                   (('a' <= (c) && (c) <= 'i') \
4040
 
                     || ('j' <= (c) && (c) <= 'r') \
4041
 
                     || ('s' <= (c) && (c) <= 'z'))
 
4259
                   (('a' <= (c) && (c) <= 'i') \
 
4260
                     || ('j' <= (c) && (c) <= 'r') \
 
4261
                     || ('s' <= (c) && (c) <= 'z'))
4042
4262
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4043
4263
#endif
4044
4264
 
4049
4269
  int i;
4050
4270
  for (i = 0; i < 256; i++)
4051
4271
    if (XOR (islower (i), ISLOWER (i))
4052
 
        || toupper (i) != TOUPPER (i))
 
4272
        || toupper (i) != TOUPPER (i))
4053
4273
      exit(2);
4054
4274
  exit (0);
4055
4275
}
4074
4294
( exit $ac_status )
4075
4295
ac_cv_header_stdc=no
4076
4296
fi
4077
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4297
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4078
4298
fi
4079
4299
fi
4080
4300
fi
4099
4319
 
4100
4320
 
4101
4321
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4102
 
                  inttypes.h stdint.h unistd.h
 
4322
                  inttypes.h stdint.h unistd.h
4103
4323
do
4104
4324
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4105
4325
echo "$as_me:$LINENO: checking for $ac_header" >&5
4108
4328
  echo $ECHO_N "(cached) $ECHO_C" >&6
4109
4329
else
4110
4330
  cat >conftest.$ac_ext <<_ACEOF
4111
 
#line $LINENO "configure"
4112
4331
/* confdefs.h.  */
4113
4332
_ACEOF
4114
4333
cat confdefs.h >>conftest.$ac_ext
4120
4339
_ACEOF
4121
4340
rm -f conftest.$ac_objext
4122
4341
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4123
 
  (eval $ac_compile) 2>&5
 
4342
  (eval $ac_compile) 2>conftest.er1
4124
4343
  ac_status=$?
 
4344
  grep -v '^ *+' conftest.er1 >conftest.err
 
4345
  rm -f conftest.er1
 
4346
  cat conftest.err >&5
4125
4347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126
4348
  (exit $ac_status); } &&
4127
 
         { ac_try='test -s conftest.$ac_objext'
 
4349
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4350
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4351
  (eval $ac_try) 2>&5
 
4352
  ac_status=$?
 
4353
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4354
  (exit $ac_status); }; } &&
 
4355
         { ac_try='test -s conftest.$ac_objext'
4128
4356
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129
4357
  (eval $ac_try) 2>&5
4130
4358
  ac_status=$?
4137
4365
 
4138
4366
eval "$as_ac_Header=no"
4139
4367
fi
4140
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
4368
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4141
4369
fi
4142
4370
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4143
4371
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4164
4392
echo "$as_me:$LINENO: checking getopt.h usability" >&5
4165
4393
echo $ECHO_N "checking getopt.h usability... $ECHO_C" >&6
4166
4394
cat >conftest.$ac_ext <<_ACEOF
4167
 
#line $LINENO "configure"
4168
4395
/* confdefs.h.  */
4169
4396
_ACEOF
4170
4397
cat confdefs.h >>conftest.$ac_ext
4175
4402
_ACEOF
4176
4403
rm -f conftest.$ac_objext
4177
4404
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4178
 
  (eval $ac_compile) 2>&5
 
4405
  (eval $ac_compile) 2>conftest.er1
4179
4406
  ac_status=$?
 
4407
  grep -v '^ *+' conftest.er1 >conftest.err
 
4408
  rm -f conftest.er1
 
4409
  cat conftest.err >&5
4180
4410
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181
4411
  (exit $ac_status); } &&
4182
 
         { ac_try='test -s conftest.$ac_objext'
 
4412
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4413
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4414
  (eval $ac_try) 2>&5
 
4415
  ac_status=$?
 
4416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4417
  (exit $ac_status); }; } &&
 
4418
         { ac_try='test -s conftest.$ac_objext'
4183
4419
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4184
4420
  (eval $ac_try) 2>&5
4185
4421
  ac_status=$?
4192
4428
 
4193
4429
ac_header_compiler=no
4194
4430
fi
4195
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
4431
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4196
4432
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4197
4433
echo "${ECHO_T}$ac_header_compiler" >&6
4198
4434
 
4200
4436
echo "$as_me:$LINENO: checking getopt.h presence" >&5
4201
4437
echo $ECHO_N "checking getopt.h presence... $ECHO_C" >&6
4202
4438
cat >conftest.$ac_ext <<_ACEOF
4203
 
#line $LINENO "configure"
4204
4439
/* confdefs.h.  */
4205
4440
_ACEOF
4206
4441
cat confdefs.h >>conftest.$ac_ext
4218
4453
  (exit $ac_status); } >/dev/null; then
4219
4454
  if test -s conftest.err; then
4220
4455
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4456
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4221
4457
  else
4222
4458
    ac_cpp_err=
4223
4459
  fi
4237
4473
echo "${ECHO_T}$ac_header_preproc" >&6
4238
4474
 
4239
4475
# So?  What about this header?
4240
 
case $ac_header_compiler:$ac_header_preproc in
4241
 
  yes:no )
 
4476
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4477
  yes:no: )
4242
4478
    { echo "$as_me:$LINENO: WARNING: getopt.h: accepted by the compiler, rejected by the preprocessor!" >&5
4243
4479
echo "$as_me: WARNING: getopt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4244
 
    { echo "$as_me:$LINENO: WARNING: getopt.h: proceeding with the preprocessor's result" >&5
4245
 
echo "$as_me: WARNING: getopt.h: proceeding with the preprocessor's result" >&2;}
4246
 
    (
4247
 
      cat <<\_ASBOX
4248
 
## ------------------------------------ ##
4249
 
## Report this to bug-autoconf@gnu.org. ##
4250
 
## ------------------------------------ ##
4251
 
_ASBOX
4252
 
    ) |
4253
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
4480
    { echo "$as_me:$LINENO: WARNING: getopt.h: proceeding with the compiler's result" >&5
 
4481
echo "$as_me: WARNING: getopt.h: proceeding with the compiler's result" >&2;}
 
4482
    ac_header_preproc=yes
4254
4483
    ;;
4255
 
  no:yes )
 
4484
  no:yes:* )
4256
4485
    { echo "$as_me:$LINENO: WARNING: getopt.h: present but cannot be compiled" >&5
4257
4486
echo "$as_me: WARNING: getopt.h: present but cannot be compiled" >&2;}
4258
 
    { echo "$as_me:$LINENO: WARNING: getopt.h: check for missing prerequisite headers?" >&5
4259
 
echo "$as_me: WARNING: getopt.h: check for missing prerequisite headers?" >&2;}
 
4487
    { echo "$as_me:$LINENO: WARNING: getopt.h:     check for missing prerequisite headers?" >&5
 
4488
echo "$as_me: WARNING: getopt.h:     check for missing prerequisite headers?" >&2;}
 
4489
    { echo "$as_me:$LINENO: WARNING: getopt.h: see the Autoconf documentation" >&5
 
4490
echo "$as_me: WARNING: getopt.h: see the Autoconf documentation" >&2;}
 
4491
    { echo "$as_me:$LINENO: WARNING: getopt.h:     section \"Present But Cannot Be Compiled\"" >&5
 
4492
echo "$as_me: WARNING: getopt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4260
4493
    { echo "$as_me:$LINENO: WARNING: getopt.h: proceeding with the preprocessor's result" >&5
4261
4494
echo "$as_me: WARNING: getopt.h: proceeding with the preprocessor's result" >&2;}
 
4495
    { echo "$as_me:$LINENO: WARNING: getopt.h: in the future, the compiler will take precedence" >&5
 
4496
echo "$as_me: WARNING: getopt.h: in the future, the compiler will take precedence" >&2;}
4262
4497
    (
4263
4498
      cat <<\_ASBOX
4264
 
## ------------------------------------ ##
4265
 
## Report this to bug-autoconf@gnu.org. ##
4266
 
## ------------------------------------ ##
 
4499
## ------------------------------------------ ##
 
4500
## Report this to the AC_PACKAGE_NAME lists.  ##
 
4501
## ------------------------------------------ ##
4267
4502
_ASBOX
4268
4503
    ) |
4269
4504
      sed "s/^/$as_me: WARNING:     /" >&2
4306
4541
  fi
4307
4542
fi
4308
4543
 
4309
 
 
4310
4544
# FreeBSD serial locking compatibility - look for uu_lock in libutil.h
4311
4545
 
4312
4546
echo "$as_me:$LINENO: checking whether to use uu_lock" >&5
4313
4547
echo $ECHO_N "checking whether to use uu_lock... $ECHO_C" >&6
4314
4548
cat >conftest.$ac_ext <<_ACEOF
4315
 
#line $LINENO "configure"
4316
4549
/* confdefs.h.  */
4317
4550
_ACEOF
4318
4551
cat confdefs.h >>conftest.$ac_ext
4358
4591
  echo $ECHO_N "(cached) $ECHO_C" >&6
4359
4592
else
4360
4593
  cat >conftest.$ac_ext <<_ACEOF
4361
 
#line $LINENO "configure"
4362
4594
/* confdefs.h.  */
4363
4595
_ACEOF
4364
4596
cat confdefs.h >>conftest.$ac_ext
4365
4597
cat >>conftest.$ac_ext <<_ACEOF
4366
4598
/* end confdefs.h.  */
 
4599
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
4600
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
4601
#define $ac_func innocuous_$ac_func
 
4602
 
4367
4603
/* System header to define __stub macros and hopefully few prototypes,
4368
4604
    which can conflict with char $ac_func (); below.
4369
4605
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4370
4606
    <limits.h> exists even on freestanding compilers.  */
 
4607
 
4371
4608
#ifdef __STDC__
4372
4609
# include <limits.h>
4373
4610
#else
4374
4611
# include <assert.h>
4375
4612
#endif
 
4613
 
 
4614
#undef $ac_func
 
4615
 
4376
4616
/* Override any gcc2 internal prototype to avoid an error.  */
4377
4617
#ifdef __cplusplus
4378
4618
extern "C"
4403
4643
_ACEOF
4404
4644
rm -f conftest.$ac_objext conftest$ac_exeext
4405
4645
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4406
 
  (eval $ac_link) 2>&5
 
4646
  (eval $ac_link) 2>conftest.er1
4407
4647
  ac_status=$?
 
4648
  grep -v '^ *+' conftest.er1 >conftest.err
 
4649
  rm -f conftest.er1
 
4650
  cat conftest.err >&5
4408
4651
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409
4652
  (exit $ac_status); } &&
4410
 
         { ac_try='test -s conftest$ac_exeext'
 
4653
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4654
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4655
  (eval $ac_try) 2>&5
 
4656
  ac_status=$?
 
4657
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4658
  (exit $ac_status); }; } &&
 
4659
         { ac_try='test -s conftest$ac_exeext'
4411
4660
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412
4661
  (eval $ac_try) 2>&5
4413
4662
  ac_status=$?
4420
4669
 
4421
4670
eval "$as_ac_var=no"
4422
4671
fi
4423
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4672
rm -f conftest.err conftest.$ac_objext \
 
4673
      conftest$ac_exeext conftest.$ac_ext
4424
4674
fi
4425
4675
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4426
4676
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4442
4692
  ac_check_lib_save_LIBS=$LIBS
4443
4693
LIBS="-lnsl  $LIBS"
4444
4694
cat >conftest.$ac_ext <<_ACEOF
4445
 
#line $LINENO "configure"
4446
4695
/* confdefs.h.  */
4447
4696
_ACEOF
4448
4697
cat confdefs.h >>conftest.$ac_ext
4466
4715
_ACEOF
4467
4716
rm -f conftest.$ac_objext conftest$ac_exeext
4468
4717
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4469
 
  (eval $ac_link) 2>&5
 
4718
  (eval $ac_link) 2>conftest.er1
4470
4719
  ac_status=$?
 
4720
  grep -v '^ *+' conftest.er1 >conftest.err
 
4721
  rm -f conftest.er1
 
4722
  cat conftest.err >&5
4471
4723
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472
4724
  (exit $ac_status); } &&
4473
 
         { ac_try='test -s conftest$ac_exeext'
 
4725
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4726
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4727
  (eval $ac_try) 2>&5
 
4728
  ac_status=$?
 
4729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4730
  (exit $ac_status); }; } &&
 
4731
         { ac_try='test -s conftest$ac_exeext'
4474
4732
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475
4733
  (eval $ac_try) 2>&5
4476
4734
  ac_status=$?
4483
4741
 
4484
4742
ac_cv_lib_nsl_printf=no
4485
4743
fi
4486
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4744
rm -f conftest.err conftest.$ac_objext \
 
4745
      conftest$ac_exeext conftest.$ac_ext
4487
4746
LIBS=$ac_check_lib_save_LIBS
4488
4747
fi
4489
4748
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_printf" >&5
4503
4762
  ac_check_lib_save_LIBS=$LIBS
4504
4763
LIBS="-lsocket  $LIBS"
4505
4764
cat >conftest.$ac_ext <<_ACEOF
4506
 
#line $LINENO "configure"
4507
4765
/* confdefs.h.  */
4508
4766
_ACEOF
4509
4767
cat confdefs.h >>conftest.$ac_ext
4527
4785
_ACEOF
4528
4786
rm -f conftest.$ac_objext conftest$ac_exeext
4529
4787
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4530
 
  (eval $ac_link) 2>&5
 
4788
  (eval $ac_link) 2>conftest.er1
4531
4789
  ac_status=$?
 
4790
  grep -v '^ *+' conftest.er1 >conftest.err
 
4791
  rm -f conftest.er1
 
4792
  cat conftest.err >&5
4532
4793
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533
4794
  (exit $ac_status); } &&
4534
 
         { ac_try='test -s conftest$ac_exeext'
 
4795
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4796
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4797
  (eval $ac_try) 2>&5
 
4798
  ac_status=$?
 
4799
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4800
  (exit $ac_status); }; } &&
 
4801
         { ac_try='test -s conftest$ac_exeext'
4535
4802
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536
4803
  (eval $ac_try) 2>&5
4537
4804
  ac_status=$?
4544
4811
 
4545
4812
ac_cv_lib_socket_printf=no
4546
4813
fi
4547
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4814
rm -f conftest.err conftest.$ac_objext \
 
4815
      conftest$ac_exeext conftest.$ac_ext
4548
4816
LIBS=$ac_check_lib_save_LIBS
4549
4817
fi
4550
4818
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_printf" >&5
4577
4845
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4578
4846
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4579
4847
cat >conftest.$ac_ext <<_ACEOF
4580
 
#line $LINENO "configure"
4581
4848
/* confdefs.h.  */
4582
4849
_ACEOF
4583
4850
cat confdefs.h >>conftest.$ac_ext
4588
4855
_ACEOF
4589
4856
rm -f conftest.$ac_objext
4590
4857
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4591
 
  (eval $ac_compile) 2>&5
 
4858
  (eval $ac_compile) 2>conftest.er1
4592
4859
  ac_status=$?
 
4860
  grep -v '^ *+' conftest.er1 >conftest.err
 
4861
  rm -f conftest.er1
 
4862
  cat conftest.err >&5
4593
4863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594
4864
  (exit $ac_status); } &&
4595
 
         { ac_try='test -s conftest.$ac_objext'
 
4865
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4866
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4867
  (eval $ac_try) 2>&5
 
4868
  ac_status=$?
 
4869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4870
  (exit $ac_status); }; } &&
 
4871
         { ac_try='test -s conftest.$ac_objext'
4596
4872
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597
4873
  (eval $ac_try) 2>&5
4598
4874
  ac_status=$?
4605
4881
 
4606
4882
ac_header_compiler=no
4607
4883
fi
4608
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
4884
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4609
4885
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4610
4886
echo "${ECHO_T}$ac_header_compiler" >&6
4611
4887
 
4613
4889
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4614
4890
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4615
4891
cat >conftest.$ac_ext <<_ACEOF
4616
 
#line $LINENO "configure"
4617
4892
/* confdefs.h.  */
4618
4893
_ACEOF
4619
4894
cat confdefs.h >>conftest.$ac_ext
4631
4906
  (exit $ac_status); } >/dev/null; then
4632
4907
  if test -s conftest.err; then
4633
4908
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4909
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4634
4910
  else
4635
4911
    ac_cpp_err=
4636
4912
  fi
4650
4926
echo "${ECHO_T}$ac_header_preproc" >&6
4651
4927
 
4652
4928
# So?  What about this header?
4653
 
case $ac_header_compiler:$ac_header_preproc in
4654
 
  yes:no )
 
4929
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4930
  yes:no: )
4655
4931
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4656
4932
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4657
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4658
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4659
 
    (
4660
 
      cat <<\_ASBOX
4661
 
## ------------------------------------ ##
4662
 
## Report this to bug-autoconf@gnu.org. ##
4663
 
## ------------------------------------ ##
4664
 
_ASBOX
4665
 
    ) |
4666
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
4933
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4934
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4935
    ac_header_preproc=yes
4667
4936
    ;;
4668
 
  no:yes )
 
4937
  no:yes:* )
4669
4938
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4670
4939
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4671
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4672
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
4940
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4941
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4942
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4943
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4944
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4945
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4673
4946
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4674
4947
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4948
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4949
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4675
4950
    (
4676
4951
      cat <<\_ASBOX
4677
 
## ------------------------------------ ##
4678
 
## Report this to bug-autoconf@gnu.org. ##
4679
 
## ------------------------------------ ##
 
4952
## ------------------------------------------ ##
 
4953
## Report this to the AC_PACKAGE_NAME lists.  ##
 
4954
## ------------------------------------------ ##
4680
4955
_ASBOX
4681
4956
    ) |
4682
4957
      sed "s/^/$as_me: WARNING:     /" >&2
4687
4962
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4688
4963
  echo $ECHO_N "(cached) $ECHO_C" >&6
4689
4964
else
4690
 
  eval "$as_ac_Header=$ac_header_preproc"
 
4965
  eval "$as_ac_Header=\$ac_header_preproc"
4691
4966
fi
4692
4967
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4693
4968
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4709
4984
  echo $ECHO_N "(cached) $ECHO_C" >&6
4710
4985
else
4711
4986
  cat >conftest.$ac_ext <<_ACEOF
4712
 
#line $LINENO "configure"
4713
4987
/* confdefs.h.  */
4714
4988
_ACEOF
4715
4989
cat confdefs.h >>conftest.$ac_ext
4730
5004
_ACEOF
4731
5005
rm -f conftest.$ac_objext
4732
5006
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4733
 
  (eval $ac_compile) 2>&5
 
5007
  (eval $ac_compile) 2>conftest.er1
4734
5008
  ac_status=$?
 
5009
  grep -v '^ *+' conftest.er1 >conftest.err
 
5010
  rm -f conftest.er1
 
5011
  cat conftest.err >&5
4735
5012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736
5013
  (exit $ac_status); } &&
4737
 
         { ac_try='test -s conftest.$ac_objext'
 
5014
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5015
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5016
  (eval $ac_try) 2>&5
 
5017
  ac_status=$?
 
5018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5019
  (exit $ac_status); }; } &&
 
5020
         { ac_try='test -s conftest.$ac_objext'
4738
5021
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739
5022
  (eval $ac_try) 2>&5
4740
5023
  ac_status=$?
4747
5030
 
4748
5031
ac_cv_header_time=no
4749
5032
fi
4750
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
5033
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4751
5034
fi
4752
5035
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4753
5036
echo "${ECHO_T}$ac_cv_header_time" >&6
4776
5059
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4777
5060
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4778
5061
cat >conftest.$ac_ext <<_ACEOF
4779
 
#line $LINENO "configure"
4780
5062
/* confdefs.h.  */
4781
5063
_ACEOF
4782
5064
cat confdefs.h >>conftest.$ac_ext
4787
5069
_ACEOF
4788
5070
rm -f conftest.$ac_objext
4789
5071
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4790
 
  (eval $ac_compile) 2>&5
 
5072
  (eval $ac_compile) 2>conftest.er1
4791
5073
  ac_status=$?
 
5074
  grep -v '^ *+' conftest.er1 >conftest.err
 
5075
  rm -f conftest.er1
 
5076
  cat conftest.err >&5
4792
5077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793
5078
  (exit $ac_status); } &&
4794
 
         { ac_try='test -s conftest.$ac_objext'
 
5079
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5080
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5081
  (eval $ac_try) 2>&5
 
5082
  ac_status=$?
 
5083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5084
  (exit $ac_status); }; } &&
 
5085
         { ac_try='test -s conftest.$ac_objext'
4795
5086
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796
5087
  (eval $ac_try) 2>&5
4797
5088
  ac_status=$?
4804
5095
 
4805
5096
ac_header_compiler=no
4806
5097
fi
4807
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
5098
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4808
5099
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4809
5100
echo "${ECHO_T}$ac_header_compiler" >&6
4810
5101
 
4812
5103
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4813
5104
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4814
5105
cat >conftest.$ac_ext <<_ACEOF
4815
 
#line $LINENO "configure"
4816
5106
/* confdefs.h.  */
4817
5107
_ACEOF
4818
5108
cat confdefs.h >>conftest.$ac_ext
4830
5120
  (exit $ac_status); } >/dev/null; then
4831
5121
  if test -s conftest.err; then
4832
5122
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5123
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4833
5124
  else
4834
5125
    ac_cpp_err=
4835
5126
  fi
4849
5140
echo "${ECHO_T}$ac_header_preproc" >&6
4850
5141
 
4851
5142
# So?  What about this header?
4852
 
case $ac_header_compiler:$ac_header_preproc in
4853
 
  yes:no )
 
5143
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5144
  yes:no: )
4854
5145
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4855
5146
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4856
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4857
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4858
 
    (
4859
 
      cat <<\_ASBOX
4860
 
## ------------------------------------ ##
4861
 
## Report this to bug-autoconf@gnu.org. ##
4862
 
## ------------------------------------ ##
4863
 
_ASBOX
4864
 
    ) |
4865
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
5147
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5148
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5149
    ac_header_preproc=yes
4866
5150
    ;;
4867
 
  no:yes )
 
5151
  no:yes:* )
4868
5152
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4869
5153
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4870
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4871
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
5154
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5155
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5156
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5157
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5158
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5159
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4872
5160
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4873
5161
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5162
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5163
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4874
5164
    (
4875
5165
      cat <<\_ASBOX
4876
 
## ------------------------------------ ##
4877
 
## Report this to bug-autoconf@gnu.org. ##
4878
 
## ------------------------------------ ##
 
5166
## ------------------------------------------ ##
 
5167
## Report this to the AC_PACKAGE_NAME lists.  ##
 
5168
## ------------------------------------------ ##
4879
5169
_ASBOX
4880
5170
    ) |
4881
5171
      sed "s/^/$as_me: WARNING:     /" >&2
4886
5176
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4887
5177
  echo $ECHO_N "(cached) $ECHO_C" >&6
4888
5178
else
4889
 
  eval "$as_ac_Header=$ac_header_preproc"
 
5179
  eval "$as_ac_Header=\$ac_header_preproc"
4890
5180
fi
4891
5181
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4892
5182
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4909
5199
  echo $ECHO_N "(cached) $ECHO_C" >&6
4910
5200
else
4911
5201
  cat >conftest.$ac_ext <<_ACEOF
4912
 
#line $LINENO "configure"
4913
5202
/* confdefs.h.  */
4914
5203
_ACEOF
4915
5204
cat confdefs.h >>conftest.$ac_ext
4931
5220
_ACEOF
4932
5221
rm -f conftest.$ac_objext
4933
5222
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4934
 
  (eval $ac_compile) 2>&5
 
5223
  (eval $ac_compile) 2>conftest.er1
4935
5224
  ac_status=$?
 
5225
  grep -v '^ *+' conftest.er1 >conftest.err
 
5226
  rm -f conftest.er1
 
5227
  cat conftest.err >&5
4936
5228
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937
5229
  (exit $ac_status); } &&
4938
 
         { ac_try='test -s conftest.$ac_objext'
 
5230
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5231
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5232
  (eval $ac_try) 2>&5
 
5233
  ac_status=$?
 
5234
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5235
  (exit $ac_status); }; } &&
 
5236
         { ac_try='test -s conftest.$ac_objext'
4939
5237
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4940
5238
  (eval $ac_try) 2>&5
4941
5239
  ac_status=$?
4948
5246
 
4949
5247
ac_cv_type_socklen_t=no
4950
5248
fi
4951
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
5249
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4952
5250
fi
4953
5251
echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
4954
5252
echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4968
5266
         for arg2 in "struct sockaddr" void; do
4969
5267
            for t in int size_t unsigned long "unsigned long"; do
4970
5268
               cat >conftest.$ac_ext <<_ACEOF
4971
 
#line $LINENO "configure"
4972
5269
/* confdefs.h.  */
4973
5270
_ACEOF
4974
5271
cat confdefs.h >>conftest.$ac_ext
4993
5290
_ACEOF
4994
5291
rm -f conftest.$ac_objext
4995
5292
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4996
 
  (eval $ac_compile) 2>&5
 
5293
  (eval $ac_compile) 2>conftest.er1
4997
5294
  ac_status=$?
 
5295
  grep -v '^ *+' conftest.er1 >conftest.err
 
5296
  rm -f conftest.er1
 
5297
  cat conftest.err >&5
4998
5298
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999
5299
  (exit $ac_status); } &&
5000
 
         { ac_try='test -s conftest.$ac_objext'
 
5300
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5301
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5302
  (eval $ac_try) 2>&5
 
5303
  ac_status=$?
 
5304
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5305
  (exit $ac_status); }; } &&
 
5306
         { ac_try='test -s conftest.$ac_objext'
5001
5307
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5002
5308
  (eval $ac_try) 2>&5
5003
5309
  ac_status=$?
5012
5318
sed 's/^/| /' conftest.$ac_ext >&5
5013
5319
 
5014
5320
fi
5015
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
5321
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5016
5322
            done
5017
5323
         done
5018
5324
 
5055
5361
                CFLAGS=$SSL_CFLAGS
5056
5362
                LDFLAGS=$SSL_LDFLAGS
5057
5363
                cat >conftest.$ac_ext <<_ACEOF
5058
 
#line $LINENO "configure"
5059
5364
/* confdefs.h.  */
5060
5365
_ACEOF
5061
5366
cat confdefs.h >>conftest.$ac_ext
5072
5377
_ACEOF
5073
5378
rm -f conftest.$ac_objext conftest$ac_exeext
5074
5379
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5075
 
  (eval $ac_link) 2>&5
 
5380
  (eval $ac_link) 2>conftest.er1
5076
5381
  ac_status=$?
 
5382
  grep -v '^ *+' conftest.er1 >conftest.err
 
5383
  rm -f conftest.er1
 
5384
  cat conftest.err >&5
5077
5385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078
5386
  (exit $ac_status); } &&
5079
 
         { ac_try='test -s conftest$ac_exeext'
 
5387
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5388
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5389
  (eval $ac_try) 2>&5
 
5390
  ac_status=$?
 
5391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5392
  (exit $ac_status); }; } &&
 
5393
         { ac_try='test -s conftest$ac_exeext'
5080
5394
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081
5395
  (eval $ac_try) 2>&5
5082
5396
  ac_status=$?
5089
5403
 
5090
5404
ssl_ok=no
5091
5405
fi
5092
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5406
rm -f conftest.err conftest.$ac_objext \
 
5407
      conftest$ac_exeext conftest.$ac_ext
5093
5408
 
5094
5409
                if test "$ssl_ok" != yes; then
5095
5410
                        SSL_CFLAGS="-I/usr/local/ssl/include"
5098
5413
                        CFLAGS=$SSL_CFLAGS
5099
5414
                        LDFLAGS=$SSL_LDFLAGS
5100
5415
                        cat >conftest.$ac_ext <<_ACEOF
5101
 
#line $LINENO "configure"
5102
5416
/* confdefs.h.  */
5103
5417
_ACEOF
5104
5418
cat confdefs.h >>conftest.$ac_ext
5115
5429
_ACEOF
5116
5430
rm -f conftest.$ac_objext conftest$ac_exeext
5117
5431
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5118
 
  (eval $ac_link) 2>&5
 
5432
  (eval $ac_link) 2>conftest.er1
5119
5433
  ac_status=$?
 
5434
  grep -v '^ *+' conftest.er1 >conftest.err
 
5435
  rm -f conftest.er1
 
5436
  cat conftest.err >&5
5120
5437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121
5438
  (exit $ac_status); } &&
5122
 
         { ac_try='test -s conftest$ac_exeext'
 
5439
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5440
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5441
  (eval $ac_try) 2>&5
 
5442
  ac_status=$?
 
5443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5444
  (exit $ac_status); }; } &&
 
5445
         { ac_try='test -s conftest$ac_exeext'
5123
5446
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124
5447
  (eval $ac_try) 2>&5
5125
5448
  ac_status=$?
5132
5455
 
5133
5456
ssl_ok=no
5134
5457
fi
5135
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5458
rm -f conftest.err conftest.$ac_objext \
 
5459
      conftest$ac_exeext conftest.$ac_ext
5136
5460
                fi
5137
5461
 
5138
5462
                if test "$ssl_ok" != yes; then
5279
5603
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5280
5604
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5281
5605
cat >conftest.$ac_ext <<_ACEOF
5282
 
#line $LINENO "configure"
5283
5606
/* confdefs.h.  */
5284
5607
_ACEOF
5285
5608
cat confdefs.h >>conftest.$ac_ext
5290
5613
_ACEOF
5291
5614
rm -f conftest.$ac_objext
5292
5615
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5293
 
  (eval $ac_compile) 2>&5
 
5616
  (eval $ac_compile) 2>conftest.er1
5294
5617
  ac_status=$?
 
5618
  grep -v '^ *+' conftest.er1 >conftest.err
 
5619
  rm -f conftest.er1
 
5620
  cat conftest.err >&5
5295
5621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296
5622
  (exit $ac_status); } &&
5297
 
         { ac_try='test -s conftest.$ac_objext'
 
5623
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5624
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5625
  (eval $ac_try) 2>&5
 
5626
  ac_status=$?
 
5627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5628
  (exit $ac_status); }; } &&
 
5629
         { ac_try='test -s conftest.$ac_objext'
5298
5630
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299
5631
  (eval $ac_try) 2>&5
5300
5632
  ac_status=$?
5307
5639
 
5308
5640
ac_header_compiler=no
5309
5641
fi
5310
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
5642
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5311
5643
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5312
5644
echo "${ECHO_T}$ac_header_compiler" >&6
5313
5645
 
5315
5647
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5316
5648
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5317
5649
cat >conftest.$ac_ext <<_ACEOF
5318
 
#line $LINENO "configure"
5319
5650
/* confdefs.h.  */
5320
5651
_ACEOF
5321
5652
cat confdefs.h >>conftest.$ac_ext
5333
5664
  (exit $ac_status); } >/dev/null; then
5334
5665
  if test -s conftest.err; then
5335
5666
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5667
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5336
5668
  else
5337
5669
    ac_cpp_err=
5338
5670
  fi
5352
5684
echo "${ECHO_T}$ac_header_preproc" >&6
5353
5685
 
5354
5686
# So?  What about this header?
5355
 
case $ac_header_compiler:$ac_header_preproc in
5356
 
  yes:no )
 
5687
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5688
  yes:no: )
5357
5689
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5358
5690
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5359
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5360
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5361
 
    (
5362
 
      cat <<\_ASBOX
5363
 
## ------------------------------------ ##
5364
 
## Report this to bug-autoconf@gnu.org. ##
5365
 
## ------------------------------------ ##
5366
 
_ASBOX
5367
 
    ) |
5368
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
5691
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5692
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5693
    ac_header_preproc=yes
5369
5694
    ;;
5370
 
  no:yes )
 
5695
  no:yes:* )
5371
5696
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5372
5697
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5373
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5374
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
5698
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5699
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5700
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5701
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5702
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5703
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5375
5704
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5376
5705
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5706
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5707
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5377
5708
    (
5378
5709
      cat <<\_ASBOX
5379
 
## ------------------------------------ ##
5380
 
## Report this to bug-autoconf@gnu.org. ##
5381
 
## ------------------------------------ ##
 
5710
## ------------------------------------------ ##
 
5711
## Report this to the AC_PACKAGE_NAME lists.  ##
 
5712
## ------------------------------------------ ##
5382
5713
_ASBOX
5383
5714
    ) |
5384
5715
      sed "s/^/$as_me: WARNING:     /" >&2
5389
5720
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5390
5721
  echo $ECHO_N "(cached) $ECHO_C" >&6
5391
5722
else
5392
 
  eval "$as_ac_Header=$ac_header_preproc"
 
5723
  eval "$as_ac_Header=\$ac_header_preproc"
5393
5724
fi
5394
5725
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5395
5726
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5412
5743
  ac_check_lib_save_LIBS=$LIBS
5413
5744
LIBS="-lgd $GD_LIBS $LIBS"
5414
5745
cat >conftest.$ac_ext <<_ACEOF
5415
 
#line $LINENO "configure"
5416
5746
/* confdefs.h.  */
5417
5747
_ACEOF
5418
5748
cat confdefs.h >>conftest.$ac_ext
5436
5766
_ACEOF
5437
5767
rm -f conftest.$ac_objext conftest$ac_exeext
5438
5768
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5439
 
  (eval $ac_link) 2>&5
 
5769
  (eval $ac_link) 2>conftest.er1
5440
5770
  ac_status=$?
 
5771
  grep -v '^ *+' conftest.er1 >conftest.err
 
5772
  rm -f conftest.er1
 
5773
  cat conftest.err >&5
5441
5774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442
5775
  (exit $ac_status); } &&
5443
 
         { ac_try='test -s conftest$ac_exeext'
 
5776
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5777
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5778
  (eval $ac_try) 2>&5
 
5779
  ac_status=$?
 
5780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5781
  (exit $ac_status); }; } &&
 
5782
         { ac_try='test -s conftest$ac_exeext'
5444
5783
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5445
5784
  (eval $ac_try) 2>&5
5446
5785
  ac_status=$?
5453
5792
 
5454
5793
ac_cv_lib_gd_gdImagePng=no
5455
5794
fi
5456
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5795
rm -f conftest.err conftest.$ac_objext \
 
5796
      conftest$ac_exeext conftest.$ac_ext
5457
5797
LIBS=$ac_check_lib_save_LIBS
5458
5798
fi
5459
5799
echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImagePng" >&5
5522
5862
echo "${ECHO_T}$NETSNMP_LIBS" >&6
5523
5863
fi
5524
5864
 
5525
 
 
5526
5865
echo "$as_me:$LINENO: checking for libusb cflags" >&5
5527
5866
echo $ECHO_N "checking for libusb cflags... $ECHO_C" >&6
5528
5867
LIBUSB_CFLAGS=`libusb-config --cflags 2>/dev/null`
5529
5868
 
5530
5869
if (test "$?" != "0")
5531
5870
then
5532
 
       echo "$as_me:$LINENO: result: not found" >&5
 
5871
        echo "$as_me:$LINENO: result: not found" >&5
5533
5872
echo "${ECHO_T}not found" >&6
5534
5873
else
5535
 
       echo "$as_me:$LINENO: result: $LIBUSB_CFLAGS" >&5
 
5874
        echo "$as_me:$LINENO: result: $LIBUSB_CFLAGS" >&5
5536
5875
echo "${ECHO_T}$LIBUSB_CFLAGS" >&6
 
5876
        USB_DRIVER_LIST=newhidups
 
5877
        USBPAGES=newhidups.8
5537
5878
fi
5538
5879
 
5539
5880
echo "$as_me:$LINENO: checking for libusb libs" >&5
5542
5883
 
5543
5884
if (test "$?" != "0")
5544
5885
then
5545
 
       echo "$as_me:$LINENO: result: not found" >&5
 
5886
        echo "$as_me:$LINENO: result: not found" >&5
5546
5887
echo "${ECHO_T}not found" >&6
5547
5888
else
5548
 
       echo "$as_me:$LINENO: result: $LIBUSB_LIBS" >&5
 
5889
        echo "$as_me:$LINENO: result: $LIBUSB_LIBS" >&5
5549
5890
echo "${ECHO_T}$LIBUSB_LIBS" >&6
5550
5891
fi
5551
5892
 
 
5893
echo "$as_me:$LINENO: checking for usb_detach_kernel_driver_np in -lusb" >&5
 
5894
echo $ECHO_N "checking for usb_detach_kernel_driver_np in -lusb... $ECHO_C" >&6
 
5895
if test "${ac_cv_lib_usb_usb_detach_kernel_driver_np+set}" = set; then
 
5896
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5897
else
 
5898
  ac_check_lib_save_LIBS=$LIBS
 
5899
LIBS="-lusb  $LIBS"
 
5900
cat >conftest.$ac_ext <<_ACEOF
 
5901
/* confdefs.h.  */
 
5902
_ACEOF
 
5903
cat confdefs.h >>conftest.$ac_ext
 
5904
cat >>conftest.$ac_ext <<_ACEOF
 
5905
/* end confdefs.h.  */
 
5906
 
 
5907
/* Override any gcc2 internal prototype to avoid an error.  */
 
5908
#ifdef __cplusplus
 
5909
extern "C"
 
5910
#endif
 
5911
/* We use char because int might match the return type of a gcc2
 
5912
   builtin and then its argument prototype would still apply.  */
 
5913
char usb_detach_kernel_driver_np ();
 
5914
int
 
5915
main ()
 
5916
{
 
5917
usb_detach_kernel_driver_np ();
 
5918
  ;
 
5919
  return 0;
 
5920
}
 
5921
_ACEOF
 
5922
rm -f conftest.$ac_objext conftest$ac_exeext
 
5923
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5924
  (eval $ac_link) 2>conftest.er1
 
5925
  ac_status=$?
 
5926
  grep -v '^ *+' conftest.er1 >conftest.err
 
5927
  rm -f conftest.er1
 
5928
  cat conftest.err >&5
 
5929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5930
  (exit $ac_status); } &&
 
5931
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5932
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5933
  (eval $ac_try) 2>&5
 
5934
  ac_status=$?
 
5935
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5936
  (exit $ac_status); }; } &&
 
5937
         { ac_try='test -s conftest$ac_exeext'
 
5938
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5939
  (eval $ac_try) 2>&5
 
5940
  ac_status=$?
 
5941
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5942
  (exit $ac_status); }; }; then
 
5943
  ac_cv_lib_usb_usb_detach_kernel_driver_np=yes
 
5944
else
 
5945
  echo "$as_me: failed program was:" >&5
 
5946
sed 's/^/| /' conftest.$ac_ext >&5
 
5947
 
 
5948
ac_cv_lib_usb_usb_detach_kernel_driver_np=no
 
5949
fi
 
5950
rm -f conftest.err conftest.$ac_objext \
 
5951
      conftest$ac_exeext conftest.$ac_ext
 
5952
LIBS=$ac_check_lib_save_LIBS
 
5953
fi
 
5954
echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_detach_kernel_driver_np" >&5
 
5955
echo "${ECHO_T}$ac_cv_lib_usb_usb_detach_kernel_driver_np" >&6
 
5956
if test $ac_cv_lib_usb_usb_detach_kernel_driver_np = yes; then
 
5957
 
 
5958
 
 
5959
cat >>confdefs.h <<\_ACEOF
 
5960
#define LIBUSB_HAS_DETACH_KRNL_DRV 1
 
5961
_ACEOF
 
5962
 
 
5963
 
 
5964
fi
 
5965
 
 
5966
 
5552
5967
echo "$as_me:$LINENO: checking for Linux hiddev.h" >&5
5553
5968
echo $ECHO_N "checking for Linux hiddev.h... $ECHO_C" >&6
5554
5969
 
5557
5972
  withval="$with_linux_hiddev"
5558
5973
        case "$withval" in
5559
5974
        yes)
5560
 
                if (test -f /usr/src/linux/include/linux/hiddev.h)
 
5975
                if (test -f /usr/include/linux/hiddev.h)
5561
5976
                then
5562
 
                        echo "$as_me:$LINENO: result: using default: /usr/src/linux/include/linux" >&5
5563
 
echo "${ECHO_T}using default: /usr/src/linux/include/linux" >&6
 
5977
                        echo "$as_me:$LINENO: result: using default: /usr/include/linux/hiddev.h" >&5
 
5978
echo "${ECHO_T}using default: /usr/include/linux/hiddev.h" >&6
5564
5979
 
5565
5980
cat >>confdefs.h <<_ACEOF
5566
 
#define LINUX_HIDDEV "/usr/src/linux/include/linux/hiddev.h"
 
5981
#define LINUX_HIDDEV "/usr/include/linux/hiddev.h"
5567
5982
_ACEOF
5568
5983
 
5569
 
                        LINUX_HIDDEV=/usr/src/linux/include/linux/hiddev.h
 
5984
                        LINUX_HIDDEV=/usr/include/linux/hiddev.h
 
5985
                        USB_DRIVER_LIST="$USB_DRIVER_LIST hidups energizerups"
 
5986
                        USBPAGES="$USBPAGES hidups.8 energizerups.8"
5570
5987
                fi
5571
5988
                ;;
5572
5989
        no)
5584
6001
_ACEOF
5585
6002
 
5586
6003
                        LINUX_HIDDEV=$withval
 
6004
                        USB_DRIVER_LIST="$USB_DRIVER_LIST hidups energizerups"
 
6005
                        USBPAGES="$USBPAGES hidups.8 energizerups.8"
5587
6006
                else
5588
 
                        echo "$as_me:$LINENO: result: hiddev.h not found in $withval" >&5
5589
 
echo "${ECHO_T}hiddev.h not found in $withval" >&6
 
6007
                        echo "$as_me:$LINENO: result: $withval not found" >&5
 
6008
echo "${ECHO_T}$withval not found" >&6
5590
6009
                fi
5591
6010
                ;;
5592
6011
        esac
5593
6012
else
5594
6013
 
5595
 
        if (test -f /usr/src/linux/include/linux/hiddev.h)
 
6014
        if (test -f /usr/include/linux/hiddev.h)
5596
6015
        then
5597
 
                echo "$as_me:$LINENO: result: using default: /usr/src/linux/include/linux" >&5
5598
 
echo "${ECHO_T}using default: /usr/src/linux/include/linux" >&6
 
6016
                echo "$as_me:$LINENO: result: using default: /usr/include/linux/hiddev.h" >&5
 
6017
echo "${ECHO_T}using default: /usr/include/linux/hiddev.h" >&6
5599
6018
 
5600
6019
cat >>confdefs.h <<_ACEOF
5601
 
#define LINUX_HIDDEV "/usr/src/linux/include/linux/hiddev.h"
 
6020
#define LINUX_HIDDEV "/usr/include/linux/hiddev.h"
5602
6021
_ACEOF
5603
6022
 
5604
 
                LINUX_HIDDEV=/usr/src/linux/include/linux/hiddev.h
 
6023
                LINUX_HIDDEV=/usr/include/linux/hiddev.h
 
6024
                USB_DRIVER_LIST="$USB_DRIVER_LIST hidups energizerups"
 
6025
                USBPAGES="$USBPAGES hidups.8 energizerups.8"
5605
6026
        else
5606
6027
                echo "$as_me:$LINENO: result: no" >&5
5607
6028
echo "${ECHO_T}no" >&6
5978
6399
 
5979
6400
fi;
5980
6401
 
 
6402
 
 
6403
echo "$as_me:$LINENO: checking whether to enable pkg-config support" >&5
 
6404
echo $ECHO_N "checking whether to enable pkg-config support... $ECHO_C" >&6
 
6405
# Check whether --enable-pkg-config or --disable-pkg-config was given.
 
6406
if test "${enable_pkg_config+set}" = set; then
 
6407
  enableval="$enable_pkg_config"
 
6408
 
 
6409
        case "$withval" in
 
6410
                yes)
 
6411
                        if (test -d /usr/lib/pkgconfig)
 
6412
                        then
 
6413
                                echo "$as_me:$LINENO: result: yes" >&5
 
6414
echo "${ECHO_T}yes" >&6
 
6415
                                PKG_CFG_DIR="/usr/lib/pkgconfig"
 
6416
                                USE_PKG_CFG=yes
 
6417
                        else
 
6418
                                echo "$as_me:$LINENO: result: no" >&5
 
6419
echo "${ECHO_T}no" >&6
 
6420
                                PKG_CFG_DIR=""
 
6421
                                USE_PKG_CFG=no
 
6422
                        fi
 
6423
                ;;
 
6424
                no)
 
6425
                        echo "$as_me:$LINENO: result: no" >&5
 
6426
echo "${ECHO_T}no" >&6
 
6427
                        PKG_CFG_DIR=""
 
6428
                        USE_PKG_CFG=no
 
6429
                ;;
 
6430
                *)
 
6431
                        echo "$as_me:$LINENO: result: yes" >&5
 
6432
echo "${ECHO_T}yes" >&6
 
6433
                        PKG_CFG_DIR=$withval
 
6434
                        USE_PKG_CFG=yes
 
6435
                ;;
 
6436
        esac
 
6437
 
 
6438
else
 
6439
 
 
6440
        if (test -d /usr/lib/pkgconfig)
 
6441
        then
 
6442
                echo "$as_me:$LINENO: result: yes" >&5
 
6443
echo "${ECHO_T}yes" >&6
 
6444
                PKG_CFG_DIR="/usr/lib/pkgconfig"
 
6445
                USE_PKG_CFG=yes
 
6446
        else
 
6447
                echo "$as_me:$LINENO: result: no" >&5
 
6448
echo "${ECHO_T}no" >&6
 
6449
                PKG_CFG_DIR=""
 
6450
                USE_PKG_CFG=no
 
6451
        fi
 
6452
 
 
6453
fi;
 
6454
 
 
6455
 
5981
6456
# 'long long' check - this gets used down in snprintf.o
5982
6457
#
5983
6458
echo "$as_me:$LINENO: checking for long long" >&5
5990
6465
  nut_cv_have_longlong=cross
5991
6466
else
5992
6467
  cat >conftest.$ac_ext <<_ACEOF
5993
 
#line $LINENO "configure"
5994
6468
/* confdefs.h.  */
5995
6469
_ACEOF
5996
6470
cat confdefs.h >>conftest.$ac_ext
6019
6493
( exit $ac_status )
6020
6494
nut_cv_have_longlong=no
6021
6495
fi
6022
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6496
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6023
6497
fi
6024
6498
fi
6025
6499
echo "$as_me:$LINENO: result: $nut_cv_have_longlong" >&5
6073
6547
 
6074
6548
 
6075
6549
 
6076
 
                                                                                          ac_config_files="$ac_config_files clients/Makefile conf/Makefile data/Makefile drivers/Makefile server/Makefile Makefile common/Makefile man/Makefile scripts/hotplug/libhidups"
 
6550
 
 
6551
 
 
6552
 
 
6553
 
 
6554
 
 
6555
                                                                                                                        ac_config_files="$ac_config_files clients/Makefile conf/Makefile data/Makefile drivers/Makefile server/Makefile Makefile common/Makefile man/Makefile lib/Makefile lib/libupsclient-config lib/libupsclient.pc scripts/hotplug/libhidups"
6077
6556
cat >confcache <<\_ACEOF
6078
6557
# This file is a shell script that caches the results of configure
6079
6558
# tests run on this system so they can be shared between configure
6102
6581
      # `set' does not quote correctly, so add quotes (double-quote
6103
6582
      # substitution turns \\\\ into \\, and sed turns \\ into \).
6104
6583
      sed -n \
6105
 
        "s/'/'\\\\''/g;
6106
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
6584
        "s/'/'\\\\''/g;
 
6585
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6107
6586
      ;;
6108
6587
    *)
6109
6588
      # `set' quotes correctly as required by POSIX, so do not add quotes.
6110
6589
      sed -n \
6111
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
6590
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6112
6591
      ;;
6113
6592
    esac;
6114
6593
} |
6138
6617
# trailing colons and then remove the whole line if VPATH becomes empty
6139
6618
# (actually we leave an empty line to preserve line numbers).
6140
6619
if test "x$srcdir" = x.; then
6141
 
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
 
6620
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
6142
6621
s/:*\$(srcdir):*/:/;
6143
6622
s/:*\${srcdir}:*/:/;
6144
6623
s/:*@srcdir@:*/:/;
6145
 
s/^\([^=]*=[    ]*\):*/\1/;
 
6624
s/^\([^=]*=[     ]*\):*/\1/;
6146
6625
s/:*$//;
6147
 
s/^[^=]*=[      ]*$//;
 
6626
s/^[^=]*=[       ]*$//;
6148
6627
}'
6149
6628
fi
6150
6629
 
6155
6634
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6156
6635
  # 1. Remove the extension, and $U if already installed.
6157
6636
  ac_i=`echo "$ac_i" |
6158
 
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
6637
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6159
6638
  # 2. Add them.
6160
6639
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6161
6640
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6199
6678
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6200
6679
  set -o posix
6201
6680
fi
 
6681
DUALCASE=1; export DUALCASE # for MKS sh
6202
6682
 
6203
6683
# Support unset when possible.
6204
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
6684
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6205
6685
  as_unset=unset
6206
6686
else
6207
6687
  as_unset=false
6220
6700
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6221
6701
  LC_TELEPHONE LC_TIME
6222
6702
do
6223
 
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
6703
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6224
6704
    eval $as_var=C; export $as_var
6225
6705
  else
6226
6706
    $as_unset $as_var
6399
6879
if mkdir -p . 2>/dev/null; then
6400
6880
  as_mkdir_p=:
6401
6881
else
 
6882
  test -d ./-p && rmdir ./-p
6402
6883
  as_mkdir_p=false
6403
6884
fi
6404
6885
 
6405
6886
as_executable_p="test -f"
6406
6887
 
6407
6888
# Sed expression to map a string onto a valid CPP name.
6408
 
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
6889
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6409
6890
 
6410
6891
# Sed expression to map a string onto a valid variable name.
6411
 
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
6892
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6412
6893
 
6413
6894
 
6414
6895
# IFS
6435
6916
cat >&5 <<_CSEOF
6436
6917
 
6437
6918
This file was extended by $as_me, which was
6438
 
generated by GNU Autoconf 2.57.  Invocation command line was
 
6919
generated by GNU Autoconf 2.59.  Invocation command line was
6439
6920
 
6440
6921
  CONFIG_FILES    = $CONFIG_FILES
6441
6922
  CONFIG_HEADERS  = $CONFIG_HEADERS
6479
6960
  -d, --debug      don't remove temporary files
6480
6961
      --recheck    update $as_me by reconfiguring in the same conditions
6481
6962
  --file=FILE[:TEMPLATE]
6482
 
                   instantiate the configuration file FILE
 
6963
                   instantiate the configuration file FILE
6483
6964
  --header=FILE[:TEMPLATE]
6484
 
                   instantiate the configuration header FILE
 
6965
                   instantiate the configuration header FILE
6485
6966
 
6486
6967
Configuration files:
6487
6968
$config_files
6495
6976
cat >>$CONFIG_STATUS <<_ACEOF
6496
6977
ac_cs_version="\\
6497
6978
config.status
6498
 
configured by $0, generated by GNU Autoconf 2.57,
 
6979
configured by $0, generated by GNU Autoconf 2.59,
6499
6980
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6500
6981
 
6501
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6502
 
Free Software Foundation, Inc.
 
6982
Copyright (C) 2003 Free Software Foundation, Inc.
6503
6983
This config.status script is free software; the Free Software Foundation
6504
6984
gives unlimited permission to copy, distribute and modify it."
6505
6985
srcdir=$srcdir
6606
7086
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6607
7087
  "common/Makefile" ) CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
6608
7088
  "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
 
7089
  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
 
7090
  "lib/libupsclient-config" ) CONFIG_FILES="$CONFIG_FILES lib/libupsclient-config" ;;
 
7091
  "lib/libupsclient.pc" ) CONFIG_FILES="$CONFIG_FILES lib/libupsclient.pc" ;;
6609
7092
  "scripts/hotplug/libhidups" ) CONFIG_FILES="$CONFIG_FILES scripts/hotplug/libhidups" ;;
6610
7093
  "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
6611
7094
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6719
7202
s,@AR@,$AR,;t t
6720
7203
s,@RANLIB@,$RANLIB,;t t
6721
7204
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6722
 
s,@MISC_UPSCLI_OBJ@,$MISC_UPSCLI_OBJ,;t t
6723
 
s,@MISC_UPSCLI_LIBOBJ@,$MISC_UPSCLI_LIBOBJ,;t t
 
7205
s,@NUT_VERSION@,$NUT_VERSION,;t t
 
7206
s,@UPSCLI_OBJ@,$UPSCLI_OBJ,;t t
 
7207
s,@UPSCLI_LIBOBJ@,$UPSCLI_LIBOBJ,;t t
6724
7208
s,@SSL_CFLAGS@,$SSL_CFLAGS,;t t
6725
7209
s,@SSL_LDFLAGS@,$SSL_LDFLAGS,;t t
6726
7210
s,@CGI_BUILD_TARGET@,$CGI_BUILD_TARGET,;t t
6731
7215
s,@LIBUSB_CFLAGS@,$LIBUSB_CFLAGS,;t t
6732
7216
s,@LIBUSB_LIBS@,$LIBUSB_LIBS,;t t
6733
7217
s,@DRIVER_BUILD_LIST@,$DRIVER_BUILD_LIST,;t t
 
7218
s,@USB_DRIVER_LIST@,$USB_DRIVER_LIST,;t t
 
7219
s,@USBPAGES@,$USBPAGES,;t t
6734
7220
s,@DRIVER_INSTALL_TARGET@,$DRIVER_INSTALL_TARGET,;t t
6735
7221
s,@STRLCPY@,$STRLCPY,;t t
6736
7222
s,@LIBOBJ@,$LIBOBJ,;t t
6743
7229
s,@RUN_AS_USER@,$RUN_AS_USER,;t t
6744
7230
s,@LINUX_HIDDEV@,$LINUX_HIDDEV,;t t
6745
7231
s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
 
7232
s,@PKG_CFG_DIR@,$PKG_CFG_DIR,;t t
 
7233
s,@USE_PKG_CFG@,$USE_PKG_CFG,;t t
6746
7234
s,@LIBOBJS@,$LIBOBJS,;t t
6747
7235
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6748
7236
CEOF
6774
7262
      (echo ':t
6775
7263
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6776
7264
      if test -z "$ac_sed_cmds"; then
6777
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
7265
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6778
7266
      else
6779
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
7267
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6780
7268
      fi
6781
7269
      ac_sed_frag=`expr $ac_sed_frag + 1`
6782
7270
      ac_beg=$ac_end
6794
7282
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6795
7283
  case $ac_file in
6796
7284
  - | *:- | *:-:* ) # input from stdin
6797
 
        cat >$tmp/stdin
6798
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6799
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
7285
        cat >$tmp/stdin
 
7286
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
7287
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6800
7288
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6801
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
7289
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6802
7290
  * )   ac_file_in=$ac_file.in ;;
6803
7291
  esac
6804
7292
 
6805
7293
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6806
7294
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6807
7295
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6808
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
6809
 
         X"$ac_file" : 'X\(//\)$' \| \
6810
 
         X"$ac_file" : 'X\(/\)' \| \
6811
 
         .     : '\(.\)' 2>/dev/null ||
 
7296
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
7297
         X"$ac_file" : 'X\(//\)$' \| \
 
7298
         X"$ac_file" : 'X\(/\)' \| \
 
7299
         .     : '\(.\)' 2>/dev/null ||
6812
7300
echo X"$ac_file" |
6813
7301
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6814
7302
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6824
7312
      as_dirs="$as_dir $as_dirs"
6825
7313
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
6826
7314
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6827
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
6828
 
         X"$as_dir" : 'X\(//\)$' \| \
6829
 
         X"$as_dir" : 'X\(/\)' \| \
6830
 
         .     : '\(.\)' 2>/dev/null ||
 
7315
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
7316
         X"$as_dir" : 'X\(//\)$' \| \
 
7317
         X"$as_dir" : 'X\(/\)' \| \
 
7318
         .     : '\(.\)' 2>/dev/null ||
6831
7319
echo X"$as_dir" |
6832
7320
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6833
7321
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6865
7353
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6866
7354
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
6867
7355
esac
6868
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6869
 
# absolute.
6870
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6871
 
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6872
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6873
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
7356
 
 
7357
# Do not use `cd foo && pwd` to compute absolute paths, because
 
7358
# the directories may not exist.
 
7359
case `pwd` in
 
7360
.) ac_abs_builddir="$ac_dir";;
 
7361
*)
 
7362
  case "$ac_dir" in
 
7363
  .) ac_abs_builddir=`pwd`;;
 
7364
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
7365
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
7366
  esac;;
 
7367
esac
 
7368
case $ac_abs_builddir in
 
7369
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
7370
*)
 
7371
  case ${ac_top_builddir}. in
 
7372
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
7373
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
7374
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
7375
  esac;;
 
7376
esac
 
7377
case $ac_abs_builddir in
 
7378
.) ac_abs_srcdir=$ac_srcdir;;
 
7379
*)
 
7380
  case $ac_srcdir in
 
7381
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
7382
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
7383
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
7384
  esac;;
 
7385
esac
 
7386
case $ac_abs_builddir in
 
7387
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
7388
*)
 
7389
  case $ac_top_srcdir in
 
7390
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
7391
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
7392
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
7393
  esac;;
 
7394
esac
6874
7395
 
6875
7396
 
6876
7397
  case $INSTALL in
6878
7399
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6879
7400
  esac
6880
7401
 
6881
 
  if test x"$ac_file" != x-; then
6882
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
6883
 
echo "$as_me: creating $ac_file" >&6;}
6884
 
    rm -f "$ac_file"
6885
 
  fi
6886
7402
  # Let's still pretend it is `configure' which instantiates (i.e., don't
6887
7403
  # use $as_me), people would be surprised to read:
6888
7404
  #    /* config.h.  Generated by config.status.  */
6892
7408
    configure_input="$ac_file.  "
6893
7409
  fi
6894
7410
  configure_input=$configure_input"Generated from `echo $ac_file_in |
6895
 
                                     sed 's,.*/,,'` by configure."
 
7411
                                     sed 's,.*/,,'` by configure."
6896
7412
 
6897
7413
  # First look for the input files in the build tree, otherwise in the
6898
7414
  # src tree.
6901
7417
      case $f in
6902
7418
      -) echo $tmp/stdin ;;
6903
7419
      [\\/$]*)
6904
 
         # Absolute (can't be DOS-style, as IFS=:)
6905
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
7420
         # Absolute (can't be DOS-style, as IFS=:)
 
7421
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6906
7422
echo "$as_me: error: cannot find input file: $f" >&2;}
6907
7423
   { (exit 1); exit 1; }; }
6908
 
         echo $f;;
 
7424
         echo "$f";;
6909
7425
      *) # Relative
6910
 
         if test -f "$f"; then
6911
 
           # Build tree
6912
 
           echo $f
6913
 
         elif test -f "$srcdir/$f"; then
6914
 
           # Source tree
6915
 
           echo $srcdir/$f
6916
 
         else
6917
 
           # /dev/null tree
6918
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
7426
         if test -f "$f"; then
 
7427
           # Build tree
 
7428
           echo "$f"
 
7429
         elif test -f "$srcdir/$f"; then
 
7430
           # Source tree
 
7431
           echo "$srcdir/$f"
 
7432
         else
 
7433
           # /dev/null tree
 
7434
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6919
7435
echo "$as_me: error: cannot find input file: $f" >&2;}
6920
7436
   { (exit 1); exit 1; }; }
6921
 
         fi;;
 
7437
         fi;;
6922
7438
      esac
6923
7439
    done` || { (exit 1); exit 1; }
 
7440
 
 
7441
  if test x"$ac_file" != x-; then
 
7442
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
7443
echo "$as_me: creating $ac_file" >&6;}
 
7444
    rm -f "$ac_file"
 
7445
  fi
6924
7446
_ACEOF
6925
7447
cat >>$CONFIG_STATUS <<_ACEOF
6926
7448
  sed "$ac_vpsub
6960
7482
# NAME is the cpp macro being defined and VALUE is the value it is being given.
6961
7483
#
6962
7484
# ac_d sets the value in "#define NAME VALUE" lines.
6963
 
ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
6964
 
ac_dB='[        ].*$,\1#\2'
 
7485
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
7486
ac_dB='[         ].*$,\1#\2'
6965
7487
ac_dC=' '
6966
7488
ac_dD=',;t'
6967
7489
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6968
 
ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
7490
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6969
7491
ac_uB='$,\1#\2define\3'
6970
7492
ac_uC=' '
6971
7493
ac_uD=',;t'
6974
7496
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6975
7497
  case $ac_file in
6976
7498
  - | *:- | *:-:* ) # input from stdin
6977
 
        cat >$tmp/stdin
6978
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6979
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
7499
        cat >$tmp/stdin
 
7500
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
7501
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6980
7502
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6981
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
7503
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6982
7504
  * )   ac_file_in=$ac_file.in ;;
6983
7505
  esac
6984
7506
 
6992
7514
      case $f in
6993
7515
      -) echo $tmp/stdin ;;
6994
7516
      [\\/$]*)
6995
 
         # Absolute (can't be DOS-style, as IFS=:)
6996
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
7517
         # Absolute (can't be DOS-style, as IFS=:)
 
7518
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6997
7519
echo "$as_me: error: cannot find input file: $f" >&2;}
6998
7520
   { (exit 1); exit 1; }; }
6999
 
         echo $f;;
 
7521
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
7522
         echo "$f";;
7000
7523
      *) # Relative
7001
 
         if test -f "$f"; then
7002
 
           # Build tree
7003
 
           echo $f
7004
 
         elif test -f "$srcdir/$f"; then
7005
 
           # Source tree
7006
 
           echo $srcdir/$f
7007
 
         else
7008
 
           # /dev/null tree
7009
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
7524
         if test -f "$f"; then
 
7525
           # Build tree
 
7526
           echo "$f"
 
7527
         elif test -f "$srcdir/$f"; then
 
7528
           # Source tree
 
7529
           echo "$srcdir/$f"
 
7530
         else
 
7531
           # /dev/null tree
 
7532
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7010
7533
echo "$as_me: error: cannot find input file: $f" >&2;}
7011
7534
   { (exit 1); exit 1; }; }
7012
 
         fi;;
 
7535
         fi;;
7013
7536
      esac
7014
7537
    done` || { (exit 1); exit 1; }
7015
7538
  # Remove the trailing spaces.
7016
 
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
 
7539
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
7017
7540
 
7018
7541
_ACEOF
7019
7542
 
7036
7559
s,[\\$`],\\&,g
7037
7560
t clear
7038
7561
: clear
7039
 
s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
7562
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7040
7563
t end
7041
 
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
7564
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7042
7565
: end
7043
7566
_ACEOF
7044
7567
# If some macros were called several times there might be several times
7052
7575
# example, in the case of _POSIX_SOURCE, which is predefined and required
7053
7576
# on some systems where configure will not decide to define it.
7054
7577
cat >>conftest.undefs <<\_ACEOF
7055
 
s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
7578
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7056
7579
_ACEOF
7057
7580
 
7058
7581
# Break up conftest.defines because some shells have a limit on the size
7059
7582
# of here documents, and old seds have small limits too (100 cmds).
7060
7583
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7061
 
echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
7584
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7062
7585
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7063
7586
echo '  :' >>$CONFIG_STATUS
7064
7587
rm -f conftest.tail
7067
7590
  # Write a limited-size here document to $tmp/defines.sed.
7068
7591
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7069
7592
  # Speed up: don't consider the non `#define' lines.
7070
 
  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
7593
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
7071
7594
  # Work around the forget-to-reset-the-flag bug.
7072
7595
  echo 't clr' >>$CONFIG_STATUS
7073
7596
  echo ': clr' >>$CONFIG_STATUS
7094
7617
  # Write a limited-size here document to $tmp/undefs.sed.
7095
7618
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7096
7619
  # Speed up: don't consider the non `#undef'
7097
 
  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
7620
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
7098
7621
  # Work around the forget-to-reset-the-flag bug.
7099
7622
  echo 't clr' >>$CONFIG_STATUS
7100
7623
  echo ': clr' >>$CONFIG_STATUS
7128
7651
    else
7129
7652
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7130
7653
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7131
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
7132
 
         X"$ac_file" : 'X\(//\)$' \| \
7133
 
         X"$ac_file" : 'X\(/\)' \| \
7134
 
         .     : '\(.\)' 2>/dev/null ||
 
7654
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
7655
         X"$ac_file" : 'X\(//\)$' \| \
 
7656
         X"$ac_file" : 'X\(/\)' \| \
 
7657
         .     : '\(.\)' 2>/dev/null ||
7135
7658
echo X"$ac_file" |
7136
7659
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7137
7660
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7147
7670
      as_dirs="$as_dir $as_dirs"
7148
7671
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7149
7672
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7150
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
7151
 
         X"$as_dir" : 'X\(//\)$' \| \
7152
 
         X"$as_dir" : 'X\(/\)' \| \
7153
 
         .     : '\(.\)' 2>/dev/null ||
 
7673
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
7674
         X"$as_dir" : 'X\(//\)$' \| \
 
7675
         X"$as_dir" : 'X\(/\)' \| \
 
7676
         .     : '\(.\)' 2>/dev/null ||
7154
7677
echo X"$as_dir" |
7155
7678
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7156
7679
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }