~ubuntu-branches/ubuntu/vivid/gtk-vnc/vivid

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Guido Günther
  • Date: 2010-07-16 17:55:31 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20100716175531-vnolppaqgmo3rqij
Tags: 0.4.1-1
* [2703df5] Imported Upstream version 0.4.1
* [5a5910e] Drop patches applied upstream 
      0001-say-disconnected-from-server-only-once-connected.patch
      0002-remove-WERROR_CFLAGS.patch
      0004-Don-t-use-PATH_MAX.patch
      0005-Drop-space-after-Wl-in-libgtk_vnc_1_0_la_LDFLAGS.patch
      0006-Add-Wl-since-no-undefined-is-a-linker-option.patch
      0007-Explicitly-link-against-X11-libs-for-XkbGetKeyboard.patch
      0008-Add-missing-symbols.patch
      0009-Fix-missing-intialisation-of-sysdir-and-uderdir.patch
* [e3ed1d0] No need to run autoreconf anymore
* [1529b9a] No static libs built
* [15068ef] Update symbols file with new symbols
* [337c397] Bump standards version

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.63 for gtk-vnc 0.3.10.
 
3
# Generated by GNU Autoconf 2.63 for gtk-vnc 0.4.1.
 
4
#
 
5
# Report bugs to <https://bugzilla.gnome.org/enter_bug.cgi?product=gtk-vnc>.
4
6
#
5
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
8
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
743
745
# Identity of this package.
744
746
PACKAGE_NAME='gtk-vnc'
745
747
PACKAGE_TARNAME='gtk-vnc'
746
 
PACKAGE_VERSION='0.3.10'
747
 
PACKAGE_STRING='gtk-vnc 0.3.10'
748
 
PACKAGE_BUGREPORT=''
 
748
PACKAGE_VERSION='0.4.1'
 
749
PACKAGE_STRING='gtk-vnc 0.4.1'
 
750
PACKAGE_BUGREPORT='https://bugzilla.gnome.org/enter_bug.cgi?product=gtk-vnc'
749
751
 
750
 
ac_unique_file="src/gvnc.c"
 
752
ac_unique_file="src/vncconnection.c"
751
753
# Factoring default headers for most tests.
752
754
ac_includes_default="\
753
755
#include <stdio.h>
790
792
gltests_LIBOBJS
791
793
gl_LTLIBOBJS
792
794
gl_LIBOBJS
 
795
am__EXEEXT_FALSE
 
796
am__EXEEXT_TRUE
793
797
LTLIBOBJS
794
798
LIBOBJS
 
799
WITH_GOBJECT_INTROSPECTION_FALSE
 
800
WITH_GOBJECT_INTROSPECTION_TRUE
 
801
G_IR_COMPILER
 
802
G_IR_SCANNER
 
803
GOBJECT_INTROSPECTION_LIBS
 
804
GOBJECT_INTROSPECTION_CFLAGS
795
805
ENABLE_PLUGIN_FALSE
796
806
ENABLE_PLUGIN_TRUE
797
807
WITH_EXAMPLES_FALSE
804
814
MOZILLA_PLUGIN_CFLAGS
805
815
FIREFOX_PLUGIN_LIBS
806
816
FIREFOX_PLUGIN_CFLAGS
807
 
NSPR_LIBS
808
 
NSPR_CFLAGS
809
817
PYTHON_INCLUDES
810
818
pkgpyexecdir
811
819
pyexecdir
830
838
GNUTLS_CFLAGS
831
839
VIEW_LIBS
832
840
VIEW_CFLAGS
 
841
X11_LIBS
 
842
X11_CFLAGS
833
843
GTK_LIBS
834
844
GTK_CFLAGS
 
845
GDK_PIXBUF_LIBS
 
846
GDK_PIXBUF_CFLAGS
 
847
GOBJECT_LIBS
 
848
GOBJECT_CFLAGS
835
849
PKG_CONFIG
836
 
LD_VERSION_SCRIPT_SUPPORT
 
850
USE_VERSION_DEFS_FALSE
 
851
USE_VERSION_DEFS_TRUE
 
852
VERSION_SCRIPT_FLAGS
 
853
NO_UNDEFINED_FLAGS
837
854
WARNING_PYTHON_CFLAGS
838
855
WARNING_CFLAGS
839
856
COMPILER_FLAGS
 
857
HAVE_GTK_3_FALSE
 
858
HAVE_GTK_3_TRUE
 
859
HAVE_GTK_2_FALSE
 
860
HAVE_GTK_2_TRUE
 
861
GTK_VNC_API_VERSION
 
862
GTK_REQUIRED
 
863
GTK_API_VERSION
840
864
MKINSTALLDIRS
841
865
POSUB
842
866
POFILES
879
903
INTLTOOL_UPDATE
880
904
USE_NLS
881
905
GETTEXT_PACKAGE
882
 
OTOOL64
883
 
OTOOL
884
 
LIPO
885
 
NMEDIT
886
 
DSYMUTIL
887
 
lt_ECHO
888
 
AR
889
 
LN_S
890
 
NM
891
 
ac_ct_DUMPBIN
892
 
DUMPBIN
893
 
LD
894
 
FGREP
895
 
SED
896
 
LIBTOOL
897
 
OBJDUMP
898
 
DLLTOOL
899
 
AS
900
906
LIBTESTS_LIBDEPS
901
907
abs_aux_dir
902
908
NEXT_WCHAR_H
1098
1104
ALLOCA
1099
1105
GL_COND_LIBTOOL_FALSE
1100
1106
GL_COND_LIBTOOL_TRUE
 
1107
GNUTLS_REQUIRED
 
1108
GDK_PIXBUF_REQUIRED
 
1109
GOBJECT_REQUIRED
 
1110
AM_BACKSLASH
 
1111
AM_DEFAULT_VERBOSITY
 
1112
DISABLE_DEPRECATED
 
1113
MAINT
 
1114
MAINTAINER_MODE_FALSE
 
1115
MAINTAINER_MODE_TRUE
 
1116
CPP
 
1117
OTOOL64
 
1118
OTOOL
 
1119
LIPO
 
1120
NMEDIT
 
1121
DSYMUTIL
 
1122
lt_ECHO
 
1123
RANLIB
 
1124
AR
 
1125
LN_S
 
1126
NM
 
1127
ac_ct_DUMPBIN
 
1128
DUMPBIN
 
1129
LD
 
1130
FGREP
1101
1131
EGREP
1102
1132
GREP
1103
 
CPP
 
1133
SED
1104
1134
am__fastdepCC_FALSE
1105
1135
am__fastdepCC_TRUE
1106
1136
CCDEPMODE
1117
1147
LDFLAGS
1118
1148
CFLAGS
1119
1149
CC
1120
 
RANLIB
1121
 
GNUTLS_REQUIRED
1122
 
GTK_REQUIRED
1123
1150
host_os
1124
1151
host_vendor
1125
1152
host_cpu
1128
1155
build_vendor
1129
1156
build_cpu
1130
1157
build
 
1158
LIBTOOL
 
1159
OBJDUMP
 
1160
DLLTOOL
 
1161
AS
1131
1162
am__untar
1132
1163
am__tar
1133
1164
AMTAR
1191
1222
ac_subst_files=''
1192
1223
ac_user_opts='
1193
1224
enable_option_checking
1194
 
enable_dependency_tracking
 
1225
enable_static
1195
1226
enable_shared
1196
 
enable_static
1197
1227
with_pic
1198
1228
enable_fast_install
 
1229
enable_dependency_tracking
1199
1230
with_gnu_ld
1200
1231
enable_libtool_lock
 
1232
enable_maintainer_mode
 
1233
enable_silent_rules
1201
1234
enable_nls
 
1235
with_gtk
1202
1236
with_python
1203
1237
enable_compile_warnings
1204
1238
enable_iso_c
1208
1242
with_coroutine
1209
1243
enable_plugin
1210
1244
enable_rebuilds
 
1245
enable_introspection
1211
1246
'
1212
1247
      ac_precious_vars='build_alias
1213
1248
host_alias
1219
1254
CPPFLAGS
1220
1255
CPP
1221
1256
PKG_CONFIG
 
1257
GOBJECT_CFLAGS
 
1258
GOBJECT_LIBS
 
1259
GDK_PIXBUF_CFLAGS
 
1260
GDK_PIXBUF_LIBS
1222
1261
GTK_CFLAGS
1223
1262
GTK_LIBS
 
1263
X11_CFLAGS
 
1264
X11_LIBS
1224
1265
VIEW_CFLAGS
1225
1266
VIEW_LIBS
1226
1267
GNUTLS_CFLAGS
1229
1270
GTHREAD_LIBS
1230
1271
PYGTK_CFLAGS
1231
1272
PYGTK_LIBS
1232
 
NSPR_CFLAGS
1233
 
NSPR_LIBS
1234
1273
FIREFOX_PLUGIN_CFLAGS
1235
1274
FIREFOX_PLUGIN_LIBS
1236
1275
MOZILLA_PLUGIN_CFLAGS
1237
 
MOZILLA_PLUGIN_LIBS'
 
1276
MOZILLA_PLUGIN_LIBS
 
1277
GOBJECT_INTROSPECTION_CFLAGS
 
1278
GOBJECT_INTROSPECTION_LIBS'
1238
1279
 
1239
1280
 
1240
1281
# Initialize some variables set by options.
1787
1828
  # Omit some internal or obsolete options to make the list less imposing.
1788
1829
  # This message is too long to be a string in the A/UX 3.1 sh.
1789
1830
  cat <<_ACEOF
1790
 
\`configure' configures gtk-vnc 0.3.10 to adapt to many kinds of systems.
 
1831
\`configure' configures gtk-vnc 0.4.1 to adapt to many kinds of systems.
1791
1832
 
1792
1833
Usage: $0 [OPTION]... [VAR=VALUE]...
1793
1834
 
1857
1898
 
1858
1899
if test -n "$ac_init_help"; then
1859
1900
  case $ac_init_help in
1860
 
     short | recursive ) echo "Configuration of gtk-vnc 0.3.10:";;
 
1901
     short | recursive ) echo "Configuration of gtk-vnc 0.4.1:";;
1861
1902
   esac
1862
1903
  cat <<\_ACEOF
1863
1904
 
1865
1906
  --disable-option-checking  ignore unrecognized --enable/--with options
1866
1907
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1867
1908
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1868
 
  --disable-dependency-tracking  speeds up one-time build
1869
 
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1909
  --enable-static[=PKGS]  build static libraries [default=no]
1870
1910
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1871
 
  --enable-static[=PKGS]  build static libraries [default=yes]
1872
1911
  --enable-fast-install[=PKGS]
1873
1912
                          optimize for fast installation [default=yes]
 
1913
  --disable-dependency-tracking  speeds up one-time build
 
1914
  --enable-dependency-tracking   do not reject slow dependency extractors
1874
1915
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1916
  --enable-maintainer-mode  enable make rules and dependencies not useful
 
1917
                          (and sometimes confusing) to the casual installer
 
1918
  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
1919
  --disable-silent-rules         verbose build output (undo: `make V=0')
1875
1920
  --disable-nls           do not use Native Language Support
1876
1921
  --enable-compile-warnings=[no/minimum/yes/maximum/error]
1877
1922
                          Turn on compiler warnings
1878
1923
  --enable-iso-c          Try to warn if code is not ISO C
1879
1924
  --enable-plugin=no/yes enable browser plugin default=no
1880
1925
  --disable-rebuilds      disable all source autogeneration rules
 
1926
  --enable-introspection  enable GObject introspection
1881
1927
 
1882
1928
Optional Packages:
1883
1929
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1885
1931
  --with-pic              try to use only PIC/non-PIC objects [default=use
1886
1932
                          both]
1887
1933
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1934
  --with-gtk=2.0|3.0      which gtk+ version to compile against (default: 2.0)
1888
1935
  --with-python           build python bindings
1889
1936
  --with-examples         install example programs
1890
1937
  --with-libview          enable libview support in gvncviewer
1901
1948
              you have headers in a nonstandard directory <include dir>
1902
1949
  CPP         C preprocessor
1903
1950
  PKG_CONFIG  path to pkg-config utility
 
1951
  GOBJECT_CFLAGS
 
1952
              C compiler flags for GOBJECT, overriding pkg-config
 
1953
  GOBJECT_LIBS
 
1954
              linker flags for GOBJECT, overriding pkg-config
 
1955
  GDK_PIXBUF_CFLAGS
 
1956
              C compiler flags for GDK_PIXBUF, overriding pkg-config
 
1957
  GDK_PIXBUF_LIBS
 
1958
              linker flags for GDK_PIXBUF, overriding pkg-config
1904
1959
  GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
1905
1960
  GTK_LIBS    linker flags for GTK, overriding pkg-config
 
1961
  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
 
1962
  X11_LIBS    linker flags for X11, overriding pkg-config
1906
1963
  VIEW_CFLAGS C compiler flags for VIEW, overriding pkg-config
1907
1964
  VIEW_LIBS   linker flags for VIEW, overriding pkg-config
1908
1965
  GNUTLS_CFLAGS
1915
1972
  PYGTK_CFLAGS
1916
1973
              C compiler flags for PYGTK, overriding pkg-config
1917
1974
  PYGTK_LIBS  linker flags for PYGTK, overriding pkg-config
1918
 
  NSPR_CFLAGS C compiler flags for NSPR, overriding pkg-config
1919
 
  NSPR_LIBS   linker flags for NSPR, overriding pkg-config
1920
1975
  FIREFOX_PLUGIN_CFLAGS
1921
1976
              C compiler flags for FIREFOX_PLUGIN, overriding pkg-config
1922
1977
  FIREFOX_PLUGIN_LIBS
1925
1980
              C compiler flags for MOZILLA_PLUGIN, overriding pkg-config
1926
1981
  MOZILLA_PLUGIN_LIBS
1927
1982
              linker flags for MOZILLA_PLUGIN, overriding pkg-config
 
1983
  GOBJECT_INTROSPECTION_CFLAGS
 
1984
              C compiler flags for GOBJECT_INTROSPECTION, overriding
 
1985
              pkg-config
 
1986
  GOBJECT_INTROSPECTION_LIBS
 
1987
              linker flags for GOBJECT_INTROSPECTION, overriding pkg-config
1928
1988
 
1929
1989
Use these variables to override the choices made by `configure' or to help
1930
1990
it to find libraries and programs with nonstandard names/locations.
1931
1991
 
 
1992
Report bugs to <https://bugzilla.gnome.org/enter_bug.cgi?product=gtk-vnc>.
1932
1993
_ACEOF
1933
1994
ac_status=$?
1934
1995
fi
1991
2052
test -n "$ac_init_help" && exit $ac_status
1992
2053
if $ac_init_version; then
1993
2054
  cat <<\_ACEOF
1994
 
gtk-vnc configure 0.3.10
 
2055
gtk-vnc configure 0.4.1
1995
2056
generated by GNU Autoconf 2.63
1996
2057
 
1997
2058
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2005
2066
This file contains any messages produced by compilers while
2006
2067
running configure, to aid debugging if configure makes a mistake.
2007
2068
 
2008
 
It was created by gtk-vnc $as_me 0.3.10, which was
 
2069
It was created by gtk-vnc $as_me 0.4.1, which was
2009
2070
generated by GNU Autoconf 2.63.  Invocation command line was
2010
2071
 
2011
2072
  $ $0 $@
2386
2447
 
2387
2448
 
2388
2449
 
2389
 
ac_config_headers="$ac_config_headers config.h"
2390
 
 
2391
 
am__api_version='1.10'
2392
 
 
2393
2450
ac_aux_dir=
2394
 
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
2451
for ac_dir in build-aux "$srcdir"/build-aux; do
2395
2452
  if test -f "$ac_dir/install-sh"; then
2396
2453
    ac_aux_dir=$ac_dir
2397
2454
    ac_install_sh="$ac_aux_dir/install-sh -c"
2407
2464
  fi
2408
2465
done
2409
2466
if test -z "$ac_aux_dir"; then
2410
 
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2411
 
$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
 
2467
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
 
2468
$as_echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
2412
2469
   { (exit 1); exit 1; }; }
2413
2470
fi
2414
2471
 
2421
2478
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2422
2479
 
2423
2480
 
 
2481
ac_config_headers="$ac_config_headers config.h"
 
2482
 
 
2483
 
 
2484
am__api_version='1.11'
 
2485
 
2424
2486
# Find a good install program.  We prefer a C program (faster),
2425
2487
# so one script is as good as another.  But avoid the broken or
2426
2488
# incompatible versions:
2519
2581
# Just in case
2520
2582
sleep 1
2521
2583
echo timestamp > conftest.file
 
2584
# Reject unsafe characters in $srcdir or the absolute working directory
 
2585
# name.  Accept space and tab only in the latter.
 
2586
am_lf='
 
2587
'
 
2588
case `pwd` in
 
2589
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2590
    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
 
2591
$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
 
2592
   { (exit 1); exit 1; }; };;
 
2593
esac
 
2594
case $srcdir in
 
2595
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2596
    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
 
2597
$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
 
2598
   { (exit 1); exit 1; }; };;
 
2599
esac
 
2600
 
2522
2601
# Do `set' in a subshell so we don't clobber the current shell's
2523
2602
# arguments.  Must try -L first in case configure is actually a
2524
2603
# symlink; some systems play weird games with the mod time of symlinks
2525
2604
# (eg FreeBSD returns the mod time of the symlink's containing
2526
2605
# directory).
2527
2606
if (
2528
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2607
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2529
2608
   if test "$*" = "X"; then
2530
2609
      # -L didn't work.
2531
 
      set X `ls -t $srcdir/configure conftest.file`
 
2610
      set X `ls -t "$srcdir/configure" conftest.file`
2532
2611
   fi
2533
2612
   rm -f conftest.file
2534
2613
   if test "$*" != "X $srcdir/configure conftest.file" \
2572
2651
# expand $ac_aux_dir to an absolute path
2573
2652
am_aux_dir=`cd $ac_aux_dir && pwd`
2574
2653
 
2575
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2654
if test x"${MISSING+set}" != xset; then
 
2655
  case $am_aux_dir in
 
2656
  *\ * | *\     *)
 
2657
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2658
  *)
 
2659
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2660
  esac
 
2661
fi
2576
2662
# Use eval to expand $SHELL
2577
2663
if eval "$MISSING --run true"; then
2578
2664
  am_missing_run="$MISSING --run "
2582
2668
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2583
2669
fi
2584
2670
 
 
2671
if test x"${install_sh}" != xset; then
 
2672
  case $am_aux_dir in
 
2673
  *\ * | *\     *)
 
2674
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2675
  *)
 
2676
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2677
  esac
 
2678
fi
 
2679
 
 
2680
# Installed binaries are usually stripped using `strip' when the user
 
2681
# run `make install-strip'.  However `strip' might not be the right
 
2682
# tool to use in cross-compilation environments, therefore Automake
 
2683
# will honor the `STRIP' environment variable to overrule this program.
 
2684
if test "$cross_compiling" != no; then
 
2685
  if test -n "$ac_tool_prefix"; then
 
2686
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2687
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2688
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2689
$as_echo_n "checking for $ac_word... " >&6; }
 
2690
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2691
  $as_echo_n "(cached) " >&6
 
2692
else
 
2693
  if test -n "$STRIP"; then
 
2694
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2695
else
 
2696
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2697
for as_dir in $PATH
 
2698
do
 
2699
  IFS=$as_save_IFS
 
2700
  test -z "$as_dir" && as_dir=.
 
2701
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2702
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2703
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2704
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2705
    break 2
 
2706
  fi
 
2707
done
 
2708
done
 
2709
IFS=$as_save_IFS
 
2710
 
 
2711
fi
 
2712
fi
 
2713
STRIP=$ac_cv_prog_STRIP
 
2714
if test -n "$STRIP"; then
 
2715
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
2716
$as_echo "$STRIP" >&6; }
 
2717
else
 
2718
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2719
$as_echo "no" >&6; }
 
2720
fi
 
2721
 
 
2722
 
 
2723
fi
 
2724
if test -z "$ac_cv_prog_STRIP"; then
 
2725
  ac_ct_STRIP=$STRIP
 
2726
  # Extract the first word of "strip", so it can be a program name with args.
 
2727
set dummy strip; ac_word=$2
 
2728
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2729
$as_echo_n "checking for $ac_word... " >&6; }
 
2730
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2731
  $as_echo_n "(cached) " >&6
 
2732
else
 
2733
  if test -n "$ac_ct_STRIP"; then
 
2734
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2735
else
 
2736
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2737
for as_dir in $PATH
 
2738
do
 
2739
  IFS=$as_save_IFS
 
2740
  test -z "$as_dir" && as_dir=.
 
2741
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2742
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2743
    ac_cv_prog_ac_ct_STRIP="strip"
 
2744
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2745
    break 2
 
2746
  fi
 
2747
done
 
2748
done
 
2749
IFS=$as_save_IFS
 
2750
 
 
2751
fi
 
2752
fi
 
2753
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2754
if test -n "$ac_ct_STRIP"; then
 
2755
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2756
$as_echo "$ac_ct_STRIP" >&6; }
 
2757
else
 
2758
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2759
$as_echo "no" >&6; }
 
2760
fi
 
2761
 
 
2762
  if test "x$ac_ct_STRIP" = x; then
 
2763
    STRIP=":"
 
2764
  else
 
2765
    case $cross_compiling:$ac_tool_warned in
 
2766
yes:)
 
2767
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2768
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2769
ac_tool_warned=yes ;;
 
2770
esac
 
2771
    STRIP=$ac_ct_STRIP
 
2772
  fi
 
2773
else
 
2774
  STRIP="$ac_cv_prog_STRIP"
 
2775
fi
 
2776
 
 
2777
fi
 
2778
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2779
 
2585
2780
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2586
2781
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2587
2782
if test -z "$MKDIR_P"; then
2736
2931
 
2737
2932
# Define the identity of the package.
2738
2933
 PACKAGE='gtk-vnc'
2739
 
 VERSION='0.3.10'
 
2934
 VERSION='0.4.1'
2740
2935
 
2741
2936
 
2742
2937
cat >>confdefs.h <<_ACEOF
2764
2959
 
2765
2960
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2766
2961
 
2767
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2768
 
 
2769
 
# Installed binaries are usually stripped using `strip' when the user
2770
 
# run `make install-strip'.  However `strip' might not be the right
2771
 
# tool to use in cross-compilation environments, therefore Automake
2772
 
# will honor the `STRIP' environment variable to overrule this program.
2773
 
if test "$cross_compiling" != no; then
2774
 
  if test -n "$ac_tool_prefix"; then
2775
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2776
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
2777
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2778
 
$as_echo_n "checking for $ac_word... " >&6; }
2779
 
if test "${ac_cv_prog_STRIP+set}" = set; then
2780
 
  $as_echo_n "(cached) " >&6
2781
 
else
2782
 
  if test -n "$STRIP"; then
2783
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2784
 
else
2785
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786
 
for as_dir in $PATH
2787
 
do
2788
 
  IFS=$as_save_IFS
2789
 
  test -z "$as_dir" && as_dir=.
2790
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2791
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2792
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2793
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2794
 
    break 2
2795
 
  fi
2796
 
done
2797
 
done
2798
 
IFS=$as_save_IFS
2799
 
 
2800
 
fi
2801
 
fi
2802
 
STRIP=$ac_cv_prog_STRIP
2803
 
if test -n "$STRIP"; then
2804
 
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2805
 
$as_echo "$STRIP" >&6; }
2806
 
else
2807
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
2808
 
$as_echo "no" >&6; }
2809
 
fi
2810
 
 
2811
 
 
2812
 
fi
2813
 
if test -z "$ac_cv_prog_STRIP"; then
2814
 
  ac_ct_STRIP=$STRIP
2815
 
  # Extract the first word of "strip", so it can be a program name with args.
2816
 
set dummy strip; ac_word=$2
2817
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2818
 
$as_echo_n "checking for $ac_word... " >&6; }
2819
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2820
 
  $as_echo_n "(cached) " >&6
2821
 
else
2822
 
  if test -n "$ac_ct_STRIP"; then
2823
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2824
 
else
2825
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826
 
for as_dir in $PATH
2827
 
do
2828
 
  IFS=$as_save_IFS
2829
 
  test -z "$as_dir" && as_dir=.
2830
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2831
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2832
 
    ac_cv_prog_ac_ct_STRIP="strip"
2833
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2834
 
    break 2
2835
 
  fi
2836
 
done
2837
 
done
2838
 
IFS=$as_save_IFS
2839
 
 
2840
 
fi
2841
 
fi
2842
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2843
 
if test -n "$ac_ct_STRIP"; then
2844
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2845
 
$as_echo "$ac_ct_STRIP" >&6; }
2846
 
else
2847
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
2848
 
$as_echo "no" >&6; }
2849
 
fi
2850
 
 
2851
 
  if test "x$ac_ct_STRIP" = x; then
2852
 
    STRIP=":"
2853
 
  else
2854
 
    case $cross_compiling:$ac_tool_warned in
2855
 
yes:)
2856
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2857
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2858
 
ac_tool_warned=yes ;;
2859
 
esac
2860
 
    STRIP=$ac_ct_STRIP
2861
 
  fi
2862
 
else
2863
 
  STRIP="$ac_cv_prog_STRIP"
2864
 
fi
2865
 
 
2866
 
fi
2867
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2868
 
 
2869
2962
# We need awk for the "check" target.  The system "awk" is bad on
2870
2963
# some platforms.
2871
2964
# Always define AMTAR for backward compatibility.
2879
2972
 
2880
2973
 
2881
2974
 
2882
 
# Use the silent-rules feature when possible.
2883
 
 
2884
 
 
 
2975
 
 
2976
case `pwd` in
 
2977
  *\ * | *\     *)
 
2978
    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
2979
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
2980
esac
 
2981
 
 
2982
 
 
2983
 
 
2984
macro_version='2.2.6b'
 
2985
macro_revision='1.3017'
 
2986
 
 
2987
 
 
2988
 
 
2989
 
 
2990
 
 
2991
 
 
2992
 
 
2993
 
 
2994
 
 
2995
 
 
2996
 
 
2997
 
 
2998
 
 
2999
ltmain="$ac_aux_dir/ltmain.sh"
2885
3000
 
2886
3001
# Make sure we can run config.sub.
2887
3002
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2966
3081
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2967
3082
 
2968
3083
 
2969
 
 
2970
 
 
2971
 
GTK_REQUIRED=2.10.0
2972
 
 
2973
 
GNUTLS_REQUIRED=1.4.0
2974
 
 
2975
 
 
2976
 
PYGTK_REQUIRED=2.0.0
2977
 
VIEW_REQUIRED=0.6.0
2978
 
GTHREAD_REQUIRED=2.0.0
2979
 
PYTHON_REQUIRED=2.4
2980
 
 
2981
 
NSPR_REQUIRED=4.0.0
2982
 
FIREFOX_PLUGIN_REQUIRED=2.0.0
2983
 
MOZILLA_PLUGIN_REQUIRED=1.8
2984
 
 
2985
 
 
2986
 
 
2987
 
 
2988
 
if test -n "$ac_tool_prefix"; then
2989
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2990
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2991
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2992
 
$as_echo_n "checking for $ac_word... " >&6; }
2993
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
2994
 
  $as_echo_n "(cached) " >&6
2995
 
else
2996
 
  if test -n "$RANLIB"; then
2997
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2998
 
else
2999
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000
 
for as_dir in $PATH
3001
 
do
3002
 
  IFS=$as_save_IFS
3003
 
  test -z "$as_dir" && as_dir=.
3004
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3005
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3006
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3007
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3008
 
    break 2
3009
 
  fi
3010
 
done
3011
 
done
3012
 
IFS=$as_save_IFS
3013
 
 
3014
 
fi
3015
 
fi
3016
 
RANLIB=$ac_cv_prog_RANLIB
3017
 
if test -n "$RANLIB"; then
3018
 
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3019
 
$as_echo "$RANLIB" >&6; }
3020
 
else
3021
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
3022
 
$as_echo "no" >&6; }
3023
 
fi
3024
 
 
3025
 
 
3026
 
fi
3027
 
if test -z "$ac_cv_prog_RANLIB"; then
3028
 
  ac_ct_RANLIB=$RANLIB
3029
 
  # Extract the first word of "ranlib", so it can be a program name with args.
3030
 
set dummy ranlib; ac_word=$2
3031
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3032
 
$as_echo_n "checking for $ac_word... " >&6; }
3033
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3034
 
  $as_echo_n "(cached) " >&6
3035
 
else
3036
 
  if test -n "$ac_ct_RANLIB"; then
3037
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3038
 
else
3039
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040
 
for as_dir in $PATH
3041
 
do
3042
 
  IFS=$as_save_IFS
3043
 
  test -z "$as_dir" && as_dir=.
3044
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3045
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3046
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
3047
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3048
 
    break 2
3049
 
  fi
3050
 
done
3051
 
done
3052
 
IFS=$as_save_IFS
3053
 
 
3054
 
fi
3055
 
fi
3056
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3057
 
if test -n "$ac_ct_RANLIB"; then
3058
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3059
 
$as_echo "$ac_ct_RANLIB" >&6; }
3060
 
else
3061
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
3062
 
$as_echo "no" >&6; }
3063
 
fi
3064
 
 
3065
 
  if test "x$ac_ct_RANLIB" = x; then
3066
 
    RANLIB=":"
3067
 
  else
3068
 
    case $cross_compiling:$ac_tool_warned in
3069
 
yes:)
3070
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3071
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3072
 
ac_tool_warned=yes ;;
3073
 
esac
3074
 
    RANLIB=$ac_ct_RANLIB
3075
 
  fi
3076
 
else
3077
 
  RANLIB="$ac_cv_prog_RANLIB"
3078
 
fi
3079
 
 
3080
3084
DEPDIR="${am__leading_dot}deps"
3081
3085
 
3082
3086
ac_config_commands="$ac_config_commands depfiles"
3085
3089
am_make=${MAKE-make}
3086
3090
cat > confinc << 'END'
3087
3091
am__doit:
3088
 
        @echo done
 
3092
        @echo this is the am__doit target
3089
3093
.PHONY: am__doit
3090
3094
END
3091
3095
# If we don't find an include directive, just comment out the code.
3096
3100
_am_result=none
3097
3101
# First try GNU make style include.
3098
3102
echo "include confinc" > confmf
3099
 
# We grep out `Entering directory' and `Leaving directory'
3100
 
# messages which can occur if `w' ends up in MAKEFLAGS.
3101
 
# In particular we don't look at `^make:' because GNU make might
3102
 
# be invoked under some other name (usually "gmake"), in which
3103
 
# case it prints its new name instead of `make'.
3104
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3105
 
   am__include=include
3106
 
   am__quote=
3107
 
   _am_result=GNU
3108
 
fi
 
3103
# Ignore all kinds of additional output from `make'.
 
3104
case `$am_make -s -f confmf 2> /dev/null` in #(
 
3105
*the\ am__doit\ target*)
 
3106
  am__include=include
 
3107
  am__quote=
 
3108
  _am_result=GNU
 
3109
  ;;
 
3110
esac
3109
3111
# Now try BSD make style include.
3110
3112
if test "$am__include" = "#"; then
3111
3113
   echo '.include "confinc"' > confmf
3112
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3113
 
      am__include=.include
3114
 
      am__quote="\""
3115
 
      _am_result=BSD
3116
 
   fi
 
3114
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
3115
   *the\ am__doit\ target*)
 
3116
     am__include=.include
 
3117
     am__quote="\""
 
3118
     _am_result=BSD
 
3119
     ;;
 
3120
   esac
3117
3121
fi
3118
3122
 
3119
3123
 
4102
4106
  if test "$am_compiler_list" = ""; then
4103
4107
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4104
4108
  fi
 
4109
  am__universal=false
 
4110
  case " $depcc " in #(
 
4111
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
4112
     esac
 
4113
 
4105
4114
  for depmode in $am_compiler_list; do
4106
4115
    # Setup a source with many dependencies, because some compilers
4107
4116
    # like to wrap large dependency lists on column 80 (with \), and
4119
4128
    done
4120
4129
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4121
4130
 
 
4131
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4132
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4133
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
4134
    # versions had trouble with output in subdirs
 
4135
    am__obj=sub/conftest.${OBJEXT-o}
 
4136
    am__minus_obj="-o $am__obj"
4122
4137
    case $depmode in
 
4138
    gcc)
 
4139
      # This depmode causes a compiler race in universal mode.
 
4140
      test "$am__universal" = false || continue
 
4141
      ;;
4123
4142
    nosideeffect)
4124
4143
      # after this tag, mechanisms are not by side-effect, so they'll
4125
4144
      # only be used when explicitly requested
4129
4148
        break
4130
4149
      fi
4131
4150
      ;;
 
4151
    msvisualcpp | msvcmsys)
 
4152
      # This compiler won't grok `-c -o', but also, the minuso test has
 
4153
      # not run yet.  These depmodes are late enough in the game, and
 
4154
      # so weak that their functioning should not be impacted.
 
4155
      am__obj=conftest.${OBJEXT-o}
 
4156
      am__minus_obj=
 
4157
      ;;
4132
4158
    none) break ;;
4133
4159
    esac
4134
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4135
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
4136
 
    # handle `-M -o', and we need to detect this.
4137
4160
    if depmode=$depmode \
4138
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
4161
       source=sub/conftest.c object=$am__obj \
4139
4162
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4140
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
4163
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4141
4164
         >/dev/null 2>conftest.err &&
4142
4165
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4143
4166
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4144
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
4167
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4145
4168
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4146
4169
      # icc doesn't choke on unknown options, it will just issue warnings
4147
4170
      # or remarks (even with -Werror).  So we grep stderr for any message
4180
4203
fi
4181
4204
 
4182
4205
 
4183
 
 
4184
 
ac_ext=c
4185
 
ac_cpp='$CPP $CPPFLAGS'
4186
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4187
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4188
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4189
 
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4190
 
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4191
 
# On Suns, sometimes $CPP names a directory.
4192
 
if test -n "$CPP" && test -d "$CPP"; then
4193
 
  CPP=
4194
 
fi
4195
 
if test -z "$CPP"; then
4196
 
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4206
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
4207
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
4208
if test "${ac_cv_path_SED+set}" = set; then
4197
4209
  $as_echo_n "(cached) " >&6
4198
4210
else
4199
 
      # Double quotes because CPP needs to be expanded
4200
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4201
 
    do
4202
 
      ac_preproc_ok=false
4203
 
for ac_c_preproc_warn_flag in '' yes
 
4211
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
4212
     for ac_i in 1 2 3 4 5 6 7; do
 
4213
       ac_script="$ac_script$as_nl$ac_script"
 
4214
     done
 
4215
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
4216
     $as_unset ac_script || ac_script=
 
4217
     if test -z "$SED"; then
 
4218
  ac_path_SED_found=false
 
4219
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4220
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4221
for as_dir in $PATH
4204
4222
do
4205
 
  # Use a header file that comes with gcc, so configuring glibc
4206
 
  # with a fresh cross-compiler works.
4207
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4208
 
  # <limits.h> exists even on freestanding compilers.
4209
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4210
 
  # not just through cpp. "Syntax error" is here to catch this case.
4211
 
  cat >conftest.$ac_ext <<_ACEOF
4212
 
/* confdefs.h.  */
4213
 
_ACEOF
4214
 
cat confdefs.h >>conftest.$ac_ext
4215
 
cat >>conftest.$ac_ext <<_ACEOF
4216
 
/* end confdefs.h.  */
4217
 
#ifdef __STDC__
4218
 
# include <limits.h>
4219
 
#else
4220
 
# include <assert.h>
4221
 
#endif
4222
 
                     Syntax error
4223
 
_ACEOF
4224
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4225
 
case "(($ac_try" in
4226
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227
 
  *) ac_try_echo=$ac_try;;
4228
 
esac
4229
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4230
 
$as_echo "$ac_try_echo") >&5
4231
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4232
 
  ac_status=$?
4233
 
  grep -v '^ *+' conftest.er1 >conftest.err
4234
 
  rm -f conftest.er1
4235
 
  cat conftest.err >&5
4236
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237
 
  (exit $ac_status); } >/dev/null && {
4238
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4239
 
         test ! -s conftest.err
4240
 
       }; then
4241
 
  :
4242
 
else
4243
 
  $as_echo "$as_me: failed program was:" >&5
4244
 
sed 's/^/| /' conftest.$ac_ext >&5
4245
 
 
4246
 
  # Broken: fails on valid input.
4247
 
continue
4248
 
fi
4249
 
 
4250
 
rm -f conftest.err conftest.$ac_ext
4251
 
 
4252
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4253
 
  # can be detected and how.
4254
 
  cat >conftest.$ac_ext <<_ACEOF
4255
 
/* confdefs.h.  */
4256
 
_ACEOF
4257
 
cat confdefs.h >>conftest.$ac_ext
4258
 
cat >>conftest.$ac_ext <<_ACEOF
4259
 
/* end confdefs.h.  */
4260
 
#include <ac_nonexistent.h>
4261
 
_ACEOF
4262
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4263
 
case "(($ac_try" in
4264
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265
 
  *) ac_try_echo=$ac_try;;
4266
 
esac
4267
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4268
 
$as_echo "$ac_try_echo") >&5
4269
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4270
 
  ac_status=$?
4271
 
  grep -v '^ *+' conftest.er1 >conftest.err
4272
 
  rm -f conftest.er1
4273
 
  cat conftest.err >&5
4274
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275
 
  (exit $ac_status); } >/dev/null && {
4276
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4277
 
         test ! -s conftest.err
4278
 
       }; then
4279
 
  # Broken: success on invalid input.
4280
 
continue
4281
 
else
4282
 
  $as_echo "$as_me: failed program was:" >&5
4283
 
sed 's/^/| /' conftest.$ac_ext >&5
4284
 
 
4285
 
  # Passes both tests.
4286
 
ac_preproc_ok=:
4287
 
break
4288
 
fi
4289
 
 
4290
 
rm -f conftest.err conftest.$ac_ext
4291
 
 
4292
 
done
4293
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4294
 
rm -f conftest.err conftest.$ac_ext
4295
 
if $ac_preproc_ok; then
4296
 
  break
4297
 
fi
4298
 
 
 
4223
  IFS=$as_save_IFS
 
4224
  test -z "$as_dir" && as_dir=.
 
4225
  for ac_prog in sed gsed; do
 
4226
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4227
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
4228
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
4229
# Check for GNU ac_path_SED and select it if it is found.
 
4230
  # Check for GNU $ac_path_SED
 
4231
case `"$ac_path_SED" --version 2>&1` in
 
4232
*GNU*)
 
4233
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
4234
*)
 
4235
  ac_count=0
 
4236
  $as_echo_n 0123456789 >"conftest.in"
 
4237
  while :
 
4238
  do
 
4239
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4240
    mv "conftest.tmp" "conftest.in"
 
4241
    cp "conftest.in" "conftest.nl"
 
4242
    $as_echo '' >> "conftest.nl"
 
4243
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4244
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4245
    ac_count=`expr $ac_count + 1`
 
4246
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
4247
      # Best one so far, save it but keep looking for a better one
 
4248
      ac_cv_path_SED="$ac_path_SED"
 
4249
      ac_path_SED_max=$ac_count
 
4250
    fi
 
4251
    # 10*(2^10) chars as input seems more than enough
 
4252
    test $ac_count -gt 10 && break
 
4253
  done
 
4254
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4255
esac
 
4256
 
 
4257
      $ac_path_SED_found && break 3
4299
4258
    done
4300
 
    ac_cv_prog_CPP=$CPP
4301
 
 
4302
 
fi
4303
 
  CPP=$ac_cv_prog_CPP
4304
 
else
4305
 
  ac_cv_prog_CPP=$CPP
4306
 
fi
4307
 
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4308
 
$as_echo "$CPP" >&6; }
4309
 
ac_preproc_ok=false
4310
 
for ac_c_preproc_warn_flag in '' yes
4311
 
do
4312
 
  # Use a header file that comes with gcc, so configuring glibc
4313
 
  # with a fresh cross-compiler works.
4314
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4315
 
  # <limits.h> exists even on freestanding compilers.
4316
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4317
 
  # not just through cpp. "Syntax error" is here to catch this case.
4318
 
  cat >conftest.$ac_ext <<_ACEOF
4319
 
/* confdefs.h.  */
4320
 
_ACEOF
4321
 
cat confdefs.h >>conftest.$ac_ext
4322
 
cat >>conftest.$ac_ext <<_ACEOF
4323
 
/* end confdefs.h.  */
4324
 
#ifdef __STDC__
4325
 
# include <limits.h>
4326
 
#else
4327
 
# include <assert.h>
4328
 
#endif
4329
 
                     Syntax error
4330
 
_ACEOF
4331
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4332
 
case "(($ac_try" in
4333
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334
 
  *) ac_try_echo=$ac_try;;
4335
 
esac
4336
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4337
 
$as_echo "$ac_try_echo") >&5
4338
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4339
 
  ac_status=$?
4340
 
  grep -v '^ *+' conftest.er1 >conftest.err
4341
 
  rm -f conftest.er1
4342
 
  cat conftest.err >&5
4343
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344
 
  (exit $ac_status); } >/dev/null && {
4345
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4346
 
         test ! -s conftest.err
4347
 
       }; then
4348
 
  :
4349
 
else
4350
 
  $as_echo "$as_me: failed program was:" >&5
4351
 
sed 's/^/| /' conftest.$ac_ext >&5
4352
 
 
4353
 
  # Broken: fails on valid input.
4354
 
continue
4355
 
fi
4356
 
 
4357
 
rm -f conftest.err conftest.$ac_ext
4358
 
 
4359
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4360
 
  # can be detected and how.
4361
 
  cat >conftest.$ac_ext <<_ACEOF
4362
 
/* confdefs.h.  */
4363
 
_ACEOF
4364
 
cat confdefs.h >>conftest.$ac_ext
4365
 
cat >>conftest.$ac_ext <<_ACEOF
4366
 
/* end confdefs.h.  */
4367
 
#include <ac_nonexistent.h>
4368
 
_ACEOF
4369
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4370
 
case "(($ac_try" in
4371
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372
 
  *) ac_try_echo=$ac_try;;
4373
 
esac
4374
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4375
 
$as_echo "$ac_try_echo") >&5
4376
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4377
 
  ac_status=$?
4378
 
  grep -v '^ *+' conftest.er1 >conftest.err
4379
 
  rm -f conftest.er1
4380
 
  cat conftest.err >&5
4381
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382
 
  (exit $ac_status); } >/dev/null && {
4383
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4384
 
         test ! -s conftest.err
4385
 
       }; then
4386
 
  # Broken: success on invalid input.
4387
 
continue
4388
 
else
4389
 
  $as_echo "$as_me: failed program was:" >&5
4390
 
sed 's/^/| /' conftest.$ac_ext >&5
4391
 
 
4392
 
  # Passes both tests.
4393
 
ac_preproc_ok=:
4394
 
break
4395
 
fi
4396
 
 
4397
 
rm -f conftest.err conftest.$ac_ext
4398
 
 
 
4259
  done
4399
4260
done
4400
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4401
 
rm -f conftest.err conftest.$ac_ext
4402
 
if $ac_preproc_ok; then
4403
 
  :
 
4261
IFS=$as_save_IFS
 
4262
  if test -z "$ac_cv_path_SED"; then
 
4263
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
 
4264
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
 
4265
   { (exit 1); exit 1; }; }
 
4266
  fi
4404
4267
else
4405
 
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4406
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4407
 
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4408
 
See \`config.log' for more details." >&5
4409
 
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4410
 
See \`config.log' for more details." >&2;}
4411
 
   { (exit 1); exit 1; }; }; }
4412
 
fi
4413
 
 
4414
 
ac_ext=c
4415
 
ac_cpp='$CPP $CPPFLAGS'
4416
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4417
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4418
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4268
  ac_cv_path_SED=$SED
 
4269
fi
 
4270
 
 
4271
fi
 
4272
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
 
4273
$as_echo "$ac_cv_path_SED" >&6; }
 
4274
 SED="$ac_cv_path_SED"
 
4275
  rm -f conftest.sed
 
4276
 
 
4277
test -z "$SED" && SED=sed
 
4278
Xsed="$SED -e 1s/^X//"
 
4279
 
 
4280
 
 
4281
 
 
4282
 
 
4283
 
 
4284
 
 
4285
 
 
4286
 
 
4287
 
4419
4288
 
4420
4289
 
4421
4290
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4552
4421
 EGREP="$ac_cv_path_EGREP"
4553
4422
 
4554
4423
 
4555
 
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4556
 
$as_echo_n "checking for ANSI C header files... " >&6; }
4557
 
if test "${ac_cv_header_stdc+set}" = set; then
4558
 
  $as_echo_n "(cached) " >&6
4559
 
else
4560
 
  cat >conftest.$ac_ext <<_ACEOF
4561
 
/* confdefs.h.  */
4562
 
_ACEOF
4563
 
cat confdefs.h >>conftest.$ac_ext
4564
 
cat >>conftest.$ac_ext <<_ACEOF
4565
 
/* end confdefs.h.  */
4566
 
#include <stdlib.h>
4567
 
#include <stdarg.h>
4568
 
#include <string.h>
4569
 
#include <float.h>
4570
 
 
4571
 
int
4572
 
main ()
4573
 
{
4574
 
 
4575
 
  ;
4576
 
  return 0;
4577
 
}
4578
 
_ACEOF
4579
 
rm -f conftest.$ac_objext
4580
 
if { (ac_try="$ac_compile"
4581
 
case "(($ac_try" in
4582
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583
 
  *) ac_try_echo=$ac_try;;
4584
 
esac
4585
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4586
 
$as_echo "$ac_try_echo") >&5
4587
 
  (eval "$ac_compile") 2>conftest.er1
4588
 
  ac_status=$?
4589
 
  grep -v '^ *+' conftest.er1 >conftest.err
4590
 
  rm -f conftest.er1
4591
 
  cat conftest.err >&5
4592
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593
 
  (exit $ac_status); } && {
4594
 
         test -z "$ac_c_werror_flag" ||
4595
 
         test ! -s conftest.err
4596
 
       } && test -s conftest.$ac_objext; then
4597
 
  ac_cv_header_stdc=yes
4598
 
else
4599
 
  $as_echo "$as_me: failed program was:" >&5
4600
 
sed 's/^/| /' conftest.$ac_ext >&5
4601
 
 
4602
 
        ac_cv_header_stdc=no
4603
 
fi
4604
 
 
4605
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606
 
 
4607
 
if test $ac_cv_header_stdc = yes; then
4608
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4609
 
  cat >conftest.$ac_ext <<_ACEOF
4610
 
/* confdefs.h.  */
4611
 
_ACEOF
4612
 
cat confdefs.h >>conftest.$ac_ext
4613
 
cat >>conftest.$ac_ext <<_ACEOF
4614
 
/* end confdefs.h.  */
4615
 
#include <string.h>
4616
 
 
4617
 
_ACEOF
4618
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4619
 
  $EGREP "memchr" >/dev/null 2>&1; then
4620
 
  :
4621
 
else
4622
 
  ac_cv_header_stdc=no
4623
 
fi
4624
 
rm -f conftest*
4625
 
 
4626
 
fi
4627
 
 
4628
 
if test $ac_cv_header_stdc = yes; then
4629
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4630
 
  cat >conftest.$ac_ext <<_ACEOF
4631
 
/* confdefs.h.  */
4632
 
_ACEOF
4633
 
cat confdefs.h >>conftest.$ac_ext
4634
 
cat >>conftest.$ac_ext <<_ACEOF
4635
 
/* end confdefs.h.  */
4636
 
#include <stdlib.h>
4637
 
 
4638
 
_ACEOF
4639
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4640
 
  $EGREP "free" >/dev/null 2>&1; then
4641
 
  :
4642
 
else
4643
 
  ac_cv_header_stdc=no
4644
 
fi
4645
 
rm -f conftest*
4646
 
 
4647
 
fi
4648
 
 
4649
 
if test $ac_cv_header_stdc = yes; then
4650
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4651
 
  if test "$cross_compiling" = yes; then
4652
 
  :
4653
 
else
4654
 
  cat >conftest.$ac_ext <<_ACEOF
4655
 
/* confdefs.h.  */
4656
 
_ACEOF
4657
 
cat confdefs.h >>conftest.$ac_ext
4658
 
cat >>conftest.$ac_ext <<_ACEOF
4659
 
/* end confdefs.h.  */
4660
 
#include <ctype.h>
4661
 
#include <stdlib.h>
4662
 
#if ((' ' & 0x0FF) == 0x020)
4663
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4664
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4665
 
#else
4666
 
# define ISLOWER(c) \
4667
 
                   (('a' <= (c) && (c) <= 'i') \
4668
 
                     || ('j' <= (c) && (c) <= 'r') \
4669
 
                     || ('s' <= (c) && (c) <= 'z'))
4670
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4671
 
#endif
4672
 
 
4673
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4674
 
int
4675
 
main ()
4676
 
{
4677
 
  int i;
4678
 
  for (i = 0; i < 256; i++)
4679
 
    if (XOR (islower (i), ISLOWER (i))
4680
 
        || toupper (i) != TOUPPER (i))
4681
 
      return 2;
4682
 
  return 0;
4683
 
}
4684
 
_ACEOF
4685
 
rm -f conftest$ac_exeext
4686
 
if { (ac_try="$ac_link"
4687
 
case "(($ac_try" in
4688
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689
 
  *) ac_try_echo=$ac_try;;
4690
 
esac
4691
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4692
 
$as_echo "$ac_try_echo") >&5
4693
 
  (eval "$ac_link") 2>&5
4694
 
  ac_status=$?
4695
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4697
 
  { (case "(($ac_try" in
4698
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4699
 
  *) ac_try_echo=$ac_try;;
4700
 
esac
4701
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4702
 
$as_echo "$ac_try_echo") >&5
4703
 
  (eval "$ac_try") 2>&5
4704
 
  ac_status=$?
4705
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706
 
  (exit $ac_status); }; }; then
4707
 
  :
4708
 
else
4709
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
4710
 
$as_echo "$as_me: failed program was:" >&5
4711
 
sed 's/^/| /' conftest.$ac_ext >&5
4712
 
 
4713
 
( exit $ac_status )
4714
 
ac_cv_header_stdc=no
4715
 
fi
4716
 
rm -rf conftest.dSYM
4717
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4718
 
fi
4719
 
 
4720
 
 
4721
 
fi
4722
 
fi
4723
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4724
 
$as_echo "$ac_cv_header_stdc" >&6; }
4725
 
if test $ac_cv_header_stdc = yes; then
4726
 
 
4727
 
cat >>confdefs.h <<\_ACEOF
4728
 
#define STDC_HEADERS 1
4729
 
_ACEOF
4730
 
 
4731
 
fi
4732
 
 
4733
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4734
 
 
4735
 
 
4736
 
 
4737
 
 
4738
 
 
4739
 
 
4740
 
 
4741
 
 
4742
 
 
4743
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4744
 
                  inttypes.h stdint.h unistd.h
4745
 
do
4746
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4747
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4748
 
$as_echo_n "checking for $ac_header... " >&6; }
4749
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4750
 
  $as_echo_n "(cached) " >&6
4751
 
else
4752
 
  cat >conftest.$ac_ext <<_ACEOF
4753
 
/* confdefs.h.  */
4754
 
_ACEOF
4755
 
cat confdefs.h >>conftest.$ac_ext
4756
 
cat >>conftest.$ac_ext <<_ACEOF
4757
 
/* end confdefs.h.  */
4758
 
$ac_includes_default
4759
 
 
4760
 
#include <$ac_header>
4761
 
_ACEOF
4762
 
rm -f conftest.$ac_objext
4763
 
if { (ac_try="$ac_compile"
4764
 
case "(($ac_try" in
4765
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766
 
  *) ac_try_echo=$ac_try;;
4767
 
esac
4768
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4769
 
$as_echo "$ac_try_echo") >&5
4770
 
  (eval "$ac_compile") 2>conftest.er1
4771
 
  ac_status=$?
4772
 
  grep -v '^ *+' conftest.er1 >conftest.err
4773
 
  rm -f conftest.er1
4774
 
  cat conftest.err >&5
4775
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776
 
  (exit $ac_status); } && {
4777
 
         test -z "$ac_c_werror_flag" ||
4778
 
         test ! -s conftest.err
4779
 
       } && test -s conftest.$ac_objext; then
4780
 
  eval "$as_ac_Header=yes"
4781
 
else
4782
 
  $as_echo "$as_me: failed program was:" >&5
4783
 
sed 's/^/| /' conftest.$ac_ext >&5
4784
 
 
4785
 
        eval "$as_ac_Header=no"
4786
 
fi
4787
 
 
4788
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4789
 
fi
4790
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
4791
 
                 $as_echo "$as_val"'`
4792
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4793
 
$as_echo "$ac_res" >&6; }
4794
 
as_val=`eval 'as_val=${'$as_ac_Header'}
4795
 
                 $as_echo "$as_val"'`
4796
 
   if test "x$as_val" = x""yes; then
4797
 
  cat >>confdefs.h <<_ACEOF
4798
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4799
 
_ACEOF
4800
 
 
4801
 
fi
4802
 
 
4803
 
done
4804
 
 
4805
 
 
4806
 
 
4807
 
  if test "${ac_cv_header_minix_config_h+set}" = set; then
4808
 
  { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4809
 
$as_echo_n "checking for minix/config.h... " >&6; }
4810
 
if test "${ac_cv_header_minix_config_h+set}" = set; then
4811
 
  $as_echo_n "(cached) " >&6
4812
 
fi
4813
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4814
 
$as_echo "$ac_cv_header_minix_config_h" >&6; }
4815
 
else
4816
 
  # Is the header compilable?
4817
 
{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4818
 
$as_echo_n "checking minix/config.h usability... " >&6; }
4819
 
cat >conftest.$ac_ext <<_ACEOF
4820
 
/* confdefs.h.  */
4821
 
_ACEOF
4822
 
cat confdefs.h >>conftest.$ac_ext
4823
 
cat >>conftest.$ac_ext <<_ACEOF
4824
 
/* end confdefs.h.  */
4825
 
$ac_includes_default
4826
 
#include <minix/config.h>
4827
 
_ACEOF
4828
 
rm -f conftest.$ac_objext
4829
 
if { (ac_try="$ac_compile"
4830
 
case "(($ac_try" in
4831
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4832
 
  *) ac_try_echo=$ac_try;;
4833
 
esac
4834
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4835
 
$as_echo "$ac_try_echo") >&5
4836
 
  (eval "$ac_compile") 2>conftest.er1
4837
 
  ac_status=$?
4838
 
  grep -v '^ *+' conftest.er1 >conftest.err
4839
 
  rm -f conftest.er1
4840
 
  cat conftest.err >&5
4841
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842
 
  (exit $ac_status); } && {
4843
 
         test -z "$ac_c_werror_flag" ||
4844
 
         test ! -s conftest.err
4845
 
       } && test -s conftest.$ac_objext; then
4846
 
  ac_header_compiler=yes
4847
 
else
4848
 
  $as_echo "$as_me: failed program was:" >&5
4849
 
sed 's/^/| /' conftest.$ac_ext >&5
4850
 
 
4851
 
        ac_header_compiler=no
4852
 
fi
4853
 
 
4854
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4855
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4856
 
$as_echo "$ac_header_compiler" >&6; }
4857
 
 
4858
 
# Is the header present?
4859
 
{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4860
 
$as_echo_n "checking minix/config.h presence... " >&6; }
4861
 
cat >conftest.$ac_ext <<_ACEOF
4862
 
/* confdefs.h.  */
4863
 
_ACEOF
4864
 
cat confdefs.h >>conftest.$ac_ext
4865
 
cat >>conftest.$ac_ext <<_ACEOF
4866
 
/* end confdefs.h.  */
4867
 
#include <minix/config.h>
4868
 
_ACEOF
4869
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4870
 
case "(($ac_try" in
4871
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4872
 
  *) ac_try_echo=$ac_try;;
4873
 
esac
4874
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4875
 
$as_echo "$ac_try_echo") >&5
4876
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4877
 
  ac_status=$?
4878
 
  grep -v '^ *+' conftest.er1 >conftest.err
4879
 
  rm -f conftest.er1
4880
 
  cat conftest.err >&5
4881
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882
 
  (exit $ac_status); } >/dev/null && {
4883
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4884
 
         test ! -s conftest.err
4885
 
       }; then
4886
 
  ac_header_preproc=yes
4887
 
else
4888
 
  $as_echo "$as_me: failed program was:" >&5
4889
 
sed 's/^/| /' conftest.$ac_ext >&5
4890
 
 
4891
 
  ac_header_preproc=no
4892
 
fi
4893
 
 
4894
 
rm -f conftest.err conftest.$ac_ext
4895
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4896
 
$as_echo "$ac_header_preproc" >&6; }
4897
 
 
4898
 
# So?  What about this header?
4899
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4900
 
  yes:no: )
4901
 
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4902
 
$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4903
 
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4904
 
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4905
 
    ac_header_preproc=yes
4906
 
    ;;
4907
 
  no:yes:* )
4908
 
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4909
 
$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4910
 
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4911
 
$as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4912
 
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4913
 
$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4914
 
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4915
 
$as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4916
 
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4917
 
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4918
 
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4919
 
$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4920
 
 
4921
 
    ;;
4922
 
esac
4923
 
{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4924
 
$as_echo_n "checking for minix/config.h... " >&6; }
4925
 
if test "${ac_cv_header_minix_config_h+set}" = set; then
4926
 
  $as_echo_n "(cached) " >&6
4927
 
else
4928
 
  ac_cv_header_minix_config_h=$ac_header_preproc
4929
 
fi
4930
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4931
 
$as_echo "$ac_cv_header_minix_config_h" >&6; }
4932
 
 
4933
 
fi
4934
 
if test "x$ac_cv_header_minix_config_h" = x""yes; then
4935
 
  MINIX=yes
4936
 
else
4937
 
  MINIX=
4938
 
fi
4939
 
 
4940
 
 
4941
 
  if test "$MINIX" = yes; then
4942
 
 
4943
 
cat >>confdefs.h <<\_ACEOF
4944
 
#define _POSIX_SOURCE 1
4945
 
_ACEOF
4946
 
 
4947
 
 
4948
 
cat >>confdefs.h <<\_ACEOF
4949
 
#define _POSIX_1_SOURCE 2
4950
 
_ACEOF
4951
 
 
4952
 
 
4953
 
cat >>confdefs.h <<\_ACEOF
4954
 
#define _MINIX 1
4955
 
_ACEOF
4956
 
 
4957
 
  fi
4958
 
 
4959
 
 
4960
 
 
4961
 
  { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4962
 
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4963
 
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4964
 
  $as_echo_n "(cached) " >&6
4965
 
else
4966
 
  cat >conftest.$ac_ext <<_ACEOF
4967
 
/* confdefs.h.  */
4968
 
_ACEOF
4969
 
cat confdefs.h >>conftest.$ac_ext
4970
 
cat >>conftest.$ac_ext <<_ACEOF
4971
 
/* end confdefs.h.  */
4972
 
 
4973
 
#         define __EXTENSIONS__ 1
4974
 
          $ac_includes_default
4975
 
int
4976
 
main ()
4977
 
{
4978
 
 
4979
 
  ;
4980
 
  return 0;
4981
 
}
4982
 
_ACEOF
4983
 
rm -f conftest.$ac_objext
4984
 
if { (ac_try="$ac_compile"
4985
 
case "(($ac_try" in
4986
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4987
 
  *) ac_try_echo=$ac_try;;
4988
 
esac
4989
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4990
 
$as_echo "$ac_try_echo") >&5
4991
 
  (eval "$ac_compile") 2>conftest.er1
4992
 
  ac_status=$?
4993
 
  grep -v '^ *+' conftest.er1 >conftest.err
4994
 
  rm -f conftest.er1
4995
 
  cat conftest.err >&5
4996
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997
 
  (exit $ac_status); } && {
4998
 
         test -z "$ac_c_werror_flag" ||
4999
 
         test ! -s conftest.err
5000
 
       } && test -s conftest.$ac_objext; then
5001
 
  ac_cv_safe_to_define___extensions__=yes
5002
 
else
5003
 
  $as_echo "$as_me: failed program was:" >&5
5004
 
sed 's/^/| /' conftest.$ac_ext >&5
5005
 
 
5006
 
        ac_cv_safe_to_define___extensions__=no
5007
 
fi
5008
 
 
5009
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5010
 
fi
5011
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5012
 
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5013
 
  test $ac_cv_safe_to_define___extensions__ = yes &&
5014
 
    cat >>confdefs.h <<\_ACEOF
5015
 
#define __EXTENSIONS__ 1
5016
 
_ACEOF
5017
 
 
5018
 
  cat >>confdefs.h <<\_ACEOF
5019
 
#define _ALL_SOURCE 1
5020
 
_ACEOF
5021
 
 
5022
 
  cat >>confdefs.h <<\_ACEOF
5023
 
#define _GNU_SOURCE 1
5024
 
_ACEOF
5025
 
 
5026
 
  cat >>confdefs.h <<\_ACEOF
5027
 
#define _POSIX_PTHREAD_SEMANTICS 1
5028
 
_ACEOF
5029
 
 
5030
 
  cat >>confdefs.h <<\_ACEOF
5031
 
#define _TANDEM_SOURCE 1
5032
 
_ACEOF
5033
 
 
5034
 
 
5035
 
 
5036
 
 
5037
 
 
5038
 
 
5039
 
 
5040
 
 
5041
 
 
5042
 
 
5043
 
 
5044
 
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5045
 
# for constant arguments.  Useless!
5046
 
{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
5047
 
$as_echo_n "checking for working alloca.h... " >&6; }
5048
 
if test "${ac_cv_working_alloca_h+set}" = set; then
5049
 
  $as_echo_n "(cached) " >&6
5050
 
else
5051
 
  cat >conftest.$ac_ext <<_ACEOF
5052
 
/* confdefs.h.  */
5053
 
_ACEOF
5054
 
cat confdefs.h >>conftest.$ac_ext
5055
 
cat >>conftest.$ac_ext <<_ACEOF
5056
 
/* end confdefs.h.  */
5057
 
#include <alloca.h>
5058
 
int
5059
 
main ()
5060
 
{
5061
 
char *p = (char *) alloca (2 * sizeof (int));
5062
 
                          if (p) return 0;
5063
 
  ;
5064
 
  return 0;
5065
 
}
5066
 
_ACEOF
5067
 
rm -f conftest.$ac_objext conftest$ac_exeext
5068
 
if { (ac_try="$ac_link"
5069
 
case "(($ac_try" in
5070
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5071
 
  *) ac_try_echo=$ac_try;;
5072
 
esac
5073
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5074
 
$as_echo "$ac_try_echo") >&5
5075
 
  (eval "$ac_link") 2>conftest.er1
5076
 
  ac_status=$?
5077
 
  grep -v '^ *+' conftest.er1 >conftest.err
5078
 
  rm -f conftest.er1
5079
 
  cat conftest.err >&5
5080
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081
 
  (exit $ac_status); } && {
5082
 
         test -z "$ac_c_werror_flag" ||
5083
 
         test ! -s conftest.err
5084
 
       } && test -s conftest$ac_exeext && {
5085
 
         test "$cross_compiling" = yes ||
5086
 
         $as_test_x conftest$ac_exeext
5087
 
       }; then
5088
 
  ac_cv_working_alloca_h=yes
5089
 
else
5090
 
  $as_echo "$as_me: failed program was:" >&5
5091
 
sed 's/^/| /' conftest.$ac_ext >&5
5092
 
 
5093
 
        ac_cv_working_alloca_h=no
5094
 
fi
5095
 
 
5096
 
rm -rf conftest.dSYM
5097
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5098
 
      conftest$ac_exeext conftest.$ac_ext
5099
 
fi
5100
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5101
 
$as_echo "$ac_cv_working_alloca_h" >&6; }
5102
 
if test $ac_cv_working_alloca_h = yes; then
5103
 
 
5104
 
cat >>confdefs.h <<\_ACEOF
5105
 
#define HAVE_ALLOCA_H 1
5106
 
_ACEOF
5107
 
 
5108
 
fi
5109
 
 
5110
 
{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
5111
 
$as_echo_n "checking for alloca... " >&6; }
5112
 
if test "${ac_cv_func_alloca_works+set}" = set; then
5113
 
  $as_echo_n "(cached) " >&6
5114
 
else
5115
 
  cat >conftest.$ac_ext <<_ACEOF
5116
 
/* confdefs.h.  */
5117
 
_ACEOF
5118
 
cat confdefs.h >>conftest.$ac_ext
5119
 
cat >>conftest.$ac_ext <<_ACEOF
5120
 
/* end confdefs.h.  */
5121
 
#ifdef __GNUC__
5122
 
# define alloca __builtin_alloca
5123
 
#else
5124
 
# ifdef _MSC_VER
5125
 
#  include <malloc.h>
5126
 
#  define alloca _alloca
5127
 
# else
5128
 
#  ifdef HAVE_ALLOCA_H
5129
 
#   include <alloca.h>
5130
 
#  else
5131
 
#   ifdef _AIX
5132
 
 #pragma alloca
5133
 
#   else
5134
 
#    ifndef alloca /* predefined by HP cc +Olibcalls */
5135
 
char *alloca ();
5136
 
#    endif
5137
 
#   endif
5138
 
#  endif
5139
 
# endif
5140
 
#endif
5141
 
 
5142
 
int
5143
 
main ()
5144
 
{
5145
 
char *p = (char *) alloca (1);
5146
 
                                    if (p) return 0;
5147
 
  ;
5148
 
  return 0;
5149
 
}
5150
 
_ACEOF
5151
 
rm -f conftest.$ac_objext conftest$ac_exeext
5152
 
if { (ac_try="$ac_link"
5153
 
case "(($ac_try" in
5154
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5155
 
  *) ac_try_echo=$ac_try;;
5156
 
esac
5157
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5158
 
$as_echo "$ac_try_echo") >&5
5159
 
  (eval "$ac_link") 2>conftest.er1
5160
 
  ac_status=$?
5161
 
  grep -v '^ *+' conftest.er1 >conftest.err
5162
 
  rm -f conftest.er1
5163
 
  cat conftest.err >&5
5164
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165
 
  (exit $ac_status); } && {
5166
 
         test -z "$ac_c_werror_flag" ||
5167
 
         test ! -s conftest.err
5168
 
       } && test -s conftest$ac_exeext && {
5169
 
         test "$cross_compiling" = yes ||
5170
 
         $as_test_x conftest$ac_exeext
5171
 
       }; then
5172
 
  ac_cv_func_alloca_works=yes
5173
 
else
5174
 
  $as_echo "$as_me: failed program was:" >&5
5175
 
sed 's/^/| /' conftest.$ac_ext >&5
5176
 
 
5177
 
        ac_cv_func_alloca_works=no
5178
 
fi
5179
 
 
5180
 
rm -rf conftest.dSYM
5181
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5182
 
      conftest$ac_exeext conftest.$ac_ext
5183
 
fi
5184
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5185
 
$as_echo "$ac_cv_func_alloca_works" >&6; }
5186
 
 
5187
 
if test $ac_cv_func_alloca_works = yes; then
5188
 
 
5189
 
cat >>confdefs.h <<\_ACEOF
5190
 
#define HAVE_ALLOCA 1
5191
 
_ACEOF
5192
 
 
5193
 
else
5194
 
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5195
 
# that cause trouble.  Some versions do not even contain alloca or
5196
 
# contain a buggy version.  If you still want to use their alloca,
5197
 
# use ar to extract alloca.o from them instead of compiling alloca.c.
5198
 
 
5199
 
 
5200
 
 
5201
 
 
5202
 
 
5203
 
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5204
 
 
5205
 
cat >>confdefs.h <<\_ACEOF
5206
 
#define C_ALLOCA 1
5207
 
_ACEOF
5208
 
 
5209
 
 
5210
 
{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5211
 
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5212
 
if test "${ac_cv_os_cray+set}" = set; then
5213
 
  $as_echo_n "(cached) " >&6
5214
 
else
5215
 
  cat >conftest.$ac_ext <<_ACEOF
5216
 
/* confdefs.h.  */
5217
 
_ACEOF
5218
 
cat confdefs.h >>conftest.$ac_ext
5219
 
cat >>conftest.$ac_ext <<_ACEOF
5220
 
/* end confdefs.h.  */
5221
 
#if defined CRAY && ! defined CRAY2
5222
 
webecray
5223
 
#else
5224
 
wenotbecray
5225
 
#endif
5226
 
 
5227
 
_ACEOF
5228
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5229
 
  $EGREP "webecray" >/dev/null 2>&1; then
5230
 
  ac_cv_os_cray=yes
5231
 
else
5232
 
  ac_cv_os_cray=no
5233
 
fi
5234
 
rm -f conftest*
5235
 
 
5236
 
fi
5237
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5238
 
$as_echo "$ac_cv_os_cray" >&6; }
5239
 
if test $ac_cv_os_cray = yes; then
5240
 
  for ac_func in _getb67 GETB67 getb67; do
5241
 
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5242
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5243
 
$as_echo_n "checking for $ac_func... " >&6; }
5244
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5245
 
  $as_echo_n "(cached) " >&6
5246
 
else
5247
 
  cat >conftest.$ac_ext <<_ACEOF
5248
 
/* confdefs.h.  */
5249
 
_ACEOF
5250
 
cat confdefs.h >>conftest.$ac_ext
5251
 
cat >>conftest.$ac_ext <<_ACEOF
5252
 
/* end confdefs.h.  */
5253
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5254
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5255
 
#define $ac_func innocuous_$ac_func
5256
 
 
5257
 
/* System header to define __stub macros and hopefully few prototypes,
5258
 
    which can conflict with char $ac_func (); below.
5259
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5260
 
    <limits.h> exists even on freestanding compilers.  */
5261
 
 
5262
 
#ifdef __STDC__
5263
 
# include <limits.h>
5264
 
#else
5265
 
# include <assert.h>
5266
 
#endif
5267
 
 
5268
 
#undef $ac_func
5269
 
 
5270
 
/* Override any GCC internal prototype to avoid an error.
5271
 
   Use char because int might match the return type of a GCC
5272
 
   builtin and then its argument prototype would still apply.  */
5273
 
#ifdef __cplusplus
5274
 
extern "C"
5275
 
#endif
5276
 
char $ac_func ();
5277
 
/* The GNU C library defines this for functions which it implements
5278
 
    to always fail with ENOSYS.  Some functions are actually named
5279
 
    something starting with __ and the normal name is an alias.  */
5280
 
#if defined __stub_$ac_func || defined __stub___$ac_func
5281
 
choke me
5282
 
#endif
5283
 
 
5284
 
int
5285
 
main ()
5286
 
{
5287
 
return $ac_func ();
5288
 
  ;
5289
 
  return 0;
5290
 
}
5291
 
_ACEOF
5292
 
rm -f conftest.$ac_objext conftest$ac_exeext
5293
 
if { (ac_try="$ac_link"
5294
 
case "(($ac_try" in
5295
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296
 
  *) ac_try_echo=$ac_try;;
5297
 
esac
5298
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5299
 
$as_echo "$ac_try_echo") >&5
5300
 
  (eval "$ac_link") 2>conftest.er1
5301
 
  ac_status=$?
5302
 
  grep -v '^ *+' conftest.er1 >conftest.err
5303
 
  rm -f conftest.er1
5304
 
  cat conftest.err >&5
5305
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306
 
  (exit $ac_status); } && {
5307
 
         test -z "$ac_c_werror_flag" ||
5308
 
         test ! -s conftest.err
5309
 
       } && test -s conftest$ac_exeext && {
5310
 
         test "$cross_compiling" = yes ||
5311
 
         $as_test_x conftest$ac_exeext
5312
 
       }; then
5313
 
  eval "$as_ac_var=yes"
5314
 
else
5315
 
  $as_echo "$as_me: failed program was:" >&5
5316
 
sed 's/^/| /' conftest.$ac_ext >&5
5317
 
 
5318
 
        eval "$as_ac_var=no"
5319
 
fi
5320
 
 
5321
 
rm -rf conftest.dSYM
5322
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5323
 
      conftest$ac_exeext conftest.$ac_ext
5324
 
fi
5325
 
ac_res=`eval 'as_val=${'$as_ac_var'}
5326
 
                 $as_echo "$as_val"'`
5327
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5328
 
$as_echo "$ac_res" >&6; }
5329
 
as_val=`eval 'as_val=${'$as_ac_var'}
5330
 
                 $as_echo "$as_val"'`
5331
 
   if test "x$as_val" = x""yes; then
5332
 
 
5333
 
cat >>confdefs.h <<_ACEOF
5334
 
#define CRAY_STACKSEG_END $ac_func
5335
 
_ACEOF
5336
 
 
5337
 
    break
5338
 
fi
5339
 
 
5340
 
  done
5341
 
fi
5342
 
 
5343
 
{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5344
 
$as_echo_n "checking stack direction for C alloca... " >&6; }
5345
 
if test "${ac_cv_c_stack_direction+set}" = set; then
5346
 
  $as_echo_n "(cached) " >&6
5347
 
else
5348
 
  if test "$cross_compiling" = yes; then
5349
 
  ac_cv_c_stack_direction=0
5350
 
else
5351
 
  cat >conftest.$ac_ext <<_ACEOF
5352
 
/* confdefs.h.  */
5353
 
_ACEOF
5354
 
cat confdefs.h >>conftest.$ac_ext
5355
 
cat >>conftest.$ac_ext <<_ACEOF
5356
 
/* end confdefs.h.  */
5357
 
$ac_includes_default
5358
 
int
5359
 
find_stack_direction ()
5360
 
{
5361
 
  static char *addr = 0;
5362
 
  auto char dummy;
5363
 
  if (addr == 0)
5364
 
    {
5365
 
      addr = &dummy;
5366
 
      return find_stack_direction ();
5367
 
    }
5368
 
  else
5369
 
    return (&dummy > addr) ? 1 : -1;
5370
 
}
5371
 
 
5372
 
int
5373
 
main ()
5374
 
{
5375
 
  return find_stack_direction () < 0;
5376
 
}
5377
 
_ACEOF
5378
 
rm -f conftest$ac_exeext
5379
 
if { (ac_try="$ac_link"
5380
 
case "(($ac_try" in
5381
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382
 
  *) ac_try_echo=$ac_try;;
5383
 
esac
5384
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5385
 
$as_echo "$ac_try_echo") >&5
5386
 
  (eval "$ac_link") 2>&5
5387
 
  ac_status=$?
5388
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5390
 
  { (case "(($ac_try" in
5391
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392
 
  *) ac_try_echo=$ac_try;;
5393
 
esac
5394
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5395
 
$as_echo "$ac_try_echo") >&5
5396
 
  (eval "$ac_try") 2>&5
5397
 
  ac_status=$?
5398
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399
 
  (exit $ac_status); }; }; then
5400
 
  ac_cv_c_stack_direction=1
5401
 
else
5402
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
5403
 
$as_echo "$as_me: failed program was:" >&5
5404
 
sed 's/^/| /' conftest.$ac_ext >&5
5405
 
 
5406
 
( exit $ac_status )
5407
 
ac_cv_c_stack_direction=-1
5408
 
fi
5409
 
rm -rf conftest.dSYM
5410
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5411
 
fi
5412
 
 
5413
 
 
5414
 
fi
5415
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5416
 
$as_echo "$ac_cv_c_stack_direction" >&6; }
5417
 
 
5418
 
cat >>confdefs.h <<_ACEOF
5419
 
#define STACK_DIRECTION $ac_cv_c_stack_direction
5420
 
_ACEOF
5421
 
 
5422
 
 
5423
 
fi
5424
 
 
5425
 
 
5426
 
  GNULIB_INET_NTOP=0;
5427
 
  GNULIB_INET_PTON=0;
5428
 
    HAVE_DECL_INET_NTOP=1;
5429
 
  HAVE_DECL_INET_PTON=1;
5430
 
  ARPA_INET_H='';
5431
 
 
5432
 
 
5433
 
 
5434
 
 
5435
 
 
5436
 
 
5437
 
for ac_header in $gl_header_list
5438
 
do
5439
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5440
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5441
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5442
 
$as_echo_n "checking for $ac_header... " >&6; }
5443
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5444
 
  $as_echo_n "(cached) " >&6
5445
 
fi
5446
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
5447
 
                 $as_echo "$as_val"'`
5448
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5449
 
$as_echo "$ac_res" >&6; }
5450
 
else
5451
 
  # Is the header compilable?
5452
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5453
 
$as_echo_n "checking $ac_header usability... " >&6; }
5454
 
cat >conftest.$ac_ext <<_ACEOF
5455
 
/* confdefs.h.  */
5456
 
_ACEOF
5457
 
cat confdefs.h >>conftest.$ac_ext
5458
 
cat >>conftest.$ac_ext <<_ACEOF
5459
 
/* end confdefs.h.  */
5460
 
$ac_includes_default
5461
 
#include <$ac_header>
5462
 
_ACEOF
5463
 
rm -f conftest.$ac_objext
5464
 
if { (ac_try="$ac_compile"
5465
 
case "(($ac_try" in
5466
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467
 
  *) ac_try_echo=$ac_try;;
5468
 
esac
5469
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5470
 
$as_echo "$ac_try_echo") >&5
5471
 
  (eval "$ac_compile") 2>conftest.er1
5472
 
  ac_status=$?
5473
 
  grep -v '^ *+' conftest.er1 >conftest.err
5474
 
  rm -f conftest.er1
5475
 
  cat conftest.err >&5
5476
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477
 
  (exit $ac_status); } && {
5478
 
         test -z "$ac_c_werror_flag" ||
5479
 
         test ! -s conftest.err
5480
 
       } && test -s conftest.$ac_objext; then
5481
 
  ac_header_compiler=yes
5482
 
else
5483
 
  $as_echo "$as_me: failed program was:" >&5
5484
 
sed 's/^/| /' conftest.$ac_ext >&5
5485
 
 
5486
 
        ac_header_compiler=no
5487
 
fi
5488
 
 
5489
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5491
 
$as_echo "$ac_header_compiler" >&6; }
5492
 
 
5493
 
# Is the header present?
5494
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5495
 
$as_echo_n "checking $ac_header presence... " >&6; }
5496
 
cat >conftest.$ac_ext <<_ACEOF
5497
 
/* confdefs.h.  */
5498
 
_ACEOF
5499
 
cat confdefs.h >>conftest.$ac_ext
5500
 
cat >>conftest.$ac_ext <<_ACEOF
5501
 
/* end confdefs.h.  */
5502
 
#include <$ac_header>
5503
 
_ACEOF
5504
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5505
 
case "(($ac_try" in
5506
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5507
 
  *) ac_try_echo=$ac_try;;
5508
 
esac
5509
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5510
 
$as_echo "$ac_try_echo") >&5
5511
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5512
 
  ac_status=$?
5513
 
  grep -v '^ *+' conftest.er1 >conftest.err
5514
 
  rm -f conftest.er1
5515
 
  cat conftest.err >&5
5516
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517
 
  (exit $ac_status); } >/dev/null && {
5518
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5519
 
         test ! -s conftest.err
5520
 
       }; then
5521
 
  ac_header_preproc=yes
5522
 
else
5523
 
  $as_echo "$as_me: failed program was:" >&5
5524
 
sed 's/^/| /' conftest.$ac_ext >&5
5525
 
 
5526
 
  ac_header_preproc=no
5527
 
fi
5528
 
 
5529
 
rm -f conftest.err conftest.$ac_ext
5530
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5531
 
$as_echo "$ac_header_preproc" >&6; }
5532
 
 
5533
 
# So?  What about this header?
5534
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5535
 
  yes:no: )
5536
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5537
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5538
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5539
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5540
 
    ac_header_preproc=yes
5541
 
    ;;
5542
 
  no:yes:* )
5543
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5544
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5545
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5546
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5547
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5548
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5549
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5550
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5551
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5552
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5553
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5554
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5555
 
 
5556
 
    ;;
5557
 
esac
5558
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5559
 
$as_echo_n "checking for $ac_header... " >&6; }
5560
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5561
 
  $as_echo_n "(cached) " >&6
5562
 
else
5563
 
  eval "$as_ac_Header=\$ac_header_preproc"
5564
 
fi
5565
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
5566
 
                 $as_echo "$as_val"'`
5567
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5568
 
$as_echo "$ac_res" >&6; }
5569
 
 
5570
 
fi
5571
 
as_val=`eval 'as_val=${'$as_ac_Header'}
5572
 
                 $as_echo "$as_val"'`
5573
 
   if test "x$as_val" = x""yes; then
5574
 
  cat >>confdefs.h <<_ACEOF
5575
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5576
 
_ACEOF
5577
 
 
5578
 
fi
5579
 
 
5580
 
done
5581
 
 
5582
 
 
5583
 
 
5584
 
 
5585
 
 
5586
 
 
5587
 
 
5588
 
 
5589
 
  { $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
5590
 
$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5591
 
if test "${gl_cv_have_include_next+set}" = set; then
5592
 
  $as_echo_n "(cached) " >&6
5593
 
else
5594
 
  rm -rf conftestd1 conftestd2
5595
 
     mkdir conftestd1 conftestd2
5596
 
                    cat <<EOF > conftestd1/conftest.h
5597
 
#define DEFINED_IN_CONFTESTD1
5598
 
#include <stdio.h>
5599
 
#include_next <conftest.h>
5600
 
#ifdef DEFINED_IN_CONFTESTD2
5601
 
int foo;
5602
 
#else
5603
 
#error "include_next doesn't work"
5604
 
#endif
5605
 
EOF
5606
 
     cat <<EOF > conftestd2/conftest.h
5607
 
#ifndef DEFINED_IN_CONFTESTD1
5608
 
#error "include_next test doesn't work"
5609
 
#endif
5610
 
#define DEFINED_IN_CONFTESTD2
5611
 
EOF
5612
 
     save_CPPFLAGS="$CPPFLAGS"
5613
 
     CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
5614
 
     cat >conftest.$ac_ext <<_ACEOF
5615
 
#include <conftest.h>
5616
 
_ACEOF
5617
 
rm -f conftest.$ac_objext
5618
 
if { (ac_try="$ac_compile"
5619
 
case "(($ac_try" in
5620
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621
 
  *) ac_try_echo=$ac_try;;
5622
 
esac
5623
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5624
 
$as_echo "$ac_try_echo") >&5
5625
 
  (eval "$ac_compile") 2>conftest.er1
5626
 
  ac_status=$?
5627
 
  grep -v '^ *+' conftest.er1 >conftest.err
5628
 
  rm -f conftest.er1
5629
 
  cat conftest.err >&5
5630
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631
 
  (exit $ac_status); } && {
5632
 
         test -z "$ac_c_werror_flag" ||
5633
 
         test ! -s conftest.err
5634
 
       } && test -s conftest.$ac_objext; then
5635
 
  gl_cv_have_include_next=yes
5636
 
else
5637
 
  $as_echo "$as_me: failed program was:" >&5
5638
 
sed 's/^/| /' conftest.$ac_ext >&5
5639
 
 
5640
 
        gl_cv_have_include_next=no
5641
 
fi
5642
 
 
5643
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5644
 
     CPPFLAGS="$save_CPPFLAGS"
5645
 
     rm -rf conftestd1 conftestd2
5646
 
 
5647
 
fi
5648
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
5649
 
$as_echo "$gl_cv_have_include_next" >&6; }
5650
 
  PRAGMA_SYSTEM_HEADER=
5651
 
  if test $gl_cv_have_include_next = yes; then
5652
 
    INCLUDE_NEXT=include_next
5653
 
    if test -n "$GCC"; then
5654
 
      PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5655
 
    fi
5656
 
  else
5657
 
    INCLUDE_NEXT=include
5658
 
  fi
5659
 
 
5660
 
 
5661
 
 
5662
 
 
5663
 
  GNULIB_SOCKET=0;
5664
 
  GNULIB_CONNECT=0;
5665
 
  GNULIB_ACCEPT=0;
5666
 
  GNULIB_BIND=0;
5667
 
  GNULIB_GETPEERNAME=0;
5668
 
  GNULIB_GETSOCKNAME=0;
5669
 
  GNULIB_GETSOCKOPT=0;
5670
 
  GNULIB_LISTEN=0;
5671
 
  GNULIB_RECV=0;
5672
 
  GNULIB_SEND=0;
5673
 
  GNULIB_RECVFROM=0;
5674
 
  GNULIB_SENDTO=0;
5675
 
  GNULIB_SETSOCKOPT=0;
5676
 
 
5677
 
{ $as_echo "$as_me:$LINENO: checking for inline" >&5
5678
 
$as_echo_n "checking for inline... " >&6; }
5679
 
if test "${ac_cv_c_inline+set}" = set; then
5680
 
  $as_echo_n "(cached) " >&6
5681
 
else
5682
 
  ac_cv_c_inline=no
5683
 
for ac_kw in inline __inline__ __inline; do
5684
 
  cat >conftest.$ac_ext <<_ACEOF
5685
 
/* confdefs.h.  */
5686
 
_ACEOF
5687
 
cat confdefs.h >>conftest.$ac_ext
5688
 
cat >>conftest.$ac_ext <<_ACEOF
5689
 
/* end confdefs.h.  */
5690
 
#ifndef __cplusplus
5691
 
typedef int foo_t;
5692
 
static $ac_kw foo_t static_foo () {return 0; }
5693
 
$ac_kw foo_t foo () {return 0; }
5694
 
#endif
5695
 
 
5696
 
_ACEOF
5697
 
rm -f conftest.$ac_objext
5698
 
if { (ac_try="$ac_compile"
5699
 
case "(($ac_try" in
5700
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701
 
  *) ac_try_echo=$ac_try;;
5702
 
esac
5703
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5704
 
$as_echo "$ac_try_echo") >&5
5705
 
  (eval "$ac_compile") 2>conftest.er1
5706
 
  ac_status=$?
5707
 
  grep -v '^ *+' conftest.er1 >conftest.err
5708
 
  rm -f conftest.er1
5709
 
  cat conftest.err >&5
5710
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711
 
  (exit $ac_status); } && {
5712
 
         test -z "$ac_c_werror_flag" ||
5713
 
         test ! -s conftest.err
5714
 
       } && test -s conftest.$ac_objext; then
5715
 
  ac_cv_c_inline=$ac_kw
5716
 
else
5717
 
  $as_echo "$as_me: failed program was:" >&5
5718
 
sed 's/^/| /' conftest.$ac_ext >&5
5719
 
 
5720
 
 
5721
 
fi
5722
 
 
5723
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5724
 
  test "$ac_cv_c_inline" != no && break
5725
 
done
5726
 
 
5727
 
fi
5728
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5729
 
$as_echo "$ac_cv_c_inline" >&6; }
5730
 
 
5731
 
 
5732
 
case $ac_cv_c_inline in
5733
 
  inline | yes) ;;
5734
 
  *)
5735
 
    case $ac_cv_c_inline in
5736
 
      no) ac_val=;;
5737
 
      *) ac_val=$ac_cv_c_inline;;
5738
 
    esac
5739
 
    cat >>confdefs.h <<_ACEOF
5740
 
#ifndef __cplusplus
5741
 
#define inline $ac_val
5742
 
#endif
5743
 
_ACEOF
5744
 
    ;;
5745
 
esac
5746
 
 
5747
 
 
5748
 
 
5749
 
 
5750
 
 
5751
 
 
5752
 
 
5753
 
 
5754
 
 
5755
 
 
5756
 
 
5757
 
  { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> is self-contained" >&5
5758
 
$as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
5759
 
if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then
5760
 
  $as_echo_n "(cached) " >&6
5761
 
else
5762
 
 
5763
 
      cat >conftest.$ac_ext <<_ACEOF
5764
 
/* confdefs.h.  */
5765
 
_ACEOF
5766
 
cat confdefs.h >>conftest.$ac_ext
5767
 
cat >>conftest.$ac_ext <<_ACEOF
5768
 
/* end confdefs.h.  */
5769
 
#include <sys/socket.h>
5770
 
int
5771
 
main ()
5772
 
{
5773
 
 
5774
 
  ;
5775
 
  return 0;
5776
 
}
5777
 
_ACEOF
5778
 
rm -f conftest.$ac_objext
5779
 
if { (ac_try="$ac_compile"
5780
 
case "(($ac_try" in
5781
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782
 
  *) ac_try_echo=$ac_try;;
5783
 
esac
5784
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5785
 
$as_echo "$ac_try_echo") >&5
5786
 
  (eval "$ac_compile") 2>conftest.er1
5787
 
  ac_status=$?
5788
 
  grep -v '^ *+' conftest.er1 >conftest.err
5789
 
  rm -f conftest.er1
5790
 
  cat conftest.err >&5
5791
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792
 
  (exit $ac_status); } && {
5793
 
         test -z "$ac_c_werror_flag" ||
5794
 
         test ! -s conftest.err
5795
 
       } && test -s conftest.$ac_objext; then
5796
 
  gl_cv_header_sys_socket_h_selfcontained=yes
5797
 
else
5798
 
  $as_echo "$as_me: failed program was:" >&5
5799
 
sed 's/^/| /' conftest.$ac_ext >&5
5800
 
 
5801
 
        gl_cv_header_sys_socket_h_selfcontained=no
5802
 
fi
5803
 
 
5804
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5805
 
 
5806
 
fi
5807
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
5808
 
$as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
5809
 
  if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
5810
 
    SYS_SOCKET_H=''
5811
 
 
5812
 
for ac_func in shutdown
5813
 
do
5814
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5815
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5816
 
$as_echo_n "checking for $ac_func... " >&6; }
5817
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5818
 
  $as_echo_n "(cached) " >&6
5819
 
else
5820
 
  cat >conftest.$ac_ext <<_ACEOF
5821
 
/* confdefs.h.  */
5822
 
_ACEOF
5823
 
cat confdefs.h >>conftest.$ac_ext
5824
 
cat >>conftest.$ac_ext <<_ACEOF
5825
 
/* end confdefs.h.  */
5826
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5827
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5828
 
#define $ac_func innocuous_$ac_func
5829
 
 
5830
 
/* System header to define __stub macros and hopefully few prototypes,
5831
 
    which can conflict with char $ac_func (); below.
5832
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5833
 
    <limits.h> exists even on freestanding compilers.  */
5834
 
 
5835
 
#ifdef __STDC__
5836
 
# include <limits.h>
5837
 
#else
5838
 
# include <assert.h>
5839
 
#endif
5840
 
 
5841
 
#undef $ac_func
5842
 
 
5843
 
/* Override any GCC internal prototype to avoid an error.
5844
 
   Use char because int might match the return type of a GCC
5845
 
   builtin and then its argument prototype would still apply.  */
5846
 
#ifdef __cplusplus
5847
 
extern "C"
5848
 
#endif
5849
 
char $ac_func ();
5850
 
/* The GNU C library defines this for functions which it implements
5851
 
    to always fail with ENOSYS.  Some functions are actually named
5852
 
    something starting with __ and the normal name is an alias.  */
5853
 
#if defined __stub_$ac_func || defined __stub___$ac_func
5854
 
choke me
5855
 
#endif
5856
 
 
5857
 
int
5858
 
main ()
5859
 
{
5860
 
return $ac_func ();
5861
 
  ;
5862
 
  return 0;
5863
 
}
5864
 
_ACEOF
5865
 
rm -f conftest.$ac_objext conftest$ac_exeext
5866
 
if { (ac_try="$ac_link"
5867
 
case "(($ac_try" in
5868
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869
 
  *) ac_try_echo=$ac_try;;
5870
 
esac
5871
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5872
 
$as_echo "$ac_try_echo") >&5
5873
 
  (eval "$ac_link") 2>conftest.er1
5874
 
  ac_status=$?
5875
 
  grep -v '^ *+' conftest.er1 >conftest.err
5876
 
  rm -f conftest.er1
5877
 
  cat conftest.err >&5
5878
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879
 
  (exit $ac_status); } && {
5880
 
         test -z "$ac_c_werror_flag" ||
5881
 
         test ! -s conftest.err
5882
 
       } && test -s conftest$ac_exeext && {
5883
 
         test "$cross_compiling" = yes ||
5884
 
         $as_test_x conftest$ac_exeext
5885
 
       }; then
5886
 
  eval "$as_ac_var=yes"
5887
 
else
5888
 
  $as_echo "$as_me: failed program was:" >&5
5889
 
sed 's/^/| /' conftest.$ac_ext >&5
5890
 
 
5891
 
        eval "$as_ac_var=no"
5892
 
fi
5893
 
 
5894
 
rm -rf conftest.dSYM
5895
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5896
 
      conftest$ac_exeext conftest.$ac_ext
5897
 
fi
5898
 
ac_res=`eval 'as_val=${'$as_ac_var'}
5899
 
                 $as_echo "$as_val"'`
5900
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5901
 
$as_echo "$ac_res" >&6; }
5902
 
as_val=`eval 'as_val=${'$as_ac_var'}
5903
 
                 $as_echo "$as_val"'`
5904
 
   if test "x$as_val" = x""yes; then
5905
 
  cat >>confdefs.h <<_ACEOF
5906
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5907
 
_ACEOF
5908
 
 
5909
 
fi
5910
 
done
5911
 
 
5912
 
    if test $ac_cv_func_shutdown = yes; then
5913
 
      { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
5914
 
$as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
5915
 
if test "${gl_cv_header_sys_socket_h_shut+set}" = set; then
5916
 
  $as_echo_n "(cached) " >&6
5917
 
else
5918
 
 
5919
 
          cat >conftest.$ac_ext <<_ACEOF
5920
 
/* confdefs.h.  */
5921
 
_ACEOF
5922
 
cat confdefs.h >>conftest.$ac_ext
5923
 
cat >>conftest.$ac_ext <<_ACEOF
5924
 
/* end confdefs.h.  */
5925
 
#include <sys/socket.h>
5926
 
int
5927
 
main ()
5928
 
{
5929
 
int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
5930
 
  ;
5931
 
  return 0;
5932
 
}
5933
 
_ACEOF
5934
 
rm -f conftest.$ac_objext
5935
 
if { (ac_try="$ac_compile"
5936
 
case "(($ac_try" in
5937
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938
 
  *) ac_try_echo=$ac_try;;
5939
 
esac
5940
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5941
 
$as_echo "$ac_try_echo") >&5
5942
 
  (eval "$ac_compile") 2>conftest.er1
5943
 
  ac_status=$?
5944
 
  grep -v '^ *+' conftest.er1 >conftest.err
5945
 
  rm -f conftest.er1
5946
 
  cat conftest.err >&5
5947
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948
 
  (exit $ac_status); } && {
5949
 
         test -z "$ac_c_werror_flag" ||
5950
 
         test ! -s conftest.err
5951
 
       } && test -s conftest.$ac_objext; then
5952
 
  gl_cv_header_sys_socket_h_shut=yes
5953
 
else
5954
 
  $as_echo "$as_me: failed program was:" >&5
5955
 
sed 's/^/| /' conftest.$ac_ext >&5
5956
 
 
5957
 
        gl_cv_header_sys_socket_h_shut=no
5958
 
fi
5959
 
 
5960
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5961
 
 
5962
 
fi
5963
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_shut" >&5
5964
 
$as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
5965
 
      if test $gl_cv_header_sys_socket_h_shut = no; then
5966
 
        SYS_SOCKET_H='sys/socket.h'
5967
 
      fi
5968
 
    fi
5969
 
  else
5970
 
    SYS_SOCKET_H='sys/socket.h'
5971
 
  fi
5972
 
  if test -n "$SYS_SOCKET_H"; then
5973
 
 
5974
 
 
5975
 
 
5976
 
  :
5977
 
 
5978
 
 
5979
 
 
5980
 
 
5981
 
 
5982
 
 
5983
 
 
5984
 
     if test $gl_cv_have_include_next = yes; then
5985
 
       gl_cv_next_sys_socket_h='<'sys/socket.h'>'
5986
 
     else
5987
 
       { $as_echo "$as_me:$LINENO: checking absolute name of <sys/socket.h>" >&5
5988
 
$as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
5989
 
if test "${gl_cv_next_sys_socket_h+set}" = set; then
5990
 
  $as_echo_n "(cached) " >&6
5991
 
else
5992
 
 
5993
 
          if test $ac_cv_header_sys_socket_h = yes; then
5994
 
            cat >conftest.$ac_ext <<_ACEOF
5995
 
/* confdefs.h.  */
5996
 
_ACEOF
5997
 
cat confdefs.h >>conftest.$ac_ext
5998
 
cat >>conftest.$ac_ext <<_ACEOF
5999
 
/* end confdefs.h.  */
6000
 
#include <sys/socket.h>
6001
 
 
6002
 
_ACEOF
6003
 
                                    gl_cv_next_sys_socket_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6004
 
               sed -n '\#/sys/socket.h#{
6005
 
                 s#.*"\(.*/sys/socket.h\)".*#\1#
6006
 
                 s#^/[^/]#//&#
6007
 
                 p
6008
 
                 q
6009
 
               }'`'"'
6010
 
          else
6011
 
            gl_cv_next_sys_socket_h='<'sys/socket.h'>'
6012
 
          fi
6013
 
 
6014
 
fi
6015
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_socket_h" >&5
6016
 
$as_echo "$gl_cv_next_sys_socket_h" >&6; }
6017
 
     fi
6018
 
     NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
6019
 
 
6020
 
 
6021
 
 
6022
 
    if test $ac_cv_header_sys_socket_h = yes; then
6023
 
      HAVE_SYS_SOCKET_H=1
6024
 
      HAVE_WS2TCPIP_H=0
6025
 
    else
6026
 
      HAVE_SYS_SOCKET_H=0
6027
 
 
6028
 
for ac_header in ws2tcpip.h
6029
 
do
6030
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6031
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6032
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6033
 
$as_echo_n "checking for $ac_header... " >&6; }
6034
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6035
 
  $as_echo_n "(cached) " >&6
6036
 
fi
6037
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
6038
 
                 $as_echo "$as_val"'`
6039
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6040
 
$as_echo "$ac_res" >&6; }
6041
 
else
6042
 
  # Is the header compilable?
6043
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6044
 
$as_echo_n "checking $ac_header usability... " >&6; }
6045
 
cat >conftest.$ac_ext <<_ACEOF
6046
 
/* confdefs.h.  */
6047
 
_ACEOF
6048
 
cat confdefs.h >>conftest.$ac_ext
6049
 
cat >>conftest.$ac_ext <<_ACEOF
6050
 
/* end confdefs.h.  */
6051
 
$ac_includes_default
6052
 
#include <$ac_header>
6053
 
_ACEOF
6054
 
rm -f conftest.$ac_objext
6055
 
if { (ac_try="$ac_compile"
6056
 
case "(($ac_try" in
6057
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058
 
  *) ac_try_echo=$ac_try;;
6059
 
esac
6060
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6061
 
$as_echo "$ac_try_echo") >&5
6062
 
  (eval "$ac_compile") 2>conftest.er1
6063
 
  ac_status=$?
6064
 
  grep -v '^ *+' conftest.er1 >conftest.err
6065
 
  rm -f conftest.er1
6066
 
  cat conftest.err >&5
6067
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068
 
  (exit $ac_status); } && {
6069
 
         test -z "$ac_c_werror_flag" ||
6070
 
         test ! -s conftest.err
6071
 
       } && test -s conftest.$ac_objext; then
6072
 
  ac_header_compiler=yes
6073
 
else
6074
 
  $as_echo "$as_me: failed program was:" >&5
6075
 
sed 's/^/| /' conftest.$ac_ext >&5
6076
 
 
6077
 
        ac_header_compiler=no
6078
 
fi
6079
 
 
6080
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6081
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6082
 
$as_echo "$ac_header_compiler" >&6; }
6083
 
 
6084
 
# Is the header present?
6085
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6086
 
$as_echo_n "checking $ac_header presence... " >&6; }
6087
 
cat >conftest.$ac_ext <<_ACEOF
6088
 
/* confdefs.h.  */
6089
 
_ACEOF
6090
 
cat confdefs.h >>conftest.$ac_ext
6091
 
cat >>conftest.$ac_ext <<_ACEOF
6092
 
/* end confdefs.h.  */
6093
 
#include <$ac_header>
6094
 
_ACEOF
6095
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6096
 
case "(($ac_try" in
6097
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6098
 
  *) ac_try_echo=$ac_try;;
6099
 
esac
6100
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6101
 
$as_echo "$ac_try_echo") >&5
6102
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6103
 
  ac_status=$?
6104
 
  grep -v '^ *+' conftest.er1 >conftest.err
6105
 
  rm -f conftest.er1
6106
 
  cat conftest.err >&5
6107
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108
 
  (exit $ac_status); } >/dev/null && {
6109
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6110
 
         test ! -s conftest.err
6111
 
       }; then
6112
 
  ac_header_preproc=yes
6113
 
else
6114
 
  $as_echo "$as_me: failed program was:" >&5
6115
 
sed 's/^/| /' conftest.$ac_ext >&5
6116
 
 
6117
 
  ac_header_preproc=no
6118
 
fi
6119
 
 
6120
 
rm -f conftest.err conftest.$ac_ext
6121
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6122
 
$as_echo "$ac_header_preproc" >&6; }
6123
 
 
6124
 
# So?  What about this header?
6125
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6126
 
  yes:no: )
6127
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6128
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6129
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6130
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6131
 
    ac_header_preproc=yes
6132
 
    ;;
6133
 
  no:yes:* )
6134
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6135
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6136
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6137
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6138
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6139
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6140
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6141
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6142
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6143
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6144
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6145
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6146
 
 
6147
 
    ;;
6148
 
esac
6149
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6150
 
$as_echo_n "checking for $ac_header... " >&6; }
6151
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6152
 
  $as_echo_n "(cached) " >&6
6153
 
else
6154
 
  eval "$as_ac_Header=\$ac_header_preproc"
6155
 
fi
6156
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
6157
 
                 $as_echo "$as_val"'`
6158
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6159
 
$as_echo "$ac_res" >&6; }
6160
 
 
6161
 
fi
6162
 
as_val=`eval 'as_val=${'$as_ac_Header'}
6163
 
                 $as_echo "$as_val"'`
6164
 
   if test "x$as_val" = x""yes; then
6165
 
  cat >>confdefs.h <<_ACEOF
6166
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6167
 
_ACEOF
6168
 
 
6169
 
fi
6170
 
 
6171
 
done
6172
 
 
6173
 
      if test $ac_cv_header_ws2tcpip_h = yes; then
6174
 
        HAVE_WS2TCPIP_H=1
6175
 
      else
6176
 
        HAVE_WS2TCPIP_H=0
6177
 
      fi
6178
 
    fi
6179
 
 
6180
 
 
6181
 
  :
6182
 
 
6183
 
 
6184
 
 
6185
 
 
6186
 
 
6187
 
  if test $ac_cv_header_sys_socket_h != yes; then
6188
 
 
6189
 
for ac_header in winsock2.h
6190
 
do
6191
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6192
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6193
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6194
 
$as_echo_n "checking for $ac_header... " >&6; }
6195
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6196
 
  $as_echo_n "(cached) " >&6
6197
 
fi
6198
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
6199
 
                 $as_echo "$as_val"'`
6200
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6201
 
$as_echo "$ac_res" >&6; }
6202
 
else
6203
 
  # Is the header compilable?
6204
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6205
 
$as_echo_n "checking $ac_header usability... " >&6; }
6206
 
cat >conftest.$ac_ext <<_ACEOF
6207
 
/* confdefs.h.  */
6208
 
_ACEOF
6209
 
cat confdefs.h >>conftest.$ac_ext
6210
 
cat >>conftest.$ac_ext <<_ACEOF
6211
 
/* end confdefs.h.  */
6212
 
$ac_includes_default
6213
 
#include <$ac_header>
6214
 
_ACEOF
6215
 
rm -f conftest.$ac_objext
6216
 
if { (ac_try="$ac_compile"
6217
 
case "(($ac_try" in
6218
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6219
 
  *) ac_try_echo=$ac_try;;
6220
 
esac
6221
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6222
 
$as_echo "$ac_try_echo") >&5
6223
 
  (eval "$ac_compile") 2>conftest.er1
6224
 
  ac_status=$?
6225
 
  grep -v '^ *+' conftest.er1 >conftest.err
6226
 
  rm -f conftest.er1
6227
 
  cat conftest.err >&5
6228
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229
 
  (exit $ac_status); } && {
6230
 
         test -z "$ac_c_werror_flag" ||
6231
 
         test ! -s conftest.err
6232
 
       } && test -s conftest.$ac_objext; then
6233
 
  ac_header_compiler=yes
6234
 
else
6235
 
  $as_echo "$as_me: failed program was:" >&5
6236
 
sed 's/^/| /' conftest.$ac_ext >&5
6237
 
 
6238
 
        ac_header_compiler=no
6239
 
fi
6240
 
 
6241
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6242
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6243
 
$as_echo "$ac_header_compiler" >&6; }
6244
 
 
6245
 
# Is the header present?
6246
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6247
 
$as_echo_n "checking $ac_header presence... " >&6; }
6248
 
cat >conftest.$ac_ext <<_ACEOF
6249
 
/* confdefs.h.  */
6250
 
_ACEOF
6251
 
cat confdefs.h >>conftest.$ac_ext
6252
 
cat >>conftest.$ac_ext <<_ACEOF
6253
 
/* end confdefs.h.  */
6254
 
#include <$ac_header>
6255
 
_ACEOF
6256
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6257
 
case "(($ac_try" in
6258
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259
 
  *) ac_try_echo=$ac_try;;
6260
 
esac
6261
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6262
 
$as_echo "$ac_try_echo") >&5
6263
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6264
 
  ac_status=$?
6265
 
  grep -v '^ *+' conftest.er1 >conftest.err
6266
 
  rm -f conftest.er1
6267
 
  cat conftest.err >&5
6268
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269
 
  (exit $ac_status); } >/dev/null && {
6270
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6271
 
         test ! -s conftest.err
6272
 
       }; then
6273
 
  ac_header_preproc=yes
6274
 
else
6275
 
  $as_echo "$as_me: failed program was:" >&5
6276
 
sed 's/^/| /' conftest.$ac_ext >&5
6277
 
 
6278
 
  ac_header_preproc=no
6279
 
fi
6280
 
 
6281
 
rm -f conftest.err conftest.$ac_ext
6282
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6283
 
$as_echo "$ac_header_preproc" >&6; }
6284
 
 
6285
 
# So?  What about this header?
6286
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6287
 
  yes:no: )
6288
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6289
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6290
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6291
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6292
 
    ac_header_preproc=yes
6293
 
    ;;
6294
 
  no:yes:* )
6295
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6296
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6297
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6298
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6299
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6300
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6301
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6302
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6303
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6304
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6305
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6306
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6307
 
 
6308
 
    ;;
6309
 
esac
6310
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6311
 
$as_echo_n "checking for $ac_header... " >&6; }
6312
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6313
 
  $as_echo_n "(cached) " >&6
6314
 
else
6315
 
  eval "$as_ac_Header=\$ac_header_preproc"
6316
 
fi
6317
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
6318
 
                 $as_echo "$as_val"'`
6319
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6320
 
$as_echo "$ac_res" >&6; }
6321
 
 
6322
 
fi
6323
 
as_val=`eval 'as_val=${'$as_ac_Header'}
6324
 
                 $as_echo "$as_val"'`
6325
 
   if test "x$as_val" = x""yes; then
6326
 
  cat >>confdefs.h <<_ACEOF
6327
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6328
 
_ACEOF
6329
 
 
6330
 
fi
6331
 
 
6332
 
done
6333
 
 
6334
 
  fi
6335
 
  if test "$ac_cv_header_winsock2_h" = yes; then
6336
 
    HAVE_WINSOCK2_H=1
6337
 
  else
6338
 
    HAVE_WINSOCK2_H=0
6339
 
  fi
6340
 
 
6341
 
 
6342
 
 
6343
 
 
6344
 
  fi
6345
 
 
6346
 
 
6347
 
 
6348
 
 
6349
 
 
6350
 
 
6351
 
 
6352
 
 
6353
 
 
6354
 
 
6355
 
  { $as_echo "$as_me:$LINENO: checking for complete errno.h" >&5
6356
 
$as_echo_n "checking for complete errno.h... " >&6; }
6357
 
if test "${gl_cv_header_errno_h_complete+set}" = set; then
6358
 
  $as_echo_n "(cached) " >&6
6359
 
else
6360
 
 
6361
 
    cat >conftest.$ac_ext <<_ACEOF
6362
 
/* confdefs.h.  */
6363
 
_ACEOF
6364
 
cat confdefs.h >>conftest.$ac_ext
6365
 
cat >>conftest.$ac_ext <<_ACEOF
6366
 
/* end confdefs.h.  */
6367
 
 
6368
 
#include <errno.h>
6369
 
#if !defined ENOMSG
6370
 
booboo
6371
 
#endif
6372
 
#if !defined EIDRM
6373
 
booboo
6374
 
#endif
6375
 
#if !defined ENOLINK
6376
 
booboo
6377
 
#endif
6378
 
#if !defined EPROTO
6379
 
booboo
6380
 
#endif
6381
 
#if !defined EMULTIHOP
6382
 
booboo
6383
 
#endif
6384
 
#if !defined EBADMSG
6385
 
booboo
6386
 
#endif
6387
 
#if !defined EOVERFLOW
6388
 
booboo
6389
 
#endif
6390
 
#if !defined ENOTSUP
6391
 
booboo
6392
 
#endif
6393
 
#if !defined ECANCELED
6394
 
booboo
6395
 
#endif
6396
 
 
6397
 
_ACEOF
6398
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6399
 
  $EGREP "booboo" >/dev/null 2>&1; then
6400
 
  gl_cv_header_errno_h_complete=no
6401
 
else
6402
 
  gl_cv_header_errno_h_complete=yes
6403
 
fi
6404
 
rm -f conftest*
6405
 
 
6406
 
 
6407
 
fi
6408
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_complete" >&5
6409
 
$as_echo "$gl_cv_header_errno_h_complete" >&6; }
6410
 
  if test $gl_cv_header_errno_h_complete = yes; then
6411
 
    ERRNO_H=''
6412
 
  else
6413
 
 
6414
 
 
6415
 
 
6416
 
  :
6417
 
 
6418
 
 
6419
 
 
6420
 
 
6421
 
 
6422
 
 
6423
 
 
6424
 
     if test $gl_cv_have_include_next = yes; then
6425
 
       gl_cv_next_errno_h='<'errno.h'>'
6426
 
     else
6427
 
       { $as_echo "$as_me:$LINENO: checking absolute name of <errno.h>" >&5
6428
 
$as_echo_n "checking absolute name of <errno.h>... " >&6; }
6429
 
if test "${gl_cv_next_errno_h+set}" = set; then
6430
 
  $as_echo_n "(cached) " >&6
6431
 
else
6432
 
 
6433
 
          if test $ac_cv_header_errno_h = yes; then
6434
 
            cat >conftest.$ac_ext <<_ACEOF
6435
 
/* confdefs.h.  */
6436
 
_ACEOF
6437
 
cat confdefs.h >>conftest.$ac_ext
6438
 
cat >>conftest.$ac_ext <<_ACEOF
6439
 
/* end confdefs.h.  */
6440
 
#include <errno.h>
6441
 
 
6442
 
_ACEOF
6443
 
                                    gl_cv_next_errno_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6444
 
               sed -n '\#/errno.h#{
6445
 
                 s#.*"\(.*/errno.h\)".*#\1#
6446
 
                 s#^/[^/]#//&#
6447
 
                 p
6448
 
                 q
6449
 
               }'`'"'
6450
 
          else
6451
 
            gl_cv_next_errno_h='<'errno.h'>'
6452
 
          fi
6453
 
 
6454
 
fi
6455
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_errno_h" >&5
6456
 
$as_echo "$gl_cv_next_errno_h" >&6; }
6457
 
     fi
6458
 
     NEXT_ERRNO_H=$gl_cv_next_errno_h
6459
 
 
6460
 
 
6461
 
 
6462
 
    ERRNO_H='errno.h'
6463
 
  fi
6464
 
 
6465
 
 
6466
 
  if test -n "$ERRNO_H"; then
6467
 
    { $as_echo "$as_me:$LINENO: checking for EMULTIHOP value" >&5
6468
 
$as_echo_n "checking for EMULTIHOP value... " >&6; }
6469
 
if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then
6470
 
  $as_echo_n "(cached) " >&6
6471
 
else
6472
 
 
6473
 
      cat >conftest.$ac_ext <<_ACEOF
6474
 
/* confdefs.h.  */
6475
 
_ACEOF
6476
 
cat confdefs.h >>conftest.$ac_ext
6477
 
cat >>conftest.$ac_ext <<_ACEOF
6478
 
/* end confdefs.h.  */
6479
 
 
6480
 
#include <errno.h>
6481
 
#ifdef EMULTIHOP
6482
 
yes
6483
 
#endif
6484
 
 
6485
 
_ACEOF
6486
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6487
 
  $EGREP "yes" >/dev/null 2>&1; then
6488
 
  gl_cv_header_errno_h_EMULTIHOP=yes
6489
 
else
6490
 
  gl_cv_header_errno_h_EMULTIHOP=no
6491
 
fi
6492
 
rm -f conftest*
6493
 
 
6494
 
      if test $gl_cv_header_errno_h_EMULTIHOP = no; then
6495
 
        cat >conftest.$ac_ext <<_ACEOF
6496
 
/* confdefs.h.  */
6497
 
_ACEOF
6498
 
cat confdefs.h >>conftest.$ac_ext
6499
 
cat >>conftest.$ac_ext <<_ACEOF
6500
 
/* end confdefs.h.  */
6501
 
 
6502
 
#define _XOPEN_SOURCE_EXTENDED 1
6503
 
#include <errno.h>
6504
 
#ifdef EMULTIHOP
6505
 
yes
6506
 
#endif
6507
 
 
6508
 
_ACEOF
6509
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6510
 
  $EGREP "yes" >/dev/null 2>&1; then
6511
 
  gl_cv_header_errno_h_EMULTIHOP=hidden
6512
 
fi
6513
 
rm -f conftest*
6514
 
 
6515
 
        if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
6516
 
                              if test "$cross_compiling" = yes; then
6517
 
  # Depending upon the size, compute the lo and hi bounds.
6518
 
cat >conftest.$ac_ext <<_ACEOF
6519
 
/* confdefs.h.  */
6520
 
_ACEOF
6521
 
cat confdefs.h >>conftest.$ac_ext
6522
 
cat >>conftest.$ac_ext <<_ACEOF
6523
 
/* end confdefs.h.  */
6524
 
 
6525
 
#define _XOPEN_SOURCE_EXTENDED 1
6526
 
#include <errno.h>
6527
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
6528
 
#include <stdio.h>
6529
 
#include <stdlib.h>
6530
 
 
6531
 
int
6532
 
main ()
6533
 
{
6534
 
static int test_array [1 - 2 * !((EMULTIHOP) >= 0)];
6535
 
test_array [0] = 0
6536
 
 
6537
 
  ;
6538
 
  return 0;
6539
 
}
6540
 
_ACEOF
6541
 
rm -f conftest.$ac_objext
6542
 
if { (ac_try="$ac_compile"
6543
 
case "(($ac_try" in
6544
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6545
 
  *) ac_try_echo=$ac_try;;
6546
 
esac
6547
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6548
 
$as_echo "$ac_try_echo") >&5
6549
 
  (eval "$ac_compile") 2>conftest.er1
6550
 
  ac_status=$?
6551
 
  grep -v '^ *+' conftest.er1 >conftest.err
6552
 
  rm -f conftest.er1
6553
 
  cat conftest.err >&5
6554
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555
 
  (exit $ac_status); } && {
6556
 
         test -z "$ac_c_werror_flag" ||
6557
 
         test ! -s conftest.err
6558
 
       } && test -s conftest.$ac_objext; then
6559
 
  ac_lo=0 ac_mid=0
6560
 
  while :; do
6561
 
    cat >conftest.$ac_ext <<_ACEOF
6562
 
/* confdefs.h.  */
6563
 
_ACEOF
6564
 
cat confdefs.h >>conftest.$ac_ext
6565
 
cat >>conftest.$ac_ext <<_ACEOF
6566
 
/* end confdefs.h.  */
6567
 
 
6568
 
#define _XOPEN_SOURCE_EXTENDED 1
6569
 
#include <errno.h>
6570
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
6571
 
#include <stdio.h>
6572
 
#include <stdlib.h>
6573
 
 
6574
 
int
6575
 
main ()
6576
 
{
6577
 
static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
6578
 
test_array [0] = 0
6579
 
 
6580
 
  ;
6581
 
  return 0;
6582
 
}
6583
 
_ACEOF
6584
 
rm -f conftest.$ac_objext
6585
 
if { (ac_try="$ac_compile"
6586
 
case "(($ac_try" in
6587
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588
 
  *) ac_try_echo=$ac_try;;
6589
 
esac
6590
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6591
 
$as_echo "$ac_try_echo") >&5
6592
 
  (eval "$ac_compile") 2>conftest.er1
6593
 
  ac_status=$?
6594
 
  grep -v '^ *+' conftest.er1 >conftest.err
6595
 
  rm -f conftest.er1
6596
 
  cat conftest.err >&5
6597
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598
 
  (exit $ac_status); } && {
6599
 
         test -z "$ac_c_werror_flag" ||
6600
 
         test ! -s conftest.err
6601
 
       } && test -s conftest.$ac_objext; then
6602
 
  ac_hi=$ac_mid; break
6603
 
else
6604
 
  $as_echo "$as_me: failed program was:" >&5
6605
 
sed 's/^/| /' conftest.$ac_ext >&5
6606
 
 
6607
 
        ac_lo=`expr $ac_mid + 1`
6608
 
                        if test $ac_lo -le $ac_mid; then
6609
 
                          ac_lo= ac_hi=
6610
 
                          break
6611
 
                        fi
6612
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
6613
 
fi
6614
 
 
6615
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616
 
  done
6617
 
else
6618
 
  $as_echo "$as_me: failed program was:" >&5
6619
 
sed 's/^/| /' conftest.$ac_ext >&5
6620
 
 
6621
 
        cat >conftest.$ac_ext <<_ACEOF
6622
 
/* confdefs.h.  */
6623
 
_ACEOF
6624
 
cat confdefs.h >>conftest.$ac_ext
6625
 
cat >>conftest.$ac_ext <<_ACEOF
6626
 
/* end confdefs.h.  */
6627
 
 
6628
 
#define _XOPEN_SOURCE_EXTENDED 1
6629
 
#include <errno.h>
6630
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
6631
 
#include <stdio.h>
6632
 
#include <stdlib.h>
6633
 
 
6634
 
int
6635
 
main ()
6636
 
{
6637
 
static int test_array [1 - 2 * !((EMULTIHOP) < 0)];
6638
 
test_array [0] = 0
6639
 
 
6640
 
  ;
6641
 
  return 0;
6642
 
}
6643
 
_ACEOF
6644
 
rm -f conftest.$ac_objext
6645
 
if { (ac_try="$ac_compile"
6646
 
case "(($ac_try" in
6647
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6648
 
  *) ac_try_echo=$ac_try;;
6649
 
esac
6650
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6651
 
$as_echo "$ac_try_echo") >&5
6652
 
  (eval "$ac_compile") 2>conftest.er1
6653
 
  ac_status=$?
6654
 
  grep -v '^ *+' conftest.er1 >conftest.err
6655
 
  rm -f conftest.er1
6656
 
  cat conftest.err >&5
6657
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658
 
  (exit $ac_status); } && {
6659
 
         test -z "$ac_c_werror_flag" ||
6660
 
         test ! -s conftest.err
6661
 
       } && test -s conftest.$ac_objext; then
6662
 
  ac_hi=-1 ac_mid=-1
6663
 
  while :; do
6664
 
    cat >conftest.$ac_ext <<_ACEOF
6665
 
/* confdefs.h.  */
6666
 
_ACEOF
6667
 
cat confdefs.h >>conftest.$ac_ext
6668
 
cat >>conftest.$ac_ext <<_ACEOF
6669
 
/* end confdefs.h.  */
6670
 
 
6671
 
#define _XOPEN_SOURCE_EXTENDED 1
6672
 
#include <errno.h>
6673
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
6674
 
#include <stdio.h>
6675
 
#include <stdlib.h>
6676
 
 
6677
 
int
6678
 
main ()
6679
 
{
6680
 
static int test_array [1 - 2 * !((EMULTIHOP) >= $ac_mid)];
6681
 
test_array [0] = 0
6682
 
 
6683
 
  ;
6684
 
  return 0;
6685
 
}
6686
 
_ACEOF
6687
 
rm -f conftest.$ac_objext
6688
 
if { (ac_try="$ac_compile"
6689
 
case "(($ac_try" in
6690
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6691
 
  *) ac_try_echo=$ac_try;;
6692
 
esac
6693
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6694
 
$as_echo "$ac_try_echo") >&5
6695
 
  (eval "$ac_compile") 2>conftest.er1
6696
 
  ac_status=$?
6697
 
  grep -v '^ *+' conftest.er1 >conftest.err
6698
 
  rm -f conftest.er1
6699
 
  cat conftest.err >&5
6700
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701
 
  (exit $ac_status); } && {
6702
 
         test -z "$ac_c_werror_flag" ||
6703
 
         test ! -s conftest.err
6704
 
       } && test -s conftest.$ac_objext; then
6705
 
  ac_lo=$ac_mid; break
6706
 
else
6707
 
  $as_echo "$as_me: failed program was:" >&5
6708
 
sed 's/^/| /' conftest.$ac_ext >&5
6709
 
 
6710
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
6711
 
                        if test $ac_mid -le $ac_hi; then
6712
 
                          ac_lo= ac_hi=
6713
 
                          break
6714
 
                        fi
6715
 
                        ac_mid=`expr 2 '*' $ac_mid`
6716
 
fi
6717
 
 
6718
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6719
 
  done
6720
 
else
6721
 
  $as_echo "$as_me: failed program was:" >&5
6722
 
sed 's/^/| /' conftest.$ac_ext >&5
6723
 
 
6724
 
        ac_lo= ac_hi=
6725
 
fi
6726
 
 
6727
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6728
 
fi
6729
 
 
6730
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6731
 
# Binary search between lo and hi bounds.
6732
 
while test "x$ac_lo" != "x$ac_hi"; do
6733
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6734
 
  cat >conftest.$ac_ext <<_ACEOF
6735
 
/* confdefs.h.  */
6736
 
_ACEOF
6737
 
cat confdefs.h >>conftest.$ac_ext
6738
 
cat >>conftest.$ac_ext <<_ACEOF
6739
 
/* end confdefs.h.  */
6740
 
 
6741
 
#define _XOPEN_SOURCE_EXTENDED 1
6742
 
#include <errno.h>
6743
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
6744
 
#include <stdio.h>
6745
 
#include <stdlib.h>
6746
 
 
6747
 
int
6748
 
main ()
6749
 
{
6750
 
static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
6751
 
test_array [0] = 0
6752
 
 
6753
 
  ;
6754
 
  return 0;
6755
 
}
6756
 
_ACEOF
6757
 
rm -f conftest.$ac_objext
6758
 
if { (ac_try="$ac_compile"
6759
 
case "(($ac_try" in
6760
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6761
 
  *) ac_try_echo=$ac_try;;
6762
 
esac
6763
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6764
 
$as_echo "$ac_try_echo") >&5
6765
 
  (eval "$ac_compile") 2>conftest.er1
6766
 
  ac_status=$?
6767
 
  grep -v '^ *+' conftest.er1 >conftest.err
6768
 
  rm -f conftest.er1
6769
 
  cat conftest.err >&5
6770
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771
 
  (exit $ac_status); } && {
6772
 
         test -z "$ac_c_werror_flag" ||
6773
 
         test ! -s conftest.err
6774
 
       } && test -s conftest.$ac_objext; then
6775
 
  ac_hi=$ac_mid
6776
 
else
6777
 
  $as_echo "$as_me: failed program was:" >&5
6778
 
sed 's/^/| /' conftest.$ac_ext >&5
6779
 
 
6780
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
6781
 
fi
6782
 
 
6783
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6784
 
done
6785
 
case $ac_lo in
6786
 
?*) gl_cv_header_errno_h_EMULTIHOP=$ac_lo;;
6787
 
'')  ;;
6788
 
esac
6789
 
else
6790
 
  cat >conftest.$ac_ext <<_ACEOF
6791
 
/* confdefs.h.  */
6792
 
_ACEOF
6793
 
cat confdefs.h >>conftest.$ac_ext
6794
 
cat >>conftest.$ac_ext <<_ACEOF
6795
 
/* end confdefs.h.  */
6796
 
 
6797
 
#define _XOPEN_SOURCE_EXTENDED 1
6798
 
#include <errno.h>
6799
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
6800
 
#include <stdio.h>
6801
 
#include <stdlib.h>
6802
 
 
6803
 
static long int longval () { return EMULTIHOP; }
6804
 
static unsigned long int ulongval () { return EMULTIHOP; }
6805
 
#include <stdio.h>
6806
 
#include <stdlib.h>
6807
 
int
6808
 
main ()
6809
 
{
6810
 
 
6811
 
  FILE *f = fopen ("conftest.val", "w");
6812
 
  if (! f)
6813
 
    return 1;
6814
 
  if ((EMULTIHOP) < 0)
6815
 
    {
6816
 
      long int i = longval ();
6817
 
      if (i != (EMULTIHOP))
6818
 
        return 1;
6819
 
      fprintf (f, "%ld", i);
6820
 
    }
6821
 
  else
6822
 
    {
6823
 
      unsigned long int i = ulongval ();
6824
 
      if (i != (EMULTIHOP))
6825
 
        return 1;
6826
 
      fprintf (f, "%lu", i);
6827
 
    }
6828
 
  /* Do not output a trailing newline, as this causes \r\n confusion
6829
 
     on some platforms.  */
6830
 
  return ferror (f) || fclose (f) != 0;
6831
 
 
6832
 
  ;
6833
 
  return 0;
6834
 
}
6835
 
_ACEOF
6836
 
rm -f conftest$ac_exeext
6837
 
if { (ac_try="$ac_link"
6838
 
case "(($ac_try" in
6839
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6840
 
  *) ac_try_echo=$ac_try;;
6841
 
esac
6842
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6843
 
$as_echo "$ac_try_echo") >&5
6844
 
  (eval "$ac_link") 2>&5
6845
 
  ac_status=$?
6846
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6848
 
  { (case "(($ac_try" in
6849
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6850
 
  *) ac_try_echo=$ac_try;;
6851
 
esac
6852
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6853
 
$as_echo "$ac_try_echo") >&5
6854
 
  (eval "$ac_try") 2>&5
6855
 
  ac_status=$?
6856
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857
 
  (exit $ac_status); }; }; then
6858
 
  gl_cv_header_errno_h_EMULTIHOP=`cat conftest.val`
6859
 
else
6860
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
6861
 
$as_echo "$as_me: failed program was:" >&5
6862
 
sed 's/^/| /' conftest.$ac_ext >&5
6863
 
 
6864
 
fi
6865
 
rm -rf conftest.dSYM
6866
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6867
 
fi
6868
 
rm -f conftest.val
6869
 
        fi
6870
 
      fi
6871
 
 
6872
 
fi
6873
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
6874
 
$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
6875
 
    case $gl_cv_header_errno_h_EMULTIHOP in
6876
 
      yes | no)
6877
 
        EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
6878
 
        ;;
6879
 
      *)
6880
 
        EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
6881
 
        ;;
6882
 
    esac
6883
 
 
6884
 
 
6885
 
  fi
6886
 
 
6887
 
 
6888
 
  if test -n "$ERRNO_H"; then
6889
 
    { $as_echo "$as_me:$LINENO: checking for ENOLINK value" >&5
6890
 
$as_echo_n "checking for ENOLINK value... " >&6; }
6891
 
if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then
6892
 
  $as_echo_n "(cached) " >&6
6893
 
else
6894
 
 
6895
 
      cat >conftest.$ac_ext <<_ACEOF
6896
 
/* confdefs.h.  */
6897
 
_ACEOF
6898
 
cat confdefs.h >>conftest.$ac_ext
6899
 
cat >>conftest.$ac_ext <<_ACEOF
6900
 
/* end confdefs.h.  */
6901
 
 
6902
 
#include <errno.h>
6903
 
#ifdef ENOLINK
6904
 
yes
6905
 
#endif
6906
 
 
6907
 
_ACEOF
6908
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6909
 
  $EGREP "yes" >/dev/null 2>&1; then
6910
 
  gl_cv_header_errno_h_ENOLINK=yes
6911
 
else
6912
 
  gl_cv_header_errno_h_ENOLINK=no
6913
 
fi
6914
 
rm -f conftest*
6915
 
 
6916
 
      if test $gl_cv_header_errno_h_ENOLINK = no; then
6917
 
        cat >conftest.$ac_ext <<_ACEOF
6918
 
/* confdefs.h.  */
6919
 
_ACEOF
6920
 
cat confdefs.h >>conftest.$ac_ext
6921
 
cat >>conftest.$ac_ext <<_ACEOF
6922
 
/* end confdefs.h.  */
6923
 
 
6924
 
#define _XOPEN_SOURCE_EXTENDED 1
6925
 
#include <errno.h>
6926
 
#ifdef ENOLINK
6927
 
yes
6928
 
#endif
6929
 
 
6930
 
_ACEOF
6931
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6932
 
  $EGREP "yes" >/dev/null 2>&1; then
6933
 
  gl_cv_header_errno_h_ENOLINK=hidden
6934
 
fi
6935
 
rm -f conftest*
6936
 
 
6937
 
        if test $gl_cv_header_errno_h_ENOLINK = hidden; then
6938
 
                              if test "$cross_compiling" = yes; then
6939
 
  # Depending upon the size, compute the lo and hi bounds.
6940
 
cat >conftest.$ac_ext <<_ACEOF
6941
 
/* confdefs.h.  */
6942
 
_ACEOF
6943
 
cat confdefs.h >>conftest.$ac_ext
6944
 
cat >>conftest.$ac_ext <<_ACEOF
6945
 
/* end confdefs.h.  */
6946
 
 
6947
 
#define _XOPEN_SOURCE_EXTENDED 1
6948
 
#include <errno.h>
6949
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
6950
 
#include <stdio.h>
6951
 
#include <stdlib.h>
6952
 
 
6953
 
int
6954
 
main ()
6955
 
{
6956
 
static int test_array [1 - 2 * !((ENOLINK) >= 0)];
6957
 
test_array [0] = 0
6958
 
 
6959
 
  ;
6960
 
  return 0;
6961
 
}
6962
 
_ACEOF
6963
 
rm -f conftest.$ac_objext
6964
 
if { (ac_try="$ac_compile"
6965
 
case "(($ac_try" in
6966
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6967
 
  *) ac_try_echo=$ac_try;;
6968
 
esac
6969
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6970
 
$as_echo "$ac_try_echo") >&5
6971
 
  (eval "$ac_compile") 2>conftest.er1
6972
 
  ac_status=$?
6973
 
  grep -v '^ *+' conftest.er1 >conftest.err
6974
 
  rm -f conftest.er1
6975
 
  cat conftest.err >&5
6976
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977
 
  (exit $ac_status); } && {
6978
 
         test -z "$ac_c_werror_flag" ||
6979
 
         test ! -s conftest.err
6980
 
       } && test -s conftest.$ac_objext; then
6981
 
  ac_lo=0 ac_mid=0
6982
 
  while :; do
6983
 
    cat >conftest.$ac_ext <<_ACEOF
6984
 
/* confdefs.h.  */
6985
 
_ACEOF
6986
 
cat confdefs.h >>conftest.$ac_ext
6987
 
cat >>conftest.$ac_ext <<_ACEOF
6988
 
/* end confdefs.h.  */
6989
 
 
6990
 
#define _XOPEN_SOURCE_EXTENDED 1
6991
 
#include <errno.h>
6992
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
6993
 
#include <stdio.h>
6994
 
#include <stdlib.h>
6995
 
 
6996
 
int
6997
 
main ()
6998
 
{
6999
 
static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
7000
 
test_array [0] = 0
7001
 
 
7002
 
  ;
7003
 
  return 0;
7004
 
}
7005
 
_ACEOF
7006
 
rm -f conftest.$ac_objext
7007
 
if { (ac_try="$ac_compile"
7008
 
case "(($ac_try" in
7009
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010
 
  *) ac_try_echo=$ac_try;;
7011
 
esac
7012
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7013
 
$as_echo "$ac_try_echo") >&5
7014
 
  (eval "$ac_compile") 2>conftest.er1
7015
 
  ac_status=$?
7016
 
  grep -v '^ *+' conftest.er1 >conftest.err
7017
 
  rm -f conftest.er1
7018
 
  cat conftest.err >&5
7019
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020
 
  (exit $ac_status); } && {
7021
 
         test -z "$ac_c_werror_flag" ||
7022
 
         test ! -s conftest.err
7023
 
       } && test -s conftest.$ac_objext; then
7024
 
  ac_hi=$ac_mid; break
7025
 
else
7026
 
  $as_echo "$as_me: failed program was:" >&5
7027
 
sed 's/^/| /' conftest.$ac_ext >&5
7028
 
 
7029
 
        ac_lo=`expr $ac_mid + 1`
7030
 
                        if test $ac_lo -le $ac_mid; then
7031
 
                          ac_lo= ac_hi=
7032
 
                          break
7033
 
                        fi
7034
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
7035
 
fi
7036
 
 
7037
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7038
 
  done
7039
 
else
7040
 
  $as_echo "$as_me: failed program was:" >&5
7041
 
sed 's/^/| /' conftest.$ac_ext >&5
7042
 
 
7043
 
        cat >conftest.$ac_ext <<_ACEOF
7044
 
/* confdefs.h.  */
7045
 
_ACEOF
7046
 
cat confdefs.h >>conftest.$ac_ext
7047
 
cat >>conftest.$ac_ext <<_ACEOF
7048
 
/* end confdefs.h.  */
7049
 
 
7050
 
#define _XOPEN_SOURCE_EXTENDED 1
7051
 
#include <errno.h>
7052
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
7053
 
#include <stdio.h>
7054
 
#include <stdlib.h>
7055
 
 
7056
 
int
7057
 
main ()
7058
 
{
7059
 
static int test_array [1 - 2 * !((ENOLINK) < 0)];
7060
 
test_array [0] = 0
7061
 
 
7062
 
  ;
7063
 
  return 0;
7064
 
}
7065
 
_ACEOF
7066
 
rm -f conftest.$ac_objext
7067
 
if { (ac_try="$ac_compile"
7068
 
case "(($ac_try" in
7069
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7070
 
  *) ac_try_echo=$ac_try;;
7071
 
esac
7072
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7073
 
$as_echo "$ac_try_echo") >&5
7074
 
  (eval "$ac_compile") 2>conftest.er1
7075
 
  ac_status=$?
7076
 
  grep -v '^ *+' conftest.er1 >conftest.err
7077
 
  rm -f conftest.er1
7078
 
  cat conftest.err >&5
7079
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080
 
  (exit $ac_status); } && {
7081
 
         test -z "$ac_c_werror_flag" ||
7082
 
         test ! -s conftest.err
7083
 
       } && test -s conftest.$ac_objext; then
7084
 
  ac_hi=-1 ac_mid=-1
7085
 
  while :; do
7086
 
    cat >conftest.$ac_ext <<_ACEOF
7087
 
/* confdefs.h.  */
7088
 
_ACEOF
7089
 
cat confdefs.h >>conftest.$ac_ext
7090
 
cat >>conftest.$ac_ext <<_ACEOF
7091
 
/* end confdefs.h.  */
7092
 
 
7093
 
#define _XOPEN_SOURCE_EXTENDED 1
7094
 
#include <errno.h>
7095
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
7096
 
#include <stdio.h>
7097
 
#include <stdlib.h>
7098
 
 
7099
 
int
7100
 
main ()
7101
 
{
7102
 
static int test_array [1 - 2 * !((ENOLINK) >= $ac_mid)];
7103
 
test_array [0] = 0
7104
 
 
7105
 
  ;
7106
 
  return 0;
7107
 
}
7108
 
_ACEOF
7109
 
rm -f conftest.$ac_objext
7110
 
if { (ac_try="$ac_compile"
7111
 
case "(($ac_try" in
7112
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7113
 
  *) ac_try_echo=$ac_try;;
7114
 
esac
7115
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7116
 
$as_echo "$ac_try_echo") >&5
7117
 
  (eval "$ac_compile") 2>conftest.er1
7118
 
  ac_status=$?
7119
 
  grep -v '^ *+' conftest.er1 >conftest.err
7120
 
  rm -f conftest.er1
7121
 
  cat conftest.err >&5
7122
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123
 
  (exit $ac_status); } && {
7124
 
         test -z "$ac_c_werror_flag" ||
7125
 
         test ! -s conftest.err
7126
 
       } && test -s conftest.$ac_objext; then
7127
 
  ac_lo=$ac_mid; break
7128
 
else
7129
 
  $as_echo "$as_me: failed program was:" >&5
7130
 
sed 's/^/| /' conftest.$ac_ext >&5
7131
 
 
7132
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
7133
 
                        if test $ac_mid -le $ac_hi; then
7134
 
                          ac_lo= ac_hi=
7135
 
                          break
7136
 
                        fi
7137
 
                        ac_mid=`expr 2 '*' $ac_mid`
7138
 
fi
7139
 
 
7140
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7141
 
  done
7142
 
else
7143
 
  $as_echo "$as_me: failed program was:" >&5
7144
 
sed 's/^/| /' conftest.$ac_ext >&5
7145
 
 
7146
 
        ac_lo= ac_hi=
7147
 
fi
7148
 
 
7149
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7150
 
fi
7151
 
 
7152
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7153
 
# Binary search between lo and hi bounds.
7154
 
while test "x$ac_lo" != "x$ac_hi"; do
7155
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7156
 
  cat >conftest.$ac_ext <<_ACEOF
7157
 
/* confdefs.h.  */
7158
 
_ACEOF
7159
 
cat confdefs.h >>conftest.$ac_ext
7160
 
cat >>conftest.$ac_ext <<_ACEOF
7161
 
/* end confdefs.h.  */
7162
 
 
7163
 
#define _XOPEN_SOURCE_EXTENDED 1
7164
 
#include <errno.h>
7165
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
7166
 
#include <stdio.h>
7167
 
#include <stdlib.h>
7168
 
 
7169
 
int
7170
 
main ()
7171
 
{
7172
 
static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
7173
 
test_array [0] = 0
7174
 
 
7175
 
  ;
7176
 
  return 0;
7177
 
}
7178
 
_ACEOF
7179
 
rm -f conftest.$ac_objext
7180
 
if { (ac_try="$ac_compile"
7181
 
case "(($ac_try" in
7182
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7183
 
  *) ac_try_echo=$ac_try;;
7184
 
esac
7185
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7186
 
$as_echo "$ac_try_echo") >&5
7187
 
  (eval "$ac_compile") 2>conftest.er1
7188
 
  ac_status=$?
7189
 
  grep -v '^ *+' conftest.er1 >conftest.err
7190
 
  rm -f conftest.er1
7191
 
  cat conftest.err >&5
7192
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193
 
  (exit $ac_status); } && {
7194
 
         test -z "$ac_c_werror_flag" ||
7195
 
         test ! -s conftest.err
7196
 
       } && test -s conftest.$ac_objext; then
7197
 
  ac_hi=$ac_mid
7198
 
else
7199
 
  $as_echo "$as_me: failed program was:" >&5
7200
 
sed 's/^/| /' conftest.$ac_ext >&5
7201
 
 
7202
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
7203
 
fi
7204
 
 
7205
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7206
 
done
7207
 
case $ac_lo in
7208
 
?*) gl_cv_header_errno_h_ENOLINK=$ac_lo;;
7209
 
'')  ;;
7210
 
esac
7211
 
else
7212
 
  cat >conftest.$ac_ext <<_ACEOF
7213
 
/* confdefs.h.  */
7214
 
_ACEOF
7215
 
cat confdefs.h >>conftest.$ac_ext
7216
 
cat >>conftest.$ac_ext <<_ACEOF
7217
 
/* end confdefs.h.  */
7218
 
 
7219
 
#define _XOPEN_SOURCE_EXTENDED 1
7220
 
#include <errno.h>
7221
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
7222
 
#include <stdio.h>
7223
 
#include <stdlib.h>
7224
 
 
7225
 
static long int longval () { return ENOLINK; }
7226
 
static unsigned long int ulongval () { return ENOLINK; }
7227
 
#include <stdio.h>
7228
 
#include <stdlib.h>
7229
 
int
7230
 
main ()
7231
 
{
7232
 
 
7233
 
  FILE *f = fopen ("conftest.val", "w");
7234
 
  if (! f)
7235
 
    return 1;
7236
 
  if ((ENOLINK) < 0)
7237
 
    {
7238
 
      long int i = longval ();
7239
 
      if (i != (ENOLINK))
7240
 
        return 1;
7241
 
      fprintf (f, "%ld", i);
7242
 
    }
7243
 
  else
7244
 
    {
7245
 
      unsigned long int i = ulongval ();
7246
 
      if (i != (ENOLINK))
7247
 
        return 1;
7248
 
      fprintf (f, "%lu", i);
7249
 
    }
7250
 
  /* Do not output a trailing newline, as this causes \r\n confusion
7251
 
     on some platforms.  */
7252
 
  return ferror (f) || fclose (f) != 0;
7253
 
 
7254
 
  ;
7255
 
  return 0;
7256
 
}
7257
 
_ACEOF
7258
 
rm -f conftest$ac_exeext
7259
 
if { (ac_try="$ac_link"
7260
 
case "(($ac_try" in
7261
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7262
 
  *) ac_try_echo=$ac_try;;
7263
 
esac
7264
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7265
 
$as_echo "$ac_try_echo") >&5
7266
 
  (eval "$ac_link") 2>&5
7267
 
  ac_status=$?
7268
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7270
 
  { (case "(($ac_try" in
7271
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7272
 
  *) ac_try_echo=$ac_try;;
7273
 
esac
7274
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7275
 
$as_echo "$ac_try_echo") >&5
7276
 
  (eval "$ac_try") 2>&5
7277
 
  ac_status=$?
7278
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279
 
  (exit $ac_status); }; }; then
7280
 
  gl_cv_header_errno_h_ENOLINK=`cat conftest.val`
7281
 
else
7282
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
7283
 
$as_echo "$as_me: failed program was:" >&5
7284
 
sed 's/^/| /' conftest.$ac_ext >&5
7285
 
 
7286
 
fi
7287
 
rm -rf conftest.dSYM
7288
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7289
 
fi
7290
 
rm -f conftest.val
7291
 
        fi
7292
 
      fi
7293
 
 
7294
 
fi
7295
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_ENOLINK" >&5
7296
 
$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7297
 
    case $gl_cv_header_errno_h_ENOLINK in
7298
 
      yes | no)
7299
 
        ENOLINK_HIDDEN=0; ENOLINK_VALUE=
7300
 
        ;;
7301
 
      *)
7302
 
        ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
7303
 
        ;;
7304
 
    esac
7305
 
 
7306
 
 
7307
 
  fi
7308
 
 
7309
 
 
7310
 
  if test -n "$ERRNO_H"; then
7311
 
    { $as_echo "$as_me:$LINENO: checking for EOVERFLOW value" >&5
7312
 
$as_echo_n "checking for EOVERFLOW value... " >&6; }
7313
 
if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then
7314
 
  $as_echo_n "(cached) " >&6
7315
 
else
7316
 
 
7317
 
      cat >conftest.$ac_ext <<_ACEOF
7318
 
/* confdefs.h.  */
7319
 
_ACEOF
7320
 
cat confdefs.h >>conftest.$ac_ext
7321
 
cat >>conftest.$ac_ext <<_ACEOF
7322
 
/* end confdefs.h.  */
7323
 
 
7324
 
#include <errno.h>
7325
 
#ifdef EOVERFLOW
7326
 
yes
7327
 
#endif
7328
 
 
7329
 
_ACEOF
7330
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7331
 
  $EGREP "yes" >/dev/null 2>&1; then
7332
 
  gl_cv_header_errno_h_EOVERFLOW=yes
7333
 
else
7334
 
  gl_cv_header_errno_h_EOVERFLOW=no
7335
 
fi
7336
 
rm -f conftest*
7337
 
 
7338
 
      if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7339
 
        cat >conftest.$ac_ext <<_ACEOF
7340
 
/* confdefs.h.  */
7341
 
_ACEOF
7342
 
cat confdefs.h >>conftest.$ac_ext
7343
 
cat >>conftest.$ac_ext <<_ACEOF
7344
 
/* end confdefs.h.  */
7345
 
 
7346
 
#define _XOPEN_SOURCE_EXTENDED 1
7347
 
#include <errno.h>
7348
 
#ifdef EOVERFLOW
7349
 
yes
7350
 
#endif
7351
 
 
7352
 
_ACEOF
7353
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7354
 
  $EGREP "yes" >/dev/null 2>&1; then
7355
 
  gl_cv_header_errno_h_EOVERFLOW=hidden
7356
 
fi
7357
 
rm -f conftest*
7358
 
 
7359
 
        if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7360
 
                              if test "$cross_compiling" = yes; then
7361
 
  # Depending upon the size, compute the lo and hi bounds.
7362
 
cat >conftest.$ac_ext <<_ACEOF
7363
 
/* confdefs.h.  */
7364
 
_ACEOF
7365
 
cat confdefs.h >>conftest.$ac_ext
7366
 
cat >>conftest.$ac_ext <<_ACEOF
7367
 
/* end confdefs.h.  */
7368
 
 
7369
 
#define _XOPEN_SOURCE_EXTENDED 1
7370
 
#include <errno.h>
7371
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
7372
 
#include <stdio.h>
7373
 
#include <stdlib.h>
7374
 
 
7375
 
int
7376
 
main ()
7377
 
{
7378
 
static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
7379
 
test_array [0] = 0
7380
 
 
7381
 
  ;
7382
 
  return 0;
7383
 
}
7384
 
_ACEOF
7385
 
rm -f conftest.$ac_objext
7386
 
if { (ac_try="$ac_compile"
7387
 
case "(($ac_try" in
7388
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7389
 
  *) ac_try_echo=$ac_try;;
7390
 
esac
7391
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7392
 
$as_echo "$ac_try_echo") >&5
7393
 
  (eval "$ac_compile") 2>conftest.er1
7394
 
  ac_status=$?
7395
 
  grep -v '^ *+' conftest.er1 >conftest.err
7396
 
  rm -f conftest.er1
7397
 
  cat conftest.err >&5
7398
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399
 
  (exit $ac_status); } && {
7400
 
         test -z "$ac_c_werror_flag" ||
7401
 
         test ! -s conftest.err
7402
 
       } && test -s conftest.$ac_objext; then
7403
 
  ac_lo=0 ac_mid=0
7404
 
  while :; do
7405
 
    cat >conftest.$ac_ext <<_ACEOF
7406
 
/* confdefs.h.  */
7407
 
_ACEOF
7408
 
cat confdefs.h >>conftest.$ac_ext
7409
 
cat >>conftest.$ac_ext <<_ACEOF
7410
 
/* end confdefs.h.  */
7411
 
 
7412
 
#define _XOPEN_SOURCE_EXTENDED 1
7413
 
#include <errno.h>
7414
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
7415
 
#include <stdio.h>
7416
 
#include <stdlib.h>
7417
 
 
7418
 
int
7419
 
main ()
7420
 
{
7421
 
static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
7422
 
test_array [0] = 0
7423
 
 
7424
 
  ;
7425
 
  return 0;
7426
 
}
7427
 
_ACEOF
7428
 
rm -f conftest.$ac_objext
7429
 
if { (ac_try="$ac_compile"
7430
 
case "(($ac_try" in
7431
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7432
 
  *) ac_try_echo=$ac_try;;
7433
 
esac
7434
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7435
 
$as_echo "$ac_try_echo") >&5
7436
 
  (eval "$ac_compile") 2>conftest.er1
7437
 
  ac_status=$?
7438
 
  grep -v '^ *+' conftest.er1 >conftest.err
7439
 
  rm -f conftest.er1
7440
 
  cat conftest.err >&5
7441
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442
 
  (exit $ac_status); } && {
7443
 
         test -z "$ac_c_werror_flag" ||
7444
 
         test ! -s conftest.err
7445
 
       } && test -s conftest.$ac_objext; then
7446
 
  ac_hi=$ac_mid; break
7447
 
else
7448
 
  $as_echo "$as_me: failed program was:" >&5
7449
 
sed 's/^/| /' conftest.$ac_ext >&5
7450
 
 
7451
 
        ac_lo=`expr $ac_mid + 1`
7452
 
                        if test $ac_lo -le $ac_mid; then
7453
 
                          ac_lo= ac_hi=
7454
 
                          break
7455
 
                        fi
7456
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
7457
 
fi
7458
 
 
7459
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7460
 
  done
7461
 
else
7462
 
  $as_echo "$as_me: failed program was:" >&5
7463
 
sed 's/^/| /' conftest.$ac_ext >&5
7464
 
 
7465
 
        cat >conftest.$ac_ext <<_ACEOF
7466
 
/* confdefs.h.  */
7467
 
_ACEOF
7468
 
cat confdefs.h >>conftest.$ac_ext
7469
 
cat >>conftest.$ac_ext <<_ACEOF
7470
 
/* end confdefs.h.  */
7471
 
 
7472
 
#define _XOPEN_SOURCE_EXTENDED 1
7473
 
#include <errno.h>
7474
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
7475
 
#include <stdio.h>
7476
 
#include <stdlib.h>
7477
 
 
7478
 
int
7479
 
main ()
7480
 
{
7481
 
static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
7482
 
test_array [0] = 0
7483
 
 
7484
 
  ;
7485
 
  return 0;
7486
 
}
7487
 
_ACEOF
7488
 
rm -f conftest.$ac_objext
7489
 
if { (ac_try="$ac_compile"
7490
 
case "(($ac_try" in
7491
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7492
 
  *) ac_try_echo=$ac_try;;
7493
 
esac
7494
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7495
 
$as_echo "$ac_try_echo") >&5
7496
 
  (eval "$ac_compile") 2>conftest.er1
7497
 
  ac_status=$?
7498
 
  grep -v '^ *+' conftest.er1 >conftest.err
7499
 
  rm -f conftest.er1
7500
 
  cat conftest.err >&5
7501
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502
 
  (exit $ac_status); } && {
7503
 
         test -z "$ac_c_werror_flag" ||
7504
 
         test ! -s conftest.err
7505
 
       } && test -s conftest.$ac_objext; then
7506
 
  ac_hi=-1 ac_mid=-1
7507
 
  while :; do
7508
 
    cat >conftest.$ac_ext <<_ACEOF
7509
 
/* confdefs.h.  */
7510
 
_ACEOF
7511
 
cat confdefs.h >>conftest.$ac_ext
7512
 
cat >>conftest.$ac_ext <<_ACEOF
7513
 
/* end confdefs.h.  */
7514
 
 
7515
 
#define _XOPEN_SOURCE_EXTENDED 1
7516
 
#include <errno.h>
7517
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
7518
 
#include <stdio.h>
7519
 
#include <stdlib.h>
7520
 
 
7521
 
int
7522
 
main ()
7523
 
{
7524
 
static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
7525
 
test_array [0] = 0
7526
 
 
7527
 
  ;
7528
 
  return 0;
7529
 
}
7530
 
_ACEOF
7531
 
rm -f conftest.$ac_objext
7532
 
if { (ac_try="$ac_compile"
7533
 
case "(($ac_try" in
7534
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7535
 
  *) ac_try_echo=$ac_try;;
7536
 
esac
7537
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7538
 
$as_echo "$ac_try_echo") >&5
7539
 
  (eval "$ac_compile") 2>conftest.er1
7540
 
  ac_status=$?
7541
 
  grep -v '^ *+' conftest.er1 >conftest.err
7542
 
  rm -f conftest.er1
7543
 
  cat conftest.err >&5
7544
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545
 
  (exit $ac_status); } && {
7546
 
         test -z "$ac_c_werror_flag" ||
7547
 
         test ! -s conftest.err
7548
 
       } && test -s conftest.$ac_objext; then
7549
 
  ac_lo=$ac_mid; break
7550
 
else
7551
 
  $as_echo "$as_me: failed program was:" >&5
7552
 
sed 's/^/| /' conftest.$ac_ext >&5
7553
 
 
7554
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
7555
 
                        if test $ac_mid -le $ac_hi; then
7556
 
                          ac_lo= ac_hi=
7557
 
                          break
7558
 
                        fi
7559
 
                        ac_mid=`expr 2 '*' $ac_mid`
7560
 
fi
7561
 
 
7562
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7563
 
  done
7564
 
else
7565
 
  $as_echo "$as_me: failed program was:" >&5
7566
 
sed 's/^/| /' conftest.$ac_ext >&5
7567
 
 
7568
 
        ac_lo= ac_hi=
7569
 
fi
7570
 
 
7571
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7572
 
fi
7573
 
 
7574
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7575
 
# Binary search between lo and hi bounds.
7576
 
while test "x$ac_lo" != "x$ac_hi"; do
7577
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7578
 
  cat >conftest.$ac_ext <<_ACEOF
7579
 
/* confdefs.h.  */
7580
 
_ACEOF
7581
 
cat confdefs.h >>conftest.$ac_ext
7582
 
cat >>conftest.$ac_ext <<_ACEOF
7583
 
/* end confdefs.h.  */
7584
 
 
7585
 
#define _XOPEN_SOURCE_EXTENDED 1
7586
 
#include <errno.h>
7587
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
7588
 
#include <stdio.h>
7589
 
#include <stdlib.h>
7590
 
 
7591
 
int
7592
 
main ()
7593
 
{
7594
 
static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
7595
 
test_array [0] = 0
7596
 
 
7597
 
  ;
7598
 
  return 0;
7599
 
}
7600
 
_ACEOF
7601
 
rm -f conftest.$ac_objext
7602
 
if { (ac_try="$ac_compile"
7603
 
case "(($ac_try" in
7604
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7605
 
  *) ac_try_echo=$ac_try;;
7606
 
esac
7607
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7608
 
$as_echo "$ac_try_echo") >&5
7609
 
  (eval "$ac_compile") 2>conftest.er1
7610
 
  ac_status=$?
7611
 
  grep -v '^ *+' conftest.er1 >conftest.err
7612
 
  rm -f conftest.er1
7613
 
  cat conftest.err >&5
7614
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615
 
  (exit $ac_status); } && {
7616
 
         test -z "$ac_c_werror_flag" ||
7617
 
         test ! -s conftest.err
7618
 
       } && test -s conftest.$ac_objext; then
7619
 
  ac_hi=$ac_mid
7620
 
else
7621
 
  $as_echo "$as_me: failed program was:" >&5
7622
 
sed 's/^/| /' conftest.$ac_ext >&5
7623
 
 
7624
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
7625
 
fi
7626
 
 
7627
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7628
 
done
7629
 
case $ac_lo in
7630
 
?*) gl_cv_header_errno_h_EOVERFLOW=$ac_lo;;
7631
 
'')  ;;
7632
 
esac
7633
 
else
7634
 
  cat >conftest.$ac_ext <<_ACEOF
7635
 
/* confdefs.h.  */
7636
 
_ACEOF
7637
 
cat confdefs.h >>conftest.$ac_ext
7638
 
cat >>conftest.$ac_ext <<_ACEOF
7639
 
/* end confdefs.h.  */
7640
 
 
7641
 
#define _XOPEN_SOURCE_EXTENDED 1
7642
 
#include <errno.h>
7643
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
7644
 
#include <stdio.h>
7645
 
#include <stdlib.h>
7646
 
 
7647
 
static long int longval () { return EOVERFLOW; }
7648
 
static unsigned long int ulongval () { return EOVERFLOW; }
7649
 
#include <stdio.h>
7650
 
#include <stdlib.h>
7651
 
int
7652
 
main ()
7653
 
{
7654
 
 
7655
 
  FILE *f = fopen ("conftest.val", "w");
7656
 
  if (! f)
7657
 
    return 1;
7658
 
  if ((EOVERFLOW) < 0)
7659
 
    {
7660
 
      long int i = longval ();
7661
 
      if (i != (EOVERFLOW))
7662
 
        return 1;
7663
 
      fprintf (f, "%ld", i);
7664
 
    }
7665
 
  else
7666
 
    {
7667
 
      unsigned long int i = ulongval ();
7668
 
      if (i != (EOVERFLOW))
7669
 
        return 1;
7670
 
      fprintf (f, "%lu", i);
7671
 
    }
7672
 
  /* Do not output a trailing newline, as this causes \r\n confusion
7673
 
     on some platforms.  */
7674
 
  return ferror (f) || fclose (f) != 0;
7675
 
 
7676
 
  ;
7677
 
  return 0;
7678
 
}
7679
 
_ACEOF
7680
 
rm -f conftest$ac_exeext
7681
 
if { (ac_try="$ac_link"
7682
 
case "(($ac_try" in
7683
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7684
 
  *) ac_try_echo=$ac_try;;
7685
 
esac
7686
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7687
 
$as_echo "$ac_try_echo") >&5
7688
 
  (eval "$ac_link") 2>&5
7689
 
  ac_status=$?
7690
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7692
 
  { (case "(($ac_try" in
7693
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7694
 
  *) ac_try_echo=$ac_try;;
7695
 
esac
7696
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7697
 
$as_echo "$ac_try_echo") >&5
7698
 
  (eval "$ac_try") 2>&5
7699
 
  ac_status=$?
7700
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701
 
  (exit $ac_status); }; }; then
7702
 
  gl_cv_header_errno_h_EOVERFLOW=`cat conftest.val`
7703
 
else
7704
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
7705
 
$as_echo "$as_me: failed program was:" >&5
7706
 
sed 's/^/| /' conftest.$ac_ext >&5
7707
 
 
7708
 
fi
7709
 
rm -rf conftest.dSYM
7710
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7711
 
fi
7712
 
rm -f conftest.val
7713
 
        fi
7714
 
      fi
7715
 
 
7716
 
fi
7717
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7718
 
$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7719
 
    case $gl_cv_header_errno_h_EOVERFLOW in
7720
 
      yes | no)
7721
 
        EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
7722
 
        ;;
7723
 
      *)
7724
 
        EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
7725
 
        ;;
7726
 
    esac
7727
 
 
7728
 
 
7729
 
  fi
7730
 
 
7731
 
 
7732
 
 
7733
 
 
7734
 
 
7735
 
 
7736
 
 
7737
 
 
7738
 
 
7739
 
 
7740
 
 
7741
 
 
7742
 
 
7743
 
 
7744
 
{ $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
7745
 
$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
7746
 
if test "${ac_cv_c_restrict+set}" = set; then
7747
 
  $as_echo_n "(cached) " >&6
7748
 
else
7749
 
  ac_cv_c_restrict=no
7750
 
   # The order here caters to the fact that C++ does not require restrict.
7751
 
   for ac_kw in __restrict __restrict__ _Restrict restrict; do
7752
 
     cat >conftest.$ac_ext <<_ACEOF
7753
 
/* confdefs.h.  */
7754
 
_ACEOF
7755
 
cat confdefs.h >>conftest.$ac_ext
7756
 
cat >>conftest.$ac_ext <<_ACEOF
7757
 
/* end confdefs.h.  */
7758
 
typedef int * int_ptr;
7759
 
        int foo (int_ptr $ac_kw ip) {
7760
 
        return ip[0];
7761
 
       }
7762
 
int
7763
 
main ()
7764
 
{
7765
 
int s[1];
7766
 
        int * $ac_kw t = s;
7767
 
        t[0] = 0;
7768
 
        return foo(t)
7769
 
  ;
7770
 
  return 0;
7771
 
}
7772
 
_ACEOF
7773
 
rm -f conftest.$ac_objext
7774
 
if { (ac_try="$ac_compile"
7775
 
case "(($ac_try" in
7776
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7777
 
  *) ac_try_echo=$ac_try;;
7778
 
esac
7779
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7780
 
$as_echo "$ac_try_echo") >&5
7781
 
  (eval "$ac_compile") 2>conftest.er1
7782
 
  ac_status=$?
7783
 
  grep -v '^ *+' conftest.er1 >conftest.err
7784
 
  rm -f conftest.er1
7785
 
  cat conftest.err >&5
7786
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787
 
  (exit $ac_status); } && {
7788
 
         test -z "$ac_c_werror_flag" ||
7789
 
         test ! -s conftest.err
7790
 
       } && test -s conftest.$ac_objext; then
7791
 
  ac_cv_c_restrict=$ac_kw
7792
 
else
7793
 
  $as_echo "$as_me: failed program was:" >&5
7794
 
sed 's/^/| /' conftest.$ac_ext >&5
7795
 
 
7796
 
 
7797
 
fi
7798
 
 
7799
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7800
 
     test "$ac_cv_c_restrict" != no && break
7801
 
   done
7802
 
 
7803
 
fi
7804
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
7805
 
$as_echo "$ac_cv_c_restrict" >&6; }
7806
 
 
7807
 
 
7808
 
 case $ac_cv_c_restrict in
7809
 
   restrict) ;;
7810
 
   no) cat >>confdefs.h <<\_ACEOF
7811
 
#define restrict /**/
7812
 
_ACEOF
7813
 
 ;;
7814
 
   *)  cat >>confdefs.h <<_ACEOF
7815
 
#define restrict $ac_cv_c_restrict
7816
 
_ACEOF
7817
 
 ;;
7818
 
 esac
7819
 
 
7820
 
 
7821
 
 
7822
 
 
7823
 
 
7824
 
 
7825
 
 
7826
 
 
7827
 
 
7828
 
 
7829
 
  :
7830
 
 
7831
 
 
7832
 
 
7833
 
 
7834
 
 
7835
 
 
7836
 
  { $as_echo "$as_me:$LINENO: checking for IPv4 sockets" >&5
7837
 
$as_echo_n "checking for IPv4 sockets... " >&6; }
7838
 
  if test "${gl_cv_socket_ipv4+set}" = set; then
7839
 
  $as_echo_n "(cached) " >&6
7840
 
else
7841
 
  cat >conftest.$ac_ext <<_ACEOF
7842
 
/* confdefs.h.  */
7843
 
_ACEOF
7844
 
cat confdefs.h >>conftest.$ac_ext
7845
 
cat >>conftest.$ac_ext <<_ACEOF
7846
 
/* end confdefs.h.  */
7847
 
#include <sys/types.h>
7848
 
#ifdef HAVE_SYS_SOCKET_H
7849
 
#include <sys/socket.h>
7850
 
#endif
7851
 
#ifdef HAVE_NETINET_IN_H
7852
 
#include <netinet/in.h>
7853
 
#endif
7854
 
#ifdef HAVE_WINSOCK2_H
7855
 
#include <winsock2.h>
7856
 
#endif
7857
 
int
7858
 
main ()
7859
 
{
7860
 
int x = AF_INET; struct in_addr y; struct sockaddr_in z;
7861
 
 if (&x && &y && &z) return 0;
7862
 
  ;
7863
 
  return 0;
7864
 
}
7865
 
_ACEOF
7866
 
rm -f conftest.$ac_objext
7867
 
if { (ac_try="$ac_compile"
7868
 
case "(($ac_try" in
7869
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870
 
  *) ac_try_echo=$ac_try;;
7871
 
esac
7872
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7873
 
$as_echo "$ac_try_echo") >&5
7874
 
  (eval "$ac_compile") 2>conftest.er1
7875
 
  ac_status=$?
7876
 
  grep -v '^ *+' conftest.er1 >conftest.err
7877
 
  rm -f conftest.er1
7878
 
  cat conftest.err >&5
7879
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880
 
  (exit $ac_status); } && {
7881
 
         test -z "$ac_c_werror_flag" ||
7882
 
         test ! -s conftest.err
7883
 
       } && test -s conftest.$ac_objext; then
7884
 
  gl_cv_socket_ipv4=yes
7885
 
else
7886
 
  $as_echo "$as_me: failed program was:" >&5
7887
 
sed 's/^/| /' conftest.$ac_ext >&5
7888
 
 
7889
 
        gl_cv_socket_ipv4=no
7890
 
fi
7891
 
 
7892
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7893
 
fi
7894
 
 
7895
 
  { $as_echo "$as_me:$LINENO: result: $gl_cv_socket_ipv4" >&5
7896
 
$as_echo "$gl_cv_socket_ipv4" >&6; }
7897
 
  if test $gl_cv_socket_ipv4 = yes; then
7898
 
 
7899
 
cat >>confdefs.h <<\_ACEOF
7900
 
#define HAVE_IPV4 1
7901
 
_ACEOF
7902
 
 
7903
 
  fi
7904
 
 
7905
 
  { $as_echo "$as_me:$LINENO: checking for IPv6 sockets" >&5
7906
 
$as_echo_n "checking for IPv6 sockets... " >&6; }
7907
 
  if test "${gl_cv_socket_ipv6+set}" = set; then
7908
 
  $as_echo_n "(cached) " >&6
7909
 
else
7910
 
  cat >conftest.$ac_ext <<_ACEOF
7911
 
/* confdefs.h.  */
7912
 
_ACEOF
7913
 
cat confdefs.h >>conftest.$ac_ext
7914
 
cat >>conftest.$ac_ext <<_ACEOF
7915
 
/* end confdefs.h.  */
7916
 
#include <sys/types.h>
7917
 
#ifdef HAVE_SYS_SOCKET_H
7918
 
#include <sys/socket.h>
7919
 
#endif
7920
 
#ifdef HAVE_NETINET_IN_H
7921
 
#include <netinet/in.h>
7922
 
#endif
7923
 
#ifdef HAVE_WINSOCK2_H
7924
 
#include <winsock2.h>
7925
 
#endif
7926
 
int
7927
 
main ()
7928
 
{
7929
 
int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
7930
 
 if (&x && &y && &z) return 0;
7931
 
  ;
7932
 
  return 0;
7933
 
}
7934
 
_ACEOF
7935
 
rm -f conftest.$ac_objext
7936
 
if { (ac_try="$ac_compile"
7937
 
case "(($ac_try" in
7938
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939
 
  *) ac_try_echo=$ac_try;;
7940
 
esac
7941
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7942
 
$as_echo "$ac_try_echo") >&5
7943
 
  (eval "$ac_compile") 2>conftest.er1
7944
 
  ac_status=$?
7945
 
  grep -v '^ *+' conftest.er1 >conftest.err
7946
 
  rm -f conftest.er1
7947
 
  cat conftest.err >&5
7948
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949
 
  (exit $ac_status); } && {
7950
 
         test -z "$ac_c_werror_flag" ||
7951
 
         test ! -s conftest.err
7952
 
       } && test -s conftest.$ac_objext; then
7953
 
  gl_cv_socket_ipv6=yes
7954
 
else
7955
 
  $as_echo "$as_me: failed program was:" >&5
7956
 
sed 's/^/| /' conftest.$ac_ext >&5
7957
 
 
7958
 
        gl_cv_socket_ipv6=no
7959
 
fi
7960
 
 
7961
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7962
 
fi
7963
 
 
7964
 
  { $as_echo "$as_me:$LINENO: result: $gl_cv_socket_ipv6" >&5
7965
 
$as_echo "$gl_cv_socket_ipv6" >&6; }
7966
 
  if test $gl_cv_socket_ipv6 = yes; then
7967
 
 
7968
 
cat >>confdefs.h <<\_ACEOF
7969
 
#define HAVE_IPV6 1
7970
 
_ACEOF
7971
 
 
7972
 
  fi
7973
 
 
7974
 
 
7975
 
  { $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
7976
 
$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
7977
 
if test "${gl_cv_func_malloc_posix+set}" = set; then
7978
 
  $as_echo_n "(cached) " >&6
7979
 
else
7980
 
 
7981
 
                        cat >conftest.$ac_ext <<_ACEOF
7982
 
/* confdefs.h.  */
7983
 
_ACEOF
7984
 
cat confdefs.h >>conftest.$ac_ext
7985
 
cat >>conftest.$ac_ext <<_ACEOF
7986
 
/* end confdefs.h.  */
7987
 
 
7988
 
int
7989
 
main ()
7990
 
{
7991
 
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
7992
 
         choke me
7993
 
         #endif
7994
 
 
7995
 
  ;
7996
 
  return 0;
7997
 
}
7998
 
_ACEOF
7999
 
rm -f conftest.$ac_objext
8000
 
if { (ac_try="$ac_compile"
8001
 
case "(($ac_try" in
8002
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003
 
  *) ac_try_echo=$ac_try;;
8004
 
esac
8005
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8006
 
$as_echo "$ac_try_echo") >&5
8007
 
  (eval "$ac_compile") 2>conftest.er1
8008
 
  ac_status=$?
8009
 
  grep -v '^ *+' conftest.er1 >conftest.err
8010
 
  rm -f conftest.er1
8011
 
  cat conftest.err >&5
8012
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013
 
  (exit $ac_status); } && {
8014
 
         test -z "$ac_c_werror_flag" ||
8015
 
         test ! -s conftest.err
8016
 
       } && test -s conftest.$ac_objext; then
8017
 
  gl_cv_func_malloc_posix=yes
8018
 
else
8019
 
  $as_echo "$as_me: failed program was:" >&5
8020
 
sed 's/^/| /' conftest.$ac_ext >&5
8021
 
 
8022
 
        gl_cv_func_malloc_posix=no
8023
 
fi
8024
 
 
8025
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8026
 
 
8027
 
fi
8028
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
8029
 
$as_echo "$gl_cv_func_malloc_posix" >&6; }
8030
 
 
8031
 
 
8032
 
  GNULIB_MALLOC_POSIX=0;
8033
 
  GNULIB_REALLOC_POSIX=0;
8034
 
  GNULIB_CALLOC_POSIX=0;
8035
 
  GNULIB_GETSUBOPT=0;
8036
 
  GNULIB_MKDTEMP=0;
8037
 
  GNULIB_MKSTEMP=0;
8038
 
  GNULIB_PUTENV=0;
8039
 
  GNULIB_RPMATCH=0;
8040
 
  GNULIB_SETENV=0;
8041
 
  GNULIB_STRTOD=0;
8042
 
  GNULIB_UNSETENV=0;
8043
 
    HAVE_CALLOC_POSIX=1;
8044
 
  HAVE_GETSUBOPT=1;
8045
 
  HAVE_MALLOC_POSIX=1;
8046
 
  HAVE_MKDTEMP=1;
8047
 
  HAVE_REALLOC_POSIX=1;
8048
 
  HAVE_RPMATCH=1;
8049
 
  HAVE_SETENV=1;
8050
 
  HAVE_STRTOD=1;
8051
 
  HAVE_UNSETENV=1;
8052
 
  REPLACE_MKSTEMP=0;
8053
 
  REPLACE_PUTENV=0;
8054
 
  REPLACE_STRTOD=0;
8055
 
  VOID_UNSETENV=0;
8056
 
 
8057
 
 
8058
 
  GNULIB_FPRINTF=0;
8059
 
  GNULIB_FPRINTF_POSIX=0;
8060
 
  GNULIB_PRINTF=0;
8061
 
  GNULIB_PRINTF_POSIX=0;
8062
 
  GNULIB_SNPRINTF=0;
8063
 
  GNULIB_SPRINTF_POSIX=0;
8064
 
  GNULIB_VFPRINTF=0;
8065
 
  GNULIB_VFPRINTF_POSIX=0;
8066
 
  GNULIB_VPRINTF=0;
8067
 
  GNULIB_VPRINTF_POSIX=0;
8068
 
  GNULIB_VSNPRINTF=0;
8069
 
  GNULIB_VSPRINTF_POSIX=0;
8070
 
  GNULIB_VASPRINTF=0;
8071
 
  GNULIB_OBSTACK_PRINTF=0;
8072
 
  GNULIB_OBSTACK_PRINTF_POSIX=0;
8073
 
  GNULIB_FOPEN=0;
8074
 
  GNULIB_FREOPEN=0;
8075
 
  GNULIB_FSEEK=0;
8076
 
  GNULIB_FSEEKO=0;
8077
 
  GNULIB_FTELL=0;
8078
 
  GNULIB_FTELLO=0;
8079
 
  GNULIB_FFLUSH=0;
8080
 
  GNULIB_FPUTC=0;
8081
 
  GNULIB_PUTC=0;
8082
 
  GNULIB_PUTCHAR=0;
8083
 
  GNULIB_FPUTS=0;
8084
 
  GNULIB_PUTS=0;
8085
 
  GNULIB_FWRITE=0;
8086
 
  GNULIB_GETDELIM=0;
8087
 
  GNULIB_GETLINE=0;
8088
 
  GNULIB_PERROR=0;
8089
 
  GNULIB_STDIO_H_SIGPIPE=0;
8090
 
    REPLACE_STDIO_WRITE_FUNCS=0;
8091
 
  REPLACE_FPRINTF=0;
8092
 
  REPLACE_VFPRINTF=0;
8093
 
  REPLACE_PRINTF=0;
8094
 
  REPLACE_VPRINTF=0;
8095
 
  REPLACE_SNPRINTF=0;
8096
 
  HAVE_DECL_SNPRINTF=1;
8097
 
  REPLACE_VSNPRINTF=0;
8098
 
  HAVE_DECL_VSNPRINTF=1;
8099
 
  REPLACE_SPRINTF=0;
8100
 
  REPLACE_VSPRINTF=0;
8101
 
  HAVE_VASPRINTF=1;
8102
 
  REPLACE_VASPRINTF=0;
8103
 
  HAVE_DECL_OBSTACK_PRINTF=1;
8104
 
  REPLACE_OBSTACK_PRINTF=0;
8105
 
  REPLACE_FOPEN=0;
8106
 
  REPLACE_FREOPEN=0;
8107
 
  HAVE_FSEEKO=1;
8108
 
  REPLACE_FSEEKO=0;
8109
 
  REPLACE_FSEEK=0;
8110
 
  HAVE_FTELLO=1;
8111
 
  REPLACE_FTELLO=0;
8112
 
  REPLACE_FTELL=0;
8113
 
  REPLACE_FFLUSH=0;
8114
 
  HAVE_DECL_GETDELIM=1;
8115
 
  HAVE_DECL_GETLINE=1;
8116
 
  REPLACE_GETLINE=0;
8117
 
  REPLACE_PERROR=0;
8118
 
 
8119
 
 
8120
 
      { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
8121
 
$as_echo_n "checking whether snprintf is declared... " >&6; }
8122
 
if test "${ac_cv_have_decl_snprintf+set}" = set; then
8123
 
  $as_echo_n "(cached) " >&6
8124
 
else
8125
 
  cat >conftest.$ac_ext <<_ACEOF
8126
 
/* confdefs.h.  */
8127
 
_ACEOF
8128
 
cat confdefs.h >>conftest.$ac_ext
8129
 
cat >>conftest.$ac_ext <<_ACEOF
8130
 
/* end confdefs.h.  */
8131
 
$ac_includes_default
8132
 
int
8133
 
main ()
8134
 
{
8135
 
#ifndef snprintf
8136
 
  (void) snprintf;
8137
 
#endif
8138
 
 
8139
 
  ;
8140
 
  return 0;
8141
 
}
8142
 
_ACEOF
8143
 
rm -f conftest.$ac_objext
8144
 
if { (ac_try="$ac_compile"
8145
 
case "(($ac_try" in
8146
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147
 
  *) ac_try_echo=$ac_try;;
8148
 
esac
8149
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8150
 
$as_echo "$ac_try_echo") >&5
8151
 
  (eval "$ac_compile") 2>conftest.er1
8152
 
  ac_status=$?
8153
 
  grep -v '^ *+' conftest.er1 >conftest.err
8154
 
  rm -f conftest.er1
8155
 
  cat conftest.err >&5
8156
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157
 
  (exit $ac_status); } && {
8158
 
         test -z "$ac_c_werror_flag" ||
8159
 
         test ! -s conftest.err
8160
 
       } && test -s conftest.$ac_objext; then
8161
 
  ac_cv_have_decl_snprintf=yes
8162
 
else
8163
 
  $as_echo "$as_me: failed program was:" >&5
8164
 
sed 's/^/| /' conftest.$ac_ext >&5
8165
 
 
8166
 
        ac_cv_have_decl_snprintf=no
8167
 
fi
8168
 
 
8169
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8170
 
fi
8171
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
8172
 
$as_echo "$ac_cv_have_decl_snprintf" >&6; }
8173
 
if test "x$ac_cv_have_decl_snprintf" = x""yes; then
8174
 
 
8175
 
cat >>confdefs.h <<_ACEOF
8176
 
#define HAVE_DECL_SNPRINTF 1
8177
 
_ACEOF
8178
 
 
8179
 
 
8180
 
else
8181
 
  cat >>confdefs.h <<_ACEOF
8182
 
#define HAVE_DECL_SNPRINTF 0
8183
 
_ACEOF
8184
 
 
8185
 
 
8186
 
fi
8187
 
 
8188
 
 
8189
 
 
8190
 
{ $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
8191
 
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
8192
 
if test "${ac_cv_header_stdbool_h+set}" = set; then
8193
 
  $as_echo_n "(cached) " >&6
8194
 
else
8195
 
  cat >conftest.$ac_ext <<_ACEOF
8196
 
/* confdefs.h.  */
8197
 
_ACEOF
8198
 
cat confdefs.h >>conftest.$ac_ext
8199
 
cat >>conftest.$ac_ext <<_ACEOF
8200
 
/* end confdefs.h.  */
8201
 
 
8202
 
          #include <stdbool.h>
8203
 
          #ifndef bool
8204
 
           "error: bool is not defined"
8205
 
          #endif
8206
 
          #ifndef false
8207
 
           "error: false is not defined"
8208
 
          #endif
8209
 
          #if false
8210
 
           "error: false is not 0"
8211
 
          #endif
8212
 
          #ifndef true
8213
 
           "error: true is not defined"
8214
 
          #endif
8215
 
          #if true != 1
8216
 
           "error: true is not 1"
8217
 
          #endif
8218
 
          #ifndef __bool_true_false_are_defined
8219
 
           "error: __bool_true_false_are_defined is not defined"
8220
 
          #endif
8221
 
 
8222
 
          struct s { _Bool s: 1; _Bool t; } s;
8223
 
 
8224
 
          char a[true == 1 ? 1 : -1];
8225
 
          char b[false == 0 ? 1 : -1];
8226
 
          char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8227
 
          char d[(bool) 0.5 == true ? 1 : -1];
8228
 
          bool e = &s;
8229
 
          char f[(_Bool) 0.0 == false ? 1 : -1];
8230
 
          char g[true];
8231
 
          char h[sizeof (_Bool)];
8232
 
          char i[sizeof s.t];
8233
 
          enum { j = false, k = true, l = false * true, m = true * 256 };
8234
 
          _Bool n[m];
8235
 
          char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8236
 
          char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
8237
 
          #if defined __xlc__ || defined __GNUC__
8238
 
           /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
8239
 
              reported by James Lemley on 2005-10-05; see
8240
 
              http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
8241
 
              This test is not quite right, since xlc is allowed to
8242
 
              reject this program, as the initializer for xlcbug is
8243
 
              not one of the forms that C requires support for.
8244
 
              However, doing the test right would require a run-time
8245
 
              test, and that would make cross-compilation harder.
8246
 
              Let us hope that IBM fixes the xlc bug, and also adds
8247
 
              support for this kind of constant expression.  In the
8248
 
              meantime, this test will reject xlc, which is OK, since
8249
 
              our stdbool.h substitute should suffice.  We also test
8250
 
              this with GCC, where it should work, to detect more
8251
 
              quickly whether someone messes up the test in the
8252
 
              future.  */
8253
 
           char digs[] = "0123456789";
8254
 
           int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
8255
 
          #endif
8256
 
          /* Catch a bug in an HP-UX C compiler.  See
8257
 
             http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
8258
 
             http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
8259
 
           */
8260
 
          _Bool q = true;
8261
 
          _Bool *pq = &q;
8262
 
 
8263
 
int
8264
 
main ()
8265
 
{
8266
 
 
8267
 
          *pq |= q;
8268
 
          *pq |= ! q;
8269
 
          /* Refer to every declared value, to avoid compiler optimizations.  */
8270
 
          return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
8271
 
                  + !m + !n + !o + !p + !q + !pq);
8272
 
 
8273
 
  ;
8274
 
  return 0;
8275
 
}
8276
 
_ACEOF
8277
 
rm -f conftest.$ac_objext
8278
 
if { (ac_try="$ac_compile"
8279
 
case "(($ac_try" in
8280
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8281
 
  *) ac_try_echo=$ac_try;;
8282
 
esac
8283
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8284
 
$as_echo "$ac_try_echo") >&5
8285
 
  (eval "$ac_compile") 2>conftest.er1
8286
 
  ac_status=$?
8287
 
  grep -v '^ *+' conftest.er1 >conftest.err
8288
 
  rm -f conftest.er1
8289
 
  cat conftest.err >&5
8290
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291
 
  (exit $ac_status); } && {
8292
 
         test -z "$ac_c_werror_flag" ||
8293
 
         test ! -s conftest.err
8294
 
       } && test -s conftest.$ac_objext; then
8295
 
  ac_cv_header_stdbool_h=yes
8296
 
else
8297
 
  $as_echo "$as_me: failed program was:" >&5
8298
 
sed 's/^/| /' conftest.$ac_ext >&5
8299
 
 
8300
 
        ac_cv_header_stdbool_h=no
8301
 
fi
8302
 
 
8303
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8304
 
fi
8305
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
8306
 
$as_echo "$ac_cv_header_stdbool_h" >&6; }
8307
 
   { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
8308
 
$as_echo_n "checking for _Bool... " >&6; }
8309
 
if test "${ac_cv_type__Bool+set}" = set; then
8310
 
  $as_echo_n "(cached) " >&6
8311
 
else
8312
 
  ac_cv_type__Bool=no
8313
 
cat >conftest.$ac_ext <<_ACEOF
8314
 
/* confdefs.h.  */
8315
 
_ACEOF
8316
 
cat confdefs.h >>conftest.$ac_ext
8317
 
cat >>conftest.$ac_ext <<_ACEOF
8318
 
/* end confdefs.h.  */
8319
 
$ac_includes_default
8320
 
int
8321
 
main ()
8322
 
{
8323
 
if (sizeof (_Bool))
8324
 
       return 0;
8325
 
  ;
8326
 
  return 0;
8327
 
}
8328
 
_ACEOF
8329
 
rm -f conftest.$ac_objext
8330
 
if { (ac_try="$ac_compile"
8331
 
case "(($ac_try" in
8332
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8333
 
  *) ac_try_echo=$ac_try;;
8334
 
esac
8335
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8336
 
$as_echo "$ac_try_echo") >&5
8337
 
  (eval "$ac_compile") 2>conftest.er1
8338
 
  ac_status=$?
8339
 
  grep -v '^ *+' conftest.er1 >conftest.err
8340
 
  rm -f conftest.er1
8341
 
  cat conftest.err >&5
8342
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343
 
  (exit $ac_status); } && {
8344
 
         test -z "$ac_c_werror_flag" ||
8345
 
         test ! -s conftest.err
8346
 
       } && test -s conftest.$ac_objext; then
8347
 
  cat >conftest.$ac_ext <<_ACEOF
8348
 
/* confdefs.h.  */
8349
 
_ACEOF
8350
 
cat confdefs.h >>conftest.$ac_ext
8351
 
cat >>conftest.$ac_ext <<_ACEOF
8352
 
/* end confdefs.h.  */
8353
 
$ac_includes_default
8354
 
int
8355
 
main ()
8356
 
{
8357
 
if (sizeof ((_Bool)))
8358
 
          return 0;
8359
 
  ;
8360
 
  return 0;
8361
 
}
8362
 
_ACEOF
8363
 
rm -f conftest.$ac_objext
8364
 
if { (ac_try="$ac_compile"
8365
 
case "(($ac_try" in
8366
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8367
 
  *) ac_try_echo=$ac_try;;
8368
 
esac
8369
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8370
 
$as_echo "$ac_try_echo") >&5
8371
 
  (eval "$ac_compile") 2>conftest.er1
8372
 
  ac_status=$?
8373
 
  grep -v '^ *+' conftest.er1 >conftest.err
8374
 
  rm -f conftest.er1
8375
 
  cat conftest.err >&5
8376
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377
 
  (exit $ac_status); } && {
8378
 
         test -z "$ac_c_werror_flag" ||
8379
 
         test ! -s conftest.err
8380
 
       } && test -s conftest.$ac_objext; then
8381
 
  :
8382
 
else
8383
 
  $as_echo "$as_me: failed program was:" >&5
8384
 
sed 's/^/| /' conftest.$ac_ext >&5
8385
 
 
8386
 
        ac_cv_type__Bool=yes
8387
 
fi
8388
 
 
8389
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8390
 
else
8391
 
  $as_echo "$as_me: failed program was:" >&5
8392
 
sed 's/^/| /' conftest.$ac_ext >&5
8393
 
 
8394
 
 
8395
 
fi
8396
 
 
8397
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8398
 
fi
8399
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
8400
 
$as_echo "$ac_cv_type__Bool" >&6; }
8401
 
if test "x$ac_cv_type__Bool" = x""yes; then
8402
 
 
8403
 
cat >>confdefs.h <<_ACEOF
8404
 
#define HAVE__BOOL 1
8405
 
_ACEOF
8406
 
 
8407
 
 
8408
 
fi
8409
 
 
8410
 
   if test $ac_cv_header_stdbool_h = yes; then
8411
 
 
8412
 
cat >>confdefs.h <<\_ACEOF
8413
 
#define HAVE_STDBOOL_H 1
8414
 
_ACEOF
8415
 
 
8416
 
   fi
8417
 
 
8418
 
  { $as_echo "$as_me:$LINENO: checking for long long int" >&5
8419
 
$as_echo_n "checking for long long int... " >&6; }
8420
 
if test "${ac_cv_type_long_long_int+set}" = set; then
8421
 
  $as_echo_n "(cached) " >&6
8422
 
else
8423
 
  cat >conftest.$ac_ext <<_ACEOF
8424
 
 
8425
 
  /* confdefs.h.  */
8426
 
_ACEOF
8427
 
cat confdefs.h >>conftest.$ac_ext
8428
 
cat >>conftest.$ac_ext <<_ACEOF
8429
 
/* end confdefs.h.  */
8430
 
/* For now, do not test the preprocessor; as of 2007 there are too many
8431
 
         implementations with broken preprocessors.  Perhaps this can
8432
 
         be revisited in 2012.  In the meantime, code should not expect
8433
 
         #if to work with literals wider than 32 bits.  */
8434
 
      /* Test literals.  */
8435
 
      long long int ll = 9223372036854775807ll;
8436
 
      long long int nll = -9223372036854775807LL;
8437
 
      unsigned long long int ull = 18446744073709551615ULL;
8438
 
      /* Test constant expressions.   */
8439
 
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
8440
 
                     ? 1 : -1)];
8441
 
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
8442
 
                     ? 1 : -1)];
8443
 
      int i = 63;
8444
 
int
8445
 
main ()
8446
 
{
8447
 
/* Test availability of runtime routines for shift and division.  */
8448
 
      long long int llmax = 9223372036854775807ll;
8449
 
      unsigned long long int ullmax = 18446744073709551615ull;
8450
 
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
8451
 
              | (llmax / ll) | (llmax % ll)
8452
 
              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
8453
 
              | (ullmax / ull) | (ullmax % ull));
8454
 
  ;
8455
 
  return 0;
8456
 
}
8457
 
 
8458
 
_ACEOF
8459
 
rm -f conftest.$ac_objext conftest$ac_exeext
8460
 
if { (ac_try="$ac_link"
8461
 
case "(($ac_try" in
8462
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463
 
  *) ac_try_echo=$ac_try;;
8464
 
esac
8465
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8466
 
$as_echo "$ac_try_echo") >&5
8467
 
  (eval "$ac_link") 2>conftest.er1
8468
 
  ac_status=$?
8469
 
  grep -v '^ *+' conftest.er1 >conftest.err
8470
 
  rm -f conftest.er1
8471
 
  cat conftest.err >&5
8472
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473
 
  (exit $ac_status); } && {
8474
 
         test -z "$ac_c_werror_flag" ||
8475
 
         test ! -s conftest.err
8476
 
       } && test -s conftest$ac_exeext && {
8477
 
         test "$cross_compiling" = yes ||
8478
 
         $as_test_x conftest$ac_exeext
8479
 
       }; then
8480
 
                        if test "$cross_compiling" = yes; then
8481
 
  ac_cv_type_long_long_int=yes
8482
 
else
8483
 
  cat >conftest.$ac_ext <<_ACEOF
8484
 
/* confdefs.h.  */
8485
 
_ACEOF
8486
 
cat confdefs.h >>conftest.$ac_ext
8487
 
cat >>conftest.$ac_ext <<_ACEOF
8488
 
/* end confdefs.h.  */
8489
 
#include <limits.h>
8490
 
               #ifndef LLONG_MAX
8491
 
               # define HALF \
8492
 
                        (1LL << (sizeof (long long int) * CHAR_BIT - 2))
8493
 
               # define LLONG_MAX (HALF - 1 + HALF)
8494
 
               #endif
8495
 
int
8496
 
main ()
8497
 
{
8498
 
long long int n = 1;
8499
 
               int i;
8500
 
               for (i = 0; ; i++)
8501
 
                 {
8502
 
                   long long int m = n << i;
8503
 
                   if (m >> i != n)
8504
 
                     return 1;
8505
 
                   if (LLONG_MAX / 2 < m)
8506
 
                     break;
8507
 
                 }
8508
 
               return 0;
8509
 
  ;
8510
 
  return 0;
8511
 
}
8512
 
_ACEOF
8513
 
rm -f conftest$ac_exeext
8514
 
if { (ac_try="$ac_link"
8515
 
case "(($ac_try" in
8516
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517
 
  *) ac_try_echo=$ac_try;;
8518
 
esac
8519
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8520
 
$as_echo "$ac_try_echo") >&5
8521
 
  (eval "$ac_link") 2>&5
8522
 
  ac_status=$?
8523
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8525
 
  { (case "(($ac_try" in
8526
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8527
 
  *) ac_try_echo=$ac_try;;
8528
 
esac
8529
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8530
 
$as_echo "$ac_try_echo") >&5
8531
 
  (eval "$ac_try") 2>&5
8532
 
  ac_status=$?
8533
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534
 
  (exit $ac_status); }; }; then
8535
 
  ac_cv_type_long_long_int=yes
8536
 
else
8537
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
8538
 
$as_echo "$as_me: failed program was:" >&5
8539
 
sed 's/^/| /' conftest.$ac_ext >&5
8540
 
 
8541
 
( exit $ac_status )
8542
 
ac_cv_type_long_long_int=no
8543
 
fi
8544
 
rm -rf conftest.dSYM
8545
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8546
 
fi
8547
 
 
8548
 
 
8549
 
else
8550
 
  $as_echo "$as_me: failed program was:" >&5
8551
 
sed 's/^/| /' conftest.$ac_ext >&5
8552
 
 
8553
 
        ac_cv_type_long_long_int=no
8554
 
fi
8555
 
 
8556
 
rm -rf conftest.dSYM
8557
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8558
 
      conftest$ac_exeext conftest.$ac_ext
8559
 
fi
8560
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
8561
 
$as_echo "$ac_cv_type_long_long_int" >&6; }
8562
 
  if test $ac_cv_type_long_long_int = yes; then
8563
 
 
8564
 
cat >>confdefs.h <<\_ACEOF
8565
 
#define HAVE_LONG_LONG_INT 1
8566
 
_ACEOF
8567
 
 
8568
 
  fi
8569
 
 
8570
 
 
8571
 
  { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
8572
 
$as_echo_n "checking for unsigned long long int... " >&6; }
8573
 
if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
8574
 
  $as_echo_n "(cached) " >&6
8575
 
else
8576
 
  cat >conftest.$ac_ext <<_ACEOF
8577
 
 
8578
 
  /* confdefs.h.  */
8579
 
_ACEOF
8580
 
cat confdefs.h >>conftest.$ac_ext
8581
 
cat >>conftest.$ac_ext <<_ACEOF
8582
 
/* end confdefs.h.  */
8583
 
/* For now, do not test the preprocessor; as of 2007 there are too many
8584
 
         implementations with broken preprocessors.  Perhaps this can
8585
 
         be revisited in 2012.  In the meantime, code should not expect
8586
 
         #if to work with literals wider than 32 bits.  */
8587
 
      /* Test literals.  */
8588
 
      long long int ll = 9223372036854775807ll;
8589
 
      long long int nll = -9223372036854775807LL;
8590
 
      unsigned long long int ull = 18446744073709551615ULL;
8591
 
      /* Test constant expressions.   */
8592
 
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
8593
 
                     ? 1 : -1)];
8594
 
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
8595
 
                     ? 1 : -1)];
8596
 
      int i = 63;
8597
 
int
8598
 
main ()
8599
 
{
8600
 
/* Test availability of runtime routines for shift and division.  */
8601
 
      long long int llmax = 9223372036854775807ll;
8602
 
      unsigned long long int ullmax = 18446744073709551615ull;
8603
 
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
8604
 
              | (llmax / ll) | (llmax % ll)
8605
 
              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
8606
 
              | (ullmax / ull) | (ullmax % ull));
8607
 
  ;
8608
 
  return 0;
8609
 
}
8610
 
 
8611
 
_ACEOF
8612
 
rm -f conftest.$ac_objext conftest$ac_exeext
8613
 
if { (ac_try="$ac_link"
8614
 
case "(($ac_try" in
8615
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8616
 
  *) ac_try_echo=$ac_try;;
8617
 
esac
8618
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8619
 
$as_echo "$ac_try_echo") >&5
8620
 
  (eval "$ac_link") 2>conftest.er1
8621
 
  ac_status=$?
8622
 
  grep -v '^ *+' conftest.er1 >conftest.err
8623
 
  rm -f conftest.er1
8624
 
  cat conftest.err >&5
8625
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626
 
  (exit $ac_status); } && {
8627
 
         test -z "$ac_c_werror_flag" ||
8628
 
         test ! -s conftest.err
8629
 
       } && test -s conftest$ac_exeext && {
8630
 
         test "$cross_compiling" = yes ||
8631
 
         $as_test_x conftest$ac_exeext
8632
 
       }; then
8633
 
  ac_cv_type_unsigned_long_long_int=yes
8634
 
else
8635
 
  $as_echo "$as_me: failed program was:" >&5
8636
 
sed 's/^/| /' conftest.$ac_ext >&5
8637
 
 
8638
 
        ac_cv_type_unsigned_long_long_int=no
8639
 
fi
8640
 
 
8641
 
rm -rf conftest.dSYM
8642
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8643
 
      conftest$ac_exeext conftest.$ac_ext
8644
 
fi
8645
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
8646
 
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
8647
 
  if test $ac_cv_type_unsigned_long_long_int = yes; then
8648
 
 
8649
 
cat >>confdefs.h <<\_ACEOF
8650
 
#define HAVE_UNSIGNED_LONG_LONG_INT 1
8651
 
_ACEOF
8652
 
 
8653
 
  fi
8654
 
 
8655
 
 
8656
 
 
8657
 
 
8658
 
 
8659
 
 
8660
 
 
8661
 
 
8662
 
 
8663
 
 
8664
 
 
8665
 
 
8666
 
 
8667
 
 
8668
 
 
8669
 
 
8670
 
 
8671
 
 
8672
 
 
8673
 
 
8674
 
 
8675
 
 
8676
 
 
8677
 
 
8678
 
 
8679
 
 
8680
 
  GNULIB_CHOWN=0;
8681
 
  GNULIB_DUP2=0;
8682
 
  GNULIB_ENVIRON=0;
8683
 
  GNULIB_FCHDIR=0;
8684
 
  GNULIB_FSYNC=0;
8685
 
  GNULIB_FTRUNCATE=0;
8686
 
  GNULIB_GETCWD=0;
8687
 
  GNULIB_GETDTABLESIZE=0;
8688
 
  GNULIB_GETLOGIN_R=0;
8689
 
  GNULIB_GETPAGESIZE=0;
8690
 
  GNULIB_LCHOWN=0;
8691
 
  GNULIB_LSEEK=0;
8692
 
  GNULIB_READLINK=0;
8693
 
  GNULIB_SLEEP=0;
8694
 
  GNULIB_UNISTD_H_SIGPIPE=0;
8695
 
  GNULIB_WRITE=0;
8696
 
    HAVE_DUP2=1;
8697
 
  HAVE_FSYNC=1;
8698
 
  HAVE_FTRUNCATE=1;
8699
 
  HAVE_GETDTABLESIZE=1;
8700
 
  HAVE_GETPAGESIZE=1;
8701
 
  HAVE_READLINK=1;
8702
 
  HAVE_SLEEP=1;
8703
 
  HAVE_DECL_ENVIRON=1;
8704
 
  HAVE_DECL_GETLOGIN_R=1;
8705
 
  HAVE_OS_H=0;
8706
 
  HAVE_SYS_PARAM_H=0;
8707
 
  REPLACE_CHOWN=0;
8708
 
  REPLACE_FCHDIR=0;
8709
 
  REPLACE_GETCWD=0;
8710
 
  REPLACE_GETPAGESIZE=0;
8711
 
  REPLACE_LCHOWN=0;
8712
 
  REPLACE_LSEEK=0;
8713
 
  REPLACE_WRITE=0;
8714
 
 
8715
 
 
8716
 
 
8717
 
 
8718
 
 
8719
 
 
8720
 
 
8721
 
 
8722
 
 
8723
 
 
8724
 
 
8725
 
 
8726
 
for ac_func in $gl_func_list
8727
 
do
8728
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8729
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8730
 
$as_echo_n "checking for $ac_func... " >&6; }
8731
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8732
 
  $as_echo_n "(cached) " >&6
8733
 
else
8734
 
  cat >conftest.$ac_ext <<_ACEOF
8735
 
/* confdefs.h.  */
8736
 
_ACEOF
8737
 
cat confdefs.h >>conftest.$ac_ext
8738
 
cat >>conftest.$ac_ext <<_ACEOF
8739
 
/* end confdefs.h.  */
8740
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8741
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8742
 
#define $ac_func innocuous_$ac_func
8743
 
 
8744
 
/* System header to define __stub macros and hopefully few prototypes,
8745
 
    which can conflict with char $ac_func (); below.
8746
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8747
 
    <limits.h> exists even on freestanding compilers.  */
8748
 
 
8749
 
#ifdef __STDC__
8750
 
# include <limits.h>
8751
 
#else
8752
 
# include <assert.h>
8753
 
#endif
8754
 
 
8755
 
#undef $ac_func
8756
 
 
8757
 
/* Override any GCC internal prototype to avoid an error.
8758
 
   Use char because int might match the return type of a GCC
8759
 
   builtin and then its argument prototype would still apply.  */
8760
 
#ifdef __cplusplus
8761
 
extern "C"
8762
 
#endif
8763
 
char $ac_func ();
8764
 
/* The GNU C library defines this for functions which it implements
8765
 
    to always fail with ENOSYS.  Some functions are actually named
8766
 
    something starting with __ and the normal name is an alias.  */
8767
 
#if defined __stub_$ac_func || defined __stub___$ac_func
8768
 
choke me
8769
 
#endif
8770
 
 
8771
 
int
8772
 
main ()
8773
 
{
8774
 
return $ac_func ();
8775
 
  ;
8776
 
  return 0;
8777
 
}
8778
 
_ACEOF
8779
 
rm -f conftest.$ac_objext conftest$ac_exeext
8780
 
if { (ac_try="$ac_link"
8781
 
case "(($ac_try" in
8782
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8783
 
  *) ac_try_echo=$ac_try;;
8784
 
esac
8785
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8786
 
$as_echo "$ac_try_echo") >&5
8787
 
  (eval "$ac_link") 2>conftest.er1
8788
 
  ac_status=$?
8789
 
  grep -v '^ *+' conftest.er1 >conftest.err
8790
 
  rm -f conftest.er1
8791
 
  cat conftest.err >&5
8792
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793
 
  (exit $ac_status); } && {
8794
 
         test -z "$ac_c_werror_flag" ||
8795
 
         test ! -s conftest.err
8796
 
       } && test -s conftest$ac_exeext && {
8797
 
         test "$cross_compiling" = yes ||
8798
 
         $as_test_x conftest$ac_exeext
8799
 
       }; then
8800
 
  eval "$as_ac_var=yes"
8801
 
else
8802
 
  $as_echo "$as_me: failed program was:" >&5
8803
 
sed 's/^/| /' conftest.$ac_ext >&5
8804
 
 
8805
 
        eval "$as_ac_var=no"
8806
 
fi
8807
 
 
8808
 
rm -rf conftest.dSYM
8809
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8810
 
      conftest$ac_exeext conftest.$ac_ext
8811
 
fi
8812
 
ac_res=`eval 'as_val=${'$as_ac_var'}
8813
 
                 $as_echo "$as_val"'`
8814
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8815
 
$as_echo "$ac_res" >&6; }
8816
 
as_val=`eval 'as_val=${'$as_ac_var'}
8817
 
                 $as_echo "$as_val"'`
8818
 
   if test "x$as_val" = x""yes; then
8819
 
  cat >>confdefs.h <<_ACEOF
8820
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8821
 
_ACEOF
8822
 
 
8823
 
fi
8824
 
done
8825
 
 
8826
 
 
8827
 
 
8828
 
 
8829
 
 
8830
 
 
8831
 
 
8832
 
  { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
8833
 
$as_echo_n "checking for wchar_t... " >&6; }
8834
 
if test "${gt_cv_c_wchar_t+set}" = set; then
8835
 
  $as_echo_n "(cached) " >&6
8836
 
else
8837
 
  cat >conftest.$ac_ext <<_ACEOF
8838
 
/* confdefs.h.  */
8839
 
_ACEOF
8840
 
cat confdefs.h >>conftest.$ac_ext
8841
 
cat >>conftest.$ac_ext <<_ACEOF
8842
 
/* end confdefs.h.  */
8843
 
#include <stddef.h>
8844
 
       wchar_t foo = (wchar_t)'\0';
8845
 
int
8846
 
main ()
8847
 
{
8848
 
 
8849
 
  ;
8850
 
  return 0;
8851
 
}
8852
 
_ACEOF
8853
 
rm -f conftest.$ac_objext
8854
 
if { (ac_try="$ac_compile"
8855
 
case "(($ac_try" in
8856
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8857
 
  *) ac_try_echo=$ac_try;;
8858
 
esac
8859
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8860
 
$as_echo "$ac_try_echo") >&5
8861
 
  (eval "$ac_compile") 2>conftest.er1
8862
 
  ac_status=$?
8863
 
  grep -v '^ *+' conftest.er1 >conftest.err
8864
 
  rm -f conftest.er1
8865
 
  cat conftest.err >&5
8866
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867
 
  (exit $ac_status); } && {
8868
 
         test -z "$ac_c_werror_flag" ||
8869
 
         test ! -s conftest.err
8870
 
       } && test -s conftest.$ac_objext; then
8871
 
  gt_cv_c_wchar_t=yes
8872
 
else
8873
 
  $as_echo "$as_me: failed program was:" >&5
8874
 
sed 's/^/| /' conftest.$ac_ext >&5
8875
 
 
8876
 
        gt_cv_c_wchar_t=no
8877
 
fi
8878
 
 
8879
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8880
 
fi
8881
 
{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8882
 
$as_echo "$gt_cv_c_wchar_t" >&6; }
8883
 
  if test $gt_cv_c_wchar_t = yes; then
8884
 
 
8885
 
cat >>confdefs.h <<\_ACEOF
8886
 
#define HAVE_WCHAR_T 1
8887
 
_ACEOF
8888
 
 
8889
 
  fi
8890
 
 
8891
 
 
8892
 
  { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
8893
 
$as_echo_n "checking for wint_t... " >&6; }
8894
 
if test "${gt_cv_c_wint_t+set}" = set; then
8895
 
  $as_echo_n "(cached) " >&6
8896
 
else
8897
 
  cat >conftest.$ac_ext <<_ACEOF
8898
 
/* confdefs.h.  */
8899
 
_ACEOF
8900
 
cat confdefs.h >>conftest.$ac_ext
8901
 
cat >>conftest.$ac_ext <<_ACEOF
8902
 
/* end confdefs.h.  */
8903
 
 
8904
 
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8905
 
   <wchar.h>.
8906
 
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
8907
 
   before <wchar.h>.  */
8908
 
#include <stddef.h>
8909
 
#include <stdio.h>
8910
 
#include <time.h>
8911
 
#include <wchar.h>
8912
 
       wint_t foo = (wchar_t)'\0';
8913
 
int
8914
 
main ()
8915
 
{
8916
 
 
8917
 
  ;
8918
 
  return 0;
8919
 
}
8920
 
_ACEOF
8921
 
rm -f conftest.$ac_objext
8922
 
if { (ac_try="$ac_compile"
8923
 
case "(($ac_try" in
8924
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8925
 
  *) ac_try_echo=$ac_try;;
8926
 
esac
8927
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8928
 
$as_echo "$ac_try_echo") >&5
8929
 
  (eval "$ac_compile") 2>conftest.er1
8930
 
  ac_status=$?
8931
 
  grep -v '^ *+' conftest.er1 >conftest.err
8932
 
  rm -f conftest.er1
8933
 
  cat conftest.err >&5
8934
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935
 
  (exit $ac_status); } && {
8936
 
         test -z "$ac_c_werror_flag" ||
8937
 
         test ! -s conftest.err
8938
 
       } && test -s conftest.$ac_objext; then
8939
 
  gt_cv_c_wint_t=yes
8940
 
else
8941
 
  $as_echo "$as_me: failed program was:" >&5
8942
 
sed 's/^/| /' conftest.$ac_ext >&5
8943
 
 
8944
 
        gt_cv_c_wint_t=no
8945
 
fi
8946
 
 
8947
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8948
 
fi
8949
 
{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8950
 
$as_echo "$gt_cv_c_wint_t" >&6; }
8951
 
  if test $gt_cv_c_wint_t = yes; then
8952
 
 
8953
 
cat >>confdefs.h <<\_ACEOF
8954
 
#define HAVE_WINT_T 1
8955
 
_ACEOF
8956
 
 
8957
 
  fi
8958
 
 
8959
 
{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
8960
 
$as_echo_n "checking for size_t... " >&6; }
8961
 
if test "${ac_cv_type_size_t+set}" = set; then
8962
 
  $as_echo_n "(cached) " >&6
8963
 
else
8964
 
  ac_cv_type_size_t=no
8965
 
cat >conftest.$ac_ext <<_ACEOF
8966
 
/* confdefs.h.  */
8967
 
_ACEOF
8968
 
cat confdefs.h >>conftest.$ac_ext
8969
 
cat >>conftest.$ac_ext <<_ACEOF
8970
 
/* end confdefs.h.  */
8971
 
$ac_includes_default
8972
 
int
8973
 
main ()
8974
 
{
8975
 
if (sizeof (size_t))
8976
 
       return 0;
8977
 
  ;
8978
 
  return 0;
8979
 
}
8980
 
_ACEOF
8981
 
rm -f conftest.$ac_objext
8982
 
if { (ac_try="$ac_compile"
8983
 
case "(($ac_try" in
8984
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8985
 
  *) ac_try_echo=$ac_try;;
8986
 
esac
8987
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8988
 
$as_echo "$ac_try_echo") >&5
8989
 
  (eval "$ac_compile") 2>conftest.er1
8990
 
  ac_status=$?
8991
 
  grep -v '^ *+' conftest.er1 >conftest.err
8992
 
  rm -f conftest.er1
8993
 
  cat conftest.err >&5
8994
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995
 
  (exit $ac_status); } && {
8996
 
         test -z "$ac_c_werror_flag" ||
8997
 
         test ! -s conftest.err
8998
 
       } && test -s conftest.$ac_objext; then
8999
 
  cat >conftest.$ac_ext <<_ACEOF
9000
 
/* confdefs.h.  */
9001
 
_ACEOF
9002
 
cat confdefs.h >>conftest.$ac_ext
9003
 
cat >>conftest.$ac_ext <<_ACEOF
9004
 
/* end confdefs.h.  */
9005
 
$ac_includes_default
9006
 
int
9007
 
main ()
9008
 
{
9009
 
if (sizeof ((size_t)))
9010
 
          return 0;
9011
 
  ;
9012
 
  return 0;
9013
 
}
9014
 
_ACEOF
9015
 
rm -f conftest.$ac_objext
9016
 
if { (ac_try="$ac_compile"
9017
 
case "(($ac_try" in
9018
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9019
 
  *) ac_try_echo=$ac_try;;
9020
 
esac
9021
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9022
 
$as_echo "$ac_try_echo") >&5
9023
 
  (eval "$ac_compile") 2>conftest.er1
9024
 
  ac_status=$?
9025
 
  grep -v '^ *+' conftest.er1 >conftest.err
9026
 
  rm -f conftest.er1
9027
 
  cat conftest.err >&5
9028
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029
 
  (exit $ac_status); } && {
9030
 
         test -z "$ac_c_werror_flag" ||
9031
 
         test ! -s conftest.err
9032
 
       } && test -s conftest.$ac_objext; then
9033
 
  :
9034
 
else
9035
 
  $as_echo "$as_me: failed program was:" >&5
9036
 
sed 's/^/| /' conftest.$ac_ext >&5
9037
 
 
9038
 
        ac_cv_type_size_t=yes
9039
 
fi
9040
 
 
9041
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9042
 
else
9043
 
  $as_echo "$as_me: failed program was:" >&5
9044
 
sed 's/^/| /' conftest.$ac_ext >&5
9045
 
 
9046
 
 
9047
 
fi
9048
 
 
9049
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9050
 
fi
9051
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9052
 
$as_echo "$ac_cv_type_size_t" >&6; }
9053
 
if test "x$ac_cv_type_size_t" = x""yes; then
9054
 
  :
9055
 
else
9056
 
 
9057
 
cat >>confdefs.h <<_ACEOF
9058
 
#define size_t unsigned int
9059
 
_ACEOF
9060
 
 
9061
 
fi
9062
 
 
9063
 
 
9064
 
  { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
9065
 
$as_echo_n "checking for inttypes.h... " >&6; }
9066
 
if test "${gl_cv_header_inttypes_h+set}" = set; then
9067
 
  $as_echo_n "(cached) " >&6
9068
 
else
9069
 
  cat >conftest.$ac_ext <<_ACEOF
9070
 
/* confdefs.h.  */
9071
 
_ACEOF
9072
 
cat confdefs.h >>conftest.$ac_ext
9073
 
cat >>conftest.$ac_ext <<_ACEOF
9074
 
/* end confdefs.h.  */
9075
 
#include <sys/types.h>
9076
 
#include <inttypes.h>
9077
 
int
9078
 
main ()
9079
 
{
9080
 
uintmax_t i = (uintmax_t) -1; return !i;
9081
 
  ;
9082
 
  return 0;
9083
 
}
9084
 
_ACEOF
9085
 
rm -f conftest.$ac_objext
9086
 
if { (ac_try="$ac_compile"
9087
 
case "(($ac_try" in
9088
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9089
 
  *) ac_try_echo=$ac_try;;
9090
 
esac
9091
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9092
 
$as_echo "$ac_try_echo") >&5
9093
 
  (eval "$ac_compile") 2>conftest.er1
9094
 
  ac_status=$?
9095
 
  grep -v '^ *+' conftest.er1 >conftest.err
9096
 
  rm -f conftest.er1
9097
 
  cat conftest.err >&5
9098
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099
 
  (exit $ac_status); } && {
9100
 
         test -z "$ac_c_werror_flag" ||
9101
 
         test ! -s conftest.err
9102
 
       } && test -s conftest.$ac_objext; then
9103
 
  gl_cv_header_inttypes_h=yes
9104
 
else
9105
 
  $as_echo "$as_me: failed program was:" >&5
9106
 
sed 's/^/| /' conftest.$ac_ext >&5
9107
 
 
9108
 
        gl_cv_header_inttypes_h=no
9109
 
fi
9110
 
 
9111
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9112
 
fi
9113
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
9114
 
$as_echo "$gl_cv_header_inttypes_h" >&6; }
9115
 
  if test $gl_cv_header_inttypes_h = yes; then
9116
 
 
9117
 
cat >>confdefs.h <<_ACEOF
9118
 
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
9119
 
_ACEOF
9120
 
 
9121
 
  fi
9122
 
 
9123
 
 
9124
 
  { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
9125
 
$as_echo_n "checking for stdint.h... " >&6; }
9126
 
if test "${gl_cv_header_stdint_h+set}" = set; then
9127
 
  $as_echo_n "(cached) " >&6
9128
 
else
9129
 
  cat >conftest.$ac_ext <<_ACEOF
9130
 
/* confdefs.h.  */
9131
 
_ACEOF
9132
 
cat confdefs.h >>conftest.$ac_ext
9133
 
cat >>conftest.$ac_ext <<_ACEOF
9134
 
/* end confdefs.h.  */
9135
 
#include <sys/types.h>
9136
 
#include <stdint.h>
9137
 
int
9138
 
main ()
9139
 
{
9140
 
uintmax_t i = (uintmax_t) -1; return !i;
9141
 
  ;
9142
 
  return 0;
9143
 
}
9144
 
_ACEOF
9145
 
rm -f conftest.$ac_objext
9146
 
if { (ac_try="$ac_compile"
9147
 
case "(($ac_try" in
9148
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149
 
  *) ac_try_echo=$ac_try;;
9150
 
esac
9151
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9152
 
$as_echo "$ac_try_echo") >&5
9153
 
  (eval "$ac_compile") 2>conftest.er1
9154
 
  ac_status=$?
9155
 
  grep -v '^ *+' conftest.er1 >conftest.err
9156
 
  rm -f conftest.er1
9157
 
  cat conftest.err >&5
9158
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159
 
  (exit $ac_status); } && {
9160
 
         test -z "$ac_c_werror_flag" ||
9161
 
         test ! -s conftest.err
9162
 
       } && test -s conftest.$ac_objext; then
9163
 
  gl_cv_header_stdint_h=yes
9164
 
else
9165
 
  $as_echo "$as_me: failed program was:" >&5
9166
 
sed 's/^/| /' conftest.$ac_ext >&5
9167
 
 
9168
 
        gl_cv_header_stdint_h=no
9169
 
fi
9170
 
 
9171
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9172
 
fi
9173
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
9174
 
$as_echo "$gl_cv_header_stdint_h" >&6; }
9175
 
  if test $gl_cv_header_stdint_h = yes; then
9176
 
 
9177
 
cat >>confdefs.h <<_ACEOF
9178
 
#define HAVE_STDINT_H_WITH_UINTMAX 1
9179
 
_ACEOF
9180
 
 
9181
 
  fi
9182
 
 
9183
 
 
9184
 
 
9185
 
 
9186
 
  { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
9187
 
$as_echo_n "checking for intmax_t... " >&6; }
9188
 
if test "${gt_cv_c_intmax_t+set}" = set; then
9189
 
  $as_echo_n "(cached) " >&6
9190
 
else
9191
 
  cat >conftest.$ac_ext <<_ACEOF
9192
 
/* confdefs.h.  */
9193
 
_ACEOF
9194
 
cat confdefs.h >>conftest.$ac_ext
9195
 
cat >>conftest.$ac_ext <<_ACEOF
9196
 
/* end confdefs.h.  */
9197
 
 
9198
 
#include <stddef.h>
9199
 
#include <stdlib.h>
9200
 
#if HAVE_STDINT_H_WITH_UINTMAX
9201
 
#include <stdint.h>
9202
 
#endif
9203
 
#if HAVE_INTTYPES_H_WITH_UINTMAX
9204
 
#include <inttypes.h>
9205
 
#endif
9206
 
 
9207
 
int
9208
 
main ()
9209
 
{
9210
 
intmax_t x = -1; return !x;
9211
 
  ;
9212
 
  return 0;
9213
 
}
9214
 
_ACEOF
9215
 
rm -f conftest.$ac_objext
9216
 
if { (ac_try="$ac_compile"
9217
 
case "(($ac_try" in
9218
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9219
 
  *) ac_try_echo=$ac_try;;
9220
 
esac
9221
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9222
 
$as_echo "$ac_try_echo") >&5
9223
 
  (eval "$ac_compile") 2>conftest.er1
9224
 
  ac_status=$?
9225
 
  grep -v '^ *+' conftest.er1 >conftest.err
9226
 
  rm -f conftest.er1
9227
 
  cat conftest.err >&5
9228
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229
 
  (exit $ac_status); } && {
9230
 
         test -z "$ac_c_werror_flag" ||
9231
 
         test ! -s conftest.err
9232
 
       } && test -s conftest.$ac_objext; then
9233
 
  gt_cv_c_intmax_t=yes
9234
 
else
9235
 
  $as_echo "$as_me: failed program was:" >&5
9236
 
sed 's/^/| /' conftest.$ac_ext >&5
9237
 
 
9238
 
        gt_cv_c_intmax_t=no
9239
 
fi
9240
 
 
9241
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9242
 
fi
9243
 
{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
9244
 
$as_echo "$gt_cv_c_intmax_t" >&6; }
9245
 
  if test $gt_cv_c_intmax_t = yes; then
9246
 
 
9247
 
cat >>confdefs.h <<\_ACEOF
9248
 
#define HAVE_INTMAX_T 1
9249
 
_ACEOF
9250
 
 
9251
 
  else
9252
 
 
9253
 
    test $ac_cv_type_long_long_int = yes \
9254
 
      && ac_type='long long' \
9255
 
      || ac_type='long'
9256
 
 
9257
 
cat >>confdefs.h <<_ACEOF
9258
 
#define intmax_t $ac_type
9259
 
_ACEOF
9260
 
 
9261
 
  fi
9262
 
 
9263
 
 
9264
 
  GNULIB_WCWIDTH=0;
9265
 
    HAVE_DECL_WCWIDTH=1;
9266
 
  REPLACE_WCWIDTH=0;
9267
 
  WCHAR_H='';
9268
 
 
9269
 
 
9270
 
   if true; then
9271
 
  GL_COND_LIBTOOL_TRUE=
9272
 
  GL_COND_LIBTOOL_FALSE='#'
9273
 
else
9274
 
  GL_COND_LIBTOOL_TRUE='#'
9275
 
  GL_COND_LIBTOOL_FALSE=
9276
 
fi
9277
 
 
9278
 
  gl_cond_libtool=true
9279
 
 
9280
 
 
9281
 
 
9282
 
 
9283
 
 
9284
 
 
9285
 
 
9286
 
 
9287
 
  gl_source_base='gnulib/lib'
9288
 
 
9289
 
 
9290
 
 
9291
 
 
9292
 
 
9293
 
  if test $ac_cv_func_alloca_works = no; then
9294
 
    :
9295
 
  fi
9296
 
 
9297
 
  # Define an additional variable used in the Makefile substitution.
9298
 
  if test $ac_cv_working_alloca_h = yes; then
9299
 
    { $as_echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
9300
 
$as_echo_n "checking for alloca as a compiler built-in... " >&6; }
9301
 
if test "${gl_cv_rpl_alloca+set}" = set; then
9302
 
  $as_echo_n "(cached) " >&6
9303
 
else
9304
 
 
9305
 
      cat >conftest.$ac_ext <<_ACEOF
9306
 
/* confdefs.h.  */
9307
 
_ACEOF
9308
 
cat confdefs.h >>conftest.$ac_ext
9309
 
cat >>conftest.$ac_ext <<_ACEOF
9310
 
/* end confdefs.h.  */
9311
 
 
9312
 
#if defined __GNUC__ || defined _AIX || defined _MSC_VER
9313
 
        Need own alloca
9314
 
#endif
9315
 
 
9316
 
_ACEOF
9317
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9318
 
  $EGREP "Need own alloca" >/dev/null 2>&1; then
9319
 
  gl_cv_rpl_alloca=yes
9320
 
else
9321
 
  gl_cv_rpl_alloca=no
9322
 
fi
9323
 
rm -f conftest*
9324
 
 
9325
 
 
9326
 
fi
9327
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
9328
 
$as_echo "$gl_cv_rpl_alloca" >&6; }
9329
 
    if test $gl_cv_rpl_alloca = yes; then
9330
 
 
9331
 
cat >>confdefs.h <<\_ACEOF
9332
 
#define HAVE_ALLOCA 1
9333
 
_ACEOF
9334
 
 
9335
 
      ALLOCA_H=alloca.h
9336
 
    else
9337
 
                  ALLOCA_H=
9338
 
    fi
9339
 
  else
9340
 
    ALLOCA_H=alloca.h
9341
 
  fi
9342
 
 
9343
 
 
9344
 
 
9345
 
 
9346
 
 
9347
 
 
9348
 
  :
9349
 
 
9350
 
 
9351
 
 
9352
 
 
9353
 
 
9354
 
  if test $ac_cv_header_arpa_inet_h = yes; then
9355
 
    HAVE_ARPA_INET_H=1
9356
 
  else
9357
 
    ARPA_INET_H='arpa/inet.h'
9358
 
    HAVE_ARPA_INET_H=0
9359
 
  fi
9360
 
 
9361
 
 
9362
 
 
9363
 
 
9364
 
  :
9365
 
 
9366
 
 
9367
 
 
9368
 
 
9369
 
 
9370
 
 
9371
 
 
9372
 
     if test $gl_cv_have_include_next = yes; then
9373
 
       gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
9374
 
     else
9375
 
       { $as_echo "$as_me:$LINENO: checking absolute name of <arpa/inet.h>" >&5
9376
 
$as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
9377
 
if test "${gl_cv_next_arpa_inet_h+set}" = set; then
9378
 
  $as_echo_n "(cached) " >&6
9379
 
else
9380
 
 
9381
 
          if test $ac_cv_header_arpa_inet_h = yes; then
9382
 
            cat >conftest.$ac_ext <<_ACEOF
9383
 
/* confdefs.h.  */
9384
 
_ACEOF
9385
 
cat confdefs.h >>conftest.$ac_ext
9386
 
cat >>conftest.$ac_ext <<_ACEOF
9387
 
/* end confdefs.h.  */
9388
 
#include <arpa/inet.h>
9389
 
 
9390
 
_ACEOF
9391
 
                                    gl_cv_next_arpa_inet_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9392
 
               sed -n '\#/arpa/inet.h#{
9393
 
                 s#.*"\(.*/arpa/inet.h\)".*#\1#
9394
 
                 s#^/[^/]#//&#
9395
 
                 p
9396
 
                 q
9397
 
               }'`'"'
9398
 
          else
9399
 
            gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
9400
 
          fi
9401
 
 
9402
 
fi
9403
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_arpa_inet_h" >&5
9404
 
$as_echo "$gl_cv_next_arpa_inet_h" >&6; }
9405
 
     fi
9406
 
     NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h
9407
 
 
9408
 
 
9409
 
 
9410
 
 
9411
 
  { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
9412
 
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
9413
 
if test -z "$MKDIR_P"; then
9414
 
  if test "${ac_cv_path_mkdir+set}" = set; then
9415
 
  $as_echo_n "(cached) " >&6
9416
 
else
9417
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9418
 
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
9419
 
do
9420
 
  IFS=$as_save_IFS
9421
 
  test -z "$as_dir" && as_dir=.
9422
 
  for ac_prog in mkdir gmkdir; do
9423
 
         for ac_exec_ext in '' $ac_executable_extensions; do
9424
 
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
9425
 
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
9426
 
             'mkdir (GNU coreutils) '* | \
9427
 
             'mkdir (coreutils) '* | \
9428
 
             'mkdir (fileutils) '4.1*)
9429
 
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
9430
 
               break 3;;
9431
 
           esac
9432
 
         done
9433
 
       done
9434
 
done
9435
 
IFS=$as_save_IFS
9436
 
 
9437
 
fi
9438
 
 
9439
 
  if test "${ac_cv_path_mkdir+set}" = set; then
9440
 
    MKDIR_P="$ac_cv_path_mkdir -p"
9441
 
  else
9442
 
    # As a last resort, use the slow shell script.  Don't cache a
9443
 
    # value for MKDIR_P within a source directory, because that will
9444
 
    # break other packages using the cache if that directory is
9445
 
    # removed, or if the value is a relative name.
9446
 
    test -d ./--version && rmdir ./--version
9447
 
    MKDIR_P="$ac_install_sh -d"
9448
 
  fi
9449
 
fi
9450
 
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
9451
 
$as_echo "$MKDIR_P" >&6; }
9452
 
 
9453
 
 
9454
 
  if test "$ac_cv_header_winsock2_h" = yes; then
9455
 
 
9456
 
 
9457
 
 
9458
 
 
9459
 
 
9460
 
 
9461
 
 
9462
 
 
9463
 
  gl_LIBOBJS="$gl_LIBOBJS winsock.$ac_objext"
9464
 
 
9465
 
  fi
9466
 
 
9467
 
 
9468
 
  GNULIB_CONNECT=1
9469
 
 
9470
 
 
9471
 
cat >>confdefs.h <<\_ACEOF
9472
 
#define GNULIB_CONNECT 1
9473
 
_ACEOF
9474
 
 
9475
 
 
9476
 
 
9477
 
 
9478
 
 
9479
 
 
9480
 
 
9481
 
 
9482
 
 
9483
 
  FLOAT_H=
9484
 
  case "$host_os" in
9485
 
    beos* | openbsd*)
9486
 
      FLOAT_H=float.h
9487
 
 
9488
 
 
9489
 
 
9490
 
  :
9491
 
 
9492
 
 
9493
 
 
9494
 
 
9495
 
 
9496
 
 
9497
 
 
9498
 
     if test $gl_cv_have_include_next = yes; then
9499
 
       gl_cv_next_float_h='<'float.h'>'
9500
 
     else
9501
 
       { $as_echo "$as_me:$LINENO: checking absolute name of <float.h>" >&5
9502
 
$as_echo_n "checking absolute name of <float.h>... " >&6; }
9503
 
if test "${gl_cv_next_float_h+set}" = set; then
9504
 
  $as_echo_n "(cached) " >&6
9505
 
else
9506
 
 
9507
 
          if test $ac_cv_header_float_h = yes; then
9508
 
            cat >conftest.$ac_ext <<_ACEOF
9509
 
/* confdefs.h.  */
9510
 
_ACEOF
9511
 
cat confdefs.h >>conftest.$ac_ext
9512
 
cat >>conftest.$ac_ext <<_ACEOF
9513
 
/* end confdefs.h.  */
9514
 
#include <float.h>
9515
 
 
9516
 
_ACEOF
9517
 
                                    gl_cv_next_float_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9518
 
               sed -n '\#/float.h#{
9519
 
                 s#.*"\(.*/float.h\)".*#\1#
9520
 
                 s#^/[^/]#//&#
9521
 
                 p
9522
 
                 q
9523
 
               }'`'"'
9524
 
          else
9525
 
            gl_cv_next_float_h='<'float.h'>'
9526
 
          fi
9527
 
 
9528
 
fi
9529
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_float_h" >&5
9530
 
$as_echo "$gl_cv_next_float_h" >&6; }
9531
 
     fi
9532
 
     NEXT_FLOAT_H=$gl_cv_next_float_h
9533
 
 
9534
 
 
9535
 
 
9536
 
      ;;
9537
 
  esac
9538
 
 
9539
 
 
9540
 
 
9541
 
    { $as_echo "$as_me:$LINENO: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
9542
 
$as_echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
9543
 
 
9544
 
 
9545
 
  :
9546
 
 
9547
 
 
9548
 
 
9549
 
 
9550
 
 
9551
 
 
9552
 
  { $as_echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
9553
 
$as_echo_n "checking for library containing getaddrinfo... " >&6; }
9554
 
if test "${ac_cv_search_getaddrinfo+set}" = set; then
9555
 
  $as_echo_n "(cached) " >&6
9556
 
else
9557
 
  ac_func_search_save_LIBS=$LIBS
9558
 
cat >conftest.$ac_ext <<_ACEOF
9559
 
/* confdefs.h.  */
9560
 
_ACEOF
9561
 
cat confdefs.h >>conftest.$ac_ext
9562
 
cat >>conftest.$ac_ext <<_ACEOF
9563
 
/* end confdefs.h.  */
9564
 
 
9565
 
/* Override any GCC internal prototype to avoid an error.
9566
 
   Use char because int might match the return type of a GCC
9567
 
   builtin and then its argument prototype would still apply.  */
9568
 
#ifdef __cplusplus
9569
 
extern "C"
9570
 
#endif
9571
 
char getaddrinfo ();
9572
 
int
9573
 
main ()
9574
 
{
9575
 
return getaddrinfo ();
9576
 
  ;
9577
 
  return 0;
9578
 
}
9579
 
_ACEOF
9580
 
for ac_lib in '' nsl socket; do
9581
 
  if test -z "$ac_lib"; then
9582
 
    ac_res="none required"
9583
 
  else
9584
 
    ac_res=-l$ac_lib
9585
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9586
 
  fi
9587
 
  rm -f conftest.$ac_objext conftest$ac_exeext
9588
 
if { (ac_try="$ac_link"
9589
 
case "(($ac_try" in
9590
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9591
 
  *) ac_try_echo=$ac_try;;
9592
 
esac
9593
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9594
 
$as_echo "$ac_try_echo") >&5
9595
 
  (eval "$ac_link") 2>conftest.er1
9596
 
  ac_status=$?
9597
 
  grep -v '^ *+' conftest.er1 >conftest.err
9598
 
  rm -f conftest.er1
9599
 
  cat conftest.err >&5
9600
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601
 
  (exit $ac_status); } && {
9602
 
         test -z "$ac_c_werror_flag" ||
9603
 
         test ! -s conftest.err
9604
 
       } && test -s conftest$ac_exeext && {
9605
 
         test "$cross_compiling" = yes ||
9606
 
         $as_test_x conftest$ac_exeext
9607
 
       }; then
9608
 
  ac_cv_search_getaddrinfo=$ac_res
9609
 
else
9610
 
  $as_echo "$as_me: failed program was:" >&5
9611
 
sed 's/^/| /' conftest.$ac_ext >&5
9612
 
 
9613
 
 
9614
 
fi
9615
 
 
9616
 
rm -rf conftest.dSYM
9617
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9618
 
      conftest$ac_exeext
9619
 
  if test "${ac_cv_search_getaddrinfo+set}" = set; then
9620
 
  break
9621
 
fi
9622
 
done
9623
 
if test "${ac_cv_search_getaddrinfo+set}" = set; then
9624
 
  :
9625
 
else
9626
 
  ac_cv_search_getaddrinfo=no
9627
 
fi
9628
 
rm conftest.$ac_ext
9629
 
LIBS=$ac_func_search_save_LIBS
9630
 
fi
9631
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
9632
 
$as_echo "$ac_cv_search_getaddrinfo" >&6; }
9633
 
ac_res=$ac_cv_search_getaddrinfo
9634
 
if test "$ac_res" != no; then
9635
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9636
 
 
9637
 
fi
9638
 
 
9639
 
  { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
9640
 
$as_echo_n "checking for getaddrinfo... " >&6; }
9641
 
if test "${gl_cv_func_getaddrinfo+set}" = set; then
9642
 
  $as_echo_n "(cached) " >&6
9643
 
else
9644
 
 
9645
 
    cat >conftest.$ac_ext <<_ACEOF
9646
 
/* confdefs.h.  */
9647
 
_ACEOF
9648
 
cat confdefs.h >>conftest.$ac_ext
9649
 
cat >>conftest.$ac_ext <<_ACEOF
9650
 
/* end confdefs.h.  */
9651
 
 
9652
 
#include <sys/types.h>
9653
 
#ifdef HAVE_SYS_SOCKET_H
9654
 
#include <sys/socket.h>
9655
 
#endif
9656
 
#ifdef HAVE_NETDB_H
9657
 
#include <netdb.h>
9658
 
#endif
9659
 
#include <stddef.h>
9660
 
 
9661
 
int
9662
 
main ()
9663
 
{
9664
 
getaddrinfo("", "", NULL, NULL);
9665
 
  ;
9666
 
  return 0;
9667
 
}
9668
 
_ACEOF
9669
 
rm -f conftest.$ac_objext conftest$ac_exeext
9670
 
if { (ac_try="$ac_link"
9671
 
case "(($ac_try" in
9672
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9673
 
  *) ac_try_echo=$ac_try;;
9674
 
esac
9675
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9676
 
$as_echo "$ac_try_echo") >&5
9677
 
  (eval "$ac_link") 2>conftest.er1
9678
 
  ac_status=$?
9679
 
  grep -v '^ *+' conftest.er1 >conftest.err
9680
 
  rm -f conftest.er1
9681
 
  cat conftest.err >&5
9682
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683
 
  (exit $ac_status); } && {
9684
 
         test -z "$ac_c_werror_flag" ||
9685
 
         test ! -s conftest.err
9686
 
       } && test -s conftest$ac_exeext && {
9687
 
         test "$cross_compiling" = yes ||
9688
 
         $as_test_x conftest$ac_exeext
9689
 
       }; then
9690
 
  gl_cv_func_getaddrinfo=yes
9691
 
else
9692
 
  $as_echo "$as_me: failed program was:" >&5
9693
 
sed 's/^/| /' conftest.$ac_ext >&5
9694
 
 
9695
 
        gl_cv_func_getaddrinfo=no
9696
 
fi
9697
 
 
9698
 
rm -rf conftest.dSYM
9699
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9700
 
      conftest$ac_exeext conftest.$ac_ext
9701
 
fi
9702
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_getaddrinfo" >&5
9703
 
$as_echo "$gl_cv_func_getaddrinfo" >&6; }
9704
 
  if test $gl_cv_func_getaddrinfo = no; then
9705
 
    { $as_echo "$as_me:$LINENO: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
9706
 
$as_echo_n "checking for getaddrinfo in ws2tcpip.h and -lws2_32... " >&6; }
9707
 
if test "${gl_cv_w32_getaddrinfo+set}" = set; then
9708
 
  $as_echo_n "(cached) " >&6
9709
 
else
9710
 
 
9711
 
      gl_cv_w32_getaddrinfo=no
9712
 
      am_save_LIBS="$LIBS"
9713
 
      LIBS="$LIBS -lws2_32"
9714
 
      cat >conftest.$ac_ext <<_ACEOF
9715
 
/* confdefs.h.  */
9716
 
_ACEOF
9717
 
cat confdefs.h >>conftest.$ac_ext
9718
 
cat >>conftest.$ac_ext <<_ACEOF
9719
 
/* end confdefs.h.  */
9720
 
 
9721
 
#ifdef HAVE_WS2TCPIP_H
9722
 
#include <ws2tcpip.h>
9723
 
#endif
9724
 
#include <stddef.h>
9725
 
 
9726
 
int
9727
 
main ()
9728
 
{
9729
 
getaddrinfo(NULL, NULL, NULL, NULL);
9730
 
  ;
9731
 
  return 0;
9732
 
}
9733
 
_ACEOF
9734
 
rm -f conftest.$ac_objext conftest$ac_exeext
9735
 
if { (ac_try="$ac_link"
9736
 
case "(($ac_try" in
9737
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9738
 
  *) ac_try_echo=$ac_try;;
9739
 
esac
9740
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9741
 
$as_echo "$ac_try_echo") >&5
9742
 
  (eval "$ac_link") 2>conftest.er1
9743
 
  ac_status=$?
9744
 
  grep -v '^ *+' conftest.er1 >conftest.err
9745
 
  rm -f conftest.er1
9746
 
  cat conftest.err >&5
9747
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748
 
  (exit $ac_status); } && {
9749
 
         test -z "$ac_c_werror_flag" ||
9750
 
         test ! -s conftest.err
9751
 
       } && test -s conftest$ac_exeext && {
9752
 
         test "$cross_compiling" = yes ||
9753
 
         $as_test_x conftest$ac_exeext
9754
 
       }; then
9755
 
  gl_cv_w32_getaddrinfo=yes
9756
 
else
9757
 
  $as_echo "$as_me: failed program was:" >&5
9758
 
sed 's/^/| /' conftest.$ac_ext >&5
9759
 
 
9760
 
 
9761
 
fi
9762
 
 
9763
 
rm -rf conftest.dSYM
9764
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9765
 
      conftest$ac_exeext conftest.$ac_ext
9766
 
    LIBS="$am_save_LIBS"
9767
 
fi
9768
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_w32_getaddrinfo" >&5
9769
 
$as_echo "$gl_cv_w32_getaddrinfo" >&6; }
9770
 
    if test "$gl_cv_w32_getaddrinfo" = "yes"; then
9771
 
      LIBS="$LIBS -lws2_32"
9772
 
    else
9773
 
 
9774
 
 
9775
 
 
9776
 
 
9777
 
 
9778
 
 
9779
 
 
9780
 
 
9781
 
  gl_LIBOBJS="$gl_LIBOBJS getaddrinfo.$ac_objext"
9782
 
 
9783
 
    fi
9784
 
  fi
9785
 
 
9786
 
  # We can't use AC_REPLACE_FUNCS here because gai_strerror may be an
9787
 
  # inline function declared in ws2tcpip.h, so we need to get that
9788
 
  # header included somehow.
9789
 
  { $as_echo "$as_me:$LINENO: checking for gai_strerror (possibly via ws2tcpip.h)" >&5
9790
 
$as_echo_n "checking for gai_strerror (possibly via ws2tcpip.h)... " >&6; }
9791
 
if test "${gl_cv_func_gai_strerror+set}" = set; then
9792
 
  $as_echo_n "(cached) " >&6
9793
 
else
9794
 
 
9795
 
      cat >conftest.$ac_ext <<_ACEOF
9796
 
/* confdefs.h.  */
9797
 
_ACEOF
9798
 
cat confdefs.h >>conftest.$ac_ext
9799
 
cat >>conftest.$ac_ext <<_ACEOF
9800
 
/* end confdefs.h.  */
9801
 
 
9802
 
#include <sys/types.h>
9803
 
#ifdef HAVE_SYS_SOCKET_H
9804
 
#include <sys/socket.h>
9805
 
#endif
9806
 
#ifdef HAVE_NETDB_H
9807
 
#include <netdb.h>
9808
 
#endif
9809
 
#ifdef HAVE_WS2TCPIP_H
9810
 
#include <ws2tcpip.h>
9811
 
#endif
9812
 
#include <stddef.h>
9813
 
 
9814
 
int
9815
 
main ()
9816
 
{
9817
 
gai_strerror (NULL);
9818
 
  ;
9819
 
  return 0;
9820
 
}
9821
 
_ACEOF
9822
 
rm -f conftest.$ac_objext conftest$ac_exeext
9823
 
if { (ac_try="$ac_link"
9824
 
case "(($ac_try" in
9825
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9826
 
  *) ac_try_echo=$ac_try;;
9827
 
esac
9828
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9829
 
$as_echo "$ac_try_echo") >&5
9830
 
  (eval "$ac_link") 2>conftest.er1
9831
 
  ac_status=$?
9832
 
  grep -v '^ *+' conftest.er1 >conftest.err
9833
 
  rm -f conftest.er1
9834
 
  cat conftest.err >&5
9835
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836
 
  (exit $ac_status); } && {
9837
 
         test -z "$ac_c_werror_flag" ||
9838
 
         test ! -s conftest.err
9839
 
       } && test -s conftest$ac_exeext && {
9840
 
         test "$cross_compiling" = yes ||
9841
 
         $as_test_x conftest$ac_exeext
9842
 
       }; then
9843
 
  gl_cv_func_gai_strerror=yes
9844
 
else
9845
 
  $as_echo "$as_me: failed program was:" >&5
9846
 
sed 's/^/| /' conftest.$ac_ext >&5
9847
 
 
9848
 
        gl_cv_func_gai_strerror=no
9849
 
fi
9850
 
 
9851
 
rm -rf conftest.dSYM
9852
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9853
 
      conftest$ac_exeext conftest.$ac_ext
9854
 
fi
9855
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_gai_strerror" >&5
9856
 
$as_echo "$gl_cv_func_gai_strerror" >&6; }
9857
 
  if test $gl_cv_func_gai_strerror = no; then
9858
 
 
9859
 
 
9860
 
 
9861
 
 
9862
 
 
9863
 
 
9864
 
 
9865
 
 
9866
 
  gl_LIBOBJS="$gl_LIBOBJS gai_strerror.$ac_objext"
9867
 
 
9868
 
  fi
9869
 
 
9870
 
 
9871
 
    { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9872
 
$as_echo_n "checking for library containing gethostbyname... " >&6; }
9873
 
if test "${ac_cv_search_gethostbyname+set}" = set; then
9874
 
  $as_echo_n "(cached) " >&6
9875
 
else
9876
 
  ac_func_search_save_LIBS=$LIBS
9877
 
cat >conftest.$ac_ext <<_ACEOF
9878
 
/* confdefs.h.  */
9879
 
_ACEOF
9880
 
cat confdefs.h >>conftest.$ac_ext
9881
 
cat >>conftest.$ac_ext <<_ACEOF
9882
 
/* end confdefs.h.  */
9883
 
 
9884
 
/* Override any GCC internal prototype to avoid an error.
9885
 
   Use char because int might match the return type of a GCC
9886
 
   builtin and then its argument prototype would still apply.  */
9887
 
#ifdef __cplusplus
9888
 
extern "C"
9889
 
#endif
9890
 
char gethostbyname ();
9891
 
int
9892
 
main ()
9893
 
{
9894
 
return gethostbyname ();
9895
 
  ;
9896
 
  return 0;
9897
 
}
9898
 
_ACEOF
9899
 
for ac_lib in '' inet nsl; do
9900
 
  if test -z "$ac_lib"; then
9901
 
    ac_res="none required"
9902
 
  else
9903
 
    ac_res=-l$ac_lib
9904
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9905
 
  fi
9906
 
  rm -f conftest.$ac_objext conftest$ac_exeext
9907
 
if { (ac_try="$ac_link"
9908
 
case "(($ac_try" in
9909
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910
 
  *) ac_try_echo=$ac_try;;
9911
 
esac
9912
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9913
 
$as_echo "$ac_try_echo") >&5
9914
 
  (eval "$ac_link") 2>conftest.er1
9915
 
  ac_status=$?
9916
 
  grep -v '^ *+' conftest.er1 >conftest.err
9917
 
  rm -f conftest.er1
9918
 
  cat conftest.err >&5
9919
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920
 
  (exit $ac_status); } && {
9921
 
         test -z "$ac_c_werror_flag" ||
9922
 
         test ! -s conftest.err
9923
 
       } && test -s conftest$ac_exeext && {
9924
 
         test "$cross_compiling" = yes ||
9925
 
         $as_test_x conftest$ac_exeext
9926
 
       }; then
9927
 
  ac_cv_search_gethostbyname=$ac_res
9928
 
else
9929
 
  $as_echo "$as_me: failed program was:" >&5
9930
 
sed 's/^/| /' conftest.$ac_ext >&5
9931
 
 
9932
 
 
9933
 
fi
9934
 
 
9935
 
rm -rf conftest.dSYM
9936
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9937
 
      conftest$ac_exeext
9938
 
  if test "${ac_cv_search_gethostbyname+set}" = set; then
9939
 
  break
9940
 
fi
9941
 
done
9942
 
if test "${ac_cv_search_gethostbyname+set}" = set; then
9943
 
  :
9944
 
else
9945
 
  ac_cv_search_gethostbyname=no
9946
 
fi
9947
 
rm conftest.$ac_ext
9948
 
LIBS=$ac_func_search_save_LIBS
9949
 
fi
9950
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9951
 
$as_echo "$ac_cv_search_gethostbyname" >&6; }
9952
 
ac_res=$ac_cv_search_gethostbyname
9953
 
if test "$ac_res" != no; then
9954
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9955
 
 
9956
 
fi
9957
 
 
9958
 
  { $as_echo "$as_me:$LINENO: checking for library containing getservbyname" >&5
9959
 
$as_echo_n "checking for library containing getservbyname... " >&6; }
9960
 
if test "${ac_cv_search_getservbyname+set}" = set; then
9961
 
  $as_echo_n "(cached) " >&6
9962
 
else
9963
 
  ac_func_search_save_LIBS=$LIBS
9964
 
cat >conftest.$ac_ext <<_ACEOF
9965
 
/* confdefs.h.  */
9966
 
_ACEOF
9967
 
cat confdefs.h >>conftest.$ac_ext
9968
 
cat >>conftest.$ac_ext <<_ACEOF
9969
 
/* end confdefs.h.  */
9970
 
 
9971
 
/* Override any GCC internal prototype to avoid an error.
9972
 
   Use char because int might match the return type of a GCC
9973
 
   builtin and then its argument prototype would still apply.  */
9974
 
#ifdef __cplusplus
9975
 
extern "C"
9976
 
#endif
9977
 
char getservbyname ();
9978
 
int
9979
 
main ()
9980
 
{
9981
 
return getservbyname ();
9982
 
  ;
9983
 
  return 0;
9984
 
}
9985
 
_ACEOF
9986
 
for ac_lib in '' inet nsl socket xnet; do
9987
 
  if test -z "$ac_lib"; then
9988
 
    ac_res="none required"
9989
 
  else
9990
 
    ac_res=-l$ac_lib
9991
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9992
 
  fi
9993
 
  rm -f conftest.$ac_objext conftest$ac_exeext
9994
 
if { (ac_try="$ac_link"
9995
 
case "(($ac_try" in
9996
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997
 
  *) ac_try_echo=$ac_try;;
9998
 
esac
9999
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10000
 
$as_echo "$ac_try_echo") >&5
10001
 
  (eval "$ac_link") 2>conftest.er1
10002
 
  ac_status=$?
10003
 
  grep -v '^ *+' conftest.er1 >conftest.err
10004
 
  rm -f conftest.er1
10005
 
  cat conftest.err >&5
10006
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007
 
  (exit $ac_status); } && {
10008
 
         test -z "$ac_c_werror_flag" ||
10009
 
         test ! -s conftest.err
10010
 
       } && test -s conftest$ac_exeext && {
10011
 
         test "$cross_compiling" = yes ||
10012
 
         $as_test_x conftest$ac_exeext
10013
 
       }; then
10014
 
  ac_cv_search_getservbyname=$ac_res
10015
 
else
10016
 
  $as_echo "$as_me: failed program was:" >&5
10017
 
sed 's/^/| /' conftest.$ac_ext >&5
10018
 
 
10019
 
 
10020
 
fi
10021
 
 
10022
 
rm -rf conftest.dSYM
10023
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10024
 
      conftest$ac_exeext
10025
 
  if test "${ac_cv_search_getservbyname+set}" = set; then
10026
 
  break
10027
 
fi
10028
 
done
10029
 
if test "${ac_cv_search_getservbyname+set}" = set; then
10030
 
  :
10031
 
else
10032
 
  ac_cv_search_getservbyname=no
10033
 
fi
10034
 
rm conftest.$ac_ext
10035
 
LIBS=$ac_func_search_save_LIBS
10036
 
fi
10037
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname" >&5
10038
 
$as_echo "$ac_cv_search_getservbyname" >&6; }
10039
 
ac_res=$ac_cv_search_getservbyname
10040
 
if test "$ac_res" != no; then
10041
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10042
 
 
10043
 
fi
10044
 
 
10045
 
 
10046
 
for ac_func in gethostbyname
10047
 
do
10048
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10049
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10050
 
$as_echo_n "checking for $ac_func... " >&6; }
10051
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10052
 
  $as_echo_n "(cached) " >&6
10053
 
else
10054
 
  cat >conftest.$ac_ext <<_ACEOF
10055
 
/* confdefs.h.  */
10056
 
_ACEOF
10057
 
cat confdefs.h >>conftest.$ac_ext
10058
 
cat >>conftest.$ac_ext <<_ACEOF
10059
 
/* end confdefs.h.  */
10060
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10061
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10062
 
#define $ac_func innocuous_$ac_func
10063
 
 
10064
 
/* System header to define __stub macros and hopefully few prototypes,
10065
 
    which can conflict with char $ac_func (); below.
10066
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10067
 
    <limits.h> exists even on freestanding compilers.  */
10068
 
 
10069
 
#ifdef __STDC__
10070
 
# include <limits.h>
10071
 
#else
10072
 
# include <assert.h>
10073
 
#endif
10074
 
 
10075
 
#undef $ac_func
10076
 
 
10077
 
/* Override any GCC internal prototype to avoid an error.
10078
 
   Use char because int might match the return type of a GCC
10079
 
   builtin and then its argument prototype would still apply.  */
10080
 
#ifdef __cplusplus
10081
 
extern "C"
10082
 
#endif
10083
 
char $ac_func ();
10084
 
/* The GNU C library defines this for functions which it implements
10085
 
    to always fail with ENOSYS.  Some functions are actually named
10086
 
    something starting with __ and the normal name is an alias.  */
10087
 
#if defined __stub_$ac_func || defined __stub___$ac_func
10088
 
choke me
10089
 
#endif
10090
 
 
10091
 
int
10092
 
main ()
10093
 
{
10094
 
return $ac_func ();
10095
 
  ;
10096
 
  return 0;
10097
 
}
10098
 
_ACEOF
10099
 
rm -f conftest.$ac_objext conftest$ac_exeext
10100
 
if { (ac_try="$ac_link"
10101
 
case "(($ac_try" in
10102
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10103
 
  *) ac_try_echo=$ac_try;;
10104
 
esac
10105
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10106
 
$as_echo "$ac_try_echo") >&5
10107
 
  (eval "$ac_link") 2>conftest.er1
10108
 
  ac_status=$?
10109
 
  grep -v '^ *+' conftest.er1 >conftest.err
10110
 
  rm -f conftest.er1
10111
 
  cat conftest.err >&5
10112
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113
 
  (exit $ac_status); } && {
10114
 
         test -z "$ac_c_werror_flag" ||
10115
 
         test ! -s conftest.err
10116
 
       } && test -s conftest$ac_exeext && {
10117
 
         test "$cross_compiling" = yes ||
10118
 
         $as_test_x conftest$ac_exeext
10119
 
       }; then
10120
 
  eval "$as_ac_var=yes"
10121
 
else
10122
 
  $as_echo "$as_me: failed program was:" >&5
10123
 
sed 's/^/| /' conftest.$ac_ext >&5
10124
 
 
10125
 
        eval "$as_ac_var=no"
10126
 
fi
10127
 
 
10128
 
rm -rf conftest.dSYM
10129
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10130
 
      conftest$ac_exeext conftest.$ac_ext
10131
 
fi
10132
 
ac_res=`eval 'as_val=${'$as_ac_var'}
10133
 
                 $as_echo "$as_val"'`
10134
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10135
 
$as_echo "$ac_res" >&6; }
10136
 
as_val=`eval 'as_val=${'$as_ac_var'}
10137
 
                 $as_echo "$as_val"'`
10138
 
   if test "x$as_val" = x""yes; then
10139
 
  cat >>confdefs.h <<_ACEOF
10140
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10141
 
_ACEOF
10142
 
 
10143
 
else
10144
 
 
10145
 
    { $as_echo "$as_me:$LINENO: checking for gethostbyname in winsock2.h and -lws2_32" >&5
10146
 
$as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
10147
 
if test "${gl_cv_w32_gethostbyname+set}" = set; then
10148
 
  $as_echo_n "(cached) " >&6
10149
 
else
10150
 
 
10151
 
      gl_cv_w32_gethostbyname=no
10152
 
      am_save_LIBS="$LIBS"
10153
 
      LIBS="$LIBS -lws2_32"
10154
 
      cat >conftest.$ac_ext <<_ACEOF
10155
 
/* confdefs.h.  */
10156
 
_ACEOF
10157
 
cat confdefs.h >>conftest.$ac_ext
10158
 
cat >>conftest.$ac_ext <<_ACEOF
10159
 
/* end confdefs.h.  */
10160
 
 
10161
 
#ifdef HAVE_WINSOCK2_H
10162
 
#include <winsock2.h>
10163
 
#endif
10164
 
#include <stddef.h>
10165
 
 
10166
 
int
10167
 
main ()
10168
 
{
10169
 
gethostbyname(NULL);
10170
 
  ;
10171
 
  return 0;
10172
 
}
10173
 
_ACEOF
10174
 
rm -f conftest.$ac_objext conftest$ac_exeext
10175
 
if { (ac_try="$ac_link"
10176
 
case "(($ac_try" in
10177
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10178
 
  *) ac_try_echo=$ac_try;;
10179
 
esac
10180
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10181
 
$as_echo "$ac_try_echo") >&5
10182
 
  (eval "$ac_link") 2>conftest.er1
10183
 
  ac_status=$?
10184
 
  grep -v '^ *+' conftest.er1 >conftest.err
10185
 
  rm -f conftest.er1
10186
 
  cat conftest.err >&5
10187
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188
 
  (exit $ac_status); } && {
10189
 
         test -z "$ac_c_werror_flag" ||
10190
 
         test ! -s conftest.err
10191
 
       } && test -s conftest$ac_exeext && {
10192
 
         test "$cross_compiling" = yes ||
10193
 
         $as_test_x conftest$ac_exeext
10194
 
       }; then
10195
 
  gl_cv_w32_gethostbyname=yes
10196
 
else
10197
 
  $as_echo "$as_me: failed program was:" >&5
10198
 
sed 's/^/| /' conftest.$ac_ext >&5
10199
 
 
10200
 
 
10201
 
fi
10202
 
 
10203
 
rm -rf conftest.dSYM
10204
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10205
 
      conftest$ac_exeext conftest.$ac_ext
10206
 
    LIBS="$am_save_LIBS"
10207
 
fi
10208
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_w32_gethostbyname" >&5
10209
 
$as_echo "$gl_cv_w32_gethostbyname" >&6; }
10210
 
    if test "$gl_cv_w32_gethostbyname" = "yes"; then
10211
 
      LIBS="$LIBS -lws2_32"
10212
 
    fi
10213
 
 
10214
 
fi
10215
 
done
10216
 
 
10217
 
 
10218
 
 
10219
 
 
10220
 
 
10221
 
 
10222
 
 
10223
 
  :
10224
 
 
10225
 
 
10226
 
 
10227
 
 
10228
 
 
10229
 
 
10230
 
 
10231
 
 
10232
 
  { $as_echo "$as_me:$LINENO: checking whether getaddrinfo is declared" >&5
10233
 
$as_echo_n "checking whether getaddrinfo is declared... " >&6; }
10234
 
if test "${ac_cv_have_decl_getaddrinfo+set}" = set; then
10235
 
  $as_echo_n "(cached) " >&6
10236
 
else
10237
 
  cat >conftest.$ac_ext <<_ACEOF
10238
 
/* confdefs.h.  */
10239
 
_ACEOF
10240
 
cat confdefs.h >>conftest.$ac_ext
10241
 
cat >>conftest.$ac_ext <<_ACEOF
10242
 
/* end confdefs.h.  */
10243
 
 
10244
 
  /* sys/types.h is not needed according to POSIX, but the
10245
 
     sys/socket.h in i386-unknown-freebsd4.10 and
10246
 
     powerpc-apple-darwin5.5 required it. */
10247
 
#include <sys/types.h>
10248
 
#ifdef HAVE_SYS_SOCKET_H
10249
 
#include <sys/socket.h>
10250
 
#endif
10251
 
#ifdef HAVE_NETDB_H
10252
 
#include <netdb.h>
10253
 
#endif
10254
 
#ifdef HAVE_WS2TCPIP_H
10255
 
#include <ws2tcpip.h>
10256
 
#endif
10257
 
 
10258
 
 
10259
 
int
10260
 
main ()
10261
 
{
10262
 
#ifndef getaddrinfo
10263
 
  (void) getaddrinfo;
10264
 
#endif
10265
 
 
10266
 
  ;
10267
 
  return 0;
10268
 
}
10269
 
_ACEOF
10270
 
rm -f conftest.$ac_objext
10271
 
if { (ac_try="$ac_compile"
10272
 
case "(($ac_try" in
10273
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10274
 
  *) ac_try_echo=$ac_try;;
10275
 
esac
10276
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10277
 
$as_echo "$ac_try_echo") >&5
10278
 
  (eval "$ac_compile") 2>conftest.er1
10279
 
  ac_status=$?
10280
 
  grep -v '^ *+' conftest.er1 >conftest.err
10281
 
  rm -f conftest.er1
10282
 
  cat conftest.err >&5
10283
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284
 
  (exit $ac_status); } && {
10285
 
         test -z "$ac_c_werror_flag" ||
10286
 
         test ! -s conftest.err
10287
 
       } && test -s conftest.$ac_objext; then
10288
 
  ac_cv_have_decl_getaddrinfo=yes
10289
 
else
10290
 
  $as_echo "$as_me: failed program was:" >&5
10291
 
sed 's/^/| /' conftest.$ac_ext >&5
10292
 
 
10293
 
        ac_cv_have_decl_getaddrinfo=no
10294
 
fi
10295
 
 
10296
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10297
 
fi
10298
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getaddrinfo" >&5
10299
 
$as_echo "$ac_cv_have_decl_getaddrinfo" >&6; }
10300
 
if test "x$ac_cv_have_decl_getaddrinfo" = x""yes; then
10301
 
 
10302
 
cat >>confdefs.h <<_ACEOF
10303
 
#define HAVE_DECL_GETADDRINFO 1
10304
 
_ACEOF
10305
 
 
10306
 
 
10307
 
else
10308
 
  cat >>confdefs.h <<_ACEOF
10309
 
#define HAVE_DECL_GETADDRINFO 0
10310
 
_ACEOF
10311
 
 
10312
 
 
10313
 
fi
10314
 
{ $as_echo "$as_me:$LINENO: checking whether freeaddrinfo is declared" >&5
10315
 
$as_echo_n "checking whether freeaddrinfo is declared... " >&6; }
10316
 
if test "${ac_cv_have_decl_freeaddrinfo+set}" = set; then
10317
 
  $as_echo_n "(cached) " >&6
10318
 
else
10319
 
  cat >conftest.$ac_ext <<_ACEOF
10320
 
/* confdefs.h.  */
10321
 
_ACEOF
10322
 
cat confdefs.h >>conftest.$ac_ext
10323
 
cat >>conftest.$ac_ext <<_ACEOF
10324
 
/* end confdefs.h.  */
10325
 
 
10326
 
  /* sys/types.h is not needed according to POSIX, but the
10327
 
     sys/socket.h in i386-unknown-freebsd4.10 and
10328
 
     powerpc-apple-darwin5.5 required it. */
10329
 
#include <sys/types.h>
10330
 
#ifdef HAVE_SYS_SOCKET_H
10331
 
#include <sys/socket.h>
10332
 
#endif
10333
 
#ifdef HAVE_NETDB_H
10334
 
#include <netdb.h>
10335
 
#endif
10336
 
#ifdef HAVE_WS2TCPIP_H
10337
 
#include <ws2tcpip.h>
10338
 
#endif
10339
 
 
10340
 
 
10341
 
int
10342
 
main ()
10343
 
{
10344
 
#ifndef freeaddrinfo
10345
 
  (void) freeaddrinfo;
10346
 
#endif
10347
 
 
10348
 
  ;
10349
 
  return 0;
10350
 
}
10351
 
_ACEOF
10352
 
rm -f conftest.$ac_objext
10353
 
if { (ac_try="$ac_compile"
10354
 
case "(($ac_try" in
10355
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10356
 
  *) ac_try_echo=$ac_try;;
10357
 
esac
10358
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10359
 
$as_echo "$ac_try_echo") >&5
10360
 
  (eval "$ac_compile") 2>conftest.er1
10361
 
  ac_status=$?
10362
 
  grep -v '^ *+' conftest.er1 >conftest.err
10363
 
  rm -f conftest.er1
10364
 
  cat conftest.err >&5
10365
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366
 
  (exit $ac_status); } && {
10367
 
         test -z "$ac_c_werror_flag" ||
10368
 
         test ! -s conftest.err
10369
 
       } && test -s conftest.$ac_objext; then
10370
 
  ac_cv_have_decl_freeaddrinfo=yes
10371
 
else
10372
 
  $as_echo "$as_me: failed program was:" >&5
10373
 
sed 's/^/| /' conftest.$ac_ext >&5
10374
 
 
10375
 
        ac_cv_have_decl_freeaddrinfo=no
10376
 
fi
10377
 
 
10378
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10379
 
fi
10380
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_freeaddrinfo" >&5
10381
 
$as_echo "$ac_cv_have_decl_freeaddrinfo" >&6; }
10382
 
if test "x$ac_cv_have_decl_freeaddrinfo" = x""yes; then
10383
 
 
10384
 
cat >>confdefs.h <<_ACEOF
10385
 
#define HAVE_DECL_FREEADDRINFO 1
10386
 
_ACEOF
10387
 
 
10388
 
 
10389
 
else
10390
 
  cat >>confdefs.h <<_ACEOF
10391
 
#define HAVE_DECL_FREEADDRINFO 0
10392
 
_ACEOF
10393
 
 
10394
 
 
10395
 
fi
10396
 
{ $as_echo "$as_me:$LINENO: checking whether gai_strerror is declared" >&5
10397
 
$as_echo_n "checking whether gai_strerror is declared... " >&6; }
10398
 
if test "${ac_cv_have_decl_gai_strerror+set}" = set; then
10399
 
  $as_echo_n "(cached) " >&6
10400
 
else
10401
 
  cat >conftest.$ac_ext <<_ACEOF
10402
 
/* confdefs.h.  */
10403
 
_ACEOF
10404
 
cat confdefs.h >>conftest.$ac_ext
10405
 
cat >>conftest.$ac_ext <<_ACEOF
10406
 
/* end confdefs.h.  */
10407
 
 
10408
 
  /* sys/types.h is not needed according to POSIX, but the
10409
 
     sys/socket.h in i386-unknown-freebsd4.10 and
10410
 
     powerpc-apple-darwin5.5 required it. */
10411
 
#include <sys/types.h>
10412
 
#ifdef HAVE_SYS_SOCKET_H
10413
 
#include <sys/socket.h>
10414
 
#endif
10415
 
#ifdef HAVE_NETDB_H
10416
 
#include <netdb.h>
10417
 
#endif
10418
 
#ifdef HAVE_WS2TCPIP_H
10419
 
#include <ws2tcpip.h>
10420
 
#endif
10421
 
 
10422
 
 
10423
 
int
10424
 
main ()
10425
 
{
10426
 
#ifndef gai_strerror
10427
 
  (void) gai_strerror;
10428
 
#endif
10429
 
 
10430
 
  ;
10431
 
  return 0;
10432
 
}
10433
 
_ACEOF
10434
 
rm -f conftest.$ac_objext
10435
 
if { (ac_try="$ac_compile"
10436
 
case "(($ac_try" in
10437
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10438
 
  *) ac_try_echo=$ac_try;;
10439
 
esac
10440
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10441
 
$as_echo "$ac_try_echo") >&5
10442
 
  (eval "$ac_compile") 2>conftest.er1
10443
 
  ac_status=$?
10444
 
  grep -v '^ *+' conftest.er1 >conftest.err
10445
 
  rm -f conftest.er1
10446
 
  cat conftest.err >&5
10447
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448
 
  (exit $ac_status); } && {
10449
 
         test -z "$ac_c_werror_flag" ||
10450
 
         test ! -s conftest.err
10451
 
       } && test -s conftest.$ac_objext; then
10452
 
  ac_cv_have_decl_gai_strerror=yes
10453
 
else
10454
 
  $as_echo "$as_me: failed program was:" >&5
10455
 
sed 's/^/| /' conftest.$ac_ext >&5
10456
 
 
10457
 
        ac_cv_have_decl_gai_strerror=no
10458
 
fi
10459
 
 
10460
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10461
 
fi
10462
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_gai_strerror" >&5
10463
 
$as_echo "$ac_cv_have_decl_gai_strerror" >&6; }
10464
 
if test "x$ac_cv_have_decl_gai_strerror" = x""yes; then
10465
 
 
10466
 
cat >>confdefs.h <<_ACEOF
10467
 
#define HAVE_DECL_GAI_STRERROR 1
10468
 
_ACEOF
10469
 
 
10470
 
 
10471
 
else
10472
 
  cat >>confdefs.h <<_ACEOF
10473
 
#define HAVE_DECL_GAI_STRERROR 0
10474
 
_ACEOF
10475
 
 
10476
 
 
10477
 
fi
10478
 
{ $as_echo "$as_me:$LINENO: checking whether getnameinfo is declared" >&5
10479
 
$as_echo_n "checking whether getnameinfo is declared... " >&6; }
10480
 
if test "${ac_cv_have_decl_getnameinfo+set}" = set; then
10481
 
  $as_echo_n "(cached) " >&6
10482
 
else
10483
 
  cat >conftest.$ac_ext <<_ACEOF
10484
 
/* confdefs.h.  */
10485
 
_ACEOF
10486
 
cat confdefs.h >>conftest.$ac_ext
10487
 
cat >>conftest.$ac_ext <<_ACEOF
10488
 
/* end confdefs.h.  */
10489
 
 
10490
 
  /* sys/types.h is not needed according to POSIX, but the
10491
 
     sys/socket.h in i386-unknown-freebsd4.10 and
10492
 
     powerpc-apple-darwin5.5 required it. */
10493
 
#include <sys/types.h>
10494
 
#ifdef HAVE_SYS_SOCKET_H
10495
 
#include <sys/socket.h>
10496
 
#endif
10497
 
#ifdef HAVE_NETDB_H
10498
 
#include <netdb.h>
10499
 
#endif
10500
 
#ifdef HAVE_WS2TCPIP_H
10501
 
#include <ws2tcpip.h>
10502
 
#endif
10503
 
 
10504
 
 
10505
 
int
10506
 
main ()
10507
 
{
10508
 
#ifndef getnameinfo
10509
 
  (void) getnameinfo;
10510
 
#endif
10511
 
 
10512
 
  ;
10513
 
  return 0;
10514
 
}
10515
 
_ACEOF
10516
 
rm -f conftest.$ac_objext
10517
 
if { (ac_try="$ac_compile"
10518
 
case "(($ac_try" in
10519
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10520
 
  *) ac_try_echo=$ac_try;;
10521
 
esac
10522
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10523
 
$as_echo "$ac_try_echo") >&5
10524
 
  (eval "$ac_compile") 2>conftest.er1
10525
 
  ac_status=$?
10526
 
  grep -v '^ *+' conftest.er1 >conftest.err
10527
 
  rm -f conftest.er1
10528
 
  cat conftest.err >&5
10529
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530
 
  (exit $ac_status); } && {
10531
 
         test -z "$ac_c_werror_flag" ||
10532
 
         test ! -s conftest.err
10533
 
       } && test -s conftest.$ac_objext; then
10534
 
  ac_cv_have_decl_getnameinfo=yes
10535
 
else
10536
 
  $as_echo "$as_me: failed program was:" >&5
10537
 
sed 's/^/| /' conftest.$ac_ext >&5
10538
 
 
10539
 
        ac_cv_have_decl_getnameinfo=no
10540
 
fi
10541
 
 
10542
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10543
 
fi
10544
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getnameinfo" >&5
10545
 
$as_echo "$ac_cv_have_decl_getnameinfo" >&6; }
10546
 
if test "x$ac_cv_have_decl_getnameinfo" = x""yes; then
10547
 
 
10548
 
cat >>confdefs.h <<_ACEOF
10549
 
#define HAVE_DECL_GETNAMEINFO 1
10550
 
_ACEOF
10551
 
 
10552
 
 
10553
 
else
10554
 
  cat >>confdefs.h <<_ACEOF
10555
 
#define HAVE_DECL_GETNAMEINFO 0
10556
 
_ACEOF
10557
 
 
10558
 
 
10559
 
fi
10560
 
 
10561
 
 
10562
 
  { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10563
 
$as_echo_n "checking for struct addrinfo... " >&6; }
10564
 
if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10565
 
  $as_echo_n "(cached) " >&6
10566
 
else
10567
 
  ac_cv_type_struct_addrinfo=no
10568
 
cat >conftest.$ac_ext <<_ACEOF
10569
 
/* confdefs.h.  */
10570
 
_ACEOF
10571
 
cat confdefs.h >>conftest.$ac_ext
10572
 
cat >>conftest.$ac_ext <<_ACEOF
10573
 
/* end confdefs.h.  */
10574
 
 
10575
 
#include <sys/types.h>
10576
 
#ifdef HAVE_SYS_SOCKET_H
10577
 
#include <sys/socket.h>
10578
 
#endif
10579
 
#ifdef HAVE_NETDB_H
10580
 
#include <netdb.h>
10581
 
#endif
10582
 
#ifdef HAVE_WS2TCPIP_H
10583
 
#include <ws2tcpip.h>
10584
 
#endif
10585
 
 
10586
 
 
10587
 
int
10588
 
main ()
10589
 
{
10590
 
if (sizeof (struct addrinfo))
10591
 
       return 0;
10592
 
  ;
10593
 
  return 0;
10594
 
}
10595
 
_ACEOF
10596
 
rm -f conftest.$ac_objext
10597
 
if { (ac_try="$ac_compile"
10598
 
case "(($ac_try" in
10599
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10600
 
  *) ac_try_echo=$ac_try;;
10601
 
esac
10602
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10603
 
$as_echo "$ac_try_echo") >&5
10604
 
  (eval "$ac_compile") 2>conftest.er1
10605
 
  ac_status=$?
10606
 
  grep -v '^ *+' conftest.er1 >conftest.err
10607
 
  rm -f conftest.er1
10608
 
  cat conftest.err >&5
10609
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610
 
  (exit $ac_status); } && {
10611
 
         test -z "$ac_c_werror_flag" ||
10612
 
         test ! -s conftest.err
10613
 
       } && test -s conftest.$ac_objext; then
10614
 
  cat >conftest.$ac_ext <<_ACEOF
10615
 
/* confdefs.h.  */
10616
 
_ACEOF
10617
 
cat confdefs.h >>conftest.$ac_ext
10618
 
cat >>conftest.$ac_ext <<_ACEOF
10619
 
/* end confdefs.h.  */
10620
 
 
10621
 
#include <sys/types.h>
10622
 
#ifdef HAVE_SYS_SOCKET_H
10623
 
#include <sys/socket.h>
10624
 
#endif
10625
 
#ifdef HAVE_NETDB_H
10626
 
#include <netdb.h>
10627
 
#endif
10628
 
#ifdef HAVE_WS2TCPIP_H
10629
 
#include <ws2tcpip.h>
10630
 
#endif
10631
 
 
10632
 
 
10633
 
int
10634
 
main ()
10635
 
{
10636
 
if (sizeof ((struct addrinfo)))
10637
 
          return 0;
10638
 
  ;
10639
 
  return 0;
10640
 
}
10641
 
_ACEOF
10642
 
rm -f conftest.$ac_objext
10643
 
if { (ac_try="$ac_compile"
10644
 
case "(($ac_try" in
10645
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10646
 
  *) ac_try_echo=$ac_try;;
10647
 
esac
10648
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10649
 
$as_echo "$ac_try_echo") >&5
10650
 
  (eval "$ac_compile") 2>conftest.er1
10651
 
  ac_status=$?
10652
 
  grep -v '^ *+' conftest.er1 >conftest.err
10653
 
  rm -f conftest.er1
10654
 
  cat conftest.err >&5
10655
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656
 
  (exit $ac_status); } && {
10657
 
         test -z "$ac_c_werror_flag" ||
10658
 
         test ! -s conftest.err
10659
 
       } && test -s conftest.$ac_objext; then
10660
 
  :
10661
 
else
10662
 
  $as_echo "$as_me: failed program was:" >&5
10663
 
sed 's/^/| /' conftest.$ac_ext >&5
10664
 
 
10665
 
        ac_cv_type_struct_addrinfo=yes
10666
 
fi
10667
 
 
10668
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10669
 
else
10670
 
  $as_echo "$as_me: failed program was:" >&5
10671
 
sed 's/^/| /' conftest.$ac_ext >&5
10672
 
 
10673
 
 
10674
 
fi
10675
 
 
10676
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10677
 
fi
10678
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10679
 
$as_echo "$ac_cv_type_struct_addrinfo" >&6; }
10680
 
if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
10681
 
 
10682
 
cat >>confdefs.h <<_ACEOF
10683
 
#define HAVE_STRUCT_ADDRINFO 1
10684
 
_ACEOF
10685
 
 
10686
 
 
10687
 
fi
10688
 
 
10689
 
 
10690
 
 
10691
 
 
10692
 
 
10693
 
 
10694
 
 
10695
 
 
10696
 
 
10697
 
 
10698
 
  ARPA_INET_H='arpa/inet.h'
10699
 
 
10700
 
 
10701
 
 
10702
 
 
10703
 
 
10704
 
 
10705
 
 
10706
 
 
10707
 
 
10708
 
 
10709
 
 
10710
 
for ac_func in inet_ntop
10711
 
do
10712
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10713
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10714
 
$as_echo_n "checking for $ac_func... " >&6; }
10715
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10716
 
  $as_echo_n "(cached) " >&6
10717
 
else
10718
 
  cat >conftest.$ac_ext <<_ACEOF
10719
 
/* confdefs.h.  */
10720
 
_ACEOF
10721
 
cat confdefs.h >>conftest.$ac_ext
10722
 
cat >>conftest.$ac_ext <<_ACEOF
10723
 
/* end confdefs.h.  */
10724
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10725
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10726
 
#define $ac_func innocuous_$ac_func
10727
 
 
10728
 
/* System header to define __stub macros and hopefully few prototypes,
10729
 
    which can conflict with char $ac_func (); below.
10730
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10731
 
    <limits.h> exists even on freestanding compilers.  */
10732
 
 
10733
 
#ifdef __STDC__
10734
 
# include <limits.h>
10735
 
#else
10736
 
# include <assert.h>
10737
 
#endif
10738
 
 
10739
 
#undef $ac_func
10740
 
 
10741
 
/* Override any GCC internal prototype to avoid an error.
10742
 
   Use char because int might match the return type of a GCC
10743
 
   builtin and then its argument prototype would still apply.  */
10744
 
#ifdef __cplusplus
10745
 
extern "C"
10746
 
#endif
10747
 
char $ac_func ();
10748
 
/* The GNU C library defines this for functions which it implements
10749
 
    to always fail with ENOSYS.  Some functions are actually named
10750
 
    something starting with __ and the normal name is an alias.  */
10751
 
#if defined __stub_$ac_func || defined __stub___$ac_func
10752
 
choke me
10753
 
#endif
10754
 
 
10755
 
int
10756
 
main ()
10757
 
{
10758
 
return $ac_func ();
10759
 
  ;
10760
 
  return 0;
10761
 
}
10762
 
_ACEOF
10763
 
rm -f conftest.$ac_objext conftest$ac_exeext
10764
 
if { (ac_try="$ac_link"
10765
 
case "(($ac_try" in
10766
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10767
 
  *) ac_try_echo=$ac_try;;
10768
 
esac
10769
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10770
 
$as_echo "$ac_try_echo") >&5
10771
 
  (eval "$ac_link") 2>conftest.er1
10772
 
  ac_status=$?
10773
 
  grep -v '^ *+' conftest.er1 >conftest.err
10774
 
  rm -f conftest.er1
10775
 
  cat conftest.err >&5
10776
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777
 
  (exit $ac_status); } && {
10778
 
         test -z "$ac_c_werror_flag" ||
10779
 
         test ! -s conftest.err
10780
 
       } && test -s conftest$ac_exeext && {
10781
 
         test "$cross_compiling" = yes ||
10782
 
         $as_test_x conftest$ac_exeext
10783
 
       }; then
10784
 
  eval "$as_ac_var=yes"
10785
 
else
10786
 
  $as_echo "$as_me: failed program was:" >&5
10787
 
sed 's/^/| /' conftest.$ac_ext >&5
10788
 
 
10789
 
        eval "$as_ac_var=no"
10790
 
fi
10791
 
 
10792
 
rm -rf conftest.dSYM
10793
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10794
 
      conftest$ac_exeext conftest.$ac_ext
10795
 
fi
10796
 
ac_res=`eval 'as_val=${'$as_ac_var'}
10797
 
                 $as_echo "$as_val"'`
10798
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10799
 
$as_echo "$ac_res" >&6; }
10800
 
as_val=`eval 'as_val=${'$as_ac_var'}
10801
 
                 $as_echo "$as_val"'`
10802
 
   if test "x$as_val" = x""yes; then
10803
 
  cat >>confdefs.h <<_ACEOF
10804
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10805
 
_ACEOF
10806
 
 
10807
 
else
10808
 
 
10809
 
    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
10810
 
 
10811
 
fi
10812
 
done
10813
 
 
10814
 
 
10815
 
 
10816
 
  { $as_echo "$as_me:$LINENO: checking whether inet_ntop is declared" >&5
10817
 
$as_echo_n "checking whether inet_ntop is declared... " >&6; }
10818
 
if test "${ac_cv_have_decl_inet_ntop+set}" = set; then
10819
 
  $as_echo_n "(cached) " >&6
10820
 
else
10821
 
  cat >conftest.$ac_ext <<_ACEOF
10822
 
/* confdefs.h.  */
10823
 
_ACEOF
10824
 
cat confdefs.h >>conftest.$ac_ext
10825
 
cat >>conftest.$ac_ext <<_ACEOF
10826
 
/* end confdefs.h.  */
10827
 
#include <arpa/inet.h>
10828
 
 
10829
 
int
10830
 
main ()
10831
 
{
10832
 
#ifndef inet_ntop
10833
 
  (void) inet_ntop;
10834
 
#endif
10835
 
 
10836
 
  ;
10837
 
  return 0;
10838
 
}
10839
 
_ACEOF
10840
 
rm -f conftest.$ac_objext
10841
 
if { (ac_try="$ac_compile"
10842
 
case "(($ac_try" in
10843
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844
 
  *) ac_try_echo=$ac_try;;
10845
 
esac
10846
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10847
 
$as_echo "$ac_try_echo") >&5
10848
 
  (eval "$ac_compile") 2>conftest.er1
10849
 
  ac_status=$?
10850
 
  grep -v '^ *+' conftest.er1 >conftest.err
10851
 
  rm -f conftest.er1
10852
 
  cat conftest.err >&5
10853
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854
 
  (exit $ac_status); } && {
10855
 
         test -z "$ac_c_werror_flag" ||
10856
 
         test ! -s conftest.err
10857
 
       } && test -s conftest.$ac_objext; then
10858
 
  ac_cv_have_decl_inet_ntop=yes
10859
 
else
10860
 
  $as_echo "$as_me: failed program was:" >&5
10861
 
sed 's/^/| /' conftest.$ac_ext >&5
10862
 
 
10863
 
        ac_cv_have_decl_inet_ntop=no
10864
 
fi
10865
 
 
10866
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10867
 
fi
10868
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_ntop" >&5
10869
 
$as_echo "$ac_cv_have_decl_inet_ntop" >&6; }
10870
 
if test "x$ac_cv_have_decl_inet_ntop" = x""yes; then
10871
 
 
10872
 
cat >>confdefs.h <<_ACEOF
10873
 
#define HAVE_DECL_INET_NTOP 1
10874
 
_ACEOF
10875
 
 
10876
 
 
10877
 
else
10878
 
  cat >>confdefs.h <<_ACEOF
10879
 
#define HAVE_DECL_INET_NTOP 0
10880
 
_ACEOF
10881
 
 
10882
 
 
10883
 
fi
10884
 
 
10885
 
 
10886
 
  if test $ac_cv_have_decl_inet_ntop = no; then
10887
 
    HAVE_DECL_INET_NTOP=0
10888
 
  fi
10889
 
 
10890
 
 
10891
 
 
10892
 
 
10893
 
 
10894
 
 
10895
 
  GNULIB_INET_NTOP=1
10896
 
 
10897
 
 
10898
 
for ac_header in stdlib.h
10899
 
do
10900
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10901
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10902
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10903
 
$as_echo_n "checking for $ac_header... " >&6; }
10904
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10905
 
  $as_echo_n "(cached) " >&6
10906
 
fi
10907
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
10908
 
                 $as_echo "$as_val"'`
10909
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10910
 
$as_echo "$ac_res" >&6; }
10911
 
else
10912
 
  # Is the header compilable?
10913
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10914
 
$as_echo_n "checking $ac_header usability... " >&6; }
10915
 
cat >conftest.$ac_ext <<_ACEOF
10916
 
/* confdefs.h.  */
10917
 
_ACEOF
10918
 
cat confdefs.h >>conftest.$ac_ext
10919
 
cat >>conftest.$ac_ext <<_ACEOF
10920
 
/* end confdefs.h.  */
10921
 
$ac_includes_default
10922
 
#include <$ac_header>
10923
 
_ACEOF
10924
 
rm -f conftest.$ac_objext
10925
 
if { (ac_try="$ac_compile"
10926
 
case "(($ac_try" in
10927
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10928
 
  *) ac_try_echo=$ac_try;;
10929
 
esac
10930
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10931
 
$as_echo "$ac_try_echo") >&5
10932
 
  (eval "$ac_compile") 2>conftest.er1
10933
 
  ac_status=$?
10934
 
  grep -v '^ *+' conftest.er1 >conftest.err
10935
 
  rm -f conftest.er1
10936
 
  cat conftest.err >&5
10937
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938
 
  (exit $ac_status); } && {
10939
 
         test -z "$ac_c_werror_flag" ||
10940
 
         test ! -s conftest.err
10941
 
       } && test -s conftest.$ac_objext; then
10942
 
  ac_header_compiler=yes
10943
 
else
10944
 
  $as_echo "$as_me: failed program was:" >&5
10945
 
sed 's/^/| /' conftest.$ac_ext >&5
10946
 
 
10947
 
        ac_header_compiler=no
10948
 
fi
10949
 
 
10950
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10951
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10952
 
$as_echo "$ac_header_compiler" >&6; }
10953
 
 
10954
 
# Is the header present?
10955
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10956
 
$as_echo_n "checking $ac_header presence... " >&6; }
10957
 
cat >conftest.$ac_ext <<_ACEOF
10958
 
/* confdefs.h.  */
10959
 
_ACEOF
10960
 
cat confdefs.h >>conftest.$ac_ext
10961
 
cat >>conftest.$ac_ext <<_ACEOF
10962
 
/* end confdefs.h.  */
10963
 
#include <$ac_header>
10964
 
_ACEOF
10965
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
10966
 
case "(($ac_try" in
10967
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10968
 
  *) ac_try_echo=$ac_try;;
10969
 
esac
10970
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10971
 
$as_echo "$ac_try_echo") >&5
10972
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10973
 
  ac_status=$?
10974
 
  grep -v '^ *+' conftest.er1 >conftest.err
10975
 
  rm -f conftest.er1
10976
 
  cat conftest.err >&5
10977
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978
 
  (exit $ac_status); } >/dev/null && {
10979
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10980
 
         test ! -s conftest.err
10981
 
       }; then
10982
 
  ac_header_preproc=yes
10983
 
else
10984
 
  $as_echo "$as_me: failed program was:" >&5
10985
 
sed 's/^/| /' conftest.$ac_ext >&5
10986
 
 
10987
 
  ac_header_preproc=no
10988
 
fi
10989
 
 
10990
 
rm -f conftest.err conftest.$ac_ext
10991
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10992
 
$as_echo "$ac_header_preproc" >&6; }
10993
 
 
10994
 
# So?  What about this header?
10995
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10996
 
  yes:no: )
10997
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10998
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10999
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11000
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11001
 
    ac_header_preproc=yes
11002
 
    ;;
11003
 
  no:yes:* )
11004
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11005
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11006
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11007
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11008
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11009
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11010
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11011
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11012
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11013
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11014
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11015
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11016
 
 
11017
 
    ;;
11018
 
esac
11019
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11020
 
$as_echo_n "checking for $ac_header... " >&6; }
11021
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11022
 
  $as_echo_n "(cached) " >&6
11023
 
else
11024
 
  eval "$as_ac_Header=\$ac_header_preproc"
11025
 
fi
11026
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
11027
 
                 $as_echo "$as_val"'`
11028
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11029
 
$as_echo "$ac_res" >&6; }
11030
 
 
11031
 
fi
11032
 
as_val=`eval 'as_val=${'$as_ac_Header'}
11033
 
                 $as_echo "$as_val"'`
11034
 
   if test "x$as_val" = x""yes; then
11035
 
  cat >>confdefs.h <<_ACEOF
11036
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11037
 
_ACEOF
11038
 
 
11039
 
fi
11040
 
 
11041
 
done
11042
 
 
11043
 
{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
11044
 
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
11045
 
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
11046
 
  $as_echo_n "(cached) " >&6
11047
 
else
11048
 
  if test "$cross_compiling" = yes; then
11049
 
  ac_cv_func_malloc_0_nonnull=no
11050
 
else
11051
 
  cat >conftest.$ac_ext <<_ACEOF
11052
 
/* confdefs.h.  */
11053
 
_ACEOF
11054
 
cat confdefs.h >>conftest.$ac_ext
11055
 
cat >>conftest.$ac_ext <<_ACEOF
11056
 
/* end confdefs.h.  */
11057
 
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
11058
 
# include <stdlib.h>
11059
 
#else
11060
 
char *malloc ();
11061
 
#endif
11062
 
 
11063
 
int
11064
 
main ()
11065
 
{
11066
 
return ! malloc (0);
11067
 
  ;
11068
 
  return 0;
11069
 
}
11070
 
_ACEOF
11071
 
rm -f conftest$ac_exeext
11072
 
if { (ac_try="$ac_link"
11073
 
case "(($ac_try" in
11074
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11075
 
  *) ac_try_echo=$ac_try;;
11076
 
esac
11077
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11078
 
$as_echo "$ac_try_echo") >&5
11079
 
  (eval "$ac_link") 2>&5
11080
 
  ac_status=$?
11081
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11083
 
  { (case "(($ac_try" in
11084
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11085
 
  *) ac_try_echo=$ac_try;;
11086
 
esac
11087
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11088
 
$as_echo "$ac_try_echo") >&5
11089
 
  (eval "$ac_try") 2>&5
11090
 
  ac_status=$?
11091
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092
 
  (exit $ac_status); }; }; then
11093
 
  ac_cv_func_malloc_0_nonnull=yes
11094
 
else
11095
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
11096
 
$as_echo "$as_me: failed program was:" >&5
11097
 
sed 's/^/| /' conftest.$ac_ext >&5
11098
 
 
11099
 
( exit $ac_status )
11100
 
ac_cv_func_malloc_0_nonnull=no
11101
 
fi
11102
 
rm -rf conftest.dSYM
11103
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11104
 
fi
11105
 
 
11106
 
 
11107
 
fi
11108
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
11109
 
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
11110
 
if test $ac_cv_func_malloc_0_nonnull = yes; then
11111
 
 
11112
 
cat >>confdefs.h <<\_ACEOF
11113
 
#define HAVE_MALLOC 1
11114
 
_ACEOF
11115
 
 
11116
 
else
11117
 
  cat >>confdefs.h <<\_ACEOF
11118
 
#define HAVE_MALLOC 0
11119
 
_ACEOF
11120
 
 
11121
 
 
11122
 
 
11123
 
 
11124
 
 
11125
 
 
11126
 
 
11127
 
 
11128
 
 
11129
 
  gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
11130
 
 
11131
 
 
11132
 
cat >>confdefs.h <<\_ACEOF
11133
 
#define malloc rpl_malloc
11134
 
_ACEOF
11135
 
 
11136
 
fi
11137
 
 
11138
 
 
11139
 
 
11140
 
 
11141
 
cat >>confdefs.h <<\_ACEOF
11142
 
#define GNULIB_MALLOC_GNU 1
11143
 
_ACEOF
11144
 
 
11145
 
 
11146
 
 
11147
 
  if test $gl_cv_func_malloc_posix = yes; then
11148
 
    HAVE_MALLOC_POSIX=1
11149
 
 
11150
 
cat >>confdefs.h <<\_ACEOF
11151
 
#define HAVE_MALLOC_POSIX 1
11152
 
_ACEOF
11153
 
 
11154
 
  else
11155
 
 
11156
 
 
11157
 
 
11158
 
 
11159
 
 
11160
 
 
11161
 
 
11162
 
 
11163
 
  gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
11164
 
 
11165
 
    HAVE_MALLOC_POSIX=0
11166
 
  fi
11167
 
 
11168
 
 
11169
 
 
11170
 
 
11171
 
  GNULIB_MALLOC_POSIX=1
11172
 
 
11173
 
 
11174
 
  { $as_echo "$as_me:$LINENO: checking whether <netinet/in.h> is self-contained" >&5
11175
 
$as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
11176
 
if test "${gl_cv_header_netinet_in_h_selfcontained+set}" = set; then
11177
 
  $as_echo_n "(cached) " >&6
11178
 
else
11179
 
 
11180
 
      cat >conftest.$ac_ext <<_ACEOF
11181
 
/* confdefs.h.  */
11182
 
_ACEOF
11183
 
cat confdefs.h >>conftest.$ac_ext
11184
 
cat >>conftest.$ac_ext <<_ACEOF
11185
 
/* end confdefs.h.  */
11186
 
#include <netinet/in.h>
11187
 
int
11188
 
main ()
11189
 
{
11190
 
 
11191
 
  ;
11192
 
  return 0;
11193
 
}
11194
 
_ACEOF
11195
 
rm -f conftest.$ac_objext
11196
 
if { (ac_try="$ac_compile"
11197
 
case "(($ac_try" in
11198
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11199
 
  *) ac_try_echo=$ac_try;;
11200
 
esac
11201
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11202
 
$as_echo "$ac_try_echo") >&5
11203
 
  (eval "$ac_compile") 2>conftest.er1
11204
 
  ac_status=$?
11205
 
  grep -v '^ *+' conftest.er1 >conftest.err
11206
 
  rm -f conftest.er1
11207
 
  cat conftest.err >&5
11208
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209
 
  (exit $ac_status); } && {
11210
 
         test -z "$ac_c_werror_flag" ||
11211
 
         test ! -s conftest.err
11212
 
       } && test -s conftest.$ac_objext; then
11213
 
  gl_cv_header_netinet_in_h_selfcontained=yes
11214
 
else
11215
 
  $as_echo "$as_me: failed program was:" >&5
11216
 
sed 's/^/| /' conftest.$ac_ext >&5
11217
 
 
11218
 
        gl_cv_header_netinet_in_h_selfcontained=no
11219
 
fi
11220
 
 
11221
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11222
 
 
11223
 
fi
11224
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
11225
 
$as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
11226
 
  if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
11227
 
    NETINET_IN_H=''
11228
 
  else
11229
 
    NETINET_IN_H='netinet/in.h'
11230
 
 
11231
 
for ac_header in netinet/in.h
11232
 
do
11233
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11234
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11235
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11236
 
$as_echo_n "checking for $ac_header... " >&6; }
11237
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11238
 
  $as_echo_n "(cached) " >&6
11239
 
fi
11240
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
11241
 
                 $as_echo "$as_val"'`
11242
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11243
 
$as_echo "$ac_res" >&6; }
11244
 
else
11245
 
  # Is the header compilable?
11246
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11247
 
$as_echo_n "checking $ac_header usability... " >&6; }
11248
 
cat >conftest.$ac_ext <<_ACEOF
11249
 
/* confdefs.h.  */
11250
 
_ACEOF
11251
 
cat confdefs.h >>conftest.$ac_ext
11252
 
cat >>conftest.$ac_ext <<_ACEOF
11253
 
/* end confdefs.h.  */
11254
 
$ac_includes_default
11255
 
#include <$ac_header>
11256
 
_ACEOF
11257
 
rm -f conftest.$ac_objext
11258
 
if { (ac_try="$ac_compile"
11259
 
case "(($ac_try" in
11260
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11261
 
  *) ac_try_echo=$ac_try;;
11262
 
esac
11263
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11264
 
$as_echo "$ac_try_echo") >&5
11265
 
  (eval "$ac_compile") 2>conftest.er1
11266
 
  ac_status=$?
11267
 
  grep -v '^ *+' conftest.er1 >conftest.err
11268
 
  rm -f conftest.er1
11269
 
  cat conftest.err >&5
11270
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271
 
  (exit $ac_status); } && {
11272
 
         test -z "$ac_c_werror_flag" ||
11273
 
         test ! -s conftest.err
11274
 
       } && test -s conftest.$ac_objext; then
11275
 
  ac_header_compiler=yes
11276
 
else
11277
 
  $as_echo "$as_me: failed program was:" >&5
11278
 
sed 's/^/| /' conftest.$ac_ext >&5
11279
 
 
11280
 
        ac_header_compiler=no
11281
 
fi
11282
 
 
11283
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11284
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11285
 
$as_echo "$ac_header_compiler" >&6; }
11286
 
 
11287
 
# Is the header present?
11288
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11289
 
$as_echo_n "checking $ac_header presence... " >&6; }
11290
 
cat >conftest.$ac_ext <<_ACEOF
11291
 
/* confdefs.h.  */
11292
 
_ACEOF
11293
 
cat confdefs.h >>conftest.$ac_ext
11294
 
cat >>conftest.$ac_ext <<_ACEOF
11295
 
/* end confdefs.h.  */
11296
 
#include <$ac_header>
11297
 
_ACEOF
11298
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
11299
 
case "(($ac_try" in
11300
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11301
 
  *) ac_try_echo=$ac_try;;
11302
 
esac
11303
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11304
 
$as_echo "$ac_try_echo") >&5
11305
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11306
 
  ac_status=$?
11307
 
  grep -v '^ *+' conftest.er1 >conftest.err
11308
 
  rm -f conftest.er1
11309
 
  cat conftest.err >&5
11310
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311
 
  (exit $ac_status); } >/dev/null && {
11312
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11313
 
         test ! -s conftest.err
11314
 
       }; then
11315
 
  ac_header_preproc=yes
11316
 
else
11317
 
  $as_echo "$as_me: failed program was:" >&5
11318
 
sed 's/^/| /' conftest.$ac_ext >&5
11319
 
 
11320
 
  ac_header_preproc=no
11321
 
fi
11322
 
 
11323
 
rm -f conftest.err conftest.$ac_ext
11324
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11325
 
$as_echo "$ac_header_preproc" >&6; }
11326
 
 
11327
 
# So?  What about this header?
11328
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11329
 
  yes:no: )
11330
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11331
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11332
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11333
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11334
 
    ac_header_preproc=yes
11335
 
    ;;
11336
 
  no:yes:* )
11337
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11338
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11339
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11340
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11341
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11342
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11343
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11344
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11345
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11346
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11347
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11348
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11349
 
 
11350
 
    ;;
11351
 
esac
11352
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11353
 
$as_echo_n "checking for $ac_header... " >&6; }
11354
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11355
 
  $as_echo_n "(cached) " >&6
11356
 
else
11357
 
  eval "$as_ac_Header=\$ac_header_preproc"
11358
 
fi
11359
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
11360
 
                 $as_echo "$as_val"'`
11361
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11362
 
$as_echo "$ac_res" >&6; }
11363
 
 
11364
 
fi
11365
 
as_val=`eval 'as_val=${'$as_ac_Header'}
11366
 
                 $as_echo "$as_val"'`
11367
 
   if test "x$as_val" = x""yes; then
11368
 
  cat >>confdefs.h <<_ACEOF
11369
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11370
 
_ACEOF
11371
 
 
11372
 
fi
11373
 
 
11374
 
done
11375
 
 
11376
 
 
11377
 
 
11378
 
 
11379
 
  :
11380
 
 
11381
 
 
11382
 
 
11383
 
 
11384
 
 
11385
 
 
11386
 
 
11387
 
     if test $gl_cv_have_include_next = yes; then
11388
 
       gl_cv_next_netinet_in_h='<'netinet/in.h'>'
11389
 
     else
11390
 
       { $as_echo "$as_me:$LINENO: checking absolute name of <netinet/in.h>" >&5
11391
 
$as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
11392
 
if test "${gl_cv_next_netinet_in_h+set}" = set; then
11393
 
  $as_echo_n "(cached) " >&6
11394
 
else
11395
 
 
11396
 
          if test $ac_cv_header_netinet_in_h = yes; then
11397
 
            cat >conftest.$ac_ext <<_ACEOF
11398
 
/* confdefs.h.  */
11399
 
_ACEOF
11400
 
cat confdefs.h >>conftest.$ac_ext
11401
 
cat >>conftest.$ac_ext <<_ACEOF
11402
 
/* end confdefs.h.  */
11403
 
#include <netinet/in.h>
11404
 
 
11405
 
_ACEOF
11406
 
                                    gl_cv_next_netinet_in_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11407
 
               sed -n '\#/netinet/in.h#{
11408
 
                 s#.*"\(.*/netinet/in.h\)".*#\1#
11409
 
                 s#^/[^/]#//&#
11410
 
                 p
11411
 
                 q
11412
 
               }'`'"'
11413
 
          else
11414
 
            gl_cv_next_netinet_in_h='<'netinet/in.h'>'
11415
 
          fi
11416
 
 
11417
 
fi
11418
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_netinet_in_h" >&5
11419
 
$as_echo "$gl_cv_next_netinet_in_h" >&6; }
11420
 
     fi
11421
 
     NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
11422
 
 
11423
 
 
11424
 
 
11425
 
    if test $ac_cv_header_netinet_in_h = yes; then
11426
 
      HAVE_NETINET_IN_H=1
11427
 
    else
11428
 
      HAVE_NETINET_IN_H=0
11429
 
    fi
11430
 
 
11431
 
  fi
11432
 
 
11433
 
 
11434
 
  { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
11435
 
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11436
 
if test -z "$MKDIR_P"; then
11437
 
  if test "${ac_cv_path_mkdir+set}" = set; then
11438
 
  $as_echo_n "(cached) " >&6
11439
 
else
11440
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11441
 
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11442
 
do
11443
 
  IFS=$as_save_IFS
11444
 
  test -z "$as_dir" && as_dir=.
11445
 
  for ac_prog in mkdir gmkdir; do
11446
 
         for ac_exec_ext in '' $ac_executable_extensions; do
11447
 
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
11448
 
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11449
 
             'mkdir (GNU coreutils) '* | \
11450
 
             'mkdir (coreutils) '* | \
11451
 
             'mkdir (fileutils) '4.1*)
11452
 
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11453
 
               break 3;;
11454
 
           esac
11455
 
         done
11456
 
       done
11457
 
done
11458
 
IFS=$as_save_IFS
11459
 
 
11460
 
fi
11461
 
 
11462
 
  if test "${ac_cv_path_mkdir+set}" = set; then
11463
 
    MKDIR_P="$ac_cv_path_mkdir -p"
11464
 
  else
11465
 
    # As a last resort, use the slow shell script.  Don't cache a
11466
 
    # value for MKDIR_P within a source directory, because that will
11467
 
    # break other packages using the cache if that directory is
11468
 
    # removed, or if the value is a relative name.
11469
 
    test -d ./--version && rmdir ./--version
11470
 
    MKDIR_P="$ac_install_sh -d"
11471
 
  fi
11472
 
fi
11473
 
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
11474
 
$as_echo "$MKDIR_P" >&6; }
11475
 
 
11476
 
 
11477
 
  if test "$ac_cv_header_winsock2_h" = yes; then
11478
 
 
11479
 
 
11480
 
 
11481
 
 
11482
 
 
11483
 
 
11484
 
 
11485
 
 
11486
 
  gl_LIBOBJS="$gl_LIBOBJS winsock.$ac_objext"
11487
 
 
11488
 
  fi
11489
 
 
11490
 
 
11491
 
  GNULIB_RECV=1
11492
 
 
11493
 
 
11494
 
cat >>confdefs.h <<\_ACEOF
11495
 
#define GNULIB_RECV 1
11496
 
_ACEOF
11497
 
 
11498
 
 
11499
 
 
11500
 
 
11501
 
  if test "$ac_cv_header_winsock2_h" = yes; then
11502
 
 
11503
 
 
11504
 
 
11505
 
 
11506
 
 
11507
 
 
11508
 
 
11509
 
 
11510
 
  gl_LIBOBJS="$gl_LIBOBJS winsock.$ac_objext"
11511
 
 
11512
 
  fi
11513
 
 
11514
 
 
11515
 
  GNULIB_SEND=1
11516
 
 
11517
 
 
11518
 
cat >>confdefs.h <<\_ACEOF
11519
 
#define GNULIB_SEND 1
11520
 
_ACEOF
11521
 
 
11522
 
 
11523
 
 
11524
 
 
11525
 
 
11526
 
for ac_header in stdint.h
11527
 
do
11528
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11529
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11530
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11531
 
$as_echo_n "checking for $ac_header... " >&6; }
11532
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11533
 
  $as_echo_n "(cached) " >&6
11534
 
fi
11535
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
11536
 
                 $as_echo "$as_val"'`
11537
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11538
 
$as_echo "$ac_res" >&6; }
11539
 
else
11540
 
  # Is the header compilable?
11541
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11542
 
$as_echo_n "checking $ac_header usability... " >&6; }
11543
 
cat >conftest.$ac_ext <<_ACEOF
11544
 
/* confdefs.h.  */
11545
 
_ACEOF
11546
 
cat confdefs.h >>conftest.$ac_ext
11547
 
cat >>conftest.$ac_ext <<_ACEOF
11548
 
/* end confdefs.h.  */
11549
 
$ac_includes_default
11550
 
#include <$ac_header>
11551
 
_ACEOF
11552
 
rm -f conftest.$ac_objext
11553
 
if { (ac_try="$ac_compile"
11554
 
case "(($ac_try" in
11555
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11556
 
  *) ac_try_echo=$ac_try;;
11557
 
esac
11558
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11559
 
$as_echo "$ac_try_echo") >&5
11560
 
  (eval "$ac_compile") 2>conftest.er1
11561
 
  ac_status=$?
11562
 
  grep -v '^ *+' conftest.er1 >conftest.err
11563
 
  rm -f conftest.er1
11564
 
  cat conftest.err >&5
11565
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566
 
  (exit $ac_status); } && {
11567
 
         test -z "$ac_c_werror_flag" ||
11568
 
         test ! -s conftest.err
11569
 
       } && test -s conftest.$ac_objext; then
11570
 
  ac_header_compiler=yes
11571
 
else
11572
 
  $as_echo "$as_me: failed program was:" >&5
11573
 
sed 's/^/| /' conftest.$ac_ext >&5
11574
 
 
11575
 
        ac_header_compiler=no
11576
 
fi
11577
 
 
11578
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11579
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11580
 
$as_echo "$ac_header_compiler" >&6; }
11581
 
 
11582
 
# Is the header present?
11583
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11584
 
$as_echo_n "checking $ac_header presence... " >&6; }
11585
 
cat >conftest.$ac_ext <<_ACEOF
11586
 
/* confdefs.h.  */
11587
 
_ACEOF
11588
 
cat confdefs.h >>conftest.$ac_ext
11589
 
cat >>conftest.$ac_ext <<_ACEOF
11590
 
/* end confdefs.h.  */
11591
 
#include <$ac_header>
11592
 
_ACEOF
11593
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
11594
 
case "(($ac_try" in
11595
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596
 
  *) ac_try_echo=$ac_try;;
11597
 
esac
11598
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11599
 
$as_echo "$ac_try_echo") >&5
11600
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11601
 
  ac_status=$?
11602
 
  grep -v '^ *+' conftest.er1 >conftest.err
11603
 
  rm -f conftest.er1
11604
 
  cat conftest.err >&5
11605
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606
 
  (exit $ac_status); } >/dev/null && {
11607
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11608
 
         test ! -s conftest.err
11609
 
       }; then
11610
 
  ac_header_preproc=yes
11611
 
else
11612
 
  $as_echo "$as_me: failed program was:" >&5
11613
 
sed 's/^/| /' conftest.$ac_ext >&5
11614
 
 
11615
 
  ac_header_preproc=no
11616
 
fi
11617
 
 
11618
 
rm -f conftest.err conftest.$ac_ext
11619
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11620
 
$as_echo "$ac_header_preproc" >&6; }
11621
 
 
11622
 
# So?  What about this header?
11623
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11624
 
  yes:no: )
11625
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11626
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11627
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11628
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11629
 
    ac_header_preproc=yes
11630
 
    ;;
11631
 
  no:yes:* )
11632
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11633
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11634
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11635
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11636
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11637
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11638
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11639
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11640
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11641
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11642
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11643
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11644
 
 
11645
 
    ;;
11646
 
esac
11647
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11648
 
$as_echo_n "checking for $ac_header... " >&6; }
11649
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11650
 
  $as_echo_n "(cached) " >&6
11651
 
else
11652
 
  eval "$as_ac_Header=\$ac_header_preproc"
11653
 
fi
11654
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
11655
 
                 $as_echo "$as_val"'`
11656
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11657
 
$as_echo "$ac_res" >&6; }
11658
 
 
11659
 
fi
11660
 
as_val=`eval 'as_val=${'$as_ac_Header'}
11661
 
                 $as_echo "$as_val"'`
11662
 
   if test "x$as_val" = x""yes; then
11663
 
  cat >>confdefs.h <<_ACEOF
11664
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11665
 
_ACEOF
11666
 
 
11667
 
fi
11668
 
 
11669
 
done
11670
 
 
11671
 
    { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
11672
 
$as_echo_n "checking for SIZE_MAX... " >&6; }
11673
 
  if test "${gl_cv_size_max+set}" = set; then
11674
 
  $as_echo_n "(cached) " >&6
11675
 
else
11676
 
 
11677
 
    gl_cv_size_max=
11678
 
    cat >conftest.$ac_ext <<_ACEOF
11679
 
/* confdefs.h.  */
11680
 
_ACEOF
11681
 
cat confdefs.h >>conftest.$ac_ext
11682
 
cat >>conftest.$ac_ext <<_ACEOF
11683
 
/* end confdefs.h.  */
11684
 
 
11685
 
#include <limits.h>
11686
 
#if HAVE_STDINT_H
11687
 
#include <stdint.h>
11688
 
#endif
11689
 
#ifdef SIZE_MAX
11690
 
Found it
11691
 
#endif
11692
 
 
11693
 
_ACEOF
11694
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11695
 
  $EGREP "Found it" >/dev/null 2>&1; then
11696
 
  gl_cv_size_max=yes
11697
 
fi
11698
 
rm -f conftest*
11699
 
 
11700
 
    if test -z "$gl_cv_size_max"; then
11701
 
                        if test "$cross_compiling" = yes; then
11702
 
  # Depending upon the size, compute the lo and hi bounds.
11703
 
cat >conftest.$ac_ext <<_ACEOF
11704
 
/* confdefs.h.  */
11705
 
_ACEOF
11706
 
cat confdefs.h >>conftest.$ac_ext
11707
 
cat >>conftest.$ac_ext <<_ACEOF
11708
 
/* end confdefs.h.  */
11709
 
#include <stddef.h>
11710
 
#include <limits.h>
11711
 
int
11712
 
main ()
11713
 
{
11714
 
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
11715
 
test_array [0] = 0
11716
 
 
11717
 
  ;
11718
 
  return 0;
11719
 
}
11720
 
_ACEOF
11721
 
rm -f conftest.$ac_objext
11722
 
if { (ac_try="$ac_compile"
11723
 
case "(($ac_try" in
11724
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725
 
  *) ac_try_echo=$ac_try;;
11726
 
esac
11727
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11728
 
$as_echo "$ac_try_echo") >&5
11729
 
  (eval "$ac_compile") 2>conftest.er1
11730
 
  ac_status=$?
11731
 
  grep -v '^ *+' conftest.er1 >conftest.err
11732
 
  rm -f conftest.er1
11733
 
  cat conftest.err >&5
11734
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735
 
  (exit $ac_status); } && {
11736
 
         test -z "$ac_c_werror_flag" ||
11737
 
         test ! -s conftest.err
11738
 
       } && test -s conftest.$ac_objext; then
11739
 
  ac_lo=0 ac_mid=0
11740
 
  while :; do
11741
 
    cat >conftest.$ac_ext <<_ACEOF
11742
 
/* confdefs.h.  */
11743
 
_ACEOF
11744
 
cat confdefs.h >>conftest.$ac_ext
11745
 
cat >>conftest.$ac_ext <<_ACEOF
11746
 
/* end confdefs.h.  */
11747
 
#include <stddef.h>
11748
 
#include <limits.h>
11749
 
int
11750
 
main ()
11751
 
{
11752
 
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
11753
 
test_array [0] = 0
11754
 
 
11755
 
  ;
11756
 
  return 0;
11757
 
}
11758
 
_ACEOF
11759
 
rm -f conftest.$ac_objext
11760
 
if { (ac_try="$ac_compile"
11761
 
case "(($ac_try" in
11762
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11763
 
  *) ac_try_echo=$ac_try;;
11764
 
esac
11765
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11766
 
$as_echo "$ac_try_echo") >&5
11767
 
  (eval "$ac_compile") 2>conftest.er1
11768
 
  ac_status=$?
11769
 
  grep -v '^ *+' conftest.er1 >conftest.err
11770
 
  rm -f conftest.er1
11771
 
  cat conftest.err >&5
11772
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773
 
  (exit $ac_status); } && {
11774
 
         test -z "$ac_c_werror_flag" ||
11775
 
         test ! -s conftest.err
11776
 
       } && test -s conftest.$ac_objext; then
11777
 
  ac_hi=$ac_mid; break
11778
 
else
11779
 
  $as_echo "$as_me: failed program was:" >&5
11780
 
sed 's/^/| /' conftest.$ac_ext >&5
11781
 
 
11782
 
        ac_lo=`expr $ac_mid + 1`
11783
 
                        if test $ac_lo -le $ac_mid; then
11784
 
                          ac_lo= ac_hi=
11785
 
                          break
11786
 
                        fi
11787
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
11788
 
fi
11789
 
 
11790
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11791
 
  done
11792
 
else
11793
 
  $as_echo "$as_me: failed program was:" >&5
11794
 
sed 's/^/| /' conftest.$ac_ext >&5
11795
 
 
11796
 
        cat >conftest.$ac_ext <<_ACEOF
11797
 
/* confdefs.h.  */
11798
 
_ACEOF
11799
 
cat confdefs.h >>conftest.$ac_ext
11800
 
cat >>conftest.$ac_ext <<_ACEOF
11801
 
/* end confdefs.h.  */
11802
 
#include <stddef.h>
11803
 
#include <limits.h>
11804
 
int
11805
 
main ()
11806
 
{
11807
 
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
11808
 
test_array [0] = 0
11809
 
 
11810
 
  ;
11811
 
  return 0;
11812
 
}
11813
 
_ACEOF
11814
 
rm -f conftest.$ac_objext
11815
 
if { (ac_try="$ac_compile"
11816
 
case "(($ac_try" in
11817
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818
 
  *) ac_try_echo=$ac_try;;
11819
 
esac
11820
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11821
 
$as_echo "$ac_try_echo") >&5
11822
 
  (eval "$ac_compile") 2>conftest.er1
11823
 
  ac_status=$?
11824
 
  grep -v '^ *+' conftest.er1 >conftest.err
11825
 
  rm -f conftest.er1
11826
 
  cat conftest.err >&5
11827
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828
 
  (exit $ac_status); } && {
11829
 
         test -z "$ac_c_werror_flag" ||
11830
 
         test ! -s conftest.err
11831
 
       } && test -s conftest.$ac_objext; then
11832
 
  ac_hi=-1 ac_mid=-1
11833
 
  while :; do
11834
 
    cat >conftest.$ac_ext <<_ACEOF
11835
 
/* confdefs.h.  */
11836
 
_ACEOF
11837
 
cat confdefs.h >>conftest.$ac_ext
11838
 
cat >>conftest.$ac_ext <<_ACEOF
11839
 
/* end confdefs.h.  */
11840
 
#include <stddef.h>
11841
 
#include <limits.h>
11842
 
int
11843
 
main ()
11844
 
{
11845
 
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
11846
 
test_array [0] = 0
11847
 
 
11848
 
  ;
11849
 
  return 0;
11850
 
}
11851
 
_ACEOF
11852
 
rm -f conftest.$ac_objext
11853
 
if { (ac_try="$ac_compile"
11854
 
case "(($ac_try" in
11855
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11856
 
  *) ac_try_echo=$ac_try;;
11857
 
esac
11858
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11859
 
$as_echo "$ac_try_echo") >&5
11860
 
  (eval "$ac_compile") 2>conftest.er1
11861
 
  ac_status=$?
11862
 
  grep -v '^ *+' conftest.er1 >conftest.err
11863
 
  rm -f conftest.er1
11864
 
  cat conftest.err >&5
11865
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866
 
  (exit $ac_status); } && {
11867
 
         test -z "$ac_c_werror_flag" ||
11868
 
         test ! -s conftest.err
11869
 
       } && test -s conftest.$ac_objext; then
11870
 
  ac_lo=$ac_mid; break
11871
 
else
11872
 
  $as_echo "$as_me: failed program was:" >&5
11873
 
sed 's/^/| /' conftest.$ac_ext >&5
11874
 
 
11875
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
11876
 
                        if test $ac_mid -le $ac_hi; then
11877
 
                          ac_lo= ac_hi=
11878
 
                          break
11879
 
                        fi
11880
 
                        ac_mid=`expr 2 '*' $ac_mid`
11881
 
fi
11882
 
 
11883
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11884
 
  done
11885
 
else
11886
 
  $as_echo "$as_me: failed program was:" >&5
11887
 
sed 's/^/| /' conftest.$ac_ext >&5
11888
 
 
11889
 
        ac_lo= ac_hi=
11890
 
fi
11891
 
 
11892
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11893
 
fi
11894
 
 
11895
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11896
 
# Binary search between lo and hi bounds.
11897
 
while test "x$ac_lo" != "x$ac_hi"; do
11898
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11899
 
  cat >conftest.$ac_ext <<_ACEOF
11900
 
/* confdefs.h.  */
11901
 
_ACEOF
11902
 
cat confdefs.h >>conftest.$ac_ext
11903
 
cat >>conftest.$ac_ext <<_ACEOF
11904
 
/* end confdefs.h.  */
11905
 
#include <stddef.h>
11906
 
#include <limits.h>
11907
 
int
11908
 
main ()
11909
 
{
11910
 
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
11911
 
test_array [0] = 0
11912
 
 
11913
 
  ;
11914
 
  return 0;
11915
 
}
11916
 
_ACEOF
11917
 
rm -f conftest.$ac_objext
11918
 
if { (ac_try="$ac_compile"
11919
 
case "(($ac_try" in
11920
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921
 
  *) ac_try_echo=$ac_try;;
11922
 
esac
11923
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11924
 
$as_echo "$ac_try_echo") >&5
11925
 
  (eval "$ac_compile") 2>conftest.er1
11926
 
  ac_status=$?
11927
 
  grep -v '^ *+' conftest.er1 >conftest.err
11928
 
  rm -f conftest.er1
11929
 
  cat conftest.err >&5
11930
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931
 
  (exit $ac_status); } && {
11932
 
         test -z "$ac_c_werror_flag" ||
11933
 
         test ! -s conftest.err
11934
 
       } && test -s conftest.$ac_objext; then
11935
 
  ac_hi=$ac_mid
11936
 
else
11937
 
  $as_echo "$as_me: failed program was:" >&5
11938
 
sed 's/^/| /' conftest.$ac_ext >&5
11939
 
 
11940
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
11941
 
fi
11942
 
 
11943
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11944
 
done
11945
 
case $ac_lo in
11946
 
?*) size_t_bits_minus_1=$ac_lo;;
11947
 
'') size_t_bits_minus_1= ;;
11948
 
esac
11949
 
else
11950
 
  cat >conftest.$ac_ext <<_ACEOF
11951
 
/* confdefs.h.  */
11952
 
_ACEOF
11953
 
cat confdefs.h >>conftest.$ac_ext
11954
 
cat >>conftest.$ac_ext <<_ACEOF
11955
 
/* end confdefs.h.  */
11956
 
#include <stddef.h>
11957
 
#include <limits.h>
11958
 
static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
11959
 
static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
11960
 
#include <stdio.h>
11961
 
#include <stdlib.h>
11962
 
int
11963
 
main ()
11964
 
{
11965
 
 
11966
 
  FILE *f = fopen ("conftest.val", "w");
11967
 
  if (! f)
11968
 
    return 1;
11969
 
  if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
11970
 
    {
11971
 
      long int i = longval ();
11972
 
      if (i != (sizeof (size_t) * CHAR_BIT - 1))
11973
 
        return 1;
11974
 
      fprintf (f, "%ld", i);
11975
 
    }
11976
 
  else
11977
 
    {
11978
 
      unsigned long int i = ulongval ();
11979
 
      if (i != (sizeof (size_t) * CHAR_BIT - 1))
11980
 
        return 1;
11981
 
      fprintf (f, "%lu", i);
11982
 
    }
11983
 
  /* Do not output a trailing newline, as this causes \r\n confusion
11984
 
     on some platforms.  */
11985
 
  return ferror (f) || fclose (f) != 0;
11986
 
 
11987
 
  ;
11988
 
  return 0;
11989
 
}
11990
 
_ACEOF
11991
 
rm -f conftest$ac_exeext
11992
 
if { (ac_try="$ac_link"
11993
 
case "(($ac_try" in
11994
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11995
 
  *) ac_try_echo=$ac_try;;
11996
 
esac
11997
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11998
 
$as_echo "$ac_try_echo") >&5
11999
 
  (eval "$ac_link") 2>&5
12000
 
  ac_status=$?
12001
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12003
 
  { (case "(($ac_try" in
12004
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12005
 
  *) ac_try_echo=$ac_try;;
12006
 
esac
12007
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12008
 
$as_echo "$ac_try_echo") >&5
12009
 
  (eval "$ac_try") 2>&5
12010
 
  ac_status=$?
12011
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012
 
  (exit $ac_status); }; }; then
12013
 
  size_t_bits_minus_1=`cat conftest.val`
12014
 
else
12015
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
12016
 
$as_echo "$as_me: failed program was:" >&5
12017
 
sed 's/^/| /' conftest.$ac_ext >&5
12018
 
 
12019
 
( exit $ac_status )
12020
 
size_t_bits_minus_1=
12021
 
fi
12022
 
rm -rf conftest.dSYM
12023
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12024
 
fi
12025
 
rm -f conftest.val
12026
 
      if test "$cross_compiling" = yes; then
12027
 
  # Depending upon the size, compute the lo and hi bounds.
12028
 
cat >conftest.$ac_ext <<_ACEOF
12029
 
/* confdefs.h.  */
12030
 
_ACEOF
12031
 
cat confdefs.h >>conftest.$ac_ext
12032
 
cat >>conftest.$ac_ext <<_ACEOF
12033
 
/* end confdefs.h.  */
12034
 
#include <stddef.h>
12035
 
int
12036
 
main ()
12037
 
{
12038
 
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
12039
 
test_array [0] = 0
12040
 
 
12041
 
  ;
12042
 
  return 0;
12043
 
}
12044
 
_ACEOF
12045
 
rm -f conftest.$ac_objext
12046
 
if { (ac_try="$ac_compile"
12047
 
case "(($ac_try" in
12048
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12049
 
  *) ac_try_echo=$ac_try;;
12050
 
esac
12051
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12052
 
$as_echo "$ac_try_echo") >&5
12053
 
  (eval "$ac_compile") 2>conftest.er1
12054
 
  ac_status=$?
12055
 
  grep -v '^ *+' conftest.er1 >conftest.err
12056
 
  rm -f conftest.er1
12057
 
  cat conftest.err >&5
12058
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059
 
  (exit $ac_status); } && {
12060
 
         test -z "$ac_c_werror_flag" ||
12061
 
         test ! -s conftest.err
12062
 
       } && test -s conftest.$ac_objext; then
12063
 
  ac_lo=0 ac_mid=0
12064
 
  while :; do
12065
 
    cat >conftest.$ac_ext <<_ACEOF
12066
 
/* confdefs.h.  */
12067
 
_ACEOF
12068
 
cat confdefs.h >>conftest.$ac_ext
12069
 
cat >>conftest.$ac_ext <<_ACEOF
12070
 
/* end confdefs.h.  */
12071
 
#include <stddef.h>
12072
 
int
12073
 
main ()
12074
 
{
12075
 
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
12076
 
test_array [0] = 0
12077
 
 
12078
 
  ;
12079
 
  return 0;
12080
 
}
12081
 
_ACEOF
12082
 
rm -f conftest.$ac_objext
12083
 
if { (ac_try="$ac_compile"
12084
 
case "(($ac_try" in
12085
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12086
 
  *) ac_try_echo=$ac_try;;
12087
 
esac
12088
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12089
 
$as_echo "$ac_try_echo") >&5
12090
 
  (eval "$ac_compile") 2>conftest.er1
12091
 
  ac_status=$?
12092
 
  grep -v '^ *+' conftest.er1 >conftest.err
12093
 
  rm -f conftest.er1
12094
 
  cat conftest.err >&5
12095
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096
 
  (exit $ac_status); } && {
12097
 
         test -z "$ac_c_werror_flag" ||
12098
 
         test ! -s conftest.err
12099
 
       } && test -s conftest.$ac_objext; then
12100
 
  ac_hi=$ac_mid; break
12101
 
else
12102
 
  $as_echo "$as_me: failed program was:" >&5
12103
 
sed 's/^/| /' conftest.$ac_ext >&5
12104
 
 
12105
 
        ac_lo=`expr $ac_mid + 1`
12106
 
                        if test $ac_lo -le $ac_mid; then
12107
 
                          ac_lo= ac_hi=
12108
 
                          break
12109
 
                        fi
12110
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
12111
 
fi
12112
 
 
12113
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12114
 
  done
12115
 
else
12116
 
  $as_echo "$as_me: failed program was:" >&5
12117
 
sed 's/^/| /' conftest.$ac_ext >&5
12118
 
 
12119
 
        cat >conftest.$ac_ext <<_ACEOF
12120
 
/* confdefs.h.  */
12121
 
_ACEOF
12122
 
cat confdefs.h >>conftest.$ac_ext
12123
 
cat >>conftest.$ac_ext <<_ACEOF
12124
 
/* end confdefs.h.  */
12125
 
#include <stddef.h>
12126
 
int
12127
 
main ()
12128
 
{
12129
 
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
12130
 
test_array [0] = 0
12131
 
 
12132
 
  ;
12133
 
  return 0;
12134
 
}
12135
 
_ACEOF
12136
 
rm -f conftest.$ac_objext
12137
 
if { (ac_try="$ac_compile"
12138
 
case "(($ac_try" in
12139
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140
 
  *) ac_try_echo=$ac_try;;
12141
 
esac
12142
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12143
 
$as_echo "$ac_try_echo") >&5
12144
 
  (eval "$ac_compile") 2>conftest.er1
12145
 
  ac_status=$?
12146
 
  grep -v '^ *+' conftest.er1 >conftest.err
12147
 
  rm -f conftest.er1
12148
 
  cat conftest.err >&5
12149
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150
 
  (exit $ac_status); } && {
12151
 
         test -z "$ac_c_werror_flag" ||
12152
 
         test ! -s conftest.err
12153
 
       } && test -s conftest.$ac_objext; then
12154
 
  ac_hi=-1 ac_mid=-1
12155
 
  while :; do
12156
 
    cat >conftest.$ac_ext <<_ACEOF
12157
 
/* confdefs.h.  */
12158
 
_ACEOF
12159
 
cat confdefs.h >>conftest.$ac_ext
12160
 
cat >>conftest.$ac_ext <<_ACEOF
12161
 
/* end confdefs.h.  */
12162
 
#include <stddef.h>
12163
 
int
12164
 
main ()
12165
 
{
12166
 
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
12167
 
test_array [0] = 0
12168
 
 
12169
 
  ;
12170
 
  return 0;
12171
 
}
12172
 
_ACEOF
12173
 
rm -f conftest.$ac_objext
12174
 
if { (ac_try="$ac_compile"
12175
 
case "(($ac_try" in
12176
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177
 
  *) ac_try_echo=$ac_try;;
12178
 
esac
12179
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12180
 
$as_echo "$ac_try_echo") >&5
12181
 
  (eval "$ac_compile") 2>conftest.er1
12182
 
  ac_status=$?
12183
 
  grep -v '^ *+' conftest.er1 >conftest.err
12184
 
  rm -f conftest.er1
12185
 
  cat conftest.err >&5
12186
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187
 
  (exit $ac_status); } && {
12188
 
         test -z "$ac_c_werror_flag" ||
12189
 
         test ! -s conftest.err
12190
 
       } && test -s conftest.$ac_objext; then
12191
 
  ac_lo=$ac_mid; break
12192
 
else
12193
 
  $as_echo "$as_me: failed program was:" >&5
12194
 
sed 's/^/| /' conftest.$ac_ext >&5
12195
 
 
12196
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
12197
 
                        if test $ac_mid -le $ac_hi; then
12198
 
                          ac_lo= ac_hi=
12199
 
                          break
12200
 
                        fi
12201
 
                        ac_mid=`expr 2 '*' $ac_mid`
12202
 
fi
12203
 
 
12204
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12205
 
  done
12206
 
else
12207
 
  $as_echo "$as_me: failed program was:" >&5
12208
 
sed 's/^/| /' conftest.$ac_ext >&5
12209
 
 
12210
 
        ac_lo= ac_hi=
12211
 
fi
12212
 
 
12213
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12214
 
fi
12215
 
 
12216
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12217
 
# Binary search between lo and hi bounds.
12218
 
while test "x$ac_lo" != "x$ac_hi"; do
12219
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12220
 
  cat >conftest.$ac_ext <<_ACEOF
12221
 
/* confdefs.h.  */
12222
 
_ACEOF
12223
 
cat confdefs.h >>conftest.$ac_ext
12224
 
cat >>conftest.$ac_ext <<_ACEOF
12225
 
/* end confdefs.h.  */
12226
 
#include <stddef.h>
12227
 
int
12228
 
main ()
12229
 
{
12230
 
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
12231
 
test_array [0] = 0
12232
 
 
12233
 
  ;
12234
 
  return 0;
12235
 
}
12236
 
_ACEOF
12237
 
rm -f conftest.$ac_objext
12238
 
if { (ac_try="$ac_compile"
12239
 
case "(($ac_try" in
12240
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12241
 
  *) ac_try_echo=$ac_try;;
12242
 
esac
12243
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12244
 
$as_echo "$ac_try_echo") >&5
12245
 
  (eval "$ac_compile") 2>conftest.er1
12246
 
  ac_status=$?
12247
 
  grep -v '^ *+' conftest.er1 >conftest.err
12248
 
  rm -f conftest.er1
12249
 
  cat conftest.err >&5
12250
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251
 
  (exit $ac_status); } && {
12252
 
         test -z "$ac_c_werror_flag" ||
12253
 
         test ! -s conftest.err
12254
 
       } && test -s conftest.$ac_objext; then
12255
 
  ac_hi=$ac_mid
12256
 
else
12257
 
  $as_echo "$as_me: failed program was:" >&5
12258
 
sed 's/^/| /' conftest.$ac_ext >&5
12259
 
 
12260
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
12261
 
fi
12262
 
 
12263
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12264
 
done
12265
 
case $ac_lo in
12266
 
?*) fits_in_uint=$ac_lo;;
12267
 
'') fits_in_uint= ;;
12268
 
esac
12269
 
else
12270
 
  cat >conftest.$ac_ext <<_ACEOF
12271
 
/* confdefs.h.  */
12272
 
_ACEOF
12273
 
cat confdefs.h >>conftest.$ac_ext
12274
 
cat >>conftest.$ac_ext <<_ACEOF
12275
 
/* end confdefs.h.  */
12276
 
#include <stddef.h>
12277
 
static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
12278
 
static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
12279
 
#include <stdio.h>
12280
 
#include <stdlib.h>
12281
 
int
12282
 
main ()
12283
 
{
12284
 
 
12285
 
  FILE *f = fopen ("conftest.val", "w");
12286
 
  if (! f)
12287
 
    return 1;
12288
 
  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
12289
 
    {
12290
 
      long int i = longval ();
12291
 
      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
12292
 
        return 1;
12293
 
      fprintf (f, "%ld", i);
12294
 
    }
12295
 
  else
12296
 
    {
12297
 
      unsigned long int i = ulongval ();
12298
 
      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
12299
 
        return 1;
12300
 
      fprintf (f, "%lu", i);
12301
 
    }
12302
 
  /* Do not output a trailing newline, as this causes \r\n confusion
12303
 
     on some platforms.  */
12304
 
  return ferror (f) || fclose (f) != 0;
12305
 
 
12306
 
  ;
12307
 
  return 0;
12308
 
}
12309
 
_ACEOF
12310
 
rm -f conftest$ac_exeext
12311
 
if { (ac_try="$ac_link"
12312
 
case "(($ac_try" in
12313
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12314
 
  *) ac_try_echo=$ac_try;;
12315
 
esac
12316
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12317
 
$as_echo "$ac_try_echo") >&5
12318
 
  (eval "$ac_link") 2>&5
12319
 
  ac_status=$?
12320
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12322
 
  { (case "(($ac_try" in
12323
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12324
 
  *) ac_try_echo=$ac_try;;
12325
 
esac
12326
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12327
 
$as_echo "$ac_try_echo") >&5
12328
 
  (eval "$ac_try") 2>&5
12329
 
  ac_status=$?
12330
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331
 
  (exit $ac_status); }; }; then
12332
 
  fits_in_uint=`cat conftest.val`
12333
 
else
12334
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
12335
 
$as_echo "$as_me: failed program was:" >&5
12336
 
sed 's/^/| /' conftest.$ac_ext >&5
12337
 
 
12338
 
( exit $ac_status )
12339
 
fits_in_uint=
12340
 
fi
12341
 
rm -rf conftest.dSYM
12342
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12343
 
fi
12344
 
rm -f conftest.val
12345
 
      if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
12346
 
        if test $fits_in_uint = 1; then
12347
 
                              cat >conftest.$ac_ext <<_ACEOF
12348
 
/* confdefs.h.  */
12349
 
_ACEOF
12350
 
cat confdefs.h >>conftest.$ac_ext
12351
 
cat >>conftest.$ac_ext <<_ACEOF
12352
 
/* end confdefs.h.  */
12353
 
#include <stddef.h>
12354
 
            extern size_t foo;
12355
 
            extern unsigned long foo;
12356
 
 
12357
 
int
12358
 
main ()
12359
 
{
12360
 
 
12361
 
  ;
12362
 
  return 0;
12363
 
}
12364
 
_ACEOF
12365
 
rm -f conftest.$ac_objext
12366
 
if { (ac_try="$ac_compile"
12367
 
case "(($ac_try" in
12368
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12369
 
  *) ac_try_echo=$ac_try;;
12370
 
esac
12371
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12372
 
$as_echo "$ac_try_echo") >&5
12373
 
  (eval "$ac_compile") 2>conftest.er1
12374
 
  ac_status=$?
12375
 
  grep -v '^ *+' conftest.er1 >conftest.err
12376
 
  rm -f conftest.er1
12377
 
  cat conftest.err >&5
12378
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379
 
  (exit $ac_status); } && {
12380
 
         test -z "$ac_c_werror_flag" ||
12381
 
         test ! -s conftest.err
12382
 
       } && test -s conftest.$ac_objext; then
12383
 
  fits_in_uint=0
12384
 
else
12385
 
  $as_echo "$as_me: failed program was:" >&5
12386
 
sed 's/^/| /' conftest.$ac_ext >&5
12387
 
 
12388
 
 
12389
 
fi
12390
 
 
12391
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12392
 
        fi
12393
 
                                if test $fits_in_uint = 1; then
12394
 
          gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
12395
 
        else
12396
 
          gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
12397
 
        fi
12398
 
      else
12399
 
                gl_cv_size_max='((size_t)~(size_t)0)'
12400
 
      fi
12401
 
    fi
12402
 
 
12403
 
fi
12404
 
 
12405
 
  { $as_echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
12406
 
$as_echo "$gl_cv_size_max" >&6; }
12407
 
  if test "$gl_cv_size_max" != yes; then
12408
 
 
12409
 
cat >>confdefs.h <<_ACEOF
12410
 
#define SIZE_MAX $gl_cv_size_max
12411
 
_ACEOF
12412
 
 
12413
 
  fi
12414
 
 
12415
 
 
12416
 
 
12417
 
  gl_cv_func_snprintf_usable=no
12418
 
 
12419
 
for ac_func in snprintf
12420
 
do
12421
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12422
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12423
 
$as_echo_n "checking for $ac_func... " >&6; }
12424
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12425
 
  $as_echo_n "(cached) " >&6
12426
 
else
12427
 
  cat >conftest.$ac_ext <<_ACEOF
12428
 
/* confdefs.h.  */
12429
 
_ACEOF
12430
 
cat confdefs.h >>conftest.$ac_ext
12431
 
cat >>conftest.$ac_ext <<_ACEOF
12432
 
/* end confdefs.h.  */
12433
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12434
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12435
 
#define $ac_func innocuous_$ac_func
12436
 
 
12437
 
/* System header to define __stub macros and hopefully few prototypes,
12438
 
    which can conflict with char $ac_func (); below.
12439
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12440
 
    <limits.h> exists even on freestanding compilers.  */
12441
 
 
12442
 
#ifdef __STDC__
12443
 
# include <limits.h>
12444
 
#else
12445
 
# include <assert.h>
12446
 
#endif
12447
 
 
12448
 
#undef $ac_func
12449
 
 
12450
 
/* Override any GCC internal prototype to avoid an error.
12451
 
   Use char because int might match the return type of a GCC
12452
 
   builtin and then its argument prototype would still apply.  */
12453
 
#ifdef __cplusplus
12454
 
extern "C"
12455
 
#endif
12456
 
char $ac_func ();
12457
 
/* The GNU C library defines this for functions which it implements
12458
 
    to always fail with ENOSYS.  Some functions are actually named
12459
 
    something starting with __ and the normal name is an alias.  */
12460
 
#if defined __stub_$ac_func || defined __stub___$ac_func
12461
 
choke me
12462
 
#endif
12463
 
 
12464
 
int
12465
 
main ()
12466
 
{
12467
 
return $ac_func ();
12468
 
  ;
12469
 
  return 0;
12470
 
}
12471
 
_ACEOF
12472
 
rm -f conftest.$ac_objext conftest$ac_exeext
12473
 
if { (ac_try="$ac_link"
12474
 
case "(($ac_try" in
12475
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12476
 
  *) ac_try_echo=$ac_try;;
12477
 
esac
12478
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12479
 
$as_echo "$ac_try_echo") >&5
12480
 
  (eval "$ac_link") 2>conftest.er1
12481
 
  ac_status=$?
12482
 
  grep -v '^ *+' conftest.er1 >conftest.err
12483
 
  rm -f conftest.er1
12484
 
  cat conftest.err >&5
12485
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486
 
  (exit $ac_status); } && {
12487
 
         test -z "$ac_c_werror_flag" ||
12488
 
         test ! -s conftest.err
12489
 
       } && test -s conftest$ac_exeext && {
12490
 
         test "$cross_compiling" = yes ||
12491
 
         $as_test_x conftest$ac_exeext
12492
 
       }; then
12493
 
  eval "$as_ac_var=yes"
12494
 
else
12495
 
  $as_echo "$as_me: failed program was:" >&5
12496
 
sed 's/^/| /' conftest.$ac_ext >&5
12497
 
 
12498
 
        eval "$as_ac_var=no"
12499
 
fi
12500
 
 
12501
 
rm -rf conftest.dSYM
12502
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12503
 
      conftest$ac_exeext conftest.$ac_ext
12504
 
fi
12505
 
ac_res=`eval 'as_val=${'$as_ac_var'}
12506
 
                 $as_echo "$as_val"'`
12507
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12508
 
$as_echo "$ac_res" >&6; }
12509
 
as_val=`eval 'as_val=${'$as_ac_var'}
12510
 
                 $as_echo "$as_val"'`
12511
 
   if test "x$as_val" = x""yes; then
12512
 
  cat >>confdefs.h <<_ACEOF
12513
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12514
 
_ACEOF
12515
 
 
12516
 
fi
12517
 
done
12518
 
 
12519
 
  if test $ac_cv_func_snprintf = yes; then
12520
 
 
12521
 
 
12522
 
  { $as_echo "$as_me:$LINENO: checking whether snprintf respects a size of 1" >&5
12523
 
$as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
12524
 
if test "${gl_cv_func_snprintf_size1+set}" = set; then
12525
 
  $as_echo_n "(cached) " >&6
12526
 
else
12527
 
 
12528
 
      if test "$cross_compiling" = yes; then
12529
 
  gl_cv_func_snprintf_size1="guessing yes"
12530
 
else
12531
 
  cat >conftest.$ac_ext <<_ACEOF
12532
 
/* confdefs.h.  */
12533
 
_ACEOF
12534
 
cat confdefs.h >>conftest.$ac_ext
12535
 
cat >>conftest.$ac_ext <<_ACEOF
12536
 
/* end confdefs.h.  */
12537
 
 
12538
 
#include <stdio.h>
12539
 
int main()
12540
 
{
12541
 
  static char buf[8] = "DEADBEEF";
12542
 
  snprintf (buf, 1, "%d", 12345);
12543
 
  return buf[1] != 'E';
12544
 
}
12545
 
_ACEOF
12546
 
rm -f conftest$ac_exeext
12547
 
if { (ac_try="$ac_link"
12548
 
case "(($ac_try" in
12549
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12550
 
  *) ac_try_echo=$ac_try;;
12551
 
esac
12552
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12553
 
$as_echo "$ac_try_echo") >&5
12554
 
  (eval "$ac_link") 2>&5
12555
 
  ac_status=$?
12556
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12558
 
  { (case "(($ac_try" in
12559
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560
 
  *) ac_try_echo=$ac_try;;
12561
 
esac
12562
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12563
 
$as_echo "$ac_try_echo") >&5
12564
 
  (eval "$ac_try") 2>&5
12565
 
  ac_status=$?
12566
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567
 
  (exit $ac_status); }; }; then
12568
 
  gl_cv_func_snprintf_size1=yes
12569
 
else
12570
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
12571
 
$as_echo "$as_me: failed program was:" >&5
12572
 
sed 's/^/| /' conftest.$ac_ext >&5
12573
 
 
12574
 
( exit $ac_status )
12575
 
gl_cv_func_snprintf_size1=no
12576
 
fi
12577
 
rm -rf conftest.dSYM
12578
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12579
 
fi
12580
 
 
12581
 
 
12582
 
 
12583
 
fi
12584
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_size1" >&5
12585
 
$as_echo "$gl_cv_func_snprintf_size1" >&6; }
12586
 
 
12587
 
    case "$gl_cv_func_snprintf_size1" in
12588
 
      *yes)
12589
 
        gl_cv_func_snprintf_usable=yes
12590
 
        ;;
12591
 
    esac
12592
 
  fi
12593
 
  if test $gl_cv_func_snprintf_usable = no; then
12594
 
 
12595
 
 
12596
 
 
12597
 
 
12598
 
 
12599
 
 
12600
 
 
12601
 
 
12602
 
 
12603
 
 
12604
 
  gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
12605
 
 
12606
 
  if test $ac_cv_func_snprintf = yes; then
12607
 
    REPLACE_SNPRINTF=1
12608
 
  fi
12609
 
  :
12610
 
 
12611
 
  fi
12612
 
 
12613
 
  :
12614
 
 
12615
 
 
12616
 
 
12617
 
 
12618
 
 
12619
 
  if test $ac_cv_have_decl_snprintf = no; then
12620
 
    HAVE_DECL_SNPRINTF=0
12621
 
  fi
12622
 
 
12623
 
 
12624
 
 
12625
 
  GNULIB_SNPRINTF=1
12626
 
 
12627
 
 
12628
 
  if test "$ac_cv_header_winsock2_h" = yes; then
12629
 
 
12630
 
 
12631
 
 
12632
 
 
12633
 
 
12634
 
 
12635
 
 
12636
 
 
12637
 
  gl_LIBOBJS="$gl_LIBOBJS winsock.$ac_objext"
12638
 
 
12639
 
  fi
12640
 
 
12641
 
 
12642
 
  GNULIB_SOCKET=1
12643
 
 
12644
 
 
12645
 
cat >>confdefs.h <<\_ACEOF
12646
 
#define GNULIB_SOCKET 1
12647
 
_ACEOF
12648
 
 
12649
 
 
12650
 
 
12651
 
     { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
12652
 
$as_echo_n "checking for socklen_t... " >&6; }
12653
 
if test "${ac_cv_type_socklen_t+set}" = set; then
12654
 
  $as_echo_n "(cached) " >&6
12655
 
else
12656
 
  ac_cv_type_socklen_t=no
12657
 
cat >conftest.$ac_ext <<_ACEOF
12658
 
/* confdefs.h.  */
12659
 
_ACEOF
12660
 
cat confdefs.h >>conftest.$ac_ext
12661
 
cat >>conftest.$ac_ext <<_ACEOF
12662
 
/* end confdefs.h.  */
12663
 
#include <sys/types.h>
12664
 
      #if HAVE_SYS_SOCKET_H
12665
 
      # include <sys/socket.h>
12666
 
      #elif HAVE_WS2TCPIP_H
12667
 
      # include <ws2tcpip.h>
12668
 
      #endif
12669
 
 
12670
 
int
12671
 
main ()
12672
 
{
12673
 
if (sizeof (socklen_t))
12674
 
       return 0;
12675
 
  ;
12676
 
  return 0;
12677
 
}
12678
 
_ACEOF
12679
 
rm -f conftest.$ac_objext
12680
 
if { (ac_try="$ac_compile"
12681
 
case "(($ac_try" in
12682
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683
 
  *) ac_try_echo=$ac_try;;
12684
 
esac
12685
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12686
 
$as_echo "$ac_try_echo") >&5
12687
 
  (eval "$ac_compile") 2>conftest.er1
12688
 
  ac_status=$?
12689
 
  grep -v '^ *+' conftest.er1 >conftest.err
12690
 
  rm -f conftest.er1
12691
 
  cat conftest.err >&5
12692
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693
 
  (exit $ac_status); } && {
12694
 
         test -z "$ac_c_werror_flag" ||
12695
 
         test ! -s conftest.err
12696
 
       } && test -s conftest.$ac_objext; then
12697
 
  cat >conftest.$ac_ext <<_ACEOF
12698
 
/* confdefs.h.  */
12699
 
_ACEOF
12700
 
cat confdefs.h >>conftest.$ac_ext
12701
 
cat >>conftest.$ac_ext <<_ACEOF
12702
 
/* end confdefs.h.  */
12703
 
#include <sys/types.h>
12704
 
      #if HAVE_SYS_SOCKET_H
12705
 
      # include <sys/socket.h>
12706
 
      #elif HAVE_WS2TCPIP_H
12707
 
      # include <ws2tcpip.h>
12708
 
      #endif
12709
 
 
12710
 
int
12711
 
main ()
12712
 
{
12713
 
if (sizeof ((socklen_t)))
12714
 
          return 0;
12715
 
  ;
12716
 
  return 0;
12717
 
}
12718
 
_ACEOF
12719
 
rm -f conftest.$ac_objext
12720
 
if { (ac_try="$ac_compile"
12721
 
case "(($ac_try" in
12722
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12723
 
  *) ac_try_echo=$ac_try;;
12724
 
esac
12725
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12726
 
$as_echo "$ac_try_echo") >&5
12727
 
  (eval "$ac_compile") 2>conftest.er1
12728
 
  ac_status=$?
12729
 
  grep -v '^ *+' conftest.er1 >conftest.err
12730
 
  rm -f conftest.er1
12731
 
  cat conftest.err >&5
12732
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733
 
  (exit $ac_status); } && {
12734
 
         test -z "$ac_c_werror_flag" ||
12735
 
         test ! -s conftest.err
12736
 
       } && test -s conftest.$ac_objext; then
12737
 
  :
12738
 
else
12739
 
  $as_echo "$as_me: failed program was:" >&5
12740
 
sed 's/^/| /' conftest.$ac_ext >&5
12741
 
 
12742
 
        ac_cv_type_socklen_t=yes
12743
 
fi
12744
 
 
12745
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12746
 
else
12747
 
  $as_echo "$as_me: failed program was:" >&5
12748
 
sed 's/^/| /' conftest.$ac_ext >&5
12749
 
 
12750
 
 
12751
 
fi
12752
 
 
12753
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12754
 
fi
12755
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
12756
 
$as_echo "$ac_cv_type_socklen_t" >&6; }
12757
 
if test "x$ac_cv_type_socklen_t" = x""yes; then
12758
 
  :
12759
 
else
12760
 
  { $as_echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
12761
 
$as_echo_n "checking for socklen_t equivalent... " >&6; }
12762
 
      if test "${gl_cv_socklen_t_equiv+set}" = set; then
12763
 
  $as_echo_n "(cached) " >&6
12764
 
else
12765
 
  # Systems have either "struct sockaddr *" or
12766
 
         # "void *" as the second argument to getpeername
12767
 
         gl_cv_socklen_t_equiv=
12768
 
         for arg2 in "struct sockaddr" void; do
12769
 
           for t in int size_t "unsigned int" "long int" "unsigned long int"; do
12770
 
             cat >conftest.$ac_ext <<_ACEOF
12771
 
/* confdefs.h.  */
12772
 
_ACEOF
12773
 
cat confdefs.h >>conftest.$ac_ext
12774
 
cat >>conftest.$ac_ext <<_ACEOF
12775
 
/* end confdefs.h.  */
12776
 
#include <sys/types.h>
12777
 
                #include <sys/socket.h>
12778
 
 
12779
 
                int getpeername (int, $arg2 *, $t *);
12780
 
int
12781
 
main ()
12782
 
{
12783
 
$t len;
12784
 
                getpeername (0, 0, &len);
12785
 
  ;
12786
 
  return 0;
12787
 
}
12788
 
_ACEOF
12789
 
rm -f conftest.$ac_objext
12790
 
if { (ac_try="$ac_compile"
12791
 
case "(($ac_try" in
12792
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12793
 
  *) ac_try_echo=$ac_try;;
12794
 
esac
12795
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12796
 
$as_echo "$ac_try_echo") >&5
12797
 
  (eval "$ac_compile") 2>conftest.er1
12798
 
  ac_status=$?
12799
 
  grep -v '^ *+' conftest.er1 >conftest.err
12800
 
  rm -f conftest.er1
12801
 
  cat conftest.err >&5
12802
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803
 
  (exit $ac_status); } && {
12804
 
         test -z "$ac_c_werror_flag" ||
12805
 
         test ! -s conftest.err
12806
 
       } && test -s conftest.$ac_objext; then
12807
 
  gl_cv_socklen_t_equiv="$t"
12808
 
else
12809
 
  $as_echo "$as_me: failed program was:" >&5
12810
 
sed 's/^/| /' conftest.$ac_ext >&5
12811
 
 
12812
 
 
12813
 
fi
12814
 
 
12815
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12816
 
             test "$gl_cv_socklen_t_equiv" != "" && break
12817
 
           done
12818
 
           test "$gl_cv_socklen_t_equiv" != "" && break
12819
 
         done
12820
 
 
12821
 
fi
12822
 
 
12823
 
      if test "$gl_cv_socklen_t_equiv" = ""; then
12824
 
        { { $as_echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
12825
 
$as_echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
12826
 
   { (exit 1); exit 1; }; }
12827
 
      fi
12828
 
      { $as_echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
12829
 
$as_echo "$gl_cv_socklen_t_equiv" >&6; }
12830
 
 
12831
 
cat >>confdefs.h <<_ACEOF
12832
 
#define socklen_t $gl_cv_socklen_t_equiv
12833
 
_ACEOF
12834
 
 
12835
 
fi
12836
 
 
12837
 
 
12838
 
 
12839
 
 
12840
 
  # Define two additional variables used in the Makefile substitution.
12841
 
 
12842
 
  if test "$ac_cv_header_stdbool_h" = yes; then
12843
 
    STDBOOL_H=''
12844
 
  else
12845
 
    STDBOOL_H='stdbool.h'
12846
 
  fi
12847
 
 
12848
 
 
12849
 
  if test "$ac_cv_type__Bool" = yes; then
12850
 
    HAVE__BOOL=1
12851
 
  else
12852
 
    HAVE__BOOL=0
12853
 
  fi
12854
 
 
12855
 
 
12856
 
 
12857
 
 
12858
 
 
12859
 
  if test $ac_cv_type_long_long_int = yes; then
12860
 
    HAVE_LONG_LONG_INT=1
12861
 
  else
12862
 
    HAVE_LONG_LONG_INT=0
12863
 
  fi
12864
 
 
12865
 
 
12866
 
  if test $ac_cv_type_unsigned_long_long_int = yes; then
12867
 
    HAVE_UNSIGNED_LONG_LONG_INT=1
12868
 
  else
12869
 
    HAVE_UNSIGNED_LONG_LONG_INT=0
12870
 
  fi
12871
 
 
12872
 
 
12873
 
      if test $ac_cv_header_inttypes_h = yes; then
12874
 
    HAVE_INTTYPES_H=1
12875
 
  else
12876
 
    HAVE_INTTYPES_H=0
12877
 
  fi
12878
 
 
12879
 
 
12880
 
      if test $ac_cv_header_sys_types_h = yes; then
12881
 
    HAVE_SYS_TYPES_H=1
12882
 
  else
12883
 
    HAVE_SYS_TYPES_H=0
12884
 
  fi
12885
 
 
12886
 
 
12887
 
 
12888
 
 
12889
 
 
12890
 
  :
12891
 
 
12892
 
 
12893
 
 
12894
 
 
12895
 
 
12896
 
 
12897
 
 
12898
 
     if test $gl_cv_have_include_next = yes; then
12899
 
       gl_cv_next_stdint_h='<'stdint.h'>'
12900
 
     else
12901
 
       { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
12902
 
$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
12903
 
if test "${gl_cv_next_stdint_h+set}" = set; then
12904
 
  $as_echo_n "(cached) " >&6
12905
 
else
12906
 
 
12907
 
          if test $ac_cv_header_stdint_h = yes; then
12908
 
            cat >conftest.$ac_ext <<_ACEOF
12909
 
/* confdefs.h.  */
12910
 
_ACEOF
12911
 
cat confdefs.h >>conftest.$ac_ext
12912
 
cat >>conftest.$ac_ext <<_ACEOF
12913
 
/* end confdefs.h.  */
12914
 
#include <stdint.h>
12915
 
 
12916
 
_ACEOF
12917
 
                                    gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12918
 
               sed -n '\#/stdint.h#{
12919
 
                 s#.*"\(.*/stdint.h\)".*#\1#
12920
 
                 s#^/[^/]#//&#
12921
 
                 p
12922
 
                 q
12923
 
               }'`'"'
12924
 
          else
12925
 
            gl_cv_next_stdint_h='<'stdint.h'>'
12926
 
          fi
12927
 
 
12928
 
fi
12929
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
12930
 
$as_echo "$gl_cv_next_stdint_h" >&6; }
12931
 
     fi
12932
 
     NEXT_STDINT_H=$gl_cv_next_stdint_h
12933
 
 
12934
 
 
12935
 
 
12936
 
  if test $ac_cv_header_stdint_h = yes; then
12937
 
    HAVE_STDINT_H=1
12938
 
  else
12939
 
    HAVE_STDINT_H=0
12940
 
  fi
12941
 
 
12942
 
 
12943
 
    if test $ac_cv_header_stdint_h = yes; then
12944
 
    { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
12945
 
$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
12946
 
if test "${gl_cv_header_working_stdint_h+set}" = set; then
12947
 
  $as_echo_n "(cached) " >&6
12948
 
else
12949
 
  gl_cv_header_working_stdint_h=no
12950
 
       cat >conftest.$ac_ext <<_ACEOF
12951
 
 
12952
 
         /* confdefs.h.  */
12953
 
_ACEOF
12954
 
cat confdefs.h >>conftest.$ac_ext
12955
 
cat >>conftest.$ac_ext <<_ACEOF
12956
 
/* end confdefs.h.  */
12957
 
 
12958
 
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
12959
 
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
12960
 
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
12961
 
#include <stdint.h>
12962
 
/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
12963
 
#if !(defined WCHAR_MIN && defined WCHAR_MAX)
12964
 
#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
12965
 
#endif
12966
 
 
12967
 
 
12968
 
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12969
 
     included before <wchar.h>.  */
12970
 
  #include <stddef.h>
12971
 
  #include <signal.h>
12972
 
  #if HAVE_WCHAR_H
12973
 
  # include <stdio.h>
12974
 
  # include <time.h>
12975
 
  # include <wchar.h>
12976
 
  #endif
12977
 
 
12978
 
 
12979
 
#ifdef INT8_MAX
12980
 
int8_t a1 = INT8_MAX;
12981
 
int8_t a1min = INT8_MIN;
12982
 
#endif
12983
 
#ifdef INT16_MAX
12984
 
int16_t a2 = INT16_MAX;
12985
 
int16_t a2min = INT16_MIN;
12986
 
#endif
12987
 
#ifdef INT32_MAX
12988
 
int32_t a3 = INT32_MAX;
12989
 
int32_t a3min = INT32_MIN;
12990
 
#endif
12991
 
#ifdef INT64_MAX
12992
 
int64_t a4 = INT64_MAX;
12993
 
int64_t a4min = INT64_MIN;
12994
 
#endif
12995
 
#ifdef UINT8_MAX
12996
 
uint8_t b1 = UINT8_MAX;
12997
 
#else
12998
 
typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
12999
 
#endif
13000
 
#ifdef UINT16_MAX
13001
 
uint16_t b2 = UINT16_MAX;
13002
 
#endif
13003
 
#ifdef UINT32_MAX
13004
 
uint32_t b3 = UINT32_MAX;
13005
 
#endif
13006
 
#ifdef UINT64_MAX
13007
 
uint64_t b4 = UINT64_MAX;
13008
 
#endif
13009
 
int_least8_t c1 = INT8_C (0x7f);
13010
 
int_least8_t c1max = INT_LEAST8_MAX;
13011
 
int_least8_t c1min = INT_LEAST8_MIN;
13012
 
int_least16_t c2 = INT16_C (0x7fff);
13013
 
int_least16_t c2max = INT_LEAST16_MAX;
13014
 
int_least16_t c2min = INT_LEAST16_MIN;
13015
 
int_least32_t c3 = INT32_C (0x7fffffff);
13016
 
int_least32_t c3max = INT_LEAST32_MAX;
13017
 
int_least32_t c3min = INT_LEAST32_MIN;
13018
 
int_least64_t c4 = INT64_C (0x7fffffffffffffff);
13019
 
int_least64_t c4max = INT_LEAST64_MAX;
13020
 
int_least64_t c4min = INT_LEAST64_MIN;
13021
 
uint_least8_t d1 = UINT8_C (0xff);
13022
 
uint_least8_t d1max = UINT_LEAST8_MAX;
13023
 
uint_least16_t d2 = UINT16_C (0xffff);
13024
 
uint_least16_t d2max = UINT_LEAST16_MAX;
13025
 
uint_least32_t d3 = UINT32_C (0xffffffff);
13026
 
uint_least32_t d3max = UINT_LEAST32_MAX;
13027
 
uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
13028
 
uint_least64_t d4max = UINT_LEAST64_MAX;
13029
 
int_fast8_t e1 = INT_FAST8_MAX;
13030
 
int_fast8_t e1min = INT_FAST8_MIN;
13031
 
int_fast16_t e2 = INT_FAST16_MAX;
13032
 
int_fast16_t e2min = INT_FAST16_MIN;
13033
 
int_fast32_t e3 = INT_FAST32_MAX;
13034
 
int_fast32_t e3min = INT_FAST32_MIN;
13035
 
int_fast64_t e4 = INT_FAST64_MAX;
13036
 
int_fast64_t e4min = INT_FAST64_MIN;
13037
 
uint_fast8_t f1 = UINT_FAST8_MAX;
13038
 
uint_fast16_t f2 = UINT_FAST16_MAX;
13039
 
uint_fast32_t f3 = UINT_FAST32_MAX;
13040
 
uint_fast64_t f4 = UINT_FAST64_MAX;
13041
 
#ifdef INTPTR_MAX
13042
 
intptr_t g = INTPTR_MAX;
13043
 
intptr_t gmin = INTPTR_MIN;
13044
 
#endif
13045
 
#ifdef UINTPTR_MAX
13046
 
uintptr_t h = UINTPTR_MAX;
13047
 
#endif
13048
 
intmax_t i = INTMAX_MAX;
13049
 
uintmax_t j = UINTMAX_MAX;
13050
 
 
13051
 
#include <limits.h> /* for CHAR_BIT */
13052
 
#define TYPE_MINIMUM(t) \
13053
 
  ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
13054
 
#define TYPE_MAXIMUM(t) \
13055
 
  ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
13056
 
struct s {
13057
 
  int check_PTRDIFF:
13058
 
      PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
13059
 
      && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
13060
 
      ? 1 : -1;
13061
 
  /* Detect bug in FreeBSD 6.0 / ia64.  */
13062
 
  int check_SIG_ATOMIC:
13063
 
      SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
13064
 
      && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
13065
 
      ? 1 : -1;
13066
 
  int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
13067
 
  int check_WCHAR:
13068
 
      WCHAR_MIN == TYPE_MINIMUM (wchar_t)
13069
 
      && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
13070
 
      ? 1 : -1;
13071
 
  /* Detect bug in mingw.  */
13072
 
  int check_WINT:
13073
 
      WINT_MIN == TYPE_MINIMUM (wint_t)
13074
 
      && WINT_MAX == TYPE_MAXIMUM (wint_t)
13075
 
      ? 1 : -1;
13076
 
 
13077
 
  /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
13078
 
  int check_UINT8_C:
13079
 
        (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
13080
 
  int check_UINT16_C:
13081
 
        (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
13082
 
 
13083
 
  /* Detect bugs in OpenBSD 3.9 stdint.h.  */
13084
 
#ifdef UINT8_MAX
13085
 
  int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
13086
 
#endif
13087
 
#ifdef UINT16_MAX
13088
 
  int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
13089
 
#endif
13090
 
#ifdef UINT32_MAX
13091
 
  int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
13092
 
#endif
13093
 
#ifdef UINT64_MAX
13094
 
  int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
13095
 
#endif
13096
 
  int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
13097
 
  int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
13098
 
  int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
13099
 
  int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
13100
 
  int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
13101
 
  int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
13102
 
  int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
13103
 
  int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
13104
 
  int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
13105
 
  int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
13106
 
  int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
13107
 
};
13108
 
 
13109
 
int
13110
 
main ()
13111
 
{
13112
 
 
13113
 
  ;
13114
 
  return 0;
13115
 
}
13116
 
_ACEOF
13117
 
rm -f conftest.$ac_objext
13118
 
if { (ac_try="$ac_compile"
13119
 
case "(($ac_try" in
13120
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121
 
  *) ac_try_echo=$ac_try;;
13122
 
esac
13123
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13124
 
$as_echo "$ac_try_echo") >&5
13125
 
  (eval "$ac_compile") 2>conftest.er1
13126
 
  ac_status=$?
13127
 
  grep -v '^ *+' conftest.er1 >conftest.err
13128
 
  rm -f conftest.er1
13129
 
  cat conftest.err >&5
13130
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131
 
  (exit $ac_status); } && {
13132
 
         test -z "$ac_c_werror_flag" ||
13133
 
         test ! -s conftest.err
13134
 
       } && test -s conftest.$ac_objext; then
13135
 
  gl_cv_header_working_stdint_h=yes
13136
 
else
13137
 
  $as_echo "$as_me: failed program was:" >&5
13138
 
sed 's/^/| /' conftest.$ac_ext >&5
13139
 
 
13140
 
 
13141
 
fi
13142
 
 
13143
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13144
 
fi
13145
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
13146
 
$as_echo "$gl_cv_header_working_stdint_h" >&6; }
13147
 
  fi
13148
 
  if test "$gl_cv_header_working_stdint_h" = yes; then
13149
 
    STDINT_H=
13150
 
  else
13151
 
 
13152
 
 
13153
 
for ac_header in sys/inttypes.h sys/bitypes.h
13154
 
do
13155
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13156
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13157
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13158
 
$as_echo_n "checking for $ac_header... " >&6; }
13159
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13160
 
  $as_echo_n "(cached) " >&6
13161
 
fi
13162
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
13163
 
                 $as_echo "$as_val"'`
13164
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13165
 
$as_echo "$ac_res" >&6; }
13166
 
else
13167
 
  # Is the header compilable?
13168
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13169
 
$as_echo_n "checking $ac_header usability... " >&6; }
13170
 
cat >conftest.$ac_ext <<_ACEOF
13171
 
/* confdefs.h.  */
13172
 
_ACEOF
13173
 
cat confdefs.h >>conftest.$ac_ext
13174
 
cat >>conftest.$ac_ext <<_ACEOF
13175
 
/* end confdefs.h.  */
13176
 
$ac_includes_default
13177
 
#include <$ac_header>
13178
 
_ACEOF
13179
 
rm -f conftest.$ac_objext
13180
 
if { (ac_try="$ac_compile"
13181
 
case "(($ac_try" in
13182
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13183
 
  *) ac_try_echo=$ac_try;;
13184
 
esac
13185
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13186
 
$as_echo "$ac_try_echo") >&5
13187
 
  (eval "$ac_compile") 2>conftest.er1
13188
 
  ac_status=$?
13189
 
  grep -v '^ *+' conftest.er1 >conftest.err
13190
 
  rm -f conftest.er1
13191
 
  cat conftest.err >&5
13192
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193
 
  (exit $ac_status); } && {
13194
 
         test -z "$ac_c_werror_flag" ||
13195
 
         test ! -s conftest.err
13196
 
       } && test -s conftest.$ac_objext; then
13197
 
  ac_header_compiler=yes
13198
 
else
13199
 
  $as_echo "$as_me: failed program was:" >&5
13200
 
sed 's/^/| /' conftest.$ac_ext >&5
13201
 
 
13202
 
        ac_header_compiler=no
13203
 
fi
13204
 
 
13205
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13206
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13207
 
$as_echo "$ac_header_compiler" >&6; }
13208
 
 
13209
 
# Is the header present?
13210
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13211
 
$as_echo_n "checking $ac_header presence... " >&6; }
13212
 
cat >conftest.$ac_ext <<_ACEOF
13213
 
/* confdefs.h.  */
13214
 
_ACEOF
13215
 
cat confdefs.h >>conftest.$ac_ext
13216
 
cat >>conftest.$ac_ext <<_ACEOF
13217
 
/* end confdefs.h.  */
13218
 
#include <$ac_header>
13219
 
_ACEOF
13220
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
13221
 
case "(($ac_try" in
13222
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223
 
  *) ac_try_echo=$ac_try;;
13224
 
esac
13225
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13226
 
$as_echo "$ac_try_echo") >&5
13227
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13228
 
  ac_status=$?
13229
 
  grep -v '^ *+' conftest.er1 >conftest.err
13230
 
  rm -f conftest.er1
13231
 
  cat conftest.err >&5
13232
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233
 
  (exit $ac_status); } >/dev/null && {
13234
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13235
 
         test ! -s conftest.err
13236
 
       }; then
13237
 
  ac_header_preproc=yes
13238
 
else
13239
 
  $as_echo "$as_me: failed program was:" >&5
13240
 
sed 's/^/| /' conftest.$ac_ext >&5
13241
 
 
13242
 
  ac_header_preproc=no
13243
 
fi
13244
 
 
13245
 
rm -f conftest.err conftest.$ac_ext
13246
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13247
 
$as_echo "$ac_header_preproc" >&6; }
13248
 
 
13249
 
# So?  What about this header?
13250
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13251
 
  yes:no: )
13252
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13253
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13254
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13255
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13256
 
    ac_header_preproc=yes
13257
 
    ;;
13258
 
  no:yes:* )
13259
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13260
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13261
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13262
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13263
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13264
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13265
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13266
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13267
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13268
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13269
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13270
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13271
 
 
13272
 
    ;;
13273
 
esac
13274
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13275
 
$as_echo_n "checking for $ac_header... " >&6; }
13276
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13277
 
  $as_echo_n "(cached) " >&6
13278
 
else
13279
 
  eval "$as_ac_Header=\$ac_header_preproc"
13280
 
fi
13281
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
13282
 
                 $as_echo "$as_val"'`
13283
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13284
 
$as_echo "$ac_res" >&6; }
13285
 
 
13286
 
fi
13287
 
as_val=`eval 'as_val=${'$as_ac_Header'}
13288
 
                 $as_echo "$as_val"'`
13289
 
   if test "x$as_val" = x""yes; then
13290
 
  cat >>confdefs.h <<_ACEOF
13291
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13292
 
_ACEOF
13293
 
 
13294
 
fi
13295
 
 
13296
 
done
13297
 
 
13298
 
    if test $ac_cv_header_sys_inttypes_h = yes; then
13299
 
      HAVE_SYS_INTTYPES_H=1
13300
 
    else
13301
 
      HAVE_SYS_INTTYPES_H=0
13302
 
    fi
13303
 
 
13304
 
    if test $ac_cv_header_sys_bitypes_h = yes; then
13305
 
      HAVE_SYS_BITYPES_H=1
13306
 
    else
13307
 
      HAVE_SYS_BITYPES_H=0
13308
 
    fi
13309
 
 
13310
 
 
13311
 
 
13312
 
  :
13313
 
 
13314
 
 
13315
 
 
13316
 
 
13317
 
 
13318
 
 
13319
 
 
13320
 
 
13321
 
 
13322
 
 
13323
 
 
13324
 
 
13325
 
 
13326
 
 
13327
 
  for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
13328
 
    { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
13329
 
$as_echo_n "checking for bit size of $gltype... " >&6; }
13330
 
if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
13331
 
  $as_echo_n "(cached) " >&6
13332
 
else
13333
 
  if test "$cross_compiling" = yes; then
13334
 
  # Depending upon the size, compute the lo and hi bounds.
13335
 
cat >conftest.$ac_ext <<_ACEOF
13336
 
/* confdefs.h.  */
13337
 
_ACEOF
13338
 
cat confdefs.h >>conftest.$ac_ext
13339
 
cat >>conftest.$ac_ext <<_ACEOF
13340
 
/* end confdefs.h.  */
13341
 
 
13342
 
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13343
 
     included before <wchar.h>.  */
13344
 
  #include <stddef.h>
13345
 
  #include <signal.h>
13346
 
  #if HAVE_WCHAR_H
13347
 
  # include <stdio.h>
13348
 
  # include <time.h>
13349
 
  # include <wchar.h>
13350
 
  #endif
13351
 
 
13352
 
#include <limits.h>
13353
 
int
13354
 
main ()
13355
 
{
13356
 
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
13357
 
test_array [0] = 0
13358
 
 
13359
 
  ;
13360
 
  return 0;
13361
 
}
13362
 
_ACEOF
13363
 
rm -f conftest.$ac_objext
13364
 
if { (ac_try="$ac_compile"
13365
 
case "(($ac_try" in
13366
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367
 
  *) ac_try_echo=$ac_try;;
13368
 
esac
13369
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13370
 
$as_echo "$ac_try_echo") >&5
13371
 
  (eval "$ac_compile") 2>conftest.er1
13372
 
  ac_status=$?
13373
 
  grep -v '^ *+' conftest.er1 >conftest.err
13374
 
  rm -f conftest.er1
13375
 
  cat conftest.err >&5
13376
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377
 
  (exit $ac_status); } && {
13378
 
         test -z "$ac_c_werror_flag" ||
13379
 
         test ! -s conftest.err
13380
 
       } && test -s conftest.$ac_objext; then
13381
 
  ac_lo=0 ac_mid=0
13382
 
  while :; do
13383
 
    cat >conftest.$ac_ext <<_ACEOF
13384
 
/* confdefs.h.  */
13385
 
_ACEOF
13386
 
cat confdefs.h >>conftest.$ac_ext
13387
 
cat >>conftest.$ac_ext <<_ACEOF
13388
 
/* end confdefs.h.  */
13389
 
 
13390
 
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13391
 
     included before <wchar.h>.  */
13392
 
  #include <stddef.h>
13393
 
  #include <signal.h>
13394
 
  #if HAVE_WCHAR_H
13395
 
  # include <stdio.h>
13396
 
  # include <time.h>
13397
 
  # include <wchar.h>
13398
 
  #endif
13399
 
 
13400
 
#include <limits.h>
13401
 
int
13402
 
main ()
13403
 
{
13404
 
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
13405
 
test_array [0] = 0
13406
 
 
13407
 
  ;
13408
 
  return 0;
13409
 
}
13410
 
_ACEOF
13411
 
rm -f conftest.$ac_objext
13412
 
if { (ac_try="$ac_compile"
13413
 
case "(($ac_try" in
13414
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415
 
  *) ac_try_echo=$ac_try;;
13416
 
esac
13417
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13418
 
$as_echo "$ac_try_echo") >&5
13419
 
  (eval "$ac_compile") 2>conftest.er1
13420
 
  ac_status=$?
13421
 
  grep -v '^ *+' conftest.er1 >conftest.err
13422
 
  rm -f conftest.er1
13423
 
  cat conftest.err >&5
13424
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425
 
  (exit $ac_status); } && {
13426
 
         test -z "$ac_c_werror_flag" ||
13427
 
         test ! -s conftest.err
13428
 
       } && test -s conftest.$ac_objext; then
13429
 
  ac_hi=$ac_mid; break
13430
 
else
13431
 
  $as_echo "$as_me: failed program was:" >&5
13432
 
sed 's/^/| /' conftest.$ac_ext >&5
13433
 
 
13434
 
        ac_lo=`expr $ac_mid + 1`
13435
 
                        if test $ac_lo -le $ac_mid; then
13436
 
                          ac_lo= ac_hi=
13437
 
                          break
13438
 
                        fi
13439
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
13440
 
fi
13441
 
 
13442
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13443
 
  done
13444
 
else
13445
 
  $as_echo "$as_me: failed program was:" >&5
13446
 
sed 's/^/| /' conftest.$ac_ext >&5
13447
 
 
13448
 
        cat >conftest.$ac_ext <<_ACEOF
13449
 
/* confdefs.h.  */
13450
 
_ACEOF
13451
 
cat confdefs.h >>conftest.$ac_ext
13452
 
cat >>conftest.$ac_ext <<_ACEOF
13453
 
/* end confdefs.h.  */
13454
 
 
13455
 
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13456
 
     included before <wchar.h>.  */
13457
 
  #include <stddef.h>
13458
 
  #include <signal.h>
13459
 
  #if HAVE_WCHAR_H
13460
 
  # include <stdio.h>
13461
 
  # include <time.h>
13462
 
  # include <wchar.h>
13463
 
  #endif
13464
 
 
13465
 
#include <limits.h>
13466
 
int
13467
 
main ()
13468
 
{
13469
 
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
13470
 
test_array [0] = 0
13471
 
 
13472
 
  ;
13473
 
  return 0;
13474
 
}
13475
 
_ACEOF
13476
 
rm -f conftest.$ac_objext
13477
 
if { (ac_try="$ac_compile"
13478
 
case "(($ac_try" in
13479
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13480
 
  *) ac_try_echo=$ac_try;;
13481
 
esac
13482
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13483
 
$as_echo "$ac_try_echo") >&5
13484
 
  (eval "$ac_compile") 2>conftest.er1
13485
 
  ac_status=$?
13486
 
  grep -v '^ *+' conftest.er1 >conftest.err
13487
 
  rm -f conftest.er1
13488
 
  cat conftest.err >&5
13489
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490
 
  (exit $ac_status); } && {
13491
 
         test -z "$ac_c_werror_flag" ||
13492
 
         test ! -s conftest.err
13493
 
       } && test -s conftest.$ac_objext; then
13494
 
  ac_hi=-1 ac_mid=-1
13495
 
  while :; do
13496
 
    cat >conftest.$ac_ext <<_ACEOF
13497
 
/* confdefs.h.  */
13498
 
_ACEOF
13499
 
cat confdefs.h >>conftest.$ac_ext
13500
 
cat >>conftest.$ac_ext <<_ACEOF
13501
 
/* end confdefs.h.  */
13502
 
 
13503
 
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13504
 
     included before <wchar.h>.  */
13505
 
  #include <stddef.h>
13506
 
  #include <signal.h>
13507
 
  #if HAVE_WCHAR_H
13508
 
  # include <stdio.h>
13509
 
  # include <time.h>
13510
 
  # include <wchar.h>
13511
 
  #endif
13512
 
 
13513
 
#include <limits.h>
13514
 
int
13515
 
main ()
13516
 
{
13517
 
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
13518
 
test_array [0] = 0
13519
 
 
13520
 
  ;
13521
 
  return 0;
13522
 
}
13523
 
_ACEOF
13524
 
rm -f conftest.$ac_objext
13525
 
if { (ac_try="$ac_compile"
13526
 
case "(($ac_try" in
13527
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13528
 
  *) ac_try_echo=$ac_try;;
13529
 
esac
13530
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13531
 
$as_echo "$ac_try_echo") >&5
13532
 
  (eval "$ac_compile") 2>conftest.er1
13533
 
  ac_status=$?
13534
 
  grep -v '^ *+' conftest.er1 >conftest.err
13535
 
  rm -f conftest.er1
13536
 
  cat conftest.err >&5
13537
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538
 
  (exit $ac_status); } && {
13539
 
         test -z "$ac_c_werror_flag" ||
13540
 
         test ! -s conftest.err
13541
 
       } && test -s conftest.$ac_objext; then
13542
 
  ac_lo=$ac_mid; break
13543
 
else
13544
 
  $as_echo "$as_me: failed program was:" >&5
13545
 
sed 's/^/| /' conftest.$ac_ext >&5
13546
 
 
13547
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
13548
 
                        if test $ac_mid -le $ac_hi; then
13549
 
                          ac_lo= ac_hi=
13550
 
                          break
13551
 
                        fi
13552
 
                        ac_mid=`expr 2 '*' $ac_mid`
13553
 
fi
13554
 
 
13555
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13556
 
  done
13557
 
else
13558
 
  $as_echo "$as_me: failed program was:" >&5
13559
 
sed 's/^/| /' conftest.$ac_ext >&5
13560
 
 
13561
 
        ac_lo= ac_hi=
13562
 
fi
13563
 
 
13564
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13565
 
fi
13566
 
 
13567
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13568
 
# Binary search between lo and hi bounds.
13569
 
while test "x$ac_lo" != "x$ac_hi"; do
13570
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13571
 
  cat >conftest.$ac_ext <<_ACEOF
13572
 
/* confdefs.h.  */
13573
 
_ACEOF
13574
 
cat confdefs.h >>conftest.$ac_ext
13575
 
cat >>conftest.$ac_ext <<_ACEOF
13576
 
/* end confdefs.h.  */
13577
 
 
13578
 
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13579
 
     included before <wchar.h>.  */
13580
 
  #include <stddef.h>
13581
 
  #include <signal.h>
13582
 
  #if HAVE_WCHAR_H
13583
 
  # include <stdio.h>
13584
 
  # include <time.h>
13585
 
  # include <wchar.h>
13586
 
  #endif
13587
 
 
13588
 
#include <limits.h>
13589
 
int
13590
 
main ()
13591
 
{
13592
 
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
13593
 
test_array [0] = 0
13594
 
 
13595
 
  ;
13596
 
  return 0;
13597
 
}
13598
 
_ACEOF
13599
 
rm -f conftest.$ac_objext
13600
 
if { (ac_try="$ac_compile"
13601
 
case "(($ac_try" in
13602
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13603
 
  *) ac_try_echo=$ac_try;;
13604
 
esac
13605
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13606
 
$as_echo "$ac_try_echo") >&5
13607
 
  (eval "$ac_compile") 2>conftest.er1
13608
 
  ac_status=$?
13609
 
  grep -v '^ *+' conftest.er1 >conftest.err
13610
 
  rm -f conftest.er1
13611
 
  cat conftest.err >&5
13612
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613
 
  (exit $ac_status); } && {
13614
 
         test -z "$ac_c_werror_flag" ||
13615
 
         test ! -s conftest.err
13616
 
       } && test -s conftest.$ac_objext; then
13617
 
  ac_hi=$ac_mid
13618
 
else
13619
 
  $as_echo "$as_me: failed program was:" >&5
13620
 
sed 's/^/| /' conftest.$ac_ext >&5
13621
 
 
13622
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
13623
 
fi
13624
 
 
13625
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13626
 
done
13627
 
case $ac_lo in
13628
 
?*) result=$ac_lo;;
13629
 
'') result=unknown ;;
13630
 
esac
13631
 
else
13632
 
  cat >conftest.$ac_ext <<_ACEOF
13633
 
/* confdefs.h.  */
13634
 
_ACEOF
13635
 
cat confdefs.h >>conftest.$ac_ext
13636
 
cat >>conftest.$ac_ext <<_ACEOF
13637
 
/* end confdefs.h.  */
13638
 
 
13639
 
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13640
 
     included before <wchar.h>.  */
13641
 
  #include <stddef.h>
13642
 
  #include <signal.h>
13643
 
  #if HAVE_WCHAR_H
13644
 
  # include <stdio.h>
13645
 
  # include <time.h>
13646
 
  # include <wchar.h>
13647
 
  #endif
13648
 
 
13649
 
#include <limits.h>
13650
 
static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
13651
 
static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
13652
 
#include <stdio.h>
13653
 
#include <stdlib.h>
13654
 
int
13655
 
main ()
13656
 
{
13657
 
 
13658
 
  FILE *f = fopen ("conftest.val", "w");
13659
 
  if (! f)
13660
 
    return 1;
13661
 
  if ((sizeof ($gltype) * CHAR_BIT) < 0)
13662
 
    {
13663
 
      long int i = longval ();
13664
 
      if (i != (sizeof ($gltype) * CHAR_BIT))
13665
 
        return 1;
13666
 
      fprintf (f, "%ld", i);
13667
 
    }
13668
 
  else
13669
 
    {
13670
 
      unsigned long int i = ulongval ();
13671
 
      if (i != (sizeof ($gltype) * CHAR_BIT))
13672
 
        return 1;
13673
 
      fprintf (f, "%lu", i);
13674
 
    }
13675
 
  /* Do not output a trailing newline, as this causes \r\n confusion
13676
 
     on some platforms.  */
13677
 
  return ferror (f) || fclose (f) != 0;
13678
 
 
13679
 
  ;
13680
 
  return 0;
13681
 
}
13682
 
_ACEOF
13683
 
rm -f conftest$ac_exeext
13684
 
if { (ac_try="$ac_link"
13685
 
case "(($ac_try" in
13686
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13687
 
  *) ac_try_echo=$ac_try;;
13688
 
esac
13689
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13690
 
$as_echo "$ac_try_echo") >&5
13691
 
  (eval "$ac_link") 2>&5
13692
 
  ac_status=$?
13693
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13695
 
  { (case "(($ac_try" in
13696
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13697
 
  *) ac_try_echo=$ac_try;;
13698
 
esac
13699
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13700
 
$as_echo "$ac_try_echo") >&5
13701
 
  (eval "$ac_try") 2>&5
13702
 
  ac_status=$?
13703
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704
 
  (exit $ac_status); }; }; then
13705
 
  result=`cat conftest.val`
13706
 
else
13707
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
13708
 
$as_echo "$as_me: failed program was:" >&5
13709
 
sed 's/^/| /' conftest.$ac_ext >&5
13710
 
 
13711
 
( exit $ac_status )
13712
 
result=unknown
13713
 
fi
13714
 
rm -rf conftest.dSYM
13715
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13716
 
fi
13717
 
rm -f conftest.val
13718
 
       eval gl_cv_bitsizeof_${gltype}=\$result
13719
 
 
13720
 
fi
13721
 
ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
13722
 
                 $as_echo "$as_val"'`
13723
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13724
 
$as_echo "$ac_res" >&6; }
13725
 
    eval result=\$gl_cv_bitsizeof_${gltype}
13726
 
    if test $result = unknown; then
13727
 
                                                result=0
13728
 
    fi
13729
 
    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13730
 
    cat >>confdefs.h <<_ACEOF
13731
 
#define BITSIZEOF_${GLTYPE} $result
13732
 
_ACEOF
13733
 
 
13734
 
    eval BITSIZEOF_${GLTYPE}=\$result
13735
 
  done
13736
 
 
13737
 
 
13738
 
 
13739
 
 
13740
 
 
13741
 
 
13742
 
 
13743
 
  for gltype in sig_atomic_t wchar_t wint_t ; do
13744
 
    { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
13745
 
$as_echo_n "checking whether $gltype is signed... " >&6; }
13746
 
if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
13747
 
  $as_echo_n "(cached) " >&6
13748
 
else
13749
 
  cat >conftest.$ac_ext <<_ACEOF
13750
 
/* confdefs.h.  */
13751
 
_ACEOF
13752
 
cat confdefs.h >>conftest.$ac_ext
13753
 
cat >>conftest.$ac_ext <<_ACEOF
13754
 
/* end confdefs.h.  */
13755
 
 
13756
 
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13757
 
     included before <wchar.h>.  */
13758
 
  #include <stddef.h>
13759
 
  #include <signal.h>
13760
 
  #if HAVE_WCHAR_H
13761
 
  # include <stdio.h>
13762
 
  # include <time.h>
13763
 
  # include <wchar.h>
13764
 
  #endif
13765
 
 
13766
 
            int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
13767
 
int
13768
 
main ()
13769
 
{
13770
 
 
13771
 
  ;
13772
 
  return 0;
13773
 
}
13774
 
_ACEOF
13775
 
rm -f conftest.$ac_objext
13776
 
if { (ac_try="$ac_compile"
13777
 
case "(($ac_try" in
13778
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13779
 
  *) ac_try_echo=$ac_try;;
13780
 
esac
13781
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13782
 
$as_echo "$ac_try_echo") >&5
13783
 
  (eval "$ac_compile") 2>conftest.er1
13784
 
  ac_status=$?
13785
 
  grep -v '^ *+' conftest.er1 >conftest.err
13786
 
  rm -f conftest.er1
13787
 
  cat conftest.err >&5
13788
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789
 
  (exit $ac_status); } && {
13790
 
         test -z "$ac_c_werror_flag" ||
13791
 
         test ! -s conftest.err
13792
 
       } && test -s conftest.$ac_objext; then
13793
 
  result=yes
13794
 
else
13795
 
  $as_echo "$as_me: failed program was:" >&5
13796
 
sed 's/^/| /' conftest.$ac_ext >&5
13797
 
 
13798
 
        result=no
13799
 
fi
13800
 
 
13801
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13802
 
       eval gl_cv_type_${gltype}_signed=\$result
13803
 
 
13804
 
fi
13805
 
ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
13806
 
                 $as_echo "$as_val"'`
13807
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13808
 
$as_echo "$ac_res" >&6; }
13809
 
    eval result=\$gl_cv_type_${gltype}_signed
13810
 
    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13811
 
    if test "$result" = yes; then
13812
 
      cat >>confdefs.h <<_ACEOF
13813
 
#define HAVE_SIGNED_${GLTYPE} 1
13814
 
_ACEOF
13815
 
 
13816
 
      eval HAVE_SIGNED_${GLTYPE}=1
13817
 
    else
13818
 
      eval HAVE_SIGNED_${GLTYPE}=0
13819
 
    fi
13820
 
  done
13821
 
 
13822
 
 
13823
 
  gl_cv_type_ptrdiff_t_signed=yes
13824
 
  gl_cv_type_size_t_signed=no
13825
 
 
13826
 
 
13827
 
 
13828
 
 
13829
 
 
13830
 
 
13831
 
 
13832
 
  for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
13833
 
    { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
13834
 
$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
13835
 
if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
13836
 
  $as_echo_n "(cached) " >&6
13837
 
else
13838
 
  eval gl_cv_type_${gltype}_suffix=no
13839
 
       eval result=\$gl_cv_type_${gltype}_signed
13840
 
       if test "$result" = yes; then
13841
 
         glsufu=
13842
 
       else
13843
 
         glsufu=u
13844
 
       fi
13845
 
       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
13846
 
         case $glsuf in
13847
 
           '')  gltype1='int';;
13848
 
           l)   gltype1='long int';;
13849
 
           ll)  gltype1='long long int';;
13850
 
           i64) gltype1='__int64';;
13851
 
           u)   gltype1='unsigned int';;
13852
 
           ul)  gltype1='unsigned long int';;
13853
 
           ull) gltype1='unsigned long long int';;
13854
 
           ui64)gltype1='unsigned __int64';;
13855
 
         esac
13856
 
         cat >conftest.$ac_ext <<_ACEOF
13857
 
/* confdefs.h.  */
13858
 
_ACEOF
13859
 
cat confdefs.h >>conftest.$ac_ext
13860
 
cat >>conftest.$ac_ext <<_ACEOF
13861
 
/* end confdefs.h.  */
13862
 
 
13863
 
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13864
 
     included before <wchar.h>.  */
13865
 
  #include <stddef.h>
13866
 
  #include <signal.h>
13867
 
  #if HAVE_WCHAR_H
13868
 
  # include <stdio.h>
13869
 
  # include <time.h>
13870
 
  # include <wchar.h>
13871
 
  #endif
13872
 
 
13873
 
              extern $gltype foo;
13874
 
              extern $gltype1 foo;
13875
 
int
13876
 
main ()
13877
 
{
13878
 
 
13879
 
  ;
13880
 
  return 0;
13881
 
}
13882
 
_ACEOF
13883
 
rm -f conftest.$ac_objext
13884
 
if { (ac_try="$ac_compile"
13885
 
case "(($ac_try" in
13886
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13887
 
  *) ac_try_echo=$ac_try;;
13888
 
esac
13889
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13890
 
$as_echo "$ac_try_echo") >&5
13891
 
  (eval "$ac_compile") 2>conftest.er1
13892
 
  ac_status=$?
13893
 
  grep -v '^ *+' conftest.er1 >conftest.err
13894
 
  rm -f conftest.er1
13895
 
  cat conftest.err >&5
13896
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897
 
  (exit $ac_status); } && {
13898
 
         test -z "$ac_c_werror_flag" ||
13899
 
         test ! -s conftest.err
13900
 
       } && test -s conftest.$ac_objext; then
13901
 
  eval gl_cv_type_${gltype}_suffix=\$glsuf
13902
 
else
13903
 
  $as_echo "$as_me: failed program was:" >&5
13904
 
sed 's/^/| /' conftest.$ac_ext >&5
13905
 
 
13906
 
 
13907
 
fi
13908
 
 
13909
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13910
 
         eval result=\$gl_cv_type_${gltype}_suffix
13911
 
         test "$result" != no && break
13912
 
       done
13913
 
fi
13914
 
ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
13915
 
                 $as_echo "$as_val"'`
13916
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13917
 
$as_echo "$ac_res" >&6; }
13918
 
    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13919
 
    eval result=\$gl_cv_type_${gltype}_suffix
13920
 
    test "$result" = no && result=
13921
 
    eval ${GLTYPE}_SUFFIX=\$result
13922
 
    cat >>confdefs.h <<_ACEOF
13923
 
#define ${GLTYPE}_SUFFIX $result
13924
 
_ACEOF
13925
 
 
13926
 
  done
13927
 
 
13928
 
 
13929
 
 
13930
 
    STDINT_H=stdint.h
13931
 
  fi
13932
 
 
13933
 
 
13934
 
 
13935
 
 
13936
 
 
13937
 
 
13938
 
 
13939
 
  :
13940
 
 
13941
 
 
13942
 
 
13943
 
 
13944
 
 
13945
 
 
13946
 
 
13947
 
     if test $gl_cv_have_include_next = yes; then
13948
 
       gl_cv_next_stdio_h='<'stdio.h'>'
13949
 
     else
13950
 
       { $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
13951
 
$as_echo_n "checking absolute name of <stdio.h>... " >&6; }
13952
 
if test "${gl_cv_next_stdio_h+set}" = set; then
13953
 
  $as_echo_n "(cached) " >&6
13954
 
else
13955
 
 
13956
 
          if test $ac_cv_header_stdio_h = yes; then
13957
 
            cat >conftest.$ac_ext <<_ACEOF
13958
 
/* confdefs.h.  */
13959
 
_ACEOF
13960
 
cat confdefs.h >>conftest.$ac_ext
13961
 
cat >>conftest.$ac_ext <<_ACEOF
13962
 
/* end confdefs.h.  */
13963
 
#include <stdio.h>
13964
 
 
13965
 
_ACEOF
13966
 
                                    gl_cv_next_stdio_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13967
 
               sed -n '\#/stdio.h#{
13968
 
                 s#.*"\(.*/stdio.h\)".*#\1#
13969
 
                 s#^/[^/]#//&#
13970
 
                 p
13971
 
                 q
13972
 
               }'`'"'
13973
 
          else
13974
 
            gl_cv_next_stdio_h='<'stdio.h'>'
13975
 
          fi
13976
 
 
13977
 
fi
13978
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
13979
 
$as_echo "$gl_cv_next_stdio_h" >&6; }
13980
 
     fi
13981
 
     NEXT_STDIO_H=$gl_cv_next_stdio_h
13982
 
 
13983
 
 
13984
 
 
13985
 
      GNULIB_FPRINTF=1
13986
 
  GNULIB_PRINTF=1
13987
 
  GNULIB_VFPRINTF=1
13988
 
  GNULIB_VPRINTF=1
13989
 
  GNULIB_FPUTC=1
13990
 
  GNULIB_PUTC=1
13991
 
  GNULIB_PUTCHAR=1
13992
 
  GNULIB_FPUTS=1
13993
 
  GNULIB_PUTS=1
13994
 
  GNULIB_FWRITE=1
13995
 
 
13996
 
 
13997
 
 
13998
 
 
13999
 
 
14000
 
 
14001
 
 
14002
 
  :
14003
 
 
14004
 
 
14005
 
 
14006
 
 
14007
 
 
14008
 
 
14009
 
 
14010
 
     if test $gl_cv_have_include_next = yes; then
14011
 
       gl_cv_next_stdlib_h='<'stdlib.h'>'
14012
 
     else
14013
 
       { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
14014
 
$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
14015
 
if test "${gl_cv_next_stdlib_h+set}" = set; then
14016
 
  $as_echo_n "(cached) " >&6
14017
 
else
14018
 
 
14019
 
          if test $ac_cv_header_stdlib_h = yes; then
14020
 
            cat >conftest.$ac_ext <<_ACEOF
14021
 
/* confdefs.h.  */
14022
 
_ACEOF
14023
 
cat confdefs.h >>conftest.$ac_ext
14024
 
cat >>conftest.$ac_ext <<_ACEOF
14025
 
/* end confdefs.h.  */
14026
 
#include <stdlib.h>
14027
 
 
14028
 
_ACEOF
14029
 
                                    gl_cv_next_stdlib_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14030
 
               sed -n '\#/stdlib.h#{
14031
 
                 s#.*"\(.*/stdlib.h\)".*#\1#
14032
 
                 s#^/[^/]#//&#
14033
 
                 p
14034
 
                 q
14035
 
               }'`'"'
14036
 
          else
14037
 
            gl_cv_next_stdlib_h='<'stdlib.h'>'
14038
 
          fi
14039
 
 
14040
 
fi
14041
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
14042
 
$as_echo "$gl_cv_next_stdlib_h" >&6; }
14043
 
     fi
14044
 
     NEXT_STDLIB_H=$gl_cv_next_stdlib_h
14045
 
 
14046
 
 
14047
 
 
14048
 
 
14049
 
 
14050
 
 
14051
 
 
14052
 
 
14053
 
  { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> is self-contained" >&5
14054
 
$as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
14055
 
if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then
14056
 
  $as_echo_n "(cached) " >&6
14057
 
else
14058
 
 
14059
 
      cat >conftest.$ac_ext <<_ACEOF
14060
 
/* confdefs.h.  */
14061
 
_ACEOF
14062
 
cat confdefs.h >>conftest.$ac_ext
14063
 
cat >>conftest.$ac_ext <<_ACEOF
14064
 
/* end confdefs.h.  */
14065
 
#include <sys/socket.h>
14066
 
int
14067
 
main ()
14068
 
{
14069
 
 
14070
 
  ;
14071
 
  return 0;
14072
 
}
14073
 
_ACEOF
14074
 
rm -f conftest.$ac_objext
14075
 
if { (ac_try="$ac_compile"
14076
 
case "(($ac_try" in
14077
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14078
 
  *) ac_try_echo=$ac_try;;
14079
 
esac
14080
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14081
 
$as_echo "$ac_try_echo") >&5
14082
 
  (eval "$ac_compile") 2>conftest.er1
14083
 
  ac_status=$?
14084
 
  grep -v '^ *+' conftest.er1 >conftest.err
14085
 
  rm -f conftest.er1
14086
 
  cat conftest.err >&5
14087
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088
 
  (exit $ac_status); } && {
14089
 
         test -z "$ac_c_werror_flag" ||
14090
 
         test ! -s conftest.err
14091
 
       } && test -s conftest.$ac_objext; then
14092
 
  gl_cv_header_sys_socket_h_selfcontained=yes
14093
 
else
14094
 
  $as_echo "$as_me: failed program was:" >&5
14095
 
sed 's/^/| /' conftest.$ac_ext >&5
14096
 
 
14097
 
        gl_cv_header_sys_socket_h_selfcontained=no
14098
 
fi
14099
 
 
14100
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14101
 
 
14102
 
fi
14103
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
14104
 
$as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
14105
 
  if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
14106
 
    SYS_SOCKET_H=''
14107
 
 
14108
 
for ac_func in shutdown
14109
 
do
14110
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14111
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14112
 
$as_echo_n "checking for $ac_func... " >&6; }
14113
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14114
 
  $as_echo_n "(cached) " >&6
14115
 
else
14116
 
  cat >conftest.$ac_ext <<_ACEOF
14117
 
/* confdefs.h.  */
14118
 
_ACEOF
14119
 
cat confdefs.h >>conftest.$ac_ext
14120
 
cat >>conftest.$ac_ext <<_ACEOF
14121
 
/* end confdefs.h.  */
14122
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14123
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14124
 
#define $ac_func innocuous_$ac_func
14125
 
 
14126
 
/* System header to define __stub macros and hopefully few prototypes,
14127
 
    which can conflict with char $ac_func (); below.
14128
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14129
 
    <limits.h> exists even on freestanding compilers.  */
14130
 
 
14131
 
#ifdef __STDC__
14132
 
# include <limits.h>
14133
 
#else
14134
 
# include <assert.h>
14135
 
#endif
14136
 
 
14137
 
#undef $ac_func
14138
 
 
14139
 
/* Override any GCC internal prototype to avoid an error.
14140
 
   Use char because int might match the return type of a GCC
14141
 
   builtin and then its argument prototype would still apply.  */
14142
 
#ifdef __cplusplus
14143
 
extern "C"
14144
 
#endif
14145
 
char $ac_func ();
14146
 
/* The GNU C library defines this for functions which it implements
14147
 
    to always fail with ENOSYS.  Some functions are actually named
14148
 
    something starting with __ and the normal name is an alias.  */
14149
 
#if defined __stub_$ac_func || defined __stub___$ac_func
14150
 
choke me
14151
 
#endif
14152
 
 
14153
 
int
14154
 
main ()
14155
 
{
14156
 
return $ac_func ();
14157
 
  ;
14158
 
  return 0;
14159
 
}
14160
 
_ACEOF
14161
 
rm -f conftest.$ac_objext conftest$ac_exeext
14162
 
if { (ac_try="$ac_link"
14163
 
case "(($ac_try" in
14164
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14165
 
  *) ac_try_echo=$ac_try;;
14166
 
esac
14167
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14168
 
$as_echo "$ac_try_echo") >&5
14169
 
  (eval "$ac_link") 2>conftest.er1
14170
 
  ac_status=$?
14171
 
  grep -v '^ *+' conftest.er1 >conftest.err
14172
 
  rm -f conftest.er1
14173
 
  cat conftest.err >&5
14174
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175
 
  (exit $ac_status); } && {
14176
 
         test -z "$ac_c_werror_flag" ||
14177
 
         test ! -s conftest.err
14178
 
       } && test -s conftest$ac_exeext && {
14179
 
         test "$cross_compiling" = yes ||
14180
 
         $as_test_x conftest$ac_exeext
14181
 
       }; then
14182
 
  eval "$as_ac_var=yes"
14183
 
else
14184
 
  $as_echo "$as_me: failed program was:" >&5
14185
 
sed 's/^/| /' conftest.$ac_ext >&5
14186
 
 
14187
 
        eval "$as_ac_var=no"
14188
 
fi
14189
 
 
14190
 
rm -rf conftest.dSYM
14191
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14192
 
      conftest$ac_exeext conftest.$ac_ext
14193
 
fi
14194
 
ac_res=`eval 'as_val=${'$as_ac_var'}
14195
 
                 $as_echo "$as_val"'`
14196
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14197
 
$as_echo "$ac_res" >&6; }
14198
 
as_val=`eval 'as_val=${'$as_ac_var'}
14199
 
                 $as_echo "$as_val"'`
14200
 
   if test "x$as_val" = x""yes; then
14201
 
  cat >>confdefs.h <<_ACEOF
14202
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14203
 
_ACEOF
14204
 
 
14205
 
fi
14206
 
done
14207
 
 
14208
 
    if test $ac_cv_func_shutdown = yes; then
14209
 
      { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
14210
 
$as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
14211
 
if test "${gl_cv_header_sys_socket_h_shut+set}" = set; then
14212
 
  $as_echo_n "(cached) " >&6
14213
 
else
14214
 
 
14215
 
          cat >conftest.$ac_ext <<_ACEOF
14216
 
/* confdefs.h.  */
14217
 
_ACEOF
14218
 
cat confdefs.h >>conftest.$ac_ext
14219
 
cat >>conftest.$ac_ext <<_ACEOF
14220
 
/* end confdefs.h.  */
14221
 
#include <sys/socket.h>
14222
 
int
14223
 
main ()
14224
 
{
14225
 
int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
14226
 
  ;
14227
 
  return 0;
14228
 
}
14229
 
_ACEOF
14230
 
rm -f conftest.$ac_objext
14231
 
if { (ac_try="$ac_compile"
14232
 
case "(($ac_try" in
14233
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14234
 
  *) ac_try_echo=$ac_try;;
14235
 
esac
14236
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14237
 
$as_echo "$ac_try_echo") >&5
14238
 
  (eval "$ac_compile") 2>conftest.er1
14239
 
  ac_status=$?
14240
 
  grep -v '^ *+' conftest.er1 >conftest.err
14241
 
  rm -f conftest.er1
14242
 
  cat conftest.err >&5
14243
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244
 
  (exit $ac_status); } && {
14245
 
         test -z "$ac_c_werror_flag" ||
14246
 
         test ! -s conftest.err
14247
 
       } && test -s conftest.$ac_objext; then
14248
 
  gl_cv_header_sys_socket_h_shut=yes
14249
 
else
14250
 
  $as_echo "$as_me: failed program was:" >&5
14251
 
sed 's/^/| /' conftest.$ac_ext >&5
14252
 
 
14253
 
        gl_cv_header_sys_socket_h_shut=no
14254
 
fi
14255
 
 
14256
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14257
 
 
14258
 
fi
14259
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_shut" >&5
14260
 
$as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
14261
 
      if test $gl_cv_header_sys_socket_h_shut = no; then
14262
 
        SYS_SOCKET_H='sys/socket.h'
14263
 
      fi
14264
 
    fi
14265
 
  else
14266
 
    SYS_SOCKET_H='sys/socket.h'
14267
 
  fi
14268
 
  if test -n "$SYS_SOCKET_H"; then
14269
 
 
14270
 
 
14271
 
 
14272
 
  :
14273
 
 
14274
 
 
14275
 
 
14276
 
 
14277
 
 
14278
 
 
14279
 
 
14280
 
     if test $gl_cv_have_include_next = yes; then
14281
 
       gl_cv_next_sys_socket_h='<'sys/socket.h'>'
14282
 
     else
14283
 
       { $as_echo "$as_me:$LINENO: checking absolute name of <sys/socket.h>" >&5
14284
 
$as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
14285
 
if test "${gl_cv_next_sys_socket_h+set}" = set; then
14286
 
  $as_echo_n "(cached) " >&6
14287
 
else
14288
 
 
14289
 
          if test $ac_cv_header_sys_socket_h = yes; then
14290
 
            cat >conftest.$ac_ext <<_ACEOF
14291
 
/* confdefs.h.  */
14292
 
_ACEOF
14293
 
cat confdefs.h >>conftest.$ac_ext
14294
 
cat >>conftest.$ac_ext <<_ACEOF
14295
 
/* end confdefs.h.  */
14296
 
#include <sys/socket.h>
14297
 
 
14298
 
_ACEOF
14299
 
                                    gl_cv_next_sys_socket_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14300
 
               sed -n '\#/sys/socket.h#{
14301
 
                 s#.*"\(.*/sys/socket.h\)".*#\1#
14302
 
                 s#^/[^/]#//&#
14303
 
                 p
14304
 
                 q
14305
 
               }'`'"'
14306
 
          else
14307
 
            gl_cv_next_sys_socket_h='<'sys/socket.h'>'
14308
 
          fi
14309
 
 
14310
 
fi
14311
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_socket_h" >&5
14312
 
$as_echo "$gl_cv_next_sys_socket_h" >&6; }
14313
 
     fi
14314
 
     NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
14315
 
 
14316
 
 
14317
 
 
14318
 
    if test $ac_cv_header_sys_socket_h = yes; then
14319
 
      HAVE_SYS_SOCKET_H=1
14320
 
      HAVE_WS2TCPIP_H=0
14321
 
    else
14322
 
      HAVE_SYS_SOCKET_H=0
14323
 
 
14324
 
for ac_header in ws2tcpip.h
14325
 
do
14326
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14327
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14328
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14329
 
$as_echo_n "checking for $ac_header... " >&6; }
14330
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14331
 
  $as_echo_n "(cached) " >&6
14332
 
fi
14333
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
14334
 
                 $as_echo "$as_val"'`
14335
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14336
 
$as_echo "$ac_res" >&6; }
14337
 
else
14338
 
  # Is the header compilable?
14339
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14340
 
$as_echo_n "checking $ac_header usability... " >&6; }
14341
 
cat >conftest.$ac_ext <<_ACEOF
14342
 
/* confdefs.h.  */
14343
 
_ACEOF
14344
 
cat confdefs.h >>conftest.$ac_ext
14345
 
cat >>conftest.$ac_ext <<_ACEOF
14346
 
/* end confdefs.h.  */
14347
 
$ac_includes_default
14348
 
#include <$ac_header>
14349
 
_ACEOF
14350
 
rm -f conftest.$ac_objext
14351
 
if { (ac_try="$ac_compile"
14352
 
case "(($ac_try" in
14353
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14354
 
  *) ac_try_echo=$ac_try;;
14355
 
esac
14356
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14357
 
$as_echo "$ac_try_echo") >&5
14358
 
  (eval "$ac_compile") 2>conftest.er1
14359
 
  ac_status=$?
14360
 
  grep -v '^ *+' conftest.er1 >conftest.err
14361
 
  rm -f conftest.er1
14362
 
  cat conftest.err >&5
14363
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364
 
  (exit $ac_status); } && {
14365
 
         test -z "$ac_c_werror_flag" ||
14366
 
         test ! -s conftest.err
14367
 
       } && test -s conftest.$ac_objext; then
14368
 
  ac_header_compiler=yes
14369
 
else
14370
 
  $as_echo "$as_me: failed program was:" >&5
14371
 
sed 's/^/| /' conftest.$ac_ext >&5
14372
 
 
14373
 
        ac_header_compiler=no
14374
 
fi
14375
 
 
14376
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14377
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14378
 
$as_echo "$ac_header_compiler" >&6; }
14379
 
 
14380
 
# Is the header present?
14381
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14382
 
$as_echo_n "checking $ac_header presence... " >&6; }
14383
 
cat >conftest.$ac_ext <<_ACEOF
14384
 
/* confdefs.h.  */
14385
 
_ACEOF
14386
 
cat confdefs.h >>conftest.$ac_ext
14387
 
cat >>conftest.$ac_ext <<_ACEOF
14388
 
/* end confdefs.h.  */
14389
 
#include <$ac_header>
14390
 
_ACEOF
14391
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
14392
 
case "(($ac_try" in
14393
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14394
 
  *) ac_try_echo=$ac_try;;
14395
 
esac
14396
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14397
 
$as_echo "$ac_try_echo") >&5
14398
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14399
 
  ac_status=$?
14400
 
  grep -v '^ *+' conftest.er1 >conftest.err
14401
 
  rm -f conftest.er1
14402
 
  cat conftest.err >&5
14403
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404
 
  (exit $ac_status); } >/dev/null && {
14405
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14406
 
         test ! -s conftest.err
14407
 
       }; then
14408
 
  ac_header_preproc=yes
14409
 
else
14410
 
  $as_echo "$as_me: failed program was:" >&5
14411
 
sed 's/^/| /' conftest.$ac_ext >&5
14412
 
 
14413
 
  ac_header_preproc=no
14414
 
fi
14415
 
 
14416
 
rm -f conftest.err conftest.$ac_ext
14417
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14418
 
$as_echo "$ac_header_preproc" >&6; }
14419
 
 
14420
 
# So?  What about this header?
14421
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14422
 
  yes:no: )
14423
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14424
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14425
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14426
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14427
 
    ac_header_preproc=yes
14428
 
    ;;
14429
 
  no:yes:* )
14430
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14431
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14432
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14433
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14434
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14435
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14436
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14437
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14438
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14439
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14440
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14441
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14442
 
 
14443
 
    ;;
14444
 
esac
14445
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14446
 
$as_echo_n "checking for $ac_header... " >&6; }
14447
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14448
 
  $as_echo_n "(cached) " >&6
14449
 
else
14450
 
  eval "$as_ac_Header=\$ac_header_preproc"
14451
 
fi
14452
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
14453
 
                 $as_echo "$as_val"'`
14454
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14455
 
$as_echo "$ac_res" >&6; }
14456
 
 
14457
 
fi
14458
 
as_val=`eval 'as_val=${'$as_ac_Header'}
14459
 
                 $as_echo "$as_val"'`
14460
 
   if test "x$as_val" = x""yes; then
14461
 
  cat >>confdefs.h <<_ACEOF
14462
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14463
 
_ACEOF
14464
 
 
14465
 
fi
14466
 
 
14467
 
done
14468
 
 
14469
 
      if test $ac_cv_header_ws2tcpip_h = yes; then
14470
 
        HAVE_WS2TCPIP_H=1
14471
 
      else
14472
 
        HAVE_WS2TCPIP_H=0
14473
 
      fi
14474
 
    fi
14475
 
 
14476
 
 
14477
 
  :
14478
 
 
14479
 
 
14480
 
 
14481
 
 
14482
 
 
14483
 
  if test $ac_cv_header_sys_socket_h != yes; then
14484
 
 
14485
 
for ac_header in winsock2.h
14486
 
do
14487
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14488
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14489
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14490
 
$as_echo_n "checking for $ac_header... " >&6; }
14491
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14492
 
  $as_echo_n "(cached) " >&6
14493
 
fi
14494
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
14495
 
                 $as_echo "$as_val"'`
14496
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14497
 
$as_echo "$ac_res" >&6; }
14498
 
else
14499
 
  # Is the header compilable?
14500
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14501
 
$as_echo_n "checking $ac_header usability... " >&6; }
14502
 
cat >conftest.$ac_ext <<_ACEOF
14503
 
/* confdefs.h.  */
14504
 
_ACEOF
14505
 
cat confdefs.h >>conftest.$ac_ext
14506
 
cat >>conftest.$ac_ext <<_ACEOF
14507
 
/* end confdefs.h.  */
14508
 
$ac_includes_default
14509
 
#include <$ac_header>
14510
 
_ACEOF
14511
 
rm -f conftest.$ac_objext
14512
 
if { (ac_try="$ac_compile"
14513
 
case "(($ac_try" in
14514
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14515
 
  *) ac_try_echo=$ac_try;;
14516
 
esac
14517
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14518
 
$as_echo "$ac_try_echo") >&5
14519
 
  (eval "$ac_compile") 2>conftest.er1
14520
 
  ac_status=$?
14521
 
  grep -v '^ *+' conftest.er1 >conftest.err
14522
 
  rm -f conftest.er1
14523
 
  cat conftest.err >&5
14524
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525
 
  (exit $ac_status); } && {
14526
 
         test -z "$ac_c_werror_flag" ||
14527
 
         test ! -s conftest.err
14528
 
       } && test -s conftest.$ac_objext; then
14529
 
  ac_header_compiler=yes
14530
 
else
14531
 
  $as_echo "$as_me: failed program was:" >&5
14532
 
sed 's/^/| /' conftest.$ac_ext >&5
14533
 
 
14534
 
        ac_header_compiler=no
14535
 
fi
14536
 
 
14537
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14538
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14539
 
$as_echo "$ac_header_compiler" >&6; }
14540
 
 
14541
 
# Is the header present?
14542
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14543
 
$as_echo_n "checking $ac_header presence... " >&6; }
14544
 
cat >conftest.$ac_ext <<_ACEOF
14545
 
/* confdefs.h.  */
14546
 
_ACEOF
14547
 
cat confdefs.h >>conftest.$ac_ext
14548
 
cat >>conftest.$ac_ext <<_ACEOF
14549
 
/* end confdefs.h.  */
14550
 
#include <$ac_header>
14551
 
_ACEOF
14552
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
14553
 
case "(($ac_try" in
14554
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555
 
  *) ac_try_echo=$ac_try;;
14556
 
esac
14557
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14558
 
$as_echo "$ac_try_echo") >&5
14559
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14560
 
  ac_status=$?
14561
 
  grep -v '^ *+' conftest.er1 >conftest.err
14562
 
  rm -f conftest.er1
14563
 
  cat conftest.err >&5
14564
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565
 
  (exit $ac_status); } >/dev/null && {
14566
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14567
 
         test ! -s conftest.err
14568
 
       }; then
14569
 
  ac_header_preproc=yes
14570
 
else
14571
 
  $as_echo "$as_me: failed program was:" >&5
14572
 
sed 's/^/| /' conftest.$ac_ext >&5
14573
 
 
14574
 
  ac_header_preproc=no
14575
 
fi
14576
 
 
14577
 
rm -f conftest.err conftest.$ac_ext
14578
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14579
 
$as_echo "$ac_header_preproc" >&6; }
14580
 
 
14581
 
# So?  What about this header?
14582
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14583
 
  yes:no: )
14584
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14585
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14586
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14587
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14588
 
    ac_header_preproc=yes
14589
 
    ;;
14590
 
  no:yes:* )
14591
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14592
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14593
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14594
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14595
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14596
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14597
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14598
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14599
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14600
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14601
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14602
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14603
 
 
14604
 
    ;;
14605
 
esac
14606
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14607
 
$as_echo_n "checking for $ac_header... " >&6; }
14608
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14609
 
  $as_echo_n "(cached) " >&6
14610
 
else
14611
 
  eval "$as_ac_Header=\$ac_header_preproc"
14612
 
fi
14613
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
14614
 
                 $as_echo "$as_val"'`
14615
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14616
 
$as_echo "$ac_res" >&6; }
14617
 
 
14618
 
fi
14619
 
as_val=`eval 'as_val=${'$as_ac_Header'}
14620
 
                 $as_echo "$as_val"'`
14621
 
   if test "x$as_val" = x""yes; then
14622
 
  cat >>confdefs.h <<_ACEOF
14623
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14624
 
_ACEOF
14625
 
 
14626
 
fi
14627
 
 
14628
 
done
14629
 
 
14630
 
  fi
14631
 
  if test "$ac_cv_header_winsock2_h" = yes; then
14632
 
    HAVE_WINSOCK2_H=1
14633
 
  else
14634
 
    HAVE_WINSOCK2_H=0
14635
 
  fi
14636
 
 
14637
 
 
14638
 
 
14639
 
 
14640
 
  fi
14641
 
 
14642
 
 
14643
 
  { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
14644
 
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
14645
 
if test -z "$MKDIR_P"; then
14646
 
  if test "${ac_cv_path_mkdir+set}" = set; then
14647
 
  $as_echo_n "(cached) " >&6
14648
 
else
14649
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14650
 
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
14651
 
do
14652
 
  IFS=$as_save_IFS
14653
 
  test -z "$as_dir" && as_dir=.
14654
 
  for ac_prog in mkdir gmkdir; do
14655
 
         for ac_exec_ext in '' $ac_executable_extensions; do
14656
 
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
14657
 
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
14658
 
             'mkdir (GNU coreutils) '* | \
14659
 
             'mkdir (coreutils) '* | \
14660
 
             'mkdir (fileutils) '4.1*)
14661
 
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
14662
 
               break 3;;
14663
 
           esac
14664
 
         done
14665
 
       done
14666
 
done
14667
 
IFS=$as_save_IFS
14668
 
 
14669
 
fi
14670
 
 
14671
 
  if test "${ac_cv_path_mkdir+set}" = set; then
14672
 
    MKDIR_P="$ac_cv_path_mkdir -p"
14673
 
  else
14674
 
    # As a last resort, use the slow shell script.  Don't cache a
14675
 
    # value for MKDIR_P within a source directory, because that will
14676
 
    # break other packages using the cache if that directory is
14677
 
    # removed, or if the value is a relative name.
14678
 
    test -d ./--version && rmdir ./--version
14679
 
    MKDIR_P="$ac_install_sh -d"
14680
 
  fi
14681
 
fi
14682
 
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
14683
 
$as_echo "$MKDIR_P" >&6; }
14684
 
 
14685
 
 
14686
 
 
14687
 
 
14688
 
 
14689
 
 
14690
 
 
14691
 
  :
14692
 
 
14693
 
 
14694
 
 
14695
 
 
14696
 
 
14697
 
 
14698
 
 
14699
 
     if test $gl_cv_have_include_next = yes; then
14700
 
       gl_cv_next_unistd_h='<'unistd.h'>'
14701
 
     else
14702
 
       { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
14703
 
$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
14704
 
if test "${gl_cv_next_unistd_h+set}" = set; then
14705
 
  $as_echo_n "(cached) " >&6
14706
 
else
14707
 
 
14708
 
          if test $ac_cv_header_unistd_h = yes; then
14709
 
            cat >conftest.$ac_ext <<_ACEOF
14710
 
/* confdefs.h.  */
14711
 
_ACEOF
14712
 
cat confdefs.h >>conftest.$ac_ext
14713
 
cat >>conftest.$ac_ext <<_ACEOF
14714
 
/* end confdefs.h.  */
14715
 
#include <unistd.h>
14716
 
 
14717
 
_ACEOF
14718
 
                                    gl_cv_next_unistd_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14719
 
               sed -n '\#/unistd.h#{
14720
 
                 s#.*"\(.*/unistd.h\)".*#\1#
14721
 
                 s#^/[^/]#//&#
14722
 
                 p
14723
 
                 q
14724
 
               }'`'"'
14725
 
          else
14726
 
            gl_cv_next_unistd_h='<'unistd.h'>'
14727
 
          fi
14728
 
 
14729
 
fi
14730
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
14731
 
$as_echo "$gl_cv_next_unistd_h" >&6; }
14732
 
     fi
14733
 
     NEXT_UNISTD_H=$gl_cv_next_unistd_h
14734
 
 
14735
 
 
14736
 
 
14737
 
 
14738
 
 
14739
 
  :
14740
 
 
14741
 
 
14742
 
 
14743
 
 
14744
 
 
14745
 
  if test $ac_cv_header_unistd_h = yes; then
14746
 
    HAVE_UNISTD_H=1
14747
 
  else
14748
 
    HAVE_UNISTD_H=0
14749
 
  fi
14750
 
 
14751
 
 
14752
 
 
14753
 
 
14754
 
  :
14755
 
 
14756
 
 
14757
 
 
14758
 
 
14759
 
 
14760
 
  if test $ac_cv_func_vasnprintf = no; then
14761
 
 
14762
 
 
14763
 
  :
14764
 
 
14765
 
 
14766
 
 
14767
 
 
14768
 
 
14769
 
 
14770
 
 
14771
 
 
14772
 
 
14773
 
 
14774
 
 
14775
 
 
14776
 
 
14777
 
  gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
14778
 
 
14779
 
 
14780
 
 
14781
 
 
14782
 
 
14783
 
 
14784
 
 
14785
 
 
14786
 
 
14787
 
  gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
14788
 
 
14789
 
 
14790
 
 
14791
 
 
14792
 
 
14793
 
 
14794
 
 
14795
 
 
14796
 
 
14797
 
  gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
14798
 
 
14799
 
 
14800
 
 
14801
 
 
14802
 
 
14803
 
 
14804
 
 
14805
 
 
14806
 
 
14807
 
  gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
14808
 
 
14809
 
  if test $ac_cv_func_vasnprintf = yes; then
14810
 
 
14811
 
cat >>confdefs.h <<\_ACEOF
14812
 
#define REPLACE_VASNPRINTF 1
14813
 
_ACEOF
14814
 
 
14815
 
  fi
14816
 
 
14817
 
 
14818
 
 
14819
 
 
14820
 
 
14821
 
 
14822
 
 
14823
 
 
14824
 
 
14825
 
 
14826
 
  { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
14827
 
$as_echo_n "checking for ptrdiff_t... " >&6; }
14828
 
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
14829
 
  $as_echo_n "(cached) " >&6
14830
 
else
14831
 
  ac_cv_type_ptrdiff_t=no
14832
 
cat >conftest.$ac_ext <<_ACEOF
14833
 
/* confdefs.h.  */
14834
 
_ACEOF
14835
 
cat confdefs.h >>conftest.$ac_ext
14836
 
cat >>conftest.$ac_ext <<_ACEOF
14837
 
/* end confdefs.h.  */
14838
 
$ac_includes_default
14839
 
int
14840
 
main ()
14841
 
{
14842
 
if (sizeof (ptrdiff_t))
14843
 
       return 0;
14844
 
  ;
14845
 
  return 0;
14846
 
}
14847
 
_ACEOF
14848
 
rm -f conftest.$ac_objext
14849
 
if { (ac_try="$ac_compile"
14850
 
case "(($ac_try" in
14851
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14852
 
  *) ac_try_echo=$ac_try;;
14853
 
esac
14854
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14855
 
$as_echo "$ac_try_echo") >&5
14856
 
  (eval "$ac_compile") 2>conftest.er1
14857
 
  ac_status=$?
14858
 
  grep -v '^ *+' conftest.er1 >conftest.err
14859
 
  rm -f conftest.er1
14860
 
  cat conftest.err >&5
14861
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862
 
  (exit $ac_status); } && {
14863
 
         test -z "$ac_c_werror_flag" ||
14864
 
         test ! -s conftest.err
14865
 
       } && test -s conftest.$ac_objext; then
14866
 
  cat >conftest.$ac_ext <<_ACEOF
14867
 
/* confdefs.h.  */
14868
 
_ACEOF
14869
 
cat confdefs.h >>conftest.$ac_ext
14870
 
cat >>conftest.$ac_ext <<_ACEOF
14871
 
/* end confdefs.h.  */
14872
 
$ac_includes_default
14873
 
int
14874
 
main ()
14875
 
{
14876
 
if (sizeof ((ptrdiff_t)))
14877
 
          return 0;
14878
 
  ;
14879
 
  return 0;
14880
 
}
14881
 
_ACEOF
14882
 
rm -f conftest.$ac_objext
14883
 
if { (ac_try="$ac_compile"
14884
 
case "(($ac_try" in
14885
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886
 
  *) ac_try_echo=$ac_try;;
14887
 
esac
14888
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14889
 
$as_echo "$ac_try_echo") >&5
14890
 
  (eval "$ac_compile") 2>conftest.er1
14891
 
  ac_status=$?
14892
 
  grep -v '^ *+' conftest.er1 >conftest.err
14893
 
  rm -f conftest.er1
14894
 
  cat conftest.err >&5
14895
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896
 
  (exit $ac_status); } && {
14897
 
         test -z "$ac_c_werror_flag" ||
14898
 
         test ! -s conftest.err
14899
 
       } && test -s conftest.$ac_objext; then
14900
 
  :
14901
 
else
14902
 
  $as_echo "$as_me: failed program was:" >&5
14903
 
sed 's/^/| /' conftest.$ac_ext >&5
14904
 
 
14905
 
        ac_cv_type_ptrdiff_t=yes
14906
 
fi
14907
 
 
14908
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14909
 
else
14910
 
  $as_echo "$as_me: failed program was:" >&5
14911
 
sed 's/^/| /' conftest.$ac_ext >&5
14912
 
 
14913
 
 
14914
 
fi
14915
 
 
14916
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14917
 
fi
14918
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
14919
 
$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
14920
 
if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
14921
 
  :
14922
 
else
14923
 
 
14924
 
cat >>confdefs.h <<\_ACEOF
14925
 
#define ptrdiff_t long
14926
 
_ACEOF
14927
 
 
14928
 
 
14929
 
fi
14930
 
 
14931
 
 
14932
 
 
14933
 
 
14934
 
 
14935
 
 
14936
 
 
14937
 
 
14938
 
 
14939
 
 
14940
 
for ac_func in snprintf wcslen
14941
 
do
14942
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14943
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14944
 
$as_echo_n "checking for $ac_func... " >&6; }
14945
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14946
 
  $as_echo_n "(cached) " >&6
14947
 
else
14948
 
  cat >conftest.$ac_ext <<_ACEOF
14949
 
/* confdefs.h.  */
14950
 
_ACEOF
14951
 
cat confdefs.h >>conftest.$ac_ext
14952
 
cat >>conftest.$ac_ext <<_ACEOF
14953
 
/* end confdefs.h.  */
14954
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14955
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14956
 
#define $ac_func innocuous_$ac_func
14957
 
 
14958
 
/* System header to define __stub macros and hopefully few prototypes,
14959
 
    which can conflict with char $ac_func (); below.
14960
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14961
 
    <limits.h> exists even on freestanding compilers.  */
14962
 
 
14963
 
#ifdef __STDC__
14964
 
# include <limits.h>
14965
 
#else
14966
 
# include <assert.h>
14967
 
#endif
14968
 
 
14969
 
#undef $ac_func
14970
 
 
14971
 
/* Override any GCC internal prototype to avoid an error.
14972
 
   Use char because int might match the return type of a GCC
14973
 
   builtin and then its argument prototype would still apply.  */
14974
 
#ifdef __cplusplus
14975
 
extern "C"
14976
 
#endif
14977
 
char $ac_func ();
14978
 
/* The GNU C library defines this for functions which it implements
14979
 
    to always fail with ENOSYS.  Some functions are actually named
14980
 
    something starting with __ and the normal name is an alias.  */
14981
 
#if defined __stub_$ac_func || defined __stub___$ac_func
14982
 
choke me
14983
 
#endif
14984
 
 
14985
 
int
14986
 
main ()
14987
 
{
14988
 
return $ac_func ();
14989
 
  ;
14990
 
  return 0;
14991
 
}
14992
 
_ACEOF
14993
 
rm -f conftest.$ac_objext conftest$ac_exeext
14994
 
if { (ac_try="$ac_link"
14995
 
case "(($ac_try" in
14996
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14997
 
  *) ac_try_echo=$ac_try;;
14998
 
esac
14999
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15000
 
$as_echo "$ac_try_echo") >&5
15001
 
  (eval "$ac_link") 2>conftest.er1
15002
 
  ac_status=$?
15003
 
  grep -v '^ *+' conftest.er1 >conftest.err
15004
 
  rm -f conftest.er1
15005
 
  cat conftest.err >&5
15006
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007
 
  (exit $ac_status); } && {
15008
 
         test -z "$ac_c_werror_flag" ||
15009
 
         test ! -s conftest.err
15010
 
       } && test -s conftest$ac_exeext && {
15011
 
         test "$cross_compiling" = yes ||
15012
 
         $as_test_x conftest$ac_exeext
15013
 
       }; then
15014
 
  eval "$as_ac_var=yes"
15015
 
else
15016
 
  $as_echo "$as_me: failed program was:" >&5
15017
 
sed 's/^/| /' conftest.$ac_ext >&5
15018
 
 
15019
 
        eval "$as_ac_var=no"
15020
 
fi
15021
 
 
15022
 
rm -rf conftest.dSYM
15023
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15024
 
      conftest$ac_exeext conftest.$ac_ext
15025
 
fi
15026
 
ac_res=`eval 'as_val=${'$as_ac_var'}
15027
 
                 $as_echo "$as_val"'`
15028
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15029
 
$as_echo "$ac_res" >&6; }
15030
 
as_val=`eval 'as_val=${'$as_ac_var'}
15031
 
                 $as_echo "$as_val"'`
15032
 
   if test "x$as_val" = x""yes; then
15033
 
  cat >>confdefs.h <<_ACEOF
15034
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15035
 
_ACEOF
15036
 
 
15037
 
fi
15038
 
done
15039
 
 
15040
 
      { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
15041
 
$as_echo_n "checking whether _snprintf is declared... " >&6; }
15042
 
if test "${ac_cv_have_decl__snprintf+set}" = set; then
15043
 
  $as_echo_n "(cached) " >&6
15044
 
else
15045
 
  cat >conftest.$ac_ext <<_ACEOF
15046
 
/* confdefs.h.  */
15047
 
_ACEOF
15048
 
cat confdefs.h >>conftest.$ac_ext
15049
 
cat >>conftest.$ac_ext <<_ACEOF
15050
 
/* end confdefs.h.  */
15051
 
#include <stdio.h>
15052
 
 
15053
 
int
15054
 
main ()
15055
 
{
15056
 
#ifndef _snprintf
15057
 
  (void) _snprintf;
15058
 
#endif
15059
 
 
15060
 
  ;
15061
 
  return 0;
15062
 
}
15063
 
_ACEOF
15064
 
rm -f conftest.$ac_objext
15065
 
if { (ac_try="$ac_compile"
15066
 
case "(($ac_try" in
15067
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15068
 
  *) ac_try_echo=$ac_try;;
15069
 
esac
15070
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15071
 
$as_echo "$ac_try_echo") >&5
15072
 
  (eval "$ac_compile") 2>conftest.er1
15073
 
  ac_status=$?
15074
 
  grep -v '^ *+' conftest.er1 >conftest.err
15075
 
  rm -f conftest.er1
15076
 
  cat conftest.err >&5
15077
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078
 
  (exit $ac_status); } && {
15079
 
         test -z "$ac_c_werror_flag" ||
15080
 
         test ! -s conftest.err
15081
 
       } && test -s conftest.$ac_objext; then
15082
 
  ac_cv_have_decl__snprintf=yes
15083
 
else
15084
 
  $as_echo "$as_me: failed program was:" >&5
15085
 
sed 's/^/| /' conftest.$ac_ext >&5
15086
 
 
15087
 
        ac_cv_have_decl__snprintf=no
15088
 
fi
15089
 
 
15090
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15091
 
fi
15092
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
15093
 
$as_echo "$ac_cv_have_decl__snprintf" >&6; }
15094
 
if test "x$ac_cv_have_decl__snprintf" = x""yes; then
15095
 
 
15096
 
cat >>confdefs.h <<_ACEOF
15097
 
#define HAVE_DECL__SNPRINTF 1
15098
 
_ACEOF
15099
 
 
15100
 
 
15101
 
else
15102
 
  cat >>confdefs.h <<_ACEOF
15103
 
#define HAVE_DECL__SNPRINTF 0
15104
 
_ACEOF
15105
 
 
15106
 
 
15107
 
fi
15108
 
 
15109
 
 
15110
 
 
15111
 
 
15112
 
 
15113
 
 
15114
 
  fi
15115
 
 
15116
 
 
15117
 
 
15118
 
  { $as_echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
15119
 
$as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
15120
 
if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
15121
 
  $as_echo_n "(cached) " >&6
15122
 
else
15123
 
  cat >conftest.$ac_ext <<_ACEOF
15124
 
#include <wchar.h>
15125
 
wchar_t w;
15126
 
_ACEOF
15127
 
rm -f conftest.$ac_objext
15128
 
if { (ac_try="$ac_compile"
15129
 
case "(($ac_try" in
15130
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131
 
  *) ac_try_echo=$ac_try;;
15132
 
esac
15133
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15134
 
$as_echo "$ac_try_echo") >&5
15135
 
  (eval "$ac_compile") 2>conftest.er1
15136
 
  ac_status=$?
15137
 
  grep -v '^ *+' conftest.er1 >conftest.err
15138
 
  rm -f conftest.er1
15139
 
  cat conftest.err >&5
15140
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141
 
  (exit $ac_status); } && {
15142
 
         test -z "$ac_c_werror_flag" ||
15143
 
         test ! -s conftest.err
15144
 
       } && test -s conftest.$ac_objext; then
15145
 
  gl_cv_header_wchar_h_standalone=yes
15146
 
else
15147
 
  $as_echo "$as_me: failed program was:" >&5
15148
 
sed 's/^/| /' conftest.$ac_ext >&5
15149
 
 
15150
 
        gl_cv_header_wchar_h_standalone=no
15151
 
fi
15152
 
 
15153
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15154
 
fi
15155
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
15156
 
$as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
15157
 
 
15158
 
 
15159
 
  if test $gt_cv_c_wint_t = yes; then
15160
 
    HAVE_WINT_T=1
15161
 
  else
15162
 
    HAVE_WINT_T=0
15163
 
  fi
15164
 
 
15165
 
 
15166
 
  if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes; then
15167
 
    WCHAR_H=wchar.h
15168
 
  fi
15169
 
 
15170
 
 
15171
 
  :
15172
 
 
15173
 
 
15174
 
 
15175
 
 
15176
 
 
15177
 
  if test $ac_cv_header_wchar_h = yes; then
15178
 
    HAVE_WCHAR_H=1
15179
 
  else
15180
 
    HAVE_WCHAR_H=0
15181
 
  fi
15182
 
 
15183
 
 
15184
 
 
15185
 
 
15186
 
  :
15187
 
 
15188
 
 
15189
 
 
15190
 
 
15191
 
 
15192
 
 
15193
 
 
15194
 
     if test $gl_cv_have_include_next = yes; then
15195
 
       gl_cv_next_wchar_h='<'wchar.h'>'
15196
 
     else
15197
 
       { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
15198
 
$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
15199
 
if test "${gl_cv_next_wchar_h+set}" = set; then
15200
 
  $as_echo_n "(cached) " >&6
15201
 
else
15202
 
 
15203
 
          if test $ac_cv_header_wchar_h = yes; then
15204
 
            cat >conftest.$ac_ext <<_ACEOF
15205
 
/* confdefs.h.  */
15206
 
_ACEOF
15207
 
cat confdefs.h >>conftest.$ac_ext
15208
 
cat >>conftest.$ac_ext <<_ACEOF
15209
 
/* end confdefs.h.  */
15210
 
#include <wchar.h>
15211
 
 
15212
 
_ACEOF
15213
 
                                    gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15214
 
               sed -n '\#/wchar.h#{
15215
 
                 s#.*"\(.*/wchar.h\)".*#\1#
15216
 
                 s#^/[^/]#//&#
15217
 
                 p
15218
 
                 q
15219
 
               }'`'"'
15220
 
          else
15221
 
            gl_cv_next_wchar_h='<'wchar.h'>'
15222
 
          fi
15223
 
 
15224
 
fi
15225
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
15226
 
$as_echo "$gl_cv_next_wchar_h" >&6; }
15227
 
     fi
15228
 
     NEXT_WCHAR_H=$gl_cv_next_wchar_h
15229
 
 
15230
 
 
15231
 
 
15232
 
 
15233
 
 
15234
 
 
15235
 
 
15236
 
 
15237
 
for ac_header in stdint.h
15238
 
do
15239
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15240
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15241
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15242
 
$as_echo_n "checking for $ac_header... " >&6; }
15243
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15244
 
  $as_echo_n "(cached) " >&6
15245
 
fi
15246
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
15247
 
                 $as_echo "$as_val"'`
15248
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15249
 
$as_echo "$ac_res" >&6; }
15250
 
else
15251
 
  # Is the header compilable?
15252
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15253
 
$as_echo_n "checking $ac_header usability... " >&6; }
15254
 
cat >conftest.$ac_ext <<_ACEOF
15255
 
/* confdefs.h.  */
15256
 
_ACEOF
15257
 
cat confdefs.h >>conftest.$ac_ext
15258
 
cat >>conftest.$ac_ext <<_ACEOF
15259
 
/* end confdefs.h.  */
15260
 
$ac_includes_default
15261
 
#include <$ac_header>
15262
 
_ACEOF
15263
 
rm -f conftest.$ac_objext
15264
 
if { (ac_try="$ac_compile"
15265
 
case "(($ac_try" in
15266
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15267
 
  *) ac_try_echo=$ac_try;;
15268
 
esac
15269
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15270
 
$as_echo "$ac_try_echo") >&5
15271
 
  (eval "$ac_compile") 2>conftest.er1
15272
 
  ac_status=$?
15273
 
  grep -v '^ *+' conftest.er1 >conftest.err
15274
 
  rm -f conftest.er1
15275
 
  cat conftest.err >&5
15276
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277
 
  (exit $ac_status); } && {
15278
 
         test -z "$ac_c_werror_flag" ||
15279
 
         test ! -s conftest.err
15280
 
       } && test -s conftest.$ac_objext; then
15281
 
  ac_header_compiler=yes
15282
 
else
15283
 
  $as_echo "$as_me: failed program was:" >&5
15284
 
sed 's/^/| /' conftest.$ac_ext >&5
15285
 
 
15286
 
        ac_header_compiler=no
15287
 
fi
15288
 
 
15289
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15290
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15291
 
$as_echo "$ac_header_compiler" >&6; }
15292
 
 
15293
 
# Is the header present?
15294
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15295
 
$as_echo_n "checking $ac_header presence... " >&6; }
15296
 
cat >conftest.$ac_ext <<_ACEOF
15297
 
/* confdefs.h.  */
15298
 
_ACEOF
15299
 
cat confdefs.h >>conftest.$ac_ext
15300
 
cat >>conftest.$ac_ext <<_ACEOF
15301
 
/* end confdefs.h.  */
15302
 
#include <$ac_header>
15303
 
_ACEOF
15304
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
15305
 
case "(($ac_try" in
15306
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15307
 
  *) ac_try_echo=$ac_try;;
15308
 
esac
15309
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15310
 
$as_echo "$ac_try_echo") >&5
15311
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15312
 
  ac_status=$?
15313
 
  grep -v '^ *+' conftest.er1 >conftest.err
15314
 
  rm -f conftest.er1
15315
 
  cat conftest.err >&5
15316
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317
 
  (exit $ac_status); } >/dev/null && {
15318
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15319
 
         test ! -s conftest.err
15320
 
       }; then
15321
 
  ac_header_preproc=yes
15322
 
else
15323
 
  $as_echo "$as_me: failed program was:" >&5
15324
 
sed 's/^/| /' conftest.$ac_ext >&5
15325
 
 
15326
 
  ac_header_preproc=no
15327
 
fi
15328
 
 
15329
 
rm -f conftest.err conftest.$ac_ext
15330
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15331
 
$as_echo "$ac_header_preproc" >&6; }
15332
 
 
15333
 
# So?  What about this header?
15334
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15335
 
  yes:no: )
15336
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15337
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15338
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15339
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15340
 
    ac_header_preproc=yes
15341
 
    ;;
15342
 
  no:yes:* )
15343
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15344
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15345
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15346
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15347
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15348
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15349
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15350
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15351
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15352
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15353
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15354
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15355
 
 
15356
 
    ;;
15357
 
esac
15358
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15359
 
$as_echo_n "checking for $ac_header... " >&6; }
15360
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15361
 
  $as_echo_n "(cached) " >&6
15362
 
else
15363
 
  eval "$as_ac_Header=\$ac_header_preproc"
15364
 
fi
15365
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
15366
 
                 $as_echo "$as_val"'`
15367
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15368
 
$as_echo "$ac_res" >&6; }
15369
 
 
15370
 
fi
15371
 
as_val=`eval 'as_val=${'$as_ac_Header'}
15372
 
                 $as_echo "$as_val"'`
15373
 
   if test "x$as_val" = x""yes; then
15374
 
  cat >>confdefs.h <<_ACEOF
15375
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15376
 
_ACEOF
15377
 
 
15378
 
fi
15379
 
 
15380
 
done
15381
 
 
15382
 
 
15383
 
 
15384
 
 
15385
 
 
15386
 
 
15387
 
 
15388
 
 
15389
 
 
15390
 
 
15391
 
 
15392
 
  gltests_libdeps=
15393
 
  gltests_ltlibdeps=
15394
 
 
15395
 
 
15396
 
 
15397
 
 
15398
 
 
15399
 
 
15400
 
 
15401
 
 
15402
 
  gl_source_base='gnulib/tests'
15403
 
 
15404
 
  { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
15405
 
$as_echo_n "checking for wchar_t... " >&6; }
15406
 
if test "${gt_cv_c_wchar_t+set}" = set; then
15407
 
  $as_echo_n "(cached) " >&6
15408
 
else
15409
 
  cat >conftest.$ac_ext <<_ACEOF
15410
 
/* confdefs.h.  */
15411
 
_ACEOF
15412
 
cat confdefs.h >>conftest.$ac_ext
15413
 
cat >>conftest.$ac_ext <<_ACEOF
15414
 
/* end confdefs.h.  */
15415
 
#include <stddef.h>
15416
 
       wchar_t foo = (wchar_t)'\0';
15417
 
int
15418
 
main ()
15419
 
{
15420
 
 
15421
 
  ;
15422
 
  return 0;
15423
 
}
15424
 
_ACEOF
15425
 
rm -f conftest.$ac_objext
15426
 
if { (ac_try="$ac_compile"
15427
 
case "(($ac_try" in
15428
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429
 
  *) ac_try_echo=$ac_try;;
15430
 
esac
15431
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15432
 
$as_echo "$ac_try_echo") >&5
15433
 
  (eval "$ac_compile") 2>conftest.er1
15434
 
  ac_status=$?
15435
 
  grep -v '^ *+' conftest.er1 >conftest.err
15436
 
  rm -f conftest.er1
15437
 
  cat conftest.err >&5
15438
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439
 
  (exit $ac_status); } && {
15440
 
         test -z "$ac_c_werror_flag" ||
15441
 
         test ! -s conftest.err
15442
 
       } && test -s conftest.$ac_objext; then
15443
 
  gt_cv_c_wchar_t=yes
15444
 
else
15445
 
  $as_echo "$as_me: failed program was:" >&5
15446
 
sed 's/^/| /' conftest.$ac_ext >&5
15447
 
 
15448
 
        gt_cv_c_wchar_t=no
15449
 
fi
15450
 
 
15451
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15452
 
fi
15453
 
{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
15454
 
$as_echo "$gt_cv_c_wchar_t" >&6; }
15455
 
  if test $gt_cv_c_wchar_t = yes; then
15456
 
 
15457
 
cat >>confdefs.h <<\_ACEOF
15458
 
#define HAVE_WCHAR_T 1
15459
 
_ACEOF
15460
 
 
15461
 
  fi
15462
 
 
15463
 
 
15464
 
  { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
15465
 
$as_echo_n "checking for wint_t... " >&6; }
15466
 
if test "${gt_cv_c_wint_t+set}" = set; then
15467
 
  $as_echo_n "(cached) " >&6
15468
 
else
15469
 
  cat >conftest.$ac_ext <<_ACEOF
15470
 
/* confdefs.h.  */
15471
 
_ACEOF
15472
 
cat confdefs.h >>conftest.$ac_ext
15473
 
cat >>conftest.$ac_ext <<_ACEOF
15474
 
/* end confdefs.h.  */
15475
 
 
15476
 
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15477
 
   <wchar.h>.
15478
 
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
15479
 
   before <wchar.h>.  */
15480
 
#include <stddef.h>
15481
 
#include <stdio.h>
15482
 
#include <time.h>
15483
 
#include <wchar.h>
15484
 
       wint_t foo = (wchar_t)'\0';
15485
 
int
15486
 
main ()
15487
 
{
15488
 
 
15489
 
  ;
15490
 
  return 0;
15491
 
}
15492
 
_ACEOF
15493
 
rm -f conftest.$ac_objext
15494
 
if { (ac_try="$ac_compile"
15495
 
case "(($ac_try" in
15496
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15497
 
  *) ac_try_echo=$ac_try;;
15498
 
esac
15499
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15500
 
$as_echo "$ac_try_echo") >&5
15501
 
  (eval "$ac_compile") 2>conftest.er1
15502
 
  ac_status=$?
15503
 
  grep -v '^ *+' conftest.er1 >conftest.err
15504
 
  rm -f conftest.er1
15505
 
  cat conftest.err >&5
15506
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507
 
  (exit $ac_status); } && {
15508
 
         test -z "$ac_c_werror_flag" ||
15509
 
         test ! -s conftest.err
15510
 
       } && test -s conftest.$ac_objext; then
15511
 
  gt_cv_c_wint_t=yes
15512
 
else
15513
 
  $as_echo "$as_me: failed program was:" >&5
15514
 
sed 's/^/| /' conftest.$ac_ext >&5
15515
 
 
15516
 
        gt_cv_c_wint_t=no
15517
 
fi
15518
 
 
15519
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15520
 
fi
15521
 
{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
15522
 
$as_echo "$gt_cv_c_wint_t" >&6; }
15523
 
  if test $gt_cv_c_wint_t = yes; then
15524
 
 
15525
 
cat >>confdefs.h <<\_ACEOF
15526
 
#define HAVE_WINT_T 1
15527
 
_ACEOF
15528
 
 
15529
 
  fi
15530
 
 
15531
 
 
15532
 
for ac_func in shutdown
15533
 
do
15534
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15535
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15536
 
$as_echo_n "checking for $ac_func... " >&6; }
15537
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15538
 
  $as_echo_n "(cached) " >&6
15539
 
else
15540
 
  cat >conftest.$ac_ext <<_ACEOF
15541
 
/* confdefs.h.  */
15542
 
_ACEOF
15543
 
cat confdefs.h >>conftest.$ac_ext
15544
 
cat >>conftest.$ac_ext <<_ACEOF
15545
 
/* end confdefs.h.  */
15546
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15547
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15548
 
#define $ac_func innocuous_$ac_func
15549
 
 
15550
 
/* System header to define __stub macros and hopefully few prototypes,
15551
 
    which can conflict with char $ac_func (); below.
15552
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15553
 
    <limits.h> exists even on freestanding compilers.  */
15554
 
 
15555
 
#ifdef __STDC__
15556
 
# include <limits.h>
15557
 
#else
15558
 
# include <assert.h>
15559
 
#endif
15560
 
 
15561
 
#undef $ac_func
15562
 
 
15563
 
/* Override any GCC internal prototype to avoid an error.
15564
 
   Use char because int might match the return type of a GCC
15565
 
   builtin and then its argument prototype would still apply.  */
15566
 
#ifdef __cplusplus
15567
 
extern "C"
15568
 
#endif
15569
 
char $ac_func ();
15570
 
/* The GNU C library defines this for functions which it implements
15571
 
    to always fail with ENOSYS.  Some functions are actually named
15572
 
    something starting with __ and the normal name is an alias.  */
15573
 
#if defined __stub_$ac_func || defined __stub___$ac_func
15574
 
choke me
15575
 
#endif
15576
 
 
15577
 
int
15578
 
main ()
15579
 
{
15580
 
return $ac_func ();
15581
 
  ;
15582
 
  return 0;
15583
 
}
15584
 
_ACEOF
15585
 
rm -f conftest.$ac_objext conftest$ac_exeext
15586
 
if { (ac_try="$ac_link"
15587
 
case "(($ac_try" in
15588
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15589
 
  *) ac_try_echo=$ac_try;;
15590
 
esac
15591
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15592
 
$as_echo "$ac_try_echo") >&5
15593
 
  (eval "$ac_link") 2>conftest.er1
15594
 
  ac_status=$?
15595
 
  grep -v '^ *+' conftest.er1 >conftest.err
15596
 
  rm -f conftest.er1
15597
 
  cat conftest.err >&5
15598
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599
 
  (exit $ac_status); } && {
15600
 
         test -z "$ac_c_werror_flag" ||
15601
 
         test ! -s conftest.err
15602
 
       } && test -s conftest$ac_exeext && {
15603
 
         test "$cross_compiling" = yes ||
15604
 
         $as_test_x conftest$ac_exeext
15605
 
       }; then
15606
 
  eval "$as_ac_var=yes"
15607
 
else
15608
 
  $as_echo "$as_me: failed program was:" >&5
15609
 
sed 's/^/| /' conftest.$ac_ext >&5
15610
 
 
15611
 
        eval "$as_ac_var=no"
15612
 
fi
15613
 
 
15614
 
rm -rf conftest.dSYM
15615
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15616
 
      conftest$ac_exeext conftest.$ac_ext
15617
 
fi
15618
 
ac_res=`eval 'as_val=${'$as_ac_var'}
15619
 
                 $as_echo "$as_val"'`
15620
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15621
 
$as_echo "$ac_res" >&6; }
15622
 
as_val=`eval 'as_val=${'$as_ac_var'}
15623
 
                 $as_echo "$as_val"'`
15624
 
   if test "x$as_val" = x""yes; then
15625
 
  cat >>confdefs.h <<_ACEOF
15626
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15627
 
_ACEOF
15628
 
 
15629
 
fi
15630
 
done
15631
 
 
15632
 
  abs_aux_dir=`cd "$ac_aux_dir"; pwd`
15633
 
 
15634
 
 
15635
 
 
15636
 
 
15637
 
 
15638
 
 
15639
 
 
15640
 
 
15641
 
  LIBTESTS_LIBDEPS="$gltests_libdeps"
15642
 
 
15643
 
 
15644
 
 
15645
 
 
15646
 
   case $ac_cv_prog_cc_stdc in
15647
 
  no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
15648
 
  *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
15649
 
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
15650
 
if test "${ac_cv_prog_cc_c99+set}" = set; then
15651
 
  $as_echo_n "(cached) " >&6
15652
 
else
15653
 
  ac_cv_prog_cc_c99=no
15654
 
ac_save_CC=$CC
15655
 
cat >conftest.$ac_ext <<_ACEOF
15656
 
/* confdefs.h.  */
15657
 
_ACEOF
15658
 
cat confdefs.h >>conftest.$ac_ext
15659
 
cat >>conftest.$ac_ext <<_ACEOF
15660
 
/* end confdefs.h.  */
15661
 
#include <stdarg.h>
15662
 
#include <stdbool.h>
15663
 
#include <stdlib.h>
15664
 
#include <wchar.h>
15665
 
#include <stdio.h>
15666
 
 
15667
 
// Check varargs macros.  These examples are taken from C99 6.10.3.5.
15668
 
#define debug(...) fprintf (stderr, __VA_ARGS__)
15669
 
#define showlist(...) puts (#__VA_ARGS__)
15670
 
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
15671
 
static void
15672
 
test_varargs_macros (void)
15673
 
{
15674
 
  int x = 1234;
15675
 
  int y = 5678;
15676
 
  debug ("Flag");
15677
 
  debug ("X = %d\n", x);
15678
 
  showlist (The first, second, and third items.);
15679
 
  report (x>y, "x is %d but y is %d", x, y);
15680
 
}
15681
 
 
15682
 
// Check long long types.
15683
 
#define BIG64 18446744073709551615ull
15684
 
#define BIG32 4294967295ul
15685
 
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
15686
 
#if !BIG_OK
15687
 
  your preprocessor is broken;
15688
 
#endif
15689
 
#if BIG_OK
15690
 
#else
15691
 
  your preprocessor is broken;
15692
 
#endif
15693
 
static long long int bignum = -9223372036854775807LL;
15694
 
static unsigned long long int ubignum = BIG64;
15695
 
 
15696
 
struct incomplete_array
15697
 
{
15698
 
  int datasize;
15699
 
  double data[];
15700
 
};
15701
 
 
15702
 
struct named_init {
15703
 
  int number;
15704
 
  const wchar_t *name;
15705
 
  double average;
15706
 
};
15707
 
 
15708
 
typedef const char *ccp;
15709
 
 
15710
 
static inline int
15711
 
test_restrict (ccp restrict text)
15712
 
{
15713
 
  // See if C++-style comments work.
15714
 
  // Iterate through items via the restricted pointer.
15715
 
  // Also check for declarations in for loops.
15716
 
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
15717
 
    continue;
15718
 
  return 0;
15719
 
}
15720
 
 
15721
 
// Check varargs and va_copy.
15722
 
static void
15723
 
test_varargs (const char *format, ...)
15724
 
{
15725
 
  va_list args;
15726
 
  va_start (args, format);
15727
 
  va_list args_copy;
15728
 
  va_copy (args_copy, args);
15729
 
 
15730
 
  const char *str;
15731
 
  int number;
15732
 
  float fnumber;
15733
 
 
15734
 
  while (*format)
15735
 
    {
15736
 
      switch (*format++)
15737
 
        {
15738
 
        case 's': // string
15739
 
          str = va_arg (args_copy, const char *);
15740
 
          break;
15741
 
        case 'd': // int
15742
 
          number = va_arg (args_copy, int);
15743
 
          break;
15744
 
        case 'f': // float
15745
 
          fnumber = va_arg (args_copy, double);
15746
 
          break;
15747
 
        default:
15748
 
          break;
15749
 
        }
15750
 
    }
15751
 
  va_end (args_copy);
15752
 
  va_end (args);
15753
 
}
15754
 
 
15755
 
int
15756
 
main ()
15757
 
{
15758
 
 
15759
 
  // Check bool.
15760
 
  _Bool success = false;
15761
 
 
15762
 
  // Check restrict.
15763
 
  if (test_restrict ("String literal") == 0)
15764
 
    success = true;
15765
 
  char *restrict newvar = "Another string";
15766
 
 
15767
 
  // Check varargs.
15768
 
  test_varargs ("s, d' f .", "string", 65, 34.234);
15769
 
  test_varargs_macros ();
15770
 
 
15771
 
  // Check flexible array members.
15772
 
  struct incomplete_array *ia =
15773
 
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
15774
 
  ia->datasize = 10;
15775
 
  for (int i = 0; i < ia->datasize; ++i)
15776
 
    ia->data[i] = i * 1.234;
15777
 
 
15778
 
  // Check named initializers.
15779
 
  struct named_init ni = {
15780
 
    .number = 34,
15781
 
    .name = L"Test wide string",
15782
 
    .average = 543.34343,
15783
 
  };
15784
 
 
15785
 
  ni.number = 58;
15786
 
 
15787
 
  int dynamic_array[ni.number];
15788
 
  dynamic_array[ni.number - 1] = 543;
15789
 
 
15790
 
  // work around unused variable warnings
15791
 
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
15792
 
          || dynamic_array[ni.number - 1] != 543);
15793
 
 
15794
 
  ;
15795
 
  return 0;
15796
 
}
15797
 
_ACEOF
15798
 
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
15799
 
do
15800
 
  CC="$ac_save_CC $ac_arg"
15801
 
  rm -f conftest.$ac_objext
15802
 
if { (ac_try="$ac_compile"
15803
 
case "(($ac_try" in
15804
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15805
 
  *) ac_try_echo=$ac_try;;
15806
 
esac
15807
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15808
 
$as_echo "$ac_try_echo") >&5
15809
 
  (eval "$ac_compile") 2>conftest.er1
15810
 
  ac_status=$?
15811
 
  grep -v '^ *+' conftest.er1 >conftest.err
15812
 
  rm -f conftest.er1
15813
 
  cat conftest.err >&5
15814
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815
 
  (exit $ac_status); } && {
15816
 
         test -z "$ac_c_werror_flag" ||
15817
 
         test ! -s conftest.err
15818
 
       } && test -s conftest.$ac_objext; then
15819
 
  ac_cv_prog_cc_c99=$ac_arg
15820
 
else
15821
 
  $as_echo "$as_me: failed program was:" >&5
15822
 
sed 's/^/| /' conftest.$ac_ext >&5
15823
 
 
15824
 
 
15825
 
fi
15826
 
 
15827
 
rm -f core conftest.err conftest.$ac_objext
15828
 
  test "x$ac_cv_prog_cc_c99" != "xno" && break
15829
 
done
15830
 
rm -f conftest.$ac_ext
15831
 
CC=$ac_save_CC
15832
 
 
15833
 
fi
15834
 
# AC_CACHE_VAL
15835
 
case "x$ac_cv_prog_cc_c99" in
15836
 
  x)
15837
 
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
15838
 
$as_echo "none needed" >&6; } ;;
15839
 
  xno)
15840
 
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
15841
 
$as_echo "unsupported" >&6; } ;;
15842
 
  *)
15843
 
    CC="$CC $ac_cv_prog_cc_c99"
15844
 
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
15845
 
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
15846
 
esac
15847
 
if test "x$ac_cv_prog_cc_c99" != xno; then
15848
 
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
15849
 
else
15850
 
  { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
15851
 
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
15852
 
if test "${ac_cv_prog_cc_c89+set}" = set; then
15853
 
  $as_echo_n "(cached) " >&6
15854
 
else
15855
 
  ac_cv_prog_cc_c89=no
15856
 
ac_save_CC=$CC
15857
 
cat >conftest.$ac_ext <<_ACEOF
15858
 
/* confdefs.h.  */
15859
 
_ACEOF
15860
 
cat confdefs.h >>conftest.$ac_ext
15861
 
cat >>conftest.$ac_ext <<_ACEOF
15862
 
/* end confdefs.h.  */
15863
 
#include <stdarg.h>
15864
 
#include <stdio.h>
15865
 
#include <sys/types.h>
15866
 
#include <sys/stat.h>
15867
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
15868
 
struct buf { int x; };
15869
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
15870
 
static char *e (p, i)
15871
 
     char **p;
15872
 
     int i;
15873
 
{
15874
 
  return p[i];
15875
 
}
15876
 
static char *f (char * (*g) (char **, int), char **p, ...)
15877
 
{
15878
 
  char *s;
15879
 
  va_list v;
15880
 
  va_start (v,p);
15881
 
  s = g (p, va_arg (v,int));
15882
 
  va_end (v);
15883
 
  return s;
15884
 
}
15885
 
 
15886
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
15887
 
   function prototypes and stuff, but not '\xHH' hex character constants.
15888
 
   These don't provoke an error unfortunately, instead are silently treated
15889
 
   as 'x'.  The following induces an error, until -std is added to get
15890
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
15891
 
   array size at least.  It's necessary to write '\x00'==0 to get something
15892
 
   that's true only with -std.  */
15893
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
15894
 
 
15895
 
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
15896
 
   inside strings and character constants.  */
15897
 
#define FOO(x) 'x'
15898
 
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
15899
 
 
15900
 
int test (int i, double x);
15901
 
struct s1 {int (*f) (int a);};
15902
 
struct s2 {int (*f) (double a);};
15903
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
15904
 
int argc;
15905
 
char **argv;
15906
 
int
15907
 
main ()
15908
 
{
15909
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
15910
 
  ;
15911
 
  return 0;
15912
 
}
15913
 
_ACEOF
15914
 
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
15915
 
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15916
 
do
15917
 
  CC="$ac_save_CC $ac_arg"
15918
 
  rm -f conftest.$ac_objext
15919
 
if { (ac_try="$ac_compile"
15920
 
case "(($ac_try" in
15921
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15922
 
  *) ac_try_echo=$ac_try;;
15923
 
esac
15924
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15925
 
$as_echo "$ac_try_echo") >&5
15926
 
  (eval "$ac_compile") 2>conftest.er1
15927
 
  ac_status=$?
15928
 
  grep -v '^ *+' conftest.er1 >conftest.err
15929
 
  rm -f conftest.er1
15930
 
  cat conftest.err >&5
15931
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932
 
  (exit $ac_status); } && {
15933
 
         test -z "$ac_c_werror_flag" ||
15934
 
         test ! -s conftest.err
15935
 
       } && test -s conftest.$ac_objext; then
15936
 
  ac_cv_prog_cc_c89=$ac_arg
15937
 
else
15938
 
  $as_echo "$as_me: failed program was:" >&5
15939
 
sed 's/^/| /' conftest.$ac_ext >&5
15940
 
 
15941
 
 
15942
 
fi
15943
 
 
15944
 
rm -f core conftest.err conftest.$ac_objext
15945
 
  test "x$ac_cv_prog_cc_c89" != "xno" && break
15946
 
done
15947
 
rm -f conftest.$ac_ext
15948
 
CC=$ac_save_CC
15949
 
 
15950
 
fi
15951
 
# AC_CACHE_VAL
15952
 
case "x$ac_cv_prog_cc_c89" in
15953
 
  x)
15954
 
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
15955
 
$as_echo "none needed" >&6; } ;;
15956
 
  xno)
15957
 
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
15958
 
$as_echo "unsupported" >&6; } ;;
15959
 
  *)
15960
 
    CC="$CC $ac_cv_prog_cc_c89"
15961
 
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
15962
 
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
15963
 
esac
15964
 
if test "x$ac_cv_prog_cc_c89" != xno; then
15965
 
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
15966
 
else
15967
 
  ac_cv_prog_cc_stdc=no
15968
 
fi
15969
 
 
15970
 
 
15971
 
fi
15972
 
 
15973
 
 ;;
15974
 
esac
15975
 
  { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
15976
 
$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
15977
 
  if test "${ac_cv_prog_cc_stdc+set}" = set; then
15978
 
  $as_echo_n "(cached) " >&6
15979
 
fi
15980
 
 
15981
 
  case $ac_cv_prog_cc_stdc in
15982
 
  no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
15983
 
$as_echo "unsupported" >&6; } ;;
15984
 
  '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
15985
 
$as_echo "none needed" >&6; } ;;
15986
 
  *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
15987
 
$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
15988
 
esac
15989
 
 
15990
 
 
15991
 
if test "x$CC" != xcc; then
15992
 
  { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
15993
 
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
15994
 
else
15995
 
  { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
15996
 
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
15997
 
fi
15998
 
set dummy $CC; ac_cc=`$as_echo "$2" |
15999
 
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16000
 
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
16001
 
  $as_echo_n "(cached) " >&6
16002
 
else
16003
 
  cat >conftest.$ac_ext <<_ACEOF
16004
 
/* confdefs.h.  */
16005
 
_ACEOF
16006
 
cat confdefs.h >>conftest.$ac_ext
16007
 
cat >>conftest.$ac_ext <<_ACEOF
16008
 
/* end confdefs.h.  */
16009
 
 
16010
 
int
16011
 
main ()
16012
 
{
16013
 
 
16014
 
  ;
16015
 
  return 0;
16016
 
}
16017
 
_ACEOF
16018
 
# Make sure it works both with $CC and with simple cc.
16019
 
# We do the test twice because some compilers refuse to overwrite an
16020
 
# existing .o file with -o, though they will create one.
16021
 
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
16022
 
rm -f conftest2.*
16023
 
if { (case "(($ac_try" in
16024
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16025
 
  *) ac_try_echo=$ac_try;;
16026
 
esac
16027
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16028
 
$as_echo "$ac_try_echo") >&5
16029
 
  (eval "$ac_try") 2>&5
16030
 
  ac_status=$?
16031
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032
 
  (exit $ac_status); } &&
16033
 
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
16034
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035
 
  *) ac_try_echo=$ac_try;;
16036
 
esac
16037
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16038
 
$as_echo "$ac_try_echo") >&5
16039
 
  (eval "$ac_try") 2>&5
16040
 
  ac_status=$?
16041
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042
 
  (exit $ac_status); };
16043
 
then
16044
 
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
16045
 
  if test "x$CC" != xcc; then
16046
 
    # Test first that cc exists at all.
16047
 
    if { ac_try='cc -c conftest.$ac_ext >&5'
16048
 
  { (case "(($ac_try" in
16049
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050
 
  *) ac_try_echo=$ac_try;;
16051
 
esac
16052
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16053
 
$as_echo "$ac_try_echo") >&5
16054
 
  (eval "$ac_try") 2>&5
16055
 
  ac_status=$?
16056
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057
 
  (exit $ac_status); }; }; then
16058
 
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
16059
 
      rm -f conftest2.*
16060
 
      if { (case "(($ac_try" in
16061
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062
 
  *) ac_try_echo=$ac_try;;
16063
 
esac
16064
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16065
 
$as_echo "$ac_try_echo") >&5
16066
 
  (eval "$ac_try") 2>&5
16067
 
  ac_status=$?
16068
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069
 
  (exit $ac_status); } &&
16070
 
         test -f conftest2.$ac_objext && { (case "(($ac_try" in
16071
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072
 
  *) ac_try_echo=$ac_try;;
16073
 
esac
16074
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16075
 
$as_echo "$ac_try_echo") >&5
16076
 
  (eval "$ac_try") 2>&5
16077
 
  ac_status=$?
16078
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079
 
  (exit $ac_status); };
16080
 
      then
16081
 
        # cc works too.
16082
 
        :
16083
 
      else
16084
 
        # cc exists but doesn't like -o.
16085
 
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
16086
 
      fi
16087
 
    fi
16088
 
  fi
16089
 
else
16090
 
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
16091
 
fi
16092
 
rm -f core conftest*
16093
 
 
16094
 
fi
16095
 
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
16096
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
16097
 
$as_echo "yes" >&6; }
16098
 
else
16099
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
16100
 
$as_echo "no" >&6; }
16101
 
 
16102
 
cat >>confdefs.h <<\_ACEOF
16103
 
#define NO_MINUS_C_MINUS_O 1
16104
 
_ACEOF
16105
 
 
16106
 
fi
16107
 
 
16108
 
# FIXME: we rely on the cache variable name because
16109
 
# there is no other way.
16110
 
set dummy $CC
16111
 
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16112
 
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
16113
 
if test "$am_t" != yes; then
16114
 
   # Losing compiler, so override with the script.
16115
 
   # FIXME: It is wrong to rewrite CC.
16116
 
   # But if we don't then we get into trouble of one sort or another.
16117
 
   # A longer-term fix would be to have automake use am__CC in this case,
16118
 
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
16119
 
   CC="$am_aux_dir/compile $CC"
16120
 
fi
16121
 
 
16122
 
 
16123
 
 
16124
 
enable_win32_dll=yes
16125
 
 
16126
 
case $host in
16127
 
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
16128
 
  if test -n "$ac_tool_prefix"; then
16129
 
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
16130
 
set dummy ${ac_tool_prefix}as; ac_word=$2
16131
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16132
 
$as_echo_n "checking for $ac_word... " >&6; }
16133
 
if test "${ac_cv_prog_AS+set}" = set; then
16134
 
  $as_echo_n "(cached) " >&6
16135
 
else
16136
 
  if test -n "$AS"; then
16137
 
  ac_cv_prog_AS="$AS" # Let the user override the test.
16138
 
else
16139
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16140
 
for as_dir in $PATH
16141
 
do
16142
 
  IFS=$as_save_IFS
16143
 
  test -z "$as_dir" && as_dir=.
16144
 
  for ac_exec_ext in '' $ac_executable_extensions; do
16145
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16146
 
    ac_cv_prog_AS="${ac_tool_prefix}as"
16147
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16148
 
    break 2
16149
 
  fi
16150
 
done
16151
 
done
16152
 
IFS=$as_save_IFS
16153
 
 
16154
 
fi
16155
 
fi
16156
 
AS=$ac_cv_prog_AS
16157
 
if test -n "$AS"; then
16158
 
  { $as_echo "$as_me:$LINENO: result: $AS" >&5
16159
 
$as_echo "$AS" >&6; }
16160
 
else
16161
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
16162
 
$as_echo "no" >&6; }
16163
 
fi
16164
 
 
16165
 
 
16166
 
fi
16167
 
if test -z "$ac_cv_prog_AS"; then
16168
 
  ac_ct_AS=$AS
16169
 
  # Extract the first word of "as", so it can be a program name with args.
16170
 
set dummy as; ac_word=$2
16171
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16172
 
$as_echo_n "checking for $ac_word... " >&6; }
16173
 
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
16174
 
  $as_echo_n "(cached) " >&6
16175
 
else
16176
 
  if test -n "$ac_ct_AS"; then
16177
 
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
16178
 
else
16179
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16180
 
for as_dir in $PATH
16181
 
do
16182
 
  IFS=$as_save_IFS
16183
 
  test -z "$as_dir" && as_dir=.
16184
 
  for ac_exec_ext in '' $ac_executable_extensions; do
16185
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16186
 
    ac_cv_prog_ac_ct_AS="as"
16187
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16188
 
    break 2
16189
 
  fi
16190
 
done
16191
 
done
16192
 
IFS=$as_save_IFS
16193
 
 
16194
 
fi
16195
 
fi
16196
 
ac_ct_AS=$ac_cv_prog_ac_ct_AS
16197
 
if test -n "$ac_ct_AS"; then
16198
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
16199
 
$as_echo "$ac_ct_AS" >&6; }
16200
 
else
16201
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
16202
 
$as_echo "no" >&6; }
16203
 
fi
16204
 
 
16205
 
  if test "x$ac_ct_AS" = x; then
16206
 
    AS="false"
16207
 
  else
16208
 
    case $cross_compiling:$ac_tool_warned in
16209
 
yes:)
16210
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
16211
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16212
 
ac_tool_warned=yes ;;
16213
 
esac
16214
 
    AS=$ac_ct_AS
16215
 
  fi
16216
 
else
16217
 
  AS="$ac_cv_prog_AS"
16218
 
fi
16219
 
 
16220
 
  if test -n "$ac_tool_prefix"; then
16221
 
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
16222
 
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
16223
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16224
 
$as_echo_n "checking for $ac_word... " >&6; }
16225
 
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
16226
 
  $as_echo_n "(cached) " >&6
16227
 
else
16228
 
  if test -n "$DLLTOOL"; then
16229
 
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
16230
 
else
16231
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16232
 
for as_dir in $PATH
16233
 
do
16234
 
  IFS=$as_save_IFS
16235
 
  test -z "$as_dir" && as_dir=.
16236
 
  for ac_exec_ext in '' $ac_executable_extensions; do
16237
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16238
 
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
16239
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16240
 
    break 2
16241
 
  fi
16242
 
done
16243
 
done
16244
 
IFS=$as_save_IFS
16245
 
 
16246
 
fi
16247
 
fi
16248
 
DLLTOOL=$ac_cv_prog_DLLTOOL
16249
 
if test -n "$DLLTOOL"; then
16250
 
  { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
16251
 
$as_echo "$DLLTOOL" >&6; }
16252
 
else
16253
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
16254
 
$as_echo "no" >&6; }
16255
 
fi
16256
 
 
16257
 
 
16258
 
fi
16259
 
if test -z "$ac_cv_prog_DLLTOOL"; then
16260
 
  ac_ct_DLLTOOL=$DLLTOOL
16261
 
  # Extract the first word of "dlltool", so it can be a program name with args.
16262
 
set dummy dlltool; ac_word=$2
16263
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16264
 
$as_echo_n "checking for $ac_word... " >&6; }
16265
 
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
16266
 
  $as_echo_n "(cached) " >&6
16267
 
else
16268
 
  if test -n "$ac_ct_DLLTOOL"; then
16269
 
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
16270
 
else
16271
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16272
 
for as_dir in $PATH
16273
 
do
16274
 
  IFS=$as_save_IFS
16275
 
  test -z "$as_dir" && as_dir=.
16276
 
  for ac_exec_ext in '' $ac_executable_extensions; do
16277
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16278
 
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
16279
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16280
 
    break 2
16281
 
  fi
16282
 
done
16283
 
done
16284
 
IFS=$as_save_IFS
16285
 
 
16286
 
fi
16287
 
fi
16288
 
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
16289
 
if test -n "$ac_ct_DLLTOOL"; then
16290
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
16291
 
$as_echo "$ac_ct_DLLTOOL" >&6; }
16292
 
else
16293
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
16294
 
$as_echo "no" >&6; }
16295
 
fi
16296
 
 
16297
 
  if test "x$ac_ct_DLLTOOL" = x; then
16298
 
    DLLTOOL="false"
16299
 
  else
16300
 
    case $cross_compiling:$ac_tool_warned in
16301
 
yes:)
16302
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
16303
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16304
 
ac_tool_warned=yes ;;
16305
 
esac
16306
 
    DLLTOOL=$ac_ct_DLLTOOL
16307
 
  fi
16308
 
else
16309
 
  DLLTOOL="$ac_cv_prog_DLLTOOL"
16310
 
fi
16311
 
 
16312
 
  if test -n "$ac_tool_prefix"; then
16313
 
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
16314
 
set dummy ${ac_tool_prefix}objdump; ac_word=$2
16315
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16316
 
$as_echo_n "checking for $ac_word... " >&6; }
16317
 
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
16318
 
  $as_echo_n "(cached) " >&6
16319
 
else
16320
 
  if test -n "$OBJDUMP"; then
16321
 
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
16322
 
else
16323
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16324
 
for as_dir in $PATH
16325
 
do
16326
 
  IFS=$as_save_IFS
16327
 
  test -z "$as_dir" && as_dir=.
16328
 
  for ac_exec_ext in '' $ac_executable_extensions; do
16329
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16330
 
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
16331
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16332
 
    break 2
16333
 
  fi
16334
 
done
16335
 
done
16336
 
IFS=$as_save_IFS
16337
 
 
16338
 
fi
16339
 
fi
16340
 
OBJDUMP=$ac_cv_prog_OBJDUMP
16341
 
if test -n "$OBJDUMP"; then
16342
 
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
16343
 
$as_echo "$OBJDUMP" >&6; }
16344
 
else
16345
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
16346
 
$as_echo "no" >&6; }
16347
 
fi
16348
 
 
16349
 
 
16350
 
fi
16351
 
if test -z "$ac_cv_prog_OBJDUMP"; then
16352
 
  ac_ct_OBJDUMP=$OBJDUMP
16353
 
  # Extract the first word of "objdump", so it can be a program name with args.
16354
 
set dummy objdump; ac_word=$2
16355
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16356
 
$as_echo_n "checking for $ac_word... " >&6; }
16357
 
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
16358
 
  $as_echo_n "(cached) " >&6
16359
 
else
16360
 
  if test -n "$ac_ct_OBJDUMP"; then
16361
 
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
16362
 
else
16363
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16364
 
for as_dir in $PATH
16365
 
do
16366
 
  IFS=$as_save_IFS
16367
 
  test -z "$as_dir" && as_dir=.
16368
 
  for ac_exec_ext in '' $ac_executable_extensions; do
16369
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16370
 
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
16371
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16372
 
    break 2
16373
 
  fi
16374
 
done
16375
 
done
16376
 
IFS=$as_save_IFS
16377
 
 
16378
 
fi
16379
 
fi
16380
 
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
16381
 
if test -n "$ac_ct_OBJDUMP"; then
16382
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
16383
 
$as_echo "$ac_ct_OBJDUMP" >&6; }
16384
 
else
16385
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
16386
 
$as_echo "no" >&6; }
16387
 
fi
16388
 
 
16389
 
  if test "x$ac_ct_OBJDUMP" = x; then
16390
 
    OBJDUMP="false"
16391
 
  else
16392
 
    case $cross_compiling:$ac_tool_warned in
16393
 
yes:)
16394
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
16395
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16396
 
ac_tool_warned=yes ;;
16397
 
esac
16398
 
    OBJDUMP=$ac_ct_OBJDUMP
16399
 
  fi
16400
 
else
16401
 
  OBJDUMP="$ac_cv_prog_OBJDUMP"
16402
 
fi
16403
 
 
16404
 
  ;;
16405
 
esac
16406
 
 
16407
 
test -z "$AS" && AS=as
16408
 
 
16409
 
 
16410
 
 
16411
 
 
16412
 
 
16413
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
16414
 
 
16415
 
 
16416
 
 
16417
 
 
16418
 
 
16419
 
test -z "$OBJDUMP" && OBJDUMP=objdump
16420
 
 
16421
 
 
16422
 
 
16423
 
 
16424
 
 
16425
 
 
16426
 
 
16427
 
case `pwd` in
16428
 
  *\ * | *\     *)
16429
 
    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
16430
 
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
16431
 
esac
16432
 
 
16433
 
 
16434
 
 
16435
 
macro_version='2.2.6'
16436
 
macro_revision='1.3012'
16437
 
 
16438
 
 
16439
 
 
16440
 
 
16441
 
 
16442
 
 
16443
 
 
16444
 
 
16445
 
 
16446
 
 
16447
 
 
16448
 
 
16449
 
 
16450
 
ltmain="$ac_aux_dir/ltmain.sh"
16451
 
 
16452
 
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
16453
 
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
16454
 
if test "${ac_cv_path_SED+set}" = set; then
16455
 
  $as_echo_n "(cached) " >&6
16456
 
else
16457
 
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
16458
 
     for ac_i in 1 2 3 4 5 6 7; do
16459
 
       ac_script="$ac_script$as_nl$ac_script"
16460
 
     done
16461
 
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
16462
 
     $as_unset ac_script || ac_script=
16463
 
     if test -z "$SED"; then
16464
 
  ac_path_SED_found=false
16465
 
  # Loop through the user's path and test for each of PROGNAME-LIST
16466
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16467
 
for as_dir in $PATH
16468
 
do
16469
 
  IFS=$as_save_IFS
16470
 
  test -z "$as_dir" && as_dir=.
16471
 
  for ac_prog in sed gsed; do
16472
 
    for ac_exec_ext in '' $ac_executable_extensions; do
16473
 
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
16474
 
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
16475
 
# Check for GNU ac_path_SED and select it if it is found.
16476
 
  # Check for GNU $ac_path_SED
16477
 
case `"$ac_path_SED" --version 2>&1` in
16478
 
*GNU*)
16479
 
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
16480
 
*)
16481
 
  ac_count=0
16482
 
  $as_echo_n 0123456789 >"conftest.in"
16483
 
  while :
16484
 
  do
16485
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
16486
 
    mv "conftest.tmp" "conftest.in"
16487
 
    cp "conftest.in" "conftest.nl"
16488
 
    $as_echo '' >> "conftest.nl"
16489
 
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
16490
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16491
 
    ac_count=`expr $ac_count + 1`
16492
 
    if test $ac_count -gt ${ac_path_SED_max-0}; then
16493
 
      # Best one so far, save it but keep looking for a better one
16494
 
      ac_cv_path_SED="$ac_path_SED"
16495
 
      ac_path_SED_max=$ac_count
16496
 
    fi
16497
 
    # 10*(2^10) chars as input seems more than enough
16498
 
    test $ac_count -gt 10 && break
16499
 
  done
16500
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16501
 
esac
16502
 
 
16503
 
      $ac_path_SED_found && break 3
16504
 
    done
16505
 
  done
16506
 
done
16507
 
IFS=$as_save_IFS
16508
 
  if test -z "$ac_cv_path_SED"; then
16509
 
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
16510
 
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
16511
 
   { (exit 1); exit 1; }; }
16512
 
  fi
16513
 
else
16514
 
  ac_cv_path_SED=$SED
16515
 
fi
16516
 
 
16517
 
fi
16518
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
16519
 
$as_echo "$ac_cv_path_SED" >&6; }
16520
 
 SED="$ac_cv_path_SED"
16521
 
  rm -f conftest.sed
16522
 
 
16523
 
test -z "$SED" && SED=sed
16524
 
Xsed="$SED -e 1s/^X//"
16525
 
 
16526
 
 
16527
 
 
16528
 
 
16529
 
 
16530
 
 
16531
 
 
16532
 
 
16533
 
 
16534
 
 
16535
 
 
16536
4424
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
16537
4425
$as_echo_n "checking for fgrep... " >&6; }
16538
4426
if test "${ac_cv_path_FGREP+set}" = set; then
16909
4797
else
16910
4798
  lt_cv_nm_interface="BSD nm"
16911
4799
  echo "int some_variable = 0;" > conftest.$ac_ext
16912
 
  (eval echo "\"\$as_me:16912: $ac_compile\"" >&5)
 
4800
  (eval echo "\"\$as_me:4800: $ac_compile\"" >&5)
16913
4801
  (eval "$ac_compile" 2>conftest.err)
16914
4802
  cat conftest.err >&5
16915
 
  (eval echo "\"\$as_me:16915: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
4803
  (eval echo "\"\$as_me:4803: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
16916
4804
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
16917
4805
  cat conftest.err >&5
16918
 
  (eval echo "\"\$as_me:16918: output\"" >&5)
 
4806
  (eval echo "\"\$as_me:4806: output\"" >&5)
16919
4807
  cat conftest.out >&5
16920
4808
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
16921
4809
    lt_cv_nm_interface="MS dumpbin"
17382
5270
  lt_cv_deplibs_check_method=pass_all
17383
5271
  ;;
17384
5272
 
17385
 
netbsd* | netbsdelf*-gnu)
 
5273
netbsd*)
17386
5274
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
17387
5275
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
17388
5276
  else
18086
5974
 
18087
5975
 
18088
5976
 
 
5977
 
18089
5978
# Check whether --enable-libtool-lock was given.
18090
5979
if test "${enable_libtool_lock+set}" = set; then
18091
5980
  enableval=$enable_libtool_lock;
18117
6006
  ;;
18118
6007
*-*-irix6*)
18119
6008
  # Find out which ABI we are using.
18120
 
  echo '#line 18120 "configure"' > conftest.$ac_ext
 
6009
  echo '#line 6009 "configure"' > conftest.$ac_ext
18121
6010
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18122
6011
  (eval $ac_compile) 2>&5
18123
6012
  ac_status=$?
18922
6811
    ;;
18923
6812
  esac
18924
6813
 
 
6814
ac_ext=c
 
6815
ac_cpp='$CPP $CPPFLAGS'
 
6816
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6817
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6818
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6819
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
6820
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
6821
# On Suns, sometimes $CPP names a directory.
 
6822
if test -n "$CPP" && test -d "$CPP"; then
 
6823
  CPP=
 
6824
fi
 
6825
if test -z "$CPP"; then
 
6826
  if test "${ac_cv_prog_CPP+set}" = set; then
 
6827
  $as_echo_n "(cached) " >&6
 
6828
else
 
6829
      # Double quotes because CPP needs to be expanded
 
6830
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
6831
    do
 
6832
      ac_preproc_ok=false
 
6833
for ac_c_preproc_warn_flag in '' yes
 
6834
do
 
6835
  # Use a header file that comes with gcc, so configuring glibc
 
6836
  # with a fresh cross-compiler works.
 
6837
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6838
  # <limits.h> exists even on freestanding compilers.
 
6839
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6840
  # not just through cpp. "Syntax error" is here to catch this case.
 
6841
  cat >conftest.$ac_ext <<_ACEOF
 
6842
/* confdefs.h.  */
 
6843
_ACEOF
 
6844
cat confdefs.h >>conftest.$ac_ext
 
6845
cat >>conftest.$ac_ext <<_ACEOF
 
6846
/* end confdefs.h.  */
 
6847
#ifdef __STDC__
 
6848
# include <limits.h>
 
6849
#else
 
6850
# include <assert.h>
 
6851
#endif
 
6852
                     Syntax error
 
6853
_ACEOF
 
6854
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6855
case "(($ac_try" in
 
6856
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6857
  *) ac_try_echo=$ac_try;;
 
6858
esac
 
6859
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6860
$as_echo "$ac_try_echo") >&5
 
6861
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6862
  ac_status=$?
 
6863
  grep -v '^ *+' conftest.er1 >conftest.err
 
6864
  rm -f conftest.er1
 
6865
  cat conftest.err >&5
 
6866
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6867
  (exit $ac_status); } >/dev/null && {
 
6868
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6869
         test ! -s conftest.err
 
6870
       }; then
 
6871
  :
 
6872
else
 
6873
  $as_echo "$as_me: failed program was:" >&5
 
6874
sed 's/^/| /' conftest.$ac_ext >&5
 
6875
 
 
6876
  # Broken: fails on valid input.
 
6877
continue
 
6878
fi
 
6879
 
 
6880
rm -f conftest.err conftest.$ac_ext
 
6881
 
 
6882
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6883
  # can be detected and how.
 
6884
  cat >conftest.$ac_ext <<_ACEOF
 
6885
/* confdefs.h.  */
 
6886
_ACEOF
 
6887
cat confdefs.h >>conftest.$ac_ext
 
6888
cat >>conftest.$ac_ext <<_ACEOF
 
6889
/* end confdefs.h.  */
 
6890
#include <ac_nonexistent.h>
 
6891
_ACEOF
 
6892
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6893
case "(($ac_try" in
 
6894
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6895
  *) ac_try_echo=$ac_try;;
 
6896
esac
 
6897
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6898
$as_echo "$ac_try_echo") >&5
 
6899
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6900
  ac_status=$?
 
6901
  grep -v '^ *+' conftest.er1 >conftest.err
 
6902
  rm -f conftest.er1
 
6903
  cat conftest.err >&5
 
6904
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6905
  (exit $ac_status); } >/dev/null && {
 
6906
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6907
         test ! -s conftest.err
 
6908
       }; then
 
6909
  # Broken: success on invalid input.
 
6910
continue
 
6911
else
 
6912
  $as_echo "$as_me: failed program was:" >&5
 
6913
sed 's/^/| /' conftest.$ac_ext >&5
 
6914
 
 
6915
  # Passes both tests.
 
6916
ac_preproc_ok=:
 
6917
break
 
6918
fi
 
6919
 
 
6920
rm -f conftest.err conftest.$ac_ext
 
6921
 
 
6922
done
 
6923
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6924
rm -f conftest.err conftest.$ac_ext
 
6925
if $ac_preproc_ok; then
 
6926
  break
 
6927
fi
 
6928
 
 
6929
    done
 
6930
    ac_cv_prog_CPP=$CPP
 
6931
 
 
6932
fi
 
6933
  CPP=$ac_cv_prog_CPP
 
6934
else
 
6935
  ac_cv_prog_CPP=$CPP
 
6936
fi
 
6937
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
 
6938
$as_echo "$CPP" >&6; }
 
6939
ac_preproc_ok=false
 
6940
for ac_c_preproc_warn_flag in '' yes
 
6941
do
 
6942
  # Use a header file that comes with gcc, so configuring glibc
 
6943
  # with a fresh cross-compiler works.
 
6944
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6945
  # <limits.h> exists even on freestanding compilers.
 
6946
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6947
  # not just through cpp. "Syntax error" is here to catch this case.
 
6948
  cat >conftest.$ac_ext <<_ACEOF
 
6949
/* confdefs.h.  */
 
6950
_ACEOF
 
6951
cat confdefs.h >>conftest.$ac_ext
 
6952
cat >>conftest.$ac_ext <<_ACEOF
 
6953
/* end confdefs.h.  */
 
6954
#ifdef __STDC__
 
6955
# include <limits.h>
 
6956
#else
 
6957
# include <assert.h>
 
6958
#endif
 
6959
                     Syntax error
 
6960
_ACEOF
 
6961
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6962
case "(($ac_try" in
 
6963
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6964
  *) ac_try_echo=$ac_try;;
 
6965
esac
 
6966
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6967
$as_echo "$ac_try_echo") >&5
 
6968
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6969
  ac_status=$?
 
6970
  grep -v '^ *+' conftest.er1 >conftest.err
 
6971
  rm -f conftest.er1
 
6972
  cat conftest.err >&5
 
6973
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6974
  (exit $ac_status); } >/dev/null && {
 
6975
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6976
         test ! -s conftest.err
 
6977
       }; then
 
6978
  :
 
6979
else
 
6980
  $as_echo "$as_me: failed program was:" >&5
 
6981
sed 's/^/| /' conftest.$ac_ext >&5
 
6982
 
 
6983
  # Broken: fails on valid input.
 
6984
continue
 
6985
fi
 
6986
 
 
6987
rm -f conftest.err conftest.$ac_ext
 
6988
 
 
6989
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6990
  # can be detected and how.
 
6991
  cat >conftest.$ac_ext <<_ACEOF
 
6992
/* confdefs.h.  */
 
6993
_ACEOF
 
6994
cat confdefs.h >>conftest.$ac_ext
 
6995
cat >>conftest.$ac_ext <<_ACEOF
 
6996
/* end confdefs.h.  */
 
6997
#include <ac_nonexistent.h>
 
6998
_ACEOF
 
6999
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
7000
case "(($ac_try" in
 
7001
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7002
  *) ac_try_echo=$ac_try;;
 
7003
esac
 
7004
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7005
$as_echo "$ac_try_echo") >&5
 
7006
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
7007
  ac_status=$?
 
7008
  grep -v '^ *+' conftest.er1 >conftest.err
 
7009
  rm -f conftest.er1
 
7010
  cat conftest.err >&5
 
7011
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7012
  (exit $ac_status); } >/dev/null && {
 
7013
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
7014
         test ! -s conftest.err
 
7015
       }; then
 
7016
  # Broken: success on invalid input.
 
7017
continue
 
7018
else
 
7019
  $as_echo "$as_me: failed program was:" >&5
 
7020
sed 's/^/| /' conftest.$ac_ext >&5
 
7021
 
 
7022
  # Passes both tests.
 
7023
ac_preproc_ok=:
 
7024
break
 
7025
fi
 
7026
 
 
7027
rm -f conftest.err conftest.$ac_ext
 
7028
 
 
7029
done
 
7030
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7031
rm -f conftest.err conftest.$ac_ext
 
7032
if $ac_preproc_ok; then
 
7033
  :
 
7034
else
 
7035
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
7036
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
7037
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
7038
See \`config.log' for more details." >&5
 
7039
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
7040
See \`config.log' for more details." >&2;}
 
7041
   { (exit 1); exit 1; }; }; }
 
7042
fi
 
7043
 
 
7044
ac_ext=c
 
7045
ac_cpp='$CPP $CPPFLAGS'
 
7046
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7047
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7048
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7049
 
 
7050
 
 
7051
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
7052
$as_echo_n "checking for ANSI C header files... " >&6; }
 
7053
if test "${ac_cv_header_stdc+set}" = set; then
 
7054
  $as_echo_n "(cached) " >&6
 
7055
else
 
7056
  cat >conftest.$ac_ext <<_ACEOF
 
7057
/* confdefs.h.  */
 
7058
_ACEOF
 
7059
cat confdefs.h >>conftest.$ac_ext
 
7060
cat >>conftest.$ac_ext <<_ACEOF
 
7061
/* end confdefs.h.  */
 
7062
#include <stdlib.h>
 
7063
#include <stdarg.h>
 
7064
#include <string.h>
 
7065
#include <float.h>
 
7066
 
 
7067
int
 
7068
main ()
 
7069
{
 
7070
 
 
7071
  ;
 
7072
  return 0;
 
7073
}
 
7074
_ACEOF
 
7075
rm -f conftest.$ac_objext
 
7076
if { (ac_try="$ac_compile"
 
7077
case "(($ac_try" in
 
7078
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7079
  *) ac_try_echo=$ac_try;;
 
7080
esac
 
7081
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7082
$as_echo "$ac_try_echo") >&5
 
7083
  (eval "$ac_compile") 2>conftest.er1
 
7084
  ac_status=$?
 
7085
  grep -v '^ *+' conftest.er1 >conftest.err
 
7086
  rm -f conftest.er1
 
7087
  cat conftest.err >&5
 
7088
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7089
  (exit $ac_status); } && {
 
7090
         test -z "$ac_c_werror_flag" ||
 
7091
         test ! -s conftest.err
 
7092
       } && test -s conftest.$ac_objext; then
 
7093
  ac_cv_header_stdc=yes
 
7094
else
 
7095
  $as_echo "$as_me: failed program was:" >&5
 
7096
sed 's/^/| /' conftest.$ac_ext >&5
 
7097
 
 
7098
        ac_cv_header_stdc=no
 
7099
fi
 
7100
 
 
7101
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7102
 
 
7103
if test $ac_cv_header_stdc = yes; then
 
7104
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
7105
  cat >conftest.$ac_ext <<_ACEOF
 
7106
/* confdefs.h.  */
 
7107
_ACEOF
 
7108
cat confdefs.h >>conftest.$ac_ext
 
7109
cat >>conftest.$ac_ext <<_ACEOF
 
7110
/* end confdefs.h.  */
 
7111
#include <string.h>
 
7112
 
 
7113
_ACEOF
 
7114
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7115
  $EGREP "memchr" >/dev/null 2>&1; then
 
7116
  :
 
7117
else
 
7118
  ac_cv_header_stdc=no
 
7119
fi
 
7120
rm -f conftest*
 
7121
 
 
7122
fi
 
7123
 
 
7124
if test $ac_cv_header_stdc = yes; then
 
7125
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
7126
  cat >conftest.$ac_ext <<_ACEOF
 
7127
/* confdefs.h.  */
 
7128
_ACEOF
 
7129
cat confdefs.h >>conftest.$ac_ext
 
7130
cat >>conftest.$ac_ext <<_ACEOF
 
7131
/* end confdefs.h.  */
 
7132
#include <stdlib.h>
 
7133
 
 
7134
_ACEOF
 
7135
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7136
  $EGREP "free" >/dev/null 2>&1; then
 
7137
  :
 
7138
else
 
7139
  ac_cv_header_stdc=no
 
7140
fi
 
7141
rm -f conftest*
 
7142
 
 
7143
fi
 
7144
 
 
7145
if test $ac_cv_header_stdc = yes; then
 
7146
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
7147
  if test "$cross_compiling" = yes; then
 
7148
  :
 
7149
else
 
7150
  cat >conftest.$ac_ext <<_ACEOF
 
7151
/* confdefs.h.  */
 
7152
_ACEOF
 
7153
cat confdefs.h >>conftest.$ac_ext
 
7154
cat >>conftest.$ac_ext <<_ACEOF
 
7155
/* end confdefs.h.  */
 
7156
#include <ctype.h>
 
7157
#include <stdlib.h>
 
7158
#if ((' ' & 0x0FF) == 0x020)
 
7159
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
7160
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
7161
#else
 
7162
# define ISLOWER(c) \
 
7163
                   (('a' <= (c) && (c) <= 'i') \
 
7164
                     || ('j' <= (c) && (c) <= 'r') \
 
7165
                     || ('s' <= (c) && (c) <= 'z'))
 
7166
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
7167
#endif
 
7168
 
 
7169
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
7170
int
 
7171
main ()
 
7172
{
 
7173
  int i;
 
7174
  for (i = 0; i < 256; i++)
 
7175
    if (XOR (islower (i), ISLOWER (i))
 
7176
        || toupper (i) != TOUPPER (i))
 
7177
      return 2;
 
7178
  return 0;
 
7179
}
 
7180
_ACEOF
 
7181
rm -f conftest$ac_exeext
 
7182
if { (ac_try="$ac_link"
 
7183
case "(($ac_try" in
 
7184
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7185
  *) ac_try_echo=$ac_try;;
 
7186
esac
 
7187
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7188
$as_echo "$ac_try_echo") >&5
 
7189
  (eval "$ac_link") 2>&5
 
7190
  ac_status=$?
 
7191
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7192
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7193
  { (case "(($ac_try" in
 
7194
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7195
  *) ac_try_echo=$ac_try;;
 
7196
esac
 
7197
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7198
$as_echo "$ac_try_echo") >&5
 
7199
  (eval "$ac_try") 2>&5
 
7200
  ac_status=$?
 
7201
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7202
  (exit $ac_status); }; }; then
 
7203
  :
 
7204
else
 
7205
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
7206
$as_echo "$as_me: failed program was:" >&5
 
7207
sed 's/^/| /' conftest.$ac_ext >&5
 
7208
 
 
7209
( exit $ac_status )
 
7210
ac_cv_header_stdc=no
 
7211
fi
 
7212
rm -rf conftest.dSYM
 
7213
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7214
fi
 
7215
 
 
7216
 
 
7217
fi
 
7218
fi
 
7219
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
7220
$as_echo "$ac_cv_header_stdc" >&6; }
 
7221
if test $ac_cv_header_stdc = yes; then
 
7222
 
 
7223
cat >>confdefs.h <<\_ACEOF
 
7224
#define STDC_HEADERS 1
 
7225
_ACEOF
 
7226
 
 
7227
fi
 
7228
 
 
7229
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
7230
 
 
7231
 
 
7232
 
 
7233
 
 
7234
 
 
7235
 
 
7236
 
 
7237
 
 
7238
 
 
7239
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
7240
                  inttypes.h stdint.h unistd.h
 
7241
do
 
7242
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7243
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7244
$as_echo_n "checking for $ac_header... " >&6; }
 
7245
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
7246
  $as_echo_n "(cached) " >&6
 
7247
else
 
7248
  cat >conftest.$ac_ext <<_ACEOF
 
7249
/* confdefs.h.  */
 
7250
_ACEOF
 
7251
cat confdefs.h >>conftest.$ac_ext
 
7252
cat >>conftest.$ac_ext <<_ACEOF
 
7253
/* end confdefs.h.  */
 
7254
$ac_includes_default
 
7255
 
 
7256
#include <$ac_header>
 
7257
_ACEOF
 
7258
rm -f conftest.$ac_objext
 
7259
if { (ac_try="$ac_compile"
 
7260
case "(($ac_try" in
 
7261
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7262
  *) ac_try_echo=$ac_try;;
 
7263
esac
 
7264
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7265
$as_echo "$ac_try_echo") >&5
 
7266
  (eval "$ac_compile") 2>conftest.er1
 
7267
  ac_status=$?
 
7268
  grep -v '^ *+' conftest.er1 >conftest.err
 
7269
  rm -f conftest.er1
 
7270
  cat conftest.err >&5
 
7271
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7272
  (exit $ac_status); } && {
 
7273
         test -z "$ac_c_werror_flag" ||
 
7274
         test ! -s conftest.err
 
7275
       } && test -s conftest.$ac_objext; then
 
7276
  eval "$as_ac_Header=yes"
 
7277
else
 
7278
  $as_echo "$as_me: failed program was:" >&5
 
7279
sed 's/^/| /' conftest.$ac_ext >&5
 
7280
 
 
7281
        eval "$as_ac_Header=no"
 
7282
fi
 
7283
 
 
7284
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7285
fi
 
7286
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
7287
                 $as_echo "$as_val"'`
 
7288
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
7289
$as_echo "$ac_res" >&6; }
 
7290
as_val=`eval 'as_val=${'$as_ac_Header'}
 
7291
                 $as_echo "$as_val"'`
 
7292
   if test "x$as_val" = x""yes; then
 
7293
  cat >>confdefs.h <<_ACEOF
 
7294
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7295
_ACEOF
 
7296
 
 
7297
fi
 
7298
 
 
7299
done
 
7300
 
 
7301
 
18925
7302
 
18926
7303
for ac_header in dlfcn.h
18927
7304
do
18987
7364
 
18988
7365
 
18989
7366
# Set options
 
7367
enable_win32_dll=yes
 
7368
 
 
7369
case $host in
 
7370
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
 
7371
  if test -n "$ac_tool_prefix"; then
 
7372
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
 
7373
set dummy ${ac_tool_prefix}as; ac_word=$2
 
7374
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7375
$as_echo_n "checking for $ac_word... " >&6; }
 
7376
if test "${ac_cv_prog_AS+set}" = set; then
 
7377
  $as_echo_n "(cached) " >&6
 
7378
else
 
7379
  if test -n "$AS"; then
 
7380
  ac_cv_prog_AS="$AS" # Let the user override the test.
 
7381
else
 
7382
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7383
for as_dir in $PATH
 
7384
do
 
7385
  IFS=$as_save_IFS
 
7386
  test -z "$as_dir" && as_dir=.
 
7387
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7388
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7389
    ac_cv_prog_AS="${ac_tool_prefix}as"
 
7390
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7391
    break 2
 
7392
  fi
 
7393
done
 
7394
done
 
7395
IFS=$as_save_IFS
 
7396
 
 
7397
fi
 
7398
fi
 
7399
AS=$ac_cv_prog_AS
 
7400
if test -n "$AS"; then
 
7401
  { $as_echo "$as_me:$LINENO: result: $AS" >&5
 
7402
$as_echo "$AS" >&6; }
 
7403
else
 
7404
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7405
$as_echo "no" >&6; }
 
7406
fi
 
7407
 
 
7408
 
 
7409
fi
 
7410
if test -z "$ac_cv_prog_AS"; then
 
7411
  ac_ct_AS=$AS
 
7412
  # Extract the first word of "as", so it can be a program name with args.
 
7413
set dummy as; ac_word=$2
 
7414
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7415
$as_echo_n "checking for $ac_word... " >&6; }
 
7416
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
 
7417
  $as_echo_n "(cached) " >&6
 
7418
else
 
7419
  if test -n "$ac_ct_AS"; then
 
7420
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
 
7421
else
 
7422
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7423
for as_dir in $PATH
 
7424
do
 
7425
  IFS=$as_save_IFS
 
7426
  test -z "$as_dir" && as_dir=.
 
7427
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7428
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7429
    ac_cv_prog_ac_ct_AS="as"
 
7430
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7431
    break 2
 
7432
  fi
 
7433
done
 
7434
done
 
7435
IFS=$as_save_IFS
 
7436
 
 
7437
fi
 
7438
fi
 
7439
ac_ct_AS=$ac_cv_prog_ac_ct_AS
 
7440
if test -n "$ac_ct_AS"; then
 
7441
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
 
7442
$as_echo "$ac_ct_AS" >&6; }
 
7443
else
 
7444
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7445
$as_echo "no" >&6; }
 
7446
fi
 
7447
 
 
7448
  if test "x$ac_ct_AS" = x; then
 
7449
    AS="false"
 
7450
  else
 
7451
    case $cross_compiling:$ac_tool_warned in
 
7452
yes:)
 
7453
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
7454
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7455
ac_tool_warned=yes ;;
 
7456
esac
 
7457
    AS=$ac_ct_AS
 
7458
  fi
 
7459
else
 
7460
  AS="$ac_cv_prog_AS"
 
7461
fi
 
7462
 
 
7463
  if test -n "$ac_tool_prefix"; then
 
7464
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
7465
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
7466
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7467
$as_echo_n "checking for $ac_word... " >&6; }
 
7468
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
 
7469
  $as_echo_n "(cached) " >&6
 
7470
else
 
7471
  if test -n "$DLLTOOL"; then
 
7472
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
7473
else
 
7474
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7475
for as_dir in $PATH
 
7476
do
 
7477
  IFS=$as_save_IFS
 
7478
  test -z "$as_dir" && as_dir=.
 
7479
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7480
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7481
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
7482
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7483
    break 2
 
7484
  fi
 
7485
done
 
7486
done
 
7487
IFS=$as_save_IFS
 
7488
 
 
7489
fi
 
7490
fi
 
7491
DLLTOOL=$ac_cv_prog_DLLTOOL
 
7492
if test -n "$DLLTOOL"; then
 
7493
  { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
 
7494
$as_echo "$DLLTOOL" >&6; }
 
7495
else
 
7496
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7497
$as_echo "no" >&6; }
 
7498
fi
 
7499
 
 
7500
 
 
7501
fi
 
7502
if test -z "$ac_cv_prog_DLLTOOL"; then
 
7503
  ac_ct_DLLTOOL=$DLLTOOL
 
7504
  # Extract the first word of "dlltool", so it can be a program name with args.
 
7505
set dummy dlltool; ac_word=$2
 
7506
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7507
$as_echo_n "checking for $ac_word... " >&6; }
 
7508
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
 
7509
  $as_echo_n "(cached) " >&6
 
7510
else
 
7511
  if test -n "$ac_ct_DLLTOOL"; then
 
7512
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
7513
else
 
7514
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7515
for as_dir in $PATH
 
7516
do
 
7517
  IFS=$as_save_IFS
 
7518
  test -z "$as_dir" && as_dir=.
 
7519
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7520
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7521
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
7522
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7523
    break 2
 
7524
  fi
 
7525
done
 
7526
done
 
7527
IFS=$as_save_IFS
 
7528
 
 
7529
fi
 
7530
fi
 
7531
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
7532
if test -n "$ac_ct_DLLTOOL"; then
 
7533
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
 
7534
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
7535
else
 
7536
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7537
$as_echo "no" >&6; }
 
7538
fi
 
7539
 
 
7540
  if test "x$ac_ct_DLLTOOL" = x; then
 
7541
    DLLTOOL="false"
 
7542
  else
 
7543
    case $cross_compiling:$ac_tool_warned in
 
7544
yes:)
 
7545
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
7546
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7547
ac_tool_warned=yes ;;
 
7548
esac
 
7549
    DLLTOOL=$ac_ct_DLLTOOL
 
7550
  fi
 
7551
else
 
7552
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
7553
fi
 
7554
 
 
7555
  if test -n "$ac_tool_prefix"; then
 
7556
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
7557
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
7558
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7559
$as_echo_n "checking for $ac_word... " >&6; }
 
7560
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
 
7561
  $as_echo_n "(cached) " >&6
 
7562
else
 
7563
  if test -n "$OBJDUMP"; then
 
7564
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
7565
else
 
7566
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7567
for as_dir in $PATH
 
7568
do
 
7569
  IFS=$as_save_IFS
 
7570
  test -z "$as_dir" && as_dir=.
 
7571
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7572
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7573
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
7574
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7575
    break 2
 
7576
  fi
 
7577
done
 
7578
done
 
7579
IFS=$as_save_IFS
 
7580
 
 
7581
fi
 
7582
fi
 
7583
OBJDUMP=$ac_cv_prog_OBJDUMP
 
7584
if test -n "$OBJDUMP"; then
 
7585
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
 
7586
$as_echo "$OBJDUMP" >&6; }
 
7587
else
 
7588
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7589
$as_echo "no" >&6; }
 
7590
fi
 
7591
 
 
7592
 
 
7593
fi
 
7594
if test -z "$ac_cv_prog_OBJDUMP"; then
 
7595
  ac_ct_OBJDUMP=$OBJDUMP
 
7596
  # Extract the first word of "objdump", so it can be a program name with args.
 
7597
set dummy objdump; ac_word=$2
 
7598
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7599
$as_echo_n "checking for $ac_word... " >&6; }
 
7600
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
 
7601
  $as_echo_n "(cached) " >&6
 
7602
else
 
7603
  if test -n "$ac_ct_OBJDUMP"; then
 
7604
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
7605
else
 
7606
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7607
for as_dir in $PATH
 
7608
do
 
7609
  IFS=$as_save_IFS
 
7610
  test -z "$as_dir" && as_dir=.
 
7611
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7612
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7613
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
7614
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7615
    break 2
 
7616
  fi
 
7617
done
 
7618
done
 
7619
IFS=$as_save_IFS
 
7620
 
 
7621
fi
 
7622
fi
 
7623
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
7624
if test -n "$ac_ct_OBJDUMP"; then
 
7625
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
 
7626
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
7627
else
 
7628
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7629
$as_echo "no" >&6; }
 
7630
fi
 
7631
 
 
7632
  if test "x$ac_ct_OBJDUMP" = x; then
 
7633
    OBJDUMP="false"
 
7634
  else
 
7635
    case $cross_compiling:$ac_tool_warned in
 
7636
yes:)
 
7637
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
7638
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7639
ac_tool_warned=yes ;;
 
7640
esac
 
7641
    OBJDUMP=$ac_ct_OBJDUMP
 
7642
  fi
 
7643
else
 
7644
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
7645
fi
 
7646
 
 
7647
  ;;
 
7648
esac
 
7649
 
 
7650
test -z "$AS" && AS=as
 
7651
 
 
7652
 
 
7653
 
 
7654
 
 
7655
 
 
7656
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
7657
 
 
7658
 
 
7659
 
 
7660
 
 
7661
 
 
7662
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7663
 
 
7664
 
 
7665
 
 
7666
 
 
7667
# Check whether --enable-static was given.
 
7668
if test "${enable_static+set}" = set; then
 
7669
  enableval=$enable_static; p=${PACKAGE-default}
 
7670
    case $enableval in
 
7671
    yes) enable_static=yes ;;
 
7672
    no) enable_static=no ;;
 
7673
    *)
 
7674
     enable_static=no
 
7675
      # Look at the argument we got.  We use all the common list separators.
 
7676
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7677
      for pkg in $enableval; do
 
7678
        IFS="$lt_save_ifs"
 
7679
        if test "X$pkg" = "X$p"; then
 
7680
          enable_static=yes
 
7681
        fi
 
7682
      done
 
7683
      IFS="$lt_save_ifs"
 
7684
      ;;
 
7685
    esac
 
7686
else
 
7687
  enable_static=no
 
7688
fi
 
7689
 
 
7690
 
 
7691
 
 
7692
 
 
7693
 
 
7694
 
 
7695
 
18990
7696
 
18991
7697
 
18992
7698
 
19025
7731
 
19026
7732
 
19027
7733
 
19028
 
  # Check whether --enable-static was given.
19029
 
if test "${enable_static+set}" = set; then
19030
 
  enableval=$enable_static; p=${PACKAGE-default}
19031
 
    case $enableval in
19032
 
    yes) enable_static=yes ;;
19033
 
    no) enable_static=no ;;
19034
 
    *)
19035
 
     enable_static=no
19036
 
      # Look at the argument we got.  We use all the common list separators.
19037
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
19038
 
      for pkg in $enableval; do
19039
 
        IFS="$lt_save_ifs"
19040
 
        if test "X$pkg" = "X$p"; then
19041
 
          enable_static=yes
19042
 
        fi
19043
 
      done
19044
 
      IFS="$lt_save_ifs"
19045
 
      ;;
19046
 
    esac
19047
 
else
19048
 
  enable_static=yes
19049
 
fi
19050
 
 
19051
 
 
19052
 
 
19053
 
 
19054
 
 
19055
 
 
19056
 
 
19057
 
 
19058
7734
 
19059
7735
 
19060
7736
# Check whether --with-pic was given.
19455
8131
$RM -r conftest*
19456
8132
 
19457
8133
 
 
8134
## CAVEAT EMPTOR:
 
8135
## There is no encapsulation within the following macros, do not change
 
8136
## the running order or otherwise move them around unless you know exactly
 
8137
## what you are doing...
19458
8138
if test -n "$compiler"; then
19459
8139
 
19460
8140
lt_prog_compiler_no_builtin_flag=
19480
8160
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19481
8161
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19482
8162
   -e 's:$: $lt_compiler_flag:'`
19483
 
   (eval echo "\"\$as_me:19483: $lt_compile\"" >&5)
 
8163
   (eval echo "\"\$as_me:8163: $lt_compile\"" >&5)
19484
8164
   (eval "$lt_compile" 2>conftest.err)
19485
8165
   ac_status=$?
19486
8166
   cat conftest.err >&5
19487
 
   echo "$as_me:19487: \$? = $ac_status" >&5
 
8167
   echo "$as_me:8167: \$? = $ac_status" >&5
19488
8168
   if (exit $ac_status) && test -s "$ac_outfile"; then
19489
8169
     # The compiler can only warn and ignore the option if not recognized
19490
8170
     # So say no if there are warnings other than the usual output.
19819
8499
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19820
8500
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19821
8501
   -e 's:$: $lt_compiler_flag:'`
19822
 
   (eval echo "\"\$as_me:19822: $lt_compile\"" >&5)
 
8502
   (eval echo "\"\$as_me:8502: $lt_compile\"" >&5)
19823
8503
   (eval "$lt_compile" 2>conftest.err)
19824
8504
   ac_status=$?
19825
8505
   cat conftest.err >&5
19826
 
   echo "$as_me:19826: \$? = $ac_status" >&5
 
8506
   echo "$as_me:8506: \$? = $ac_status" >&5
19827
8507
   if (exit $ac_status) && test -s "$ac_outfile"; then
19828
8508
     # The compiler can only warn and ignore the option if not recognized
19829
8509
     # So say no if there are warnings other than the usual output.
19924
8604
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19925
8605
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19926
8606
   -e 's:$: $lt_compiler_flag:'`
19927
 
   (eval echo "\"\$as_me:19927: $lt_compile\"" >&5)
 
8607
   (eval echo "\"\$as_me:8607: $lt_compile\"" >&5)
19928
8608
   (eval "$lt_compile" 2>out/conftest.err)
19929
8609
   ac_status=$?
19930
8610
   cat out/conftest.err >&5
19931
 
   echo "$as_me:19931: \$? = $ac_status" >&5
 
8611
   echo "$as_me:8611: \$? = $ac_status" >&5
19932
8612
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
19933
8613
   then
19934
8614
     # The compiler can only warn and ignore the option if not recognized
19979
8659
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19980
8660
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19981
8661
   -e 's:$: $lt_compiler_flag:'`
19982
 
   (eval echo "\"\$as_me:19982: $lt_compile\"" >&5)
 
8662
   (eval echo "\"\$as_me:8662: $lt_compile\"" >&5)
19983
8663
   (eval "$lt_compile" 2>out/conftest.err)
19984
8664
   ac_status=$?
19985
8665
   cat out/conftest.err >&5
19986
 
   echo "$as_me:19986: \$? = $ac_status" >&5
 
8666
   echo "$as_me:8666: \$? = $ac_status" >&5
19987
8667
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
19988
8668
   then
19989
8669
     # The compiler can only warn and ignore the option if not recognized
20280
8960
      fi
20281
8961
      ;;
20282
8962
 
20283
 
    netbsd* | netbsdelf*-gnu)
 
8963
    netbsd*)
20284
8964
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20285
8965
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20286
8966
        wlarc=
20455
9135
        if test "$aix_use_runtimelinking" = yes; then
20456
9136
          shared_flag="$shared_flag "'${wl}-G'
20457
9137
        fi
20458
 
        link_all_deplibs=no
20459
9138
      else
20460
9139
        # not using gcc
20461
9140
        if test "$host_cpu" = ia64; then
20870
9549
      link_all_deplibs=yes
20871
9550
      ;;
20872
9551
 
20873
 
    netbsd* | netbsdelf*-gnu)
 
9552
    netbsd*)
20874
9553
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20875
9554
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
20876
9555
      else
21832
10511
  # before this can be enabled.
21833
10512
  hardcode_into_libs=yes
21834
10513
 
 
10514
  # Add ABI-specific directories to the system library path.
 
10515
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
 
10516
 
21835
10517
  # Append ld.so.conf contents to the search path
21836
10518
  if test -f /etc/ld.so.conf; then
21837
10519
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
21838
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
10520
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
21839
10521
  fi
21840
10522
 
21841
10523
  # We used to test for /lib/ld.so.1 and disable shared libraries on
21847
10529
  dynamic_linker='GNU/Linux ld.so'
21848
10530
  ;;
21849
10531
 
21850
 
netbsdelf*-gnu)
21851
 
  version_type=linux
21852
 
  need_lib_prefix=no
21853
 
  need_version=no
21854
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21855
 
  soname_spec='${libname}${release}${shared_ext}$major'
21856
 
  shlibpath_var=LD_LIBRARY_PATH
21857
 
  shlibpath_overrides_runpath=no
21858
 
  hardcode_into_libs=yes
21859
 
  dynamic_linker='NetBSD ld.elf_so'
21860
 
  ;;
21861
 
 
21862
10532
netbsd*)
21863
10533
  version_type=sunos
21864
10534
  need_lib_prefix=no
22792
11462
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22793
11463
  lt_status=$lt_dlunknown
22794
11464
  cat > conftest.$ac_ext <<_LT_EOF
22795
 
#line 22795 "configure"
 
11465
#line 11465 "configure"
22796
11466
#include "confdefs.h"
22797
11467
 
22798
11468
#if HAVE_DLFCN_H
22888
11558
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22889
11559
  lt_status=$lt_dlunknown
22890
11560
  cat > conftest.$ac_ext <<_LT_EOF
22891
 
#line 22891 "configure"
 
11561
#line 11561 "configure"
22892
11562
#include "confdefs.h"
22893
11563
 
22894
11564
#if HAVE_DLFCN_H
23116
11786
 
23117
11787
 
23118
11788
 
 
11789
 
 
11790
 
 
11791
 
 
11792
{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
11793
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
 
11794
    # Check whether --enable-maintainer-mode was given.
 
11795
if test "${enable_maintainer_mode+set}" = set; then
 
11796
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
 
11797
else
 
11798
  USE_MAINTAINER_MODE=no
 
11799
fi
 
11800
 
 
11801
  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
 
11802
$as_echo "$USE_MAINTAINER_MODE" >&6; }
 
11803
   if test $USE_MAINTAINER_MODE = yes; then
 
11804
  MAINTAINER_MODE_TRUE=
 
11805
  MAINTAINER_MODE_FALSE='#'
 
11806
else
 
11807
  MAINTAINER_MODE_TRUE='#'
 
11808
  MAINTAINER_MODE_FALSE=
 
11809
fi
 
11810
 
 
11811
  MAINT=$MAINTAINER_MODE_TRUE
 
11812
 
 
11813
 
 
11814
 
 
11815
 
 
11816
 
 
11817
        DISABLE_DEPRECATED=""
 
11818
        if test $USE_MAINTAINER_MODE = yes; then
 
11819
                DOMAINS="G ATK PANGO GDK GDK_PIXBUF GTK GCONF BONOBO BONOBO_UI GNOME LIBGLADE VTE GNOME_VFS WNCK LIBSOUP"
 
11820
                for DOMAIN in $DOMAINS; do
 
11821
                       DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES"
 
11822
                done
 
11823
        fi
 
11824
 
 
11825
 
 
11826
 
 
11827
 
 
11828
# Use the silent-rules feature when possible.
 
11829
# Check whether --enable-silent-rules was given.
 
11830
if test "${enable_silent_rules+set}" = set; then
 
11831
  enableval=$enable_silent_rules;
 
11832
fi
 
11833
 
 
11834
case $enable_silent_rules in
 
11835
yes) AM_DEFAULT_VERBOSITY=0;;
 
11836
no)  AM_DEFAULT_VERBOSITY=1;;
 
11837
*)   AM_DEFAULT_VERBOSITY=0;;
 
11838
esac
 
11839
AM_BACKSLASH='\'
 
11840
 
 
11841
 
 
11842
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
 
11843
$as_echo_n "checking host system type... " >&6; }
 
11844
if test "${ac_cv_host+set}" = set; then
 
11845
  $as_echo_n "(cached) " >&6
 
11846
else
 
11847
  if test "x$host_alias" = x; then
 
11848
  ac_cv_host=$ac_cv_build
 
11849
else
 
11850
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
11851
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
11852
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
11853
   { (exit 1); exit 1; }; }
 
11854
fi
 
11855
 
 
11856
fi
 
11857
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
11858
$as_echo "$ac_cv_host" >&6; }
 
11859
case $ac_cv_host in
 
11860
*-*-*) ;;
 
11861
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
11862
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
 
11863
   { (exit 1); exit 1; }; };;
 
11864
esac
 
11865
host=$ac_cv_host
 
11866
ac_save_IFS=$IFS; IFS='-'
 
11867
set x $ac_cv_host
 
11868
shift
 
11869
host_cpu=$1
 
11870
host_vendor=$2
 
11871
shift; shift
 
11872
# Remember, the first character of IFS is used to create $*,
 
11873
# except with old shells:
 
11874
host_os=$*
 
11875
IFS=$ac_save_IFS
 
11876
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
11877
 
 
11878
 
 
11879
 
 
11880
 
 
11881
GOBJECT_REQUIRED=2.10.0
 
11882
 
 
11883
GDK_PIXBUF_REQUIRED=2.10.0
 
11884
 
 
11885
GNUTLS_REQUIRED=1.4.0
 
11886
 
 
11887
 
 
11888
PYGTK_REQUIRED=2.0.0
 
11889
VIEW_REQUIRED=0.6.0
 
11890
GTHREAD_REQUIRED=2.0.0
 
11891
PYTHON_REQUIRED=2.4
 
11892
 
 
11893
FIREFOX_PLUGIN_REQUIRED=2.0.0
 
11894
MOZILLA_PLUGIN_REQUIRED=1.8
 
11895
GOBJECT_INTROSPECTION_REQUIRED=0.6.2
 
11896
 
 
11897
 
 
11898
if test -n "$ac_tool_prefix"; then
 
11899
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
11900
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
11901
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
11902
$as_echo_n "checking for $ac_word... " >&6; }
 
11903
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
11904
  $as_echo_n "(cached) " >&6
 
11905
else
 
11906
  if test -n "$RANLIB"; then
 
11907
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
11908
else
 
11909
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11910
for as_dir in $PATH
 
11911
do
 
11912
  IFS=$as_save_IFS
 
11913
  test -z "$as_dir" && as_dir=.
 
11914
  for ac_exec_ext in '' $ac_executable_extensions; do
 
11915
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11916
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
11917
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11918
    break 2
 
11919
  fi
 
11920
done
 
11921
done
 
11922
IFS=$as_save_IFS
 
11923
 
 
11924
fi
 
11925
fi
 
11926
RANLIB=$ac_cv_prog_RANLIB
 
11927
if test -n "$RANLIB"; then
 
11928
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
 
11929
$as_echo "$RANLIB" >&6; }
 
11930
else
 
11931
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11932
$as_echo "no" >&6; }
 
11933
fi
 
11934
 
 
11935
 
 
11936
fi
 
11937
if test -z "$ac_cv_prog_RANLIB"; then
 
11938
  ac_ct_RANLIB=$RANLIB
 
11939
  # Extract the first word of "ranlib", so it can be a program name with args.
 
11940
set dummy ranlib; ac_word=$2
 
11941
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
11942
$as_echo_n "checking for $ac_word... " >&6; }
 
11943
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
11944
  $as_echo_n "(cached) " >&6
 
11945
else
 
11946
  if test -n "$ac_ct_RANLIB"; then
 
11947
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
11948
else
 
11949
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11950
for as_dir in $PATH
 
11951
do
 
11952
  IFS=$as_save_IFS
 
11953
  test -z "$as_dir" && as_dir=.
 
11954
  for ac_exec_ext in '' $ac_executable_extensions; do
 
11955
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11956
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
11957
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11958
    break 2
 
11959
  fi
 
11960
done
 
11961
done
 
11962
IFS=$as_save_IFS
 
11963
 
 
11964
fi
 
11965
fi
 
11966
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
11967
if test -n "$ac_ct_RANLIB"; then
 
11968
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
11969
$as_echo "$ac_ct_RANLIB" >&6; }
 
11970
else
 
11971
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11972
$as_echo "no" >&6; }
 
11973
fi
 
11974
 
 
11975
  if test "x$ac_ct_RANLIB" = x; then
 
11976
    RANLIB=":"
 
11977
  else
 
11978
    case $cross_compiling:$ac_tool_warned in
 
11979
yes:)
 
11980
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
11981
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
11982
ac_tool_warned=yes ;;
 
11983
esac
 
11984
    RANLIB=$ac_ct_RANLIB
 
11985
  fi
 
11986
else
 
11987
  RANLIB="$ac_cv_prog_RANLIB"
 
11988
fi
 
11989
 
 
11990
 
 
11991
  if test "${ac_cv_header_minix_config_h+set}" = set; then
 
11992
  { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
 
11993
$as_echo_n "checking for minix/config.h... " >&6; }
 
11994
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
11995
  $as_echo_n "(cached) " >&6
 
11996
fi
 
11997
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
 
11998
$as_echo "$ac_cv_header_minix_config_h" >&6; }
 
11999
else
 
12000
  # Is the header compilable?
 
12001
{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
 
12002
$as_echo_n "checking minix/config.h usability... " >&6; }
 
12003
cat >conftest.$ac_ext <<_ACEOF
 
12004
/* confdefs.h.  */
 
12005
_ACEOF
 
12006
cat confdefs.h >>conftest.$ac_ext
 
12007
cat >>conftest.$ac_ext <<_ACEOF
 
12008
/* end confdefs.h.  */
 
12009
$ac_includes_default
 
12010
#include <minix/config.h>
 
12011
_ACEOF
 
12012
rm -f conftest.$ac_objext
 
12013
if { (ac_try="$ac_compile"
 
12014
case "(($ac_try" in
 
12015
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12016
  *) ac_try_echo=$ac_try;;
 
12017
esac
 
12018
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12019
$as_echo "$ac_try_echo") >&5
 
12020
  (eval "$ac_compile") 2>conftest.er1
 
12021
  ac_status=$?
 
12022
  grep -v '^ *+' conftest.er1 >conftest.err
 
12023
  rm -f conftest.er1
 
12024
  cat conftest.err >&5
 
12025
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12026
  (exit $ac_status); } && {
 
12027
         test -z "$ac_c_werror_flag" ||
 
12028
         test ! -s conftest.err
 
12029
       } && test -s conftest.$ac_objext; then
 
12030
  ac_header_compiler=yes
 
12031
else
 
12032
  $as_echo "$as_me: failed program was:" >&5
 
12033
sed 's/^/| /' conftest.$ac_ext >&5
 
12034
 
 
12035
        ac_header_compiler=no
 
12036
fi
 
12037
 
 
12038
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12039
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
12040
$as_echo "$ac_header_compiler" >&6; }
 
12041
 
 
12042
# Is the header present?
 
12043
{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
 
12044
$as_echo_n "checking minix/config.h presence... " >&6; }
 
12045
cat >conftest.$ac_ext <<_ACEOF
 
12046
/* confdefs.h.  */
 
12047
_ACEOF
 
12048
cat confdefs.h >>conftest.$ac_ext
 
12049
cat >>conftest.$ac_ext <<_ACEOF
 
12050
/* end confdefs.h.  */
 
12051
#include <minix/config.h>
 
12052
_ACEOF
 
12053
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
12054
case "(($ac_try" in
 
12055
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12056
  *) ac_try_echo=$ac_try;;
 
12057
esac
 
12058
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12059
$as_echo "$ac_try_echo") >&5
 
12060
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
12061
  ac_status=$?
 
12062
  grep -v '^ *+' conftest.er1 >conftest.err
 
12063
  rm -f conftest.er1
 
12064
  cat conftest.err >&5
 
12065
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12066
  (exit $ac_status); } >/dev/null && {
 
12067
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
12068
         test ! -s conftest.err
 
12069
       }; then
 
12070
  ac_header_preproc=yes
 
12071
else
 
12072
  $as_echo "$as_me: failed program was:" >&5
 
12073
sed 's/^/| /' conftest.$ac_ext >&5
 
12074
 
 
12075
  ac_header_preproc=no
 
12076
fi
 
12077
 
 
12078
rm -f conftest.err conftest.$ac_ext
 
12079
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
12080
$as_echo "$ac_header_preproc" >&6; }
 
12081
 
 
12082
# So?  What about this header?
 
12083
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
12084
  yes:no: )
 
12085
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
12086
$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
12087
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
 
12088
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
 
12089
    ac_header_preproc=yes
 
12090
    ;;
 
12091
  no:yes:* )
 
12092
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
 
12093
$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
 
12094
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
 
12095
$as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
 
12096
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
 
12097
$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
 
12098
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
 
12099
$as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
12100
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
 
12101
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
 
12102
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
 
12103
$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
 
12104
    ( cat <<\_ASBOX
 
12105
## ----------------------------------------------------------------------- ##
 
12106
## Report this to https://bugzilla.gnome.org/enter_bug.cgi?product=gtk-vnc ##
 
12107
## ----------------------------------------------------------------------- ##
 
12108
_ASBOX
 
12109
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
12110
    ;;
 
12111
esac
 
12112
{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
 
12113
$as_echo_n "checking for minix/config.h... " >&6; }
 
12114
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
12115
  $as_echo_n "(cached) " >&6
 
12116
else
 
12117
  ac_cv_header_minix_config_h=$ac_header_preproc
 
12118
fi
 
12119
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
 
12120
$as_echo "$ac_cv_header_minix_config_h" >&6; }
 
12121
 
 
12122
fi
 
12123
if test "x$ac_cv_header_minix_config_h" = x""yes; then
 
12124
  MINIX=yes
 
12125
else
 
12126
  MINIX=
 
12127
fi
 
12128
 
 
12129
 
 
12130
  if test "$MINIX" = yes; then
 
12131
 
 
12132
cat >>confdefs.h <<\_ACEOF
 
12133
#define _POSIX_SOURCE 1
 
12134
_ACEOF
 
12135
 
 
12136
 
 
12137
cat >>confdefs.h <<\_ACEOF
 
12138
#define _POSIX_1_SOURCE 2
 
12139
_ACEOF
 
12140
 
 
12141
 
 
12142
cat >>confdefs.h <<\_ACEOF
 
12143
#define _MINIX 1
 
12144
_ACEOF
 
12145
 
 
12146
  fi
 
12147
 
 
12148
 
 
12149
 
 
12150
  { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
 
12151
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
 
12152
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
 
12153
  $as_echo_n "(cached) " >&6
 
12154
else
 
12155
  cat >conftest.$ac_ext <<_ACEOF
 
12156
/* confdefs.h.  */
 
12157
_ACEOF
 
12158
cat confdefs.h >>conftest.$ac_ext
 
12159
cat >>conftest.$ac_ext <<_ACEOF
 
12160
/* end confdefs.h.  */
 
12161
 
 
12162
#         define __EXTENSIONS__ 1
 
12163
          $ac_includes_default
 
12164
int
 
12165
main ()
 
12166
{
 
12167
 
 
12168
  ;
 
12169
  return 0;
 
12170
}
 
12171
_ACEOF
 
12172
rm -f conftest.$ac_objext
 
12173
if { (ac_try="$ac_compile"
 
12174
case "(($ac_try" in
 
12175
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12176
  *) ac_try_echo=$ac_try;;
 
12177
esac
 
12178
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12179
$as_echo "$ac_try_echo") >&5
 
12180
  (eval "$ac_compile") 2>conftest.er1
 
12181
  ac_status=$?
 
12182
  grep -v '^ *+' conftest.er1 >conftest.err
 
12183
  rm -f conftest.er1
 
12184
  cat conftest.err >&5
 
12185
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12186
  (exit $ac_status); } && {
 
12187
         test -z "$ac_c_werror_flag" ||
 
12188
         test ! -s conftest.err
 
12189
       } && test -s conftest.$ac_objext; then
 
12190
  ac_cv_safe_to_define___extensions__=yes
 
12191
else
 
12192
  $as_echo "$as_me: failed program was:" >&5
 
12193
sed 's/^/| /' conftest.$ac_ext >&5
 
12194
 
 
12195
        ac_cv_safe_to_define___extensions__=no
 
12196
fi
 
12197
 
 
12198
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12199
fi
 
12200
{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
 
12201
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
 
12202
  test $ac_cv_safe_to_define___extensions__ = yes &&
 
12203
    cat >>confdefs.h <<\_ACEOF
 
12204
#define __EXTENSIONS__ 1
 
12205
_ACEOF
 
12206
 
 
12207
  cat >>confdefs.h <<\_ACEOF
 
12208
#define _ALL_SOURCE 1
 
12209
_ACEOF
 
12210
 
 
12211
  cat >>confdefs.h <<\_ACEOF
 
12212
#define _GNU_SOURCE 1
 
12213
_ACEOF
 
12214
 
 
12215
  cat >>confdefs.h <<\_ACEOF
 
12216
#define _POSIX_PTHREAD_SEMANTICS 1
 
12217
_ACEOF
 
12218
 
 
12219
  cat >>confdefs.h <<\_ACEOF
 
12220
#define _TANDEM_SOURCE 1
 
12221
_ACEOF
 
12222
 
 
12223
 
 
12224
 
 
12225
 
 
12226
 
 
12227
 
 
12228
 
 
12229
 
 
12230
 
 
12231
 
 
12232
 
 
12233
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 
12234
# for constant arguments.  Useless!
 
12235
{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
 
12236
$as_echo_n "checking for working alloca.h... " >&6; }
 
12237
if test "${ac_cv_working_alloca_h+set}" = set; then
 
12238
  $as_echo_n "(cached) " >&6
 
12239
else
 
12240
  cat >conftest.$ac_ext <<_ACEOF
 
12241
/* confdefs.h.  */
 
12242
_ACEOF
 
12243
cat confdefs.h >>conftest.$ac_ext
 
12244
cat >>conftest.$ac_ext <<_ACEOF
 
12245
/* end confdefs.h.  */
 
12246
#include <alloca.h>
 
12247
int
 
12248
main ()
 
12249
{
 
12250
char *p = (char *) alloca (2 * sizeof (int));
 
12251
                          if (p) return 0;
 
12252
  ;
 
12253
  return 0;
 
12254
}
 
12255
_ACEOF
 
12256
rm -f conftest.$ac_objext conftest$ac_exeext
 
12257
if { (ac_try="$ac_link"
 
12258
case "(($ac_try" in
 
12259
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12260
  *) ac_try_echo=$ac_try;;
 
12261
esac
 
12262
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12263
$as_echo "$ac_try_echo") >&5
 
12264
  (eval "$ac_link") 2>conftest.er1
 
12265
  ac_status=$?
 
12266
  grep -v '^ *+' conftest.er1 >conftest.err
 
12267
  rm -f conftest.er1
 
12268
  cat conftest.err >&5
 
12269
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12270
  (exit $ac_status); } && {
 
12271
         test -z "$ac_c_werror_flag" ||
 
12272
         test ! -s conftest.err
 
12273
       } && test -s conftest$ac_exeext && {
 
12274
         test "$cross_compiling" = yes ||
 
12275
         $as_test_x conftest$ac_exeext
 
12276
       }; then
 
12277
  ac_cv_working_alloca_h=yes
 
12278
else
 
12279
  $as_echo "$as_me: failed program was:" >&5
 
12280
sed 's/^/| /' conftest.$ac_ext >&5
 
12281
 
 
12282
        ac_cv_working_alloca_h=no
 
12283
fi
 
12284
 
 
12285
rm -rf conftest.dSYM
 
12286
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12287
      conftest$ac_exeext conftest.$ac_ext
 
12288
fi
 
12289
{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
 
12290
$as_echo "$ac_cv_working_alloca_h" >&6; }
 
12291
if test $ac_cv_working_alloca_h = yes; then
 
12292
 
 
12293
cat >>confdefs.h <<\_ACEOF
 
12294
#define HAVE_ALLOCA_H 1
 
12295
_ACEOF
 
12296
 
 
12297
fi
 
12298
 
 
12299
{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
 
12300
$as_echo_n "checking for alloca... " >&6; }
 
12301
if test "${ac_cv_func_alloca_works+set}" = set; then
 
12302
  $as_echo_n "(cached) " >&6
 
12303
else
 
12304
  cat >conftest.$ac_ext <<_ACEOF
 
12305
/* confdefs.h.  */
 
12306
_ACEOF
 
12307
cat confdefs.h >>conftest.$ac_ext
 
12308
cat >>conftest.$ac_ext <<_ACEOF
 
12309
/* end confdefs.h.  */
 
12310
#ifdef __GNUC__
 
12311
# define alloca __builtin_alloca
 
12312
#else
 
12313
# ifdef _MSC_VER
 
12314
#  include <malloc.h>
 
12315
#  define alloca _alloca
 
12316
# else
 
12317
#  ifdef HAVE_ALLOCA_H
 
12318
#   include <alloca.h>
 
12319
#  else
 
12320
#   ifdef _AIX
 
12321
 #pragma alloca
 
12322
#   else
 
12323
#    ifndef alloca /* predefined by HP cc +Olibcalls */
 
12324
char *alloca ();
 
12325
#    endif
 
12326
#   endif
 
12327
#  endif
 
12328
# endif
 
12329
#endif
 
12330
 
 
12331
int
 
12332
main ()
 
12333
{
 
12334
char *p = (char *) alloca (1);
 
12335
                                    if (p) return 0;
 
12336
  ;
 
12337
  return 0;
 
12338
}
 
12339
_ACEOF
 
12340
rm -f conftest.$ac_objext conftest$ac_exeext
 
12341
if { (ac_try="$ac_link"
 
12342
case "(($ac_try" in
 
12343
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12344
  *) ac_try_echo=$ac_try;;
 
12345
esac
 
12346
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12347
$as_echo "$ac_try_echo") >&5
 
12348
  (eval "$ac_link") 2>conftest.er1
 
12349
  ac_status=$?
 
12350
  grep -v '^ *+' conftest.er1 >conftest.err
 
12351
  rm -f conftest.er1
 
12352
  cat conftest.err >&5
 
12353
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12354
  (exit $ac_status); } && {
 
12355
         test -z "$ac_c_werror_flag" ||
 
12356
         test ! -s conftest.err
 
12357
       } && test -s conftest$ac_exeext && {
 
12358
         test "$cross_compiling" = yes ||
 
12359
         $as_test_x conftest$ac_exeext
 
12360
       }; then
 
12361
  ac_cv_func_alloca_works=yes
 
12362
else
 
12363
  $as_echo "$as_me: failed program was:" >&5
 
12364
sed 's/^/| /' conftest.$ac_ext >&5
 
12365
 
 
12366
        ac_cv_func_alloca_works=no
 
12367
fi
 
12368
 
 
12369
rm -rf conftest.dSYM
 
12370
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12371
      conftest$ac_exeext conftest.$ac_ext
 
12372
fi
 
12373
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
 
12374
$as_echo "$ac_cv_func_alloca_works" >&6; }
 
12375
 
 
12376
if test $ac_cv_func_alloca_works = yes; then
 
12377
 
 
12378
cat >>confdefs.h <<\_ACEOF
 
12379
#define HAVE_ALLOCA 1
 
12380
_ACEOF
 
12381
 
 
12382
else
 
12383
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
 
12384
# that cause trouble.  Some versions do not even contain alloca or
 
12385
# contain a buggy version.  If you still want to use their alloca,
 
12386
# use ar to extract alloca.o from them instead of compiling alloca.c.
 
12387
 
 
12388
 
 
12389
 
 
12390
 
 
12391
 
 
12392
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
 
12393
 
 
12394
cat >>confdefs.h <<\_ACEOF
 
12395
#define C_ALLOCA 1
 
12396
_ACEOF
 
12397
 
 
12398
 
 
12399
{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
 
12400
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
 
12401
if test "${ac_cv_os_cray+set}" = set; then
 
12402
  $as_echo_n "(cached) " >&6
 
12403
else
 
12404
  cat >conftest.$ac_ext <<_ACEOF
 
12405
/* confdefs.h.  */
 
12406
_ACEOF
 
12407
cat confdefs.h >>conftest.$ac_ext
 
12408
cat >>conftest.$ac_ext <<_ACEOF
 
12409
/* end confdefs.h.  */
 
12410
#if defined CRAY && ! defined CRAY2
 
12411
webecray
 
12412
#else
 
12413
wenotbecray
 
12414
#endif
 
12415
 
 
12416
_ACEOF
 
12417
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
12418
  $EGREP "webecray" >/dev/null 2>&1; then
 
12419
  ac_cv_os_cray=yes
 
12420
else
 
12421
  ac_cv_os_cray=no
 
12422
fi
 
12423
rm -f conftest*
 
12424
 
 
12425
fi
 
12426
{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
 
12427
$as_echo "$ac_cv_os_cray" >&6; }
 
12428
if test $ac_cv_os_cray = yes; then
 
12429
  for ac_func in _getb67 GETB67 getb67; do
 
12430
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
12431
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
12432
$as_echo_n "checking for $ac_func... " >&6; }
 
12433
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
12434
  $as_echo_n "(cached) " >&6
 
12435
else
 
12436
  cat >conftest.$ac_ext <<_ACEOF
 
12437
/* confdefs.h.  */
 
12438
_ACEOF
 
12439
cat confdefs.h >>conftest.$ac_ext
 
12440
cat >>conftest.$ac_ext <<_ACEOF
 
12441
/* end confdefs.h.  */
 
12442
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
12443
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12444
#define $ac_func innocuous_$ac_func
 
12445
 
 
12446
/* System header to define __stub macros and hopefully few prototypes,
 
12447
    which can conflict with char $ac_func (); below.
 
12448
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12449
    <limits.h> exists even on freestanding compilers.  */
 
12450
 
 
12451
#ifdef __STDC__
 
12452
# include <limits.h>
 
12453
#else
 
12454
# include <assert.h>
 
12455
#endif
 
12456
 
 
12457
#undef $ac_func
 
12458
 
 
12459
/* Override any GCC internal prototype to avoid an error.
 
12460
   Use char because int might match the return type of a GCC
 
12461
   builtin and then its argument prototype would still apply.  */
 
12462
#ifdef __cplusplus
 
12463
extern "C"
 
12464
#endif
 
12465
char $ac_func ();
 
12466
/* The GNU C library defines this for functions which it implements
 
12467
    to always fail with ENOSYS.  Some functions are actually named
 
12468
    something starting with __ and the normal name is an alias.  */
 
12469
#if defined __stub_$ac_func || defined __stub___$ac_func
 
12470
choke me
 
12471
#endif
 
12472
 
 
12473
int
 
12474
main ()
 
12475
{
 
12476
return $ac_func ();
 
12477
  ;
 
12478
  return 0;
 
12479
}
 
12480
_ACEOF
 
12481
rm -f conftest.$ac_objext conftest$ac_exeext
 
12482
if { (ac_try="$ac_link"
 
12483
case "(($ac_try" in
 
12484
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12485
  *) ac_try_echo=$ac_try;;
 
12486
esac
 
12487
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12488
$as_echo "$ac_try_echo") >&5
 
12489
  (eval "$ac_link") 2>conftest.er1
 
12490
  ac_status=$?
 
12491
  grep -v '^ *+' conftest.er1 >conftest.err
 
12492
  rm -f conftest.er1
 
12493
  cat conftest.err >&5
 
12494
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12495
  (exit $ac_status); } && {
 
12496
         test -z "$ac_c_werror_flag" ||
 
12497
         test ! -s conftest.err
 
12498
       } && test -s conftest$ac_exeext && {
 
12499
         test "$cross_compiling" = yes ||
 
12500
         $as_test_x conftest$ac_exeext
 
12501
       }; then
 
12502
  eval "$as_ac_var=yes"
 
12503
else
 
12504
  $as_echo "$as_me: failed program was:" >&5
 
12505
sed 's/^/| /' conftest.$ac_ext >&5
 
12506
 
 
12507
        eval "$as_ac_var=no"
 
12508
fi
 
12509
 
 
12510
rm -rf conftest.dSYM
 
12511
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12512
      conftest$ac_exeext conftest.$ac_ext
 
12513
fi
 
12514
ac_res=`eval 'as_val=${'$as_ac_var'}
 
12515
                 $as_echo "$as_val"'`
 
12516
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
12517
$as_echo "$ac_res" >&6; }
 
12518
as_val=`eval 'as_val=${'$as_ac_var'}
 
12519
                 $as_echo "$as_val"'`
 
12520
   if test "x$as_val" = x""yes; then
 
12521
 
 
12522
cat >>confdefs.h <<_ACEOF
 
12523
#define CRAY_STACKSEG_END $ac_func
 
12524
_ACEOF
 
12525
 
 
12526
    break
 
12527
fi
 
12528
 
 
12529
  done
 
12530
fi
 
12531
 
 
12532
{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
 
12533
$as_echo_n "checking stack direction for C alloca... " >&6; }
 
12534
if test "${ac_cv_c_stack_direction+set}" = set; then
 
12535
  $as_echo_n "(cached) " >&6
 
12536
else
 
12537
  if test "$cross_compiling" = yes; then
 
12538
  ac_cv_c_stack_direction=0
 
12539
else
 
12540
  cat >conftest.$ac_ext <<_ACEOF
 
12541
/* confdefs.h.  */
 
12542
_ACEOF
 
12543
cat confdefs.h >>conftest.$ac_ext
 
12544
cat >>conftest.$ac_ext <<_ACEOF
 
12545
/* end confdefs.h.  */
 
12546
$ac_includes_default
 
12547
int
 
12548
find_stack_direction ()
 
12549
{
 
12550
  static char *addr = 0;
 
12551
  auto char dummy;
 
12552
  if (addr == 0)
 
12553
    {
 
12554
      addr = &dummy;
 
12555
      return find_stack_direction ();
 
12556
    }
 
12557
  else
 
12558
    return (&dummy > addr) ? 1 : -1;
 
12559
}
 
12560
 
 
12561
int
 
12562
main ()
 
12563
{
 
12564
  return find_stack_direction () < 0;
 
12565
}
 
12566
_ACEOF
 
12567
rm -f conftest$ac_exeext
 
12568
if { (ac_try="$ac_link"
 
12569
case "(($ac_try" in
 
12570
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12571
  *) ac_try_echo=$ac_try;;
 
12572
esac
 
12573
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12574
$as_echo "$ac_try_echo") >&5
 
12575
  (eval "$ac_link") 2>&5
 
12576
  ac_status=$?
 
12577
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12578
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
12579
  { (case "(($ac_try" in
 
12580
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12581
  *) ac_try_echo=$ac_try;;
 
12582
esac
 
12583
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12584
$as_echo "$ac_try_echo") >&5
 
12585
  (eval "$ac_try") 2>&5
 
12586
  ac_status=$?
 
12587
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12588
  (exit $ac_status); }; }; then
 
12589
  ac_cv_c_stack_direction=1
 
12590
else
 
12591
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
12592
$as_echo "$as_me: failed program was:" >&5
 
12593
sed 's/^/| /' conftest.$ac_ext >&5
 
12594
 
 
12595
( exit $ac_status )
 
12596
ac_cv_c_stack_direction=-1
 
12597
fi
 
12598
rm -rf conftest.dSYM
 
12599
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
12600
fi
 
12601
 
 
12602
 
 
12603
fi
 
12604
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
 
12605
$as_echo "$ac_cv_c_stack_direction" >&6; }
 
12606
 
 
12607
cat >>confdefs.h <<_ACEOF
 
12608
#define STACK_DIRECTION $ac_cv_c_stack_direction
 
12609
_ACEOF
 
12610
 
 
12611
 
 
12612
fi
 
12613
 
 
12614
 
 
12615
  GNULIB_INET_NTOP=0;
 
12616
  GNULIB_INET_PTON=0;
 
12617
    HAVE_DECL_INET_NTOP=1;
 
12618
  HAVE_DECL_INET_PTON=1;
 
12619
  ARPA_INET_H='';
 
12620
 
 
12621
 
 
12622
 
 
12623
 
 
12624
 
 
12625
 
 
12626
for ac_header in $gl_header_list
 
12627
do
 
12628
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
12629
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12630
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12631
$as_echo_n "checking for $ac_header... " >&6; }
 
12632
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12633
  $as_echo_n "(cached) " >&6
 
12634
fi
 
12635
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
12636
                 $as_echo "$as_val"'`
 
12637
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
12638
$as_echo "$ac_res" >&6; }
 
12639
else
 
12640
  # Is the header compilable?
 
12641
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
12642
$as_echo_n "checking $ac_header usability... " >&6; }
 
12643
cat >conftest.$ac_ext <<_ACEOF
 
12644
/* confdefs.h.  */
 
12645
_ACEOF
 
12646
cat confdefs.h >>conftest.$ac_ext
 
12647
cat >>conftest.$ac_ext <<_ACEOF
 
12648
/* end confdefs.h.  */
 
12649
$ac_includes_default
 
12650
#include <$ac_header>
 
12651
_ACEOF
 
12652
rm -f conftest.$ac_objext
 
12653
if { (ac_try="$ac_compile"
 
12654
case "(($ac_try" in
 
12655
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12656
  *) ac_try_echo=$ac_try;;
 
12657
esac
 
12658
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12659
$as_echo "$ac_try_echo") >&5
 
12660
  (eval "$ac_compile") 2>conftest.er1
 
12661
  ac_status=$?
 
12662
  grep -v '^ *+' conftest.er1 >conftest.err
 
12663
  rm -f conftest.er1
 
12664
  cat conftest.err >&5
 
12665
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12666
  (exit $ac_status); } && {
 
12667
         test -z "$ac_c_werror_flag" ||
 
12668
         test ! -s conftest.err
 
12669
       } && test -s conftest.$ac_objext; then
 
12670
  ac_header_compiler=yes
 
12671
else
 
12672
  $as_echo "$as_me: failed program was:" >&5
 
12673
sed 's/^/| /' conftest.$ac_ext >&5
 
12674
 
 
12675
        ac_header_compiler=no
 
12676
fi
 
12677
 
 
12678
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12679
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
12680
$as_echo "$ac_header_compiler" >&6; }
 
12681
 
 
12682
# Is the header present?
 
12683
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
12684
$as_echo_n "checking $ac_header presence... " >&6; }
 
12685
cat >conftest.$ac_ext <<_ACEOF
 
12686
/* confdefs.h.  */
 
12687
_ACEOF
 
12688
cat confdefs.h >>conftest.$ac_ext
 
12689
cat >>conftest.$ac_ext <<_ACEOF
 
12690
/* end confdefs.h.  */
 
12691
#include <$ac_header>
 
12692
_ACEOF
 
12693
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
12694
case "(($ac_try" in
 
12695
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12696
  *) ac_try_echo=$ac_try;;
 
12697
esac
 
12698
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12699
$as_echo "$ac_try_echo") >&5
 
12700
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
12701
  ac_status=$?
 
12702
  grep -v '^ *+' conftest.er1 >conftest.err
 
12703
  rm -f conftest.er1
 
12704
  cat conftest.err >&5
 
12705
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12706
  (exit $ac_status); } >/dev/null && {
 
12707
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
12708
         test ! -s conftest.err
 
12709
       }; then
 
12710
  ac_header_preproc=yes
 
12711
else
 
12712
  $as_echo "$as_me: failed program was:" >&5
 
12713
sed 's/^/| /' conftest.$ac_ext >&5
 
12714
 
 
12715
  ac_header_preproc=no
 
12716
fi
 
12717
 
 
12718
rm -f conftest.err conftest.$ac_ext
 
12719
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
12720
$as_echo "$ac_header_preproc" >&6; }
 
12721
 
 
12722
# So?  What about this header?
 
12723
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
12724
  yes:no: )
 
12725
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
12726
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
12727
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
12728
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
12729
    ac_header_preproc=yes
 
12730
    ;;
 
12731
  no:yes:* )
 
12732
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
12733
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
12734
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
12735
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
12736
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
12737
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
12738
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
12739
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
12740
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
12741
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
12742
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
12743
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
12744
    ( cat <<\_ASBOX
 
12745
## ----------------------------------------------------------------------- ##
 
12746
## Report this to https://bugzilla.gnome.org/enter_bug.cgi?product=gtk-vnc ##
 
12747
## ----------------------------------------------------------------------- ##
 
12748
_ASBOX
 
12749
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
12750
    ;;
 
12751
esac
 
12752
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12753
$as_echo_n "checking for $ac_header... " >&6; }
 
12754
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12755
  $as_echo_n "(cached) " >&6
 
12756
else
 
12757
  eval "$as_ac_Header=\$ac_header_preproc"
 
12758
fi
 
12759
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
12760
                 $as_echo "$as_val"'`
 
12761
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
12762
$as_echo "$ac_res" >&6; }
 
12763
 
 
12764
fi
 
12765
as_val=`eval 'as_val=${'$as_ac_Header'}
 
12766
                 $as_echo "$as_val"'`
 
12767
   if test "x$as_val" = x""yes; then
 
12768
  cat >>confdefs.h <<_ACEOF
 
12769
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12770
_ACEOF
 
12771
 
 
12772
fi
 
12773
 
 
12774
done
 
12775
 
 
12776
 
 
12777
 
 
12778
 
 
12779
 
 
12780
 
 
12781
 
 
12782
 
 
12783
  { $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
 
12784
$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
 
12785
if test "${gl_cv_have_include_next+set}" = set; then
 
12786
  $as_echo_n "(cached) " >&6
 
12787
else
 
12788
  rm -rf conftestd1 conftestd2
 
12789
     mkdir conftestd1 conftestd2
 
12790
                    cat <<EOF > conftestd1/conftest.h
 
12791
#define DEFINED_IN_CONFTESTD1
 
12792
#include <stdio.h>
 
12793
#include_next <conftest.h>
 
12794
#ifdef DEFINED_IN_CONFTESTD2
 
12795
int foo;
 
12796
#else
 
12797
#error "include_next doesn't work"
 
12798
#endif
 
12799
EOF
 
12800
     cat <<EOF > conftestd2/conftest.h
 
12801
#ifndef DEFINED_IN_CONFTESTD1
 
12802
#error "include_next test doesn't work"
 
12803
#endif
 
12804
#define DEFINED_IN_CONFTESTD2
 
12805
EOF
 
12806
     save_CPPFLAGS="$CPPFLAGS"
 
12807
     CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
 
12808
     cat >conftest.$ac_ext <<_ACEOF
 
12809
#include <conftest.h>
 
12810
_ACEOF
 
12811
rm -f conftest.$ac_objext
 
12812
if { (ac_try="$ac_compile"
 
12813
case "(($ac_try" in
 
12814
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12815
  *) ac_try_echo=$ac_try;;
 
12816
esac
 
12817
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12818
$as_echo "$ac_try_echo") >&5
 
12819
  (eval "$ac_compile") 2>conftest.er1
 
12820
  ac_status=$?
 
12821
  grep -v '^ *+' conftest.er1 >conftest.err
 
12822
  rm -f conftest.er1
 
12823
  cat conftest.err >&5
 
12824
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12825
  (exit $ac_status); } && {
 
12826
         test -z "$ac_c_werror_flag" ||
 
12827
         test ! -s conftest.err
 
12828
       } && test -s conftest.$ac_objext; then
 
12829
  gl_cv_have_include_next=yes
 
12830
else
 
12831
  $as_echo "$as_me: failed program was:" >&5
 
12832
sed 's/^/| /' conftest.$ac_ext >&5
 
12833
 
 
12834
        gl_cv_have_include_next=no
 
12835
fi
 
12836
 
 
12837
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12838
     CPPFLAGS="$save_CPPFLAGS"
 
12839
     rm -rf conftestd1 conftestd2
 
12840
 
 
12841
fi
 
12842
{ $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
 
12843
$as_echo "$gl_cv_have_include_next" >&6; }
 
12844
  PRAGMA_SYSTEM_HEADER=
 
12845
  if test $gl_cv_have_include_next = yes; then
 
12846
    INCLUDE_NEXT=include_next
 
12847
    if test -n "$GCC"; then
 
12848
      PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
 
12849
    fi
 
12850
  else
 
12851
    INCLUDE_NEXT=include
 
12852
  fi
 
12853
 
 
12854
 
 
12855
 
 
12856
 
 
12857
  GNULIB_SOCKET=0;
 
12858
  GNULIB_CONNECT=0;
 
12859
  GNULIB_ACCEPT=0;
 
12860
  GNULIB_BIND=0;
 
12861
  GNULIB_GETPEERNAME=0;
 
12862
  GNULIB_GETSOCKNAME=0;
 
12863
  GNULIB_GETSOCKOPT=0;
 
12864
  GNULIB_LISTEN=0;
 
12865
  GNULIB_RECV=0;
 
12866
  GNULIB_SEND=0;
 
12867
  GNULIB_RECVFROM=0;
 
12868
  GNULIB_SENDTO=0;
 
12869
  GNULIB_SETSOCKOPT=0;
 
12870
 
 
12871
{ $as_echo "$as_me:$LINENO: checking for inline" >&5
 
12872
$as_echo_n "checking for inline... " >&6; }
 
12873
if test "${ac_cv_c_inline+set}" = set; then
 
12874
  $as_echo_n "(cached) " >&6
 
12875
else
 
12876
  ac_cv_c_inline=no
 
12877
for ac_kw in inline __inline__ __inline; do
 
12878
  cat >conftest.$ac_ext <<_ACEOF
 
12879
/* confdefs.h.  */
 
12880
_ACEOF
 
12881
cat confdefs.h >>conftest.$ac_ext
 
12882
cat >>conftest.$ac_ext <<_ACEOF
 
12883
/* end confdefs.h.  */
 
12884
#ifndef __cplusplus
 
12885
typedef int foo_t;
 
12886
static $ac_kw foo_t static_foo () {return 0; }
 
12887
$ac_kw foo_t foo () {return 0; }
 
12888
#endif
 
12889
 
 
12890
_ACEOF
 
12891
rm -f conftest.$ac_objext
 
12892
if { (ac_try="$ac_compile"
 
12893
case "(($ac_try" in
 
12894
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12895
  *) ac_try_echo=$ac_try;;
 
12896
esac
 
12897
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12898
$as_echo "$ac_try_echo") >&5
 
12899
  (eval "$ac_compile") 2>conftest.er1
 
12900
  ac_status=$?
 
12901
  grep -v '^ *+' conftest.er1 >conftest.err
 
12902
  rm -f conftest.er1
 
12903
  cat conftest.err >&5
 
12904
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12905
  (exit $ac_status); } && {
 
12906
         test -z "$ac_c_werror_flag" ||
 
12907
         test ! -s conftest.err
 
12908
       } && test -s conftest.$ac_objext; then
 
12909
  ac_cv_c_inline=$ac_kw
 
12910
else
 
12911
  $as_echo "$as_me: failed program was:" >&5
 
12912
sed 's/^/| /' conftest.$ac_ext >&5
 
12913
 
 
12914
 
 
12915
fi
 
12916
 
 
12917
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12918
  test "$ac_cv_c_inline" != no && break
 
12919
done
 
12920
 
 
12921
fi
 
12922
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
12923
$as_echo "$ac_cv_c_inline" >&6; }
 
12924
 
 
12925
 
 
12926
case $ac_cv_c_inline in
 
12927
  inline | yes) ;;
 
12928
  *)
 
12929
    case $ac_cv_c_inline in
 
12930
      no) ac_val=;;
 
12931
      *) ac_val=$ac_cv_c_inline;;
 
12932
    esac
 
12933
    cat >>confdefs.h <<_ACEOF
 
12934
#ifndef __cplusplus
 
12935
#define inline $ac_val
 
12936
#endif
 
12937
_ACEOF
 
12938
    ;;
 
12939
esac
 
12940
 
 
12941
 
 
12942
 
 
12943
 
 
12944
 
 
12945
 
 
12946
 
 
12947
 
 
12948
 
 
12949
 
 
12950
 
 
12951
  { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> is self-contained" >&5
 
12952
$as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
 
12953
if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then
 
12954
  $as_echo_n "(cached) " >&6
 
12955
else
 
12956
 
 
12957
      cat >conftest.$ac_ext <<_ACEOF
 
12958
/* confdefs.h.  */
 
12959
_ACEOF
 
12960
cat confdefs.h >>conftest.$ac_ext
 
12961
cat >>conftest.$ac_ext <<_ACEOF
 
12962
/* end confdefs.h.  */
 
12963
#include <sys/socket.h>
 
12964
int
 
12965
main ()
 
12966
{
 
12967
 
 
12968
  ;
 
12969
  return 0;
 
12970
}
 
12971
_ACEOF
 
12972
rm -f conftest.$ac_objext
 
12973
if { (ac_try="$ac_compile"
 
12974
case "(($ac_try" in
 
12975
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12976
  *) ac_try_echo=$ac_try;;
 
12977
esac
 
12978
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12979
$as_echo "$ac_try_echo") >&5
 
12980
  (eval "$ac_compile") 2>conftest.er1
 
12981
  ac_status=$?
 
12982
  grep -v '^ *+' conftest.er1 >conftest.err
 
12983
  rm -f conftest.er1
 
12984
  cat conftest.err >&5
 
12985
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12986
  (exit $ac_status); } && {
 
12987
         test -z "$ac_c_werror_flag" ||
 
12988
         test ! -s conftest.err
 
12989
       } && test -s conftest.$ac_objext; then
 
12990
  gl_cv_header_sys_socket_h_selfcontained=yes
 
12991
else
 
12992
  $as_echo "$as_me: failed program was:" >&5
 
12993
sed 's/^/| /' conftest.$ac_ext >&5
 
12994
 
 
12995
        gl_cv_header_sys_socket_h_selfcontained=no
 
12996
fi
 
12997
 
 
12998
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12999
 
 
13000
fi
 
13001
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
 
13002
$as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
 
13003
  if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
 
13004
    SYS_SOCKET_H=''
 
13005
 
 
13006
for ac_func in shutdown
 
13007
do
 
13008
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
13009
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
13010
$as_echo_n "checking for $ac_func... " >&6; }
 
13011
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
13012
  $as_echo_n "(cached) " >&6
 
13013
else
 
13014
  cat >conftest.$ac_ext <<_ACEOF
 
13015
/* confdefs.h.  */
 
13016
_ACEOF
 
13017
cat confdefs.h >>conftest.$ac_ext
 
13018
cat >>conftest.$ac_ext <<_ACEOF
 
13019
/* end confdefs.h.  */
 
13020
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
13021
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13022
#define $ac_func innocuous_$ac_func
 
13023
 
 
13024
/* System header to define __stub macros and hopefully few prototypes,
 
13025
    which can conflict with char $ac_func (); below.
 
13026
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13027
    <limits.h> exists even on freestanding compilers.  */
 
13028
 
 
13029
#ifdef __STDC__
 
13030
# include <limits.h>
 
13031
#else
 
13032
# include <assert.h>
 
13033
#endif
 
13034
 
 
13035
#undef $ac_func
 
13036
 
 
13037
/* Override any GCC internal prototype to avoid an error.
 
13038
   Use char because int might match the return type of a GCC
 
13039
   builtin and then its argument prototype would still apply.  */
 
13040
#ifdef __cplusplus
 
13041
extern "C"
 
13042
#endif
 
13043
char $ac_func ();
 
13044
/* The GNU C library defines this for functions which it implements
 
13045
    to always fail with ENOSYS.  Some functions are actually named
 
13046
    something starting with __ and the normal name is an alias.  */
 
13047
#if defined __stub_$ac_func || defined __stub___$ac_func
 
13048
choke me
 
13049
#endif
 
13050
 
 
13051
int
 
13052
main ()
 
13053
{
 
13054
return $ac_func ();
 
13055
  ;
 
13056
  return 0;
 
13057
}
 
13058
_ACEOF
 
13059
rm -f conftest.$ac_objext conftest$ac_exeext
 
13060
if { (ac_try="$ac_link"
 
13061
case "(($ac_try" in
 
13062
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13063
  *) ac_try_echo=$ac_try;;
 
13064
esac
 
13065
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13066
$as_echo "$ac_try_echo") >&5
 
13067
  (eval "$ac_link") 2>conftest.er1
 
13068
  ac_status=$?
 
13069
  grep -v '^ *+' conftest.er1 >conftest.err
 
13070
  rm -f conftest.er1
 
13071
  cat conftest.err >&5
 
13072
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13073
  (exit $ac_status); } && {
 
13074
         test -z "$ac_c_werror_flag" ||
 
13075
         test ! -s conftest.err
 
13076
       } && test -s conftest$ac_exeext && {
 
13077
         test "$cross_compiling" = yes ||
 
13078
         $as_test_x conftest$ac_exeext
 
13079
       }; then
 
13080
  eval "$as_ac_var=yes"
 
13081
else
 
13082
  $as_echo "$as_me: failed program was:" >&5
 
13083
sed 's/^/| /' conftest.$ac_ext >&5
 
13084
 
 
13085
        eval "$as_ac_var=no"
 
13086
fi
 
13087
 
 
13088
rm -rf conftest.dSYM
 
13089
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
13090
      conftest$ac_exeext conftest.$ac_ext
 
13091
fi
 
13092
ac_res=`eval 'as_val=${'$as_ac_var'}
 
13093
                 $as_echo "$as_val"'`
 
13094
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
13095
$as_echo "$ac_res" >&6; }
 
13096
as_val=`eval 'as_val=${'$as_ac_var'}
 
13097
                 $as_echo "$as_val"'`
 
13098
   if test "x$as_val" = x""yes; then
 
13099
  cat >>confdefs.h <<_ACEOF
 
13100
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
13101
_ACEOF
 
13102
 
 
13103
fi
 
13104
done
 
13105
 
 
13106
    if test $ac_cv_func_shutdown = yes; then
 
13107
      { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
 
13108
$as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
 
13109
if test "${gl_cv_header_sys_socket_h_shut+set}" = set; then
 
13110
  $as_echo_n "(cached) " >&6
 
13111
else
 
13112
 
 
13113
          cat >conftest.$ac_ext <<_ACEOF
 
13114
/* confdefs.h.  */
 
13115
_ACEOF
 
13116
cat confdefs.h >>conftest.$ac_ext
 
13117
cat >>conftest.$ac_ext <<_ACEOF
 
13118
/* end confdefs.h.  */
 
13119
#include <sys/socket.h>
 
13120
int
 
13121
main ()
 
13122
{
 
13123
int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
 
13124
  ;
 
13125
  return 0;
 
13126
}
 
13127
_ACEOF
 
13128
rm -f conftest.$ac_objext
 
13129
if { (ac_try="$ac_compile"
 
13130
case "(($ac_try" in
 
13131
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13132
  *) ac_try_echo=$ac_try;;
 
13133
esac
 
13134
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13135
$as_echo "$ac_try_echo") >&5
 
13136
  (eval "$ac_compile") 2>conftest.er1
 
13137
  ac_status=$?
 
13138
  grep -v '^ *+' conftest.er1 >conftest.err
 
13139
  rm -f conftest.er1
 
13140
  cat conftest.err >&5
 
13141
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13142
  (exit $ac_status); } && {
 
13143
         test -z "$ac_c_werror_flag" ||
 
13144
         test ! -s conftest.err
 
13145
       } && test -s conftest.$ac_objext; then
 
13146
  gl_cv_header_sys_socket_h_shut=yes
 
13147
else
 
13148
  $as_echo "$as_me: failed program was:" >&5
 
13149
sed 's/^/| /' conftest.$ac_ext >&5
 
13150
 
 
13151
        gl_cv_header_sys_socket_h_shut=no
 
13152
fi
 
13153
 
 
13154
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13155
 
 
13156
fi
 
13157
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_shut" >&5
 
13158
$as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
 
13159
      if test $gl_cv_header_sys_socket_h_shut = no; then
 
13160
        SYS_SOCKET_H='sys/socket.h'
 
13161
      fi
 
13162
    fi
 
13163
  else
 
13164
    SYS_SOCKET_H='sys/socket.h'
 
13165
  fi
 
13166
  if test -n "$SYS_SOCKET_H"; then
 
13167
 
 
13168
 
 
13169
 
 
13170
  :
 
13171
 
 
13172
 
 
13173
 
 
13174
 
 
13175
 
 
13176
 
 
13177
 
 
13178
     if test $gl_cv_have_include_next = yes; then
 
13179
       gl_cv_next_sys_socket_h='<'sys/socket.h'>'
 
13180
     else
 
13181
       { $as_echo "$as_me:$LINENO: checking absolute name of <sys/socket.h>" >&5
 
13182
$as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
 
13183
if test "${gl_cv_next_sys_socket_h+set}" = set; then
 
13184
  $as_echo_n "(cached) " >&6
 
13185
else
 
13186
 
 
13187
          if test $ac_cv_header_sys_socket_h = yes; then
 
13188
            cat >conftest.$ac_ext <<_ACEOF
 
13189
/* confdefs.h.  */
 
13190
_ACEOF
 
13191
cat confdefs.h >>conftest.$ac_ext
 
13192
cat >>conftest.$ac_ext <<_ACEOF
 
13193
/* end confdefs.h.  */
 
13194
#include <sys/socket.h>
 
13195
 
 
13196
_ACEOF
 
13197
                                    gl_cv_next_sys_socket_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
13198
               sed -n '\#/sys/socket.h#{
 
13199
                 s#.*"\(.*/sys/socket.h\)".*#\1#
 
13200
                 s#^/[^/]#//&#
 
13201
                 p
 
13202
                 q
 
13203
               }'`'"'
 
13204
          else
 
13205
            gl_cv_next_sys_socket_h='<'sys/socket.h'>'
 
13206
          fi
 
13207
 
 
13208
fi
 
13209
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_socket_h" >&5
 
13210
$as_echo "$gl_cv_next_sys_socket_h" >&6; }
 
13211
     fi
 
13212
     NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
 
13213
 
 
13214
 
 
13215
 
 
13216
    if test $ac_cv_header_sys_socket_h = yes; then
 
13217
      HAVE_SYS_SOCKET_H=1
 
13218
      HAVE_WS2TCPIP_H=0
 
13219
    else
 
13220
      HAVE_SYS_SOCKET_H=0
 
13221
 
 
13222
for ac_header in ws2tcpip.h
 
13223
do
 
13224
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
13225
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13226
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13227
$as_echo_n "checking for $ac_header... " >&6; }
 
13228
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13229
  $as_echo_n "(cached) " >&6
 
13230
fi
 
13231
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
13232
                 $as_echo "$as_val"'`
 
13233
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
13234
$as_echo "$ac_res" >&6; }
 
13235
else
 
13236
  # Is the header compilable?
 
13237
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
13238
$as_echo_n "checking $ac_header usability... " >&6; }
 
13239
cat >conftest.$ac_ext <<_ACEOF
 
13240
/* confdefs.h.  */
 
13241
_ACEOF
 
13242
cat confdefs.h >>conftest.$ac_ext
 
13243
cat >>conftest.$ac_ext <<_ACEOF
 
13244
/* end confdefs.h.  */
 
13245
$ac_includes_default
 
13246
#include <$ac_header>
 
13247
_ACEOF
 
13248
rm -f conftest.$ac_objext
 
13249
if { (ac_try="$ac_compile"
 
13250
case "(($ac_try" in
 
13251
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13252
  *) ac_try_echo=$ac_try;;
 
13253
esac
 
13254
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13255
$as_echo "$ac_try_echo") >&5
 
13256
  (eval "$ac_compile") 2>conftest.er1
 
13257
  ac_status=$?
 
13258
  grep -v '^ *+' conftest.er1 >conftest.err
 
13259
  rm -f conftest.er1
 
13260
  cat conftest.err >&5
 
13261
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13262
  (exit $ac_status); } && {
 
13263
         test -z "$ac_c_werror_flag" ||
 
13264
         test ! -s conftest.err
 
13265
       } && test -s conftest.$ac_objext; then
 
13266
  ac_header_compiler=yes
 
13267
else
 
13268
  $as_echo "$as_me: failed program was:" >&5
 
13269
sed 's/^/| /' conftest.$ac_ext >&5
 
13270
 
 
13271
        ac_header_compiler=no
 
13272
fi
 
13273
 
 
13274
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13275
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
13276
$as_echo "$ac_header_compiler" >&6; }
 
13277
 
 
13278
# Is the header present?
 
13279
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
13280
$as_echo_n "checking $ac_header presence... " >&6; }
 
13281
cat >conftest.$ac_ext <<_ACEOF
 
13282
/* confdefs.h.  */
 
13283
_ACEOF
 
13284
cat confdefs.h >>conftest.$ac_ext
 
13285
cat >>conftest.$ac_ext <<_ACEOF
 
13286
/* end confdefs.h.  */
 
13287
#include <$ac_header>
 
13288
_ACEOF
 
13289
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
13290
case "(($ac_try" in
 
13291
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13292
  *) ac_try_echo=$ac_try;;
 
13293
esac
 
13294
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13295
$as_echo "$ac_try_echo") >&5
 
13296
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
13297
  ac_status=$?
 
13298
  grep -v '^ *+' conftest.er1 >conftest.err
 
13299
  rm -f conftest.er1
 
13300
  cat conftest.err >&5
 
13301
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13302
  (exit $ac_status); } >/dev/null && {
 
13303
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
13304
         test ! -s conftest.err
 
13305
       }; then
 
13306
  ac_header_preproc=yes
 
13307
else
 
13308
  $as_echo "$as_me: failed program was:" >&5
 
13309
sed 's/^/| /' conftest.$ac_ext >&5
 
13310
 
 
13311
  ac_header_preproc=no
 
13312
fi
 
13313
 
 
13314
rm -f conftest.err conftest.$ac_ext
 
13315
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
13316
$as_echo "$ac_header_preproc" >&6; }
 
13317
 
 
13318
# So?  What about this header?
 
13319
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
13320
  yes:no: )
 
13321
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
13322
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
13323
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
13324
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
13325
    ac_header_preproc=yes
 
13326
    ;;
 
13327
  no:yes:* )
 
13328
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
13329
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
13330
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
13331
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
13332
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
13333
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
13334
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
13335
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
13336
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
13337
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
13338
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
13339
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
13340
    ( cat <<\_ASBOX
 
13341
## ----------------------------------------------------------------------- ##
 
13342
## Report this to https://bugzilla.gnome.org/enter_bug.cgi?product=gtk-vnc ##
 
13343
## ----------------------------------------------------------------------- ##
 
13344
_ASBOX
 
13345
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
13346
    ;;
 
13347
esac
 
13348
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13349
$as_echo_n "checking for $ac_header... " >&6; }
 
13350
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13351
  $as_echo_n "(cached) " >&6
 
13352
else
 
13353
  eval "$as_ac_Header=\$ac_header_preproc"
 
13354
fi
 
13355
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
13356
                 $as_echo "$as_val"'`
 
13357
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
13358
$as_echo "$ac_res" >&6; }
 
13359
 
 
13360
fi
 
13361
as_val=`eval 'as_val=${'$as_ac_Header'}
 
13362
                 $as_echo "$as_val"'`
 
13363
   if test "x$as_val" = x""yes; then
 
13364
  cat >>confdefs.h <<_ACEOF
 
13365
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
13366
_ACEOF
 
13367
 
 
13368
fi
 
13369
 
 
13370
done
 
13371
 
 
13372
      if test $ac_cv_header_ws2tcpip_h = yes; then
 
13373
        HAVE_WS2TCPIP_H=1
 
13374
      else
 
13375
        HAVE_WS2TCPIP_H=0
 
13376
      fi
 
13377
    fi
 
13378
 
 
13379
 
 
13380
  :
 
13381
 
 
13382
 
 
13383
 
 
13384
 
 
13385
 
 
13386
  if test $ac_cv_header_sys_socket_h != yes; then
 
13387
 
 
13388
for ac_header in winsock2.h
 
13389
do
 
13390
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
13391
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13392
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13393
$as_echo_n "checking for $ac_header... " >&6; }
 
13394
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13395
  $as_echo_n "(cached) " >&6
 
13396
fi
 
13397
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
13398
                 $as_echo "$as_val"'`
 
13399
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
13400
$as_echo "$ac_res" >&6; }
 
13401
else
 
13402
  # Is the header compilable?
 
13403
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
13404
$as_echo_n "checking $ac_header usability... " >&6; }
 
13405
cat >conftest.$ac_ext <<_ACEOF
 
13406
/* confdefs.h.  */
 
13407
_ACEOF
 
13408
cat confdefs.h >>conftest.$ac_ext
 
13409
cat >>conftest.$ac_ext <<_ACEOF
 
13410
/* end confdefs.h.  */
 
13411
$ac_includes_default
 
13412
#include <$ac_header>
 
13413
_ACEOF
 
13414
rm -f conftest.$ac_objext
 
13415
if { (ac_try="$ac_compile"
 
13416
case "(($ac_try" in
 
13417
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13418
  *) ac_try_echo=$ac_try;;
 
13419
esac
 
13420
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13421
$as_echo "$ac_try_echo") >&5
 
13422
  (eval "$ac_compile") 2>conftest.er1
 
13423
  ac_status=$?
 
13424
  grep -v '^ *+' conftest.er1 >conftest.err
 
13425
  rm -f conftest.er1
 
13426
  cat conftest.err >&5
 
13427
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13428
  (exit $ac_status); } && {
 
13429
         test -z "$ac_c_werror_flag" ||
 
13430
         test ! -s conftest.err
 
13431
       } && test -s conftest.$ac_objext; then
 
13432
  ac_header_compiler=yes
 
13433
else
 
13434
  $as_echo "$as_me: failed program was:" >&5
 
13435
sed 's/^/| /' conftest.$ac_ext >&5
 
13436
 
 
13437
        ac_header_compiler=no
 
13438
fi
 
13439
 
 
13440
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13441
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
13442
$as_echo "$ac_header_compiler" >&6; }
 
13443
 
 
13444
# Is the header present?
 
13445
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
13446
$as_echo_n "checking $ac_header presence... " >&6; }
 
13447
cat >conftest.$ac_ext <<_ACEOF
 
13448
/* confdefs.h.  */
 
13449
_ACEOF
 
13450
cat confdefs.h >>conftest.$ac_ext
 
13451
cat >>conftest.$ac_ext <<_ACEOF
 
13452
/* end confdefs.h.  */
 
13453
#include <$ac_header>
 
13454
_ACEOF
 
13455
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
13456
case "(($ac_try" in
 
13457
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13458
  *) ac_try_echo=$ac_try;;
 
13459
esac
 
13460
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13461
$as_echo "$ac_try_echo") >&5
 
13462
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
13463
  ac_status=$?
 
13464
  grep -v '^ *+' conftest.er1 >conftest.err
 
13465
  rm -f conftest.er1
 
13466
  cat conftest.err >&5
 
13467
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13468
  (exit $ac_status); } >/dev/null && {
 
13469
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
13470
         test ! -s conftest.err
 
13471
       }; then
 
13472
  ac_header_preproc=yes
 
13473
else
 
13474
  $as_echo "$as_me: failed program was:" >&5
 
13475
sed 's/^/| /' conftest.$ac_ext >&5
 
13476
 
 
13477
  ac_header_preproc=no
 
13478
fi
 
13479
 
 
13480
rm -f conftest.err conftest.$ac_ext
 
13481
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
13482
$as_echo "$ac_header_preproc" >&6; }
 
13483
 
 
13484
# So?  What about this header?
 
13485
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
13486
  yes:no: )
 
13487
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
13488
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
13489
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
13490
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
13491
    ac_header_preproc=yes
 
13492
    ;;
 
13493
  no:yes:* )
 
13494
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
13495
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
13496
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
13497
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
13498
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
13499
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
13500
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
13501
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
13502
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
13503
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
13504
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
13505
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
13506
    ( cat <<\_ASBOX
 
13507
## ----------------------------------------------------------------------- ##
 
13508
## Report this to https://bugzilla.gnome.org/enter_bug.cgi?product=gtk-vnc ##
 
13509
## ----------------------------------------------------------------------- ##
 
13510
_ASBOX
 
13511
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
13512
    ;;
 
13513
esac
 
13514
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13515
$as_echo_n "checking for $ac_header... " >&6; }
 
13516
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13517
  $as_echo_n "(cached) " >&6
 
13518
else
 
13519
  eval "$as_ac_Header=\$ac_header_preproc"
 
13520
fi
 
13521
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
13522
                 $as_echo "$as_val"'`
 
13523
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
13524
$as_echo "$ac_res" >&6; }
 
13525
 
 
13526
fi
 
13527
as_val=`eval 'as_val=${'$as_ac_Header'}
 
13528
                 $as_echo "$as_val"'`
 
13529
   if test "x$as_val" = x""yes; then
 
13530
  cat >>confdefs.h <<_ACEOF
 
13531
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
13532
_ACEOF
 
13533
 
 
13534
fi
 
13535
 
 
13536
done
 
13537
 
 
13538
  fi
 
13539
  if test "$ac_cv_header_winsock2_h" = yes; then
 
13540
    HAVE_WINSOCK2_H=1
 
13541
  else
 
13542
    HAVE_WINSOCK2_H=0
 
13543
  fi
 
13544
 
 
13545
 
 
13546
 
 
13547
 
 
13548
  fi
 
13549
 
 
13550
 
 
13551
 
 
13552
 
 
13553
 
 
13554
 
 
13555
 
 
13556
 
 
13557
 
 
13558
 
 
13559
  { $as_echo "$as_me:$LINENO: checking for complete errno.h" >&5
 
13560
$as_echo_n "checking for complete errno.h... " >&6; }
 
13561
if test "${gl_cv_header_errno_h_complete+set}" = set; then
 
13562
  $as_echo_n "(cached) " >&6
 
13563
else
 
13564
 
 
13565
    cat >conftest.$ac_ext <<_ACEOF
 
13566
/* confdefs.h.  */
 
13567
_ACEOF
 
13568
cat confdefs.h >>conftest.$ac_ext
 
13569
cat >>conftest.$ac_ext <<_ACEOF
 
13570
/* end confdefs.h.  */
 
13571
 
 
13572
#include <errno.h>
 
13573
#if !defined ENOMSG
 
13574
booboo
 
13575
#endif
 
13576
#if !defined EIDRM
 
13577
booboo
 
13578
#endif
 
13579
#if !defined ENOLINK
 
13580
booboo
 
13581
#endif
 
13582
#if !defined EPROTO
 
13583
booboo
 
13584
#endif
 
13585
#if !defined EMULTIHOP
 
13586
booboo
 
13587
#endif
 
13588
#if !defined EBADMSG
 
13589
booboo
 
13590
#endif
 
13591
#if !defined EOVERFLOW
 
13592
booboo
 
13593
#endif
 
13594
#if !defined ENOTSUP
 
13595
booboo
 
13596
#endif
 
13597
#if !defined ECANCELED
 
13598
booboo
 
13599
#endif
 
13600
 
 
13601
_ACEOF
 
13602
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
13603
  $EGREP "booboo" >/dev/null 2>&1; then
 
13604
  gl_cv_header_errno_h_complete=no
 
13605
else
 
13606
  gl_cv_header_errno_h_complete=yes
 
13607
fi
 
13608
rm -f conftest*
 
13609
 
 
13610
 
 
13611
fi
 
13612
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_complete" >&5
 
13613
$as_echo "$gl_cv_header_errno_h_complete" >&6; }
 
13614
  if test $gl_cv_header_errno_h_complete = yes; then
 
13615
    ERRNO_H=''
 
13616
  else
 
13617
 
 
13618
 
 
13619
 
 
13620
  :
 
13621
 
 
13622
 
 
13623
 
 
13624
 
 
13625
 
 
13626
 
 
13627
 
 
13628
     if test $gl_cv_have_include_next = yes; then
 
13629
       gl_cv_next_errno_h='<'errno.h'>'
 
13630
     else
 
13631
       { $as_echo "$as_me:$LINENO: checking absolute name of <errno.h>" >&5
 
13632
$as_echo_n "checking absolute name of <errno.h>... " >&6; }
 
13633
if test "${gl_cv_next_errno_h+set}" = set; then
 
13634
  $as_echo_n "(cached) " >&6
 
13635
else
 
13636
 
 
13637
          if test $ac_cv_header_errno_h = yes; then
 
13638
            cat >conftest.$ac_ext <<_ACEOF
 
13639
/* confdefs.h.  */
 
13640
_ACEOF
 
13641
cat confdefs.h >>conftest.$ac_ext
 
13642
cat >>conftest.$ac_ext <<_ACEOF
 
13643
/* end confdefs.h.  */
 
13644
#include <errno.h>
 
13645
 
 
13646
_ACEOF
 
13647
                                    gl_cv_next_errno_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
13648
               sed -n '\#/errno.h#{
 
13649
                 s#.*"\(.*/errno.h\)".*#\1#
 
13650
                 s#^/[^/]#//&#
 
13651
                 p
 
13652
                 q
 
13653
               }'`'"'
 
13654
          else
 
13655
            gl_cv_next_errno_h='<'errno.h'>'
 
13656
          fi
 
13657
 
 
13658
fi
 
13659
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_errno_h" >&5
 
13660
$as_echo "$gl_cv_next_errno_h" >&6; }
 
13661
     fi
 
13662
     NEXT_ERRNO_H=$gl_cv_next_errno_h
 
13663
 
 
13664
 
 
13665
 
 
13666
    ERRNO_H='errno.h'
 
13667
  fi
 
13668
 
 
13669
 
 
13670
  if test -n "$ERRNO_H"; then
 
13671
    { $as_echo "$as_me:$LINENO: checking for EMULTIHOP value" >&5
 
13672
$as_echo_n "checking for EMULTIHOP value... " >&6; }
 
13673
if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then
 
13674
  $as_echo_n "(cached) " >&6
 
13675
else
 
13676
 
 
13677
      cat >conftest.$ac_ext <<_ACEOF
 
13678
/* confdefs.h.  */
 
13679
_ACEOF
 
13680
cat confdefs.h >>conftest.$ac_ext
 
13681
cat >>conftest.$ac_ext <<_ACEOF
 
13682
/* end confdefs.h.  */
 
13683
 
 
13684
#include <errno.h>
 
13685
#ifdef EMULTIHOP
 
13686
yes
 
13687
#endif
 
13688
 
 
13689
_ACEOF
 
13690
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
13691
  $EGREP "yes" >/dev/null 2>&1; then
 
13692
  gl_cv_header_errno_h_EMULTIHOP=yes
 
13693
else
 
13694
  gl_cv_header_errno_h_EMULTIHOP=no
 
13695
fi
 
13696
rm -f conftest*
 
13697
 
 
13698
      if test $gl_cv_header_errno_h_EMULTIHOP = no; then
 
13699
        cat >conftest.$ac_ext <<_ACEOF
 
13700
/* confdefs.h.  */
 
13701
_ACEOF
 
13702
cat confdefs.h >>conftest.$ac_ext
 
13703
cat >>conftest.$ac_ext <<_ACEOF
 
13704
/* end confdefs.h.  */
 
13705
 
 
13706
#define _XOPEN_SOURCE_EXTENDED 1
 
13707
#include <errno.h>
 
13708
#ifdef EMULTIHOP
 
13709
yes
 
13710
#endif
 
13711
 
 
13712
_ACEOF
 
13713
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
13714
  $EGREP "yes" >/dev/null 2>&1; then
 
13715
  gl_cv_header_errno_h_EMULTIHOP=hidden
 
13716
fi
 
13717
rm -f conftest*
 
13718
 
 
13719
        if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
 
13720
                              if test "$cross_compiling" = yes; then
 
13721
  # Depending upon the size, compute the lo and hi bounds.
 
13722
cat >conftest.$ac_ext <<_ACEOF
 
13723
/* confdefs.h.  */
 
13724
_ACEOF
 
13725
cat confdefs.h >>conftest.$ac_ext
 
13726
cat >>conftest.$ac_ext <<_ACEOF
 
13727
/* end confdefs.h.  */
 
13728
 
 
13729
#define _XOPEN_SOURCE_EXTENDED 1
 
13730
#include <errno.h>
 
13731
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
13732
#include <stdio.h>
 
13733
#include <stdlib.h>
 
13734
 
 
13735
int
 
13736
main ()
 
13737
{
 
13738
static int test_array [1 - 2 * !((EMULTIHOP) >= 0)];
 
13739
test_array [0] = 0
 
13740
 
 
13741
  ;
 
13742
  return 0;
 
13743
}
 
13744
_ACEOF
 
13745
rm -f conftest.$ac_objext
 
13746
if { (ac_try="$ac_compile"
 
13747
case "(($ac_try" in
 
13748
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13749
  *) ac_try_echo=$ac_try;;
 
13750
esac
 
13751
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13752
$as_echo "$ac_try_echo") >&5
 
13753
  (eval "$ac_compile") 2>conftest.er1
 
13754
  ac_status=$?
 
13755
  grep -v '^ *+' conftest.er1 >conftest.err
 
13756
  rm -f conftest.er1
 
13757
  cat conftest.err >&5
 
13758
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13759
  (exit $ac_status); } && {
 
13760
         test -z "$ac_c_werror_flag" ||
 
13761
         test ! -s conftest.err
 
13762
       } && test -s conftest.$ac_objext; then
 
13763
  ac_lo=0 ac_mid=0
 
13764
  while :; do
 
13765
    cat >conftest.$ac_ext <<_ACEOF
 
13766
/* confdefs.h.  */
 
13767
_ACEOF
 
13768
cat confdefs.h >>conftest.$ac_ext
 
13769
cat >>conftest.$ac_ext <<_ACEOF
 
13770
/* end confdefs.h.  */
 
13771
 
 
13772
#define _XOPEN_SOURCE_EXTENDED 1
 
13773
#include <errno.h>
 
13774
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
13775
#include <stdio.h>
 
13776
#include <stdlib.h>
 
13777
 
 
13778
int
 
13779
main ()
 
13780
{
 
13781
static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
 
13782
test_array [0] = 0
 
13783
 
 
13784
  ;
 
13785
  return 0;
 
13786
}
 
13787
_ACEOF
 
13788
rm -f conftest.$ac_objext
 
13789
if { (ac_try="$ac_compile"
 
13790
case "(($ac_try" in
 
13791
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13792
  *) ac_try_echo=$ac_try;;
 
13793
esac
 
13794
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13795
$as_echo "$ac_try_echo") >&5
 
13796
  (eval "$ac_compile") 2>conftest.er1
 
13797
  ac_status=$?
 
13798
  grep -v '^ *+' conftest.er1 >conftest.err
 
13799
  rm -f conftest.er1
 
13800
  cat conftest.err >&5
 
13801
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13802
  (exit $ac_status); } && {
 
13803
         test -z "$ac_c_werror_flag" ||
 
13804
         test ! -s conftest.err
 
13805
       } && test -s conftest.$ac_objext; then
 
13806
  ac_hi=$ac_mid; break
 
13807
else
 
13808
  $as_echo "$as_me: failed program was:" >&5
 
13809
sed 's/^/| /' conftest.$ac_ext >&5
 
13810
 
 
13811
        ac_lo=`expr $ac_mid + 1`
 
13812
                        if test $ac_lo -le $ac_mid; then
 
13813
                          ac_lo= ac_hi=
 
13814
                          break
 
13815
                        fi
 
13816
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
13817
fi
 
13818
 
 
13819
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13820
  done
 
13821
else
 
13822
  $as_echo "$as_me: failed program was:" >&5
 
13823
sed 's/^/| /' conftest.$ac_ext >&5
 
13824
 
 
13825
        cat >conftest.$ac_ext <<_ACEOF
 
13826
/* confdefs.h.  */
 
13827
_ACEOF
 
13828
cat confdefs.h >>conftest.$ac_ext
 
13829
cat >>conftest.$ac_ext <<_ACEOF
 
13830
/* end confdefs.h.  */
 
13831
 
 
13832
#define _XOPEN_SOURCE_EXTENDED 1
 
13833
#include <errno.h>
 
13834
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
13835
#include <stdio.h>
 
13836
#include <stdlib.h>
 
13837
 
 
13838
int
 
13839
main ()
 
13840
{
 
13841
static int test_array [1 - 2 * !((EMULTIHOP) < 0)];
 
13842
test_array [0] = 0
 
13843
 
 
13844
  ;
 
13845
  return 0;
 
13846
}
 
13847
_ACEOF
 
13848
rm -f conftest.$ac_objext
 
13849
if { (ac_try="$ac_compile"
 
13850
case "(($ac_try" in
 
13851
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13852
  *) ac_try_echo=$ac_try;;
 
13853
esac
 
13854
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13855
$as_echo "$ac_try_echo") >&5
 
13856
  (eval "$ac_compile") 2>conftest.er1
 
13857
  ac_status=$?
 
13858
  grep -v '^ *+' conftest.er1 >conftest.err
 
13859
  rm -f conftest.er1
 
13860
  cat conftest.err >&5
 
13861
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13862
  (exit $ac_status); } && {
 
13863
         test -z "$ac_c_werror_flag" ||
 
13864
         test ! -s conftest.err
 
13865
       } && test -s conftest.$ac_objext; then
 
13866
  ac_hi=-1 ac_mid=-1
 
13867
  while :; do
 
13868
    cat >conftest.$ac_ext <<_ACEOF
 
13869
/* confdefs.h.  */
 
13870
_ACEOF
 
13871
cat confdefs.h >>conftest.$ac_ext
 
13872
cat >>conftest.$ac_ext <<_ACEOF
 
13873
/* end confdefs.h.  */
 
13874
 
 
13875
#define _XOPEN_SOURCE_EXTENDED 1
 
13876
#include <errno.h>
 
13877
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
13878
#include <stdio.h>
 
13879
#include <stdlib.h>
 
13880
 
 
13881
int
 
13882
main ()
 
13883
{
 
13884
static int test_array [1 - 2 * !((EMULTIHOP) >= $ac_mid)];
 
13885
test_array [0] = 0
 
13886
 
 
13887
  ;
 
13888
  return 0;
 
13889
}
 
13890
_ACEOF
 
13891
rm -f conftest.$ac_objext
 
13892
if { (ac_try="$ac_compile"
 
13893
case "(($ac_try" in
 
13894
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13895
  *) ac_try_echo=$ac_try;;
 
13896
esac
 
13897
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13898
$as_echo "$ac_try_echo") >&5
 
13899
  (eval "$ac_compile") 2>conftest.er1
 
13900
  ac_status=$?
 
13901
  grep -v '^ *+' conftest.er1 >conftest.err
 
13902
  rm -f conftest.er1
 
13903
  cat conftest.err >&5
 
13904
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13905
  (exit $ac_status); } && {
 
13906
         test -z "$ac_c_werror_flag" ||
 
13907
         test ! -s conftest.err
 
13908
       } && test -s conftest.$ac_objext; then
 
13909
  ac_lo=$ac_mid; break
 
13910
else
 
13911
  $as_echo "$as_me: failed program was:" >&5
 
13912
sed 's/^/| /' conftest.$ac_ext >&5
 
13913
 
 
13914
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
13915
                        if test $ac_mid -le $ac_hi; then
 
13916
                          ac_lo= ac_hi=
 
13917
                          break
 
13918
                        fi
 
13919
                        ac_mid=`expr 2 '*' $ac_mid`
 
13920
fi
 
13921
 
 
13922
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13923
  done
 
13924
else
 
13925
  $as_echo "$as_me: failed program was:" >&5
 
13926
sed 's/^/| /' conftest.$ac_ext >&5
 
13927
 
 
13928
        ac_lo= ac_hi=
 
13929
fi
 
13930
 
 
13931
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13932
fi
 
13933
 
 
13934
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13935
# Binary search between lo and hi bounds.
 
13936
while test "x$ac_lo" != "x$ac_hi"; do
 
13937
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
13938
  cat >conftest.$ac_ext <<_ACEOF
 
13939
/* confdefs.h.  */
 
13940
_ACEOF
 
13941
cat confdefs.h >>conftest.$ac_ext
 
13942
cat >>conftest.$ac_ext <<_ACEOF
 
13943
/* end confdefs.h.  */
 
13944
 
 
13945
#define _XOPEN_SOURCE_EXTENDED 1
 
13946
#include <errno.h>
 
13947
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
13948
#include <stdio.h>
 
13949
#include <stdlib.h>
 
13950
 
 
13951
int
 
13952
main ()
 
13953
{
 
13954
static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
 
13955
test_array [0] = 0
 
13956
 
 
13957
  ;
 
13958
  return 0;
 
13959
}
 
13960
_ACEOF
 
13961
rm -f conftest.$ac_objext
 
13962
if { (ac_try="$ac_compile"
 
13963
case "(($ac_try" in
 
13964
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13965
  *) ac_try_echo=$ac_try;;
 
13966
esac
 
13967
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13968
$as_echo "$ac_try_echo") >&5
 
13969
  (eval "$ac_compile") 2>conftest.er1
 
13970
  ac_status=$?
 
13971
  grep -v '^ *+' conftest.er1 >conftest.err
 
13972
  rm -f conftest.er1
 
13973
  cat conftest.err >&5
 
13974
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13975
  (exit $ac_status); } && {
 
13976
         test -z "$ac_c_werror_flag" ||
 
13977
         test ! -s conftest.err
 
13978
       } && test -s conftest.$ac_objext; then
 
13979
  ac_hi=$ac_mid
 
13980
else
 
13981
  $as_echo "$as_me: failed program was:" >&5
 
13982
sed 's/^/| /' conftest.$ac_ext >&5
 
13983
 
 
13984
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
13985
fi
 
13986
 
 
13987
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13988
done
 
13989
case $ac_lo in
 
13990
?*) gl_cv_header_errno_h_EMULTIHOP=$ac_lo;;
 
13991
'')  ;;
 
13992
esac
 
13993
else
 
13994
  cat >conftest.$ac_ext <<_ACEOF
 
13995
/* confdefs.h.  */
 
13996
_ACEOF
 
13997
cat confdefs.h >>conftest.$ac_ext
 
13998
cat >>conftest.$ac_ext <<_ACEOF
 
13999
/* end confdefs.h.  */
 
14000
 
 
14001
#define _XOPEN_SOURCE_EXTENDED 1
 
14002
#include <errno.h>
 
14003
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
14004
#include <stdio.h>
 
14005
#include <stdlib.h>
 
14006
 
 
14007
static long int longval () { return EMULTIHOP; }
 
14008
static unsigned long int ulongval () { return EMULTIHOP; }
 
14009
#include <stdio.h>
 
14010
#include <stdlib.h>
 
14011
int
 
14012
main ()
 
14013
{
 
14014
 
 
14015
  FILE *f = fopen ("conftest.val", "w");
 
14016
  if (! f)
 
14017
    return 1;
 
14018
  if ((EMULTIHOP) < 0)
 
14019
    {
 
14020
      long int i = longval ();
 
14021
      if (i != (EMULTIHOP))
 
14022
        return 1;
 
14023
      fprintf (f, "%ld", i);
 
14024
    }
 
14025
  else
 
14026
    {
 
14027
      unsigned long int i = ulongval ();
 
14028
      if (i != (EMULTIHOP))
 
14029
        return 1;
 
14030
      fprintf (f, "%lu", i);
 
14031
    }
 
14032
  /* Do not output a trailing newline, as this causes \r\n confusion
 
14033
     on some platforms.  */
 
14034
  return ferror (f) || fclose (f) != 0;
 
14035
 
 
14036
  ;
 
14037
  return 0;
 
14038
}
 
14039
_ACEOF
 
14040
rm -f conftest$ac_exeext
 
14041
if { (ac_try="$ac_link"
 
14042
case "(($ac_try" in
 
14043
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14044
  *) ac_try_echo=$ac_try;;
 
14045
esac
 
14046
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14047
$as_echo "$ac_try_echo") >&5
 
14048
  (eval "$ac_link") 2>&5
 
14049
  ac_status=$?
 
14050
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14051
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
14052
  { (case "(($ac_try" in
 
14053
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14054
  *) ac_try_echo=$ac_try;;
 
14055
esac
 
14056
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14057
$as_echo "$ac_try_echo") >&5
 
14058
  (eval "$ac_try") 2>&5
 
14059
  ac_status=$?
 
14060
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14061
  (exit $ac_status); }; }; then
 
14062
  gl_cv_header_errno_h_EMULTIHOP=`cat conftest.val`
 
14063
else
 
14064
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
14065
$as_echo "$as_me: failed program was:" >&5
 
14066
sed 's/^/| /' conftest.$ac_ext >&5
 
14067
 
 
14068
fi
 
14069
rm -rf conftest.dSYM
 
14070
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
14071
fi
 
14072
rm -f conftest.val
 
14073
        fi
 
14074
      fi
 
14075
 
 
14076
fi
 
14077
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
 
14078
$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
 
14079
    case $gl_cv_header_errno_h_EMULTIHOP in
 
14080
      yes | no)
 
14081
        EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
 
14082
        ;;
 
14083
      *)
 
14084
        EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
 
14085
        ;;
 
14086
    esac
 
14087
 
 
14088
 
 
14089
  fi
 
14090
 
 
14091
 
 
14092
  if test -n "$ERRNO_H"; then
 
14093
    { $as_echo "$as_me:$LINENO: checking for ENOLINK value" >&5
 
14094
$as_echo_n "checking for ENOLINK value... " >&6; }
 
14095
if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then
 
14096
  $as_echo_n "(cached) " >&6
 
14097
else
 
14098
 
 
14099
      cat >conftest.$ac_ext <<_ACEOF
 
14100
/* confdefs.h.  */
 
14101
_ACEOF
 
14102
cat confdefs.h >>conftest.$ac_ext
 
14103
cat >>conftest.$ac_ext <<_ACEOF
 
14104
/* end confdefs.h.  */
 
14105
 
 
14106
#include <errno.h>
 
14107
#ifdef ENOLINK
 
14108
yes
 
14109
#endif
 
14110
 
 
14111
_ACEOF
 
14112
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
14113
  $EGREP "yes" >/dev/null 2>&1; then
 
14114
  gl_cv_header_errno_h_ENOLINK=yes
 
14115
else
 
14116
  gl_cv_header_errno_h_ENOLINK=no
 
14117
fi
 
14118
rm -f conftest*
 
14119
 
 
14120
      if test $gl_cv_header_errno_h_ENOLINK = no; then
 
14121
        cat >conftest.$ac_ext <<_ACEOF
 
14122
/* confdefs.h.  */
 
14123
_ACEOF
 
14124
cat confdefs.h >>conftest.$ac_ext
 
14125
cat >>conftest.$ac_ext <<_ACEOF
 
14126
/* end confdefs.h.  */
 
14127
 
 
14128
#define _XOPEN_SOURCE_EXTENDED 1
 
14129
#include <errno.h>
 
14130
#ifdef ENOLINK
 
14131
yes
 
14132
#endif
 
14133
 
 
14134
_ACEOF
 
14135
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
14136
  $EGREP "yes" >/dev/null 2>&1; then
 
14137
  gl_cv_header_errno_h_ENOLINK=hidden
 
14138
fi
 
14139
rm -f conftest*
 
14140
 
 
14141
        if test $gl_cv_header_errno_h_ENOLINK = hidden; then
 
14142
                              if test "$cross_compiling" = yes; then
 
14143
  # Depending upon the size, compute the lo and hi bounds.
 
14144
cat >conftest.$ac_ext <<_ACEOF
 
14145
/* confdefs.h.  */
 
14146
_ACEOF
 
14147
cat confdefs.h >>conftest.$ac_ext
 
14148
cat >>conftest.$ac_ext <<_ACEOF
 
14149
/* end confdefs.h.  */
 
14150
 
 
14151
#define _XOPEN_SOURCE_EXTENDED 1
 
14152
#include <errno.h>
 
14153
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
14154
#include <stdio.h>
 
14155
#include <stdlib.h>
 
14156
 
 
14157
int
 
14158
main ()
 
14159
{
 
14160
static int test_array [1 - 2 * !((ENOLINK) >= 0)];
 
14161
test_array [0] = 0
 
14162
 
 
14163
  ;
 
14164
  return 0;
 
14165
}
 
14166
_ACEOF
 
14167
rm -f conftest.$ac_objext
 
14168
if { (ac_try="$ac_compile"
 
14169
case "(($ac_try" in
 
14170
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14171
  *) ac_try_echo=$ac_try;;
 
14172
esac
 
14173
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14174
$as_echo "$ac_try_echo") >&5
 
14175
  (eval "$ac_compile") 2>conftest.er1
 
14176
  ac_status=$?
 
14177
  grep -v '^ *+' conftest.er1 >conftest.err
 
14178
  rm -f conftest.er1
 
14179
  cat conftest.err >&5
 
14180
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14181
  (exit $ac_status); } && {
 
14182
         test -z "$ac_c_werror_flag" ||
 
14183
         test ! -s conftest.err
 
14184
       } && test -s conftest.$ac_objext; then
 
14185
  ac_lo=0 ac_mid=0
 
14186
  while :; do
 
14187
    cat >conftest.$ac_ext <<_ACEOF
 
14188
/* confdefs.h.  */
 
14189
_ACEOF
 
14190
cat confdefs.h >>conftest.$ac_ext
 
14191
cat >>conftest.$ac_ext <<_ACEOF
 
14192
/* end confdefs.h.  */
 
14193
 
 
14194
#define _XOPEN_SOURCE_EXTENDED 1
 
14195
#include <errno.h>
 
14196
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
14197
#include <stdio.h>
 
14198
#include <stdlib.h>
 
14199
 
 
14200
int
 
14201
main ()
 
14202
{
 
14203
static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
 
14204
test_array [0] = 0
 
14205
 
 
14206
  ;
 
14207
  return 0;
 
14208
}
 
14209
_ACEOF
 
14210
rm -f conftest.$ac_objext
 
14211
if { (ac_try="$ac_compile"
 
14212
case "(($ac_try" in
 
14213
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14214
  *) ac_try_echo=$ac_try;;
 
14215
esac
 
14216
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14217
$as_echo "$ac_try_echo") >&5
 
14218
  (eval "$ac_compile") 2>conftest.er1
 
14219
  ac_status=$?
 
14220
  grep -v '^ *+' conftest.er1 >conftest.err
 
14221
  rm -f conftest.er1
 
14222
  cat conftest.err >&5
 
14223
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14224
  (exit $ac_status); } && {
 
14225
         test -z "$ac_c_werror_flag" ||
 
14226
         test ! -s conftest.err
 
14227
       } && test -s conftest.$ac_objext; then
 
14228
  ac_hi=$ac_mid; break
 
14229
else
 
14230
  $as_echo "$as_me: failed program was:" >&5
 
14231
sed 's/^/| /' conftest.$ac_ext >&5
 
14232
 
 
14233
        ac_lo=`expr $ac_mid + 1`
 
14234
                        if test $ac_lo -le $ac_mid; then
 
14235
                          ac_lo= ac_hi=
 
14236
                          break
 
14237
                        fi
 
14238
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
14239
fi
 
14240
 
 
14241
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14242
  done
 
14243
else
 
14244
  $as_echo "$as_me: failed program was:" >&5
 
14245
sed 's/^/| /' conftest.$ac_ext >&5
 
14246
 
 
14247
        cat >conftest.$ac_ext <<_ACEOF
 
14248
/* confdefs.h.  */
 
14249
_ACEOF
 
14250
cat confdefs.h >>conftest.$ac_ext
 
14251
cat >>conftest.$ac_ext <<_ACEOF
 
14252
/* end confdefs.h.  */
 
14253
 
 
14254
#define _XOPEN_SOURCE_EXTENDED 1
 
14255
#include <errno.h>
 
14256
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
14257
#include <stdio.h>
 
14258
#include <stdlib.h>
 
14259
 
 
14260
int
 
14261
main ()
 
14262
{
 
14263
static int test_array [1 - 2 * !((ENOLINK) < 0)];
 
14264
test_array [0] = 0
 
14265
 
 
14266
  ;
 
14267
  return 0;
 
14268
}
 
14269
_ACEOF
 
14270
rm -f conftest.$ac_objext
 
14271
if { (ac_try="$ac_compile"
 
14272
case "(($ac_try" in
 
14273
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14274
  *) ac_try_echo=$ac_try;;
 
14275
esac
 
14276
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14277
$as_echo "$ac_try_echo") >&5
 
14278
  (eval "$ac_compile") 2>conftest.er1
 
14279
  ac_status=$?
 
14280
  grep -v '^ *+' conftest.er1 >conftest.err
 
14281
  rm -f conftest.er1
 
14282
  cat conftest.err >&5
 
14283
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14284
  (exit $ac_status); } && {
 
14285
         test -z "$ac_c_werror_flag" ||
 
14286
         test ! -s conftest.err
 
14287
       } && test -s conftest.$ac_objext; then
 
14288
  ac_hi=-1 ac_mid=-1
 
14289
  while :; do
 
14290
    cat >conftest.$ac_ext <<_ACEOF
 
14291
/* confdefs.h.  */
 
14292
_ACEOF
 
14293
cat confdefs.h >>conftest.$ac_ext
 
14294
cat >>conftest.$ac_ext <<_ACEOF
 
14295
/* end confdefs.h.  */
 
14296
 
 
14297
#define _XOPEN_SOURCE_EXTENDED 1
 
14298
#include <errno.h>
 
14299
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
14300
#include <stdio.h>
 
14301
#include <stdlib.h>
 
14302
 
 
14303
int
 
14304
main ()
 
14305
{
 
14306
static int test_array [1 - 2 * !((ENOLINK) >= $ac_mid)];
 
14307
test_array [0] = 0
 
14308
 
 
14309
  ;
 
14310
  return 0;
 
14311
}
 
14312
_ACEOF
 
14313
rm -f conftest.$ac_objext
 
14314
if { (ac_try="$ac_compile"
 
14315
case "(($ac_try" in
 
14316
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14317
  *) ac_try_echo=$ac_try;;
 
14318
esac
 
14319
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14320
$as_echo "$ac_try_echo") >&5
 
14321
  (eval "$ac_compile") 2>conftest.er1
 
14322
  ac_status=$?
 
14323
  grep -v '^ *+' conftest.er1 >conftest.err
 
14324
  rm -f conftest.er1
 
14325
  cat conftest.err >&5
 
14326
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14327
  (exit $ac_status); } && {
 
14328
         test -z "$ac_c_werror_flag" ||
 
14329
         test ! -s conftest.err
 
14330
       } && test -s conftest.$ac_objext; then
 
14331
  ac_lo=$ac_mid; break
 
14332
else
 
14333
  $as_echo "$as_me: failed program was:" >&5
 
14334
sed 's/^/| /' conftest.$ac_ext >&5
 
14335
 
 
14336
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
14337
                        if test $ac_mid -le $ac_hi; then
 
14338
                          ac_lo= ac_hi=
 
14339
                          break
 
14340
                        fi
 
14341
                        ac_mid=`expr 2 '*' $ac_mid`
 
14342
fi
 
14343
 
 
14344
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14345
  done
 
14346
else
 
14347
  $as_echo "$as_me: failed program was:" >&5
 
14348
sed 's/^/| /' conftest.$ac_ext >&5
 
14349
 
 
14350
        ac_lo= ac_hi=
 
14351
fi
 
14352
 
 
14353
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14354
fi
 
14355
 
 
14356
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14357
# Binary search between lo and hi bounds.
 
14358
while test "x$ac_lo" != "x$ac_hi"; do
 
14359
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
14360
  cat >conftest.$ac_ext <<_ACEOF
 
14361
/* confdefs.h.  */
 
14362
_ACEOF
 
14363
cat confdefs.h >>conftest.$ac_ext
 
14364
cat >>conftest.$ac_ext <<_ACEOF
 
14365
/* end confdefs.h.  */
 
14366
 
 
14367
#define _XOPEN_SOURCE_EXTENDED 1
 
14368
#include <errno.h>
 
14369
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
14370
#include <stdio.h>
 
14371
#include <stdlib.h>
 
14372
 
 
14373
int
 
14374
main ()
 
14375
{
 
14376
static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
 
14377
test_array [0] = 0
 
14378
 
 
14379
  ;
 
14380
  return 0;
 
14381
}
 
14382
_ACEOF
 
14383
rm -f conftest.$ac_objext
 
14384
if { (ac_try="$ac_compile"
 
14385
case "(($ac_try" in
 
14386
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14387
  *) ac_try_echo=$ac_try;;
 
14388
esac
 
14389
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14390
$as_echo "$ac_try_echo") >&5
 
14391
  (eval "$ac_compile") 2>conftest.er1
 
14392
  ac_status=$?
 
14393
  grep -v '^ *+' conftest.er1 >conftest.err
 
14394
  rm -f conftest.er1
 
14395
  cat conftest.err >&5
 
14396
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14397
  (exit $ac_status); } && {
 
14398
         test -z "$ac_c_werror_flag" ||
 
14399
         test ! -s conftest.err
 
14400
       } && test -s conftest.$ac_objext; then
 
14401
  ac_hi=$ac_mid
 
14402
else
 
14403
  $as_echo "$as_me: failed program was:" >&5
 
14404
sed 's/^/| /' conftest.$ac_ext >&5
 
14405
 
 
14406
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
14407
fi
 
14408
 
 
14409
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14410
done
 
14411
case $ac_lo in
 
14412
?*) gl_cv_header_errno_h_ENOLINK=$ac_lo;;
 
14413
'')  ;;
 
14414
esac
 
14415
else
 
14416
  cat >conftest.$ac_ext <<_ACEOF
 
14417
/* confdefs.h.  */
 
14418
_ACEOF
 
14419
cat confdefs.h >>conftest.$ac_ext
 
14420
cat >>conftest.$ac_ext <<_ACEOF
 
14421
/* end confdefs.h.  */
 
14422
 
 
14423
#define _XOPEN_SOURCE_EXTENDED 1
 
14424
#include <errno.h>
 
14425
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
14426
#include <stdio.h>
 
14427
#include <stdlib.h>
 
14428
 
 
14429
static long int longval () { return ENOLINK; }
 
14430
static unsigned long int ulongval () { return ENOLINK; }
 
14431
#include <stdio.h>
 
14432
#include <stdlib.h>
 
14433
int
 
14434
main ()
 
14435
{
 
14436
 
 
14437
  FILE *f = fopen ("conftest.val", "w");
 
14438
  if (! f)
 
14439
    return 1;
 
14440
  if ((ENOLINK) < 0)
 
14441
    {
 
14442
      long int i = longval ();
 
14443
      if (i != (ENOLINK))
 
14444
        return 1;
 
14445
      fprintf (f, "%ld", i);
 
14446
    }
 
14447
  else
 
14448
    {
 
14449
      unsigned long int i = ulongval ();
 
14450
      if (i != (ENOLINK))
 
14451
        return 1;
 
14452
      fprintf (f, "%lu", i);
 
14453
    }
 
14454
  /* Do not output a trailing newline, as this causes \r\n confusion
 
14455
     on some platforms.  */
 
14456
  return ferror (f) || fclose (f) != 0;
 
14457
 
 
14458
  ;
 
14459
  return 0;
 
14460
}
 
14461
_ACEOF
 
14462
rm -f conftest$ac_exeext
 
14463
if { (ac_try="$ac_link"
 
14464
case "(($ac_try" in
 
14465
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14466
  *) ac_try_echo=$ac_try;;
 
14467
esac
 
14468
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14469
$as_echo "$ac_try_echo") >&5
 
14470
  (eval "$ac_link") 2>&5
 
14471
  ac_status=$?
 
14472
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14473
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
14474
  { (case "(($ac_try" in
 
14475
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14476
  *) ac_try_echo=$ac_try;;
 
14477
esac
 
14478
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14479
$as_echo "$ac_try_echo") >&5
 
14480
  (eval "$ac_try") 2>&5
 
14481
  ac_status=$?
 
14482
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14483
  (exit $ac_status); }; }; then
 
14484
  gl_cv_header_errno_h_ENOLINK=`cat conftest.val`
 
14485
else
 
14486
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
14487
$as_echo "$as_me: failed program was:" >&5
 
14488
sed 's/^/| /' conftest.$ac_ext >&5
 
14489
 
 
14490
fi
 
14491
rm -rf conftest.dSYM
 
14492
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
14493
fi
 
14494
rm -f conftest.val
 
14495
        fi
 
14496
      fi
 
14497
 
 
14498
fi
 
14499
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_ENOLINK" >&5
 
14500
$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
 
14501
    case $gl_cv_header_errno_h_ENOLINK in
 
14502
      yes | no)
 
14503
        ENOLINK_HIDDEN=0; ENOLINK_VALUE=
 
14504
        ;;
 
14505
      *)
 
14506
        ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
 
14507
        ;;
 
14508
    esac
 
14509
 
 
14510
 
 
14511
  fi
 
14512
 
 
14513
 
 
14514
  if test -n "$ERRNO_H"; then
 
14515
    { $as_echo "$as_me:$LINENO: checking for EOVERFLOW value" >&5
 
14516
$as_echo_n "checking for EOVERFLOW value... " >&6; }
 
14517
if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then
 
14518
  $as_echo_n "(cached) " >&6
 
14519
else
 
14520
 
 
14521
      cat >conftest.$ac_ext <<_ACEOF
 
14522
/* confdefs.h.  */
 
14523
_ACEOF
 
14524
cat confdefs.h >>conftest.$ac_ext
 
14525
cat >>conftest.$ac_ext <<_ACEOF
 
14526
/* end confdefs.h.  */
 
14527
 
 
14528
#include <errno.h>
 
14529
#ifdef EOVERFLOW
 
14530
yes
 
14531
#endif
 
14532
 
 
14533
_ACEOF
 
14534
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
14535
  $EGREP "yes" >/dev/null 2>&1; then
 
14536
  gl_cv_header_errno_h_EOVERFLOW=yes
 
14537
else
 
14538
  gl_cv_header_errno_h_EOVERFLOW=no
 
14539
fi
 
14540
rm -f conftest*
 
14541
 
 
14542
      if test $gl_cv_header_errno_h_EOVERFLOW = no; then
 
14543
        cat >conftest.$ac_ext <<_ACEOF
 
14544
/* confdefs.h.  */
 
14545
_ACEOF
 
14546
cat confdefs.h >>conftest.$ac_ext
 
14547
cat >>conftest.$ac_ext <<_ACEOF
 
14548
/* end confdefs.h.  */
 
14549
 
 
14550
#define _XOPEN_SOURCE_EXTENDED 1
 
14551
#include <errno.h>
 
14552
#ifdef EOVERFLOW
 
14553
yes
 
14554
#endif
 
14555
 
 
14556
_ACEOF
 
14557
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
14558
  $EGREP "yes" >/dev/null 2>&1; then
 
14559
  gl_cv_header_errno_h_EOVERFLOW=hidden
 
14560
fi
 
14561
rm -f conftest*
 
14562
 
 
14563
        if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
 
14564
                              if test "$cross_compiling" = yes; then
 
14565
  # Depending upon the size, compute the lo and hi bounds.
 
14566
cat >conftest.$ac_ext <<_ACEOF
 
14567
/* confdefs.h.  */
 
14568
_ACEOF
 
14569
cat confdefs.h >>conftest.$ac_ext
 
14570
cat >>conftest.$ac_ext <<_ACEOF
 
14571
/* end confdefs.h.  */
 
14572
 
 
14573
#define _XOPEN_SOURCE_EXTENDED 1
 
14574
#include <errno.h>
 
14575
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
14576
#include <stdio.h>
 
14577
#include <stdlib.h>
 
14578
 
 
14579
int
 
14580
main ()
 
14581
{
 
14582
static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
 
14583
test_array [0] = 0
 
14584
 
 
14585
  ;
 
14586
  return 0;
 
14587
}
 
14588
_ACEOF
 
14589
rm -f conftest.$ac_objext
 
14590
if { (ac_try="$ac_compile"
 
14591
case "(($ac_try" in
 
14592
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14593
  *) ac_try_echo=$ac_try;;
 
14594
esac
 
14595
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14596
$as_echo "$ac_try_echo") >&5
 
14597
  (eval "$ac_compile") 2>conftest.er1
 
14598
  ac_status=$?
 
14599
  grep -v '^ *+' conftest.er1 >conftest.err
 
14600
  rm -f conftest.er1
 
14601
  cat conftest.err >&5
 
14602
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14603
  (exit $ac_status); } && {
 
14604
         test -z "$ac_c_werror_flag" ||
 
14605
         test ! -s conftest.err
 
14606
       } && test -s conftest.$ac_objext; then
 
14607
  ac_lo=0 ac_mid=0
 
14608
  while :; do
 
14609
    cat >conftest.$ac_ext <<_ACEOF
 
14610
/* confdefs.h.  */
 
14611
_ACEOF
 
14612
cat confdefs.h >>conftest.$ac_ext
 
14613
cat >>conftest.$ac_ext <<_ACEOF
 
14614
/* end confdefs.h.  */
 
14615
 
 
14616
#define _XOPEN_SOURCE_EXTENDED 1
 
14617
#include <errno.h>
 
14618
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
14619
#include <stdio.h>
 
14620
#include <stdlib.h>
 
14621
 
 
14622
int
 
14623
main ()
 
14624
{
 
14625
static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
 
14626
test_array [0] = 0
 
14627
 
 
14628
  ;
 
14629
  return 0;
 
14630
}
 
14631
_ACEOF
 
14632
rm -f conftest.$ac_objext
 
14633
if { (ac_try="$ac_compile"
 
14634
case "(($ac_try" in
 
14635
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14636
  *) ac_try_echo=$ac_try;;
 
14637
esac
 
14638
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14639
$as_echo "$ac_try_echo") >&5
 
14640
  (eval "$ac_compile") 2>conftest.er1
 
14641
  ac_status=$?
 
14642
  grep -v '^ *+' conftest.er1 >conftest.err
 
14643
  rm -f conftest.er1
 
14644
  cat conftest.err >&5
 
14645
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14646
  (exit $ac_status); } && {
 
14647
         test -z "$ac_c_werror_flag" ||
 
14648
         test ! -s conftest.err
 
14649
       } && test -s conftest.$ac_objext; then
 
14650
  ac_hi=$ac_mid; break
 
14651
else
 
14652
  $as_echo "$as_me: failed program was:" >&5
 
14653
sed 's/^/| /' conftest.$ac_ext >&5
 
14654
 
 
14655
        ac_lo=`expr $ac_mid + 1`
 
14656
                        if test $ac_lo -le $ac_mid; then
 
14657
                          ac_lo= ac_hi=
 
14658
                          break
 
14659
                        fi
 
14660
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
14661
fi
 
14662
 
 
14663
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14664
  done
 
14665
else
 
14666
  $as_echo "$as_me: failed program was:" >&5
 
14667
sed 's/^/| /' conftest.$ac_ext >&5
 
14668
 
 
14669
        cat >conftest.$ac_ext <<_ACEOF
 
14670
/* confdefs.h.  */
 
14671
_ACEOF
 
14672
cat confdefs.h >>conftest.$ac_ext
 
14673
cat >>conftest.$ac_ext <<_ACEOF
 
14674
/* end confdefs.h.  */
 
14675
 
 
14676
#define _XOPEN_SOURCE_EXTENDED 1
 
14677
#include <errno.h>
 
14678
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
14679
#include <stdio.h>
 
14680
#include <stdlib.h>
 
14681
 
 
14682
int
 
14683
main ()
 
14684
{
 
14685
static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
 
14686
test_array [0] = 0
 
14687
 
 
14688
  ;
 
14689
  return 0;
 
14690
}
 
14691
_ACEOF
 
14692
rm -f conftest.$ac_objext
 
14693
if { (ac_try="$ac_compile"
 
14694
case "(($ac_try" in
 
14695
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14696
  *) ac_try_echo=$ac_try;;
 
14697
esac
 
14698
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14699
$as_echo "$ac_try_echo") >&5
 
14700
  (eval "$ac_compile") 2>conftest.er1
 
14701
  ac_status=$?
 
14702
  grep -v '^ *+' conftest.er1 >conftest.err
 
14703
  rm -f conftest.er1
 
14704
  cat conftest.err >&5
 
14705
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14706
  (exit $ac_status); } && {
 
14707
         test -z "$ac_c_werror_flag" ||
 
14708
         test ! -s conftest.err
 
14709
       } && test -s conftest.$ac_objext; then
 
14710
  ac_hi=-1 ac_mid=-1
 
14711
  while :; do
 
14712
    cat >conftest.$ac_ext <<_ACEOF
 
14713
/* confdefs.h.  */
 
14714
_ACEOF
 
14715
cat confdefs.h >>conftest.$ac_ext
 
14716
cat >>conftest.$ac_ext <<_ACEOF
 
14717
/* end confdefs.h.  */
 
14718
 
 
14719
#define _XOPEN_SOURCE_EXTENDED 1
 
14720
#include <errno.h>
 
14721
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
14722
#include <stdio.h>
 
14723
#include <stdlib.h>
 
14724
 
 
14725
int
 
14726
main ()
 
14727
{
 
14728
static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
 
14729
test_array [0] = 0
 
14730
 
 
14731
  ;
 
14732
  return 0;
 
14733
}
 
14734
_ACEOF
 
14735
rm -f conftest.$ac_objext
 
14736
if { (ac_try="$ac_compile"
 
14737
case "(($ac_try" in
 
14738
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14739
  *) ac_try_echo=$ac_try;;
 
14740
esac
 
14741
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14742
$as_echo "$ac_try_echo") >&5
 
14743
  (eval "$ac_compile") 2>conftest.er1
 
14744
  ac_status=$?
 
14745
  grep -v '^ *+' conftest.er1 >conftest.err
 
14746
  rm -f conftest.er1
 
14747
  cat conftest.err >&5
 
14748
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14749
  (exit $ac_status); } && {
 
14750
         test -z "$ac_c_werror_flag" ||
 
14751
         test ! -s conftest.err
 
14752
       } && test -s conftest.$ac_objext; then
 
14753
  ac_lo=$ac_mid; break
 
14754
else
 
14755
  $as_echo "$as_me: failed program was:" >&5
 
14756
sed 's/^/| /' conftest.$ac_ext >&5
 
14757
 
 
14758
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
14759
                        if test $ac_mid -le $ac_hi; then
 
14760
                          ac_lo= ac_hi=
 
14761
                          break
 
14762
                        fi
 
14763
                        ac_mid=`expr 2 '*' $ac_mid`
 
14764
fi
 
14765
 
 
14766
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14767
  done
 
14768
else
 
14769
  $as_echo "$as_me: failed program was:" >&5
 
14770
sed 's/^/| /' conftest.$ac_ext >&5
 
14771
 
 
14772
        ac_lo= ac_hi=
 
14773
fi
 
14774
 
 
14775
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14776
fi
 
14777
 
 
14778
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14779
# Binary search between lo and hi bounds.
 
14780
while test "x$ac_lo" != "x$ac_hi"; do
 
14781
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
14782
  cat >conftest.$ac_ext <<_ACEOF
 
14783
/* confdefs.h.  */
 
14784
_ACEOF
 
14785
cat confdefs.h >>conftest.$ac_ext
 
14786
cat >>conftest.$ac_ext <<_ACEOF
 
14787
/* end confdefs.h.  */
 
14788
 
 
14789
#define _XOPEN_SOURCE_EXTENDED 1
 
14790
#include <errno.h>
 
14791
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
14792
#include <stdio.h>
 
14793
#include <stdlib.h>
 
14794
 
 
14795
int
 
14796
main ()
 
14797
{
 
14798
static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
 
14799
test_array [0] = 0
 
14800
 
 
14801
  ;
 
14802
  return 0;
 
14803
}
 
14804
_ACEOF
 
14805
rm -f conftest.$ac_objext
 
14806
if { (ac_try="$ac_compile"
 
14807
case "(($ac_try" in
 
14808
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14809
  *) ac_try_echo=$ac_try;;
 
14810
esac
 
14811
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14812
$as_echo "$ac_try_echo") >&5
 
14813
  (eval "$ac_compile") 2>conftest.er1
 
14814
  ac_status=$?
 
14815
  grep -v '^ *+' conftest.er1 >conftest.err
 
14816
  rm -f conftest.er1
 
14817
  cat conftest.err >&5
 
14818
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14819
  (exit $ac_status); } && {
 
14820
         test -z "$ac_c_werror_flag" ||
 
14821
         test ! -s conftest.err
 
14822
       } && test -s conftest.$ac_objext; then
 
14823
  ac_hi=$ac_mid
 
14824
else
 
14825
  $as_echo "$as_me: failed program was:" >&5
 
14826
sed 's/^/| /' conftest.$ac_ext >&5
 
14827
 
 
14828
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
14829
fi
 
14830
 
 
14831
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14832
done
 
14833
case $ac_lo in
 
14834
?*) gl_cv_header_errno_h_EOVERFLOW=$ac_lo;;
 
14835
'')  ;;
 
14836
esac
 
14837
else
 
14838
  cat >conftest.$ac_ext <<_ACEOF
 
14839
/* confdefs.h.  */
 
14840
_ACEOF
 
14841
cat confdefs.h >>conftest.$ac_ext
 
14842
cat >>conftest.$ac_ext <<_ACEOF
 
14843
/* end confdefs.h.  */
 
14844
 
 
14845
#define _XOPEN_SOURCE_EXTENDED 1
 
14846
#include <errno.h>
 
14847
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
14848
#include <stdio.h>
 
14849
#include <stdlib.h>
 
14850
 
 
14851
static long int longval () { return EOVERFLOW; }
 
14852
static unsigned long int ulongval () { return EOVERFLOW; }
 
14853
#include <stdio.h>
 
14854
#include <stdlib.h>
 
14855
int
 
14856
main ()
 
14857
{
 
14858
 
 
14859
  FILE *f = fopen ("conftest.val", "w");
 
14860
  if (! f)
 
14861
    return 1;
 
14862
  if ((EOVERFLOW) < 0)
 
14863
    {
 
14864
      long int i = longval ();
 
14865
      if (i != (EOVERFLOW))
 
14866
        return 1;
 
14867
      fprintf (f, "%ld", i);
 
14868
    }
 
14869
  else
 
14870
    {
 
14871
      unsigned long int i = ulongval ();
 
14872
      if (i != (EOVERFLOW))
 
14873
        return 1;
 
14874
      fprintf (f, "%lu", i);
 
14875
    }
 
14876
  /* Do not output a trailing newline, as this causes \r\n confusion
 
14877
     on some platforms.  */
 
14878
  return ferror (f) || fclose (f) != 0;
 
14879
 
 
14880
  ;
 
14881
  return 0;
 
14882
}
 
14883
_ACEOF
 
14884
rm -f conftest$ac_exeext
 
14885
if { (ac_try="$ac_link"
 
14886
case "(($ac_try" in
 
14887
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14888
  *) ac_try_echo=$ac_try;;
 
14889
esac
 
14890
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14891
$as_echo "$ac_try_echo") >&5
 
14892
  (eval "$ac_link") 2>&5
 
14893
  ac_status=$?
 
14894
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14895
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
14896
  { (case "(($ac_try" in
 
14897
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14898
  *) ac_try_echo=$ac_try;;
 
14899
esac
 
14900
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14901
$as_echo "$ac_try_echo") >&5
 
14902
  (eval "$ac_try") 2>&5
 
14903
  ac_status=$?
 
14904
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14905
  (exit $ac_status); }; }; then
 
14906
  gl_cv_header_errno_h_EOVERFLOW=`cat conftest.val`
 
14907
else
 
14908
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
14909
$as_echo "$as_me: failed program was:" >&5
 
14910
sed 's/^/| /' conftest.$ac_ext >&5
 
14911
 
 
14912
fi
 
14913
rm -rf conftest.dSYM
 
14914
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
14915
fi
 
14916
rm -f conftest.val
 
14917
        fi
 
14918
      fi
 
14919
 
 
14920
fi
 
14921
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
 
14922
$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
 
14923
    case $gl_cv_header_errno_h_EOVERFLOW in
 
14924
      yes | no)
 
14925
        EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
 
14926
        ;;
 
14927
      *)
 
14928
        EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
 
14929
        ;;
 
14930
    esac
 
14931
 
 
14932
 
 
14933
  fi
 
14934
 
 
14935
 
 
14936
 
 
14937
 
 
14938
 
 
14939
 
 
14940
 
 
14941
 
 
14942
 
 
14943
 
 
14944
 
 
14945
 
 
14946
 
 
14947
 
 
14948
{ $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
 
14949
$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
 
14950
if test "${ac_cv_c_restrict+set}" = set; then
 
14951
  $as_echo_n "(cached) " >&6
 
14952
else
 
14953
  ac_cv_c_restrict=no
 
14954
   # The order here caters to the fact that C++ does not require restrict.
 
14955
   for ac_kw in __restrict __restrict__ _Restrict restrict; do
 
14956
     cat >conftest.$ac_ext <<_ACEOF
 
14957
/* confdefs.h.  */
 
14958
_ACEOF
 
14959
cat confdefs.h >>conftest.$ac_ext
 
14960
cat >>conftest.$ac_ext <<_ACEOF
 
14961
/* end confdefs.h.  */
 
14962
typedef int * int_ptr;
 
14963
        int foo (int_ptr $ac_kw ip) {
 
14964
        return ip[0];
 
14965
       }
 
14966
int
 
14967
main ()
 
14968
{
 
14969
int s[1];
 
14970
        int * $ac_kw t = s;
 
14971
        t[0] = 0;
 
14972
        return foo(t)
 
14973
  ;
 
14974
  return 0;
 
14975
}
 
14976
_ACEOF
 
14977
rm -f conftest.$ac_objext
 
14978
if { (ac_try="$ac_compile"
 
14979
case "(($ac_try" in
 
14980
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14981
  *) ac_try_echo=$ac_try;;
 
14982
esac
 
14983
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14984
$as_echo "$ac_try_echo") >&5
 
14985
  (eval "$ac_compile") 2>conftest.er1
 
14986
  ac_status=$?
 
14987
  grep -v '^ *+' conftest.er1 >conftest.err
 
14988
  rm -f conftest.er1
 
14989
  cat conftest.err >&5
 
14990
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14991
  (exit $ac_status); } && {
 
14992
         test -z "$ac_c_werror_flag" ||
 
14993
         test ! -s conftest.err
 
14994
       } && test -s conftest.$ac_objext; then
 
14995
  ac_cv_c_restrict=$ac_kw
 
14996
else
 
14997
  $as_echo "$as_me: failed program was:" >&5
 
14998
sed 's/^/| /' conftest.$ac_ext >&5
 
14999
 
 
15000
 
 
15001
fi
 
15002
 
 
15003
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15004
     test "$ac_cv_c_restrict" != no && break
 
15005
   done
 
15006
 
 
15007
fi
 
15008
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
 
15009
$as_echo "$ac_cv_c_restrict" >&6; }
 
15010
 
 
15011
 
 
15012
 case $ac_cv_c_restrict in
 
15013
   restrict) ;;
 
15014
   no) cat >>confdefs.h <<\_ACEOF
 
15015
#define restrict /**/
 
15016
_ACEOF
 
15017
 ;;
 
15018
   *)  cat >>confdefs.h <<_ACEOF
 
15019
#define restrict $ac_cv_c_restrict
 
15020
_ACEOF
 
15021
 ;;
 
15022
 esac
 
15023
 
 
15024
 
 
15025
 
 
15026
 
 
15027
 
 
15028
 
 
15029
 
 
15030
 
 
15031
 
 
15032
 
 
15033
  :
 
15034
 
 
15035
 
 
15036
 
 
15037
 
 
15038
 
 
15039
 
 
15040
  { $as_echo "$as_me:$LINENO: checking for IPv4 sockets" >&5
 
15041
$as_echo_n "checking for IPv4 sockets... " >&6; }
 
15042
  if test "${gl_cv_socket_ipv4+set}" = set; then
 
15043
  $as_echo_n "(cached) " >&6
 
15044
else
 
15045
  cat >conftest.$ac_ext <<_ACEOF
 
15046
/* confdefs.h.  */
 
15047
_ACEOF
 
15048
cat confdefs.h >>conftest.$ac_ext
 
15049
cat >>conftest.$ac_ext <<_ACEOF
 
15050
/* end confdefs.h.  */
 
15051
#include <sys/types.h>
 
15052
#ifdef HAVE_SYS_SOCKET_H
 
15053
#include <sys/socket.h>
 
15054
#endif
 
15055
#ifdef HAVE_NETINET_IN_H
 
15056
#include <netinet/in.h>
 
15057
#endif
 
15058
#ifdef HAVE_WINSOCK2_H
 
15059
#include <winsock2.h>
 
15060
#endif
 
15061
int
 
15062
main ()
 
15063
{
 
15064
int x = AF_INET; struct in_addr y; struct sockaddr_in z;
 
15065
 if (&x && &y && &z) return 0;
 
15066
  ;
 
15067
  return 0;
 
15068
}
 
15069
_ACEOF
 
15070
rm -f conftest.$ac_objext
 
15071
if { (ac_try="$ac_compile"
 
15072
case "(($ac_try" in
 
15073
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15074
  *) ac_try_echo=$ac_try;;
 
15075
esac
 
15076
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15077
$as_echo "$ac_try_echo") >&5
 
15078
  (eval "$ac_compile") 2>conftest.er1
 
15079
  ac_status=$?
 
15080
  grep -v '^ *+' conftest.er1 >conftest.err
 
15081
  rm -f conftest.er1
 
15082
  cat conftest.err >&5
 
15083
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15084
  (exit $ac_status); } && {
 
15085
         test -z "$ac_c_werror_flag" ||
 
15086
         test ! -s conftest.err
 
15087
       } && test -s conftest.$ac_objext; then
 
15088
  gl_cv_socket_ipv4=yes
 
15089
else
 
15090
  $as_echo "$as_me: failed program was:" >&5
 
15091
sed 's/^/| /' conftest.$ac_ext >&5
 
15092
 
 
15093
        gl_cv_socket_ipv4=no
 
15094
fi
 
15095
 
 
15096
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15097
fi
 
15098
 
 
15099
  { $as_echo "$as_me:$LINENO: result: $gl_cv_socket_ipv4" >&5
 
15100
$as_echo "$gl_cv_socket_ipv4" >&6; }
 
15101
  if test $gl_cv_socket_ipv4 = yes; then
 
15102
 
 
15103
cat >>confdefs.h <<\_ACEOF
 
15104
#define HAVE_IPV4 1
 
15105
_ACEOF
 
15106
 
 
15107
  fi
 
15108
 
 
15109
  { $as_echo "$as_me:$LINENO: checking for IPv6 sockets" >&5
 
15110
$as_echo_n "checking for IPv6 sockets... " >&6; }
 
15111
  if test "${gl_cv_socket_ipv6+set}" = set; then
 
15112
  $as_echo_n "(cached) " >&6
 
15113
else
 
15114
  cat >conftest.$ac_ext <<_ACEOF
 
15115
/* confdefs.h.  */
 
15116
_ACEOF
 
15117
cat confdefs.h >>conftest.$ac_ext
 
15118
cat >>conftest.$ac_ext <<_ACEOF
 
15119
/* end confdefs.h.  */
 
15120
#include <sys/types.h>
 
15121
#ifdef HAVE_SYS_SOCKET_H
 
15122
#include <sys/socket.h>
 
15123
#endif
 
15124
#ifdef HAVE_NETINET_IN_H
 
15125
#include <netinet/in.h>
 
15126
#endif
 
15127
#ifdef HAVE_WINSOCK2_H
 
15128
#include <winsock2.h>
 
15129
#endif
 
15130
int
 
15131
main ()
 
15132
{
 
15133
int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
 
15134
 if (&x && &y && &z) return 0;
 
15135
  ;
 
15136
  return 0;
 
15137
}
 
15138
_ACEOF
 
15139
rm -f conftest.$ac_objext
 
15140
if { (ac_try="$ac_compile"
 
15141
case "(($ac_try" in
 
15142
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15143
  *) ac_try_echo=$ac_try;;
 
15144
esac
 
15145
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15146
$as_echo "$ac_try_echo") >&5
 
15147
  (eval "$ac_compile") 2>conftest.er1
 
15148
  ac_status=$?
 
15149
  grep -v '^ *+' conftest.er1 >conftest.err
 
15150
  rm -f conftest.er1
 
15151
  cat conftest.err >&5
 
15152
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15153
  (exit $ac_status); } && {
 
15154
         test -z "$ac_c_werror_flag" ||
 
15155
         test ! -s conftest.err
 
15156
       } && test -s conftest.$ac_objext; then
 
15157
  gl_cv_socket_ipv6=yes
 
15158
else
 
15159
  $as_echo "$as_me: failed program was:" >&5
 
15160
sed 's/^/| /' conftest.$ac_ext >&5
 
15161
 
 
15162
        gl_cv_socket_ipv6=no
 
15163
fi
 
15164
 
 
15165
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15166
fi
 
15167
 
 
15168
  { $as_echo "$as_me:$LINENO: result: $gl_cv_socket_ipv6" >&5
 
15169
$as_echo "$gl_cv_socket_ipv6" >&6; }
 
15170
  if test $gl_cv_socket_ipv6 = yes; then
 
15171
 
 
15172
cat >>confdefs.h <<\_ACEOF
 
15173
#define HAVE_IPV6 1
 
15174
_ACEOF
 
15175
 
 
15176
  fi
 
15177
 
 
15178
 
 
15179
  { $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
 
15180
$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
 
15181
if test "${gl_cv_func_malloc_posix+set}" = set; then
 
15182
  $as_echo_n "(cached) " >&6
 
15183
else
 
15184
 
 
15185
                        cat >conftest.$ac_ext <<_ACEOF
 
15186
/* confdefs.h.  */
 
15187
_ACEOF
 
15188
cat confdefs.h >>conftest.$ac_ext
 
15189
cat >>conftest.$ac_ext <<_ACEOF
 
15190
/* end confdefs.h.  */
 
15191
 
 
15192
int
 
15193
main ()
 
15194
{
 
15195
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
 
15196
         choke me
 
15197
         #endif
 
15198
 
 
15199
  ;
 
15200
  return 0;
 
15201
}
 
15202
_ACEOF
 
15203
rm -f conftest.$ac_objext
 
15204
if { (ac_try="$ac_compile"
 
15205
case "(($ac_try" in
 
15206
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15207
  *) ac_try_echo=$ac_try;;
 
15208
esac
 
15209
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15210
$as_echo "$ac_try_echo") >&5
 
15211
  (eval "$ac_compile") 2>conftest.er1
 
15212
  ac_status=$?
 
15213
  grep -v '^ *+' conftest.er1 >conftest.err
 
15214
  rm -f conftest.er1
 
15215
  cat conftest.err >&5
 
15216
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15217
  (exit $ac_status); } && {
 
15218
         test -z "$ac_c_werror_flag" ||
 
15219
         test ! -s conftest.err
 
15220
       } && test -s conftest.$ac_objext; then
 
15221
  gl_cv_func_malloc_posix=yes
 
15222
else
 
15223
  $as_echo "$as_me: failed program was:" >&5
 
15224
sed 's/^/| /' conftest.$ac_ext >&5
 
15225
 
 
15226
        gl_cv_func_malloc_posix=no
 
15227
fi
 
15228
 
 
15229
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15230
 
 
15231
fi
 
15232
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
 
15233
$as_echo "$gl_cv_func_malloc_posix" >&6; }
 
15234
 
 
15235
 
 
15236
  GNULIB_MALLOC_POSIX=0;
 
15237
  GNULIB_REALLOC_POSIX=0;
 
15238
  GNULIB_CALLOC_POSIX=0;
 
15239
  GNULIB_GETSUBOPT=0;
 
15240
  GNULIB_MKDTEMP=0;
 
15241
  GNULIB_MKSTEMP=0;
 
15242
  GNULIB_PUTENV=0;
 
15243
  GNULIB_RPMATCH=0;
 
15244
  GNULIB_SETENV=0;
 
15245
  GNULIB_STRTOD=0;
 
15246
  GNULIB_UNSETENV=0;
 
15247
    HAVE_CALLOC_POSIX=1;
 
15248
  HAVE_GETSUBOPT=1;
 
15249
  HAVE_MALLOC_POSIX=1;
 
15250
  HAVE_MKDTEMP=1;
 
15251
  HAVE_REALLOC_POSIX=1;
 
15252
  HAVE_RPMATCH=1;
 
15253
  HAVE_SETENV=1;
 
15254
  HAVE_STRTOD=1;
 
15255
  HAVE_UNSETENV=1;
 
15256
  REPLACE_MKSTEMP=0;
 
15257
  REPLACE_PUTENV=0;
 
15258
  REPLACE_STRTOD=0;
 
15259
  VOID_UNSETENV=0;
 
15260
 
 
15261
 
 
15262
  GNULIB_FPRINTF=0;
 
15263
  GNULIB_FPRINTF_POSIX=0;
 
15264
  GNULIB_PRINTF=0;
 
15265
  GNULIB_PRINTF_POSIX=0;
 
15266
  GNULIB_SNPRINTF=0;
 
15267
  GNULIB_SPRINTF_POSIX=0;
 
15268
  GNULIB_VFPRINTF=0;
 
15269
  GNULIB_VFPRINTF_POSIX=0;
 
15270
  GNULIB_VPRINTF=0;
 
15271
  GNULIB_VPRINTF_POSIX=0;
 
15272
  GNULIB_VSNPRINTF=0;
 
15273
  GNULIB_VSPRINTF_POSIX=0;
 
15274
  GNULIB_VASPRINTF=0;
 
15275
  GNULIB_OBSTACK_PRINTF=0;
 
15276
  GNULIB_OBSTACK_PRINTF_POSIX=0;
 
15277
  GNULIB_FOPEN=0;
 
15278
  GNULIB_FREOPEN=0;
 
15279
  GNULIB_FSEEK=0;
 
15280
  GNULIB_FSEEKO=0;
 
15281
  GNULIB_FTELL=0;
 
15282
  GNULIB_FTELLO=0;
 
15283
  GNULIB_FFLUSH=0;
 
15284
  GNULIB_FPUTC=0;
 
15285
  GNULIB_PUTC=0;
 
15286
  GNULIB_PUTCHAR=0;
 
15287
  GNULIB_FPUTS=0;
 
15288
  GNULIB_PUTS=0;
 
15289
  GNULIB_FWRITE=0;
 
15290
  GNULIB_GETDELIM=0;
 
15291
  GNULIB_GETLINE=0;
 
15292
  GNULIB_PERROR=0;
 
15293
  GNULIB_STDIO_H_SIGPIPE=0;
 
15294
    REPLACE_STDIO_WRITE_FUNCS=0;
 
15295
  REPLACE_FPRINTF=0;
 
15296
  REPLACE_VFPRINTF=0;
 
15297
  REPLACE_PRINTF=0;
 
15298
  REPLACE_VPRINTF=0;
 
15299
  REPLACE_SNPRINTF=0;
 
15300
  HAVE_DECL_SNPRINTF=1;
 
15301
  REPLACE_VSNPRINTF=0;
 
15302
  HAVE_DECL_VSNPRINTF=1;
 
15303
  REPLACE_SPRINTF=0;
 
15304
  REPLACE_VSPRINTF=0;
 
15305
  HAVE_VASPRINTF=1;
 
15306
  REPLACE_VASPRINTF=0;
 
15307
  HAVE_DECL_OBSTACK_PRINTF=1;
 
15308
  REPLACE_OBSTACK_PRINTF=0;
 
15309
  REPLACE_FOPEN=0;
 
15310
  REPLACE_FREOPEN=0;
 
15311
  HAVE_FSEEKO=1;
 
15312
  REPLACE_FSEEKO=0;
 
15313
  REPLACE_FSEEK=0;
 
15314
  HAVE_FTELLO=1;
 
15315
  REPLACE_FTELLO=0;
 
15316
  REPLACE_FTELL=0;
 
15317
  REPLACE_FFLUSH=0;
 
15318
  HAVE_DECL_GETDELIM=1;
 
15319
  HAVE_DECL_GETLINE=1;
 
15320
  REPLACE_GETLINE=0;
 
15321
  REPLACE_PERROR=0;
 
15322
 
 
15323
 
 
15324
      { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
 
15325
$as_echo_n "checking whether snprintf is declared... " >&6; }
 
15326
if test "${ac_cv_have_decl_snprintf+set}" = set; then
 
15327
  $as_echo_n "(cached) " >&6
 
15328
else
 
15329
  cat >conftest.$ac_ext <<_ACEOF
 
15330
/* confdefs.h.  */
 
15331
_ACEOF
 
15332
cat confdefs.h >>conftest.$ac_ext
 
15333
cat >>conftest.$ac_ext <<_ACEOF
 
15334
/* end confdefs.h.  */
 
15335
$ac_includes_default
 
15336
int
 
15337
main ()
 
15338
{
 
15339
#ifndef snprintf
 
15340
  (void) snprintf;
 
15341
#endif
 
15342
 
 
15343
  ;
 
15344
  return 0;
 
15345
}
 
15346
_ACEOF
 
15347
rm -f conftest.$ac_objext
 
15348
if { (ac_try="$ac_compile"
 
15349
case "(($ac_try" in
 
15350
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15351
  *) ac_try_echo=$ac_try;;
 
15352
esac
 
15353
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15354
$as_echo "$ac_try_echo") >&5
 
15355
  (eval "$ac_compile") 2>conftest.er1
 
15356
  ac_status=$?
 
15357
  grep -v '^ *+' conftest.er1 >conftest.err
 
15358
  rm -f conftest.er1
 
15359
  cat conftest.err >&5
 
15360
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15361
  (exit $ac_status); } && {
 
15362
         test -z "$ac_c_werror_flag" ||
 
15363
         test ! -s conftest.err
 
15364
       } && test -s conftest.$ac_objext; then
 
15365
  ac_cv_have_decl_snprintf=yes
 
15366
else
 
15367
  $as_echo "$as_me: failed program was:" >&5
 
15368
sed 's/^/| /' conftest.$ac_ext >&5
 
15369
 
 
15370
        ac_cv_have_decl_snprintf=no
 
15371
fi
 
15372
 
 
15373
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15374
fi
 
15375
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
 
15376
$as_echo "$ac_cv_have_decl_snprintf" >&6; }
 
15377
if test "x$ac_cv_have_decl_snprintf" = x""yes; then
 
15378
 
 
15379
cat >>confdefs.h <<_ACEOF
 
15380
#define HAVE_DECL_SNPRINTF 1
 
15381
_ACEOF
 
15382
 
 
15383
 
 
15384
else
 
15385
  cat >>confdefs.h <<_ACEOF
 
15386
#define HAVE_DECL_SNPRINTF 0
 
15387
_ACEOF
 
15388
 
 
15389
 
 
15390
fi
 
15391
 
 
15392
 
 
15393
 
 
15394
{ $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
 
15395
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
 
15396
if test "${ac_cv_header_stdbool_h+set}" = set; then
 
15397
  $as_echo_n "(cached) " >&6
 
15398
else
 
15399
  cat >conftest.$ac_ext <<_ACEOF
 
15400
/* confdefs.h.  */
 
15401
_ACEOF
 
15402
cat confdefs.h >>conftest.$ac_ext
 
15403
cat >>conftest.$ac_ext <<_ACEOF
 
15404
/* end confdefs.h.  */
 
15405
 
 
15406
          #include <stdbool.h>
 
15407
          #ifndef bool
 
15408
           "error: bool is not defined"
 
15409
          #endif
 
15410
          #ifndef false
 
15411
           "error: false is not defined"
 
15412
          #endif
 
15413
          #if false
 
15414
           "error: false is not 0"
 
15415
          #endif
 
15416
          #ifndef true
 
15417
           "error: true is not defined"
 
15418
          #endif
 
15419
          #if true != 1
 
15420
           "error: true is not 1"
 
15421
          #endif
 
15422
          #ifndef __bool_true_false_are_defined
 
15423
           "error: __bool_true_false_are_defined is not defined"
 
15424
          #endif
 
15425
 
 
15426
          struct s { _Bool s: 1; _Bool t; } s;
 
15427
 
 
15428
          char a[true == 1 ? 1 : -1];
 
15429
          char b[false == 0 ? 1 : -1];
 
15430
          char c[__bool_true_false_are_defined == 1 ? 1 : -1];
 
15431
          char d[(bool) 0.5 == true ? 1 : -1];
 
15432
          bool e = &s;
 
15433
          char f[(_Bool) 0.0 == false ? 1 : -1];
 
15434
          char g[true];
 
15435
          char h[sizeof (_Bool)];
 
15436
          char i[sizeof s.t];
 
15437
          enum { j = false, k = true, l = false * true, m = true * 256 };
 
15438
          _Bool n[m];
 
15439
          char o[sizeof n == m * sizeof n[0] ? 1 : -1];
 
15440
          char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
 
15441
          #if defined __xlc__ || defined __GNUC__
 
15442
           /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
 
15443
              reported by James Lemley on 2005-10-05; see
 
15444
              http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
 
15445
              This test is not quite right, since xlc is allowed to
 
15446
              reject this program, as the initializer for xlcbug is
 
15447
              not one of the forms that C requires support for.
 
15448
              However, doing the test right would require a run-time
 
15449
              test, and that would make cross-compilation harder.
 
15450
              Let us hope that IBM fixes the xlc bug, and also adds
 
15451
              support for this kind of constant expression.  In the
 
15452
              meantime, this test will reject xlc, which is OK, since
 
15453
              our stdbool.h substitute should suffice.  We also test
 
15454
              this with GCC, where it should work, to detect more
 
15455
              quickly whether someone messes up the test in the
 
15456
              future.  */
 
15457
           char digs[] = "0123456789";
 
15458
           int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
 
15459
          #endif
 
15460
          /* Catch a bug in an HP-UX C compiler.  See
 
15461
             http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
 
15462
             http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
 
15463
           */
 
15464
          _Bool q = true;
 
15465
          _Bool *pq = &q;
 
15466
 
 
15467
int
 
15468
main ()
 
15469
{
 
15470
 
 
15471
          *pq |= q;
 
15472
          *pq |= ! q;
 
15473
          /* Refer to every declared value, to avoid compiler optimizations.  */
 
15474
          return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
 
15475
                  + !m + !n + !o + !p + !q + !pq);
 
15476
 
 
15477
  ;
 
15478
  return 0;
 
15479
}
 
15480
_ACEOF
 
15481
rm -f conftest.$ac_objext
 
15482
if { (ac_try="$ac_compile"
 
15483
case "(($ac_try" in
 
15484
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15485
  *) ac_try_echo=$ac_try;;
 
15486
esac
 
15487
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15488
$as_echo "$ac_try_echo") >&5
 
15489
  (eval "$ac_compile") 2>conftest.er1
 
15490
  ac_status=$?
 
15491
  grep -v '^ *+' conftest.er1 >conftest.err
 
15492
  rm -f conftest.er1
 
15493
  cat conftest.err >&5
 
15494
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15495
  (exit $ac_status); } && {
 
15496
         test -z "$ac_c_werror_flag" ||
 
15497
         test ! -s conftest.err
 
15498
       } && test -s conftest.$ac_objext; then
 
15499
  ac_cv_header_stdbool_h=yes
 
15500
else
 
15501
  $as_echo "$as_me: failed program was:" >&5
 
15502
sed 's/^/| /' conftest.$ac_ext >&5
 
15503
 
 
15504
        ac_cv_header_stdbool_h=no
 
15505
fi
 
15506
 
 
15507
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15508
fi
 
15509
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
 
15510
$as_echo "$ac_cv_header_stdbool_h" >&6; }
 
15511
   { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
 
15512
$as_echo_n "checking for _Bool... " >&6; }
 
15513
if test "${ac_cv_type__Bool+set}" = set; then
 
15514
  $as_echo_n "(cached) " >&6
 
15515
else
 
15516
  ac_cv_type__Bool=no
 
15517
cat >conftest.$ac_ext <<_ACEOF
 
15518
/* confdefs.h.  */
 
15519
_ACEOF
 
15520
cat confdefs.h >>conftest.$ac_ext
 
15521
cat >>conftest.$ac_ext <<_ACEOF
 
15522
/* end confdefs.h.  */
 
15523
$ac_includes_default
 
15524
int
 
15525
main ()
 
15526
{
 
15527
if (sizeof (_Bool))
 
15528
       return 0;
 
15529
  ;
 
15530
  return 0;
 
15531
}
 
15532
_ACEOF
 
15533
rm -f conftest.$ac_objext
 
15534
if { (ac_try="$ac_compile"
 
15535
case "(($ac_try" in
 
15536
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15537
  *) ac_try_echo=$ac_try;;
 
15538
esac
 
15539
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15540
$as_echo "$ac_try_echo") >&5
 
15541
  (eval "$ac_compile") 2>conftest.er1
 
15542
  ac_status=$?
 
15543
  grep -v '^ *+' conftest.er1 >conftest.err
 
15544
  rm -f conftest.er1
 
15545
  cat conftest.err >&5
 
15546
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15547
  (exit $ac_status); } && {
 
15548
         test -z "$ac_c_werror_flag" ||
 
15549
         test ! -s conftest.err
 
15550
       } && test -s conftest.$ac_objext; then
 
15551
  cat >conftest.$ac_ext <<_ACEOF
 
15552
/* confdefs.h.  */
 
15553
_ACEOF
 
15554
cat confdefs.h >>conftest.$ac_ext
 
15555
cat >>conftest.$ac_ext <<_ACEOF
 
15556
/* end confdefs.h.  */
 
15557
$ac_includes_default
 
15558
int
 
15559
main ()
 
15560
{
 
15561
if (sizeof ((_Bool)))
 
15562
          return 0;
 
15563
  ;
 
15564
  return 0;
 
15565
}
 
15566
_ACEOF
 
15567
rm -f conftest.$ac_objext
 
15568
if { (ac_try="$ac_compile"
 
15569
case "(($ac_try" in
 
15570
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15571
  *) ac_try_echo=$ac_try;;
 
15572
esac
 
15573
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15574
$as_echo "$ac_try_echo") >&5
 
15575
  (eval "$ac_compile") 2>conftest.er1
 
15576
  ac_status=$?
 
15577
  grep -v '^ *+' conftest.er1 >conftest.err
 
15578
  rm -f conftest.er1
 
15579
  cat conftest.err >&5
 
15580
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15581
  (exit $ac_status); } && {
 
15582
         test -z "$ac_c_werror_flag" ||
 
15583
         test ! -s conftest.err
 
15584
       } && test -s conftest.$ac_objext; then
 
15585
  :
 
15586
else
 
15587
  $as_echo "$as_me: failed program was:" >&5
 
15588
sed 's/^/| /' conftest.$ac_ext >&5
 
15589
 
 
15590
        ac_cv_type__Bool=yes
 
15591
fi
 
15592
 
 
15593
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15594
else
 
15595
  $as_echo "$as_me: failed program was:" >&5
 
15596
sed 's/^/| /' conftest.$ac_ext >&5
 
15597
 
 
15598
 
 
15599
fi
 
15600
 
 
15601
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15602
fi
 
15603
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
 
15604
$as_echo "$ac_cv_type__Bool" >&6; }
 
15605
if test "x$ac_cv_type__Bool" = x""yes; then
 
15606
 
 
15607
cat >>confdefs.h <<_ACEOF
 
15608
#define HAVE__BOOL 1
 
15609
_ACEOF
 
15610
 
 
15611
 
 
15612
fi
 
15613
 
 
15614
   if test $ac_cv_header_stdbool_h = yes; then
 
15615
 
 
15616
cat >>confdefs.h <<\_ACEOF
 
15617
#define HAVE_STDBOOL_H 1
 
15618
_ACEOF
 
15619
 
 
15620
   fi
 
15621
 
 
15622
  { $as_echo "$as_me:$LINENO: checking for long long int" >&5
 
15623
$as_echo_n "checking for long long int... " >&6; }
 
15624
if test "${ac_cv_type_long_long_int+set}" = set; then
 
15625
  $as_echo_n "(cached) " >&6
 
15626
else
 
15627
  cat >conftest.$ac_ext <<_ACEOF
 
15628
 
 
15629
  /* confdefs.h.  */
 
15630
_ACEOF
 
15631
cat confdefs.h >>conftest.$ac_ext
 
15632
cat >>conftest.$ac_ext <<_ACEOF
 
15633
/* end confdefs.h.  */
 
15634
/* For now, do not test the preprocessor; as of 2007 there are too many
 
15635
         implementations with broken preprocessors.  Perhaps this can
 
15636
         be revisited in 2012.  In the meantime, code should not expect
 
15637
         #if to work with literals wider than 32 bits.  */
 
15638
      /* Test literals.  */
 
15639
      long long int ll = 9223372036854775807ll;
 
15640
      long long int nll = -9223372036854775807LL;
 
15641
      unsigned long long int ull = 18446744073709551615ULL;
 
15642
      /* Test constant expressions.   */
 
15643
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
 
15644
                     ? 1 : -1)];
 
15645
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
 
15646
                     ? 1 : -1)];
 
15647
      int i = 63;
 
15648
int
 
15649
main ()
 
15650
{
 
15651
/* Test availability of runtime routines for shift and division.  */
 
15652
      long long int llmax = 9223372036854775807ll;
 
15653
      unsigned long long int ullmax = 18446744073709551615ull;
 
15654
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
 
15655
              | (llmax / ll) | (llmax % ll)
 
15656
              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
 
15657
              | (ullmax / ull) | (ullmax % ull));
 
15658
  ;
 
15659
  return 0;
 
15660
}
 
15661
 
 
15662
_ACEOF
 
15663
rm -f conftest.$ac_objext conftest$ac_exeext
 
15664
if { (ac_try="$ac_link"
 
15665
case "(($ac_try" in
 
15666
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15667
  *) ac_try_echo=$ac_try;;
 
15668
esac
 
15669
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15670
$as_echo "$ac_try_echo") >&5
 
15671
  (eval "$ac_link") 2>conftest.er1
 
15672
  ac_status=$?
 
15673
  grep -v '^ *+' conftest.er1 >conftest.err
 
15674
  rm -f conftest.er1
 
15675
  cat conftest.err >&5
 
15676
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15677
  (exit $ac_status); } && {
 
15678
         test -z "$ac_c_werror_flag" ||
 
15679
         test ! -s conftest.err
 
15680
       } && test -s conftest$ac_exeext && {
 
15681
         test "$cross_compiling" = yes ||
 
15682
         $as_test_x conftest$ac_exeext
 
15683
       }; then
 
15684
                        if test "$cross_compiling" = yes; then
 
15685
  ac_cv_type_long_long_int=yes
 
15686
else
 
15687
  cat >conftest.$ac_ext <<_ACEOF
 
15688
/* confdefs.h.  */
 
15689
_ACEOF
 
15690
cat confdefs.h >>conftest.$ac_ext
 
15691
cat >>conftest.$ac_ext <<_ACEOF
 
15692
/* end confdefs.h.  */
 
15693
#include <limits.h>
 
15694
               #ifndef LLONG_MAX
 
15695
               # define HALF \
 
15696
                        (1LL << (sizeof (long long int) * CHAR_BIT - 2))
 
15697
               # define LLONG_MAX (HALF - 1 + HALF)
 
15698
               #endif
 
15699
int
 
15700
main ()
 
15701
{
 
15702
long long int n = 1;
 
15703
               int i;
 
15704
               for (i = 0; ; i++)
 
15705
                 {
 
15706
                   long long int m = n << i;
 
15707
                   if (m >> i != n)
 
15708
                     return 1;
 
15709
                   if (LLONG_MAX / 2 < m)
 
15710
                     break;
 
15711
                 }
 
15712
               return 0;
 
15713
  ;
 
15714
  return 0;
 
15715
}
 
15716
_ACEOF
 
15717
rm -f conftest$ac_exeext
 
15718
if { (ac_try="$ac_link"
 
15719
case "(($ac_try" in
 
15720
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15721
  *) ac_try_echo=$ac_try;;
 
15722
esac
 
15723
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15724
$as_echo "$ac_try_echo") >&5
 
15725
  (eval "$ac_link") 2>&5
 
15726
  ac_status=$?
 
15727
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15728
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
15729
  { (case "(($ac_try" in
 
15730
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15731
  *) ac_try_echo=$ac_try;;
 
15732
esac
 
15733
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15734
$as_echo "$ac_try_echo") >&5
 
15735
  (eval "$ac_try") 2>&5
 
15736
  ac_status=$?
 
15737
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15738
  (exit $ac_status); }; }; then
 
15739
  ac_cv_type_long_long_int=yes
 
15740
else
 
15741
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
15742
$as_echo "$as_me: failed program was:" >&5
 
15743
sed 's/^/| /' conftest.$ac_ext >&5
 
15744
 
 
15745
( exit $ac_status )
 
15746
ac_cv_type_long_long_int=no
 
15747
fi
 
15748
rm -rf conftest.dSYM
 
15749
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
15750
fi
 
15751
 
 
15752
 
 
15753
else
 
15754
  $as_echo "$as_me: failed program was:" >&5
 
15755
sed 's/^/| /' conftest.$ac_ext >&5
 
15756
 
 
15757
        ac_cv_type_long_long_int=no
 
15758
fi
 
15759
 
 
15760
rm -rf conftest.dSYM
 
15761
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15762
      conftest$ac_exeext conftest.$ac_ext
 
15763
fi
 
15764
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
 
15765
$as_echo "$ac_cv_type_long_long_int" >&6; }
 
15766
  if test $ac_cv_type_long_long_int = yes; then
 
15767
 
 
15768
cat >>confdefs.h <<\_ACEOF
 
15769
#define HAVE_LONG_LONG_INT 1
 
15770
_ACEOF
 
15771
 
 
15772
  fi
 
15773
 
 
15774
 
 
15775
  { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
 
15776
$as_echo_n "checking for unsigned long long int... " >&6; }
 
15777
if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
 
15778
  $as_echo_n "(cached) " >&6
 
15779
else
 
15780
  cat >conftest.$ac_ext <<_ACEOF
 
15781
 
 
15782
  /* confdefs.h.  */
 
15783
_ACEOF
 
15784
cat confdefs.h >>conftest.$ac_ext
 
15785
cat >>conftest.$ac_ext <<_ACEOF
 
15786
/* end confdefs.h.  */
 
15787
/* For now, do not test the preprocessor; as of 2007 there are too many
 
15788
         implementations with broken preprocessors.  Perhaps this can
 
15789
         be revisited in 2012.  In the meantime, code should not expect
 
15790
         #if to work with literals wider than 32 bits.  */
 
15791
      /* Test literals.  */
 
15792
      long long int ll = 9223372036854775807ll;
 
15793
      long long int nll = -9223372036854775807LL;
 
15794
      unsigned long long int ull = 18446744073709551615ULL;
 
15795
      /* Test constant expressions.   */
 
15796
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
 
15797
                     ? 1 : -1)];
 
15798
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
 
15799
                     ? 1 : -1)];
 
15800
      int i = 63;
 
15801
int
 
15802
main ()
 
15803
{
 
15804
/* Test availability of runtime routines for shift and division.  */
 
15805
      long long int llmax = 9223372036854775807ll;
 
15806
      unsigned long long int ullmax = 18446744073709551615ull;
 
15807
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
 
15808
              | (llmax / ll) | (llmax % ll)
 
15809
              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
 
15810
              | (ullmax / ull) | (ullmax % ull));
 
15811
  ;
 
15812
  return 0;
 
15813
}
 
15814
 
 
15815
_ACEOF
 
15816
rm -f conftest.$ac_objext conftest$ac_exeext
 
15817
if { (ac_try="$ac_link"
 
15818
case "(($ac_try" in
 
15819
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15820
  *) ac_try_echo=$ac_try;;
 
15821
esac
 
15822
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15823
$as_echo "$ac_try_echo") >&5
 
15824
  (eval "$ac_link") 2>conftest.er1
 
15825
  ac_status=$?
 
15826
  grep -v '^ *+' conftest.er1 >conftest.err
 
15827
  rm -f conftest.er1
 
15828
  cat conftest.err >&5
 
15829
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15830
  (exit $ac_status); } && {
 
15831
         test -z "$ac_c_werror_flag" ||
 
15832
         test ! -s conftest.err
 
15833
       } && test -s conftest$ac_exeext && {
 
15834
         test "$cross_compiling" = yes ||
 
15835
         $as_test_x conftest$ac_exeext
 
15836
       }; then
 
15837
  ac_cv_type_unsigned_long_long_int=yes
 
15838
else
 
15839
  $as_echo "$as_me: failed program was:" >&5
 
15840
sed 's/^/| /' conftest.$ac_ext >&5
 
15841
 
 
15842
        ac_cv_type_unsigned_long_long_int=no
 
15843
fi
 
15844
 
 
15845
rm -rf conftest.dSYM
 
15846
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15847
      conftest$ac_exeext conftest.$ac_ext
 
15848
fi
 
15849
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
 
15850
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
 
15851
  if test $ac_cv_type_unsigned_long_long_int = yes; then
 
15852
 
 
15853
cat >>confdefs.h <<\_ACEOF
 
15854
#define HAVE_UNSIGNED_LONG_LONG_INT 1
 
15855
_ACEOF
 
15856
 
 
15857
  fi
 
15858
 
 
15859
 
 
15860
 
 
15861
 
 
15862
 
 
15863
 
 
15864
 
 
15865
 
 
15866
 
 
15867
 
 
15868
 
 
15869
 
 
15870
 
 
15871
 
 
15872
 
 
15873
 
 
15874
 
 
15875
 
 
15876
 
 
15877
 
 
15878
 
 
15879
 
 
15880
 
 
15881
 
 
15882
 
 
15883
 
 
15884
  GNULIB_CHOWN=0;
 
15885
  GNULIB_DUP2=0;
 
15886
  GNULIB_ENVIRON=0;
 
15887
  GNULIB_FCHDIR=0;
 
15888
  GNULIB_FSYNC=0;
 
15889
  GNULIB_FTRUNCATE=0;
 
15890
  GNULIB_GETCWD=0;
 
15891
  GNULIB_GETDTABLESIZE=0;
 
15892
  GNULIB_GETLOGIN_R=0;
 
15893
  GNULIB_GETPAGESIZE=0;
 
15894
  GNULIB_LCHOWN=0;
 
15895
  GNULIB_LSEEK=0;
 
15896
  GNULIB_READLINK=0;
 
15897
  GNULIB_SLEEP=0;
 
15898
  GNULIB_UNISTD_H_SIGPIPE=0;
 
15899
  GNULIB_WRITE=0;
 
15900
    HAVE_DUP2=1;
 
15901
  HAVE_FSYNC=1;
 
15902
  HAVE_FTRUNCATE=1;
 
15903
  HAVE_GETDTABLESIZE=1;
 
15904
  HAVE_GETPAGESIZE=1;
 
15905
  HAVE_READLINK=1;
 
15906
  HAVE_SLEEP=1;
 
15907
  HAVE_DECL_ENVIRON=1;
 
15908
  HAVE_DECL_GETLOGIN_R=1;
 
15909
  HAVE_OS_H=0;
 
15910
  HAVE_SYS_PARAM_H=0;
 
15911
  REPLACE_CHOWN=0;
 
15912
  REPLACE_FCHDIR=0;
 
15913
  REPLACE_GETCWD=0;
 
15914
  REPLACE_GETPAGESIZE=0;
 
15915
  REPLACE_LCHOWN=0;
 
15916
  REPLACE_LSEEK=0;
 
15917
  REPLACE_WRITE=0;
 
15918
 
 
15919
 
 
15920
 
 
15921
 
 
15922
 
 
15923
 
 
15924
 
 
15925
 
 
15926
 
 
15927
 
 
15928
 
 
15929
 
 
15930
for ac_func in $gl_func_list
 
15931
do
 
15932
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
15933
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
15934
$as_echo_n "checking for $ac_func... " >&6; }
 
15935
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
15936
  $as_echo_n "(cached) " >&6
 
15937
else
 
15938
  cat >conftest.$ac_ext <<_ACEOF
 
15939
/* confdefs.h.  */
 
15940
_ACEOF
 
15941
cat confdefs.h >>conftest.$ac_ext
 
15942
cat >>conftest.$ac_ext <<_ACEOF
 
15943
/* end confdefs.h.  */
 
15944
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
15945
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
15946
#define $ac_func innocuous_$ac_func
 
15947
 
 
15948
/* System header to define __stub macros and hopefully few prototypes,
 
15949
    which can conflict with char $ac_func (); below.
 
15950
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
15951
    <limits.h> exists even on freestanding compilers.  */
 
15952
 
 
15953
#ifdef __STDC__
 
15954
# include <limits.h>
 
15955
#else
 
15956
# include <assert.h>
 
15957
#endif
 
15958
 
 
15959
#undef $ac_func
 
15960
 
 
15961
/* Override any GCC internal prototype to avoid an error.
 
15962
   Use char because int might match the return type of a GCC
 
15963
   builtin and then its argument prototype would still apply.  */
 
15964
#ifdef __cplusplus
 
15965
extern "C"
 
15966
#endif
 
15967
char $ac_func ();
 
15968
/* The GNU C library defines this for functions which it implements
 
15969
    to always fail with ENOSYS.  Some functions are actually named
 
15970
    something starting with __ and the normal name is an alias.  */
 
15971
#if defined __stub_$ac_func || defined __stub___$ac_func
 
15972
choke me
 
15973
#endif
 
15974
 
 
15975
int
 
15976
main ()
 
15977
{
 
15978
return $ac_func ();
 
15979
  ;
 
15980
  return 0;
 
15981
}
 
15982
_ACEOF
 
15983
rm -f conftest.$ac_objext conftest$ac_exeext
 
15984
if { (ac_try="$ac_link"
 
15985
case "(($ac_try" in
 
15986
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15987
  *) ac_try_echo=$ac_try;;
 
15988
esac
 
15989
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15990
$as_echo "$ac_try_echo") >&5
 
15991
  (eval "$ac_link") 2>conftest.er1
 
15992
  ac_status=$?
 
15993
  grep -v '^ *+' conftest.er1 >conftest.err
 
15994
  rm -f conftest.er1
 
15995
  cat conftest.err >&5
 
15996
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15997
  (exit $ac_status); } && {
 
15998
         test -z "$ac_c_werror_flag" ||
 
15999
         test ! -s conftest.err
 
16000
       } && test -s conftest$ac_exeext && {
 
16001
         test "$cross_compiling" = yes ||
 
16002
         $as_test_x conftest$ac_exeext
 
16003
       }; then
 
16004
  eval "$as_ac_var=yes"
 
16005
else
 
16006
  $as_echo "$as_me: failed program was:" >&5
 
16007
sed 's/^/| /' conftest.$ac_ext >&5
 
16008
 
 
16009
        eval "$as_ac_var=no"
 
16010
fi
 
16011
 
 
16012
rm -rf conftest.dSYM
 
16013
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16014
      conftest$ac_exeext conftest.$ac_ext
 
16015
fi
 
16016
ac_res=`eval 'as_val=${'$as_ac_var'}
 
16017
                 $as_echo "$as_val"'`
 
16018
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
16019
$as_echo "$ac_res" >&6; }
 
16020
as_val=`eval 'as_val=${'$as_ac_var'}
 
16021
                 $as_echo "$as_val"'`
 
16022
   if test "x$as_val" = x""yes; then
 
16023
  cat >>confdefs.h <<_ACEOF
 
16024
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
16025
_ACEOF
 
16026
 
 
16027
fi
 
16028
done
 
16029
 
 
16030
 
 
16031
 
 
16032
 
 
16033
 
 
16034
 
 
16035
 
 
16036
  { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
 
16037
$as_echo_n "checking for wchar_t... " >&6; }
 
16038
if test "${gt_cv_c_wchar_t+set}" = set; then
 
16039
  $as_echo_n "(cached) " >&6
 
16040
else
 
16041
  cat >conftest.$ac_ext <<_ACEOF
 
16042
/* confdefs.h.  */
 
16043
_ACEOF
 
16044
cat confdefs.h >>conftest.$ac_ext
 
16045
cat >>conftest.$ac_ext <<_ACEOF
 
16046
/* end confdefs.h.  */
 
16047
#include <stddef.h>
 
16048
       wchar_t foo = (wchar_t)'\0';
 
16049
int
 
16050
main ()
 
16051
{
 
16052
 
 
16053
  ;
 
16054
  return 0;
 
16055
}
 
16056
_ACEOF
 
16057
rm -f conftest.$ac_objext
 
16058
if { (ac_try="$ac_compile"
 
16059
case "(($ac_try" in
 
16060
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16061
  *) ac_try_echo=$ac_try;;
 
16062
esac
 
16063
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
16064
$as_echo "$ac_try_echo") >&5
 
16065
  (eval "$ac_compile") 2>conftest.er1
 
16066
  ac_status=$?
 
16067
  grep -v '^ *+' conftest.er1 >conftest.err
 
16068
  rm -f conftest.er1
 
16069
  cat conftest.err >&5
 
16070
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16071
  (exit $ac_status); } && {
 
16072
         test -z "$ac_c_werror_flag" ||
 
16073
         test ! -s conftest.err
 
16074
       } && test -s conftest.$ac_objext; then
 
16075
  gt_cv_c_wchar_t=yes
 
16076
else
 
16077
  $as_echo "$as_me: failed program was:" >&5
 
16078
sed 's/^/| /' conftest.$ac_ext >&5
 
16079
 
 
16080
        gt_cv_c_wchar_t=no
 
16081
fi
 
16082
 
 
16083
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16084
fi
 
16085
{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
 
16086
$as_echo "$gt_cv_c_wchar_t" >&6; }
 
16087
  if test $gt_cv_c_wchar_t = yes; then
 
16088
 
 
16089
cat >>confdefs.h <<\_ACEOF
 
16090
#define HAVE_WCHAR_T 1
 
16091
_ACEOF
 
16092
 
 
16093
  fi
 
16094
 
 
16095
 
 
16096
  { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
 
16097
$as_echo_n "checking for wint_t... " >&6; }
 
16098
if test "${gt_cv_c_wint_t+set}" = set; then
 
16099
  $as_echo_n "(cached) " >&6
 
16100
else
 
16101
  cat >conftest.$ac_ext <<_ACEOF
 
16102
/* confdefs.h.  */
 
16103
_ACEOF
 
16104
cat confdefs.h >>conftest.$ac_ext
 
16105
cat >>conftest.$ac_ext <<_ACEOF
 
16106
/* end confdefs.h.  */
 
16107
 
 
16108
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
 
16109
   <wchar.h>.
 
16110
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
 
16111
   before <wchar.h>.  */
 
16112
#include <stddef.h>
 
16113
#include <stdio.h>
 
16114
#include <time.h>
 
16115
#include <wchar.h>
 
16116
       wint_t foo = (wchar_t)'\0';
 
16117
int
 
16118
main ()
 
16119
{
 
16120
 
 
16121
  ;
 
16122
  return 0;
 
16123
}
 
16124
_ACEOF
 
16125
rm -f conftest.$ac_objext
 
16126
if { (ac_try="$ac_compile"
 
16127
case "(($ac_try" in
 
16128
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16129
  *) ac_try_echo=$ac_try;;
 
16130
esac
 
16131
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
16132
$as_echo "$ac_try_echo") >&5
 
16133
  (eval "$ac_compile") 2>conftest.er1
 
16134
  ac_status=$?
 
16135
  grep -v '^ *+' conftest.er1 >conftest.err
 
16136
  rm -f conftest.er1
 
16137
  cat conftest.err >&5
 
16138
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16139
  (exit $ac_status); } && {
 
16140
         test -z "$ac_c_werror_flag" ||
 
16141
         test ! -s conftest.err
 
16142
       } && test -s conftest.$ac_objext; then
 
16143
  gt_cv_c_wint_t=yes
 
16144
else
 
16145
  $as_echo "$as_me: failed program was:" >&5
 
16146
sed 's/^/| /' conftest.$ac_ext >&5
 
16147
 
 
16148
        gt_cv_c_wint_t=no
 
16149
fi
 
16150
 
 
16151
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16152
fi
 
16153
{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
 
16154
$as_echo "$gt_cv_c_wint_t" >&6; }
 
16155
  if test $gt_cv_c_wint_t = yes; then
 
16156
 
 
16157
cat >>confdefs.h <<\_ACEOF
 
16158
#define HAVE_WINT_T 1
 
16159
_ACEOF
 
16160
 
 
16161
  fi
 
16162
 
 
16163
{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
 
16164
$as_echo_n "checking for size_t... " >&6; }
 
16165
if test "${ac_cv_type_size_t+set}" = set; then
 
16166
  $as_echo_n "(cached) " >&6
 
16167
else
 
16168
  ac_cv_type_size_t=no
 
16169
cat >conftest.$ac_ext <<_ACEOF
 
16170
/* confdefs.h.  */
 
16171
_ACEOF
 
16172
cat confdefs.h >>conftest.$ac_ext
 
16173
cat >>conftest.$ac_ext <<_ACEOF
 
16174
/* end confdefs.h.  */
 
16175
$ac_includes_default
 
16176
int
 
16177
main ()
 
16178
{
 
16179
if (sizeof (size_t))
 
16180
       return 0;
 
16181
  ;
 
16182
  return 0;
 
16183
}
 
16184
_ACEOF
 
16185
rm -f conftest.$ac_objext
 
16186
if { (ac_try="$ac_compile"
 
16187
case "(($ac_try" in
 
16188
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16189
  *) ac_try_echo=$ac_try;;
 
16190
esac
 
16191
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
16192
$as_echo "$ac_try_echo") >&5
 
16193
  (eval "$ac_compile") 2>conftest.er1
 
16194
  ac_status=$?
 
16195
  grep -v '^ *+' conftest.er1 >conftest.err
 
16196
  rm -f conftest.er1
 
16197
  cat conftest.err >&5
 
16198
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16199
  (exit $ac_status); } && {
 
16200
         test -z "$ac_c_werror_flag" ||
 
16201
         test ! -s conftest.err
 
16202
       } && test -s conftest.$ac_objext; then
 
16203
  cat >conftest.$ac_ext <<_ACEOF
 
16204
/* confdefs.h.  */
 
16205
_ACEOF
 
16206
cat confdefs.h >>conftest.$ac_ext
 
16207
cat >>conftest.$ac_ext <<_ACEOF
 
16208
/* end confdefs.h.  */
 
16209
$ac_includes_default
 
16210
int
 
16211
main ()
 
16212
{
 
16213
if (sizeof ((size_t)))
 
16214
          return 0;
 
16215
  ;
 
16216
  return 0;
 
16217
}
 
16218
_ACEOF
 
16219
rm -f conftest.$ac_objext
 
16220
if { (ac_try="$ac_compile"
 
16221
case "(($ac_try" in
 
16222
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16223
  *) ac_try_echo=$ac_try;;
 
16224
esac
 
16225
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
16226
$as_echo "$ac_try_echo") >&5
 
16227
  (eval "$ac_compile") 2>conftest.er1
 
16228
  ac_status=$?
 
16229
  grep -v '^ *+' conftest.er1 >conftest.err
 
16230
  rm -f conftest.er1
 
16231
  cat conftest.err >&5
 
16232
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16233
  (exit $ac_status); } && {
 
16234
         test -z "$ac_c_werror_flag" ||
 
16235
         test ! -s conftest.err
 
16236
       } && test -s conftest.$ac_objext; then
 
16237
  :
 
16238
else
 
16239
  $as_echo "$as_me: failed program was:" >&5
 
16240
sed 's/^/| /' conftest.$ac_ext >&5
 
16241
 
 
16242
        ac_cv_type_size_t=yes
 
16243
fi
 
16244
 
 
16245
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16246
else
 
16247
  $as_echo "$as_me: failed program was:" >&5
 
16248
sed 's/^/| /' conftest.$ac_ext >&5
 
16249
 
 
16250
 
 
16251
fi
 
16252
 
 
16253
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16254
fi
 
16255
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
16256
$as_echo "$ac_cv_type_size_t" >&6; }
 
16257
if test "x$ac_cv_type_size_t" = x""yes; then
 
16258
  :
 
16259
else
 
16260
 
 
16261
cat >>confdefs.h <<_ACEOF
 
16262
#define size_t unsigned int
 
16263
_ACEOF
 
16264
 
 
16265
fi
 
16266
 
 
16267
 
 
16268
  { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
 
16269
$as_echo_n "checking for inttypes.h... " >&6; }
 
16270
if test "${gl_cv_header_inttypes_h+set}" = set; then
 
16271
  $as_echo_n "(cached) " >&6
 
16272
else
 
16273
  cat >conftest.$ac_ext <<_ACEOF
 
16274
/* confdefs.h.  */
 
16275
_ACEOF
 
16276
cat confdefs.h >>conftest.$ac_ext
 
16277
cat >>conftest.$ac_ext <<_ACEOF
 
16278
/* end confdefs.h.  */
 
16279
#include <sys/types.h>
 
16280
#include <inttypes.h>
 
16281
int
 
16282
main ()
 
16283
{
 
16284
uintmax_t i = (uintmax_t) -1; return !i;
 
16285
  ;
 
16286
  return 0;
 
16287
}
 
16288
_ACEOF
 
16289
rm -f conftest.$ac_objext
 
16290
if { (ac_try="$ac_compile"
 
16291
case "(($ac_try" in
 
16292
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16293
  *) ac_try_echo=$ac_try;;
 
16294
esac
 
16295
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
16296
$as_echo "$ac_try_echo") >&5
 
16297
  (eval "$ac_compile") 2>conftest.er1
 
16298
  ac_status=$?
 
16299
  grep -v '^ *+' conftest.er1 >conftest.err
 
16300
  rm -f conftest.er1
 
16301
  cat conftest.err >&5
 
16302
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16303
  (exit $ac_status); } && {
 
16304
         test -z "$ac_c_werror_flag" ||
 
16305
         test ! -s conftest.err
 
16306
       } && test -s conftest.$ac_objext; then
 
16307
  gl_cv_header_inttypes_h=yes
 
16308
else
 
16309
  $as_echo "$as_me: failed program was:" >&5
 
16310
sed 's/^/| /' conftest.$ac_ext >&5
 
16311
 
 
16312
        gl_cv_header_inttypes_h=no
 
16313
fi
 
16314
 
 
16315
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16316
fi
 
16317
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
 
16318
$as_echo "$gl_cv_header_inttypes_h" >&6; }
 
16319
  if test $gl_cv_header_inttypes_h = yes; then
 
16320
 
 
16321
cat >>confdefs.h <<_ACEOF
 
16322
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
 
16323
_ACEOF
 
16324
 
 
16325
  fi
 
16326
 
 
16327
 
 
16328
  { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
 
16329
$as_echo_n "checking for stdint.h... " >&6; }
 
16330
if test "${gl_cv_header_stdint_h+set}" = set; then
 
16331
  $as_echo_n "(cached) " >&6
 
16332
else
 
16333
  cat >conftest.$ac_ext <<_ACEOF
 
16334
/* confdefs.h.  */
 
16335
_ACEOF
 
16336
cat confdefs.h >>conftest.$ac_ext
 
16337
cat >>conftest.$ac_ext <<_ACEOF
 
16338
/* end confdefs.h.  */
 
16339
#include <sys/types.h>
 
16340
#include <stdint.h>
 
16341
int
 
16342
main ()
 
16343
{
 
16344
uintmax_t i = (uintmax_t) -1; return !i;
 
16345
  ;
 
16346
  return 0;
 
16347
}
 
16348
_ACEOF
 
16349
rm -f conftest.$ac_objext
 
16350
if { (ac_try="$ac_compile"
 
16351
case "(($ac_try" in
 
16352
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16353
  *) ac_try_echo=$ac_try;;
 
16354
esac
 
16355
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
16356
$as_echo "$ac_try_echo") >&5
 
16357
  (eval "$ac_compile") 2>conftest.er1
 
16358
  ac_status=$?
 
16359
  grep -v '^ *+' conftest.er1 >conftest.err
 
16360
  rm -f conftest.er1
 
16361
  cat conftest.err >&5
 
16362
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16363
  (exit $ac_status); } && {
 
16364
         test -z "$ac_c_werror_flag" ||
 
16365
         test ! -s conftest.err
 
16366
       } && test -s conftest.$ac_objext; then
 
16367
  gl_cv_header_stdint_h=yes
 
16368
else
 
16369
  $as_echo "$as_me: failed program was:" >&5
 
16370
sed 's/^/| /' conftest.$ac_ext >&5
 
16371
 
 
16372
        gl_cv_header_stdint_h=no
 
16373
fi
 
16374
 
 
16375
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16376
fi
 
16377
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
 
16378
$as_echo "$gl_cv_header_stdint_h" >&6; }
 
16379
  if test $gl_cv_header_stdint_h = yes; then
 
16380
 
 
16381
cat >>confdefs.h <<_ACEOF
 
16382
#define HAVE_STDINT_H_WITH_UINTMAX 1
 
16383
_ACEOF
 
16384
 
 
16385
  fi
 
16386
 
 
16387
 
 
16388
 
 
16389
 
 
16390
  { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
 
16391
$as_echo_n "checking for intmax_t... " >&6; }
 
16392
if test "${gt_cv_c_intmax_t+set}" = set; then
 
16393
  $as_echo_n "(cached) " >&6
 
16394
else
 
16395
  cat >conftest.$ac_ext <<_ACEOF
 
16396
/* confdefs.h.  */
 
16397
_ACEOF
 
16398
cat confdefs.h >>conftest.$ac_ext
 
16399
cat >>conftest.$ac_ext <<_ACEOF
 
16400
/* end confdefs.h.  */
 
16401
 
 
16402
#include <stddef.h>
 
16403
#include <stdlib.h>
 
16404
#if HAVE_STDINT_H_WITH_UINTMAX
 
16405
#include <stdint.h>
 
16406
#endif
 
16407
#if HAVE_INTTYPES_H_WITH_UINTMAX
 
16408
#include <inttypes.h>
 
16409
#endif
 
16410
 
 
16411
int
 
16412
main ()
 
16413
{
 
16414
intmax_t x = -1; return !x;
 
16415
  ;
 
16416
  return 0;
 
16417
}
 
16418
_ACEOF
 
16419
rm -f conftest.$ac_objext
 
16420
if { (ac_try="$ac_compile"
 
16421
case "(($ac_try" in
 
16422
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16423
  *) ac_try_echo=$ac_try;;
 
16424
esac
 
16425
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
16426
$as_echo "$ac_try_echo") >&5
 
16427
  (eval "$ac_compile") 2>conftest.er1
 
16428
  ac_status=$?
 
16429
  grep -v '^ *+' conftest.er1 >conftest.err
 
16430
  rm -f conftest.er1
 
16431
  cat conftest.err >&5
 
16432
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16433
  (exit $ac_status); } && {
 
16434
         test -z "$ac_c_werror_flag" ||
 
16435
         test ! -s conftest.err
 
16436
       } && test -s conftest.$ac_objext; then
 
16437
  gt_cv_c_intmax_t=yes
 
16438
else
 
16439
  $as_echo "$as_me: failed program was:" >&5
 
16440
sed 's/^/| /' conftest.$ac_ext >&5
 
16441
 
 
16442
        gt_cv_c_intmax_t=no
 
16443
fi
 
16444
 
 
16445
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16446
fi
 
16447
{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
 
16448
$as_echo "$gt_cv_c_intmax_t" >&6; }
 
16449
  if test $gt_cv_c_intmax_t = yes; then
 
16450
 
 
16451
cat >>confdefs.h <<\_ACEOF
 
16452
#define HAVE_INTMAX_T 1
 
16453
_ACEOF
 
16454
 
 
16455
  else
 
16456
 
 
16457
    test $ac_cv_type_long_long_int = yes \
 
16458
      && ac_type='long long' \
 
16459
      || ac_type='long'
 
16460
 
 
16461
cat >>confdefs.h <<_ACEOF
 
16462
#define intmax_t $ac_type
 
16463
_ACEOF
 
16464
 
 
16465
  fi
 
16466
 
 
16467
 
 
16468
  GNULIB_WCWIDTH=0;
 
16469
    HAVE_DECL_WCWIDTH=1;
 
16470
  REPLACE_WCWIDTH=0;
 
16471
  WCHAR_H='';
 
16472
 
 
16473
 
 
16474
   if true; then
 
16475
  GL_COND_LIBTOOL_TRUE=
 
16476
  GL_COND_LIBTOOL_FALSE='#'
 
16477
else
 
16478
  GL_COND_LIBTOOL_TRUE='#'
 
16479
  GL_COND_LIBTOOL_FALSE=
 
16480
fi
 
16481
 
 
16482
  gl_cond_libtool=true
 
16483
 
 
16484
 
 
16485
 
 
16486
 
 
16487
 
 
16488
 
 
16489
 
 
16490
 
 
16491
  gl_source_base='gnulib/lib'
 
16492
 
 
16493
 
 
16494
 
 
16495
 
 
16496
 
 
16497
  if test $ac_cv_func_alloca_works = no; then
 
16498
    :
 
16499
  fi
 
16500
 
 
16501
  # Define an additional variable used in the Makefile substitution.
 
16502
  if test $ac_cv_working_alloca_h = yes; then
 
16503
    { $as_echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
 
16504
$as_echo_n "checking for alloca as a compiler built-in... " >&6; }
 
16505
if test "${gl_cv_rpl_alloca+set}" = set; then
 
16506
  $as_echo_n "(cached) " >&6
 
16507
else
 
16508
 
 
16509
      cat >conftest.$ac_ext <<_ACEOF
 
16510
/* confdefs.h.  */
 
16511
_ACEOF
 
16512
cat confdefs.h >>conftest.$ac_ext
 
16513
cat >>conftest.$ac_ext <<_ACEOF
 
16514
/* end confdefs.h.  */
 
16515
 
 
16516
#if defined __GNUC__ || defined _AIX || defined _MSC_VER
 
16517
        Need own alloca
 
16518
#endif
 
16519
 
 
16520
_ACEOF
 
16521
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
16522
  $EGREP "Need own alloca" >/dev/null 2>&1; then
 
16523
  gl_cv_rpl_alloca=yes
 
16524
else
 
16525
  gl_cv_rpl_alloca=no
 
16526
fi
 
16527
rm -f conftest*
 
16528
 
 
16529
 
 
16530
fi
 
16531
{ $as_echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
 
16532
$as_echo "$gl_cv_rpl_alloca" >&6; }
 
16533
    if test $gl_cv_rpl_alloca = yes; then
 
16534
 
 
16535
cat >>confdefs.h <<\_ACEOF
 
16536
#define HAVE_ALLOCA 1
 
16537
_ACEOF
 
16538
 
 
16539
      ALLOCA_H=alloca.h
 
16540
    else
 
16541
                  ALLOCA_H=
 
16542
    fi
 
16543
  else
 
16544
    ALLOCA_H=alloca.h
 
16545
  fi
 
16546
 
 
16547
 
 
16548
 
 
16549
 
 
16550
 
 
16551
 
 
16552
  :
 
16553
 
 
16554
 
 
16555
 
 
16556
 
 
16557
 
 
16558
  if test $ac_cv_header_arpa_inet_h = yes; then
 
16559
    HAVE_ARPA_INET_H=1
 
16560
  else
 
16561
    ARPA_INET_H='arpa/inet.h'
 
16562
    HAVE_ARPA_INET_H=0
 
16563
  fi
 
16564
 
 
16565
 
 
16566
 
 
16567
 
 
16568
  :
 
16569
 
 
16570
 
 
16571
 
 
16572
 
 
16573
 
 
16574
 
 
16575
 
 
16576
     if test $gl_cv_have_include_next = yes; then
 
16577
       gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
 
16578
     else
 
16579
       { $as_echo "$as_me:$LINENO: checking absolute name of <arpa/inet.h>" >&5
 
16580
$as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
 
16581
if test "${gl_cv_next_arpa_inet_h+set}" = set; then
 
16582
  $as_echo_n "(cached) " >&6
 
16583
else
 
16584
 
 
16585
          if test $ac_cv_header_arpa_inet_h = yes; then
 
16586
            cat >conftest.$ac_ext <<_ACEOF
 
16587
/* confdefs.h.  */
 
16588
_ACEOF
 
16589
cat confdefs.h >>conftest.$ac_ext
 
16590
cat >>conftest.$ac_ext <<_ACEOF
 
16591
/* end confdefs.h.  */
 
16592
#include <arpa/inet.h>
 
16593
 
 
16594
_ACEOF
 
16595
                                    gl_cv_next_arpa_inet_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
16596
               sed -n '\#/arpa/inet.h#{
 
16597
                 s#.*"\(.*/arpa/inet.h\)".*#\1#
 
16598
                 s#^/[^/]#//&#
 
16599
                 p
 
16600
                 q
 
16601
               }'`'"'
 
16602
          else
 
16603
            gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
 
16604
          fi
 
16605
 
 
16606
fi
 
16607
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_arpa_inet_h" >&5
 
16608
$as_echo "$gl_cv_next_arpa_inet_h" >&6; }
 
16609
     fi
 
16610
     NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h
 
16611
 
 
16612
 
 
16613
 
 
16614
 
 
16615
  { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
16616
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
16617
if test -z "$MKDIR_P"; then
 
16618
  if test "${ac_cv_path_mkdir+set}" = set; then
 
16619
  $as_echo_n "(cached) " >&6
 
16620
else
 
16621
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16622
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
16623
do
 
16624
  IFS=$as_save_IFS
 
16625
  test -z "$as_dir" && as_dir=.
 
16626
  for ac_prog in mkdir gmkdir; do
 
16627
         for ac_exec_ext in '' $ac_executable_extensions; do
 
16628
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
16629
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
16630
             'mkdir (GNU coreutils) '* | \
 
16631
             'mkdir (coreutils) '* | \
 
16632
             'mkdir (fileutils) '4.1*)
 
16633
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
16634
               break 3;;
 
16635
           esac
 
16636
         done
 
16637
       done
 
16638
done
 
16639
IFS=$as_save_IFS
 
16640
 
 
16641
fi
 
16642
 
 
16643
  if test "${ac_cv_path_mkdir+set}" = set; then
 
16644
    MKDIR_P="$ac_cv_path_mkdir -p"
 
16645
  else
 
16646
    # As a last resort, use the slow shell script.  Don't cache a
 
16647
    # value for MKDIR_P within a source directory, because that will
 
16648
    # break other packages using the cache if that directory is
 
16649
    # removed, or if the value is a relative name.
 
16650
    test -d ./--version && rmdir ./--version
 
16651
    MKDIR_P="$ac_install_sh -d"
 
16652
  fi
 
16653
fi
 
16654
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
16655
$as_echo "$MKDIR_P" >&6; }
 
16656
 
 
16657
 
 
16658
  if test "$ac_cv_header_winsock2_h" = yes; then
 
16659
 
 
16660
 
 
16661
 
 
16662
 
 
16663
 
 
16664
 
 
16665
 
 
16666
 
 
16667
  gl_LIBOBJS="$gl_LIBOBJS winsock.$ac_objext"
 
16668
 
 
16669
  fi
 
16670
 
 
16671
 
 
16672
  GNULIB_CONNECT=1
 
16673
 
 
16674
 
 
16675
cat >>confdefs.h <<\_ACEOF
 
16676
#define GNULIB_CONNECT 1
 
16677
_ACEOF
 
16678
 
 
16679
 
 
16680
 
 
16681
 
 
16682
 
 
16683
 
 
16684
 
 
16685
 
 
16686
 
 
16687
  FLOAT_H=
 
16688
  case "$host_os" in
 
16689
    beos* | openbsd*)
 
16690
      FLOAT_H=float.h
 
16691
 
 
16692
 
 
16693
 
 
16694
  :
 
16695
 
 
16696
 
 
16697
 
 
16698
 
 
16699
 
 
16700
 
 
16701
 
 
16702
     if test $gl_cv_have_include_next = yes; then
 
16703
       gl_cv_next_float_h='<'float.h'>'
 
16704
     else
 
16705
       { $as_echo "$as_me:$LINENO: checking absolute name of <float.h>" >&5
 
16706
$as_echo_n "checking absolute name of <float.h>... " >&6; }
 
16707
if test "${gl_cv_next_float_h+set}" = set; then
 
16708
  $as_echo_n "(cached) " >&6
 
16709
else
 
16710
 
 
16711
          if test $ac_cv_header_float_h = yes; then
 
16712
            cat >conftest.$ac_ext <<_ACEOF
 
16713
/* confdefs.h.  */
 
16714
_ACEOF
 
16715
cat confdefs.h >>conftest.$ac_ext
 
16716
cat >>conftest.$ac_ext <<_ACEOF
 
16717
/* end confdefs.h.  */
 
16718
#include <float.h>
 
16719
 
 
16720
_ACEOF
 
16721
                                    gl_cv_next_float_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
16722
               sed -n '\#/float.h#{
 
16723
                 s#.*"\(.*/float.h\)".*#\1#
 
16724
                 s#^/[^/]#//&#
 
16725
                 p
 
16726
                 q
 
16727
               }'`'"'
 
16728
          else
 
16729
            gl_cv_next_float_h='<'float.h'>'
 
16730
          fi
 
16731
 
 
16732
fi
 
16733
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_float_h" >&5
 
16734
$as_echo "$gl_cv_next_float_h" >&6; }
 
16735
     fi
 
16736
     NEXT_FLOAT_H=$gl_cv_next_float_h
 
16737
 
 
16738
 
 
16739
 
 
16740
      ;;
 
16741
  esac
 
16742
 
 
16743
 
 
16744
 
 
16745
    { $as_echo "$as_me:$LINENO: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
 
16746
$as_echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
 
16747
 
 
16748
 
 
16749
  :
 
16750
 
 
16751
 
 
16752
 
 
16753
 
 
16754
 
 
16755
 
 
16756
  { $as_echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
 
16757
$as_echo_n "checking for library containing getaddrinfo... " >&6; }
 
16758
if test "${ac_cv_search_getaddrinfo+set}" = set; then
 
16759
  $as_echo_n "(cached) " >&6
 
16760
else
 
16761
  ac_func_search_save_LIBS=$LIBS
 
16762
cat >conftest.$ac_ext <<_ACEOF
 
16763
/* confdefs.h.  */
 
16764
_ACEOF
 
16765
cat confdefs.h >>conftest.$ac_ext
 
16766
cat >>conftest.$ac_ext <<_ACEOF
 
16767
/* end confdefs.h.  */
 
16768
 
 
16769
/* Override any GCC internal prototype to avoid an error.
 
16770
   Use char because int might match the return type of a GCC
 
16771
   builtin and then its argument prototype would still apply.  */
 
16772
#ifdef __cplusplus
 
16773
extern "C"
 
16774
#endif
 
16775
char getaddrinfo ();
 
16776
int
 
16777
main ()
 
16778
{
 
16779
return getaddrinfo ();
 
16780
  ;
 
16781
  return 0;
 
16782
}
 
16783
_ACEOF
 
16784
for ac_lib in '' nsl socket; do
 
16785
  if test -z "$ac_lib"; then
 
16786
    ac_res="none required"
 
16787
  else
 
16788
    ac_res=-l$ac_lib
 
16789
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
16790
  fi
 
16791
  rm -f conftest.$ac_objext conftest$ac_exeext
 
16792
if { (ac_try="$ac_link"
 
16793
case "(($ac_try" in
 
16794
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16795
  *) ac_try_echo=$ac_try;;
 
16796
esac
 
16797
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
16798
$as_echo "$ac_try_echo") >&5
 
16799
  (eval "$ac_link") 2>conftest.er1
 
16800
  ac_status=$?
 
16801
  grep -v '^ *+' conftest.er1 >conftest.err
 
16802
  rm -f conftest.er1
 
16803
  cat conftest.err >&5
 
16804
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16805
  (exit $ac_status); } && {
 
16806
         test -z "$ac_c_werror_flag" ||
 
16807
         test ! -s conftest.err
 
16808
       } && test -s conftest$ac_exeext && {
 
16809
         test "$cross_compiling" = yes ||
 
16810
         $as_test_x conftest$ac_exeext
 
16811
       }; then
 
16812
  ac_cv_search_getaddrinfo=$ac_res
 
16813
else
 
16814
  $as_echo "$as_me: failed program was:" >&5
 
16815
sed 's/^/| /' conftest.$ac_ext >&5
 
16816
 
 
16817
 
 
16818
fi
 
16819
 
 
16820
rm -rf conftest.dSYM
 
16821
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16822
      conftest$ac_exeext
 
16823
  if test "${ac_cv_search_getaddrinfo+set}" = set; then
 
16824
  break
 
16825
fi
 
16826
done
 
16827
if test "${ac_cv_search_getaddrinfo+set}" = set; then
 
16828
  :
 
16829
else
 
16830
  ac_cv_search_getaddrinfo=no
 
16831
fi
 
16832
rm conftest.$ac_ext
 
16833
LIBS=$ac_func_search_save_LIBS
 
16834
fi
 
16835
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
 
16836
$as_echo "$ac_cv_search_getaddrinfo" >&6; }
 
16837
ac_res=$ac_cv_search_getaddrinfo
 
16838
if test "$ac_res" != no; then
 
16839
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
16840
 
 
16841
fi
 
16842
 
 
16843
  { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
 
16844
$as_echo_n "checking for getaddrinfo... " >&6; }
 
16845
if test "${gl_cv_func_getaddrinfo+set}" = set; then
 
16846
  $as_echo_n "(cached) " >&6
 
16847
else
 
16848
 
 
16849
    cat >conftest.$ac_ext <<_ACEOF
 
16850
/* confdefs.h.  */
 
16851
_ACEOF
 
16852
cat confdefs.h >>conftest.$ac_ext
 
16853
cat >>conftest.$ac_ext <<_ACEOF
 
16854
/* end confdefs.h.  */
 
16855
 
 
16856
#include <sys/types.h>
 
16857
#ifdef HAVE_SYS_SOCKET_H
 
16858
#include <sys/socket.h>
 
16859
#endif
 
16860
#ifdef HAVE_NETDB_H
 
16861
#include <netdb.h>
 
16862
#endif
 
16863
#include <stddef.h>
 
16864
 
 
16865
int
 
16866
main ()
 
16867
{
 
16868
getaddrinfo("", "", NULL, NULL);
 
16869
  ;
 
16870
  return 0;
 
16871
}
 
16872
_ACEOF
 
16873
rm -f conftest.$ac_objext conftest$ac_exeext
 
16874
if { (ac_try="$ac_link"
 
16875
case "(($ac_try" in
 
16876
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16877
  *) ac_try_echo=$ac_try;;
 
16878
esac
 
16879
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
16880
$as_echo "$ac_try_echo") >&5
 
16881
  (eval "$ac_link") 2>conftest.er1
 
16882
  ac_status=$?
 
16883
  grep -v '^ *+' conftest.er1 >conftest.err
 
16884
  rm -f conftest.er1
 
16885
  cat conftest.err >&5
 
16886
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16887
  (exit $ac_status); } && {
 
16888
         test -z "$ac_c_werror_flag" ||
 
16889
         test ! -s conftest.err
 
16890
       } && test -s conftest$ac_exeext && {
 
16891
         test "$cross_compiling" = yes ||
 
16892
         $as_test_x conftest$ac_exeext
 
16893
       }; then
 
16894
  gl_cv_func_getaddrinfo=yes
 
16895
else
 
16896
  $as_echo "$as_me: failed program was:" >&5
 
16897
sed 's/^/| /' conftest.$ac_ext >&5
 
16898
 
 
16899
        gl_cv_func_getaddrinfo=no
 
16900
fi
 
16901
 
 
16902
rm -rf conftest.dSYM
 
16903
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16904
      conftest$ac_exeext conftest.$ac_ext
 
16905
fi
 
16906
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_getaddrinfo" >&5
 
16907
$as_echo "$gl_cv_func_getaddrinfo" >&6; }
 
16908
  if test $gl_cv_func_getaddrinfo = no; then
 
16909
    { $as_echo "$as_me:$LINENO: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
 
16910
$as_echo_n "checking for getaddrinfo in ws2tcpip.h and -lws2_32... " >&6; }
 
16911
if test "${gl_cv_w32_getaddrinfo+set}" = set; then
 
16912
  $as_echo_n "(cached) " >&6
 
16913
else
 
16914
 
 
16915
      gl_cv_w32_getaddrinfo=no
 
16916
      am_save_LIBS="$LIBS"
 
16917
      LIBS="$LIBS -lws2_32"
 
16918
      cat >conftest.$ac_ext <<_ACEOF
 
16919
/* confdefs.h.  */
 
16920
_ACEOF
 
16921
cat confdefs.h >>conftest.$ac_ext
 
16922
cat >>conftest.$ac_ext <<_ACEOF
 
16923
/* end confdefs.h.  */
 
16924
 
 
16925
#ifdef HAVE_WS2TCPIP_H
 
16926
#include <ws2tcpip.h>
 
16927
#endif
 
16928
#include <stddef.h>
 
16929
 
 
16930
int
 
16931
main ()
 
16932
{
 
16933
getaddrinfo(NULL, NULL, NULL, NULL);
 
16934
  ;
 
16935
  return 0;
 
16936
}
 
16937
_ACEOF
 
16938
rm -f conftest.$ac_objext conftest$ac_exeext
 
16939
if { (ac_try="$ac_link"
 
16940
case "(($ac_try" in
 
16941
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16942
  *) ac_try_echo=$ac_try;;
 
16943
esac
 
16944
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
16945
$as_echo "$ac_try_echo") >&5
 
16946
  (eval "$ac_link") 2>conftest.er1
 
16947
  ac_status=$?
 
16948
  grep -v '^ *+' conftest.er1 >conftest.err
 
16949
  rm -f conftest.er1
 
16950
  cat conftest.err >&5
 
16951
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16952
  (exit $ac_status); } && {
 
16953
         test -z "$ac_c_werror_flag" ||
 
16954
         test ! -s conftest.err
 
16955
       } && test -s conftest$ac_exeext && {
 
16956
         test "$cross_compiling" = yes ||
 
16957
         $as_test_x conftest$ac_exeext
 
16958
       }; then
 
16959
  gl_cv_w32_getaddrinfo=yes
 
16960
else
 
16961
  $as_echo "$as_me: failed program was:" >&5
 
16962
sed 's/^/| /' conftest.$ac_ext >&5
 
16963
 
 
16964
 
 
16965
fi
 
16966
 
 
16967
rm -rf conftest.dSYM
 
16968
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16969
      conftest$ac_exeext conftest.$ac_ext
 
16970
    LIBS="$am_save_LIBS"
 
16971
fi
 
16972
{ $as_echo "$as_me:$LINENO: result: $gl_cv_w32_getaddrinfo" >&5
 
16973
$as_echo "$gl_cv_w32_getaddrinfo" >&6; }
 
16974
    if test "$gl_cv_w32_getaddrinfo" = "yes"; then
 
16975
      LIBS="$LIBS -lws2_32"
 
16976
    else
 
16977
 
 
16978
 
 
16979
 
 
16980
 
 
16981
 
 
16982
 
 
16983
 
 
16984
 
 
16985
  gl_LIBOBJS="$gl_LIBOBJS getaddrinfo.$ac_objext"
 
16986
 
 
16987
    fi
 
16988
  fi
 
16989
 
 
16990
  # We can't use AC_REPLACE_FUNCS here because gai_strerror may be an
 
16991
  # inline function declared in ws2tcpip.h, so we need to get that
 
16992
  # header included somehow.
 
16993
  { $as_echo "$as_me:$LINENO: checking for gai_strerror (possibly via ws2tcpip.h)" >&5
 
16994
$as_echo_n "checking for gai_strerror (possibly via ws2tcpip.h)... " >&6; }
 
16995
if test "${gl_cv_func_gai_strerror+set}" = set; then
 
16996
  $as_echo_n "(cached) " >&6
 
16997
else
 
16998
 
 
16999
      cat >conftest.$ac_ext <<_ACEOF
 
17000
/* confdefs.h.  */
 
17001
_ACEOF
 
17002
cat confdefs.h >>conftest.$ac_ext
 
17003
cat >>conftest.$ac_ext <<_ACEOF
 
17004
/* end confdefs.h.  */
 
17005
 
 
17006
#include <sys/types.h>
 
17007
#ifdef HAVE_SYS_SOCKET_H
 
17008
#include <sys/socket.h>
 
17009
#endif
 
17010
#ifdef HAVE_NETDB_H
 
17011
#include <netdb.h>
 
17012
#endif
 
17013
#ifdef HAVE_WS2TCPIP_H
 
17014
#include <ws2tcpip.h>
 
17015
#endif
 
17016
#include <stddef.h>
 
17017
 
 
17018
int
 
17019
main ()
 
17020
{
 
17021
gai_strerror (NULL);
 
17022
  ;
 
17023
  return 0;
 
17024
}
 
17025
_ACEOF
 
17026
rm -f conftest.$ac_objext conftest$ac_exeext
 
17027
if { (ac_try="$ac_link"
 
17028
case "(($ac_try" in
 
17029
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17030
  *) ac_try_echo=$ac_try;;
 
17031
esac
 
17032
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17033
$as_echo "$ac_try_echo") >&5
 
17034
  (eval "$ac_link") 2>conftest.er1
 
17035
  ac_status=$?
 
17036
  grep -v '^ *+' conftest.er1 >conftest.err
 
17037
  rm -f conftest.er1
 
17038
  cat conftest.err >&5
 
17039
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17040
  (exit $ac_status); } && {
 
17041
         test -z "$ac_c_werror_flag" ||
 
17042
         test ! -s conftest.err
 
17043
       } && test -s conftest$ac_exeext && {
 
17044
         test "$cross_compiling" = yes ||
 
17045
         $as_test_x conftest$ac_exeext
 
17046
       }; then
 
17047
  gl_cv_func_gai_strerror=yes
 
17048
else
 
17049
  $as_echo "$as_me: failed program was:" >&5
 
17050
sed 's/^/| /' conftest.$ac_ext >&5
 
17051
 
 
17052
        gl_cv_func_gai_strerror=no
 
17053
fi
 
17054
 
 
17055
rm -rf conftest.dSYM
 
17056
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17057
      conftest$ac_exeext conftest.$ac_ext
 
17058
fi
 
17059
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_gai_strerror" >&5
 
17060
$as_echo "$gl_cv_func_gai_strerror" >&6; }
 
17061
  if test $gl_cv_func_gai_strerror = no; then
 
17062
 
 
17063
 
 
17064
 
 
17065
 
 
17066
 
 
17067
 
 
17068
 
 
17069
 
 
17070
  gl_LIBOBJS="$gl_LIBOBJS gai_strerror.$ac_objext"
 
17071
 
 
17072
  fi
 
17073
 
 
17074
 
 
17075
    { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
 
17076
$as_echo_n "checking for library containing gethostbyname... " >&6; }
 
17077
if test "${ac_cv_search_gethostbyname+set}" = set; then
 
17078
  $as_echo_n "(cached) " >&6
 
17079
else
 
17080
  ac_func_search_save_LIBS=$LIBS
 
17081
cat >conftest.$ac_ext <<_ACEOF
 
17082
/* confdefs.h.  */
 
17083
_ACEOF
 
17084
cat confdefs.h >>conftest.$ac_ext
 
17085
cat >>conftest.$ac_ext <<_ACEOF
 
17086
/* end confdefs.h.  */
 
17087
 
 
17088
/* Override any GCC internal prototype to avoid an error.
 
17089
   Use char because int might match the return type of a GCC
 
17090
   builtin and then its argument prototype would still apply.  */
 
17091
#ifdef __cplusplus
 
17092
extern "C"
 
17093
#endif
 
17094
char gethostbyname ();
 
17095
int
 
17096
main ()
 
17097
{
 
17098
return gethostbyname ();
 
17099
  ;
 
17100
  return 0;
 
17101
}
 
17102
_ACEOF
 
17103
for ac_lib in '' inet nsl; do
 
17104
  if test -z "$ac_lib"; then
 
17105
    ac_res="none required"
 
17106
  else
 
17107
    ac_res=-l$ac_lib
 
17108
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
17109
  fi
 
17110
  rm -f conftest.$ac_objext conftest$ac_exeext
 
17111
if { (ac_try="$ac_link"
 
17112
case "(($ac_try" in
 
17113
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17114
  *) ac_try_echo=$ac_try;;
 
17115
esac
 
17116
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17117
$as_echo "$ac_try_echo") >&5
 
17118
  (eval "$ac_link") 2>conftest.er1
 
17119
  ac_status=$?
 
17120
  grep -v '^ *+' conftest.er1 >conftest.err
 
17121
  rm -f conftest.er1
 
17122
  cat conftest.err >&5
 
17123
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17124
  (exit $ac_status); } && {
 
17125
         test -z "$ac_c_werror_flag" ||
 
17126
         test ! -s conftest.err
 
17127
       } && test -s conftest$ac_exeext && {
 
17128
         test "$cross_compiling" = yes ||
 
17129
         $as_test_x conftest$ac_exeext
 
17130
       }; then
 
17131
  ac_cv_search_gethostbyname=$ac_res
 
17132
else
 
17133
  $as_echo "$as_me: failed program was:" >&5
 
17134
sed 's/^/| /' conftest.$ac_ext >&5
 
17135
 
 
17136
 
 
17137
fi
 
17138
 
 
17139
rm -rf conftest.dSYM
 
17140
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17141
      conftest$ac_exeext
 
17142
  if test "${ac_cv_search_gethostbyname+set}" = set; then
 
17143
  break
 
17144
fi
 
17145
done
 
17146
if test "${ac_cv_search_gethostbyname+set}" = set; then
 
17147
  :
 
17148
else
 
17149
  ac_cv_search_gethostbyname=no
 
17150
fi
 
17151
rm conftest.$ac_ext
 
17152
LIBS=$ac_func_search_save_LIBS
 
17153
fi
 
17154
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
 
17155
$as_echo "$ac_cv_search_gethostbyname" >&6; }
 
17156
ac_res=$ac_cv_search_gethostbyname
 
17157
if test "$ac_res" != no; then
 
17158
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
17159
 
 
17160
fi
 
17161
 
 
17162
  { $as_echo "$as_me:$LINENO: checking for library containing getservbyname" >&5
 
17163
$as_echo_n "checking for library containing getservbyname... " >&6; }
 
17164
if test "${ac_cv_search_getservbyname+set}" = set; then
 
17165
  $as_echo_n "(cached) " >&6
 
17166
else
 
17167
  ac_func_search_save_LIBS=$LIBS
 
17168
cat >conftest.$ac_ext <<_ACEOF
 
17169
/* confdefs.h.  */
 
17170
_ACEOF
 
17171
cat confdefs.h >>conftest.$ac_ext
 
17172
cat >>conftest.$ac_ext <<_ACEOF
 
17173
/* end confdefs.h.  */
 
17174
 
 
17175
/* Override any GCC internal prototype to avoid an error.
 
17176
   Use char because int might match the return type of a GCC
 
17177
   builtin and then its argument prototype would still apply.  */
 
17178
#ifdef __cplusplus
 
17179
extern "C"
 
17180
#endif
 
17181
char getservbyname ();
 
17182
int
 
17183
main ()
 
17184
{
 
17185
return getservbyname ();
 
17186
  ;
 
17187
  return 0;
 
17188
}
 
17189
_ACEOF
 
17190
for ac_lib in '' inet nsl socket xnet; do
 
17191
  if test -z "$ac_lib"; then
 
17192
    ac_res="none required"
 
17193
  else
 
17194
    ac_res=-l$ac_lib
 
17195
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
17196
  fi
 
17197
  rm -f conftest.$ac_objext conftest$ac_exeext
 
17198
if { (ac_try="$ac_link"
 
17199
case "(($ac_try" in
 
17200
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17201
  *) ac_try_echo=$ac_try;;
 
17202
esac
 
17203
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17204
$as_echo "$ac_try_echo") >&5
 
17205
  (eval "$ac_link") 2>conftest.er1
 
17206
  ac_status=$?
 
17207
  grep -v '^ *+' conftest.er1 >conftest.err
 
17208
  rm -f conftest.er1
 
17209
  cat conftest.err >&5
 
17210
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17211
  (exit $ac_status); } && {
 
17212
         test -z "$ac_c_werror_flag" ||
 
17213
         test ! -s conftest.err
 
17214
       } && test -s conftest$ac_exeext && {
 
17215
         test "$cross_compiling" = yes ||
 
17216
         $as_test_x conftest$ac_exeext
 
17217
       }; then
 
17218
  ac_cv_search_getservbyname=$ac_res
 
17219
else
 
17220
  $as_echo "$as_me: failed program was:" >&5
 
17221
sed 's/^/| /' conftest.$ac_ext >&5
 
17222
 
 
17223
 
 
17224
fi
 
17225
 
 
17226
rm -rf conftest.dSYM
 
17227
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17228
      conftest$ac_exeext
 
17229
  if test "${ac_cv_search_getservbyname+set}" = set; then
 
17230
  break
 
17231
fi
 
17232
done
 
17233
if test "${ac_cv_search_getservbyname+set}" = set; then
 
17234
  :
 
17235
else
 
17236
  ac_cv_search_getservbyname=no
 
17237
fi
 
17238
rm conftest.$ac_ext
 
17239
LIBS=$ac_func_search_save_LIBS
 
17240
fi
 
17241
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname" >&5
 
17242
$as_echo "$ac_cv_search_getservbyname" >&6; }
 
17243
ac_res=$ac_cv_search_getservbyname
 
17244
if test "$ac_res" != no; then
 
17245
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
17246
 
 
17247
fi
 
17248
 
 
17249
 
 
17250
for ac_func in gethostbyname
 
17251
do
 
17252
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
17253
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
17254
$as_echo_n "checking for $ac_func... " >&6; }
 
17255
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
17256
  $as_echo_n "(cached) " >&6
 
17257
else
 
17258
  cat >conftest.$ac_ext <<_ACEOF
 
17259
/* confdefs.h.  */
 
17260
_ACEOF
 
17261
cat confdefs.h >>conftest.$ac_ext
 
17262
cat >>conftest.$ac_ext <<_ACEOF
 
17263
/* end confdefs.h.  */
 
17264
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
17265
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17266
#define $ac_func innocuous_$ac_func
 
17267
 
 
17268
/* System header to define __stub macros and hopefully few prototypes,
 
17269
    which can conflict with char $ac_func (); below.
 
17270
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17271
    <limits.h> exists even on freestanding compilers.  */
 
17272
 
 
17273
#ifdef __STDC__
 
17274
# include <limits.h>
 
17275
#else
 
17276
# include <assert.h>
 
17277
#endif
 
17278
 
 
17279
#undef $ac_func
 
17280
 
 
17281
/* Override any GCC internal prototype to avoid an error.
 
17282
   Use char because int might match the return type of a GCC
 
17283
   builtin and then its argument prototype would still apply.  */
 
17284
#ifdef __cplusplus
 
17285
extern "C"
 
17286
#endif
 
17287
char $ac_func ();
 
17288
/* The GNU C library defines this for functions which it implements
 
17289
    to always fail with ENOSYS.  Some functions are actually named
 
17290
    something starting with __ and the normal name is an alias.  */
 
17291
#if defined __stub_$ac_func || defined __stub___$ac_func
 
17292
choke me
 
17293
#endif
 
17294
 
 
17295
int
 
17296
main ()
 
17297
{
 
17298
return $ac_func ();
 
17299
  ;
 
17300
  return 0;
 
17301
}
 
17302
_ACEOF
 
17303
rm -f conftest.$ac_objext conftest$ac_exeext
 
17304
if { (ac_try="$ac_link"
 
17305
case "(($ac_try" in
 
17306
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17307
  *) ac_try_echo=$ac_try;;
 
17308
esac
 
17309
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17310
$as_echo "$ac_try_echo") >&5
 
17311
  (eval "$ac_link") 2>conftest.er1
 
17312
  ac_status=$?
 
17313
  grep -v '^ *+' conftest.er1 >conftest.err
 
17314
  rm -f conftest.er1
 
17315
  cat conftest.err >&5
 
17316
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17317
  (exit $ac_status); } && {
 
17318
         test -z "$ac_c_werror_flag" ||
 
17319
         test ! -s conftest.err
 
17320
       } && test -s conftest$ac_exeext && {
 
17321
         test "$cross_compiling" = yes ||
 
17322
         $as_test_x conftest$ac_exeext
 
17323
       }; then
 
17324
  eval "$as_ac_var=yes"
 
17325
else
 
17326
  $as_echo "$as_me: failed program was:" >&5
 
17327
sed 's/^/| /' conftest.$ac_ext >&5
 
17328
 
 
17329
        eval "$as_ac_var=no"
 
17330
fi
 
17331
 
 
17332
rm -rf conftest.dSYM
 
17333
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17334
      conftest$ac_exeext conftest.$ac_ext
 
17335
fi
 
17336
ac_res=`eval 'as_val=${'$as_ac_var'}
 
17337
                 $as_echo "$as_val"'`
 
17338
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
17339
$as_echo "$ac_res" >&6; }
 
17340
as_val=`eval 'as_val=${'$as_ac_var'}
 
17341
                 $as_echo "$as_val"'`
 
17342
   if test "x$as_val" = x""yes; then
 
17343
  cat >>confdefs.h <<_ACEOF
 
17344
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
17345
_ACEOF
 
17346
 
 
17347
else
 
17348
 
 
17349
    { $as_echo "$as_me:$LINENO: checking for gethostbyname in winsock2.h and -lws2_32" >&5
 
17350
$as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
 
17351
if test "${gl_cv_w32_gethostbyname+set}" = set; then
 
17352
  $as_echo_n "(cached) " >&6
 
17353
else
 
17354
 
 
17355
      gl_cv_w32_gethostbyname=no
 
17356
      am_save_LIBS="$LIBS"
 
17357
      LIBS="$LIBS -lws2_32"
 
17358
      cat >conftest.$ac_ext <<_ACEOF
 
17359
/* confdefs.h.  */
 
17360
_ACEOF
 
17361
cat confdefs.h >>conftest.$ac_ext
 
17362
cat >>conftest.$ac_ext <<_ACEOF
 
17363
/* end confdefs.h.  */
 
17364
 
 
17365
#ifdef HAVE_WINSOCK2_H
 
17366
#include <winsock2.h>
 
17367
#endif
 
17368
#include <stddef.h>
 
17369
 
 
17370
int
 
17371
main ()
 
17372
{
 
17373
gethostbyname(NULL);
 
17374
  ;
 
17375
  return 0;
 
17376
}
 
17377
_ACEOF
 
17378
rm -f conftest.$ac_objext conftest$ac_exeext
 
17379
if { (ac_try="$ac_link"
 
17380
case "(($ac_try" in
 
17381
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17382
  *) ac_try_echo=$ac_try;;
 
17383
esac
 
17384
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17385
$as_echo "$ac_try_echo") >&5
 
17386
  (eval "$ac_link") 2>conftest.er1
 
17387
  ac_status=$?
 
17388
  grep -v '^ *+' conftest.er1 >conftest.err
 
17389
  rm -f conftest.er1
 
17390
  cat conftest.err >&5
 
17391
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17392
  (exit $ac_status); } && {
 
17393
         test -z "$ac_c_werror_flag" ||
 
17394
         test ! -s conftest.err
 
17395
       } && test -s conftest$ac_exeext && {
 
17396
         test "$cross_compiling" = yes ||
 
17397
         $as_test_x conftest$ac_exeext
 
17398
       }; then
 
17399
  gl_cv_w32_gethostbyname=yes
 
17400
else
 
17401
  $as_echo "$as_me: failed program was:" >&5
 
17402
sed 's/^/| /' conftest.$ac_ext >&5
 
17403
 
 
17404
 
 
17405
fi
 
17406
 
 
17407
rm -rf conftest.dSYM
 
17408
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17409
      conftest$ac_exeext conftest.$ac_ext
 
17410
    LIBS="$am_save_LIBS"
 
17411
fi
 
17412
{ $as_echo "$as_me:$LINENO: result: $gl_cv_w32_gethostbyname" >&5
 
17413
$as_echo "$gl_cv_w32_gethostbyname" >&6; }
 
17414
    if test "$gl_cv_w32_gethostbyname" = "yes"; then
 
17415
      LIBS="$LIBS -lws2_32"
 
17416
    fi
 
17417
 
 
17418
fi
 
17419
done
 
17420
 
 
17421
 
 
17422
 
 
17423
 
 
17424
 
 
17425
 
 
17426
 
 
17427
  :
 
17428
 
 
17429
 
 
17430
 
 
17431
 
 
17432
 
 
17433
 
 
17434
 
 
17435
 
 
17436
  { $as_echo "$as_me:$LINENO: checking whether getaddrinfo is declared" >&5
 
17437
$as_echo_n "checking whether getaddrinfo is declared... " >&6; }
 
17438
if test "${ac_cv_have_decl_getaddrinfo+set}" = set; then
 
17439
  $as_echo_n "(cached) " >&6
 
17440
else
 
17441
  cat >conftest.$ac_ext <<_ACEOF
 
17442
/* confdefs.h.  */
 
17443
_ACEOF
 
17444
cat confdefs.h >>conftest.$ac_ext
 
17445
cat >>conftest.$ac_ext <<_ACEOF
 
17446
/* end confdefs.h.  */
 
17447
 
 
17448
  /* sys/types.h is not needed according to POSIX, but the
 
17449
     sys/socket.h in i386-unknown-freebsd4.10 and
 
17450
     powerpc-apple-darwin5.5 required it. */
 
17451
#include <sys/types.h>
 
17452
#ifdef HAVE_SYS_SOCKET_H
 
17453
#include <sys/socket.h>
 
17454
#endif
 
17455
#ifdef HAVE_NETDB_H
 
17456
#include <netdb.h>
 
17457
#endif
 
17458
#ifdef HAVE_WS2TCPIP_H
 
17459
#include <ws2tcpip.h>
 
17460
#endif
 
17461
 
 
17462
 
 
17463
int
 
17464
main ()
 
17465
{
 
17466
#ifndef getaddrinfo
 
17467
  (void) getaddrinfo;
 
17468
#endif
 
17469
 
 
17470
  ;
 
17471
  return 0;
 
17472
}
 
17473
_ACEOF
 
17474
rm -f conftest.$ac_objext
 
17475
if { (ac_try="$ac_compile"
 
17476
case "(($ac_try" in
 
17477
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17478
  *) ac_try_echo=$ac_try;;
 
17479
esac
 
17480
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17481
$as_echo "$ac_try_echo") >&5
 
17482
  (eval "$ac_compile") 2>conftest.er1
 
17483
  ac_status=$?
 
17484
  grep -v '^ *+' conftest.er1 >conftest.err
 
17485
  rm -f conftest.er1
 
17486
  cat conftest.err >&5
 
17487
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17488
  (exit $ac_status); } && {
 
17489
         test -z "$ac_c_werror_flag" ||
 
17490
         test ! -s conftest.err
 
17491
       } && test -s conftest.$ac_objext; then
 
17492
  ac_cv_have_decl_getaddrinfo=yes
 
17493
else
 
17494
  $as_echo "$as_me: failed program was:" >&5
 
17495
sed 's/^/| /' conftest.$ac_ext >&5
 
17496
 
 
17497
        ac_cv_have_decl_getaddrinfo=no
 
17498
fi
 
17499
 
 
17500
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17501
fi
 
17502
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getaddrinfo" >&5
 
17503
$as_echo "$ac_cv_have_decl_getaddrinfo" >&6; }
 
17504
if test "x$ac_cv_have_decl_getaddrinfo" = x""yes; then
 
17505
 
 
17506
cat >>confdefs.h <<_ACEOF
 
17507
#define HAVE_DECL_GETADDRINFO 1
 
17508
_ACEOF
 
17509
 
 
17510
 
 
17511
else
 
17512
  cat >>confdefs.h <<_ACEOF
 
17513
#define HAVE_DECL_GETADDRINFO 0
 
17514
_ACEOF
 
17515
 
 
17516
 
 
17517
fi
 
17518
{ $as_echo "$as_me:$LINENO: checking whether freeaddrinfo is declared" >&5
 
17519
$as_echo_n "checking whether freeaddrinfo is declared... " >&6; }
 
17520
if test "${ac_cv_have_decl_freeaddrinfo+set}" = set; then
 
17521
  $as_echo_n "(cached) " >&6
 
17522
else
 
17523
  cat >conftest.$ac_ext <<_ACEOF
 
17524
/* confdefs.h.  */
 
17525
_ACEOF
 
17526
cat confdefs.h >>conftest.$ac_ext
 
17527
cat >>conftest.$ac_ext <<_ACEOF
 
17528
/* end confdefs.h.  */
 
17529
 
 
17530
  /* sys/types.h is not needed according to POSIX, but the
 
17531
     sys/socket.h in i386-unknown-freebsd4.10 and
 
17532
     powerpc-apple-darwin5.5 required it. */
 
17533
#include <sys/types.h>
 
17534
#ifdef HAVE_SYS_SOCKET_H
 
17535
#include <sys/socket.h>
 
17536
#endif
 
17537
#ifdef HAVE_NETDB_H
 
17538
#include <netdb.h>
 
17539
#endif
 
17540
#ifdef HAVE_WS2TCPIP_H
 
17541
#include <ws2tcpip.h>
 
17542
#endif
 
17543
 
 
17544
 
 
17545
int
 
17546
main ()
 
17547
{
 
17548
#ifndef freeaddrinfo
 
17549
  (void) freeaddrinfo;
 
17550
#endif
 
17551
 
 
17552
  ;
 
17553
  return 0;
 
17554
}
 
17555
_ACEOF
 
17556
rm -f conftest.$ac_objext
 
17557
if { (ac_try="$ac_compile"
 
17558
case "(($ac_try" in
 
17559
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17560
  *) ac_try_echo=$ac_try;;
 
17561
esac
 
17562
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17563
$as_echo "$ac_try_echo") >&5
 
17564
  (eval "$ac_compile") 2>conftest.er1
 
17565
  ac_status=$?
 
17566
  grep -v '^ *+' conftest.er1 >conftest.err
 
17567
  rm -f conftest.er1
 
17568
  cat conftest.err >&5
 
17569
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17570
  (exit $ac_status); } && {
 
17571
         test -z "$ac_c_werror_flag" ||
 
17572
         test ! -s conftest.err
 
17573
       } && test -s conftest.$ac_objext; then
 
17574
  ac_cv_have_decl_freeaddrinfo=yes
 
17575
else
 
17576
  $as_echo "$as_me: failed program was:" >&5
 
17577
sed 's/^/| /' conftest.$ac_ext >&5
 
17578
 
 
17579
        ac_cv_have_decl_freeaddrinfo=no
 
17580
fi
 
17581
 
 
17582
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17583
fi
 
17584
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_freeaddrinfo" >&5
 
17585
$as_echo "$ac_cv_have_decl_freeaddrinfo" >&6; }
 
17586
if test "x$ac_cv_have_decl_freeaddrinfo" = x""yes; then
 
17587
 
 
17588
cat >>confdefs.h <<_ACEOF
 
17589
#define HAVE_DECL_FREEADDRINFO 1
 
17590
_ACEOF
 
17591
 
 
17592
 
 
17593
else
 
17594
  cat >>confdefs.h <<_ACEOF
 
17595
#define HAVE_DECL_FREEADDRINFO 0
 
17596
_ACEOF
 
17597
 
 
17598
 
 
17599
fi
 
17600
{ $as_echo "$as_me:$LINENO: checking whether gai_strerror is declared" >&5
 
17601
$as_echo_n "checking whether gai_strerror is declared... " >&6; }
 
17602
if test "${ac_cv_have_decl_gai_strerror+set}" = set; then
 
17603
  $as_echo_n "(cached) " >&6
 
17604
else
 
17605
  cat >conftest.$ac_ext <<_ACEOF
 
17606
/* confdefs.h.  */
 
17607
_ACEOF
 
17608
cat confdefs.h >>conftest.$ac_ext
 
17609
cat >>conftest.$ac_ext <<_ACEOF
 
17610
/* end confdefs.h.  */
 
17611
 
 
17612
  /* sys/types.h is not needed according to POSIX, but the
 
17613
     sys/socket.h in i386-unknown-freebsd4.10 and
 
17614
     powerpc-apple-darwin5.5 required it. */
 
17615
#include <sys/types.h>
 
17616
#ifdef HAVE_SYS_SOCKET_H
 
17617
#include <sys/socket.h>
 
17618
#endif
 
17619
#ifdef HAVE_NETDB_H
 
17620
#include <netdb.h>
 
17621
#endif
 
17622
#ifdef HAVE_WS2TCPIP_H
 
17623
#include <ws2tcpip.h>
 
17624
#endif
 
17625
 
 
17626
 
 
17627
int
 
17628
main ()
 
17629
{
 
17630
#ifndef gai_strerror
 
17631
  (void) gai_strerror;
 
17632
#endif
 
17633
 
 
17634
  ;
 
17635
  return 0;
 
17636
}
 
17637
_ACEOF
 
17638
rm -f conftest.$ac_objext
 
17639
if { (ac_try="$ac_compile"
 
17640
case "(($ac_try" in
 
17641
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17642
  *) ac_try_echo=$ac_try;;
 
17643
esac
 
17644
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17645
$as_echo "$ac_try_echo") >&5
 
17646
  (eval "$ac_compile") 2>conftest.er1
 
17647
  ac_status=$?
 
17648
  grep -v '^ *+' conftest.er1 >conftest.err
 
17649
  rm -f conftest.er1
 
17650
  cat conftest.err >&5
 
17651
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17652
  (exit $ac_status); } && {
 
17653
         test -z "$ac_c_werror_flag" ||
 
17654
         test ! -s conftest.err
 
17655
       } && test -s conftest.$ac_objext; then
 
17656
  ac_cv_have_decl_gai_strerror=yes
 
17657
else
 
17658
  $as_echo "$as_me: failed program was:" >&5
 
17659
sed 's/^/| /' conftest.$ac_ext >&5
 
17660
 
 
17661
        ac_cv_have_decl_gai_strerror=no
 
17662
fi
 
17663
 
 
17664
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17665
fi
 
17666
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_gai_strerror" >&5
 
17667
$as_echo "$ac_cv_have_decl_gai_strerror" >&6; }
 
17668
if test "x$ac_cv_have_decl_gai_strerror" = x""yes; then
 
17669
 
 
17670
cat >>confdefs.h <<_ACEOF
 
17671
#define HAVE_DECL_GAI_STRERROR 1
 
17672
_ACEOF
 
17673
 
 
17674
 
 
17675
else
 
17676
  cat >>confdefs.h <<_ACEOF
 
17677
#define HAVE_DECL_GAI_STRERROR 0
 
17678
_ACEOF
 
17679
 
 
17680
 
 
17681
fi
 
17682
{ $as_echo "$as_me:$LINENO: checking whether getnameinfo is declared" >&5
 
17683
$as_echo_n "checking whether getnameinfo is declared... " >&6; }
 
17684
if test "${ac_cv_have_decl_getnameinfo+set}" = set; then
 
17685
  $as_echo_n "(cached) " >&6
 
17686
else
 
17687
  cat >conftest.$ac_ext <<_ACEOF
 
17688
/* confdefs.h.  */
 
17689
_ACEOF
 
17690
cat confdefs.h >>conftest.$ac_ext
 
17691
cat >>conftest.$ac_ext <<_ACEOF
 
17692
/* end confdefs.h.  */
 
17693
 
 
17694
  /* sys/types.h is not needed according to POSIX, but the
 
17695
     sys/socket.h in i386-unknown-freebsd4.10 and
 
17696
     powerpc-apple-darwin5.5 required it. */
 
17697
#include <sys/types.h>
 
17698
#ifdef HAVE_SYS_SOCKET_H
 
17699
#include <sys/socket.h>
 
17700
#endif
 
17701
#ifdef HAVE_NETDB_H
 
17702
#include <netdb.h>
 
17703
#endif
 
17704
#ifdef HAVE_WS2TCPIP_H
 
17705
#include <ws2tcpip.h>
 
17706
#endif
 
17707
 
 
17708
 
 
17709
int
 
17710
main ()
 
17711
{
 
17712
#ifndef getnameinfo
 
17713
  (void) getnameinfo;
 
17714
#endif
 
17715
 
 
17716
  ;
 
17717
  return 0;
 
17718
}
 
17719
_ACEOF
 
17720
rm -f conftest.$ac_objext
 
17721
if { (ac_try="$ac_compile"
 
17722
case "(($ac_try" in
 
17723
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17724
  *) ac_try_echo=$ac_try;;
 
17725
esac
 
17726
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17727
$as_echo "$ac_try_echo") >&5
 
17728
  (eval "$ac_compile") 2>conftest.er1
 
17729
  ac_status=$?
 
17730
  grep -v '^ *+' conftest.er1 >conftest.err
 
17731
  rm -f conftest.er1
 
17732
  cat conftest.err >&5
 
17733
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17734
  (exit $ac_status); } && {
 
17735
         test -z "$ac_c_werror_flag" ||
 
17736
         test ! -s conftest.err
 
17737
       } && test -s conftest.$ac_objext; then
 
17738
  ac_cv_have_decl_getnameinfo=yes
 
17739
else
 
17740
  $as_echo "$as_me: failed program was:" >&5
 
17741
sed 's/^/| /' conftest.$ac_ext >&5
 
17742
 
 
17743
        ac_cv_have_decl_getnameinfo=no
 
17744
fi
 
17745
 
 
17746
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17747
fi
 
17748
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getnameinfo" >&5
 
17749
$as_echo "$ac_cv_have_decl_getnameinfo" >&6; }
 
17750
if test "x$ac_cv_have_decl_getnameinfo" = x""yes; then
 
17751
 
 
17752
cat >>confdefs.h <<_ACEOF
 
17753
#define HAVE_DECL_GETNAMEINFO 1
 
17754
_ACEOF
 
17755
 
 
17756
 
 
17757
else
 
17758
  cat >>confdefs.h <<_ACEOF
 
17759
#define HAVE_DECL_GETNAMEINFO 0
 
17760
_ACEOF
 
17761
 
 
17762
 
 
17763
fi
 
17764
 
 
17765
 
 
17766
  { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
 
17767
$as_echo_n "checking for struct addrinfo... " >&6; }
 
17768
if test "${ac_cv_type_struct_addrinfo+set}" = set; then
 
17769
  $as_echo_n "(cached) " >&6
 
17770
else
 
17771
  ac_cv_type_struct_addrinfo=no
 
17772
cat >conftest.$ac_ext <<_ACEOF
 
17773
/* confdefs.h.  */
 
17774
_ACEOF
 
17775
cat confdefs.h >>conftest.$ac_ext
 
17776
cat >>conftest.$ac_ext <<_ACEOF
 
17777
/* end confdefs.h.  */
 
17778
 
 
17779
#include <sys/types.h>
 
17780
#ifdef HAVE_SYS_SOCKET_H
 
17781
#include <sys/socket.h>
 
17782
#endif
 
17783
#ifdef HAVE_NETDB_H
 
17784
#include <netdb.h>
 
17785
#endif
 
17786
#ifdef HAVE_WS2TCPIP_H
 
17787
#include <ws2tcpip.h>
 
17788
#endif
 
17789
 
 
17790
 
 
17791
int
 
17792
main ()
 
17793
{
 
17794
if (sizeof (struct addrinfo))
 
17795
       return 0;
 
17796
  ;
 
17797
  return 0;
 
17798
}
 
17799
_ACEOF
 
17800
rm -f conftest.$ac_objext
 
17801
if { (ac_try="$ac_compile"
 
17802
case "(($ac_try" in
 
17803
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17804
  *) ac_try_echo=$ac_try;;
 
17805
esac
 
17806
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17807
$as_echo "$ac_try_echo") >&5
 
17808
  (eval "$ac_compile") 2>conftest.er1
 
17809
  ac_status=$?
 
17810
  grep -v '^ *+' conftest.er1 >conftest.err
 
17811
  rm -f conftest.er1
 
17812
  cat conftest.err >&5
 
17813
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17814
  (exit $ac_status); } && {
 
17815
         test -z "$ac_c_werror_flag" ||
 
17816
         test ! -s conftest.err
 
17817
       } && test -s conftest.$ac_objext; then
 
17818
  cat >conftest.$ac_ext <<_ACEOF
 
17819
/* confdefs.h.  */
 
17820
_ACEOF
 
17821
cat confdefs.h >>conftest.$ac_ext
 
17822
cat >>conftest.$ac_ext <<_ACEOF
 
17823
/* end confdefs.h.  */
 
17824
 
 
17825
#include <sys/types.h>
 
17826
#ifdef HAVE_SYS_SOCKET_H
 
17827
#include <sys/socket.h>
 
17828
#endif
 
17829
#ifdef HAVE_NETDB_H
 
17830
#include <netdb.h>
 
17831
#endif
 
17832
#ifdef HAVE_WS2TCPIP_H
 
17833
#include <ws2tcpip.h>
 
17834
#endif
 
17835
 
 
17836
 
 
17837
int
 
17838
main ()
 
17839
{
 
17840
if (sizeof ((struct addrinfo)))
 
17841
          return 0;
 
17842
  ;
 
17843
  return 0;
 
17844
}
 
17845
_ACEOF
 
17846
rm -f conftest.$ac_objext
 
17847
if { (ac_try="$ac_compile"
 
17848
case "(($ac_try" in
 
17849
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17850
  *) ac_try_echo=$ac_try;;
 
17851
esac
 
17852
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17853
$as_echo "$ac_try_echo") >&5
 
17854
  (eval "$ac_compile") 2>conftest.er1
 
17855
  ac_status=$?
 
17856
  grep -v '^ *+' conftest.er1 >conftest.err
 
17857
  rm -f conftest.er1
 
17858
  cat conftest.err >&5
 
17859
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17860
  (exit $ac_status); } && {
 
17861
         test -z "$ac_c_werror_flag" ||
 
17862
         test ! -s conftest.err
 
17863
       } && test -s conftest.$ac_objext; then
 
17864
  :
 
17865
else
 
17866
  $as_echo "$as_me: failed program was:" >&5
 
17867
sed 's/^/| /' conftest.$ac_ext >&5
 
17868
 
 
17869
        ac_cv_type_struct_addrinfo=yes
 
17870
fi
 
17871
 
 
17872
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17873
else
 
17874
  $as_echo "$as_me: failed program was:" >&5
 
17875
sed 's/^/| /' conftest.$ac_ext >&5
 
17876
 
 
17877
 
 
17878
fi
 
17879
 
 
17880
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17881
fi
 
17882
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
 
17883
$as_echo "$ac_cv_type_struct_addrinfo" >&6; }
 
17884
if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
 
17885
 
 
17886
cat >>confdefs.h <<_ACEOF
 
17887
#define HAVE_STRUCT_ADDRINFO 1
 
17888
_ACEOF
 
17889
 
 
17890
 
 
17891
fi
 
17892
 
 
17893
 
 
17894
 
 
17895
 
 
17896
 
 
17897
 
 
17898
 
 
17899
 
 
17900
 
 
17901
 
 
17902
  ARPA_INET_H='arpa/inet.h'
 
17903
 
 
17904
 
 
17905
 
 
17906
 
 
17907
 
 
17908
 
 
17909
 
 
17910
 
 
17911
 
 
17912
 
 
17913
 
 
17914
for ac_func in inet_ntop
 
17915
do
 
17916
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
17917
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
17918
$as_echo_n "checking for $ac_func... " >&6; }
 
17919
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
17920
  $as_echo_n "(cached) " >&6
 
17921
else
 
17922
  cat >conftest.$ac_ext <<_ACEOF
 
17923
/* confdefs.h.  */
 
17924
_ACEOF
 
17925
cat confdefs.h >>conftest.$ac_ext
 
17926
cat >>conftest.$ac_ext <<_ACEOF
 
17927
/* end confdefs.h.  */
 
17928
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
17929
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17930
#define $ac_func innocuous_$ac_func
 
17931
 
 
17932
/* System header to define __stub macros and hopefully few prototypes,
 
17933
    which can conflict with char $ac_func (); below.
 
17934
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17935
    <limits.h> exists even on freestanding compilers.  */
 
17936
 
 
17937
#ifdef __STDC__
 
17938
# include <limits.h>
 
17939
#else
 
17940
# include <assert.h>
 
17941
#endif
 
17942
 
 
17943
#undef $ac_func
 
17944
 
 
17945
/* Override any GCC internal prototype to avoid an error.
 
17946
   Use char because int might match the return type of a GCC
 
17947
   builtin and then its argument prototype would still apply.  */
 
17948
#ifdef __cplusplus
 
17949
extern "C"
 
17950
#endif
 
17951
char $ac_func ();
 
17952
/* The GNU C library defines this for functions which it implements
 
17953
    to always fail with ENOSYS.  Some functions are actually named
 
17954
    something starting with __ and the normal name is an alias.  */
 
17955
#if defined __stub_$ac_func || defined __stub___$ac_func
 
17956
choke me
 
17957
#endif
 
17958
 
 
17959
int
 
17960
main ()
 
17961
{
 
17962
return $ac_func ();
 
17963
  ;
 
17964
  return 0;
 
17965
}
 
17966
_ACEOF
 
17967
rm -f conftest.$ac_objext conftest$ac_exeext
 
17968
if { (ac_try="$ac_link"
 
17969
case "(($ac_try" in
 
17970
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17971
  *) ac_try_echo=$ac_try;;
 
17972
esac
 
17973
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17974
$as_echo "$ac_try_echo") >&5
 
17975
  (eval "$ac_link") 2>conftest.er1
 
17976
  ac_status=$?
 
17977
  grep -v '^ *+' conftest.er1 >conftest.err
 
17978
  rm -f conftest.er1
 
17979
  cat conftest.err >&5
 
17980
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17981
  (exit $ac_status); } && {
 
17982
         test -z "$ac_c_werror_flag" ||
 
17983
         test ! -s conftest.err
 
17984
       } && test -s conftest$ac_exeext && {
 
17985
         test "$cross_compiling" = yes ||
 
17986
         $as_test_x conftest$ac_exeext
 
17987
       }; then
 
17988
  eval "$as_ac_var=yes"
 
17989
else
 
17990
  $as_echo "$as_me: failed program was:" >&5
 
17991
sed 's/^/| /' conftest.$ac_ext >&5
 
17992
 
 
17993
        eval "$as_ac_var=no"
 
17994
fi
 
17995
 
 
17996
rm -rf conftest.dSYM
 
17997
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17998
      conftest$ac_exeext conftest.$ac_ext
 
17999
fi
 
18000
ac_res=`eval 'as_val=${'$as_ac_var'}
 
18001
                 $as_echo "$as_val"'`
 
18002
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
18003
$as_echo "$ac_res" >&6; }
 
18004
as_val=`eval 'as_val=${'$as_ac_var'}
 
18005
                 $as_echo "$as_val"'`
 
18006
   if test "x$as_val" = x""yes; then
 
18007
  cat >>confdefs.h <<_ACEOF
 
18008
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18009
_ACEOF
 
18010
 
 
18011
else
 
18012
 
 
18013
    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
 
18014
 
 
18015
fi
 
18016
done
 
18017
 
 
18018
 
 
18019
 
 
18020
  { $as_echo "$as_me:$LINENO: checking whether inet_ntop is declared" >&5
 
18021
$as_echo_n "checking whether inet_ntop is declared... " >&6; }
 
18022
if test "${ac_cv_have_decl_inet_ntop+set}" = set; then
 
18023
  $as_echo_n "(cached) " >&6
 
18024
else
 
18025
  cat >conftest.$ac_ext <<_ACEOF
 
18026
/* confdefs.h.  */
 
18027
_ACEOF
 
18028
cat confdefs.h >>conftest.$ac_ext
 
18029
cat >>conftest.$ac_ext <<_ACEOF
 
18030
/* end confdefs.h.  */
 
18031
#include <arpa/inet.h>
 
18032
 
 
18033
int
 
18034
main ()
 
18035
{
 
18036
#ifndef inet_ntop
 
18037
  (void) inet_ntop;
 
18038
#endif
 
18039
 
 
18040
  ;
 
18041
  return 0;
 
18042
}
 
18043
_ACEOF
 
18044
rm -f conftest.$ac_objext
 
18045
if { (ac_try="$ac_compile"
 
18046
case "(($ac_try" in
 
18047
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18048
  *) ac_try_echo=$ac_try;;
 
18049
esac
 
18050
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18051
$as_echo "$ac_try_echo") >&5
 
18052
  (eval "$ac_compile") 2>conftest.er1
 
18053
  ac_status=$?
 
18054
  grep -v '^ *+' conftest.er1 >conftest.err
 
18055
  rm -f conftest.er1
 
18056
  cat conftest.err >&5
 
18057
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18058
  (exit $ac_status); } && {
 
18059
         test -z "$ac_c_werror_flag" ||
 
18060
         test ! -s conftest.err
 
18061
       } && test -s conftest.$ac_objext; then
 
18062
  ac_cv_have_decl_inet_ntop=yes
 
18063
else
 
18064
  $as_echo "$as_me: failed program was:" >&5
 
18065
sed 's/^/| /' conftest.$ac_ext >&5
 
18066
 
 
18067
        ac_cv_have_decl_inet_ntop=no
 
18068
fi
 
18069
 
 
18070
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18071
fi
 
18072
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_ntop" >&5
 
18073
$as_echo "$ac_cv_have_decl_inet_ntop" >&6; }
 
18074
if test "x$ac_cv_have_decl_inet_ntop" = x""yes; then
 
18075
 
 
18076
cat >>confdefs.h <<_ACEOF
 
18077
#define HAVE_DECL_INET_NTOP 1
 
18078
_ACEOF
 
18079
 
 
18080
 
 
18081
else
 
18082
  cat >>confdefs.h <<_ACEOF
 
18083
#define HAVE_DECL_INET_NTOP 0
 
18084
_ACEOF
 
18085
 
 
18086
 
 
18087
fi
 
18088
 
 
18089
 
 
18090
  if test $ac_cv_have_decl_inet_ntop = no; then
 
18091
    HAVE_DECL_INET_NTOP=0
 
18092
  fi
 
18093
 
 
18094
 
 
18095
 
 
18096
 
 
18097
 
 
18098
 
 
18099
  GNULIB_INET_NTOP=1
 
18100
 
 
18101
 
 
18102
for ac_header in stdlib.h
 
18103
do
 
18104
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
18105
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
18106
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
18107
$as_echo_n "checking for $ac_header... " >&6; }
 
18108
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
18109
  $as_echo_n "(cached) " >&6
 
18110
fi
 
18111
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
18112
                 $as_echo "$as_val"'`
 
18113
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
18114
$as_echo "$ac_res" >&6; }
 
18115
else
 
18116
  # Is the header compilable?
 
18117
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
18118
$as_echo_n "checking $ac_header usability... " >&6; }
 
18119
cat >conftest.$ac_ext <<_ACEOF
 
18120
/* confdefs.h.  */
 
18121
_ACEOF
 
18122
cat confdefs.h >>conftest.$ac_ext
 
18123
cat >>conftest.$ac_ext <<_ACEOF
 
18124
/* end confdefs.h.  */
 
18125
$ac_includes_default
 
18126
#include <$ac_header>
 
18127
_ACEOF
 
18128
rm -f conftest.$ac_objext
 
18129
if { (ac_try="$ac_compile"
 
18130
case "(($ac_try" in
 
18131
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18132
  *) ac_try_echo=$ac_try;;
 
18133
esac
 
18134
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18135
$as_echo "$ac_try_echo") >&5
 
18136
  (eval "$ac_compile") 2>conftest.er1
 
18137
  ac_status=$?
 
18138
  grep -v '^ *+' conftest.er1 >conftest.err
 
18139
  rm -f conftest.er1
 
18140
  cat conftest.err >&5
 
18141
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18142
  (exit $ac_status); } && {
 
18143
         test -z "$ac_c_werror_flag" ||
 
18144
         test ! -s conftest.err
 
18145
       } && test -s conftest.$ac_objext; then
 
18146
  ac_header_compiler=yes
 
18147
else
 
18148
  $as_echo "$as_me: failed program was:" >&5
 
18149
sed 's/^/| /' conftest.$ac_ext >&5
 
18150
 
 
18151
        ac_header_compiler=no
 
18152
fi
 
18153
 
 
18154
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18155
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
18156
$as_echo "$ac_header_compiler" >&6; }
 
18157
 
 
18158
# Is the header present?
 
18159
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
18160
$as_echo_n "checking $ac_header presence... " >&6; }
 
18161
cat >conftest.$ac_ext <<_ACEOF
 
18162
/* confdefs.h.  */
 
18163
_ACEOF
 
18164
cat confdefs.h >>conftest.$ac_ext
 
18165
cat >>conftest.$ac_ext <<_ACEOF
 
18166
/* end confdefs.h.  */
 
18167
#include <$ac_header>
 
18168
_ACEOF
 
18169
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
18170
case "(($ac_try" in
 
18171
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18172
  *) ac_try_echo=$ac_try;;
 
18173
esac
 
18174
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18175
$as_echo "$ac_try_echo") >&5
 
18176
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
18177
  ac_status=$?
 
18178
  grep -v '^ *+' conftest.er1 >conftest.err
 
18179
  rm -f conftest.er1
 
18180
  cat conftest.err >&5
 
18181
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18182
  (exit $ac_status); } >/dev/null && {
 
18183
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
18184
         test ! -s conftest.err
 
18185
       }; then
 
18186
  ac_header_preproc=yes
 
18187
else
 
18188
  $as_echo "$as_me: failed program was:" >&5
 
18189
sed 's/^/| /' conftest.$ac_ext >&5
 
18190
 
 
18191
  ac_header_preproc=no
 
18192
fi
 
18193
 
 
18194
rm -f conftest.err conftest.$ac_ext
 
18195
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
18196
$as_echo "$ac_header_preproc" >&6; }
 
18197
 
 
18198
# So?  What about this header?
 
18199
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
18200
  yes:no: )
 
18201
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
18202
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
18203
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
18204
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
18205
    ac_header_preproc=yes
 
18206
    ;;
 
18207
  no:yes:* )
 
18208
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
18209
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
18210
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
18211
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
18212
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
18213
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
18214
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
18215
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
18216
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
18217
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
18218
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
18219
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
18220
    ( cat <<\_ASBOX
 
18221
## ----------------------------------------------------------------------- ##
 
18222
## Report this to https://bugzilla.gnome.org/enter_bug.cgi?product=gtk-vnc ##
 
18223
## ----------------------------------------------------------------------- ##
 
18224
_ASBOX
 
18225
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
18226
    ;;
 
18227
esac
 
18228
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
18229
$as_echo_n "checking for $ac_header... " >&6; }
 
18230
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
18231
  $as_echo_n "(cached) " >&6
 
18232
else
 
18233
  eval "$as_ac_Header=\$ac_header_preproc"
 
18234
fi
 
18235
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
18236
                 $as_echo "$as_val"'`
 
18237
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
18238
$as_echo "$ac_res" >&6; }
 
18239
 
 
18240
fi
 
18241
as_val=`eval 'as_val=${'$as_ac_Header'}
 
18242
                 $as_echo "$as_val"'`
 
18243
   if test "x$as_val" = x""yes; then
 
18244
  cat >>confdefs.h <<_ACEOF
 
18245
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
18246
_ACEOF
 
18247
 
 
18248
fi
 
18249
 
 
18250
done
 
18251
 
 
18252
{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
 
18253
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
 
18254
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
 
18255
  $as_echo_n "(cached) " >&6
 
18256
else
 
18257
  if test "$cross_compiling" = yes; then
 
18258
  ac_cv_func_malloc_0_nonnull=no
 
18259
else
 
18260
  cat >conftest.$ac_ext <<_ACEOF
 
18261
/* confdefs.h.  */
 
18262
_ACEOF
 
18263
cat confdefs.h >>conftest.$ac_ext
 
18264
cat >>conftest.$ac_ext <<_ACEOF
 
18265
/* end confdefs.h.  */
 
18266
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
 
18267
# include <stdlib.h>
 
18268
#else
 
18269
char *malloc ();
 
18270
#endif
 
18271
 
 
18272
int
 
18273
main ()
 
18274
{
 
18275
return ! malloc (0);
 
18276
  ;
 
18277
  return 0;
 
18278
}
 
18279
_ACEOF
 
18280
rm -f conftest$ac_exeext
 
18281
if { (ac_try="$ac_link"
 
18282
case "(($ac_try" in
 
18283
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18284
  *) ac_try_echo=$ac_try;;
 
18285
esac
 
18286
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18287
$as_echo "$ac_try_echo") >&5
 
18288
  (eval "$ac_link") 2>&5
 
18289
  ac_status=$?
 
18290
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18291
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
18292
  { (case "(($ac_try" in
 
18293
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18294
  *) ac_try_echo=$ac_try;;
 
18295
esac
 
18296
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18297
$as_echo "$ac_try_echo") >&5
 
18298
  (eval "$ac_try") 2>&5
 
18299
  ac_status=$?
 
18300
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18301
  (exit $ac_status); }; }; then
 
18302
  ac_cv_func_malloc_0_nonnull=yes
 
18303
else
 
18304
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
18305
$as_echo "$as_me: failed program was:" >&5
 
18306
sed 's/^/| /' conftest.$ac_ext >&5
 
18307
 
 
18308
( exit $ac_status )
 
18309
ac_cv_func_malloc_0_nonnull=no
 
18310
fi
 
18311
rm -rf conftest.dSYM
 
18312
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
18313
fi
 
18314
 
 
18315
 
 
18316
fi
 
18317
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
 
18318
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
 
18319
if test $ac_cv_func_malloc_0_nonnull = yes; then
 
18320
 
 
18321
cat >>confdefs.h <<\_ACEOF
 
18322
#define HAVE_MALLOC 1
 
18323
_ACEOF
 
18324
 
 
18325
else
 
18326
  cat >>confdefs.h <<\_ACEOF
 
18327
#define HAVE_MALLOC 0
 
18328
_ACEOF
 
18329
 
 
18330
 
 
18331
 
 
18332
 
 
18333
 
 
18334
 
 
18335
 
 
18336
 
 
18337
 
 
18338
  gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
 
18339
 
 
18340
 
 
18341
cat >>confdefs.h <<\_ACEOF
 
18342
#define malloc rpl_malloc
 
18343
_ACEOF
 
18344
 
 
18345
fi
 
18346
 
 
18347
 
 
18348
 
 
18349
 
 
18350
cat >>confdefs.h <<\_ACEOF
 
18351
#define GNULIB_MALLOC_GNU 1
 
18352
_ACEOF
 
18353
 
 
18354
 
 
18355
 
 
18356
  if test $gl_cv_func_malloc_posix = yes; then
 
18357
    HAVE_MALLOC_POSIX=1
 
18358
 
 
18359
cat >>confdefs.h <<\_ACEOF
 
18360
#define HAVE_MALLOC_POSIX 1
 
18361
_ACEOF
 
18362
 
 
18363
  else
 
18364
 
 
18365
 
 
18366
 
 
18367
 
 
18368
 
 
18369
 
 
18370
 
 
18371
 
 
18372
  gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
 
18373
 
 
18374
    HAVE_MALLOC_POSIX=0
 
18375
  fi
 
18376
 
 
18377
 
 
18378
 
 
18379
 
 
18380
  GNULIB_MALLOC_POSIX=1
 
18381
 
 
18382
 
 
18383
  { $as_echo "$as_me:$LINENO: checking whether <netinet/in.h> is self-contained" >&5
 
18384
$as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
 
18385
if test "${gl_cv_header_netinet_in_h_selfcontained+set}" = set; then
 
18386
  $as_echo_n "(cached) " >&6
 
18387
else
 
18388
 
 
18389
      cat >conftest.$ac_ext <<_ACEOF
 
18390
/* confdefs.h.  */
 
18391
_ACEOF
 
18392
cat confdefs.h >>conftest.$ac_ext
 
18393
cat >>conftest.$ac_ext <<_ACEOF
 
18394
/* end confdefs.h.  */
 
18395
#include <netinet/in.h>
 
18396
int
 
18397
main ()
 
18398
{
 
18399
 
 
18400
  ;
 
18401
  return 0;
 
18402
}
 
18403
_ACEOF
 
18404
rm -f conftest.$ac_objext
 
18405
if { (ac_try="$ac_compile"
 
18406
case "(($ac_try" in
 
18407
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18408
  *) ac_try_echo=$ac_try;;
 
18409
esac
 
18410
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18411
$as_echo "$ac_try_echo") >&5
 
18412
  (eval "$ac_compile") 2>conftest.er1
 
18413
  ac_status=$?
 
18414
  grep -v '^ *+' conftest.er1 >conftest.err
 
18415
  rm -f conftest.er1
 
18416
  cat conftest.err >&5
 
18417
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18418
  (exit $ac_status); } && {
 
18419
         test -z "$ac_c_werror_flag" ||
 
18420
         test ! -s conftest.err
 
18421
       } && test -s conftest.$ac_objext; then
 
18422
  gl_cv_header_netinet_in_h_selfcontained=yes
 
18423
else
 
18424
  $as_echo "$as_me: failed program was:" >&5
 
18425
sed 's/^/| /' conftest.$ac_ext >&5
 
18426
 
 
18427
        gl_cv_header_netinet_in_h_selfcontained=no
 
18428
fi
 
18429
 
 
18430
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18431
 
 
18432
fi
 
18433
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
 
18434
$as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
 
18435
  if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
 
18436
    NETINET_IN_H=''
 
18437
  else
 
18438
    NETINET_IN_H='netinet/in.h'
 
18439
 
 
18440
for ac_header in netinet/in.h
 
18441
do
 
18442
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
18443
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
18444
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
18445
$as_echo_n "checking for $ac_header... " >&6; }
 
18446
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
18447
  $as_echo_n "(cached) " >&6
 
18448
fi
 
18449
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
18450
                 $as_echo "$as_val"'`
 
18451
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
18452
$as_echo "$ac_res" >&6; }
 
18453
else
 
18454
  # Is the header compilable?
 
18455
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
18456
$as_echo_n "checking $ac_header usability... " >&6; }
 
18457
cat >conftest.$ac_ext <<_ACEOF
 
18458
/* confdefs.h.  */
 
18459
_ACEOF
 
18460
cat confdefs.h >>conftest.$ac_ext
 
18461
cat >>conftest.$ac_ext <<_ACEOF
 
18462
/* end confdefs.h.  */
 
18463
$ac_includes_default
 
18464
#include <$ac_header>
 
18465
_ACEOF
 
18466
rm -f conftest.$ac_objext
 
18467
if { (ac_try="$ac_compile"
 
18468
case "(($ac_try" in
 
18469
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18470
  *) ac_try_echo=$ac_try;;
 
18471
esac
 
18472
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18473
$as_echo "$ac_try_echo") >&5
 
18474
  (eval "$ac_compile") 2>conftest.er1
 
18475
  ac_status=$?
 
18476
  grep -v '^ *+' conftest.er1 >conftest.err
 
18477
  rm -f conftest.er1
 
18478
  cat conftest.err >&5
 
18479
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18480
  (exit $ac_status); } && {
 
18481
         test -z "$ac_c_werror_flag" ||
 
18482
         test ! -s conftest.err
 
18483
       } && test -s conftest.$ac_objext; then
 
18484
  ac_header_compiler=yes
 
18485
else
 
18486
  $as_echo "$as_me: failed program was:" >&5
 
18487
sed 's/^/| /' conftest.$ac_ext >&5
 
18488
 
 
18489
        ac_header_compiler=no
 
18490
fi
 
18491
 
 
18492
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18493
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
18494
$as_echo "$ac_header_compiler" >&6; }
 
18495
 
 
18496
# Is the header present?
 
18497
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
18498
$as_echo_n "checking $ac_header presence... " >&6; }
 
18499
cat >conftest.$ac_ext <<_ACEOF
 
18500
/* confdefs.h.  */
 
18501
_ACEOF
 
18502
cat confdefs.h >>conftest.$ac_ext
 
18503
cat >>conftest.$ac_ext <<_ACEOF
 
18504
/* end confdefs.h.  */
 
18505
#include <$ac_header>
 
18506
_ACEOF
 
18507
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
18508
case "(($ac_try" in
 
18509
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18510
  *) ac_try_echo=$ac_try;;
 
18511
esac
 
18512
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18513
$as_echo "$ac_try_echo") >&5
 
18514
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
18515
  ac_status=$?
 
18516
  grep -v '^ *+' conftest.er1 >conftest.err
 
18517
  rm -f conftest.er1
 
18518
  cat conftest.err >&5
 
18519
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18520
  (exit $ac_status); } >/dev/null && {
 
18521
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
18522
         test ! -s conftest.err
 
18523
       }; then
 
18524
  ac_header_preproc=yes
 
18525
else
 
18526
  $as_echo "$as_me: failed program was:" >&5
 
18527
sed 's/^/| /' conftest.$ac_ext >&5
 
18528
 
 
18529
  ac_header_preproc=no
 
18530
fi
 
18531
 
 
18532
rm -f conftest.err conftest.$ac_ext
 
18533
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
18534
$as_echo "$ac_header_preproc" >&6; }
 
18535
 
 
18536
# So?  What about this header?
 
18537
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
18538
  yes:no: )
 
18539
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
18540
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
18541
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
18542
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
18543
    ac_header_preproc=yes
 
18544
    ;;
 
18545
  no:yes:* )
 
18546
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
18547
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
18548
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
18549
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
18550
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
18551
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
18552
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
18553
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
18554
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
18555
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
18556
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
18557
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
18558
    ( cat <<\_ASBOX
 
18559
## ----------------------------------------------------------------------- ##
 
18560
## Report this to https://bugzilla.gnome.org/enter_bug.cgi?product=gtk-vnc ##
 
18561
## ----------------------------------------------------------------------- ##
 
18562
_ASBOX
 
18563
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
18564
    ;;
 
18565
esac
 
18566
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
18567
$as_echo_n "checking for $ac_header... " >&6; }
 
18568
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
18569
  $as_echo_n "(cached) " >&6
 
18570
else
 
18571
  eval "$as_ac_Header=\$ac_header_preproc"
 
18572
fi
 
18573
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
18574
                 $as_echo "$as_val"'`
 
18575
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
18576
$as_echo "$ac_res" >&6; }
 
18577
 
 
18578
fi
 
18579
as_val=`eval 'as_val=${'$as_ac_Header'}
 
18580
                 $as_echo "$as_val"'`
 
18581
   if test "x$as_val" = x""yes; then
 
18582
  cat >>confdefs.h <<_ACEOF
 
18583
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
18584
_ACEOF
 
18585
 
 
18586
fi
 
18587
 
 
18588
done
 
18589
 
 
18590
 
 
18591
 
 
18592
 
 
18593
  :
 
18594
 
 
18595
 
 
18596
 
 
18597
 
 
18598
 
 
18599
 
 
18600
 
 
18601
     if test $gl_cv_have_include_next = yes; then
 
18602
       gl_cv_next_netinet_in_h='<'netinet/in.h'>'
 
18603
     else
 
18604
       { $as_echo "$as_me:$LINENO: checking absolute name of <netinet/in.h>" >&5
 
18605
$as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
 
18606
if test "${gl_cv_next_netinet_in_h+set}" = set; then
 
18607
  $as_echo_n "(cached) " >&6
 
18608
else
 
18609
 
 
18610
          if test $ac_cv_header_netinet_in_h = yes; then
 
18611
            cat >conftest.$ac_ext <<_ACEOF
 
18612
/* confdefs.h.  */
 
18613
_ACEOF
 
18614
cat confdefs.h >>conftest.$ac_ext
 
18615
cat >>conftest.$ac_ext <<_ACEOF
 
18616
/* end confdefs.h.  */
 
18617
#include <netinet/in.h>
 
18618
 
 
18619
_ACEOF
 
18620
                                    gl_cv_next_netinet_in_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
18621
               sed -n '\#/netinet/in.h#{
 
18622
                 s#.*"\(.*/netinet/in.h\)".*#\1#
 
18623
                 s#^/[^/]#//&#
 
18624
                 p
 
18625
                 q
 
18626
               }'`'"'
 
18627
          else
 
18628
            gl_cv_next_netinet_in_h='<'netinet/in.h'>'
 
18629
          fi
 
18630
 
 
18631
fi
 
18632
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_netinet_in_h" >&5
 
18633
$as_echo "$gl_cv_next_netinet_in_h" >&6; }
 
18634
     fi
 
18635
     NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
 
18636
 
 
18637
 
 
18638
 
 
18639
    if test $ac_cv_header_netinet_in_h = yes; then
 
18640
      HAVE_NETINET_IN_H=1
 
18641
    else
 
18642
      HAVE_NETINET_IN_H=0
 
18643
    fi
 
18644
 
 
18645
  fi
 
18646
 
 
18647
 
 
18648
  { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
18649
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
18650
if test -z "$MKDIR_P"; then
 
18651
  if test "${ac_cv_path_mkdir+set}" = set; then
 
18652
  $as_echo_n "(cached) " >&6
 
18653
else
 
18654
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18655
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
18656
do
 
18657
  IFS=$as_save_IFS
 
18658
  test -z "$as_dir" && as_dir=.
 
18659
  for ac_prog in mkdir gmkdir; do
 
18660
         for ac_exec_ext in '' $ac_executable_extensions; do
 
18661
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
18662
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
18663
             'mkdir (GNU coreutils) '* | \
 
18664
             'mkdir (coreutils) '* | \
 
18665
             'mkdir (fileutils) '4.1*)
 
18666
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
18667
               break 3;;
 
18668
           esac
 
18669
         done
 
18670
       done
 
18671
done
 
18672
IFS=$as_save_IFS
 
18673
 
 
18674
fi
 
18675
 
 
18676
  if test "${ac_cv_path_mkdir+set}" = set; then
 
18677
    MKDIR_P="$ac_cv_path_mkdir -p"
 
18678
  else
 
18679
    # As a last resort, use the slow shell script.  Don't cache a
 
18680
    # value for MKDIR_P within a source directory, because that will
 
18681
    # break other packages using the cache if that directory is
 
18682
    # removed, or if the value is a relative name.
 
18683
    test -d ./--version && rmdir ./--version
 
18684
    MKDIR_P="$ac_install_sh -d"
 
18685
  fi
 
18686
fi
 
18687
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
18688
$as_echo "$MKDIR_P" >&6; }
 
18689
 
 
18690
 
 
18691
  if test "$ac_cv_header_winsock2_h" = yes; then
 
18692
 
 
18693
 
 
18694
 
 
18695
 
 
18696
 
 
18697
 
 
18698
 
 
18699
 
 
18700
  gl_LIBOBJS="$gl_LIBOBJS winsock.$ac_objext"
 
18701
 
 
18702
  fi
 
18703
 
 
18704
 
 
18705
  GNULIB_RECV=1
 
18706
 
 
18707
 
 
18708
cat >>confdefs.h <<\_ACEOF
 
18709
#define GNULIB_RECV 1
 
18710
_ACEOF
 
18711
 
 
18712
 
 
18713
 
 
18714
 
 
18715
  if test "$ac_cv_header_winsock2_h" = yes; then
 
18716
 
 
18717
 
 
18718
 
 
18719
 
 
18720
 
 
18721
 
 
18722
 
 
18723
 
 
18724
  gl_LIBOBJS="$gl_LIBOBJS winsock.$ac_objext"
 
18725
 
 
18726
  fi
 
18727
 
 
18728
 
 
18729
  GNULIB_SEND=1
 
18730
 
 
18731
 
 
18732
cat >>confdefs.h <<\_ACEOF
 
18733
#define GNULIB_SEND 1
 
18734
_ACEOF
 
18735
 
 
18736
 
 
18737
 
 
18738
 
 
18739
 
 
18740
for ac_header in stdint.h
 
18741
do
 
18742
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
18743
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
18744
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
18745
$as_echo_n "checking for $ac_header... " >&6; }
 
18746
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
18747
  $as_echo_n "(cached) " >&6
 
18748
fi
 
18749
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
18750
                 $as_echo "$as_val"'`
 
18751
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
18752
$as_echo "$ac_res" >&6; }
 
18753
else
 
18754
  # Is the header compilable?
 
18755
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
18756
$as_echo_n "checking $ac_header usability... " >&6; }
 
18757
cat >conftest.$ac_ext <<_ACEOF
 
18758
/* confdefs.h.  */
 
18759
_ACEOF
 
18760
cat confdefs.h >>conftest.$ac_ext
 
18761
cat >>conftest.$ac_ext <<_ACEOF
 
18762
/* end confdefs.h.  */
 
18763
$ac_includes_default
 
18764
#include <$ac_header>
 
18765
_ACEOF
 
18766
rm -f conftest.$ac_objext
 
18767
if { (ac_try="$ac_compile"
 
18768
case "(($ac_try" in
 
18769
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18770
  *) ac_try_echo=$ac_try;;
 
18771
esac
 
18772
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18773
$as_echo "$ac_try_echo") >&5
 
18774
  (eval "$ac_compile") 2>conftest.er1
 
18775
  ac_status=$?
 
18776
  grep -v '^ *+' conftest.er1 >conftest.err
 
18777
  rm -f conftest.er1
 
18778
  cat conftest.err >&5
 
18779
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18780
  (exit $ac_status); } && {
 
18781
         test -z "$ac_c_werror_flag" ||
 
18782
         test ! -s conftest.err
 
18783
       } && test -s conftest.$ac_objext; then
 
18784
  ac_header_compiler=yes
 
18785
else
 
18786
  $as_echo "$as_me: failed program was:" >&5
 
18787
sed 's/^/| /' conftest.$ac_ext >&5
 
18788
 
 
18789
        ac_header_compiler=no
 
18790
fi
 
18791
 
 
18792
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18793
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
18794
$as_echo "$ac_header_compiler" >&6; }
 
18795
 
 
18796
# Is the header present?
 
18797
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
18798
$as_echo_n "checking $ac_header presence... " >&6; }
 
18799
cat >conftest.$ac_ext <<_ACEOF
 
18800
/* confdefs.h.  */
 
18801
_ACEOF
 
18802
cat confdefs.h >>conftest.$ac_ext
 
18803
cat >>conftest.$ac_ext <<_ACEOF
 
18804
/* end confdefs.h.  */
 
18805
#include <$ac_header>
 
18806
_ACEOF
 
18807
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
18808
case "(($ac_try" in
 
18809
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18810
  *) ac_try_echo=$ac_try;;
 
18811
esac
 
18812
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18813
$as_echo "$ac_try_echo") >&5
 
18814
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
18815
  ac_status=$?
 
18816
  grep -v '^ *+' conftest.er1 >conftest.err
 
18817
  rm -f conftest.er1
 
18818
  cat conftest.err >&5
 
18819
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18820
  (exit $ac_status); } >/dev/null && {
 
18821
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
18822
         test ! -s conftest.err
 
18823
       }; then
 
18824
  ac_header_preproc=yes
 
18825
else
 
18826
  $as_echo "$as_me: failed program was:" >&5
 
18827
sed 's/^/| /' conftest.$ac_ext >&5
 
18828
 
 
18829
  ac_header_preproc=no
 
18830
fi
 
18831
 
 
18832
rm -f conftest.err conftest.$ac_ext
 
18833
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
18834
$as_echo "$ac_header_preproc" >&6; }
 
18835
 
 
18836
# So?  What about this header?
 
18837
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
18838
  yes:no: )
 
18839
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
18840
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
18841
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
18842
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
18843
    ac_header_preproc=yes
 
18844
    ;;
 
18845
  no:yes:* )
 
18846
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
18847
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
18848
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
18849
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
18850
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
18851
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
18852
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
18853
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
18854
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
18855
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
18856
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
18857
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
18858
    ( cat <<\_ASBOX
 
18859
## ----------------------------------------------------------------------- ##
 
18860
## Report this to https://bugzilla.gnome.org/enter_bug.cgi?product=gtk-vnc ##
 
18861
## ----------------------------------------------------------------------- ##
 
18862
_ASBOX
 
18863
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
18864
    ;;
 
18865
esac
 
18866
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
18867
$as_echo_n "checking for $ac_header... " >&6; }
 
18868
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
18869
  $as_echo_n "(cached) " >&6
 
18870
else
 
18871
  eval "$as_ac_Header=\$ac_header_preproc"
 
18872
fi
 
18873
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
18874
                 $as_echo "$as_val"'`
 
18875
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
18876
$as_echo "$ac_res" >&6; }
 
18877
 
 
18878
fi
 
18879
as_val=`eval 'as_val=${'$as_ac_Header'}
 
18880
                 $as_echo "$as_val"'`
 
18881
   if test "x$as_val" = x""yes; then
 
18882
  cat >>confdefs.h <<_ACEOF
 
18883
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
18884
_ACEOF
 
18885
 
 
18886
fi
 
18887
 
 
18888
done
 
18889
 
 
18890
    { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
 
18891
$as_echo_n "checking for SIZE_MAX... " >&6; }
 
18892
  if test "${gl_cv_size_max+set}" = set; then
 
18893
  $as_echo_n "(cached) " >&6
 
18894
else
 
18895
 
 
18896
    gl_cv_size_max=
 
18897
    cat >conftest.$ac_ext <<_ACEOF
 
18898
/* confdefs.h.  */
 
18899
_ACEOF
 
18900
cat confdefs.h >>conftest.$ac_ext
 
18901
cat >>conftest.$ac_ext <<_ACEOF
 
18902
/* end confdefs.h.  */
 
18903
 
 
18904
#include <limits.h>
 
18905
#if HAVE_STDINT_H
 
18906
#include <stdint.h>
 
18907
#endif
 
18908
#ifdef SIZE_MAX
 
18909
Found it
 
18910
#endif
 
18911
 
 
18912
_ACEOF
 
18913
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
18914
  $EGREP "Found it" >/dev/null 2>&1; then
 
18915
  gl_cv_size_max=yes
 
18916
fi
 
18917
rm -f conftest*
 
18918
 
 
18919
    if test -z "$gl_cv_size_max"; then
 
18920
                        if test "$cross_compiling" = yes; then
 
18921
  # Depending upon the size, compute the lo and hi bounds.
 
18922
cat >conftest.$ac_ext <<_ACEOF
 
18923
/* confdefs.h.  */
 
18924
_ACEOF
 
18925
cat confdefs.h >>conftest.$ac_ext
 
18926
cat >>conftest.$ac_ext <<_ACEOF
 
18927
/* end confdefs.h.  */
 
18928
#include <stddef.h>
 
18929
#include <limits.h>
 
18930
int
 
18931
main ()
 
18932
{
 
18933
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
 
18934
test_array [0] = 0
 
18935
 
 
18936
  ;
 
18937
  return 0;
 
18938
}
 
18939
_ACEOF
 
18940
rm -f conftest.$ac_objext
 
18941
if { (ac_try="$ac_compile"
 
18942
case "(($ac_try" in
 
18943
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18944
  *) ac_try_echo=$ac_try;;
 
18945
esac
 
18946
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18947
$as_echo "$ac_try_echo") >&5
 
18948
  (eval "$ac_compile") 2>conftest.er1
 
18949
  ac_status=$?
 
18950
  grep -v '^ *+' conftest.er1 >conftest.err
 
18951
  rm -f conftest.er1
 
18952
  cat conftest.err >&5
 
18953
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18954
  (exit $ac_status); } && {
 
18955
         test -z "$ac_c_werror_flag" ||
 
18956
         test ! -s conftest.err
 
18957
       } && test -s conftest.$ac_objext; then
 
18958
  ac_lo=0 ac_mid=0
 
18959
  while :; do
 
18960
    cat >conftest.$ac_ext <<_ACEOF
 
18961
/* confdefs.h.  */
 
18962
_ACEOF
 
18963
cat confdefs.h >>conftest.$ac_ext
 
18964
cat >>conftest.$ac_ext <<_ACEOF
 
18965
/* end confdefs.h.  */
 
18966
#include <stddef.h>
 
18967
#include <limits.h>
 
18968
int
 
18969
main ()
 
18970
{
 
18971
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
 
18972
test_array [0] = 0
 
18973
 
 
18974
  ;
 
18975
  return 0;
 
18976
}
 
18977
_ACEOF
 
18978
rm -f conftest.$ac_objext
 
18979
if { (ac_try="$ac_compile"
 
18980
case "(($ac_try" in
 
18981
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18982
  *) ac_try_echo=$ac_try;;
 
18983
esac
 
18984
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18985
$as_echo "$ac_try_echo") >&5
 
18986
  (eval "$ac_compile") 2>conftest.er1
 
18987
  ac_status=$?
 
18988
  grep -v '^ *+' conftest.er1 >conftest.err
 
18989
  rm -f conftest.er1
 
18990
  cat conftest.err >&5
 
18991
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18992
  (exit $ac_status); } && {
 
18993
         test -z "$ac_c_werror_flag" ||
 
18994
         test ! -s conftest.err
 
18995
       } && test -s conftest.$ac_objext; then
 
18996
  ac_hi=$ac_mid; break
 
18997
else
 
18998
  $as_echo "$as_me: failed program was:" >&5
 
18999
sed 's/^/| /' conftest.$ac_ext >&5
 
19000
 
 
19001
        ac_lo=`expr $ac_mid + 1`
 
19002
                        if test $ac_lo -le $ac_mid; then
 
19003
                          ac_lo= ac_hi=
 
19004
                          break
 
19005
                        fi
 
19006
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
19007
fi
 
19008
 
 
19009
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19010
  done
 
19011
else
 
19012
  $as_echo "$as_me: failed program was:" >&5
 
19013
sed 's/^/| /' conftest.$ac_ext >&5
 
19014
 
 
19015
        cat >conftest.$ac_ext <<_ACEOF
 
19016
/* confdefs.h.  */
 
19017
_ACEOF
 
19018
cat confdefs.h >>conftest.$ac_ext
 
19019
cat >>conftest.$ac_ext <<_ACEOF
 
19020
/* end confdefs.h.  */
 
19021
#include <stddef.h>
 
19022
#include <limits.h>
 
19023
int
 
19024
main ()
 
19025
{
 
19026
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
 
19027
test_array [0] = 0
 
19028
 
 
19029
  ;
 
19030
  return 0;
 
19031
}
 
19032
_ACEOF
 
19033
rm -f conftest.$ac_objext
 
19034
if { (ac_try="$ac_compile"
 
19035
case "(($ac_try" in
 
19036
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19037
  *) ac_try_echo=$ac_try;;
 
19038
esac
 
19039
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19040
$as_echo "$ac_try_echo") >&5
 
19041
  (eval "$ac_compile") 2>conftest.er1
 
19042
  ac_status=$?
 
19043
  grep -v '^ *+' conftest.er1 >conftest.err
 
19044
  rm -f conftest.er1
 
19045
  cat conftest.err >&5
 
19046
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19047
  (exit $ac_status); } && {
 
19048
         test -z "$ac_c_werror_flag" ||
 
19049
         test ! -s conftest.err
 
19050
       } && test -s conftest.$ac_objext; then
 
19051
  ac_hi=-1 ac_mid=-1
 
19052
  while :; do
 
19053
    cat >conftest.$ac_ext <<_ACEOF
 
19054
/* confdefs.h.  */
 
19055
_ACEOF
 
19056
cat confdefs.h >>conftest.$ac_ext
 
19057
cat >>conftest.$ac_ext <<_ACEOF
 
19058
/* end confdefs.h.  */
 
19059
#include <stddef.h>
 
19060
#include <limits.h>
 
19061
int
 
19062
main ()
 
19063
{
 
19064
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
 
19065
test_array [0] = 0
 
19066
 
 
19067
  ;
 
19068
  return 0;
 
19069
}
 
19070
_ACEOF
 
19071
rm -f conftest.$ac_objext
 
19072
if { (ac_try="$ac_compile"
 
19073
case "(($ac_try" in
 
19074
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19075
  *) ac_try_echo=$ac_try;;
 
19076
esac
 
19077
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19078
$as_echo "$ac_try_echo") >&5
 
19079
  (eval "$ac_compile") 2>conftest.er1
 
19080
  ac_status=$?
 
19081
  grep -v '^ *+' conftest.er1 >conftest.err
 
19082
  rm -f conftest.er1
 
19083
  cat conftest.err >&5
 
19084
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19085
  (exit $ac_status); } && {
 
19086
         test -z "$ac_c_werror_flag" ||
 
19087
         test ! -s conftest.err
 
19088
       } && test -s conftest.$ac_objext; then
 
19089
  ac_lo=$ac_mid; break
 
19090
else
 
19091
  $as_echo "$as_me: failed program was:" >&5
 
19092
sed 's/^/| /' conftest.$ac_ext >&5
 
19093
 
 
19094
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
19095
                        if test $ac_mid -le $ac_hi; then
 
19096
                          ac_lo= ac_hi=
 
19097
                          break
 
19098
                        fi
 
19099
                        ac_mid=`expr 2 '*' $ac_mid`
 
19100
fi
 
19101
 
 
19102
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19103
  done
 
19104
else
 
19105
  $as_echo "$as_me: failed program was:" >&5
 
19106
sed 's/^/| /' conftest.$ac_ext >&5
 
19107
 
 
19108
        ac_lo= ac_hi=
 
19109
fi
 
19110
 
 
19111
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19112
fi
 
19113
 
 
19114
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19115
# Binary search between lo and hi bounds.
 
19116
while test "x$ac_lo" != "x$ac_hi"; do
 
19117
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
19118
  cat >conftest.$ac_ext <<_ACEOF
 
19119
/* confdefs.h.  */
 
19120
_ACEOF
 
19121
cat confdefs.h >>conftest.$ac_ext
 
19122
cat >>conftest.$ac_ext <<_ACEOF
 
19123
/* end confdefs.h.  */
 
19124
#include <stddef.h>
 
19125
#include <limits.h>
 
19126
int
 
19127
main ()
 
19128
{
 
19129
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
 
19130
test_array [0] = 0
 
19131
 
 
19132
  ;
 
19133
  return 0;
 
19134
}
 
19135
_ACEOF
 
19136
rm -f conftest.$ac_objext
 
19137
if { (ac_try="$ac_compile"
 
19138
case "(($ac_try" in
 
19139
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19140
  *) ac_try_echo=$ac_try;;
 
19141
esac
 
19142
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19143
$as_echo "$ac_try_echo") >&5
 
19144
  (eval "$ac_compile") 2>conftest.er1
 
19145
  ac_status=$?
 
19146
  grep -v '^ *+' conftest.er1 >conftest.err
 
19147
  rm -f conftest.er1
 
19148
  cat conftest.err >&5
 
19149
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19150
  (exit $ac_status); } && {
 
19151
         test -z "$ac_c_werror_flag" ||
 
19152
         test ! -s conftest.err
 
19153
       } && test -s conftest.$ac_objext; then
 
19154
  ac_hi=$ac_mid
 
19155
else
 
19156
  $as_echo "$as_me: failed program was:" >&5
 
19157
sed 's/^/| /' conftest.$ac_ext >&5
 
19158
 
 
19159
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
19160
fi
 
19161
 
 
19162
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19163
done
 
19164
case $ac_lo in
 
19165
?*) size_t_bits_minus_1=$ac_lo;;
 
19166
'') size_t_bits_minus_1= ;;
 
19167
esac
 
19168
else
 
19169
  cat >conftest.$ac_ext <<_ACEOF
 
19170
/* confdefs.h.  */
 
19171
_ACEOF
 
19172
cat confdefs.h >>conftest.$ac_ext
 
19173
cat >>conftest.$ac_ext <<_ACEOF
 
19174
/* end confdefs.h.  */
 
19175
#include <stddef.h>
 
19176
#include <limits.h>
 
19177
static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
 
19178
static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
 
19179
#include <stdio.h>
 
19180
#include <stdlib.h>
 
19181
int
 
19182
main ()
 
19183
{
 
19184
 
 
19185
  FILE *f = fopen ("conftest.val", "w");
 
19186
  if (! f)
 
19187
    return 1;
 
19188
  if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
 
19189
    {
 
19190
      long int i = longval ();
 
19191
      if (i != (sizeof (size_t) * CHAR_BIT - 1))
 
19192
        return 1;
 
19193
      fprintf (f, "%ld", i);
 
19194
    }
 
19195
  else
 
19196
    {
 
19197
      unsigned long int i = ulongval ();
 
19198
      if (i != (sizeof (size_t) * CHAR_BIT - 1))
 
19199
        return 1;
 
19200
      fprintf (f, "%lu", i);
 
19201
    }
 
19202
  /* Do not output a trailing newline, as this causes \r\n confusion
 
19203
     on some platforms.  */
 
19204
  return ferror (f) || fclose (f) != 0;
 
19205
 
 
19206
  ;
 
19207
  return 0;
 
19208
}
 
19209
_ACEOF
 
19210
rm -f conftest$ac_exeext
 
19211
if { (ac_try="$ac_link"
 
19212
case "(($ac_try" in
 
19213
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19214
  *) ac_try_echo=$ac_try;;
 
19215
esac
 
19216
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19217
$as_echo "$ac_try_echo") >&5
 
19218
  (eval "$ac_link") 2>&5
 
19219
  ac_status=$?
 
19220
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19221
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
19222
  { (case "(($ac_try" in
 
19223
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19224
  *) ac_try_echo=$ac_try;;
 
19225
esac
 
19226
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19227
$as_echo "$ac_try_echo") >&5
 
19228
  (eval "$ac_try") 2>&5
 
19229
  ac_status=$?
 
19230
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19231
  (exit $ac_status); }; }; then
 
19232
  size_t_bits_minus_1=`cat conftest.val`
 
19233
else
 
19234
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
19235
$as_echo "$as_me: failed program was:" >&5
 
19236
sed 's/^/| /' conftest.$ac_ext >&5
 
19237
 
 
19238
( exit $ac_status )
 
19239
size_t_bits_minus_1=
 
19240
fi
 
19241
rm -rf conftest.dSYM
 
19242
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
19243
fi
 
19244
rm -f conftest.val
 
19245
      if test "$cross_compiling" = yes; then
 
19246
  # Depending upon the size, compute the lo and hi bounds.
 
19247
cat >conftest.$ac_ext <<_ACEOF
 
19248
/* confdefs.h.  */
 
19249
_ACEOF
 
19250
cat confdefs.h >>conftest.$ac_ext
 
19251
cat >>conftest.$ac_ext <<_ACEOF
 
19252
/* end confdefs.h.  */
 
19253
#include <stddef.h>
 
19254
int
 
19255
main ()
 
19256
{
 
19257
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
 
19258
test_array [0] = 0
 
19259
 
 
19260
  ;
 
19261
  return 0;
 
19262
}
 
19263
_ACEOF
 
19264
rm -f conftest.$ac_objext
 
19265
if { (ac_try="$ac_compile"
 
19266
case "(($ac_try" in
 
19267
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19268
  *) ac_try_echo=$ac_try;;
 
19269
esac
 
19270
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19271
$as_echo "$ac_try_echo") >&5
 
19272
  (eval "$ac_compile") 2>conftest.er1
 
19273
  ac_status=$?
 
19274
  grep -v '^ *+' conftest.er1 >conftest.err
 
19275
  rm -f conftest.er1
 
19276
  cat conftest.err >&5
 
19277
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19278
  (exit $ac_status); } && {
 
19279
         test -z "$ac_c_werror_flag" ||
 
19280
         test ! -s conftest.err
 
19281
       } && test -s conftest.$ac_objext; then
 
19282
  ac_lo=0 ac_mid=0
 
19283
  while :; do
 
19284
    cat >conftest.$ac_ext <<_ACEOF
 
19285
/* confdefs.h.  */
 
19286
_ACEOF
 
19287
cat confdefs.h >>conftest.$ac_ext
 
19288
cat >>conftest.$ac_ext <<_ACEOF
 
19289
/* end confdefs.h.  */
 
19290
#include <stddef.h>
 
19291
int
 
19292
main ()
 
19293
{
 
19294
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
 
19295
test_array [0] = 0
 
19296
 
 
19297
  ;
 
19298
  return 0;
 
19299
}
 
19300
_ACEOF
 
19301
rm -f conftest.$ac_objext
 
19302
if { (ac_try="$ac_compile"
 
19303
case "(($ac_try" in
 
19304
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19305
  *) ac_try_echo=$ac_try;;
 
19306
esac
 
19307
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19308
$as_echo "$ac_try_echo") >&5
 
19309
  (eval "$ac_compile") 2>conftest.er1
 
19310
  ac_status=$?
 
19311
  grep -v '^ *+' conftest.er1 >conftest.err
 
19312
  rm -f conftest.er1
 
19313
  cat conftest.err >&5
 
19314
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19315
  (exit $ac_status); } && {
 
19316
         test -z "$ac_c_werror_flag" ||
 
19317
         test ! -s conftest.err
 
19318
       } && test -s conftest.$ac_objext; then
 
19319
  ac_hi=$ac_mid; break
 
19320
else
 
19321
  $as_echo "$as_me: failed program was:" >&5
 
19322
sed 's/^/| /' conftest.$ac_ext >&5
 
19323
 
 
19324
        ac_lo=`expr $ac_mid + 1`
 
19325
                        if test $ac_lo -le $ac_mid; then
 
19326
                          ac_lo= ac_hi=
 
19327
                          break
 
19328
                        fi
 
19329
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
19330
fi
 
19331
 
 
19332
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19333
  done
 
19334
else
 
19335
  $as_echo "$as_me: failed program was:" >&5
 
19336
sed 's/^/| /' conftest.$ac_ext >&5
 
19337
 
 
19338
        cat >conftest.$ac_ext <<_ACEOF
 
19339
/* confdefs.h.  */
 
19340
_ACEOF
 
19341
cat confdefs.h >>conftest.$ac_ext
 
19342
cat >>conftest.$ac_ext <<_ACEOF
 
19343
/* end confdefs.h.  */
 
19344
#include <stddef.h>
 
19345
int
 
19346
main ()
 
19347
{
 
19348
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
 
19349
test_array [0] = 0
 
19350
 
 
19351
  ;
 
19352
  return 0;
 
19353
}
 
19354
_ACEOF
 
19355
rm -f conftest.$ac_objext
 
19356
if { (ac_try="$ac_compile"
 
19357
case "(($ac_try" in
 
19358
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19359
  *) ac_try_echo=$ac_try;;
 
19360
esac
 
19361
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19362
$as_echo "$ac_try_echo") >&5
 
19363
  (eval "$ac_compile") 2>conftest.er1
 
19364
  ac_status=$?
 
19365
  grep -v '^ *+' conftest.er1 >conftest.err
 
19366
  rm -f conftest.er1
 
19367
  cat conftest.err >&5
 
19368
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19369
  (exit $ac_status); } && {
 
19370
         test -z "$ac_c_werror_flag" ||
 
19371
         test ! -s conftest.err
 
19372
       } && test -s conftest.$ac_objext; then
 
19373
  ac_hi=-1 ac_mid=-1
 
19374
  while :; do
 
19375
    cat >conftest.$ac_ext <<_ACEOF
 
19376
/* confdefs.h.  */
 
19377
_ACEOF
 
19378
cat confdefs.h >>conftest.$ac_ext
 
19379
cat >>conftest.$ac_ext <<_ACEOF
 
19380
/* end confdefs.h.  */
 
19381
#include <stddef.h>
 
19382
int
 
19383
main ()
 
19384
{
 
19385
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
 
19386
test_array [0] = 0
 
19387
 
 
19388
  ;
 
19389
  return 0;
 
19390
}
 
19391
_ACEOF
 
19392
rm -f conftest.$ac_objext
 
19393
if { (ac_try="$ac_compile"
 
19394
case "(($ac_try" in
 
19395
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19396
  *) ac_try_echo=$ac_try;;
 
19397
esac
 
19398
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19399
$as_echo "$ac_try_echo") >&5
 
19400
  (eval "$ac_compile") 2>conftest.er1
 
19401
  ac_status=$?
 
19402
  grep -v '^ *+' conftest.er1 >conftest.err
 
19403
  rm -f conftest.er1
 
19404
  cat conftest.err >&5
 
19405
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19406
  (exit $ac_status); } && {
 
19407
         test -z "$ac_c_werror_flag" ||
 
19408
         test ! -s conftest.err
 
19409
       } && test -s conftest.$ac_objext; then
 
19410
  ac_lo=$ac_mid; break
 
19411
else
 
19412
  $as_echo "$as_me: failed program was:" >&5
 
19413
sed 's/^/| /' conftest.$ac_ext >&5
 
19414
 
 
19415
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
19416
                        if test $ac_mid -le $ac_hi; then
 
19417
                          ac_lo= ac_hi=
 
19418
                          break
 
19419
                        fi
 
19420
                        ac_mid=`expr 2 '*' $ac_mid`
 
19421
fi
 
19422
 
 
19423
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19424
  done
 
19425
else
 
19426
  $as_echo "$as_me: failed program was:" >&5
 
19427
sed 's/^/| /' conftest.$ac_ext >&5
 
19428
 
 
19429
        ac_lo= ac_hi=
 
19430
fi
 
19431
 
 
19432
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19433
fi
 
19434
 
 
19435
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19436
# Binary search between lo and hi bounds.
 
19437
while test "x$ac_lo" != "x$ac_hi"; do
 
19438
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
19439
  cat >conftest.$ac_ext <<_ACEOF
 
19440
/* confdefs.h.  */
 
19441
_ACEOF
 
19442
cat confdefs.h >>conftest.$ac_ext
 
19443
cat >>conftest.$ac_ext <<_ACEOF
 
19444
/* end confdefs.h.  */
 
19445
#include <stddef.h>
 
19446
int
 
19447
main ()
 
19448
{
 
19449
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
 
19450
test_array [0] = 0
 
19451
 
 
19452
  ;
 
19453
  return 0;
 
19454
}
 
19455
_ACEOF
 
19456
rm -f conftest.$ac_objext
 
19457
if { (ac_try="$ac_compile"
 
19458
case "(($ac_try" in
 
19459
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19460
  *) ac_try_echo=$ac_try;;
 
19461
esac
 
19462
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19463
$as_echo "$ac_try_echo") >&5
 
19464
  (eval "$ac_compile") 2>conftest.er1
 
19465
  ac_status=$?
 
19466
  grep -v '^ *+' conftest.er1 >conftest.err
 
19467
  rm -f conftest.er1
 
19468
  cat conftest.err >&5
 
19469
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19470
  (exit $ac_status); } && {
 
19471
         test -z "$ac_c_werror_flag" ||
 
19472
         test ! -s conftest.err
 
19473
       } && test -s conftest.$ac_objext; then
 
19474
  ac_hi=$ac_mid
 
19475
else
 
19476
  $as_echo "$as_me: failed program was:" >&5
 
19477
sed 's/^/| /' conftest.$ac_ext >&5
 
19478
 
 
19479
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
19480
fi
 
19481
 
 
19482
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19483
done
 
19484
case $ac_lo in
 
19485
?*) fits_in_uint=$ac_lo;;
 
19486
'') fits_in_uint= ;;
 
19487
esac
 
19488
else
 
19489
  cat >conftest.$ac_ext <<_ACEOF
 
19490
/* confdefs.h.  */
 
19491
_ACEOF
 
19492
cat confdefs.h >>conftest.$ac_ext
 
19493
cat >>conftest.$ac_ext <<_ACEOF
 
19494
/* end confdefs.h.  */
 
19495
#include <stddef.h>
 
19496
static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
 
19497
static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
 
19498
#include <stdio.h>
 
19499
#include <stdlib.h>
 
19500
int
 
19501
main ()
 
19502
{
 
19503
 
 
19504
  FILE *f = fopen ("conftest.val", "w");
 
19505
  if (! f)
 
19506
    return 1;
 
19507
  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
 
19508
    {
 
19509
      long int i = longval ();
 
19510
      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
 
19511
        return 1;
 
19512
      fprintf (f, "%ld", i);
 
19513
    }
 
19514
  else
 
19515
    {
 
19516
      unsigned long int i = ulongval ();
 
19517
      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
 
19518
        return 1;
 
19519
      fprintf (f, "%lu", i);
 
19520
    }
 
19521
  /* Do not output a trailing newline, as this causes \r\n confusion
 
19522
     on some platforms.  */
 
19523
  return ferror (f) || fclose (f) != 0;
 
19524
 
 
19525
  ;
 
19526
  return 0;
 
19527
}
 
19528
_ACEOF
 
19529
rm -f conftest$ac_exeext
 
19530
if { (ac_try="$ac_link"
 
19531
case "(($ac_try" in
 
19532
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19533
  *) ac_try_echo=$ac_try;;
 
19534
esac
 
19535
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19536
$as_echo "$ac_try_echo") >&5
 
19537
  (eval "$ac_link") 2>&5
 
19538
  ac_status=$?
 
19539
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19540
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
19541
  { (case "(($ac_try" in
 
19542
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19543
  *) ac_try_echo=$ac_try;;
 
19544
esac
 
19545
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19546
$as_echo "$ac_try_echo") >&5
 
19547
  (eval "$ac_try") 2>&5
 
19548
  ac_status=$?
 
19549
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19550
  (exit $ac_status); }; }; then
 
19551
  fits_in_uint=`cat conftest.val`
 
19552
else
 
19553
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
19554
$as_echo "$as_me: failed program was:" >&5
 
19555
sed 's/^/| /' conftest.$ac_ext >&5
 
19556
 
 
19557
( exit $ac_status )
 
19558
fits_in_uint=
 
19559
fi
 
19560
rm -rf conftest.dSYM
 
19561
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
19562
fi
 
19563
rm -f conftest.val
 
19564
      if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
 
19565
        if test $fits_in_uint = 1; then
 
19566
                              cat >conftest.$ac_ext <<_ACEOF
 
19567
/* confdefs.h.  */
 
19568
_ACEOF
 
19569
cat confdefs.h >>conftest.$ac_ext
 
19570
cat >>conftest.$ac_ext <<_ACEOF
 
19571
/* end confdefs.h.  */
 
19572
#include <stddef.h>
 
19573
            extern size_t foo;
 
19574
            extern unsigned long foo;
 
19575
 
 
19576
int
 
19577
main ()
 
19578
{
 
19579
 
 
19580
  ;
 
19581
  return 0;
 
19582
}
 
19583
_ACEOF
 
19584
rm -f conftest.$ac_objext
 
19585
if { (ac_try="$ac_compile"
 
19586
case "(($ac_try" in
 
19587
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19588
  *) ac_try_echo=$ac_try;;
 
19589
esac
 
19590
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19591
$as_echo "$ac_try_echo") >&5
 
19592
  (eval "$ac_compile") 2>conftest.er1
 
19593
  ac_status=$?
 
19594
  grep -v '^ *+' conftest.er1 >conftest.err
 
19595
  rm -f conftest.er1
 
19596
  cat conftest.err >&5
 
19597
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19598
  (exit $ac_status); } && {
 
19599
         test -z "$ac_c_werror_flag" ||
 
19600
         test ! -s conftest.err
 
19601
       } && test -s conftest.$ac_objext; then
 
19602
  fits_in_uint=0
 
19603
else
 
19604
  $as_echo "$as_me: failed program was:" >&5
 
19605
sed 's/^/| /' conftest.$ac_ext >&5
 
19606
 
 
19607
 
 
19608
fi
 
19609
 
 
19610
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19611
        fi
 
19612
                                if test $fits_in_uint = 1; then
 
19613
          gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
 
19614
        else
 
19615
          gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
 
19616
        fi
 
19617
      else
 
19618
                gl_cv_size_max='((size_t)~(size_t)0)'
 
19619
      fi
 
19620
    fi
 
19621
 
 
19622
fi
 
19623
 
 
19624
  { $as_echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
 
19625
$as_echo "$gl_cv_size_max" >&6; }
 
19626
  if test "$gl_cv_size_max" != yes; then
 
19627
 
 
19628
cat >>confdefs.h <<_ACEOF
 
19629
#define SIZE_MAX $gl_cv_size_max
 
19630
_ACEOF
 
19631
 
 
19632
  fi
 
19633
 
 
19634
 
 
19635
 
 
19636
  gl_cv_func_snprintf_usable=no
 
19637
 
 
19638
for ac_func in snprintf
 
19639
do
 
19640
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
19641
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
19642
$as_echo_n "checking for $ac_func... " >&6; }
 
19643
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
19644
  $as_echo_n "(cached) " >&6
 
19645
else
 
19646
  cat >conftest.$ac_ext <<_ACEOF
 
19647
/* confdefs.h.  */
 
19648
_ACEOF
 
19649
cat confdefs.h >>conftest.$ac_ext
 
19650
cat >>conftest.$ac_ext <<_ACEOF
 
19651
/* end confdefs.h.  */
 
19652
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
19653
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19654
#define $ac_func innocuous_$ac_func
 
19655
 
 
19656
/* System header to define __stub macros and hopefully few prototypes,
 
19657
    which can conflict with char $ac_func (); below.
 
19658
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19659
    <limits.h> exists even on freestanding compilers.  */
 
19660
 
 
19661
#ifdef __STDC__
 
19662
# include <limits.h>
 
19663
#else
 
19664
# include <assert.h>
 
19665
#endif
 
19666
 
 
19667
#undef $ac_func
 
19668
 
 
19669
/* Override any GCC internal prototype to avoid an error.
 
19670
   Use char because int might match the return type of a GCC
 
19671
   builtin and then its argument prototype would still apply.  */
 
19672
#ifdef __cplusplus
 
19673
extern "C"
 
19674
#endif
 
19675
char $ac_func ();
 
19676
/* The GNU C library defines this for functions which it implements
 
19677
    to always fail with ENOSYS.  Some functions are actually named
 
19678
    something starting with __ and the normal name is an alias.  */
 
19679
#if defined __stub_$ac_func || defined __stub___$ac_func
 
19680
choke me
 
19681
#endif
 
19682
 
 
19683
int
 
19684
main ()
 
19685
{
 
19686
return $ac_func ();
 
19687
  ;
 
19688
  return 0;
 
19689
}
 
19690
_ACEOF
 
19691
rm -f conftest.$ac_objext conftest$ac_exeext
 
19692
if { (ac_try="$ac_link"
 
19693
case "(($ac_try" in
 
19694
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19695
  *) ac_try_echo=$ac_try;;
 
19696
esac
 
19697
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19698
$as_echo "$ac_try_echo") >&5
 
19699
  (eval "$ac_link") 2>conftest.er1
 
19700
  ac_status=$?
 
19701
  grep -v '^ *+' conftest.er1 >conftest.err
 
19702
  rm -f conftest.er1
 
19703
  cat conftest.err >&5
 
19704
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19705
  (exit $ac_status); } && {
 
19706
         test -z "$ac_c_werror_flag" ||
 
19707
         test ! -s conftest.err
 
19708
       } && test -s conftest$ac_exeext && {
 
19709
         test "$cross_compiling" = yes ||
 
19710
         $as_test_x conftest$ac_exeext
 
19711
       }; then
 
19712
  eval "$as_ac_var=yes"
 
19713
else
 
19714
  $as_echo "$as_me: failed program was:" >&5
 
19715
sed 's/^/| /' conftest.$ac_ext >&5
 
19716
 
 
19717
        eval "$as_ac_var=no"
 
19718
fi
 
19719
 
 
19720
rm -rf conftest.dSYM
 
19721
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19722
      conftest$ac_exeext conftest.$ac_ext
 
19723
fi
 
19724
ac_res=`eval 'as_val=${'$as_ac_var'}
 
19725
                 $as_echo "$as_val"'`
 
19726
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
19727
$as_echo "$ac_res" >&6; }
 
19728
as_val=`eval 'as_val=${'$as_ac_var'}
 
19729
                 $as_echo "$as_val"'`
 
19730
   if test "x$as_val" = x""yes; then
 
19731
  cat >>confdefs.h <<_ACEOF
 
19732
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
19733
_ACEOF
 
19734
 
 
19735
fi
 
19736
done
 
19737
 
 
19738
  if test $ac_cv_func_snprintf = yes; then
 
19739
 
 
19740
 
 
19741
  { $as_echo "$as_me:$LINENO: checking whether snprintf respects a size of 1" >&5
 
19742
$as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
 
19743
if test "${gl_cv_func_snprintf_size1+set}" = set; then
 
19744
  $as_echo_n "(cached) " >&6
 
19745
else
 
19746
 
 
19747
      if test "$cross_compiling" = yes; then
 
19748
  gl_cv_func_snprintf_size1="guessing yes"
 
19749
else
 
19750
  cat >conftest.$ac_ext <<_ACEOF
 
19751
/* confdefs.h.  */
 
19752
_ACEOF
 
19753
cat confdefs.h >>conftest.$ac_ext
 
19754
cat >>conftest.$ac_ext <<_ACEOF
 
19755
/* end confdefs.h.  */
 
19756
 
 
19757
#include <stdio.h>
 
19758
int main()
 
19759
{
 
19760
  static char buf[8] = "DEADBEEF";
 
19761
  snprintf (buf, 1, "%d", 12345);
 
19762
  return buf[1] != 'E';
 
19763
}
 
19764
_ACEOF
 
19765
rm -f conftest$ac_exeext
 
19766
if { (ac_try="$ac_link"
 
19767
case "(($ac_try" in
 
19768
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19769
  *) ac_try_echo=$ac_try;;
 
19770
esac
 
19771
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19772
$as_echo "$ac_try_echo") >&5
 
19773
  (eval "$ac_link") 2>&5
 
19774
  ac_status=$?
 
19775
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19776
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
19777
  { (case "(($ac_try" in
 
19778
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19779
  *) ac_try_echo=$ac_try;;
 
19780
esac
 
19781
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19782
$as_echo "$ac_try_echo") >&5
 
19783
  (eval "$ac_try") 2>&5
 
19784
  ac_status=$?
 
19785
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19786
  (exit $ac_status); }; }; then
 
19787
  gl_cv_func_snprintf_size1=yes
 
19788
else
 
19789
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
19790
$as_echo "$as_me: failed program was:" >&5
 
19791
sed 's/^/| /' conftest.$ac_ext >&5
 
19792
 
 
19793
( exit $ac_status )
 
19794
gl_cv_func_snprintf_size1=no
 
19795
fi
 
19796
rm -rf conftest.dSYM
 
19797
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
19798
fi
 
19799
 
 
19800
 
 
19801
 
 
19802
fi
 
19803
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_size1" >&5
 
19804
$as_echo "$gl_cv_func_snprintf_size1" >&6; }
 
19805
 
 
19806
    case "$gl_cv_func_snprintf_size1" in
 
19807
      *yes)
 
19808
        gl_cv_func_snprintf_usable=yes
 
19809
        ;;
 
19810
    esac
 
19811
  fi
 
19812
  if test $gl_cv_func_snprintf_usable = no; then
 
19813
 
 
19814
 
 
19815
 
 
19816
 
 
19817
 
 
19818
 
 
19819
 
 
19820
 
 
19821
 
 
19822
 
 
19823
  gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
 
19824
 
 
19825
  if test $ac_cv_func_snprintf = yes; then
 
19826
    REPLACE_SNPRINTF=1
 
19827
  fi
 
19828
  :
 
19829
 
 
19830
  fi
 
19831
 
 
19832
  :
 
19833
 
 
19834
 
 
19835
 
 
19836
 
 
19837
 
 
19838
  if test $ac_cv_have_decl_snprintf = no; then
 
19839
    HAVE_DECL_SNPRINTF=0
 
19840
  fi
 
19841
 
 
19842
 
 
19843
 
 
19844
  GNULIB_SNPRINTF=1
 
19845
 
 
19846
 
 
19847
  if test "$ac_cv_header_winsock2_h" = yes; then
 
19848
 
 
19849
 
 
19850
 
 
19851
 
 
19852
 
 
19853
 
 
19854
 
 
19855
 
 
19856
  gl_LIBOBJS="$gl_LIBOBJS winsock.$ac_objext"
 
19857
 
 
19858
  fi
 
19859
 
 
19860
 
 
19861
  GNULIB_SOCKET=1
 
19862
 
 
19863
 
 
19864
cat >>confdefs.h <<\_ACEOF
 
19865
#define GNULIB_SOCKET 1
 
19866
_ACEOF
 
19867
 
 
19868
 
 
19869
 
 
19870
     { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
 
19871
$as_echo_n "checking for socklen_t... " >&6; }
 
19872
if test "${ac_cv_type_socklen_t+set}" = set; then
 
19873
  $as_echo_n "(cached) " >&6
 
19874
else
 
19875
  ac_cv_type_socklen_t=no
 
19876
cat >conftest.$ac_ext <<_ACEOF
 
19877
/* confdefs.h.  */
 
19878
_ACEOF
 
19879
cat confdefs.h >>conftest.$ac_ext
 
19880
cat >>conftest.$ac_ext <<_ACEOF
 
19881
/* end confdefs.h.  */
 
19882
#include <sys/types.h>
 
19883
      #if HAVE_SYS_SOCKET_H
 
19884
      # include <sys/socket.h>
 
19885
      #elif HAVE_WS2TCPIP_H
 
19886
      # include <ws2tcpip.h>
 
19887
      #endif
 
19888
 
 
19889
int
 
19890
main ()
 
19891
{
 
19892
if (sizeof (socklen_t))
 
19893
       return 0;
 
19894
  ;
 
19895
  return 0;
 
19896
}
 
19897
_ACEOF
 
19898
rm -f conftest.$ac_objext
 
19899
if { (ac_try="$ac_compile"
 
19900
case "(($ac_try" in
 
19901
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19902
  *) ac_try_echo=$ac_try;;
 
19903
esac
 
19904
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19905
$as_echo "$ac_try_echo") >&5
 
19906
  (eval "$ac_compile") 2>conftest.er1
 
19907
  ac_status=$?
 
19908
  grep -v '^ *+' conftest.er1 >conftest.err
 
19909
  rm -f conftest.er1
 
19910
  cat conftest.err >&5
 
19911
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19912
  (exit $ac_status); } && {
 
19913
         test -z "$ac_c_werror_flag" ||
 
19914
         test ! -s conftest.err
 
19915
       } && test -s conftest.$ac_objext; then
 
19916
  cat >conftest.$ac_ext <<_ACEOF
 
19917
/* confdefs.h.  */
 
19918
_ACEOF
 
19919
cat confdefs.h >>conftest.$ac_ext
 
19920
cat >>conftest.$ac_ext <<_ACEOF
 
19921
/* end confdefs.h.  */
 
19922
#include <sys/types.h>
 
19923
      #if HAVE_SYS_SOCKET_H
 
19924
      # include <sys/socket.h>
 
19925
      #elif HAVE_WS2TCPIP_H
 
19926
      # include <ws2tcpip.h>
 
19927
      #endif
 
19928
 
 
19929
int
 
19930
main ()
 
19931
{
 
19932
if (sizeof ((socklen_t)))
 
19933
          return 0;
 
19934
  ;
 
19935
  return 0;
 
19936
}
 
19937
_ACEOF
 
19938
rm -f conftest.$ac_objext
 
19939
if { (ac_try="$ac_compile"
 
19940
case "(($ac_try" in
 
19941
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19942
  *) ac_try_echo=$ac_try;;
 
19943
esac
 
19944
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19945
$as_echo "$ac_try_echo") >&5
 
19946
  (eval "$ac_compile") 2>conftest.er1
 
19947
  ac_status=$?
 
19948
  grep -v '^ *+' conftest.er1 >conftest.err
 
19949
  rm -f conftest.er1
 
19950
  cat conftest.err >&5
 
19951
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19952
  (exit $ac_status); } && {
 
19953
         test -z "$ac_c_werror_flag" ||
 
19954
         test ! -s conftest.err
 
19955
       } && test -s conftest.$ac_objext; then
 
19956
  :
 
19957
else
 
19958
  $as_echo "$as_me: failed program was:" >&5
 
19959
sed 's/^/| /' conftest.$ac_ext >&5
 
19960
 
 
19961
        ac_cv_type_socklen_t=yes
 
19962
fi
 
19963
 
 
19964
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19965
else
 
19966
  $as_echo "$as_me: failed program was:" >&5
 
19967
sed 's/^/| /' conftest.$ac_ext >&5
 
19968
 
 
19969
 
 
19970
fi
 
19971
 
 
19972
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19973
fi
 
19974
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
 
19975
$as_echo "$ac_cv_type_socklen_t" >&6; }
 
19976
if test "x$ac_cv_type_socklen_t" = x""yes; then
 
19977
  :
 
19978
else
 
19979
  { $as_echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
 
19980
$as_echo_n "checking for socklen_t equivalent... " >&6; }
 
19981
      if test "${gl_cv_socklen_t_equiv+set}" = set; then
 
19982
  $as_echo_n "(cached) " >&6
 
19983
else
 
19984
  # Systems have either "struct sockaddr *" or
 
19985
         # "void *" as the second argument to getpeername
 
19986
         gl_cv_socklen_t_equiv=
 
19987
         for arg2 in "struct sockaddr" void; do
 
19988
           for t in int size_t "unsigned int" "long int" "unsigned long int"; do
 
19989
             cat >conftest.$ac_ext <<_ACEOF
 
19990
/* confdefs.h.  */
 
19991
_ACEOF
 
19992
cat confdefs.h >>conftest.$ac_ext
 
19993
cat >>conftest.$ac_ext <<_ACEOF
 
19994
/* end confdefs.h.  */
 
19995
#include <sys/types.h>
 
19996
                #include <sys/socket.h>
 
19997
 
 
19998
                int getpeername (int, $arg2 *, $t *);
 
19999
int
 
20000
main ()
 
20001
{
 
20002
$t len;
 
20003
                getpeername (0, 0, &len);
 
20004
  ;
 
20005
  return 0;
 
20006
}
 
20007
_ACEOF
 
20008
rm -f conftest.$ac_objext
 
20009
if { (ac_try="$ac_compile"
 
20010
case "(($ac_try" in
 
20011
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20012
  *) ac_try_echo=$ac_try;;
 
20013
esac
 
20014
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20015
$as_echo "$ac_try_echo") >&5
 
20016
  (eval "$ac_compile") 2>conftest.er1
 
20017
  ac_status=$?
 
20018
  grep -v '^ *+' conftest.er1 >conftest.err
 
20019
  rm -f conftest.er1
 
20020
  cat conftest.err >&5
 
20021
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20022
  (exit $ac_status); } && {
 
20023
         test -z "$ac_c_werror_flag" ||
 
20024
         test ! -s conftest.err
 
20025
       } && test -s conftest.$ac_objext; then
 
20026
  gl_cv_socklen_t_equiv="$t"
 
20027
else
 
20028
  $as_echo "$as_me: failed program was:" >&5
 
20029
sed 's/^/| /' conftest.$ac_ext >&5
 
20030
 
 
20031
 
 
20032
fi
 
20033
 
 
20034
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20035
             test "$gl_cv_socklen_t_equiv" != "" && break
 
20036
           done
 
20037
           test "$gl_cv_socklen_t_equiv" != "" && break
 
20038
         done
 
20039
 
 
20040
fi
 
20041
 
 
20042
      if test "$gl_cv_socklen_t_equiv" = ""; then
 
20043
        { { $as_echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
 
20044
$as_echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
 
20045
   { (exit 1); exit 1; }; }
 
20046
      fi
 
20047
      { $as_echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
 
20048
$as_echo "$gl_cv_socklen_t_equiv" >&6; }
 
20049
 
 
20050
cat >>confdefs.h <<_ACEOF
 
20051
#define socklen_t $gl_cv_socklen_t_equiv
 
20052
_ACEOF
 
20053
 
 
20054
fi
 
20055
 
 
20056
 
 
20057
 
 
20058
 
 
20059
  # Define two additional variables used in the Makefile substitution.
 
20060
 
 
20061
  if test "$ac_cv_header_stdbool_h" = yes; then
 
20062
    STDBOOL_H=''
 
20063
  else
 
20064
    STDBOOL_H='stdbool.h'
 
20065
  fi
 
20066
 
 
20067
 
 
20068
  if test "$ac_cv_type__Bool" = yes; then
 
20069
    HAVE__BOOL=1
 
20070
  else
 
20071
    HAVE__BOOL=0
 
20072
  fi
 
20073
 
 
20074
 
 
20075
 
 
20076
 
 
20077
 
 
20078
  if test $ac_cv_type_long_long_int = yes; then
 
20079
    HAVE_LONG_LONG_INT=1
 
20080
  else
 
20081
    HAVE_LONG_LONG_INT=0
 
20082
  fi
 
20083
 
 
20084
 
 
20085
  if test $ac_cv_type_unsigned_long_long_int = yes; then
 
20086
    HAVE_UNSIGNED_LONG_LONG_INT=1
 
20087
  else
 
20088
    HAVE_UNSIGNED_LONG_LONG_INT=0
 
20089
  fi
 
20090
 
 
20091
 
 
20092
      if test $ac_cv_header_inttypes_h = yes; then
 
20093
    HAVE_INTTYPES_H=1
 
20094
  else
 
20095
    HAVE_INTTYPES_H=0
 
20096
  fi
 
20097
 
 
20098
 
 
20099
      if test $ac_cv_header_sys_types_h = yes; then
 
20100
    HAVE_SYS_TYPES_H=1
 
20101
  else
 
20102
    HAVE_SYS_TYPES_H=0
 
20103
  fi
 
20104
 
 
20105
 
 
20106
 
 
20107
 
 
20108
 
 
20109
  :
 
20110
 
 
20111
 
 
20112
 
 
20113
 
 
20114
 
 
20115
 
 
20116
 
 
20117
     if test $gl_cv_have_include_next = yes; then
 
20118
       gl_cv_next_stdint_h='<'stdint.h'>'
 
20119
     else
 
20120
       { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
 
20121
$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
 
20122
if test "${gl_cv_next_stdint_h+set}" = set; then
 
20123
  $as_echo_n "(cached) " >&6
 
20124
else
 
20125
 
 
20126
          if test $ac_cv_header_stdint_h = yes; then
 
20127
            cat >conftest.$ac_ext <<_ACEOF
 
20128
/* confdefs.h.  */
 
20129
_ACEOF
 
20130
cat confdefs.h >>conftest.$ac_ext
 
20131
cat >>conftest.$ac_ext <<_ACEOF
 
20132
/* end confdefs.h.  */
 
20133
#include <stdint.h>
 
20134
 
 
20135
_ACEOF
 
20136
                                    gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
20137
               sed -n '\#/stdint.h#{
 
20138
                 s#.*"\(.*/stdint.h\)".*#\1#
 
20139
                 s#^/[^/]#//&#
 
20140
                 p
 
20141
                 q
 
20142
               }'`'"'
 
20143
          else
 
20144
            gl_cv_next_stdint_h='<'stdint.h'>'
 
20145
          fi
 
20146
 
 
20147
fi
 
20148
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
 
20149
$as_echo "$gl_cv_next_stdint_h" >&6; }
 
20150
     fi
 
20151
     NEXT_STDINT_H=$gl_cv_next_stdint_h
 
20152
 
 
20153
 
 
20154
 
 
20155
  if test $ac_cv_header_stdint_h = yes; then
 
20156
    HAVE_STDINT_H=1
 
20157
  else
 
20158
    HAVE_STDINT_H=0
 
20159
  fi
 
20160
 
 
20161
 
 
20162
    if test $ac_cv_header_stdint_h = yes; then
 
20163
    { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
 
20164
$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
 
20165
if test "${gl_cv_header_working_stdint_h+set}" = set; then
 
20166
  $as_echo_n "(cached) " >&6
 
20167
else
 
20168
  gl_cv_header_working_stdint_h=no
 
20169
       cat >conftest.$ac_ext <<_ACEOF
 
20170
 
 
20171
         /* confdefs.h.  */
 
20172
_ACEOF
 
20173
cat confdefs.h >>conftest.$ac_ext
 
20174
cat >>conftest.$ac_ext <<_ACEOF
 
20175
/* end confdefs.h.  */
 
20176
 
 
20177
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
 
20178
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
 
20179
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
 
20180
#include <stdint.h>
 
20181
/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
 
20182
#if !(defined WCHAR_MIN && defined WCHAR_MAX)
 
20183
#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
 
20184
#endif
 
20185
 
 
20186
 
 
20187
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
20188
     included before <wchar.h>.  */
 
20189
  #include <stddef.h>
 
20190
  #include <signal.h>
 
20191
  #if HAVE_WCHAR_H
 
20192
  # include <stdio.h>
 
20193
  # include <time.h>
 
20194
  # include <wchar.h>
 
20195
  #endif
 
20196
 
 
20197
 
 
20198
#ifdef INT8_MAX
 
20199
int8_t a1 = INT8_MAX;
 
20200
int8_t a1min = INT8_MIN;
 
20201
#endif
 
20202
#ifdef INT16_MAX
 
20203
int16_t a2 = INT16_MAX;
 
20204
int16_t a2min = INT16_MIN;
 
20205
#endif
 
20206
#ifdef INT32_MAX
 
20207
int32_t a3 = INT32_MAX;
 
20208
int32_t a3min = INT32_MIN;
 
20209
#endif
 
20210
#ifdef INT64_MAX
 
20211
int64_t a4 = INT64_MAX;
 
20212
int64_t a4min = INT64_MIN;
 
20213
#endif
 
20214
#ifdef UINT8_MAX
 
20215
uint8_t b1 = UINT8_MAX;
 
20216
#else
 
20217
typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
 
20218
#endif
 
20219
#ifdef UINT16_MAX
 
20220
uint16_t b2 = UINT16_MAX;
 
20221
#endif
 
20222
#ifdef UINT32_MAX
 
20223
uint32_t b3 = UINT32_MAX;
 
20224
#endif
 
20225
#ifdef UINT64_MAX
 
20226
uint64_t b4 = UINT64_MAX;
 
20227
#endif
 
20228
int_least8_t c1 = INT8_C (0x7f);
 
20229
int_least8_t c1max = INT_LEAST8_MAX;
 
20230
int_least8_t c1min = INT_LEAST8_MIN;
 
20231
int_least16_t c2 = INT16_C (0x7fff);
 
20232
int_least16_t c2max = INT_LEAST16_MAX;
 
20233
int_least16_t c2min = INT_LEAST16_MIN;
 
20234
int_least32_t c3 = INT32_C (0x7fffffff);
 
20235
int_least32_t c3max = INT_LEAST32_MAX;
 
20236
int_least32_t c3min = INT_LEAST32_MIN;
 
20237
int_least64_t c4 = INT64_C (0x7fffffffffffffff);
 
20238
int_least64_t c4max = INT_LEAST64_MAX;
 
20239
int_least64_t c4min = INT_LEAST64_MIN;
 
20240
uint_least8_t d1 = UINT8_C (0xff);
 
20241
uint_least8_t d1max = UINT_LEAST8_MAX;
 
20242
uint_least16_t d2 = UINT16_C (0xffff);
 
20243
uint_least16_t d2max = UINT_LEAST16_MAX;
 
20244
uint_least32_t d3 = UINT32_C (0xffffffff);
 
20245
uint_least32_t d3max = UINT_LEAST32_MAX;
 
20246
uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
 
20247
uint_least64_t d4max = UINT_LEAST64_MAX;
 
20248
int_fast8_t e1 = INT_FAST8_MAX;
 
20249
int_fast8_t e1min = INT_FAST8_MIN;
 
20250
int_fast16_t e2 = INT_FAST16_MAX;
 
20251
int_fast16_t e2min = INT_FAST16_MIN;
 
20252
int_fast32_t e3 = INT_FAST32_MAX;
 
20253
int_fast32_t e3min = INT_FAST32_MIN;
 
20254
int_fast64_t e4 = INT_FAST64_MAX;
 
20255
int_fast64_t e4min = INT_FAST64_MIN;
 
20256
uint_fast8_t f1 = UINT_FAST8_MAX;
 
20257
uint_fast16_t f2 = UINT_FAST16_MAX;
 
20258
uint_fast32_t f3 = UINT_FAST32_MAX;
 
20259
uint_fast64_t f4 = UINT_FAST64_MAX;
 
20260
#ifdef INTPTR_MAX
 
20261
intptr_t g = INTPTR_MAX;
 
20262
intptr_t gmin = INTPTR_MIN;
 
20263
#endif
 
20264
#ifdef UINTPTR_MAX
 
20265
uintptr_t h = UINTPTR_MAX;
 
20266
#endif
 
20267
intmax_t i = INTMAX_MAX;
 
20268
uintmax_t j = UINTMAX_MAX;
 
20269
 
 
20270
#include <limits.h> /* for CHAR_BIT */
 
20271
#define TYPE_MINIMUM(t) \
 
20272
  ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
 
20273
#define TYPE_MAXIMUM(t) \
 
20274
  ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
 
20275
struct s {
 
20276
  int check_PTRDIFF:
 
20277
      PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
 
20278
      && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
 
20279
      ? 1 : -1;
 
20280
  /* Detect bug in FreeBSD 6.0 / ia64.  */
 
20281
  int check_SIG_ATOMIC:
 
20282
      SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
 
20283
      && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
 
20284
      ? 1 : -1;
 
20285
  int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
 
20286
  int check_WCHAR:
 
20287
      WCHAR_MIN == TYPE_MINIMUM (wchar_t)
 
20288
      && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
 
20289
      ? 1 : -1;
 
20290
  /* Detect bug in mingw.  */
 
20291
  int check_WINT:
 
20292
      WINT_MIN == TYPE_MINIMUM (wint_t)
 
20293
      && WINT_MAX == TYPE_MAXIMUM (wint_t)
 
20294
      ? 1 : -1;
 
20295
 
 
20296
  /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
 
20297
  int check_UINT8_C:
 
20298
        (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
 
20299
  int check_UINT16_C:
 
20300
        (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
 
20301
 
 
20302
  /* Detect bugs in OpenBSD 3.9 stdint.h.  */
 
20303
#ifdef UINT8_MAX
 
20304
  int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
 
20305
#endif
 
20306
#ifdef UINT16_MAX
 
20307
  int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
 
20308
#endif
 
20309
#ifdef UINT32_MAX
 
20310
  int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
 
20311
#endif
 
20312
#ifdef UINT64_MAX
 
20313
  int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
 
20314
#endif
 
20315
  int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
 
20316
  int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
 
20317
  int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
 
20318
  int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
 
20319
  int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
 
20320
  int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
 
20321
  int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
 
20322
  int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
 
20323
  int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
 
20324
  int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
 
20325
  int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
 
20326
};
 
20327
 
 
20328
int
 
20329
main ()
 
20330
{
 
20331
 
 
20332
  ;
 
20333
  return 0;
 
20334
}
 
20335
_ACEOF
 
20336
rm -f conftest.$ac_objext
 
20337
if { (ac_try="$ac_compile"
 
20338
case "(($ac_try" in
 
20339
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20340
  *) ac_try_echo=$ac_try;;
 
20341
esac
 
20342
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20343
$as_echo "$ac_try_echo") >&5
 
20344
  (eval "$ac_compile") 2>conftest.er1
 
20345
  ac_status=$?
 
20346
  grep -v '^ *+' conftest.er1 >conftest.err
 
20347
  rm -f conftest.er1
 
20348
  cat conftest.err >&5
 
20349
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20350
  (exit $ac_status); } && {
 
20351
         test -z "$ac_c_werror_flag" ||
 
20352
         test ! -s conftest.err
 
20353
       } && test -s conftest.$ac_objext; then
 
20354
  gl_cv_header_working_stdint_h=yes
 
20355
else
 
20356
  $as_echo "$as_me: failed program was:" >&5
 
20357
sed 's/^/| /' conftest.$ac_ext >&5
 
20358
 
 
20359
 
 
20360
fi
 
20361
 
 
20362
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20363
fi
 
20364
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
 
20365
$as_echo "$gl_cv_header_working_stdint_h" >&6; }
 
20366
  fi
 
20367
  if test "$gl_cv_header_working_stdint_h" = yes; then
 
20368
    STDINT_H=
 
20369
  else
 
20370
 
 
20371
 
 
20372
for ac_header in sys/inttypes.h sys/bitypes.h
 
20373
do
 
20374
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20375
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20376
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20377
$as_echo_n "checking for $ac_header... " >&6; }
 
20378
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20379
  $as_echo_n "(cached) " >&6
 
20380
fi
 
20381
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
20382
                 $as_echo "$as_val"'`
 
20383
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
20384
$as_echo "$ac_res" >&6; }
 
20385
else
 
20386
  # Is the header compilable?
 
20387
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20388
$as_echo_n "checking $ac_header usability... " >&6; }
 
20389
cat >conftest.$ac_ext <<_ACEOF
 
20390
/* confdefs.h.  */
 
20391
_ACEOF
 
20392
cat confdefs.h >>conftest.$ac_ext
 
20393
cat >>conftest.$ac_ext <<_ACEOF
 
20394
/* end confdefs.h.  */
 
20395
$ac_includes_default
 
20396
#include <$ac_header>
 
20397
_ACEOF
 
20398
rm -f conftest.$ac_objext
 
20399
if { (ac_try="$ac_compile"
 
20400
case "(($ac_try" in
 
20401
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20402
  *) ac_try_echo=$ac_try;;
 
20403
esac
 
20404
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20405
$as_echo "$ac_try_echo") >&5
 
20406
  (eval "$ac_compile") 2>conftest.er1
 
20407
  ac_status=$?
 
20408
  grep -v '^ *+' conftest.er1 >conftest.err
 
20409
  rm -f conftest.er1
 
20410
  cat conftest.err >&5
 
20411
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20412
  (exit $ac_status); } && {
 
20413
         test -z "$ac_c_werror_flag" ||
 
20414
         test ! -s conftest.err
 
20415
       } && test -s conftest.$ac_objext; then
 
20416
  ac_header_compiler=yes
 
20417
else
 
20418
  $as_echo "$as_me: failed program was:" >&5
 
20419
sed 's/^/| /' conftest.$ac_ext >&5
 
20420
 
 
20421
        ac_header_compiler=no
 
20422
fi
 
20423
 
 
20424
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20425
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20426
$as_echo "$ac_header_compiler" >&6; }
 
20427
 
 
20428
# Is the header present?
 
20429
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20430
$as_echo_n "checking $ac_header presence... " >&6; }
 
20431
cat >conftest.$ac_ext <<_ACEOF
 
20432
/* confdefs.h.  */
 
20433
_ACEOF
 
20434
cat confdefs.h >>conftest.$ac_ext
 
20435
cat >>conftest.$ac_ext <<_ACEOF
 
20436
/* end confdefs.h.  */
 
20437
#include <$ac_header>
 
20438
_ACEOF
 
20439
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
20440
case "(($ac_try" in
 
20441
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20442
  *) ac_try_echo=$ac_try;;
 
20443
esac
 
20444
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20445
$as_echo "$ac_try_echo") >&5
 
20446
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
20447
  ac_status=$?
 
20448
  grep -v '^ *+' conftest.er1 >conftest.err
 
20449
  rm -f conftest.er1
 
20450
  cat conftest.err >&5
 
20451
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20452
  (exit $ac_status); } >/dev/null && {
 
20453
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
20454
         test ! -s conftest.err
 
20455
       }; then
 
20456
  ac_header_preproc=yes
 
20457
else
 
20458
  $as_echo "$as_me: failed program was:" >&5
 
20459
sed 's/^/| /' conftest.$ac_ext >&5
 
20460
 
 
20461
  ac_header_preproc=no
 
20462
fi
 
20463
 
 
20464
rm -f conftest.err conftest.$ac_ext
 
20465
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20466
$as_echo "$ac_header_preproc" >&6; }
 
20467
 
 
20468
# So?  What about this header?
 
20469
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20470
  yes:no: )
 
20471
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20472
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20473
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20474
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20475
    ac_header_preproc=yes
 
20476
    ;;
 
20477
  no:yes:* )
 
20478
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20479
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20480
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20481
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20482
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20483
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20484
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20485
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20486
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20487
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20488
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20489
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20490
    ( cat <<\_ASBOX
 
20491
## ----------------------------------------------------------------------- ##
 
20492
## Report this to https://bugzilla.gnome.org/enter_bug.cgi?product=gtk-vnc ##
 
20493
## ----------------------------------------------------------------------- ##
 
20494
_ASBOX
 
20495
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
20496
    ;;
 
20497
esac
 
20498
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20499
$as_echo_n "checking for $ac_header... " >&6; }
 
20500
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20501
  $as_echo_n "(cached) " >&6
 
20502
else
 
20503
  eval "$as_ac_Header=\$ac_header_preproc"
 
20504
fi
 
20505
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
20506
                 $as_echo "$as_val"'`
 
20507
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
20508
$as_echo "$ac_res" >&6; }
 
20509
 
 
20510
fi
 
20511
as_val=`eval 'as_val=${'$as_ac_Header'}
 
20512
                 $as_echo "$as_val"'`
 
20513
   if test "x$as_val" = x""yes; then
 
20514
  cat >>confdefs.h <<_ACEOF
 
20515
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20516
_ACEOF
 
20517
 
 
20518
fi
 
20519
 
 
20520
done
 
20521
 
 
20522
    if test $ac_cv_header_sys_inttypes_h = yes; then
 
20523
      HAVE_SYS_INTTYPES_H=1
 
20524
    else
 
20525
      HAVE_SYS_INTTYPES_H=0
 
20526
    fi
 
20527
 
 
20528
    if test $ac_cv_header_sys_bitypes_h = yes; then
 
20529
      HAVE_SYS_BITYPES_H=1
 
20530
    else
 
20531
      HAVE_SYS_BITYPES_H=0
 
20532
    fi
 
20533
 
 
20534
 
 
20535
 
 
20536
  :
 
20537
 
 
20538
 
 
20539
 
 
20540
 
 
20541
 
 
20542
 
 
20543
 
 
20544
 
 
20545
 
 
20546
 
 
20547
 
 
20548
 
 
20549
 
 
20550
 
 
20551
  for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
 
20552
    { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
 
20553
$as_echo_n "checking for bit size of $gltype... " >&6; }
 
20554
if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
 
20555
  $as_echo_n "(cached) " >&6
 
20556
else
 
20557
  if test "$cross_compiling" = yes; then
 
20558
  # Depending upon the size, compute the lo and hi bounds.
 
20559
cat >conftest.$ac_ext <<_ACEOF
 
20560
/* confdefs.h.  */
 
20561
_ACEOF
 
20562
cat confdefs.h >>conftest.$ac_ext
 
20563
cat >>conftest.$ac_ext <<_ACEOF
 
20564
/* end confdefs.h.  */
 
20565
 
 
20566
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
20567
     included before <wchar.h>.  */
 
20568
  #include <stddef.h>
 
20569
  #include <signal.h>
 
20570
  #if HAVE_WCHAR_H
 
20571
  # include <stdio.h>
 
20572
  # include <time.h>
 
20573
  # include <wchar.h>
 
20574
  #endif
 
20575
 
 
20576
#include <limits.h>
 
20577
int
 
20578
main ()
 
20579
{
 
20580
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
 
20581
test_array [0] = 0
 
20582
 
 
20583
  ;
 
20584
  return 0;
 
20585
}
 
20586
_ACEOF
 
20587
rm -f conftest.$ac_objext
 
20588
if { (ac_try="$ac_compile"
 
20589
case "(($ac_try" in
 
20590
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20591
  *) ac_try_echo=$ac_try;;
 
20592
esac
 
20593
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20594
$as_echo "$ac_try_echo") >&5
 
20595
  (eval "$ac_compile") 2>conftest.er1
 
20596
  ac_status=$?
 
20597
  grep -v '^ *+' conftest.er1 >conftest.err
 
20598
  rm -f conftest.er1
 
20599
  cat conftest.err >&5
 
20600
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20601
  (exit $ac_status); } && {
 
20602
         test -z "$ac_c_werror_flag" ||
 
20603
         test ! -s conftest.err
 
20604
       } && test -s conftest.$ac_objext; then
 
20605
  ac_lo=0 ac_mid=0
 
20606
  while :; do
 
20607
    cat >conftest.$ac_ext <<_ACEOF
 
20608
/* confdefs.h.  */
 
20609
_ACEOF
 
20610
cat confdefs.h >>conftest.$ac_ext
 
20611
cat >>conftest.$ac_ext <<_ACEOF
 
20612
/* end confdefs.h.  */
 
20613
 
 
20614
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
20615
     included before <wchar.h>.  */
 
20616
  #include <stddef.h>
 
20617
  #include <signal.h>
 
20618
  #if HAVE_WCHAR_H
 
20619
  # include <stdio.h>
 
20620
  # include <time.h>
 
20621
  # include <wchar.h>
 
20622
  #endif
 
20623
 
 
20624
#include <limits.h>
 
20625
int
 
20626
main ()
 
20627
{
 
20628
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
 
20629
test_array [0] = 0
 
20630
 
 
20631
  ;
 
20632
  return 0;
 
20633
}
 
20634
_ACEOF
 
20635
rm -f conftest.$ac_objext
 
20636
if { (ac_try="$ac_compile"
 
20637
case "(($ac_try" in
 
20638
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20639
  *) ac_try_echo=$ac_try;;
 
20640
esac
 
20641
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20642
$as_echo "$ac_try_echo") >&5
 
20643
  (eval "$ac_compile") 2>conftest.er1
 
20644
  ac_status=$?
 
20645
  grep -v '^ *+' conftest.er1 >conftest.err
 
20646
  rm -f conftest.er1
 
20647
  cat conftest.err >&5
 
20648
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20649
  (exit $ac_status); } && {
 
20650
         test -z "$ac_c_werror_flag" ||
 
20651
         test ! -s conftest.err
 
20652
       } && test -s conftest.$ac_objext; then
 
20653
  ac_hi=$ac_mid; break
 
20654
else
 
20655
  $as_echo "$as_me: failed program was:" >&5
 
20656
sed 's/^/| /' conftest.$ac_ext >&5
 
20657
 
 
20658
        ac_lo=`expr $ac_mid + 1`
 
20659
                        if test $ac_lo -le $ac_mid; then
 
20660
                          ac_lo= ac_hi=
 
20661
                          break
 
20662
                        fi
 
20663
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
20664
fi
 
20665
 
 
20666
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20667
  done
 
20668
else
 
20669
  $as_echo "$as_me: failed program was:" >&5
 
20670
sed 's/^/| /' conftest.$ac_ext >&5
 
20671
 
 
20672
        cat >conftest.$ac_ext <<_ACEOF
 
20673
/* confdefs.h.  */
 
20674
_ACEOF
 
20675
cat confdefs.h >>conftest.$ac_ext
 
20676
cat >>conftest.$ac_ext <<_ACEOF
 
20677
/* end confdefs.h.  */
 
20678
 
 
20679
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
20680
     included before <wchar.h>.  */
 
20681
  #include <stddef.h>
 
20682
  #include <signal.h>
 
20683
  #if HAVE_WCHAR_H
 
20684
  # include <stdio.h>
 
20685
  # include <time.h>
 
20686
  # include <wchar.h>
 
20687
  #endif
 
20688
 
 
20689
#include <limits.h>
 
20690
int
 
20691
main ()
 
20692
{
 
20693
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
 
20694
test_array [0] = 0
 
20695
 
 
20696
  ;
 
20697
  return 0;
 
20698
}
 
20699
_ACEOF
 
20700
rm -f conftest.$ac_objext
 
20701
if { (ac_try="$ac_compile"
 
20702
case "(($ac_try" in
 
20703
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20704
  *) ac_try_echo=$ac_try;;
 
20705
esac
 
20706
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20707
$as_echo "$ac_try_echo") >&5
 
20708
  (eval "$ac_compile") 2>conftest.er1
 
20709
  ac_status=$?
 
20710
  grep -v '^ *+' conftest.er1 >conftest.err
 
20711
  rm -f conftest.er1
 
20712
  cat conftest.err >&5
 
20713
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20714
  (exit $ac_status); } && {
 
20715
         test -z "$ac_c_werror_flag" ||
 
20716
         test ! -s conftest.err
 
20717
       } && test -s conftest.$ac_objext; then
 
20718
  ac_hi=-1 ac_mid=-1
 
20719
  while :; do
 
20720
    cat >conftest.$ac_ext <<_ACEOF
 
20721
/* confdefs.h.  */
 
20722
_ACEOF
 
20723
cat confdefs.h >>conftest.$ac_ext
 
20724
cat >>conftest.$ac_ext <<_ACEOF
 
20725
/* end confdefs.h.  */
 
20726
 
 
20727
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
20728
     included before <wchar.h>.  */
 
20729
  #include <stddef.h>
 
20730
  #include <signal.h>
 
20731
  #if HAVE_WCHAR_H
 
20732
  # include <stdio.h>
 
20733
  # include <time.h>
 
20734
  # include <wchar.h>
 
20735
  #endif
 
20736
 
 
20737
#include <limits.h>
 
20738
int
 
20739
main ()
 
20740
{
 
20741
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
 
20742
test_array [0] = 0
 
20743
 
 
20744
  ;
 
20745
  return 0;
 
20746
}
 
20747
_ACEOF
 
20748
rm -f conftest.$ac_objext
 
20749
if { (ac_try="$ac_compile"
 
20750
case "(($ac_try" in
 
20751
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20752
  *) ac_try_echo=$ac_try;;
 
20753
esac
 
20754
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20755
$as_echo "$ac_try_echo") >&5
 
20756
  (eval "$ac_compile") 2>conftest.er1
 
20757
  ac_status=$?
 
20758
  grep -v '^ *+' conftest.er1 >conftest.err
 
20759
  rm -f conftest.er1
 
20760
  cat conftest.err >&5
 
20761
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20762
  (exit $ac_status); } && {
 
20763
         test -z "$ac_c_werror_flag" ||
 
20764
         test ! -s conftest.err
 
20765
       } && test -s conftest.$ac_objext; then
 
20766
  ac_lo=$ac_mid; break
 
20767
else
 
20768
  $as_echo "$as_me: failed program was:" >&5
 
20769
sed 's/^/| /' conftest.$ac_ext >&5
 
20770
 
 
20771
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
20772
                        if test $ac_mid -le $ac_hi; then
 
20773
                          ac_lo= ac_hi=
 
20774
                          break
 
20775
                        fi
 
20776
                        ac_mid=`expr 2 '*' $ac_mid`
 
20777
fi
 
20778
 
 
20779
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20780
  done
 
20781
else
 
20782
  $as_echo "$as_me: failed program was:" >&5
 
20783
sed 's/^/| /' conftest.$ac_ext >&5
 
20784
 
 
20785
        ac_lo= ac_hi=
 
20786
fi
 
20787
 
 
20788
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20789
fi
 
20790
 
 
20791
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20792
# Binary search between lo and hi bounds.
 
20793
while test "x$ac_lo" != "x$ac_hi"; do
 
20794
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
20795
  cat >conftest.$ac_ext <<_ACEOF
 
20796
/* confdefs.h.  */
 
20797
_ACEOF
 
20798
cat confdefs.h >>conftest.$ac_ext
 
20799
cat >>conftest.$ac_ext <<_ACEOF
 
20800
/* end confdefs.h.  */
 
20801
 
 
20802
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
20803
     included before <wchar.h>.  */
 
20804
  #include <stddef.h>
 
20805
  #include <signal.h>
 
20806
  #if HAVE_WCHAR_H
 
20807
  # include <stdio.h>
 
20808
  # include <time.h>
 
20809
  # include <wchar.h>
 
20810
  #endif
 
20811
 
 
20812
#include <limits.h>
 
20813
int
 
20814
main ()
 
20815
{
 
20816
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
 
20817
test_array [0] = 0
 
20818
 
 
20819
  ;
 
20820
  return 0;
 
20821
}
 
20822
_ACEOF
 
20823
rm -f conftest.$ac_objext
 
20824
if { (ac_try="$ac_compile"
 
20825
case "(($ac_try" in
 
20826
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20827
  *) ac_try_echo=$ac_try;;
 
20828
esac
 
20829
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20830
$as_echo "$ac_try_echo") >&5
 
20831
  (eval "$ac_compile") 2>conftest.er1
 
20832
  ac_status=$?
 
20833
  grep -v '^ *+' conftest.er1 >conftest.err
 
20834
  rm -f conftest.er1
 
20835
  cat conftest.err >&5
 
20836
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20837
  (exit $ac_status); } && {
 
20838
         test -z "$ac_c_werror_flag" ||
 
20839
         test ! -s conftest.err
 
20840
       } && test -s conftest.$ac_objext; then
 
20841
  ac_hi=$ac_mid
 
20842
else
 
20843
  $as_echo "$as_me: failed program was:" >&5
 
20844
sed 's/^/| /' conftest.$ac_ext >&5
 
20845
 
 
20846
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
20847
fi
 
20848
 
 
20849
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20850
done
 
20851
case $ac_lo in
 
20852
?*) result=$ac_lo;;
 
20853
'') result=unknown ;;
 
20854
esac
 
20855
else
 
20856
  cat >conftest.$ac_ext <<_ACEOF
 
20857
/* confdefs.h.  */
 
20858
_ACEOF
 
20859
cat confdefs.h >>conftest.$ac_ext
 
20860
cat >>conftest.$ac_ext <<_ACEOF
 
20861
/* end confdefs.h.  */
 
20862
 
 
20863
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
20864
     included before <wchar.h>.  */
 
20865
  #include <stddef.h>
 
20866
  #include <signal.h>
 
20867
  #if HAVE_WCHAR_H
 
20868
  # include <stdio.h>
 
20869
  # include <time.h>
 
20870
  # include <wchar.h>
 
20871
  #endif
 
20872
 
 
20873
#include <limits.h>
 
20874
static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
 
20875
static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
 
20876
#include <stdio.h>
 
20877
#include <stdlib.h>
 
20878
int
 
20879
main ()
 
20880
{
 
20881
 
 
20882
  FILE *f = fopen ("conftest.val", "w");
 
20883
  if (! f)
 
20884
    return 1;
 
20885
  if ((sizeof ($gltype) * CHAR_BIT) < 0)
 
20886
    {
 
20887
      long int i = longval ();
 
20888
      if (i != (sizeof ($gltype) * CHAR_BIT))
 
20889
        return 1;
 
20890
      fprintf (f, "%ld", i);
 
20891
    }
 
20892
  else
 
20893
    {
 
20894
      unsigned long int i = ulongval ();
 
20895
      if (i != (sizeof ($gltype) * CHAR_BIT))
 
20896
        return 1;
 
20897
      fprintf (f, "%lu", i);
 
20898
    }
 
20899
  /* Do not output a trailing newline, as this causes \r\n confusion
 
20900
     on some platforms.  */
 
20901
  return ferror (f) || fclose (f) != 0;
 
20902
 
 
20903
  ;
 
20904
  return 0;
 
20905
}
 
20906
_ACEOF
 
20907
rm -f conftest$ac_exeext
 
20908
if { (ac_try="$ac_link"
 
20909
case "(($ac_try" in
 
20910
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20911
  *) ac_try_echo=$ac_try;;
 
20912
esac
 
20913
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20914
$as_echo "$ac_try_echo") >&5
 
20915
  (eval "$ac_link") 2>&5
 
20916
  ac_status=$?
 
20917
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20918
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20919
  { (case "(($ac_try" in
 
20920
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20921
  *) ac_try_echo=$ac_try;;
 
20922
esac
 
20923
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20924
$as_echo "$ac_try_echo") >&5
 
20925
  (eval "$ac_try") 2>&5
 
20926
  ac_status=$?
 
20927
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20928
  (exit $ac_status); }; }; then
 
20929
  result=`cat conftest.val`
 
20930
else
 
20931
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
20932
$as_echo "$as_me: failed program was:" >&5
 
20933
sed 's/^/| /' conftest.$ac_ext >&5
 
20934
 
 
20935
( exit $ac_status )
 
20936
result=unknown
 
20937
fi
 
20938
rm -rf conftest.dSYM
 
20939
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20940
fi
 
20941
rm -f conftest.val
 
20942
       eval gl_cv_bitsizeof_${gltype}=\$result
 
20943
 
 
20944
fi
 
20945
ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
 
20946
                 $as_echo "$as_val"'`
 
20947
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
20948
$as_echo "$ac_res" >&6; }
 
20949
    eval result=\$gl_cv_bitsizeof_${gltype}
 
20950
    if test $result = unknown; then
 
20951
                                                result=0
 
20952
    fi
 
20953
    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
20954
    cat >>confdefs.h <<_ACEOF
 
20955
#define BITSIZEOF_${GLTYPE} $result
 
20956
_ACEOF
 
20957
 
 
20958
    eval BITSIZEOF_${GLTYPE}=\$result
 
20959
  done
 
20960
 
 
20961
 
 
20962
 
 
20963
 
 
20964
 
 
20965
 
 
20966
 
 
20967
  for gltype in sig_atomic_t wchar_t wint_t ; do
 
20968
    { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
 
20969
$as_echo_n "checking whether $gltype is signed... " >&6; }
 
20970
if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
 
20971
  $as_echo_n "(cached) " >&6
 
20972
else
 
20973
  cat >conftest.$ac_ext <<_ACEOF
 
20974
/* confdefs.h.  */
 
20975
_ACEOF
 
20976
cat confdefs.h >>conftest.$ac_ext
 
20977
cat >>conftest.$ac_ext <<_ACEOF
 
20978
/* end confdefs.h.  */
 
20979
 
 
20980
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
20981
     included before <wchar.h>.  */
 
20982
  #include <stddef.h>
 
20983
  #include <signal.h>
 
20984
  #if HAVE_WCHAR_H
 
20985
  # include <stdio.h>
 
20986
  # include <time.h>
 
20987
  # include <wchar.h>
 
20988
  #endif
 
20989
 
 
20990
            int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
 
20991
int
 
20992
main ()
 
20993
{
 
20994
 
 
20995
  ;
 
20996
  return 0;
 
20997
}
 
20998
_ACEOF
 
20999
rm -f conftest.$ac_objext
 
21000
if { (ac_try="$ac_compile"
 
21001
case "(($ac_try" in
 
21002
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21003
  *) ac_try_echo=$ac_try;;
 
21004
esac
 
21005
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21006
$as_echo "$ac_try_echo") >&5
 
21007
  (eval "$ac_compile") 2>conftest.er1
 
21008
  ac_status=$?
 
21009
  grep -v '^ *+' conftest.er1 >conftest.err
 
21010
  rm -f conftest.er1
 
21011
  cat conftest.err >&5
 
21012
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21013
  (exit $ac_status); } && {
 
21014
         test -z "$ac_c_werror_flag" ||
 
21015
         test ! -s conftest.err
 
21016
       } && test -s conftest.$ac_objext; then
 
21017
  result=yes
 
21018
else
 
21019
  $as_echo "$as_me: failed program was:" >&5
 
21020
sed 's/^/| /' conftest.$ac_ext >&5
 
21021
 
 
21022
        result=no
 
21023
fi
 
21024
 
 
21025
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21026
       eval gl_cv_type_${gltype}_signed=\$result
 
21027
 
 
21028
fi
 
21029
ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
 
21030
                 $as_echo "$as_val"'`
 
21031
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
21032
$as_echo "$ac_res" >&6; }
 
21033
    eval result=\$gl_cv_type_${gltype}_signed
 
21034
    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
21035
    if test "$result" = yes; then
 
21036
      cat >>confdefs.h <<_ACEOF
 
21037
#define HAVE_SIGNED_${GLTYPE} 1
 
21038
_ACEOF
 
21039
 
 
21040
      eval HAVE_SIGNED_${GLTYPE}=1
 
21041
    else
 
21042
      eval HAVE_SIGNED_${GLTYPE}=0
 
21043
    fi
 
21044
  done
 
21045
 
 
21046
 
 
21047
  gl_cv_type_ptrdiff_t_signed=yes
 
21048
  gl_cv_type_size_t_signed=no
 
21049
 
 
21050
 
 
21051
 
 
21052
 
 
21053
 
 
21054
 
 
21055
 
 
21056
  for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
 
21057
    { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
 
21058
$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
 
21059
if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
 
21060
  $as_echo_n "(cached) " >&6
 
21061
else
 
21062
  eval gl_cv_type_${gltype}_suffix=no
 
21063
       eval result=\$gl_cv_type_${gltype}_signed
 
21064
       if test "$result" = yes; then
 
21065
         glsufu=
 
21066
       else
 
21067
         glsufu=u
 
21068
       fi
 
21069
       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
 
21070
         case $glsuf in
 
21071
           '')  gltype1='int';;
 
21072
           l)   gltype1='long int';;
 
21073
           ll)  gltype1='long long int';;
 
21074
           i64) gltype1='__int64';;
 
21075
           u)   gltype1='unsigned int';;
 
21076
           ul)  gltype1='unsigned long int';;
 
21077
           ull) gltype1='unsigned long long int';;
 
21078
           ui64)gltype1='unsigned __int64';;
 
21079
         esac
 
21080
         cat >conftest.$ac_ext <<_ACEOF
 
21081
/* confdefs.h.  */
 
21082
_ACEOF
 
21083
cat confdefs.h >>conftest.$ac_ext
 
21084
cat >>conftest.$ac_ext <<_ACEOF
 
21085
/* end confdefs.h.  */
 
21086
 
 
21087
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
21088
     included before <wchar.h>.  */
 
21089
  #include <stddef.h>
 
21090
  #include <signal.h>
 
21091
  #if HAVE_WCHAR_H
 
21092
  # include <stdio.h>
 
21093
  # include <time.h>
 
21094
  # include <wchar.h>
 
21095
  #endif
 
21096
 
 
21097
              extern $gltype foo;
 
21098
              extern $gltype1 foo;
 
21099
int
 
21100
main ()
 
21101
{
 
21102
 
 
21103
  ;
 
21104
  return 0;
 
21105
}
 
21106
_ACEOF
 
21107
rm -f conftest.$ac_objext
 
21108
if { (ac_try="$ac_compile"
 
21109
case "(($ac_try" in
 
21110
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21111
  *) ac_try_echo=$ac_try;;
 
21112
esac
 
21113
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21114
$as_echo "$ac_try_echo") >&5
 
21115
  (eval "$ac_compile") 2>conftest.er1
 
21116
  ac_status=$?
 
21117
  grep -v '^ *+' conftest.er1 >conftest.err
 
21118
  rm -f conftest.er1
 
21119
  cat conftest.err >&5
 
21120
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21121
  (exit $ac_status); } && {
 
21122
         test -z "$ac_c_werror_flag" ||
 
21123
         test ! -s conftest.err
 
21124
       } && test -s conftest.$ac_objext; then
 
21125
  eval gl_cv_type_${gltype}_suffix=\$glsuf
 
21126
else
 
21127
  $as_echo "$as_me: failed program was:" >&5
 
21128
sed 's/^/| /' conftest.$ac_ext >&5
 
21129
 
 
21130
 
 
21131
fi
 
21132
 
 
21133
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21134
         eval result=\$gl_cv_type_${gltype}_suffix
 
21135
         test "$result" != no && break
 
21136
       done
 
21137
fi
 
21138
ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
 
21139
                 $as_echo "$as_val"'`
 
21140
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
21141
$as_echo "$ac_res" >&6; }
 
21142
    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
21143
    eval result=\$gl_cv_type_${gltype}_suffix
 
21144
    test "$result" = no && result=
 
21145
    eval ${GLTYPE}_SUFFIX=\$result
 
21146
    cat >>confdefs.h <<_ACEOF
 
21147
#define ${GLTYPE}_SUFFIX $result
 
21148
_ACEOF
 
21149
 
 
21150
  done
 
21151
 
 
21152
 
 
21153
 
 
21154
    STDINT_H=stdint.h
 
21155
  fi
 
21156
 
 
21157
 
 
21158
 
 
21159
 
 
21160
 
 
21161
 
 
21162
 
 
21163
  :
 
21164
 
 
21165
 
 
21166
 
 
21167
 
 
21168
 
 
21169
 
 
21170
 
 
21171
     if test $gl_cv_have_include_next = yes; then
 
21172
       gl_cv_next_stdio_h='<'stdio.h'>'
 
21173
     else
 
21174
       { $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
 
21175
$as_echo_n "checking absolute name of <stdio.h>... " >&6; }
 
21176
if test "${gl_cv_next_stdio_h+set}" = set; then
 
21177
  $as_echo_n "(cached) " >&6
 
21178
else
 
21179
 
 
21180
          if test $ac_cv_header_stdio_h = yes; then
 
21181
            cat >conftest.$ac_ext <<_ACEOF
 
21182
/* confdefs.h.  */
 
21183
_ACEOF
 
21184
cat confdefs.h >>conftest.$ac_ext
 
21185
cat >>conftest.$ac_ext <<_ACEOF
 
21186
/* end confdefs.h.  */
 
21187
#include <stdio.h>
 
21188
 
 
21189
_ACEOF
 
21190
                                    gl_cv_next_stdio_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
21191
               sed -n '\#/stdio.h#{
 
21192
                 s#.*"\(.*/stdio.h\)".*#\1#
 
21193
                 s#^/[^/]#//&#
 
21194
                 p
 
21195
                 q
 
21196
               }'`'"'
 
21197
          else
 
21198
            gl_cv_next_stdio_h='<'stdio.h'>'
 
21199
          fi
 
21200
 
 
21201
fi
 
21202
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
 
21203
$as_echo "$gl_cv_next_stdio_h" >&6; }
 
21204
     fi
 
21205
     NEXT_STDIO_H=$gl_cv_next_stdio_h
 
21206
 
 
21207
 
 
21208
 
 
21209
      GNULIB_FPRINTF=1
 
21210
  GNULIB_PRINTF=1
 
21211
  GNULIB_VFPRINTF=1
 
21212
  GNULIB_VPRINTF=1
 
21213
  GNULIB_FPUTC=1
 
21214
  GNULIB_PUTC=1
 
21215
  GNULIB_PUTCHAR=1
 
21216
  GNULIB_FPUTS=1
 
21217
  GNULIB_PUTS=1
 
21218
  GNULIB_FWRITE=1
 
21219
 
 
21220
 
 
21221
 
 
21222
 
 
21223
 
 
21224
 
 
21225
 
 
21226
  :
 
21227
 
 
21228
 
 
21229
 
 
21230
 
 
21231
 
 
21232
 
 
21233
 
 
21234
     if test $gl_cv_have_include_next = yes; then
 
21235
       gl_cv_next_stdlib_h='<'stdlib.h'>'
 
21236
     else
 
21237
       { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
 
21238
$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
 
21239
if test "${gl_cv_next_stdlib_h+set}" = set; then
 
21240
  $as_echo_n "(cached) " >&6
 
21241
else
 
21242
 
 
21243
          if test $ac_cv_header_stdlib_h = yes; then
 
21244
            cat >conftest.$ac_ext <<_ACEOF
 
21245
/* confdefs.h.  */
 
21246
_ACEOF
 
21247
cat confdefs.h >>conftest.$ac_ext
 
21248
cat >>conftest.$ac_ext <<_ACEOF
 
21249
/* end confdefs.h.  */
 
21250
#include <stdlib.h>
 
21251
 
 
21252
_ACEOF
 
21253
                                    gl_cv_next_stdlib_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
21254
               sed -n '\#/stdlib.h#{
 
21255
                 s#.*"\(.*/stdlib.h\)".*#\1#
 
21256
                 s#^/[^/]#//&#
 
21257
                 p
 
21258
                 q
 
21259
               }'`'"'
 
21260
          else
 
21261
            gl_cv_next_stdlib_h='<'stdlib.h'>'
 
21262
          fi
 
21263
 
 
21264
fi
 
21265
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
 
21266
$as_echo "$gl_cv_next_stdlib_h" >&6; }
 
21267
     fi
 
21268
     NEXT_STDLIB_H=$gl_cv_next_stdlib_h
 
21269
 
 
21270
 
 
21271
 
 
21272
 
 
21273
 
 
21274
 
 
21275
 
 
21276
 
 
21277
  { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> is self-contained" >&5
 
21278
$as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
 
21279
if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then
 
21280
  $as_echo_n "(cached) " >&6
 
21281
else
 
21282
 
 
21283
      cat >conftest.$ac_ext <<_ACEOF
 
21284
/* confdefs.h.  */
 
21285
_ACEOF
 
21286
cat confdefs.h >>conftest.$ac_ext
 
21287
cat >>conftest.$ac_ext <<_ACEOF
 
21288
/* end confdefs.h.  */
 
21289
#include <sys/socket.h>
 
21290
int
 
21291
main ()
 
21292
{
 
21293
 
 
21294
  ;
 
21295
  return 0;
 
21296
}
 
21297
_ACEOF
 
21298
rm -f conftest.$ac_objext
 
21299
if { (ac_try="$ac_compile"
 
21300
case "(($ac_try" in
 
21301
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21302
  *) ac_try_echo=$ac_try;;
 
21303
esac
 
21304
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21305
$as_echo "$ac_try_echo") >&5
 
21306
  (eval "$ac_compile") 2>conftest.er1
 
21307
  ac_status=$?
 
21308
  grep -v '^ *+' conftest.er1 >conftest.err
 
21309
  rm -f conftest.er1
 
21310
  cat conftest.err >&5
 
21311
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21312
  (exit $ac_status); } && {
 
21313
         test -z "$ac_c_werror_flag" ||
 
21314
         test ! -s conftest.err
 
21315
       } && test -s conftest.$ac_objext; then
 
21316
  gl_cv_header_sys_socket_h_selfcontained=yes
 
21317
else
 
21318
  $as_echo "$as_me: failed program was:" >&5
 
21319
sed 's/^/| /' conftest.$ac_ext >&5
 
21320
 
 
21321
        gl_cv_header_sys_socket_h_selfcontained=no
 
21322
fi
 
21323
 
 
21324
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21325
 
 
21326
fi
 
21327
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
 
21328
$as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
 
21329
  if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
 
21330
    SYS_SOCKET_H=''
 
21331
 
 
21332
for ac_func in shutdown
 
21333
do
 
21334
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
21335
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21336
$as_echo_n "checking for $ac_func... " >&6; }
 
21337
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
21338
  $as_echo_n "(cached) " >&6
 
21339
else
 
21340
  cat >conftest.$ac_ext <<_ACEOF
 
21341
/* confdefs.h.  */
 
21342
_ACEOF
 
21343
cat confdefs.h >>conftest.$ac_ext
 
21344
cat >>conftest.$ac_ext <<_ACEOF
 
21345
/* end confdefs.h.  */
 
21346
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21347
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21348
#define $ac_func innocuous_$ac_func
 
21349
 
 
21350
/* System header to define __stub macros and hopefully few prototypes,
 
21351
    which can conflict with char $ac_func (); below.
 
21352
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21353
    <limits.h> exists even on freestanding compilers.  */
 
21354
 
 
21355
#ifdef __STDC__
 
21356
# include <limits.h>
 
21357
#else
 
21358
# include <assert.h>
 
21359
#endif
 
21360
 
 
21361
#undef $ac_func
 
21362
 
 
21363
/* Override any GCC internal prototype to avoid an error.
 
21364
   Use char because int might match the return type of a GCC
 
21365
   builtin and then its argument prototype would still apply.  */
 
21366
#ifdef __cplusplus
 
21367
extern "C"
 
21368
#endif
 
21369
char $ac_func ();
 
21370
/* The GNU C library defines this for functions which it implements
 
21371
    to always fail with ENOSYS.  Some functions are actually named
 
21372
    something starting with __ and the normal name is an alias.  */
 
21373
#if defined __stub_$ac_func || defined __stub___$ac_func
 
21374
choke me
 
21375
#endif
 
21376
 
 
21377
int
 
21378
main ()
 
21379
{
 
21380
return $ac_func ();
 
21381
  ;
 
21382
  return 0;
 
21383
}
 
21384
_ACEOF
 
21385
rm -f conftest.$ac_objext conftest$ac_exeext
 
21386
if { (ac_try="$ac_link"
 
21387
case "(($ac_try" in
 
21388
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21389
  *) ac_try_echo=$ac_try;;
 
21390
esac
 
21391
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21392
$as_echo "$ac_try_echo") >&5
 
21393
  (eval "$ac_link") 2>conftest.er1
 
21394
  ac_status=$?
 
21395
  grep -v '^ *+' conftest.er1 >conftest.err
 
21396
  rm -f conftest.er1
 
21397
  cat conftest.err >&5
 
21398
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21399
  (exit $ac_status); } && {
 
21400
         test -z "$ac_c_werror_flag" ||
 
21401
         test ! -s conftest.err
 
21402
       } && test -s conftest$ac_exeext && {
 
21403
         test "$cross_compiling" = yes ||
 
21404
         $as_test_x conftest$ac_exeext
 
21405
       }; then
 
21406
  eval "$as_ac_var=yes"
 
21407
else
 
21408
  $as_echo "$as_me: failed program was:" >&5
 
21409
sed 's/^/| /' conftest.$ac_ext >&5
 
21410
 
 
21411
        eval "$as_ac_var=no"
 
21412
fi
 
21413
 
 
21414
rm -rf conftest.dSYM
 
21415
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21416
      conftest$ac_exeext conftest.$ac_ext
 
21417
fi
 
21418
ac_res=`eval 'as_val=${'$as_ac_var'}
 
21419
                 $as_echo "$as_val"'`
 
21420
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
21421
$as_echo "$ac_res" >&6; }
 
21422
as_val=`eval 'as_val=${'$as_ac_var'}
 
21423
                 $as_echo "$as_val"'`
 
21424
   if test "x$as_val" = x""yes; then
 
21425
  cat >>confdefs.h <<_ACEOF
 
21426
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
21427
_ACEOF
 
21428
 
 
21429
fi
 
21430
done
 
21431
 
 
21432
    if test $ac_cv_func_shutdown = yes; then
 
21433
      { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
 
21434
$as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
 
21435
if test "${gl_cv_header_sys_socket_h_shut+set}" = set; then
 
21436
  $as_echo_n "(cached) " >&6
 
21437
else
 
21438
 
 
21439
          cat >conftest.$ac_ext <<_ACEOF
 
21440
/* confdefs.h.  */
 
21441
_ACEOF
 
21442
cat confdefs.h >>conftest.$ac_ext
 
21443
cat >>conftest.$ac_ext <<_ACEOF
 
21444
/* end confdefs.h.  */
 
21445
#include <sys/socket.h>
 
21446
int
 
21447
main ()
 
21448
{
 
21449
int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
 
21450
  ;
 
21451
  return 0;
 
21452
}
 
21453
_ACEOF
 
21454
rm -f conftest.$ac_objext
 
21455
if { (ac_try="$ac_compile"
 
21456
case "(($ac_try" in
 
21457
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21458
  *) ac_try_echo=$ac_try;;
 
21459
esac
 
21460
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21461
$as_echo "$ac_try_echo") >&5
 
21462
  (eval "$ac_compile") 2>conftest.er1
 
21463
  ac_status=$?
 
21464
  grep -v '^ *+' conftest.er1 >conftest.err
 
21465
  rm -f conftest.er1
 
21466
  cat conftest.err >&5
 
21467
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21468
  (exit $ac_status); } && {
 
21469
         test -z "$ac_c_werror_flag" ||
 
21470
         test ! -s conftest.err
 
21471
       } && test -s conftest.$ac_objext; then
 
21472
  gl_cv_header_sys_socket_h_shut=yes
 
21473
else
 
21474
  $as_echo "$as_me: failed program was:" >&5
 
21475
sed 's/^/| /' conftest.$ac_ext >&5
 
21476
 
 
21477
        gl_cv_header_sys_socket_h_shut=no
 
21478
fi
 
21479
 
 
21480
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21481
 
 
21482
fi
 
21483
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_shut" >&5
 
21484
$as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
 
21485
      if test $gl_cv_header_sys_socket_h_shut = no; then
 
21486
        SYS_SOCKET_H='sys/socket.h'
 
21487
      fi
 
21488
    fi
 
21489
  else
 
21490
    SYS_SOCKET_H='sys/socket.h'
 
21491
  fi
 
21492
  if test -n "$SYS_SOCKET_H"; then
 
21493
 
 
21494
 
 
21495
 
 
21496
  :
 
21497
 
 
21498
 
 
21499
 
 
21500
 
 
21501
 
 
21502
 
 
21503
 
 
21504
     if test $gl_cv_have_include_next = yes; then
 
21505
       gl_cv_next_sys_socket_h='<'sys/socket.h'>'
 
21506
     else
 
21507
       { $as_echo "$as_me:$LINENO: checking absolute name of <sys/socket.h>" >&5
 
21508
$as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
 
21509
if test "${gl_cv_next_sys_socket_h+set}" = set; then
 
21510
  $as_echo_n "(cached) " >&6
 
21511
else
 
21512
 
 
21513
          if test $ac_cv_header_sys_socket_h = yes; then
 
21514
            cat >conftest.$ac_ext <<_ACEOF
 
21515
/* confdefs.h.  */
 
21516
_ACEOF
 
21517
cat confdefs.h >>conftest.$ac_ext
 
21518
cat >>conftest.$ac_ext <<_ACEOF
 
21519
/* end confdefs.h.  */
 
21520
#include <sys/socket.h>
 
21521
 
 
21522
_ACEOF
 
21523
                                    gl_cv_next_sys_socket_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
21524
               sed -n '\#/sys/socket.h#{
 
21525
                 s#.*"\(.*/sys/socket.h\)".*#\1#
 
21526
                 s#^/[^/]#//&#
 
21527
                 p
 
21528
                 q
 
21529
               }'`'"'
 
21530
          else
 
21531
            gl_cv_next_sys_socket_h='<'sys/socket.h'>'
 
21532
          fi
 
21533
 
 
21534
fi
 
21535
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_socket_h" >&5
 
21536
$as_echo "$gl_cv_next_sys_socket_h" >&6; }
 
21537
     fi
 
21538
     NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
 
21539
 
 
21540
 
 
21541
 
 
21542
    if test $ac_cv_header_sys_socket_h = yes; then
 
21543
      HAVE_SYS_SOCKET_H=1
 
21544
      HAVE_WS2TCPIP_H=0
 
21545
    else
 
21546
      HAVE_SYS_SOCKET_H=0
 
21547
 
 
21548
for ac_header in ws2tcpip.h
 
21549
do
 
21550
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
21551
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21552
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21553
$as_echo_n "checking for $ac_header... " >&6; }
 
21554
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21555
  $as_echo_n "(cached) " >&6
 
21556
fi
 
21557
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
21558
                 $as_echo "$as_val"'`
 
21559
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
21560
$as_echo "$ac_res" >&6; }
 
21561
else
 
21562
  # Is the header compilable?
 
21563
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
21564
$as_echo_n "checking $ac_header usability... " >&6; }
 
21565
cat >conftest.$ac_ext <<_ACEOF
 
21566
/* confdefs.h.  */
 
21567
_ACEOF
 
21568
cat confdefs.h >>conftest.$ac_ext
 
21569
cat >>conftest.$ac_ext <<_ACEOF
 
21570
/* end confdefs.h.  */
 
21571
$ac_includes_default
 
21572
#include <$ac_header>
 
21573
_ACEOF
 
21574
rm -f conftest.$ac_objext
 
21575
if { (ac_try="$ac_compile"
 
21576
case "(($ac_try" in
 
21577
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21578
  *) ac_try_echo=$ac_try;;
 
21579
esac
 
21580
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21581
$as_echo "$ac_try_echo") >&5
 
21582
  (eval "$ac_compile") 2>conftest.er1
 
21583
  ac_status=$?
 
21584
  grep -v '^ *+' conftest.er1 >conftest.err
 
21585
  rm -f conftest.er1
 
21586
  cat conftest.err >&5
 
21587
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21588
  (exit $ac_status); } && {
 
21589
         test -z "$ac_c_werror_flag" ||
 
21590
         test ! -s conftest.err
 
21591
       } && test -s conftest.$ac_objext; then
 
21592
  ac_header_compiler=yes
 
21593
else
 
21594
  $as_echo "$as_me: failed program was:" >&5
 
21595
sed 's/^/| /' conftest.$ac_ext >&5
 
21596
 
 
21597
        ac_header_compiler=no
 
21598
fi
 
21599
 
 
21600
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21601
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21602
$as_echo "$ac_header_compiler" >&6; }
 
21603
 
 
21604
# Is the header present?
 
21605
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
21606
$as_echo_n "checking $ac_header presence... " >&6; }
 
21607
cat >conftest.$ac_ext <<_ACEOF
 
21608
/* confdefs.h.  */
 
21609
_ACEOF
 
21610
cat confdefs.h >>conftest.$ac_ext
 
21611
cat >>conftest.$ac_ext <<_ACEOF
 
21612
/* end confdefs.h.  */
 
21613
#include <$ac_header>
 
21614
_ACEOF
 
21615
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
21616
case "(($ac_try" in
 
21617
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21618
  *) ac_try_echo=$ac_try;;
 
21619
esac
 
21620
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21621
$as_echo "$ac_try_echo") >&5
 
21622
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
21623
  ac_status=$?
 
21624
  grep -v '^ *+' conftest.er1 >conftest.err
 
21625
  rm -f conftest.er1
 
21626
  cat conftest.err >&5
 
21627
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21628
  (exit $ac_status); } >/dev/null && {
 
21629
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
21630
         test ! -s conftest.err
 
21631
       }; then
 
21632
  ac_header_preproc=yes
 
21633
else
 
21634
  $as_echo "$as_me: failed program was:" >&5
 
21635
sed 's/^/| /' conftest.$ac_ext >&5
 
21636
 
 
21637
  ac_header_preproc=no
 
21638
fi
 
21639
 
 
21640
rm -f conftest.err conftest.$ac_ext
 
21641
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21642
$as_echo "$ac_header_preproc" >&6; }
 
21643
 
 
21644
# So?  What about this header?
 
21645
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21646
  yes:no: )
 
21647
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
21648
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21649
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
21650
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
21651
    ac_header_preproc=yes
 
21652
    ;;
 
21653
  no:yes:* )
 
21654
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
21655
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
21656
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
21657
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
21658
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
21659
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
21660
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
21661
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21662
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
21663
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
21664
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
21665
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
21666
    ( cat <<\_ASBOX
 
21667
## ----------------------------------------------------------------------- ##
 
21668
## Report this to https://bugzilla.gnome.org/enter_bug.cgi?product=gtk-vnc ##
 
21669
## ----------------------------------------------------------------------- ##
 
21670
_ASBOX
 
21671
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
21672
    ;;
 
21673
esac
 
21674
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21675
$as_echo_n "checking for $ac_header... " >&6; }
 
21676
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21677
  $as_echo_n "(cached) " >&6
 
21678
else
 
21679
  eval "$as_ac_Header=\$ac_header_preproc"
 
21680
fi
 
21681
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
21682
                 $as_echo "$as_val"'`
 
21683
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
21684
$as_echo "$ac_res" >&6; }
 
21685
 
 
21686
fi
 
21687
as_val=`eval 'as_val=${'$as_ac_Header'}
 
21688
                 $as_echo "$as_val"'`
 
21689
   if test "x$as_val" = x""yes; then
 
21690
  cat >>confdefs.h <<_ACEOF
 
21691
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
21692
_ACEOF
 
21693
 
 
21694
fi
 
21695
 
 
21696
done
 
21697
 
 
21698
      if test $ac_cv_header_ws2tcpip_h = yes; then
 
21699
        HAVE_WS2TCPIP_H=1
 
21700
      else
 
21701
        HAVE_WS2TCPIP_H=0
 
21702
      fi
 
21703
    fi
 
21704
 
 
21705
 
 
21706
  :
 
21707
 
 
21708
 
 
21709
 
 
21710
 
 
21711
 
 
21712
  if test $ac_cv_header_sys_socket_h != yes; then
 
21713
 
 
21714
for ac_header in winsock2.h
 
21715
do
 
21716
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
21717
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21718
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21719
$as_echo_n "checking for $ac_header... " >&6; }
 
21720
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21721
  $as_echo_n "(cached) " >&6
 
21722
fi
 
21723
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
21724
                 $as_echo "$as_val"'`
 
21725
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
21726
$as_echo "$ac_res" >&6; }
 
21727
else
 
21728
  # Is the header compilable?
 
21729
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
21730
$as_echo_n "checking $ac_header usability... " >&6; }
 
21731
cat >conftest.$ac_ext <<_ACEOF
 
21732
/* confdefs.h.  */
 
21733
_ACEOF
 
21734
cat confdefs.h >>conftest.$ac_ext
 
21735
cat >>conftest.$ac_ext <<_ACEOF
 
21736
/* end confdefs.h.  */
 
21737
$ac_includes_default
 
21738
#include <$ac_header>
 
21739
_ACEOF
 
21740
rm -f conftest.$ac_objext
 
21741
if { (ac_try="$ac_compile"
 
21742
case "(($ac_try" in
 
21743
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21744
  *) ac_try_echo=$ac_try;;
 
21745
esac
 
21746
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21747
$as_echo "$ac_try_echo") >&5
 
21748
  (eval "$ac_compile") 2>conftest.er1
 
21749
  ac_status=$?
 
21750
  grep -v '^ *+' conftest.er1 >conftest.err
 
21751
  rm -f conftest.er1
 
21752
  cat conftest.err >&5
 
21753
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21754
  (exit $ac_status); } && {
 
21755
         test -z "$ac_c_werror_flag" ||
 
21756
         test ! -s conftest.err
 
21757
       } && test -s conftest.$ac_objext; then
 
21758
  ac_header_compiler=yes
 
21759
else
 
21760
  $as_echo "$as_me: failed program was:" >&5
 
21761
sed 's/^/| /' conftest.$ac_ext >&5
 
21762
 
 
21763
        ac_header_compiler=no
 
21764
fi
 
21765
 
 
21766
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21767
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21768
$as_echo "$ac_header_compiler" >&6; }
 
21769
 
 
21770
# Is the header present?
 
21771
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
21772
$as_echo_n "checking $ac_header presence... " >&6; }
 
21773
cat >conftest.$ac_ext <<_ACEOF
 
21774
/* confdefs.h.  */
 
21775
_ACEOF
 
21776
cat confdefs.h >>conftest.$ac_ext
 
21777
cat >>conftest.$ac_ext <<_ACEOF
 
21778
/* end confdefs.h.  */
 
21779
#include <$ac_header>
 
21780
_ACEOF
 
21781
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
21782
case "(($ac_try" in
 
21783
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21784
  *) ac_try_echo=$ac_try;;
 
21785
esac
 
21786
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21787
$as_echo "$ac_try_echo") >&5
 
21788
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
21789
  ac_status=$?
 
21790
  grep -v '^ *+' conftest.er1 >conftest.err
 
21791
  rm -f conftest.er1
 
21792
  cat conftest.err >&5
 
21793
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21794
  (exit $ac_status); } >/dev/null && {
 
21795
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
21796
         test ! -s conftest.err
 
21797
       }; then
 
21798
  ac_header_preproc=yes
 
21799
else
 
21800
  $as_echo "$as_me: failed program was:" >&5
 
21801
sed 's/^/| /' conftest.$ac_ext >&5
 
21802
 
 
21803
  ac_header_preproc=no
 
21804
fi
 
21805
 
 
21806
rm -f conftest.err conftest.$ac_ext
 
21807
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21808
$as_echo "$ac_header_preproc" >&6; }
 
21809
 
 
21810
# So?  What about this header?
 
21811
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21812
  yes:no: )
 
21813
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
21814
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21815
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
21816
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
21817
    ac_header_preproc=yes
 
21818
    ;;
 
21819
  no:yes:* )
 
21820
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
21821
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
21822
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
21823
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
21824
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
21825
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
21826
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
21827
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21828
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
21829
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
21830
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
21831
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
21832
    ( cat <<\_ASBOX
 
21833
## ----------------------------------------------------------------------- ##
 
21834
## Report this to https://bugzilla.gnome.org/enter_bug.cgi?product=gtk-vnc ##
 
21835
## ----------------------------------------------------------------------- ##
 
21836
_ASBOX
 
21837
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
21838
    ;;
 
21839
esac
 
21840
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21841
$as_echo_n "checking for $ac_header... " >&6; }
 
21842
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21843
  $as_echo_n "(cached) " >&6
 
21844
else
 
21845
  eval "$as_ac_Header=\$ac_header_preproc"
 
21846
fi
 
21847
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
21848
                 $as_echo "$as_val"'`
 
21849
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
21850
$as_echo "$ac_res" >&6; }
 
21851
 
 
21852
fi
 
21853
as_val=`eval 'as_val=${'$as_ac_Header'}
 
21854
                 $as_echo "$as_val"'`
 
21855
   if test "x$as_val" = x""yes; then
 
21856
  cat >>confdefs.h <<_ACEOF
 
21857
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
21858
_ACEOF
 
21859
 
 
21860
fi
 
21861
 
 
21862
done
 
21863
 
 
21864
  fi
 
21865
  if test "$ac_cv_header_winsock2_h" = yes; then
 
21866
    HAVE_WINSOCK2_H=1
 
21867
  else
 
21868
    HAVE_WINSOCK2_H=0
 
21869
  fi
 
21870
 
 
21871
 
 
21872
 
 
21873
 
 
21874
  fi
 
21875
 
 
21876
 
 
21877
  { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
21878
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
21879
if test -z "$MKDIR_P"; then
 
21880
  if test "${ac_cv_path_mkdir+set}" = set; then
 
21881
  $as_echo_n "(cached) " >&6
 
21882
else
 
21883
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21884
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
21885
do
 
21886
  IFS=$as_save_IFS
 
21887
  test -z "$as_dir" && as_dir=.
 
21888
  for ac_prog in mkdir gmkdir; do
 
21889
         for ac_exec_ext in '' $ac_executable_extensions; do
 
21890
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
21891
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
21892
             'mkdir (GNU coreutils) '* | \
 
21893
             'mkdir (coreutils) '* | \
 
21894
             'mkdir (fileutils) '4.1*)
 
21895
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
21896
               break 3;;
 
21897
           esac
 
21898
         done
 
21899
       done
 
21900
done
 
21901
IFS=$as_save_IFS
 
21902
 
 
21903
fi
 
21904
 
 
21905
  if test "${ac_cv_path_mkdir+set}" = set; then
 
21906
    MKDIR_P="$ac_cv_path_mkdir -p"
 
21907
  else
 
21908
    # As a last resort, use the slow shell script.  Don't cache a
 
21909
    # value for MKDIR_P within a source directory, because that will
 
21910
    # break other packages using the cache if that directory is
 
21911
    # removed, or if the value is a relative name.
 
21912
    test -d ./--version && rmdir ./--version
 
21913
    MKDIR_P="$ac_install_sh -d"
 
21914
  fi
 
21915
fi
 
21916
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
21917
$as_echo "$MKDIR_P" >&6; }
 
21918
 
 
21919
 
 
21920
 
 
21921
 
 
21922
 
 
21923
 
 
21924
 
 
21925
  :
 
21926
 
 
21927
 
 
21928
 
 
21929
 
 
21930
 
 
21931
 
 
21932
 
 
21933
     if test $gl_cv_have_include_next = yes; then
 
21934
       gl_cv_next_unistd_h='<'unistd.h'>'
 
21935
     else
 
21936
       { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
 
21937
$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
 
21938
if test "${gl_cv_next_unistd_h+set}" = set; then
 
21939
  $as_echo_n "(cached) " >&6
 
21940
else
 
21941
 
 
21942
          if test $ac_cv_header_unistd_h = yes; then
 
21943
            cat >conftest.$ac_ext <<_ACEOF
 
21944
/* confdefs.h.  */
 
21945
_ACEOF
 
21946
cat confdefs.h >>conftest.$ac_ext
 
21947
cat >>conftest.$ac_ext <<_ACEOF
 
21948
/* end confdefs.h.  */
 
21949
#include <unistd.h>
 
21950
 
 
21951
_ACEOF
 
21952
                                    gl_cv_next_unistd_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
21953
               sed -n '\#/unistd.h#{
 
21954
                 s#.*"\(.*/unistd.h\)".*#\1#
 
21955
                 s#^/[^/]#//&#
 
21956
                 p
 
21957
                 q
 
21958
               }'`'"'
 
21959
          else
 
21960
            gl_cv_next_unistd_h='<'unistd.h'>'
 
21961
          fi
 
21962
 
 
21963
fi
 
21964
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
 
21965
$as_echo "$gl_cv_next_unistd_h" >&6; }
 
21966
     fi
 
21967
     NEXT_UNISTD_H=$gl_cv_next_unistd_h
 
21968
 
 
21969
 
 
21970
 
 
21971
 
 
21972
 
 
21973
  :
 
21974
 
 
21975
 
 
21976
 
 
21977
 
 
21978
 
 
21979
  if test $ac_cv_header_unistd_h = yes; then
 
21980
    HAVE_UNISTD_H=1
 
21981
  else
 
21982
    HAVE_UNISTD_H=0
 
21983
  fi
 
21984
 
 
21985
 
 
21986
 
 
21987
 
 
21988
  :
 
21989
 
 
21990
 
 
21991
 
 
21992
 
 
21993
 
 
21994
  if test $ac_cv_func_vasnprintf = no; then
 
21995
 
 
21996
 
 
21997
  :
 
21998
 
 
21999
 
 
22000
 
 
22001
 
 
22002
 
 
22003
 
 
22004
 
 
22005
 
 
22006
 
 
22007
 
 
22008
 
 
22009
 
 
22010
 
 
22011
  gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
 
22012
 
 
22013
 
 
22014
 
 
22015
 
 
22016
 
 
22017
 
 
22018
 
 
22019
 
 
22020
 
 
22021
  gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
 
22022
 
 
22023
 
 
22024
 
 
22025
 
 
22026
 
 
22027
 
 
22028
 
 
22029
 
 
22030
 
 
22031
  gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
 
22032
 
 
22033
 
 
22034
 
 
22035
 
 
22036
 
 
22037
 
 
22038
 
 
22039
 
 
22040
 
 
22041
  gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
 
22042
 
 
22043
  if test $ac_cv_func_vasnprintf = yes; then
 
22044
 
 
22045
cat >>confdefs.h <<\_ACEOF
 
22046
#define REPLACE_VASNPRINTF 1
 
22047
_ACEOF
 
22048
 
 
22049
  fi
 
22050
 
 
22051
 
 
22052
 
 
22053
 
 
22054
 
 
22055
 
 
22056
 
 
22057
 
 
22058
 
 
22059
 
 
22060
  { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
 
22061
$as_echo_n "checking for ptrdiff_t... " >&6; }
 
22062
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
 
22063
  $as_echo_n "(cached) " >&6
 
22064
else
 
22065
  ac_cv_type_ptrdiff_t=no
 
22066
cat >conftest.$ac_ext <<_ACEOF
 
22067
/* confdefs.h.  */
 
22068
_ACEOF
 
22069
cat confdefs.h >>conftest.$ac_ext
 
22070
cat >>conftest.$ac_ext <<_ACEOF
 
22071
/* end confdefs.h.  */
 
22072
$ac_includes_default
 
22073
int
 
22074
main ()
 
22075
{
 
22076
if (sizeof (ptrdiff_t))
 
22077
       return 0;
 
22078
  ;
 
22079
  return 0;
 
22080
}
 
22081
_ACEOF
 
22082
rm -f conftest.$ac_objext
 
22083
if { (ac_try="$ac_compile"
 
22084
case "(($ac_try" in
 
22085
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22086
  *) ac_try_echo=$ac_try;;
 
22087
esac
 
22088
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22089
$as_echo "$ac_try_echo") >&5
 
22090
  (eval "$ac_compile") 2>conftest.er1
 
22091
  ac_status=$?
 
22092
  grep -v '^ *+' conftest.er1 >conftest.err
 
22093
  rm -f conftest.er1
 
22094
  cat conftest.err >&5
 
22095
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22096
  (exit $ac_status); } && {
 
22097
         test -z "$ac_c_werror_flag" ||
 
22098
         test ! -s conftest.err
 
22099
       } && test -s conftest.$ac_objext; then
 
22100
  cat >conftest.$ac_ext <<_ACEOF
 
22101
/* confdefs.h.  */
 
22102
_ACEOF
 
22103
cat confdefs.h >>conftest.$ac_ext
 
22104
cat >>conftest.$ac_ext <<_ACEOF
 
22105
/* end confdefs.h.  */
 
22106
$ac_includes_default
 
22107
int
 
22108
main ()
 
22109
{
 
22110
if (sizeof ((ptrdiff_t)))
 
22111
          return 0;
 
22112
  ;
 
22113
  return 0;
 
22114
}
 
22115
_ACEOF
 
22116
rm -f conftest.$ac_objext
 
22117
if { (ac_try="$ac_compile"
 
22118
case "(($ac_try" in
 
22119
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22120
  *) ac_try_echo=$ac_try;;
 
22121
esac
 
22122
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22123
$as_echo "$ac_try_echo") >&5
 
22124
  (eval "$ac_compile") 2>conftest.er1
 
22125
  ac_status=$?
 
22126
  grep -v '^ *+' conftest.er1 >conftest.err
 
22127
  rm -f conftest.er1
 
22128
  cat conftest.err >&5
 
22129
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22130
  (exit $ac_status); } && {
 
22131
         test -z "$ac_c_werror_flag" ||
 
22132
         test ! -s conftest.err
 
22133
       } && test -s conftest.$ac_objext; then
 
22134
  :
 
22135
else
 
22136
  $as_echo "$as_me: failed program was:" >&5
 
22137
sed 's/^/| /' conftest.$ac_ext >&5
 
22138
 
 
22139
        ac_cv_type_ptrdiff_t=yes
 
22140
fi
 
22141
 
 
22142
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22143
else
 
22144
  $as_echo "$as_me: failed program was:" >&5
 
22145
sed 's/^/| /' conftest.$ac_ext >&5
 
22146
 
 
22147
 
 
22148
fi
 
22149
 
 
22150
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22151
fi
 
22152
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
 
22153
$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
 
22154
if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
 
22155
  :
 
22156
else
 
22157
 
 
22158
cat >>confdefs.h <<\_ACEOF
 
22159
#define ptrdiff_t long
 
22160
_ACEOF
 
22161
 
 
22162
 
 
22163
fi
 
22164
 
 
22165
 
 
22166
 
 
22167
 
 
22168
 
 
22169
 
 
22170
 
 
22171
 
 
22172
 
 
22173
 
 
22174
for ac_func in snprintf wcslen
 
22175
do
 
22176
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
22177
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
22178
$as_echo_n "checking for $ac_func... " >&6; }
 
22179
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
22180
  $as_echo_n "(cached) " >&6
 
22181
else
 
22182
  cat >conftest.$ac_ext <<_ACEOF
 
22183
/* confdefs.h.  */
 
22184
_ACEOF
 
22185
cat confdefs.h >>conftest.$ac_ext
 
22186
cat >>conftest.$ac_ext <<_ACEOF
 
22187
/* end confdefs.h.  */
 
22188
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
22189
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22190
#define $ac_func innocuous_$ac_func
 
22191
 
 
22192
/* System header to define __stub macros and hopefully few prototypes,
 
22193
    which can conflict with char $ac_func (); below.
 
22194
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22195
    <limits.h> exists even on freestanding compilers.  */
 
22196
 
 
22197
#ifdef __STDC__
 
22198
# include <limits.h>
 
22199
#else
 
22200
# include <assert.h>
 
22201
#endif
 
22202
 
 
22203
#undef $ac_func
 
22204
 
 
22205
/* Override any GCC internal prototype to avoid an error.
 
22206
   Use char because int might match the return type of a GCC
 
22207
   builtin and then its argument prototype would still apply.  */
 
22208
#ifdef __cplusplus
 
22209
extern "C"
 
22210
#endif
 
22211
char $ac_func ();
 
22212
/* The GNU C library defines this for functions which it implements
 
22213
    to always fail with ENOSYS.  Some functions are actually named
 
22214
    something starting with __ and the normal name is an alias.  */
 
22215
#if defined __stub_$ac_func || defined __stub___$ac_func
 
22216
choke me
 
22217
#endif
 
22218
 
 
22219
int
 
22220
main ()
 
22221
{
 
22222
return $ac_func ();
 
22223
  ;
 
22224
  return 0;
 
22225
}
 
22226
_ACEOF
 
22227
rm -f conftest.$ac_objext conftest$ac_exeext
 
22228
if { (ac_try="$ac_link"
 
22229
case "(($ac_try" in
 
22230
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22231
  *) ac_try_echo=$ac_try;;
 
22232
esac
 
22233
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22234
$as_echo "$ac_try_echo") >&5
 
22235
  (eval "$ac_link") 2>conftest.er1
 
22236
  ac_status=$?
 
22237
  grep -v '^ *+' conftest.er1 >conftest.err
 
22238
  rm -f conftest.er1
 
22239
  cat conftest.err >&5
 
22240
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22241
  (exit $ac_status); } && {
 
22242
         test -z "$ac_c_werror_flag" ||
 
22243
         test ! -s conftest.err
 
22244
       } && test -s conftest$ac_exeext && {
 
22245
         test "$cross_compiling" = yes ||
 
22246
         $as_test_x conftest$ac_exeext
 
22247
       }; then
 
22248
  eval "$as_ac_var=yes"
 
22249
else
 
22250
  $as_echo "$as_me: failed program was:" >&5
 
22251
sed 's/^/| /' conftest.$ac_ext >&5
 
22252
 
 
22253
        eval "$as_ac_var=no"
 
22254
fi
 
22255
 
 
22256
rm -rf conftest.dSYM
 
22257
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22258
      conftest$ac_exeext conftest.$ac_ext
 
22259
fi
 
22260
ac_res=`eval 'as_val=${'$as_ac_var'}
 
22261
                 $as_echo "$as_val"'`
 
22262
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
22263
$as_echo "$ac_res" >&6; }
 
22264
as_val=`eval 'as_val=${'$as_ac_var'}
 
22265
                 $as_echo "$as_val"'`
 
22266
   if test "x$as_val" = x""yes; then
 
22267
  cat >>confdefs.h <<_ACEOF
 
22268
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
22269
_ACEOF
 
22270
 
 
22271
fi
 
22272
done
 
22273
 
 
22274
      { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
 
22275
$as_echo_n "checking whether _snprintf is declared... " >&6; }
 
22276
if test "${ac_cv_have_decl__snprintf+set}" = set; then
 
22277
  $as_echo_n "(cached) " >&6
 
22278
else
 
22279
  cat >conftest.$ac_ext <<_ACEOF
 
22280
/* confdefs.h.  */
 
22281
_ACEOF
 
22282
cat confdefs.h >>conftest.$ac_ext
 
22283
cat >>conftest.$ac_ext <<_ACEOF
 
22284
/* end confdefs.h.  */
 
22285
#include <stdio.h>
 
22286
 
 
22287
int
 
22288
main ()
 
22289
{
 
22290
#ifndef _snprintf
 
22291
  (void) _snprintf;
 
22292
#endif
 
22293
 
 
22294
  ;
 
22295
  return 0;
 
22296
}
 
22297
_ACEOF
 
22298
rm -f conftest.$ac_objext
 
22299
if { (ac_try="$ac_compile"
 
22300
case "(($ac_try" in
 
22301
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22302
  *) ac_try_echo=$ac_try;;
 
22303
esac
 
22304
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22305
$as_echo "$ac_try_echo") >&5
 
22306
  (eval "$ac_compile") 2>conftest.er1
 
22307
  ac_status=$?
 
22308
  grep -v '^ *+' conftest.er1 >conftest.err
 
22309
  rm -f conftest.er1
 
22310
  cat conftest.err >&5
 
22311
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22312
  (exit $ac_status); } && {
 
22313
         test -z "$ac_c_werror_flag" ||
 
22314
         test ! -s conftest.err
 
22315
       } && test -s conftest.$ac_objext; then
 
22316
  ac_cv_have_decl__snprintf=yes
 
22317
else
 
22318
  $as_echo "$as_me: failed program was:" >&5
 
22319
sed 's/^/| /' conftest.$ac_ext >&5
 
22320
 
 
22321
        ac_cv_have_decl__snprintf=no
 
22322
fi
 
22323
 
 
22324
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22325
fi
 
22326
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
 
22327
$as_echo "$ac_cv_have_decl__snprintf" >&6; }
 
22328
if test "x$ac_cv_have_decl__snprintf" = x""yes; then
 
22329
 
 
22330
cat >>confdefs.h <<_ACEOF
 
22331
#define HAVE_DECL__SNPRINTF 1
 
22332
_ACEOF
 
22333
 
 
22334
 
 
22335
else
 
22336
  cat >>confdefs.h <<_ACEOF
 
22337
#define HAVE_DECL__SNPRINTF 0
 
22338
_ACEOF
 
22339
 
 
22340
 
 
22341
fi
 
22342
 
 
22343
 
 
22344
 
 
22345
 
 
22346
 
 
22347
 
 
22348
  fi
 
22349
 
 
22350
 
 
22351
 
 
22352
  { $as_echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
 
22353
$as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
 
22354
if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
 
22355
  $as_echo_n "(cached) " >&6
 
22356
else
 
22357
  cat >conftest.$ac_ext <<_ACEOF
 
22358
#include <wchar.h>
 
22359
wchar_t w;
 
22360
_ACEOF
 
22361
rm -f conftest.$ac_objext
 
22362
if { (ac_try="$ac_compile"
 
22363
case "(($ac_try" in
 
22364
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22365
  *) ac_try_echo=$ac_try;;
 
22366
esac
 
22367
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22368
$as_echo "$ac_try_echo") >&5
 
22369
  (eval "$ac_compile") 2>conftest.er1
 
22370
  ac_status=$?
 
22371
  grep -v '^ *+' conftest.er1 >conftest.err
 
22372
  rm -f conftest.er1
 
22373
  cat conftest.err >&5
 
22374
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22375
  (exit $ac_status); } && {
 
22376
         test -z "$ac_c_werror_flag" ||
 
22377
         test ! -s conftest.err
 
22378
       } && test -s conftest.$ac_objext; then
 
22379
  gl_cv_header_wchar_h_standalone=yes
 
22380
else
 
22381
  $as_echo "$as_me: failed program was:" >&5
 
22382
sed 's/^/| /' conftest.$ac_ext >&5
 
22383
 
 
22384
        gl_cv_header_wchar_h_standalone=no
 
22385
fi
 
22386
 
 
22387
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22388
fi
 
22389
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
 
22390
$as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
 
22391
 
 
22392
 
 
22393
  if test $gt_cv_c_wint_t = yes; then
 
22394
    HAVE_WINT_T=1
 
22395
  else
 
22396
    HAVE_WINT_T=0
 
22397
  fi
 
22398
 
 
22399
 
 
22400
  if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes; then
 
22401
    WCHAR_H=wchar.h
 
22402
  fi
 
22403
 
 
22404
 
 
22405
  :
 
22406
 
 
22407
 
 
22408
 
 
22409
 
 
22410
 
 
22411
  if test $ac_cv_header_wchar_h = yes; then
 
22412
    HAVE_WCHAR_H=1
 
22413
  else
 
22414
    HAVE_WCHAR_H=0
 
22415
  fi
 
22416
 
 
22417
 
 
22418
 
 
22419
 
 
22420
  :
 
22421
 
 
22422
 
 
22423
 
 
22424
 
 
22425
 
 
22426
 
 
22427
 
 
22428
     if test $gl_cv_have_include_next = yes; then
 
22429
       gl_cv_next_wchar_h='<'wchar.h'>'
 
22430
     else
 
22431
       { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
 
22432
$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
 
22433
if test "${gl_cv_next_wchar_h+set}" = set; then
 
22434
  $as_echo_n "(cached) " >&6
 
22435
else
 
22436
 
 
22437
          if test $ac_cv_header_wchar_h = yes; then
 
22438
            cat >conftest.$ac_ext <<_ACEOF
 
22439
/* confdefs.h.  */
 
22440
_ACEOF
 
22441
cat confdefs.h >>conftest.$ac_ext
 
22442
cat >>conftest.$ac_ext <<_ACEOF
 
22443
/* end confdefs.h.  */
 
22444
#include <wchar.h>
 
22445
 
 
22446
_ACEOF
 
22447
                                    gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
22448
               sed -n '\#/wchar.h#{
 
22449
                 s#.*"\(.*/wchar.h\)".*#\1#
 
22450
                 s#^/[^/]#//&#
 
22451
                 p
 
22452
                 q
 
22453
               }'`'"'
 
22454
          else
 
22455
            gl_cv_next_wchar_h='<'wchar.h'>'
 
22456
          fi
 
22457
 
 
22458
fi
 
22459
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
 
22460
$as_echo "$gl_cv_next_wchar_h" >&6; }
 
22461
     fi
 
22462
     NEXT_WCHAR_H=$gl_cv_next_wchar_h
 
22463
 
 
22464
 
 
22465
 
 
22466
 
 
22467
 
 
22468
 
 
22469
 
 
22470
 
 
22471
for ac_header in stdint.h
 
22472
do
 
22473
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
22474
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22475
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22476
$as_echo_n "checking for $ac_header... " >&6; }
 
22477
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22478
  $as_echo_n "(cached) " >&6
 
22479
fi
 
22480
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
22481
                 $as_echo "$as_val"'`
 
22482
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
22483
$as_echo "$ac_res" >&6; }
 
22484
else
 
22485
  # Is the header compilable?
 
22486
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
22487
$as_echo_n "checking $ac_header usability... " >&6; }
 
22488
cat >conftest.$ac_ext <<_ACEOF
 
22489
/* confdefs.h.  */
 
22490
_ACEOF
 
22491
cat confdefs.h >>conftest.$ac_ext
 
22492
cat >>conftest.$ac_ext <<_ACEOF
 
22493
/* end confdefs.h.  */
 
22494
$ac_includes_default
 
22495
#include <$ac_header>
 
22496
_ACEOF
 
22497
rm -f conftest.$ac_objext
 
22498
if { (ac_try="$ac_compile"
 
22499
case "(($ac_try" in
 
22500
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22501
  *) ac_try_echo=$ac_try;;
 
22502
esac
 
22503
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22504
$as_echo "$ac_try_echo") >&5
 
22505
  (eval "$ac_compile") 2>conftest.er1
 
22506
  ac_status=$?
 
22507
  grep -v '^ *+' conftest.er1 >conftest.err
 
22508
  rm -f conftest.er1
 
22509
  cat conftest.err >&5
 
22510
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22511
  (exit $ac_status); } && {
 
22512
         test -z "$ac_c_werror_flag" ||
 
22513
         test ! -s conftest.err
 
22514
       } && test -s conftest.$ac_objext; then
 
22515
  ac_header_compiler=yes
 
22516
else
 
22517
  $as_echo "$as_me: failed program was:" >&5
 
22518
sed 's/^/| /' conftest.$ac_ext >&5
 
22519
 
 
22520
        ac_header_compiler=no
 
22521
fi
 
22522
 
 
22523
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22524
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22525
$as_echo "$ac_header_compiler" >&6; }
 
22526
 
 
22527
# Is the header present?
 
22528
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
22529
$as_echo_n "checking $ac_header presence... " >&6; }
 
22530
cat >conftest.$ac_ext <<_ACEOF
 
22531
/* confdefs.h.  */
 
22532
_ACEOF
 
22533
cat confdefs.h >>conftest.$ac_ext
 
22534
cat >>conftest.$ac_ext <<_ACEOF
 
22535
/* end confdefs.h.  */
 
22536
#include <$ac_header>
 
22537
_ACEOF
 
22538
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
22539
case "(($ac_try" in
 
22540
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22541
  *) ac_try_echo=$ac_try;;
 
22542
esac
 
22543
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22544
$as_echo "$ac_try_echo") >&5
 
22545
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
22546
  ac_status=$?
 
22547
  grep -v '^ *+' conftest.er1 >conftest.err
 
22548
  rm -f conftest.er1
 
22549
  cat conftest.err >&5
 
22550
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22551
  (exit $ac_status); } >/dev/null && {
 
22552
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
22553
         test ! -s conftest.err
 
22554
       }; then
 
22555
  ac_header_preproc=yes
 
22556
else
 
22557
  $as_echo "$as_me: failed program was:" >&5
 
22558
sed 's/^/| /' conftest.$ac_ext >&5
 
22559
 
 
22560
  ac_header_preproc=no
 
22561
fi
 
22562
 
 
22563
rm -f conftest.err conftest.$ac_ext
 
22564
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22565
$as_echo "$ac_header_preproc" >&6; }
 
22566
 
 
22567
# So?  What about this header?
 
22568
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22569
  yes:no: )
 
22570
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
22571
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22572
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
22573
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
22574
    ac_header_preproc=yes
 
22575
    ;;
 
22576
  no:yes:* )
 
22577
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
22578
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
22579
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
22580
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
22581
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
22582
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
22583
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
22584
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22585
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
22586
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
22587
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
22588
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
22589
    ( cat <<\_ASBOX
 
22590
## ----------------------------------------------------------------------- ##
 
22591
## Report this to https://bugzilla.gnome.org/enter_bug.cgi?product=gtk-vnc ##
 
22592
## ----------------------------------------------------------------------- ##
 
22593
_ASBOX
 
22594
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
22595
    ;;
 
22596
esac
 
22597
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22598
$as_echo_n "checking for $ac_header... " >&6; }
 
22599
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22600
  $as_echo_n "(cached) " >&6
 
22601
else
 
22602
  eval "$as_ac_Header=\$ac_header_preproc"
 
22603
fi
 
22604
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
22605
                 $as_echo "$as_val"'`
 
22606
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
22607
$as_echo "$ac_res" >&6; }
 
22608
 
 
22609
fi
 
22610
as_val=`eval 'as_val=${'$as_ac_Header'}
 
22611
                 $as_echo "$as_val"'`
 
22612
   if test "x$as_val" = x""yes; then
 
22613
  cat >>confdefs.h <<_ACEOF
 
22614
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
22615
_ACEOF
 
22616
 
 
22617
fi
 
22618
 
 
22619
done
 
22620
 
 
22621
 
 
22622
 
 
22623
 
 
22624
 
 
22625
 
 
22626
 
 
22627
 
 
22628
 
 
22629
 
 
22630
 
 
22631
  gltests_libdeps=
 
22632
  gltests_ltlibdeps=
 
22633
 
 
22634
 
 
22635
 
 
22636
 
 
22637
 
 
22638
 
 
22639
 
 
22640
 
 
22641
  gl_source_base='gnulib/tests'
 
22642
 
 
22643
  { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
 
22644
$as_echo_n "checking for wchar_t... " >&6; }
 
22645
if test "${gt_cv_c_wchar_t+set}" = set; then
 
22646
  $as_echo_n "(cached) " >&6
 
22647
else
 
22648
  cat >conftest.$ac_ext <<_ACEOF
 
22649
/* confdefs.h.  */
 
22650
_ACEOF
 
22651
cat confdefs.h >>conftest.$ac_ext
 
22652
cat >>conftest.$ac_ext <<_ACEOF
 
22653
/* end confdefs.h.  */
 
22654
#include <stddef.h>
 
22655
       wchar_t foo = (wchar_t)'\0';
 
22656
int
 
22657
main ()
 
22658
{
 
22659
 
 
22660
  ;
 
22661
  return 0;
 
22662
}
 
22663
_ACEOF
 
22664
rm -f conftest.$ac_objext
 
22665
if { (ac_try="$ac_compile"
 
22666
case "(($ac_try" in
 
22667
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22668
  *) ac_try_echo=$ac_try;;
 
22669
esac
 
22670
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22671
$as_echo "$ac_try_echo") >&5
 
22672
  (eval "$ac_compile") 2>conftest.er1
 
22673
  ac_status=$?
 
22674
  grep -v '^ *+' conftest.er1 >conftest.err
 
22675
  rm -f conftest.er1
 
22676
  cat conftest.err >&5
 
22677
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22678
  (exit $ac_status); } && {
 
22679
         test -z "$ac_c_werror_flag" ||
 
22680
         test ! -s conftest.err
 
22681
       } && test -s conftest.$ac_objext; then
 
22682
  gt_cv_c_wchar_t=yes
 
22683
else
 
22684
  $as_echo "$as_me: failed program was:" >&5
 
22685
sed 's/^/| /' conftest.$ac_ext >&5
 
22686
 
 
22687
        gt_cv_c_wchar_t=no
 
22688
fi
 
22689
 
 
22690
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22691
fi
 
22692
{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
 
22693
$as_echo "$gt_cv_c_wchar_t" >&6; }
 
22694
  if test $gt_cv_c_wchar_t = yes; then
 
22695
 
 
22696
cat >>confdefs.h <<\_ACEOF
 
22697
#define HAVE_WCHAR_T 1
 
22698
_ACEOF
 
22699
 
 
22700
  fi
 
22701
 
 
22702
 
 
22703
  { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
 
22704
$as_echo_n "checking for wint_t... " >&6; }
 
22705
if test "${gt_cv_c_wint_t+set}" = set; then
 
22706
  $as_echo_n "(cached) " >&6
 
22707
else
 
22708
  cat >conftest.$ac_ext <<_ACEOF
 
22709
/* confdefs.h.  */
 
22710
_ACEOF
 
22711
cat confdefs.h >>conftest.$ac_ext
 
22712
cat >>conftest.$ac_ext <<_ACEOF
 
22713
/* end confdefs.h.  */
 
22714
 
 
22715
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
 
22716
   <wchar.h>.
 
22717
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
 
22718
   before <wchar.h>.  */
 
22719
#include <stddef.h>
 
22720
#include <stdio.h>
 
22721
#include <time.h>
 
22722
#include <wchar.h>
 
22723
       wint_t foo = (wchar_t)'\0';
 
22724
int
 
22725
main ()
 
22726
{
 
22727
 
 
22728
  ;
 
22729
  return 0;
 
22730
}
 
22731
_ACEOF
 
22732
rm -f conftest.$ac_objext
 
22733
if { (ac_try="$ac_compile"
 
22734
case "(($ac_try" in
 
22735
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22736
  *) ac_try_echo=$ac_try;;
 
22737
esac
 
22738
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22739
$as_echo "$ac_try_echo") >&5
 
22740
  (eval "$ac_compile") 2>conftest.er1
 
22741
  ac_status=$?
 
22742
  grep -v '^ *+' conftest.er1 >conftest.err
 
22743
  rm -f conftest.er1
 
22744
  cat conftest.err >&5
 
22745
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22746
  (exit $ac_status); } && {
 
22747
         test -z "$ac_c_werror_flag" ||
 
22748
         test ! -s conftest.err
 
22749
       } && test -s conftest.$ac_objext; then
 
22750
  gt_cv_c_wint_t=yes
 
22751
else
 
22752
  $as_echo "$as_me: failed program was:" >&5
 
22753
sed 's/^/| /' conftest.$ac_ext >&5
 
22754
 
 
22755
        gt_cv_c_wint_t=no
 
22756
fi
 
22757
 
 
22758
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22759
fi
 
22760
{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
 
22761
$as_echo "$gt_cv_c_wint_t" >&6; }
 
22762
  if test $gt_cv_c_wint_t = yes; then
 
22763
 
 
22764
cat >>confdefs.h <<\_ACEOF
 
22765
#define HAVE_WINT_T 1
 
22766
_ACEOF
 
22767
 
 
22768
  fi
 
22769
 
 
22770
 
 
22771
for ac_func in shutdown
 
22772
do
 
22773
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
22774
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
22775
$as_echo_n "checking for $ac_func... " >&6; }
 
22776
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
22777
  $as_echo_n "(cached) " >&6
 
22778
else
 
22779
  cat >conftest.$ac_ext <<_ACEOF
 
22780
/* confdefs.h.  */
 
22781
_ACEOF
 
22782
cat confdefs.h >>conftest.$ac_ext
 
22783
cat >>conftest.$ac_ext <<_ACEOF
 
22784
/* end confdefs.h.  */
 
22785
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
22786
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22787
#define $ac_func innocuous_$ac_func
 
22788
 
 
22789
/* System header to define __stub macros and hopefully few prototypes,
 
22790
    which can conflict with char $ac_func (); below.
 
22791
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22792
    <limits.h> exists even on freestanding compilers.  */
 
22793
 
 
22794
#ifdef __STDC__
 
22795
# include <limits.h>
 
22796
#else
 
22797
# include <assert.h>
 
22798
#endif
 
22799
 
 
22800
#undef $ac_func
 
22801
 
 
22802
/* Override any GCC internal prototype to avoid an error.
 
22803
   Use char because int might match the return type of a GCC
 
22804
   builtin and then its argument prototype would still apply.  */
 
22805
#ifdef __cplusplus
 
22806
extern "C"
 
22807
#endif
 
22808
char $ac_func ();
 
22809
/* The GNU C library defines this for functions which it implements
 
22810
    to always fail with ENOSYS.  Some functions are actually named
 
22811
    something starting with __ and the normal name is an alias.  */
 
22812
#if defined __stub_$ac_func || defined __stub___$ac_func
 
22813
choke me
 
22814
#endif
 
22815
 
 
22816
int
 
22817
main ()
 
22818
{
 
22819
return $ac_func ();
 
22820
  ;
 
22821
  return 0;
 
22822
}
 
22823
_ACEOF
 
22824
rm -f conftest.$ac_objext conftest$ac_exeext
 
22825
if { (ac_try="$ac_link"
 
22826
case "(($ac_try" in
 
22827
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22828
  *) ac_try_echo=$ac_try;;
 
22829
esac
 
22830
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22831
$as_echo "$ac_try_echo") >&5
 
22832
  (eval "$ac_link") 2>conftest.er1
 
22833
  ac_status=$?
 
22834
  grep -v '^ *+' conftest.er1 >conftest.err
 
22835
  rm -f conftest.er1
 
22836
  cat conftest.err >&5
 
22837
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22838
  (exit $ac_status); } && {
 
22839
         test -z "$ac_c_werror_flag" ||
 
22840
         test ! -s conftest.err
 
22841
       } && test -s conftest$ac_exeext && {
 
22842
         test "$cross_compiling" = yes ||
 
22843
         $as_test_x conftest$ac_exeext
 
22844
       }; then
 
22845
  eval "$as_ac_var=yes"
 
22846
else
 
22847
  $as_echo "$as_me: failed program was:" >&5
 
22848
sed 's/^/| /' conftest.$ac_ext >&5
 
22849
 
 
22850
        eval "$as_ac_var=no"
 
22851
fi
 
22852
 
 
22853
rm -rf conftest.dSYM
 
22854
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22855
      conftest$ac_exeext conftest.$ac_ext
 
22856
fi
 
22857
ac_res=`eval 'as_val=${'$as_ac_var'}
 
22858
                 $as_echo "$as_val"'`
 
22859
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
22860
$as_echo "$ac_res" >&6; }
 
22861
as_val=`eval 'as_val=${'$as_ac_var'}
 
22862
                 $as_echo "$as_val"'`
 
22863
   if test "x$as_val" = x""yes; then
 
22864
  cat >>confdefs.h <<_ACEOF
 
22865
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
22866
_ACEOF
 
22867
 
 
22868
fi
 
22869
done
 
22870
 
 
22871
  abs_aux_dir=`cd "$ac_aux_dir"; pwd`
 
22872
 
 
22873
 
 
22874
 
 
22875
 
 
22876
 
 
22877
 
 
22878
 
 
22879
 
 
22880
  LIBTESTS_LIBDEPS="$gltests_libdeps"
 
22881
 
 
22882
 
 
22883
 
 
22884
 
 
22885
   case $ac_cv_prog_cc_stdc in
 
22886
  no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
 
22887
  *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
 
22888
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
 
22889
if test "${ac_cv_prog_cc_c99+set}" = set; then
 
22890
  $as_echo_n "(cached) " >&6
 
22891
else
 
22892
  ac_cv_prog_cc_c99=no
 
22893
ac_save_CC=$CC
 
22894
cat >conftest.$ac_ext <<_ACEOF
 
22895
/* confdefs.h.  */
 
22896
_ACEOF
 
22897
cat confdefs.h >>conftest.$ac_ext
 
22898
cat >>conftest.$ac_ext <<_ACEOF
 
22899
/* end confdefs.h.  */
 
22900
#include <stdarg.h>
 
22901
#include <stdbool.h>
 
22902
#include <stdlib.h>
 
22903
#include <wchar.h>
 
22904
#include <stdio.h>
 
22905
 
 
22906
// Check varargs macros.  These examples are taken from C99 6.10.3.5.
 
22907
#define debug(...) fprintf (stderr, __VA_ARGS__)
 
22908
#define showlist(...) puts (#__VA_ARGS__)
 
22909
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
 
22910
static void
 
22911
test_varargs_macros (void)
 
22912
{
 
22913
  int x = 1234;
 
22914
  int y = 5678;
 
22915
  debug ("Flag");
 
22916
  debug ("X = %d\n", x);
 
22917
  showlist (The first, second, and third items.);
 
22918
  report (x>y, "x is %d but y is %d", x, y);
 
22919
}
 
22920
 
 
22921
// Check long long types.
 
22922
#define BIG64 18446744073709551615ull
 
22923
#define BIG32 4294967295ul
 
22924
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
 
22925
#if !BIG_OK
 
22926
  your preprocessor is broken;
 
22927
#endif
 
22928
#if BIG_OK
 
22929
#else
 
22930
  your preprocessor is broken;
 
22931
#endif
 
22932
static long long int bignum = -9223372036854775807LL;
 
22933
static unsigned long long int ubignum = BIG64;
 
22934
 
 
22935
struct incomplete_array
 
22936
{
 
22937
  int datasize;
 
22938
  double data[];
 
22939
};
 
22940
 
 
22941
struct named_init {
 
22942
  int number;
 
22943
  const wchar_t *name;
 
22944
  double average;
 
22945
};
 
22946
 
 
22947
typedef const char *ccp;
 
22948
 
 
22949
static inline int
 
22950
test_restrict (ccp restrict text)
 
22951
{
 
22952
  // See if C++-style comments work.
 
22953
  // Iterate through items via the restricted pointer.
 
22954
  // Also check for declarations in for loops.
 
22955
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
 
22956
    continue;
 
22957
  return 0;
 
22958
}
 
22959
 
 
22960
// Check varargs and va_copy.
 
22961
static void
 
22962
test_varargs (const char *format, ...)
 
22963
{
 
22964
  va_list args;
 
22965
  va_start (args, format);
 
22966
  va_list args_copy;
 
22967
  va_copy (args_copy, args);
 
22968
 
 
22969
  const char *str;
 
22970
  int number;
 
22971
  float fnumber;
 
22972
 
 
22973
  while (*format)
 
22974
    {
 
22975
      switch (*format++)
 
22976
        {
 
22977
        case 's': // string
 
22978
          str = va_arg (args_copy, const char *);
 
22979
          break;
 
22980
        case 'd': // int
 
22981
          number = va_arg (args_copy, int);
 
22982
          break;
 
22983
        case 'f': // float
 
22984
          fnumber = va_arg (args_copy, double);
 
22985
          break;
 
22986
        default:
 
22987
          break;
 
22988
        }
 
22989
    }
 
22990
  va_end (args_copy);
 
22991
  va_end (args);
 
22992
}
 
22993
 
 
22994
int
 
22995
main ()
 
22996
{
 
22997
 
 
22998
  // Check bool.
 
22999
  _Bool success = false;
 
23000
 
 
23001
  // Check restrict.
 
23002
  if (test_restrict ("String literal") == 0)
 
23003
    success = true;
 
23004
  char *restrict newvar = "Another string";
 
23005
 
 
23006
  // Check varargs.
 
23007
  test_varargs ("s, d' f .", "string", 65, 34.234);
 
23008
  test_varargs_macros ();
 
23009
 
 
23010
  // Check flexible array members.
 
23011
  struct incomplete_array *ia =
 
23012
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
 
23013
  ia->datasize = 10;
 
23014
  for (int i = 0; i < ia->datasize; ++i)
 
23015
    ia->data[i] = i * 1.234;
 
23016
 
 
23017
  // Check named initializers.
 
23018
  struct named_init ni = {
 
23019
    .number = 34,
 
23020
    .name = L"Test wide string",
 
23021
    .average = 543.34343,
 
23022
  };
 
23023
 
 
23024
  ni.number = 58;
 
23025
 
 
23026
  int dynamic_array[ni.number];
 
23027
  dynamic_array[ni.number - 1] = 543;
 
23028
 
 
23029
  // work around unused variable warnings
 
23030
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
 
23031
          || dynamic_array[ni.number - 1] != 543);
 
23032
 
 
23033
  ;
 
23034
  return 0;
 
23035
}
 
23036
_ACEOF
 
23037
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
 
23038
do
 
23039
  CC="$ac_save_CC $ac_arg"
 
23040
  rm -f conftest.$ac_objext
 
23041
if { (ac_try="$ac_compile"
 
23042
case "(($ac_try" in
 
23043
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23044
  *) ac_try_echo=$ac_try;;
 
23045
esac
 
23046
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23047
$as_echo "$ac_try_echo") >&5
 
23048
  (eval "$ac_compile") 2>conftest.er1
 
23049
  ac_status=$?
 
23050
  grep -v '^ *+' conftest.er1 >conftest.err
 
23051
  rm -f conftest.er1
 
23052
  cat conftest.err >&5
 
23053
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23054
  (exit $ac_status); } && {
 
23055
         test -z "$ac_c_werror_flag" ||
 
23056
         test ! -s conftest.err
 
23057
       } && test -s conftest.$ac_objext; then
 
23058
  ac_cv_prog_cc_c99=$ac_arg
 
23059
else
 
23060
  $as_echo "$as_me: failed program was:" >&5
 
23061
sed 's/^/| /' conftest.$ac_ext >&5
 
23062
 
 
23063
 
 
23064
fi
 
23065
 
 
23066
rm -f core conftest.err conftest.$ac_objext
 
23067
  test "x$ac_cv_prog_cc_c99" != "xno" && break
 
23068
done
 
23069
rm -f conftest.$ac_ext
 
23070
CC=$ac_save_CC
 
23071
 
 
23072
fi
 
23073
# AC_CACHE_VAL
 
23074
case "x$ac_cv_prog_cc_c99" in
 
23075
  x)
 
23076
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
 
23077
$as_echo "none needed" >&6; } ;;
 
23078
  xno)
 
23079
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
 
23080
$as_echo "unsupported" >&6; } ;;
 
23081
  *)
 
23082
    CC="$CC $ac_cv_prog_cc_c99"
 
23083
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
 
23084
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
 
23085
esac
 
23086
if test "x$ac_cv_prog_cc_c99" != xno; then
 
23087
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
 
23088
else
 
23089
  { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
23090
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
23091
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
23092
  $as_echo_n "(cached) " >&6
 
23093
else
 
23094
  ac_cv_prog_cc_c89=no
 
23095
ac_save_CC=$CC
 
23096
cat >conftest.$ac_ext <<_ACEOF
 
23097
/* confdefs.h.  */
 
23098
_ACEOF
 
23099
cat confdefs.h >>conftest.$ac_ext
 
23100
cat >>conftest.$ac_ext <<_ACEOF
 
23101
/* end confdefs.h.  */
 
23102
#include <stdarg.h>
 
23103
#include <stdio.h>
 
23104
#include <sys/types.h>
 
23105
#include <sys/stat.h>
 
23106
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
23107
struct buf { int x; };
 
23108
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
23109
static char *e (p, i)
 
23110
     char **p;
 
23111
     int i;
 
23112
{
 
23113
  return p[i];
 
23114
}
 
23115
static char *f (char * (*g) (char **, int), char **p, ...)
 
23116
{
 
23117
  char *s;
 
23118
  va_list v;
 
23119
  va_start (v,p);
 
23120
  s = g (p, va_arg (v,int));
 
23121
  va_end (v);
 
23122
  return s;
 
23123
}
 
23124
 
 
23125
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
23126
   function prototypes and stuff, but not '\xHH' hex character constants.
 
23127
   These don't provoke an error unfortunately, instead are silently treated
 
23128
   as 'x'.  The following induces an error, until -std is added to get
 
23129
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
23130
   array size at least.  It's necessary to write '\x00'==0 to get something
 
23131
   that's true only with -std.  */
 
23132
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
23133
 
 
23134
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
23135
   inside strings and character constants.  */
 
23136
#define FOO(x) 'x'
 
23137
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
23138
 
 
23139
int test (int i, double x);
 
23140
struct s1 {int (*f) (int a);};
 
23141
struct s2 {int (*f) (double a);};
 
23142
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
23143
int argc;
 
23144
char **argv;
 
23145
int
 
23146
main ()
 
23147
{
 
23148
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
23149
  ;
 
23150
  return 0;
 
23151
}
 
23152
_ACEOF
 
23153
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
23154
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
23155
do
 
23156
  CC="$ac_save_CC $ac_arg"
 
23157
  rm -f conftest.$ac_objext
 
23158
if { (ac_try="$ac_compile"
 
23159
case "(($ac_try" in
 
23160
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23161
  *) ac_try_echo=$ac_try;;
 
23162
esac
 
23163
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23164
$as_echo "$ac_try_echo") >&5
 
23165
  (eval "$ac_compile") 2>conftest.er1
 
23166
  ac_status=$?
 
23167
  grep -v '^ *+' conftest.er1 >conftest.err
 
23168
  rm -f conftest.er1
 
23169
  cat conftest.err >&5
 
23170
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23171
  (exit $ac_status); } && {
 
23172
         test -z "$ac_c_werror_flag" ||
 
23173
         test ! -s conftest.err
 
23174
       } && test -s conftest.$ac_objext; then
 
23175
  ac_cv_prog_cc_c89=$ac_arg
 
23176
else
 
23177
  $as_echo "$as_me: failed program was:" >&5
 
23178
sed 's/^/| /' conftest.$ac_ext >&5
 
23179
 
 
23180
 
 
23181
fi
 
23182
 
 
23183
rm -f core conftest.err conftest.$ac_objext
 
23184
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
23185
done
 
23186
rm -f conftest.$ac_ext
 
23187
CC=$ac_save_CC
 
23188
 
 
23189
fi
 
23190
# AC_CACHE_VAL
 
23191
case "x$ac_cv_prog_cc_c89" in
 
23192
  x)
 
23193
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
 
23194
$as_echo "none needed" >&6; } ;;
 
23195
  xno)
 
23196
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
 
23197
$as_echo "unsupported" >&6; } ;;
 
23198
  *)
 
23199
    CC="$CC $ac_cv_prog_cc_c89"
 
23200
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
23201
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
23202
esac
 
23203
if test "x$ac_cv_prog_cc_c89" != xno; then
 
23204
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
 
23205
else
 
23206
  ac_cv_prog_cc_stdc=no
 
23207
fi
 
23208
 
 
23209
 
 
23210
fi
 
23211
 
 
23212
 ;;
 
23213
esac
 
23214
  { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
 
23215
$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
 
23216
  if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
23217
  $as_echo_n "(cached) " >&6
 
23218
fi
 
23219
 
 
23220
  case $ac_cv_prog_cc_stdc in
 
23221
  no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
 
23222
$as_echo "unsupported" >&6; } ;;
 
23223
  '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
 
23224
$as_echo "none needed" >&6; } ;;
 
23225
  *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
23226
$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
 
23227
esac
 
23228
 
 
23229
 
 
23230
if test "x$CC" != xcc; then
 
23231
  { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
 
23232
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
 
23233
else
 
23234
  { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
 
23235
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
 
23236
fi
 
23237
set dummy $CC; ac_cc=`$as_echo "$2" |
 
23238
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
23239
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
 
23240
  $as_echo_n "(cached) " >&6
 
23241
else
 
23242
  cat >conftest.$ac_ext <<_ACEOF
 
23243
/* confdefs.h.  */
 
23244
_ACEOF
 
23245
cat confdefs.h >>conftest.$ac_ext
 
23246
cat >>conftest.$ac_ext <<_ACEOF
 
23247
/* end confdefs.h.  */
 
23248
 
 
23249
int
 
23250
main ()
 
23251
{
 
23252
 
 
23253
  ;
 
23254
  return 0;
 
23255
}
 
23256
_ACEOF
 
23257
# Make sure it works both with $CC and with simple cc.
 
23258
# We do the test twice because some compilers refuse to overwrite an
 
23259
# existing .o file with -o, though they will create one.
 
23260
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
23261
rm -f conftest2.*
 
23262
if { (case "(($ac_try" in
 
23263
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23264
  *) ac_try_echo=$ac_try;;
 
23265
esac
 
23266
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23267
$as_echo "$ac_try_echo") >&5
 
23268
  (eval "$ac_try") 2>&5
 
23269
  ac_status=$?
 
23270
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23271
  (exit $ac_status); } &&
 
23272
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
 
23273
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23274
  *) ac_try_echo=$ac_try;;
 
23275
esac
 
23276
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23277
$as_echo "$ac_try_echo") >&5
 
23278
  (eval "$ac_try") 2>&5
 
23279
  ac_status=$?
 
23280
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23281
  (exit $ac_status); };
 
23282
then
 
23283
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
 
23284
  if test "x$CC" != xcc; then
 
23285
    # Test first that cc exists at all.
 
23286
    if { ac_try='cc -c conftest.$ac_ext >&5'
 
23287
  { (case "(($ac_try" in
 
23288
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23289
  *) ac_try_echo=$ac_try;;
 
23290
esac
 
23291
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23292
$as_echo "$ac_try_echo") >&5
 
23293
  (eval "$ac_try") 2>&5
 
23294
  ac_status=$?
 
23295
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23296
  (exit $ac_status); }; }; then
 
23297
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
23298
      rm -f conftest2.*
 
23299
      if { (case "(($ac_try" in
 
23300
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23301
  *) ac_try_echo=$ac_try;;
 
23302
esac
 
23303
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23304
$as_echo "$ac_try_echo") >&5
 
23305
  (eval "$ac_try") 2>&5
 
23306
  ac_status=$?
 
23307
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23308
  (exit $ac_status); } &&
 
23309
         test -f conftest2.$ac_objext && { (case "(($ac_try" in
 
23310
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23311
  *) ac_try_echo=$ac_try;;
 
23312
esac
 
23313
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23314
$as_echo "$ac_try_echo") >&5
 
23315
  (eval "$ac_try") 2>&5
 
23316
  ac_status=$?
 
23317
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23318
  (exit $ac_status); };
 
23319
      then
 
23320
        # cc works too.
 
23321
        :
 
23322
      else
 
23323
        # cc exists but doesn't like -o.
 
23324
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
23325
      fi
 
23326
    fi
 
23327
  fi
 
23328
else
 
23329
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
23330
fi
 
23331
rm -f core conftest*
 
23332
 
 
23333
fi
 
23334
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
 
23335
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
23336
$as_echo "yes" >&6; }
 
23337
else
 
23338
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
23339
$as_echo "no" >&6; }
 
23340
 
 
23341
cat >>confdefs.h <<\_ACEOF
 
23342
#define NO_MINUS_C_MINUS_O 1
 
23343
_ACEOF
 
23344
 
 
23345
fi
 
23346
 
 
23347
# FIXME: we rely on the cache variable name because
 
23348
# there is no other way.
 
23349
set dummy $CC
 
23350
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
23351
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
 
23352
if test "$am_t" != yes; then
 
23353
   # Losing compiler, so override with the script.
 
23354
   # FIXME: It is wrong to rewrite CC.
 
23355
   # But if we don't then we get into trouble of one sort or another.
 
23356
   # A longer-term fix would be to have automake use am__CC in this case,
 
23357
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
23358
   CC="$am_aux_dir/compile $CC"
 
23359
fi
 
23360
 
 
23361
 
 
23362
 
23119
23363
GETTEXT_PACKAGE=gtk-vnc
23120
23364
 
23121
23365
 
23150
23394
    ;;
23151
23395
esac
23152
23396
 
23153
 
if test -n "0.35.0"; then
23154
 
    { $as_echo "$as_me:$LINENO: checking for intltool >= 0.35.0" >&5
23155
 
$as_echo_n "checking for intltool >= 0.35.0... " >&6; }
 
23397
if test -n "0.40.0"; then
 
23398
    { $as_echo "$as_me:$LINENO: checking for intltool >= 0.40.0" >&5
 
23399
$as_echo_n "checking for intltool >= 0.40.0... " >&6; }
23156
23400
 
23157
 
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
23401
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.40.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
23158
23402
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
23159
23403
    INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
23160
23404
 
23161
23405
    { $as_echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
23162
23406
$as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
23163
23407
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
23164
 
        { { $as_echo "$as_me:$LINENO: error: Your intltool is too old.  You need intltool 0.35.0 or later." >&5
23165
 
$as_echo "$as_me: error: Your intltool is too old.  You need intltool 0.35.0 or later." >&2;}
 
23408
        { { $as_echo "$as_me:$LINENO: error: Your intltool is too old.  You need intltool 0.40.0 or later." >&5
 
23409
$as_echo "$as_me: error: Your intltool is too old.  You need intltool 0.40.0 or later." >&2;}
23166
23410
   { (exit 1); exit 1; }; }
23167
23411
fi
23168
23412
 
23931
24175
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23932
24176
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23933
24177
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23934
 
 
 
24178
    ( cat <<\_ASBOX
 
24179
## ----------------------------------------------------------------------- ##
 
24180
## Report this to https://bugzilla.gnome.org/enter_bug.cgi?product=gtk-vnc ##
 
24181
## ----------------------------------------------------------------------- ##
 
24182
_ASBOX
 
24183
     ) | sed "s/^/$as_me: WARNING:     /" >&2
23935
24184
    ;;
23936
24185
esac
23937
24186
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24144
24393
$as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
24145
24394
    { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
24146
24395
$as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
24147
 
 
 
24396
    ( cat <<\_ASBOX
 
24397
## ----------------------------------------------------------------------- ##
 
24398
## Report this to https://bugzilla.gnome.org/enter_bug.cgi?product=gtk-vnc ##
 
24399
## ----------------------------------------------------------------------- ##
 
24400
_ASBOX
 
24401
     ) | sed "s/^/$as_me: WARNING:     /" >&2
24148
24402
    ;;
24149
24403
esac
24150
24404
{ $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
25398
25652
 
25399
25653
 
25400
25654
 
25401
 
 
25402
 
 
25403
 
 
25404
 
for ac_header in pwd.h winsock2.h
 
25655
################################################################################
 
25656
# GTK+
 
25657
################################################################################
 
25658
 
 
25659
{ $as_echo "$as_me:$LINENO: checking which gtk+ version to compile against" >&5
 
25660
$as_echo_n "checking which gtk+ version to compile against... " >&6; }
 
25661
 
 
25662
# Check whether --with-gtk was given.
 
25663
if test "${with_gtk+set}" = set; then
 
25664
  withval=$with_gtk; case "$with_gtk" in
 
25665
     2.0|3.0) ;;
 
25666
     *) { { $as_echo "$as_me:$LINENO: error: invalid gtk version specified" >&5
 
25667
$as_echo "$as_me: error: invalid gtk version specified" >&2;}
 
25668
   { (exit 1); exit 1; }; } ;;
 
25669
   esac
 
25670
else
 
25671
  with_gtk=2.0
 
25672
fi
 
25673
 
 
25674
{ $as_echo "$as_me:$LINENO: result: $with_gtk" >&5
 
25675
$as_echo "$with_gtk" >&6; }
 
25676
 
 
25677
case "$with_gtk" in
 
25678
  2.0) GTK_API_VERSION=2.0
 
25679
       GTK_REQUIRED=2.18.0
 
25680
       GTK_VNC_API_VERSION=1.0
 
25681
       ;;
 
25682
  3.0) GTK_API_VERSION=3.0
 
25683
       GTK_REQUIRED=2.90.4
 
25684
       GTK_VNC_API_VERSION=2.0
 
25685
       ;;
 
25686
esac
 
25687
 
 
25688
 
 
25689
 
 
25690
 
 
25691
 if test "$with_gtk" = "2.0"; then
 
25692
  HAVE_GTK_2_TRUE=
 
25693
  HAVE_GTK_2_FALSE='#'
 
25694
else
 
25695
  HAVE_GTK_2_TRUE='#'
 
25696
  HAVE_GTK_2_FALSE=
 
25697
fi
 
25698
 
 
25699
 if test "$with_gtk" = "3.0"; then
 
25700
  HAVE_GTK_3_TRUE=
 
25701
  HAVE_GTK_3_FALSE='#'
 
25702
else
 
25703
  HAVE_GTK_3_TRUE='#'
 
25704
  HAVE_GTK_3_FALSE=
 
25705
fi
 
25706
 
 
25707
 
 
25708
 
 
25709
 
 
25710
 
 
25711
for ac_header in pwd.h winsock2.h termios.h
25405
25712
do
25406
25713
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25407
25714
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25519
25826
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25520
25827
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25521
25828
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25522
 
 
 
25829
    ( cat <<\_ASBOX
 
25830
## ----------------------------------------------------------------------- ##
 
25831
## Report this to https://bugzilla.gnome.org/enter_bug.cgi?product=gtk-vnc ##
 
25832
## ----------------------------------------------------------------------- ##
 
25833
_ASBOX
 
25834
     ) | sed "s/^/$as_me: WARNING:     /" >&2
25523
25835
    ;;
25524
25836
esac
25525
25837
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25561
25873
fi
25562
25874
 
25563
25875
 
25564
 
WITH_PYTHON=$withval
 
25876
if test "$with_gtk" = "3.0"
 
25877
then
 
25878
  WITH_PYTHON=no
 
25879
else
 
25880
  WITH_PYTHON=$withval
 
25881
fi
25565
25882
 
25566
25883
 
25567
25884
 
25799
26116
WITH_EXAMPLES=$withval
25800
26117
 
25801
26118
 
25802
 
ld --help>/tmp/$$ 2>&1
25803
 
if `cat /tmp/$$|grep version-script>/dev/null 2>&1`; then
25804
 
LD_VERSION_SCRIPT_SUPPORT='--version-script=$(srcdir)/libgtk-vnc_sym.version'
 
26119
NO_UNDEFINED_LDFLAGS=
 
26120
VERSION_SCRIPT_FLAGS=
 
26121
USE_VERSION_DEFS=0
 
26122
case "$host" in
 
26123
  *-*-mingw*)
 
26124
    VERSION_SCRIPT_FLAGS="-Wl,"
 
26125
    USE_VERSION_DEFS=1
 
26126
    NO_UNDEFINED_FLAGS="-no-undefined"
 
26127
    ;;
 
26128
 
 
26129
  *-*-cygwin*)
 
26130
    NO_UNDEFINED_LDFLAGS="-no-undefined"
 
26131
    ;;
 
26132
 
 
26133
  *)
 
26134
    NO_UNDEFINED_FLAGS="-Wl,--no-undefined"
 
26135
    VERSION_SCRIPT_FLAGS=-Wl,--version-script=
 
26136
    `ld --help 2>&1 | grep -- --version-script >/dev/null` || \
 
26137
      VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,"
 
26138
    ;;
 
26139
esac
 
26140
 
 
26141
 
 
26142
 if test "$USE_VERSION_DEFS" = "1"; then
 
26143
  USE_VERSION_DEFS_TRUE=
 
26144
  USE_VERSION_DEFS_FALSE='#'
25805
26145
else
25806
 
LD_VERSION_SCRIPT_SUPPORT="export-symbols-regex 'vnc_'"
 
26146
  USE_VERSION_DEFS_TRUE='#'
 
26147
  USE_VERSION_DEFS_FALSE=
25807
26148
fi
25808
 
rm /tmp/$$
 
26149
 
 
26150
 
25809
26151
 
25810
26152
 
25811
26153
 
25926
26268
fi
25927
26269
 
25928
26270
pkg_failed=no
 
26271
{ $as_echo "$as_me:$LINENO: checking for GOBJECT" >&5
 
26272
$as_echo_n "checking for GOBJECT... " >&6; }
 
26273
 
 
26274
if test -n "$GOBJECT_CFLAGS"; then
 
26275
    pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
 
26276
 elif test -n "$PKG_CONFIG"; then
 
26277
    if test -n "$PKG_CONFIG" && \
 
26278
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 >= \$GOBJECT_REQUIRED\"") >&5
 
26279
  ($PKG_CONFIG --exists --print-errors "gobject-2.0 >= $GOBJECT_REQUIRED") 2>&5
 
26280
  ac_status=$?
 
26281
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26282
  (exit $ac_status); }; then
 
26283
  pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 >= $GOBJECT_REQUIRED" 2>/dev/null`
 
26284
else
 
26285
  pkg_failed=yes
 
26286
fi
 
26287
 else
 
26288
    pkg_failed=untried
 
26289
fi
 
26290
if test -n "$GOBJECT_LIBS"; then
 
26291
    pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
 
26292
 elif test -n "$PKG_CONFIG"; then
 
26293
    if test -n "$PKG_CONFIG" && \
 
26294
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 >= \$GOBJECT_REQUIRED\"") >&5
 
26295
  ($PKG_CONFIG --exists --print-errors "gobject-2.0 >= $GOBJECT_REQUIRED") 2>&5
 
26296
  ac_status=$?
 
26297
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26298
  (exit $ac_status); }; then
 
26299
  pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 >= $GOBJECT_REQUIRED" 2>/dev/null`
 
26300
else
 
26301
  pkg_failed=yes
 
26302
fi
 
26303
 else
 
26304
    pkg_failed=untried
 
26305
fi
 
26306
 
 
26307
 
 
26308
 
 
26309
if test $pkg_failed = yes; then
 
26310
 
 
26311
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
26312
        _pkg_short_errors_supported=yes
 
26313
else
 
26314
        _pkg_short_errors_supported=no
 
26315
fi
 
26316
        if test $_pkg_short_errors_supported = yes; then
 
26317
                GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gobject-2.0 >= $GOBJECT_REQUIRED" 2>&1`
 
26318
        else
 
26319
                GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors "gobject-2.0 >= $GOBJECT_REQUIRED" 2>&1`
 
26320
        fi
 
26321
        # Put the nasty error message in config.log where it belongs
 
26322
        echo "$GOBJECT_PKG_ERRORS" >&5
 
26323
 
 
26324
        { { $as_echo "$as_me:$LINENO: error: Package requirements (gobject-2.0 >= $GOBJECT_REQUIRED) were not met:
 
26325
 
 
26326
$GOBJECT_PKG_ERRORS
 
26327
 
 
26328
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
26329
installed software in a non-standard prefix.
 
26330
 
 
26331
Alternatively, you may set the environment variables GOBJECT_CFLAGS
 
26332
and GOBJECT_LIBS to avoid the need to call pkg-config.
 
26333
See the pkg-config man page for more details.
 
26334
" >&5
 
26335
$as_echo "$as_me: error: Package requirements (gobject-2.0 >= $GOBJECT_REQUIRED) were not met:
 
26336
 
 
26337
$GOBJECT_PKG_ERRORS
 
26338
 
 
26339
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
26340
installed software in a non-standard prefix.
 
26341
 
 
26342
Alternatively, you may set the environment variables GOBJECT_CFLAGS
 
26343
and GOBJECT_LIBS to avoid the need to call pkg-config.
 
26344
See the pkg-config man page for more details.
 
26345
" >&2;}
 
26346
   { (exit 1); exit 1; }; }
 
26347
elif test $pkg_failed = untried; then
 
26348
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
26349
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
26350
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
26351
is in your PATH or set the PKG_CONFIG environment variable to the full
 
26352
path to pkg-config.
 
26353
 
 
26354
Alternatively, you may set the environment variables GOBJECT_CFLAGS
 
26355
and GOBJECT_LIBS to avoid the need to call pkg-config.
 
26356
See the pkg-config man page for more details.
 
26357
 
 
26358
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
26359
See \`config.log' for more details." >&5
 
26360
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
26361
is in your PATH or set the PKG_CONFIG environment variable to the full
 
26362
path to pkg-config.
 
26363
 
 
26364
Alternatively, you may set the environment variables GOBJECT_CFLAGS
 
26365
and GOBJECT_LIBS to avoid the need to call pkg-config.
 
26366
See the pkg-config man page for more details.
 
26367
 
 
26368
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
26369
See \`config.log' for more details." >&2;}
 
26370
   { (exit 1); exit 1; }; }; }
 
26371
else
 
26372
        GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
 
26373
        GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
 
26374
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
26375
$as_echo "yes" >&6; }
 
26376
        :
 
26377
fi
 
26378
 
 
26379
 
 
26380
 
 
26381
 
 
26382
pkg_failed=no
 
26383
{ $as_echo "$as_me:$LINENO: checking for GDK_PIXBUF" >&5
 
26384
$as_echo_n "checking for GDK_PIXBUF... " >&6; }
 
26385
 
 
26386
if test -n "$GDK_PIXBUF_CFLAGS"; then
 
26387
    pkg_cv_GDK_PIXBUF_CFLAGS="$GDK_PIXBUF_CFLAGS"
 
26388
 elif test -n "$PKG_CONFIG"; then
 
26389
    if test -n "$PKG_CONFIG" && \
 
26390
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gdk-pixbuf-2.0 >= \$GDK_PIXBUF_REQUIRED\"") >&5
 
26391
  ($PKG_CONFIG --exists --print-errors "gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED") 2>&5
 
26392
  ac_status=$?
 
26393
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26394
  (exit $ac_status); }; then
 
26395
  pkg_cv_GDK_PIXBUF_CFLAGS=`$PKG_CONFIG --cflags "gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED" 2>/dev/null`
 
26396
else
 
26397
  pkg_failed=yes
 
26398
fi
 
26399
 else
 
26400
    pkg_failed=untried
 
26401
fi
 
26402
if test -n "$GDK_PIXBUF_LIBS"; then
 
26403
    pkg_cv_GDK_PIXBUF_LIBS="$GDK_PIXBUF_LIBS"
 
26404
 elif test -n "$PKG_CONFIG"; then
 
26405
    if test -n "$PKG_CONFIG" && \
 
26406
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gdk-pixbuf-2.0 >= \$GDK_PIXBUF_REQUIRED\"") >&5
 
26407
  ($PKG_CONFIG --exists --print-errors "gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED") 2>&5
 
26408
  ac_status=$?
 
26409
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26410
  (exit $ac_status); }; then
 
26411
  pkg_cv_GDK_PIXBUF_LIBS=`$PKG_CONFIG --libs "gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED" 2>/dev/null`
 
26412
else
 
26413
  pkg_failed=yes
 
26414
fi
 
26415
 else
 
26416
    pkg_failed=untried
 
26417
fi
 
26418
 
 
26419
 
 
26420
 
 
26421
if test $pkg_failed = yes; then
 
26422
 
 
26423
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
26424
        _pkg_short_errors_supported=yes
 
26425
else
 
26426
        _pkg_short_errors_supported=no
 
26427
fi
 
26428
        if test $_pkg_short_errors_supported = yes; then
 
26429
                GDK_PIXBUF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED" 2>&1`
 
26430
        else
 
26431
                GDK_PIXBUF_PKG_ERRORS=`$PKG_CONFIG --print-errors "gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED" 2>&1`
 
26432
        fi
 
26433
        # Put the nasty error message in config.log where it belongs
 
26434
        echo "$GDK_PIXBUF_PKG_ERRORS" >&5
 
26435
 
 
26436
        { { $as_echo "$as_me:$LINENO: error: Package requirements (gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED) were not met:
 
26437
 
 
26438
$GDK_PIXBUF_PKG_ERRORS
 
26439
 
 
26440
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
26441
installed software in a non-standard prefix.
 
26442
 
 
26443
Alternatively, you may set the environment variables GDK_PIXBUF_CFLAGS
 
26444
and GDK_PIXBUF_LIBS to avoid the need to call pkg-config.
 
26445
See the pkg-config man page for more details.
 
26446
" >&5
 
26447
$as_echo "$as_me: error: Package requirements (gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED) were not met:
 
26448
 
 
26449
$GDK_PIXBUF_PKG_ERRORS
 
26450
 
 
26451
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
26452
installed software in a non-standard prefix.
 
26453
 
 
26454
Alternatively, you may set the environment variables GDK_PIXBUF_CFLAGS
 
26455
and GDK_PIXBUF_LIBS to avoid the need to call pkg-config.
 
26456
See the pkg-config man page for more details.
 
26457
" >&2;}
 
26458
   { (exit 1); exit 1; }; }
 
26459
elif test $pkg_failed = untried; then
 
26460
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
26461
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
26462
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
26463
is in your PATH or set the PKG_CONFIG environment variable to the full
 
26464
path to pkg-config.
 
26465
 
 
26466
Alternatively, you may set the environment variables GDK_PIXBUF_CFLAGS
 
26467
and GDK_PIXBUF_LIBS to avoid the need to call pkg-config.
 
26468
See the pkg-config man page for more details.
 
26469
 
 
26470
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
26471
See \`config.log' for more details." >&5
 
26472
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
26473
is in your PATH or set the PKG_CONFIG environment variable to the full
 
26474
path to pkg-config.
 
26475
 
 
26476
Alternatively, you may set the environment variables GDK_PIXBUF_CFLAGS
 
26477
and GDK_PIXBUF_LIBS to avoid the need to call pkg-config.
 
26478
See the pkg-config man page for more details.
 
26479
 
 
26480
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
26481
See \`config.log' for more details." >&2;}
 
26482
   { (exit 1); exit 1; }; }; }
 
26483
else
 
26484
        GDK_PIXBUF_CFLAGS=$pkg_cv_GDK_PIXBUF_CFLAGS
 
26485
        GDK_PIXBUF_LIBS=$pkg_cv_GDK_PIXBUF_LIBS
 
26486
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
26487
$as_echo "yes" >&6; }
 
26488
        :
 
26489
fi
 
26490
 
 
26491
 
 
26492
 
 
26493
 
 
26494
pkg_failed=no
25929
26495
{ $as_echo "$as_me:$LINENO: checking for GTK" >&5
25930
26496
$as_echo_n "checking for GTK... " >&6; }
25931
26497
 
25932
 
if test -n "$PKG_CONFIG"; then
25933
 
    if test -n "$GTK_CFLAGS"; then
25934
 
        pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
25935
 
    else
25936
 
        if test -n "$PKG_CONFIG" && \
25937
 
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= \$GTK_REQUIRED\"") >&5
25938
 
  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= $GTK_REQUIRED") 2>&5
25939
 
  ac_status=$?
25940
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25941
 
  (exit $ac_status); }; then
25942
 
  pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= $GTK_REQUIRED" 2>/dev/null`
25943
 
else
25944
 
  pkg_failed=yes
25945
 
fi
25946
 
    fi
25947
 
else
25948
 
        pkg_failed=untried
25949
 
fi
25950
 
if test -n "$PKG_CONFIG"; then
25951
 
    if test -n "$GTK_LIBS"; then
25952
 
        pkg_cv_GTK_LIBS="$GTK_LIBS"
25953
 
    else
25954
 
        if test -n "$PKG_CONFIG" && \
25955
 
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= \$GTK_REQUIRED\"") >&5
25956
 
  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= $GTK_REQUIRED") 2>&5
25957
 
  ac_status=$?
25958
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25959
 
  (exit $ac_status); }; then
25960
 
  pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= $GTK_REQUIRED" 2>/dev/null`
25961
 
else
25962
 
  pkg_failed=yes
25963
 
fi
25964
 
    fi
25965
 
else
25966
 
        pkg_failed=untried
 
26498
if test -n "$GTK_CFLAGS"; then
 
26499
    pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
 
26500
 elif test -n "$PKG_CONFIG"; then
 
26501
    if test -n "$PKG_CONFIG" && \
 
26502
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-\$GTK_API_VERSION >= \$GTK_REQUIRED\"") >&5
 
26503
  ($PKG_CONFIG --exists --print-errors "gtk+-$GTK_API_VERSION >= $GTK_REQUIRED") 2>&5
 
26504
  ac_status=$?
 
26505
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26506
  (exit $ac_status); }; then
 
26507
  pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-$GTK_API_VERSION >= $GTK_REQUIRED" 2>/dev/null`
 
26508
else
 
26509
  pkg_failed=yes
 
26510
fi
 
26511
 else
 
26512
    pkg_failed=untried
 
26513
fi
 
26514
if test -n "$GTK_LIBS"; then
 
26515
    pkg_cv_GTK_LIBS="$GTK_LIBS"
 
26516
 elif test -n "$PKG_CONFIG"; then
 
26517
    if test -n "$PKG_CONFIG" && \
 
26518
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-\$GTK_API_VERSION >= \$GTK_REQUIRED\"") >&5
 
26519
  ($PKG_CONFIG --exists --print-errors "gtk+-$GTK_API_VERSION >= $GTK_REQUIRED") 2>&5
 
26520
  ac_status=$?
 
26521
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26522
  (exit $ac_status); }; then
 
26523
  pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-$GTK_API_VERSION >= $GTK_REQUIRED" 2>/dev/null`
 
26524
else
 
26525
  pkg_failed=yes
 
26526
fi
 
26527
 else
 
26528
    pkg_failed=untried
25967
26529
fi
25968
26530
 
25969
26531
 
25976
26538
        _pkg_short_errors_supported=no
25977
26539
fi
25978
26540
        if test $_pkg_short_errors_supported = yes; then
25979
 
                GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= $GTK_REQUIRED"`
 
26541
                GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-$GTK_API_VERSION >= $GTK_REQUIRED" 2>&1`
25980
26542
        else
25981
 
                GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= $GTK_REQUIRED"`
 
26543
                GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-$GTK_API_VERSION >= $GTK_REQUIRED" 2>&1`
25982
26544
        fi
25983
26545
        # Put the nasty error message in config.log where it belongs
25984
26546
        echo "$GTK_PKG_ERRORS" >&5
25985
26547
 
25986
 
        { { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0 >= $GTK_REQUIRED) were not met:
 
26548
        { { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-$GTK_API_VERSION >= $GTK_REQUIRED) were not met:
25987
26549
 
25988
26550
$GTK_PKG_ERRORS
25989
26551
 
25994
26556
and GTK_LIBS to avoid the need to call pkg-config.
25995
26557
See the pkg-config man page for more details.
25996
26558
" >&5
25997
 
$as_echo "$as_me: error: Package requirements (gtk+-2.0 >= $GTK_REQUIRED) were not met:
 
26559
$as_echo "$as_me: error: Package requirements (gtk+-$GTK_API_VERSION >= $GTK_REQUIRED) were not met:
25998
26560
 
25999
26561
$GTK_PKG_ERRORS
26000
26562
 
26040
26602
 
26041
26603
 
26042
26604
 
 
26605
 
 
26606
pkg_failed=no
 
26607
{ $as_echo "$as_me:$LINENO: checking for X11" >&5
 
26608
$as_echo_n "checking for X11... " >&6; }
 
26609
 
 
26610
if test -n "$X11_CFLAGS"; then
 
26611
    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
 
26612
 elif test -n "$PKG_CONFIG"; then
 
26613
    if test -n "$PKG_CONFIG" && \
 
26614
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
 
26615
  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
 
26616
  ac_status=$?
 
26617
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26618
  (exit $ac_status); }; then
 
26619
  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
 
26620
else
 
26621
  pkg_failed=yes
 
26622
fi
 
26623
 else
 
26624
    pkg_failed=untried
 
26625
fi
 
26626
if test -n "$X11_LIBS"; then
 
26627
    pkg_cv_X11_LIBS="$X11_LIBS"
 
26628
 elif test -n "$PKG_CONFIG"; then
 
26629
    if test -n "$PKG_CONFIG" && \
 
26630
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
 
26631
  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
 
26632
  ac_status=$?
 
26633
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26634
  (exit $ac_status); }; then
 
26635
  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
 
26636
else
 
26637
  pkg_failed=yes
 
26638
fi
 
26639
 else
 
26640
    pkg_failed=untried
 
26641
fi
 
26642
 
 
26643
 
 
26644
 
 
26645
if test $pkg_failed = yes; then
 
26646
 
 
26647
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
26648
        _pkg_short_errors_supported=yes
 
26649
else
 
26650
        _pkg_short_errors_supported=no
 
26651
fi
 
26652
        if test $_pkg_short_errors_supported = yes; then
 
26653
                X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
 
26654
        else
 
26655
                X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
 
26656
        fi
 
26657
        # Put the nasty error message in config.log where it belongs
 
26658
        echo "$X11_PKG_ERRORS" >&5
 
26659
 
 
26660
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
26661
$as_echo "no" >&6; }
 
26662
                { $as_echo "$as_me:$LINENO: Not building against X11" >&5
 
26663
$as_echo "$as_me: Not building against X11" >&6;}
 
26664
elif test $pkg_failed = untried; then
 
26665
        { $as_echo "$as_me:$LINENO: Not building against X11" >&5
 
26666
$as_echo "$as_me: Not building against X11" >&6;}
 
26667
else
 
26668
        X11_CFLAGS=$pkg_cv_X11_CFLAGS
 
26669
        X11_LIBS=$pkg_cv_X11_LIBS
 
26670
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
26671
$as_echo "yes" >&6; }
 
26672
        :
 
26673
fi
 
26674
 
 
26675
 
 
26676
 
26043
26677
save_CFLAGS="$CFLAGS"
26044
26678
save_LIBS="$LIBS"
26045
26679
CFLAGS="$CFLAGS $GTK_CFLAGS"
26166
26800
{ $as_echo "$as_me:$LINENO: checking for VIEW" >&5
26167
26801
$as_echo_n "checking for VIEW... " >&6; }
26168
26802
 
26169
 
if test -n "$PKG_CONFIG"; then
26170
 
    if test -n "$VIEW_CFLAGS"; then
26171
 
        pkg_cv_VIEW_CFLAGS="$VIEW_CFLAGS"
26172
 
    else
26173
 
        if test -n "$PKG_CONFIG" && \
 
26803
if test -n "$VIEW_CFLAGS"; then
 
26804
    pkg_cv_VIEW_CFLAGS="$VIEW_CFLAGS"
 
26805
 elif test -n "$PKG_CONFIG"; then
 
26806
    if test -n "$PKG_CONFIG" && \
26174
26807
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libview >= \$VIEW_REQUIRED\"") >&5
26175
26808
  ($PKG_CONFIG --exists --print-errors "libview >= $VIEW_REQUIRED") 2>&5
26176
26809
  ac_status=$?
26180
26813
else
26181
26814
  pkg_failed=yes
26182
26815
fi
26183
 
    fi
26184
 
else
26185
 
        pkg_failed=untried
 
26816
 else
 
26817
    pkg_failed=untried
26186
26818
fi
26187
 
if test -n "$PKG_CONFIG"; then
26188
 
    if test -n "$VIEW_LIBS"; then
26189
 
        pkg_cv_VIEW_LIBS="$VIEW_LIBS"
26190
 
    else
26191
 
        if test -n "$PKG_CONFIG" && \
 
26819
if test -n "$VIEW_LIBS"; then
 
26820
    pkg_cv_VIEW_LIBS="$VIEW_LIBS"
 
26821
 elif test -n "$PKG_CONFIG"; then
 
26822
    if test -n "$PKG_CONFIG" && \
26192
26823
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libview >= \$VIEW_REQUIRED\"") >&5
26193
26824
  ($PKG_CONFIG --exists --print-errors "libview >= $VIEW_REQUIRED") 2>&5
26194
26825
  ac_status=$?
26198
26829
else
26199
26830
  pkg_failed=yes
26200
26831
fi
26201
 
    fi
26202
 
else
26203
 
        pkg_failed=untried
 
26832
 else
 
26833
    pkg_failed=untried
26204
26834
fi
26205
26835
 
26206
26836
 
26213
26843
        _pkg_short_errors_supported=no
26214
26844
fi
26215
26845
        if test $_pkg_short_errors_supported = yes; then
26216
 
                VIEW_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libview >= $VIEW_REQUIRED"`
 
26846
                VIEW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libview >= $VIEW_REQUIRED" 2>&1`
26217
26847
        else
26218
 
                VIEW_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libview >= $VIEW_REQUIRED"`
 
26848
                VIEW_PKG_ERRORS=`$PKG_CONFIG --print-errors "libview >= $VIEW_REQUIRED" 2>&1`
26219
26849
        fi
26220
26850
        # Put the nasty error message in config.log where it belongs
26221
26851
        echo "$VIEW_PKG_ERRORS" >&5
26246
26876
{ $as_echo "$as_me:$LINENO: checking for GNUTLS" >&5
26247
26877
$as_echo_n "checking for GNUTLS... " >&6; }
26248
26878
 
26249
 
if test -n "$PKG_CONFIG"; then
26250
 
    if test -n "$GNUTLS_CFLAGS"; then
26251
 
        pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
26252
 
    else
26253
 
        if test -n "$PKG_CONFIG" && \
 
26879
if test -n "$GNUTLS_CFLAGS"; then
 
26880
    pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
 
26881
 elif test -n "$PKG_CONFIG"; then
 
26882
    if test -n "$PKG_CONFIG" && \
26254
26883
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$GNUTLS_REQUIRED\"") >&5
26255
26884
  ($PKG_CONFIG --exists --print-errors "gnutls >= $GNUTLS_REQUIRED") 2>&5
26256
26885
  ac_status=$?
26260
26889
else
26261
26890
  pkg_failed=yes
26262
26891
fi
26263
 
    fi
26264
 
else
26265
 
        pkg_failed=untried
 
26892
 else
 
26893
    pkg_failed=untried
26266
26894
fi
26267
 
if test -n "$PKG_CONFIG"; then
26268
 
    if test -n "$GNUTLS_LIBS"; then
26269
 
        pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
26270
 
    else
26271
 
        if test -n "$PKG_CONFIG" && \
 
26895
if test -n "$GNUTLS_LIBS"; then
 
26896
    pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
 
26897
 elif test -n "$PKG_CONFIG"; then
 
26898
    if test -n "$PKG_CONFIG" && \
26272
26899
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$GNUTLS_REQUIRED\"") >&5
26273
26900
  ($PKG_CONFIG --exists --print-errors "gnutls >= $GNUTLS_REQUIRED") 2>&5
26274
26901
  ac_status=$?
26278
26905
else
26279
26906
  pkg_failed=yes
26280
26907
fi
26281
 
    fi
26282
 
else
26283
 
        pkg_failed=untried
 
26908
 else
 
26909
    pkg_failed=untried
26284
26910
fi
26285
26911
 
26286
26912
 
26293
26919
        _pkg_short_errors_supported=no
26294
26920
fi
26295
26921
        if test $_pkg_short_errors_supported = yes; then
26296
 
                GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnutls >= $GNUTLS_REQUIRED"`
 
26922
                GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gnutls >= $GNUTLS_REQUIRED" 2>&1`
26297
26923
        else
26298
 
                GNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= $GNUTLS_REQUIRED"`
 
26924
                GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors "gnutls >= $GNUTLS_REQUIRED" 2>&1`
26299
26925
        fi
26300
26926
        # Put the nasty error message in config.log where it belongs
26301
26927
        echo "$GNUTLS_PKG_ERRORS" >&5
26354
26980
$as_echo "yes" >&6; }
26355
26981
        :
26356
26982
fi
26357
 
GNUTLS_LIBS="$GNUTLS_LIBS -lgcrypt"
 
26983
GNUTLS_LIBS="$GNUTLS_LIBS -lgcrypt -lgpg-error"
26358
26984
 
26359
26985
 
26360
26986
 
26493
27119
$as_echo "$as_me: WARNING: sasl/sasl.h: proceeding with the preprocessor's result" >&2;}
26494
27120
    { $as_echo "$as_me:$LINENO: WARNING: sasl/sasl.h: in the future, the compiler will take precedence" >&5
26495
27121
$as_echo "$as_me: WARNING: sasl/sasl.h: in the future, the compiler will take precedence" >&2;}
26496
 
 
 
27122
    ( cat <<\_ASBOX
 
27123
## ----------------------------------------------------------------------- ##
 
27124
## Report this to https://bugzilla.gnome.org/enter_bug.cgi?product=gtk-vnc ##
 
27125
## ----------------------------------------------------------------------- ##
 
27126
_ASBOX
 
27127
     ) | sed "s/^/$as_me: WARNING:     /" >&2
26497
27128
    ;;
26498
27129
esac
26499
27130
{ $as_echo "$as_me:$LINENO: checking for sasl/sasl.h" >&5
27084
27715
{ $as_echo "$as_me:$LINENO: checking for GTHREAD" >&5
27085
27716
$as_echo_n "checking for GTHREAD... " >&6; }
27086
27717
 
27087
 
if test -n "$PKG_CONFIG"; then
27088
 
    if test -n "$GTHREAD_CFLAGS"; then
27089
 
        pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
27090
 
    else
27091
 
        if test -n "$PKG_CONFIG" && \
 
27718
if test -n "$GTHREAD_CFLAGS"; then
 
27719
    pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
 
27720
 elif test -n "$PKG_CONFIG"; then
 
27721
    if test -n "$PKG_CONFIG" && \
27092
27722
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 > \$GTHREAD_REQUIRED\"") >&5
27093
27723
  ($PKG_CONFIG --exists --print-errors "gthread-2.0 > $GTHREAD_REQUIRED") 2>&5
27094
27724
  ac_status=$?
27098
27728
else
27099
27729
  pkg_failed=yes
27100
27730
fi
27101
 
    fi
27102
 
else
27103
 
        pkg_failed=untried
 
27731
 else
 
27732
    pkg_failed=untried
27104
27733
fi
27105
 
if test -n "$PKG_CONFIG"; then
27106
 
    if test -n "$GTHREAD_LIBS"; then
27107
 
        pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
27108
 
    else
27109
 
        if test -n "$PKG_CONFIG" && \
 
27734
if test -n "$GTHREAD_LIBS"; then
 
27735
    pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
 
27736
 elif test -n "$PKG_CONFIG"; then
 
27737
    if test -n "$PKG_CONFIG" && \
27110
27738
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 > \$GTHREAD_REQUIRED\"") >&5
27111
27739
  ($PKG_CONFIG --exists --print-errors "gthread-2.0 > $GTHREAD_REQUIRED") 2>&5
27112
27740
  ac_status=$?
27116
27744
else
27117
27745
  pkg_failed=yes
27118
27746
fi
27119
 
    fi
27120
 
else
27121
 
        pkg_failed=untried
 
27747
 else
 
27748
    pkg_failed=untried
27122
27749
fi
27123
27750
 
27124
27751
 
27131
27758
        _pkg_short_errors_supported=no
27132
27759
fi
27133
27760
        if test $_pkg_short_errors_supported = yes; then
27134
 
                GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gthread-2.0 > $GTHREAD_REQUIRED"`
 
27761
                GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gthread-2.0 > $GTHREAD_REQUIRED" 2>&1`
27135
27762
        else
27136
 
                GTHREAD_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gthread-2.0 > $GTHREAD_REQUIRED"`
 
27763
                GTHREAD_PKG_ERRORS=`$PKG_CONFIG --print-errors "gthread-2.0 > $GTHREAD_REQUIRED" 2>&1`
27137
27764
        fi
27138
27765
        # Put the nasty error message in config.log where it belongs
27139
27766
        echo "$GTHREAD_PKG_ERRORS" >&5
27216
27843
{ $as_echo "$as_me:$LINENO: checking for PYGTK" >&5
27217
27844
$as_echo_n "checking for PYGTK... " >&6; }
27218
27845
 
27219
 
if test -n "$PKG_CONFIG"; then
27220
 
    if test -n "$PYGTK_CFLAGS"; then
27221
 
        pkg_cv_PYGTK_CFLAGS="$PYGTK_CFLAGS"
27222
 
    else
27223
 
        if test -n "$PKG_CONFIG" && \
 
27846
if test -n "$PYGTK_CFLAGS"; then
 
27847
    pkg_cv_PYGTK_CFLAGS="$PYGTK_CFLAGS"
 
27848
 elif test -n "$PKG_CONFIG"; then
 
27849
    if test -n "$PKG_CONFIG" && \
27224
27850
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pygtk-2.0 >= \$PYGTK_REQUIRED\"") >&5
27225
27851
  ($PKG_CONFIG --exists --print-errors "pygtk-2.0 >= $PYGTK_REQUIRED") 2>&5
27226
27852
  ac_status=$?
27230
27856
else
27231
27857
  pkg_failed=yes
27232
27858
fi
27233
 
    fi
27234
 
else
27235
 
        pkg_failed=untried
 
27859
 else
 
27860
    pkg_failed=untried
27236
27861
fi
27237
 
if test -n "$PKG_CONFIG"; then
27238
 
    if test -n "$PYGTK_LIBS"; then
27239
 
        pkg_cv_PYGTK_LIBS="$PYGTK_LIBS"
27240
 
    else
27241
 
        if test -n "$PKG_CONFIG" && \
 
27862
if test -n "$PYGTK_LIBS"; then
 
27863
    pkg_cv_PYGTK_LIBS="$PYGTK_LIBS"
 
27864
 elif test -n "$PKG_CONFIG"; then
 
27865
    if test -n "$PKG_CONFIG" && \
27242
27866
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pygtk-2.0 >= \$PYGTK_REQUIRED\"") >&5
27243
27867
  ($PKG_CONFIG --exists --print-errors "pygtk-2.0 >= $PYGTK_REQUIRED") 2>&5
27244
27868
  ac_status=$?
27248
27872
else
27249
27873
  pkg_failed=yes
27250
27874
fi
27251
 
    fi
27252
 
else
27253
 
        pkg_failed=untried
 
27875
 else
 
27876
    pkg_failed=untried
27254
27877
fi
27255
27878
 
27256
27879
 
27263
27886
        _pkg_short_errors_supported=no
27264
27887
fi
27265
27888
        if test $_pkg_short_errors_supported = yes; then
27266
 
                PYGTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pygtk-2.0 >= $PYGTK_REQUIRED"`
 
27889
                PYGTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pygtk-2.0 >= $PYGTK_REQUIRED" 2>&1`
27267
27890
        else
27268
 
                PYGTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pygtk-2.0 >= $PYGTK_REQUIRED"`
 
27891
                PYGTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "pygtk-2.0 >= $PYGTK_REQUIRED" 2>&1`
27269
27892
        fi
27270
27893
        # Put the nasty error message in config.log where it belongs
27271
27894
        echo "$PYGTK_PKG_ERRORS" >&5
27333
27956
 
27334
27957
        # Find any Python interpreter.
27335
27958
    if test -z "$PYTHON"; then
27336
 
      for ac_prog in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5
 
27959
      for ac_prog in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0
27337
27960
do
27338
27961
  # Extract the first word of "$ac_prog", so it can be a program name with args.
27339
27962
set dummy $ac_prog; ac_word=$2
27395
28018
if test "${am_cv_python_version+set}" = set; then
27396
28019
  $as_echo_n "(cached) " >&6
27397
28020
else
27398
 
  am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
 
28021
  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
27399
28022
fi
27400
28023
{ $as_echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
27401
28024
$as_echo "$am_cv_python_version" >&6; }
27414
28037
if test "${am_cv_python_platform+set}" = set; then
27415
28038
  $as_echo_n "(cached) " >&6
27416
28039
else
27417
 
  am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
 
28040
  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
27418
28041
fi
27419
28042
{ $as_echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
27420
28043
$as_echo "$am_cv_python_platform" >&6; }
27441
28064
       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
27442
28065
       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
27443
28066
       ;;
 
28067
     *)
 
28068
       case $am_py_prefix in
 
28069
         /usr|/System*) ;;
 
28070
         *)
 
28071
          am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
 
28072
          ;;
 
28073
       esac
 
28074
       ;;
27444
28075
     esac
27445
28076
 
27446
28077
fi
27471
28102
       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
27472
28103
       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
27473
28104
       ;;
 
28105
     *)
 
28106
       case $am_py_exec_prefix in
 
28107
         /usr|/System*) ;;
 
28108
         *)
 
28109
           am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
 
28110
           ;;
 
28111
       esac
 
28112
       ;;
27474
28113
     esac
27475
28114
 
27476
28115
fi
27491
28130
  { $as_echo "$as_me:$LINENO: checking whether $PYTHON version >= $PYTHON_REQUIRED" >&5
27492
28131
$as_echo_n "checking whether $PYTHON version >= $PYTHON_REQUIRED... " >&6; }
27493
28132
  HAVE_PYTHON_REQUIRED=no
27494
 
  prog="import sys, string
 
28133
  prog="import sys
27495
28134
# split strings by '.' and convert to numeric.  Append some zeros
27496
28135
# because we need at least 4 digits for the hex conversion.
27497
 
minver = map(int, string.split('$PYTHON_REQUIRED', '.')) + [0, 0, 0]
 
28136
# map returns an iterator in Python 3.0 and a list in 2.x
 
28137
minver = list(map(int, '$PYTHON_REQUIRED'.split('.'))) + [0, 0, 0]
27498
28138
minverhex = 0
27499
 
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
 
28139
# xrange is not present in Python 3.0 and range returns an iterator
 
28140
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
27500
28141
sys.exit(sys.hexversion < minverhex)"
27501
28142
  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
27502
28143
   ($PYTHON -c "$prog") >&5 2>&5
27590
28231
if test "x$enable_plugin" = "xyes"; then
27591
28232
 
27592
28233
pkg_failed=no
27593
 
{ $as_echo "$as_me:$LINENO: checking for NSPR" >&5
27594
 
$as_echo_n "checking for NSPR... " >&6; }
27595
 
 
27596
 
if test -n "$PKG_CONFIG"; then
27597
 
    if test -n "$NSPR_CFLAGS"; then
27598
 
        pkg_cv_NSPR_CFLAGS="$NSPR_CFLAGS"
27599
 
    else
27600
 
        if test -n "$PKG_CONFIG" && \
27601
 
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"nspr >= \$NSPR_REQUIRED\"") >&5
27602
 
  ($PKG_CONFIG --exists --print-errors "nspr >= $NSPR_REQUIRED") 2>&5
27603
 
  ac_status=$?
27604
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27605
 
  (exit $ac_status); }; then
27606
 
  pkg_cv_NSPR_CFLAGS=`$PKG_CONFIG --cflags "nspr >= $NSPR_REQUIRED" 2>/dev/null`
27607
 
else
27608
 
  pkg_failed=yes
27609
 
fi
27610
 
    fi
27611
 
else
27612
 
        pkg_failed=untried
27613
 
fi
27614
 
if test -n "$PKG_CONFIG"; then
27615
 
    if test -n "$NSPR_LIBS"; then
27616
 
        pkg_cv_NSPR_LIBS="$NSPR_LIBS"
27617
 
    else
27618
 
        if test -n "$PKG_CONFIG" && \
27619
 
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"nspr >= \$NSPR_REQUIRED\"") >&5
27620
 
  ($PKG_CONFIG --exists --print-errors "nspr >= $NSPR_REQUIRED") 2>&5
27621
 
  ac_status=$?
27622
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27623
 
  (exit $ac_status); }; then
27624
 
  pkg_cv_NSPR_LIBS=`$PKG_CONFIG --libs "nspr >= $NSPR_REQUIRED" 2>/dev/null`
27625
 
else
27626
 
  pkg_failed=yes
27627
 
fi
27628
 
    fi
27629
 
else
27630
 
        pkg_failed=untried
27631
 
fi
27632
 
 
27633
 
 
27634
 
 
27635
 
if test $pkg_failed = yes; then
27636
 
 
27637
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27638
 
        _pkg_short_errors_supported=yes
27639
 
else
27640
 
        _pkg_short_errors_supported=no
27641
 
fi
27642
 
        if test $_pkg_short_errors_supported = yes; then
27643
 
                NSPR_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "nspr >= $NSPR_REQUIRED"`
27644
 
        else
27645
 
                NSPR_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "nspr >= $NSPR_REQUIRED"`
27646
 
        fi
27647
 
        # Put the nasty error message in config.log where it belongs
27648
 
        echo "$NSPR_PKG_ERRORS" >&5
27649
 
 
27650
 
        { { $as_echo "$as_me:$LINENO: error: Package requirements (nspr >= $NSPR_REQUIRED) were not met:
27651
 
 
27652
 
$NSPR_PKG_ERRORS
27653
 
 
27654
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
27655
 
installed software in a non-standard prefix.
27656
 
 
27657
 
Alternatively, you may set the environment variables NSPR_CFLAGS
27658
 
and NSPR_LIBS to avoid the need to call pkg-config.
27659
 
See the pkg-config man page for more details.
27660
 
" >&5
27661
 
$as_echo "$as_me: error: Package requirements (nspr >= $NSPR_REQUIRED) were not met:
27662
 
 
27663
 
$NSPR_PKG_ERRORS
27664
 
 
27665
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
27666
 
installed software in a non-standard prefix.
27667
 
 
27668
 
Alternatively, you may set the environment variables NSPR_CFLAGS
27669
 
and NSPR_LIBS to avoid the need to call pkg-config.
27670
 
See the pkg-config man page for more details.
27671
 
" >&2;}
27672
 
   { (exit 1); exit 1; }; }
27673
 
elif test $pkg_failed = untried; then
27674
 
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27675
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27676
 
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
27677
 
is in your PATH or set the PKG_CONFIG environment variable to the full
27678
 
path to pkg-config.
27679
 
 
27680
 
Alternatively, you may set the environment variables NSPR_CFLAGS
27681
 
and NSPR_LIBS to avoid the need to call pkg-config.
27682
 
See the pkg-config man page for more details.
27683
 
 
27684
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
27685
 
See \`config.log' for more details." >&5
27686
 
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
27687
 
is in your PATH or set the PKG_CONFIG environment variable to the full
27688
 
path to pkg-config.
27689
 
 
27690
 
Alternatively, you may set the environment variables NSPR_CFLAGS
27691
 
and NSPR_LIBS to avoid the need to call pkg-config.
27692
 
See the pkg-config man page for more details.
27693
 
 
27694
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
27695
 
See \`config.log' for more details." >&2;}
27696
 
   { (exit 1); exit 1; }; }; }
27697
 
else
27698
 
        NSPR_CFLAGS=$pkg_cv_NSPR_CFLAGS
27699
 
        NSPR_LIBS=$pkg_cv_NSPR_LIBS
27700
 
        { $as_echo "$as_me:$LINENO: result: yes" >&5
27701
 
$as_echo "yes" >&6; }
27702
 
        :
27703
 
fi
27704
 
 
27705
 
pkg_failed=no
27706
28234
{ $as_echo "$as_me:$LINENO: checking for FIREFOX_PLUGIN" >&5
27707
28235
$as_echo_n "checking for FIREFOX_PLUGIN... " >&6; }
27708
28236
 
27709
 
if test -n "$PKG_CONFIG"; then
27710
 
    if test -n "$FIREFOX_PLUGIN_CFLAGS"; then
27711
 
        pkg_cv_FIREFOX_PLUGIN_CFLAGS="$FIREFOX_PLUGIN_CFLAGS"
27712
 
    else
27713
 
        if test -n "$PKG_CONFIG" && \
 
28237
if test -n "$FIREFOX_PLUGIN_CFLAGS"; then
 
28238
    pkg_cv_FIREFOX_PLUGIN_CFLAGS="$FIREFOX_PLUGIN_CFLAGS"
 
28239
 elif test -n "$PKG_CONFIG"; then
 
28240
    if test -n "$PKG_CONFIG" && \
27714
28241
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"firefox-plugin >= \$FIREFOX_PLUGIN_REQUIRED\"") >&5
27715
28242
  ($PKG_CONFIG --exists --print-errors "firefox-plugin >= $FIREFOX_PLUGIN_REQUIRED") 2>&5
27716
28243
  ac_status=$?
27720
28247
else
27721
28248
  pkg_failed=yes
27722
28249
fi
27723
 
    fi
27724
 
else
27725
 
        pkg_failed=untried
 
28250
 else
 
28251
    pkg_failed=untried
27726
28252
fi
27727
 
if test -n "$PKG_CONFIG"; then
27728
 
    if test -n "$FIREFOX_PLUGIN_LIBS"; then
27729
 
        pkg_cv_FIREFOX_PLUGIN_LIBS="$FIREFOX_PLUGIN_LIBS"
27730
 
    else
27731
 
        if test -n "$PKG_CONFIG" && \
 
28253
if test -n "$FIREFOX_PLUGIN_LIBS"; then
 
28254
    pkg_cv_FIREFOX_PLUGIN_LIBS="$FIREFOX_PLUGIN_LIBS"
 
28255
 elif test -n "$PKG_CONFIG"; then
 
28256
    if test -n "$PKG_CONFIG" && \
27732
28257
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"firefox-plugin >= \$FIREFOX_PLUGIN_REQUIRED\"") >&5
27733
28258
  ($PKG_CONFIG --exists --print-errors "firefox-plugin >= $FIREFOX_PLUGIN_REQUIRED") 2>&5
27734
28259
  ac_status=$?
27738
28263
else
27739
28264
  pkg_failed=yes
27740
28265
fi
27741
 
    fi
27742
 
else
27743
 
        pkg_failed=untried
 
28266
 else
 
28267
    pkg_failed=untried
27744
28268
fi
27745
28269
 
27746
28270
 
27753
28277
        _pkg_short_errors_supported=no
27754
28278
fi
27755
28279
        if test $_pkg_short_errors_supported = yes; then
27756
 
                FIREFOX_PLUGIN_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "firefox-plugin >= $FIREFOX_PLUGIN_REQUIRED"`
 
28280
                FIREFOX_PLUGIN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "firefox-plugin >= $FIREFOX_PLUGIN_REQUIRED" 2>&1`
27757
28281
        else
27758
 
                FIREFOX_PLUGIN_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "firefox-plugin >= $FIREFOX_PLUGIN_REQUIRED"`
 
28282
                FIREFOX_PLUGIN_PKG_ERRORS=`$PKG_CONFIG --print-errors "firefox-plugin >= $FIREFOX_PLUGIN_REQUIRED" 2>&1`
27759
28283
        fi
27760
28284
        # Put the nasty error message in config.log where it belongs
27761
28285
        echo "$FIREFOX_PLUGIN_PKG_ERRORS" >&5
27768
28292
{ $as_echo "$as_me:$LINENO: checking for MOZILLA_PLUGIN" >&5
27769
28293
$as_echo_n "checking for MOZILLA_PLUGIN... " >&6; }
27770
28294
 
27771
 
if test -n "$PKG_CONFIG"; then
27772
 
    if test -n "$MOZILLA_PLUGIN_CFLAGS"; then
27773
 
        pkg_cv_MOZILLA_PLUGIN_CFLAGS="$MOZILLA_PLUGIN_CFLAGS"
27774
 
    else
27775
 
        if test -n "$PKG_CONFIG" && \
 
28295
if test -n "$MOZILLA_PLUGIN_CFLAGS"; then
 
28296
    pkg_cv_MOZILLA_PLUGIN_CFLAGS="$MOZILLA_PLUGIN_CFLAGS"
 
28297
 elif test -n "$PKG_CONFIG"; then
 
28298
    if test -n "$PKG_CONFIG" && \
27776
28299
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mozilla-plugin >= \$MOZILLA_PLUGIN_REQUIRED\"") >&5
27777
28300
  ($PKG_CONFIG --exists --print-errors "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED") 2>&5
27778
28301
  ac_status=$?
27782
28305
else
27783
28306
  pkg_failed=yes
27784
28307
fi
27785
 
    fi
27786
 
else
27787
 
        pkg_failed=untried
 
28308
 else
 
28309
    pkg_failed=untried
27788
28310
fi
27789
 
if test -n "$PKG_CONFIG"; then
27790
 
    if test -n "$MOZILLA_PLUGIN_LIBS"; then
27791
 
        pkg_cv_MOZILLA_PLUGIN_LIBS="$MOZILLA_PLUGIN_LIBS"
27792
 
    else
27793
 
        if test -n "$PKG_CONFIG" && \
 
28311
if test -n "$MOZILLA_PLUGIN_LIBS"; then
 
28312
    pkg_cv_MOZILLA_PLUGIN_LIBS="$MOZILLA_PLUGIN_LIBS"
 
28313
 elif test -n "$PKG_CONFIG"; then
 
28314
    if test -n "$PKG_CONFIG" && \
27794
28315
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mozilla-plugin >= \$MOZILLA_PLUGIN_REQUIRED\"") >&5
27795
28316
  ($PKG_CONFIG --exists --print-errors "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED") 2>&5
27796
28317
  ac_status=$?
27800
28321
else
27801
28322
  pkg_failed=yes
27802
28323
fi
27803
 
    fi
27804
 
else
27805
 
        pkg_failed=untried
 
28324
 else
 
28325
    pkg_failed=untried
27806
28326
fi
27807
28327
 
27808
28328
 
27815
28335
        _pkg_short_errors_supported=no
27816
28336
fi
27817
28337
        if test $_pkg_short_errors_supported = yes; then
27818
 
                MOZILLA_PLUGIN_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED"`
 
28338
                MOZILLA_PLUGIN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED" 2>&1`
27819
28339
        else
27820
 
                MOZILLA_PLUGIN_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED"`
 
28340
                MOZILLA_PLUGIN_PKG_ERRORS=`$PKG_CONFIG --print-errors "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED" 2>&1`
27821
28341
        fi
27822
28342
        # Put the nasty error message in config.log where it belongs
27823
28343
        echo "$MOZILLA_PLUGIN_PKG_ERRORS" >&5
27886
28406
{ $as_echo "$as_me:$LINENO: checking for MOZILLA_PLUGIN" >&5
27887
28407
$as_echo_n "checking for MOZILLA_PLUGIN... " >&6; }
27888
28408
 
27889
 
if test -n "$PKG_CONFIG"; then
27890
 
    if test -n "$MOZILLA_PLUGIN_CFLAGS"; then
27891
 
        pkg_cv_MOZILLA_PLUGIN_CFLAGS="$MOZILLA_PLUGIN_CFLAGS"
27892
 
    else
27893
 
        if test -n "$PKG_CONFIG" && \
 
28409
if test -n "$MOZILLA_PLUGIN_CFLAGS"; then
 
28410
    pkg_cv_MOZILLA_PLUGIN_CFLAGS="$MOZILLA_PLUGIN_CFLAGS"
 
28411
 elif test -n "$PKG_CONFIG"; then
 
28412
    if test -n "$PKG_CONFIG" && \
27894
28413
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mozilla-plugin >= \$MOZILLA_PLUGIN_REQUIRED\"") >&5
27895
28414
  ($PKG_CONFIG --exists --print-errors "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED") 2>&5
27896
28415
  ac_status=$?
27900
28419
else
27901
28420
  pkg_failed=yes
27902
28421
fi
27903
 
    fi
27904
 
else
27905
 
        pkg_failed=untried
 
28422
 else
 
28423
    pkg_failed=untried
27906
28424
fi
27907
 
if test -n "$PKG_CONFIG"; then
27908
 
    if test -n "$MOZILLA_PLUGIN_LIBS"; then
27909
 
        pkg_cv_MOZILLA_PLUGIN_LIBS="$MOZILLA_PLUGIN_LIBS"
27910
 
    else
27911
 
        if test -n "$PKG_CONFIG" && \
 
28425
if test -n "$MOZILLA_PLUGIN_LIBS"; then
 
28426
    pkg_cv_MOZILLA_PLUGIN_LIBS="$MOZILLA_PLUGIN_LIBS"
 
28427
 elif test -n "$PKG_CONFIG"; then
 
28428
    if test -n "$PKG_CONFIG" && \
27912
28429
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mozilla-plugin >= \$MOZILLA_PLUGIN_REQUIRED\"") >&5
27913
28430
  ($PKG_CONFIG --exists --print-errors "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED") 2>&5
27914
28431
  ac_status=$?
27918
28435
else
27919
28436
  pkg_failed=yes
27920
28437
fi
27921
 
    fi
27922
 
else
27923
 
        pkg_failed=untried
 
28438
 else
 
28439
    pkg_failed=untried
27924
28440
fi
27925
28441
 
27926
28442
 
27933
28449
        _pkg_short_errors_supported=no
27934
28450
fi
27935
28451
        if test $_pkg_short_errors_supported = yes; then
27936
 
                MOZILLA_PLUGIN_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED"`
 
28452
                MOZILLA_PLUGIN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED" 2>&1`
27937
28453
        else
27938
 
                MOZILLA_PLUGIN_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED"`
 
28454
                MOZILLA_PLUGIN_PKG_ERRORS=`$PKG_CONFIG --print-errors "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED" 2>&1`
27939
28455
        fi
27940
28456
        # Put the nasty error message in config.log where it belongs
27941
28457
        echo "$MOZILLA_PLUGIN_PKG_ERRORS" >&5
28096
28612
fi
28097
28613
 
28098
28614
 
28099
 
ac_config_files="$ac_config_files Makefile gnulib/lib/Makefile gnulib/tests/Makefile src/Makefile examples/Makefile plugin/Makefile po/Makefile.in gtk-vnc-1.0.pc gtk-vnc.spec mingw32-gtk-vnc.spec"
 
28615
# Check whether --enable-introspection was given.
 
28616
if test "${enable_introspection+set}" = set; then
 
28617
  enableval=$enable_introspection;
 
28618
else
 
28619
  enable_introspection=check
 
28620
fi
 
28621
 
 
28622
 
 
28623
if test "x$enable_introspection" != "xno" ; then
 
28624
 
 
28625
pkg_failed=no
 
28626
{ $as_echo "$as_me:$LINENO: checking for GOBJECT_INTROSPECTION" >&5
 
28627
$as_echo_n "checking for GOBJECT_INTROSPECTION... " >&6; }
 
28628
 
 
28629
if test -n "$GOBJECT_INTROSPECTION_CFLAGS"; then
 
28630
    pkg_cv_GOBJECT_INTROSPECTION_CFLAGS="$GOBJECT_INTROSPECTION_CFLAGS"
 
28631
 elif test -n "$PKG_CONFIG"; then
 
28632
    if test -n "$PKG_CONFIG" && \
 
28633
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= \$GOBJECT_INTROSPECTION_REQUIRED\"") >&5
 
28634
  ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED") 2>&5
 
28635
  ac_status=$?
 
28636
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28637
  (exit $ac_status); }; then
 
28638
  pkg_cv_GOBJECT_INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags "gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED" 2>/dev/null`
 
28639
else
 
28640
  pkg_failed=yes
 
28641
fi
 
28642
 else
 
28643
    pkg_failed=untried
 
28644
fi
 
28645
if test -n "$GOBJECT_INTROSPECTION_LIBS"; then
 
28646
    pkg_cv_GOBJECT_INTROSPECTION_LIBS="$GOBJECT_INTROSPECTION_LIBS"
 
28647
 elif test -n "$PKG_CONFIG"; then
 
28648
    if test -n "$PKG_CONFIG" && \
 
28649
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= \$GOBJECT_INTROSPECTION_REQUIRED\"") >&5
 
28650
  ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED") 2>&5
 
28651
  ac_status=$?
 
28652
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28653
  (exit $ac_status); }; then
 
28654
  pkg_cv_GOBJECT_INTROSPECTION_LIBS=`$PKG_CONFIG --libs "gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED" 2>/dev/null`
 
28655
else
 
28656
  pkg_failed=yes
 
28657
fi
 
28658
 else
 
28659
    pkg_failed=untried
 
28660
fi
 
28661
 
 
28662
 
 
28663
 
 
28664
if test $pkg_failed = yes; then
 
28665
 
 
28666
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
28667
        _pkg_short_errors_supported=yes
 
28668
else
 
28669
        _pkg_short_errors_supported=no
 
28670
fi
 
28671
        if test $_pkg_short_errors_supported = yes; then
 
28672
                GOBJECT_INTROSPECTION_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED" 2>&1`
 
28673
        else
 
28674
                GOBJECT_INTROSPECTION_PKG_ERRORS=`$PKG_CONFIG --print-errors "gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED" 2>&1`
 
28675
        fi
 
28676
        # Put the nasty error message in config.log where it belongs
 
28677
        echo "$GOBJECT_INTROSPECTION_PKG_ERRORS" >&5
 
28678
 
 
28679
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
28680
$as_echo "no" >&6; }
 
28681
 
 
28682
                             if test "x$enable_introspection" = "xcheck"; then
 
28683
                               enable_introspection=no
 
28684
                             else
 
28685
                               { { $as_echo "$as_me:$LINENO: error: gobject-introspection is not available" >&5
 
28686
$as_echo "$as_me: error: gobject-introspection is not available" >&2;}
 
28687
   { (exit 1); exit 1; }; }
 
28688
                             fi
 
28689
 
 
28690
elif test $pkg_failed = untried; then
 
28691
 
 
28692
                             if test "x$enable_introspection" = "xcheck"; then
 
28693
                               enable_introspection=no
 
28694
                             else
 
28695
                               { { $as_echo "$as_me:$LINENO: error: gobject-introspection is not available" >&5
 
28696
$as_echo "$as_me: error: gobject-introspection is not available" >&2;}
 
28697
   { (exit 1); exit 1; }; }
 
28698
                             fi
 
28699
 
 
28700
else
 
28701
        GOBJECT_INTROSPECTION_CFLAGS=$pkg_cv_GOBJECT_INTROSPECTION_CFLAGS
 
28702
        GOBJECT_INTROSPECTION_LIBS=$pkg_cv_GOBJECT_INTROSPECTION_LIBS
 
28703
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
28704
$as_echo "yes" >&6; }
 
28705
        enable_introspection=yes
 
28706
fi
 
28707
        if test "x$enable_introspection" = "xyes" ; then
 
28708
 
 
28709
cat >>confdefs.h <<\_ACEOF
 
28710
#define WITH_GOBJECT_INTROSPECTION 1
 
28711
_ACEOF
 
28712
 
 
28713
 
 
28714
 
 
28715
          G_IR_SCANNER=$($PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0)
 
28716
 
 
28717
          G_IR_COMPILER=$($PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0)
 
28718
 
 
28719
        fi
 
28720
fi
 
28721
 if test "x$enable_introspection" = "xyes"; then
 
28722
  WITH_GOBJECT_INTROSPECTION_TRUE=
 
28723
  WITH_GOBJECT_INTROSPECTION_FALSE='#'
 
28724
else
 
28725
  WITH_GOBJECT_INTROSPECTION_TRUE='#'
 
28726
  WITH_GOBJECT_INTROSPECTION_FALSE=
 
28727
fi
 
28728
 
 
28729
 
 
28730
ac_config_files="$ac_config_files Makefile gnulib/lib/Makefile gnulib/tests/Makefile src/Makefile tools/Makefile examples/Makefile plugin/Makefile po/Makefile.in gvnc-1.0.pc gtk-vnc-1.0.pc gtk-vnc-2.0.pc gtk-vnc.spec mingw32-gtk-vnc.spec"
28100
28731
 
28101
28732
 
28102
28733
cat >confcache <<\_ACEOF
28196
28827
LTLIBOBJS=$ac_ltlibobjs
28197
28828
 
28198
28829
 
 
28830
 if test -n "$EXEEXT"; then
 
28831
  am__EXEEXT_TRUE=
 
28832
  am__EXEEXT_FALSE='#'
 
28833
else
 
28834
  am__EXEEXT_TRUE='#'
 
28835
  am__EXEEXT_FALSE=
 
28836
fi
 
28837
 
28199
28838
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28200
28839
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28201
28840
Usually this means the macro was only invoked conditionally." >&5
28210
28849
Usually this means the macro was only invoked conditionally." >&2;}
28211
28850
   { (exit 1); exit 1; }; }
28212
28851
fi
 
28852
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
28853
  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 
28854
Usually this means the macro was only invoked conditionally." >&5
 
28855
$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 
28856
Usually this means the macro was only invoked conditionally." >&2;}
 
28857
   { (exit 1); exit 1; }; }
 
28858
fi
28213
28859
if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
28214
28860
  { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
28215
28861
Usually this means the macro was only invoked conditionally." >&5
28253
28899
  ac_config_commands="$ac_config_commands po/stamp-it"
28254
28900
 
28255
28901
 
 
28902
if test -z "${HAVE_GTK_2_TRUE}" && test -z "${HAVE_GTK_2_FALSE}"; then
 
28903
  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GTK_2\" was never defined.
 
28904
Usually this means the macro was only invoked conditionally." >&5
 
28905
$as_echo "$as_me: error: conditional \"HAVE_GTK_2\" was never defined.
 
28906
Usually this means the macro was only invoked conditionally." >&2;}
 
28907
   { (exit 1); exit 1; }; }
 
28908
fi
 
28909
if test -z "${HAVE_GTK_3_TRUE}" && test -z "${HAVE_GTK_3_FALSE}"; then
 
28910
  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GTK_3\" was never defined.
 
28911
Usually this means the macro was only invoked conditionally." >&5
 
28912
$as_echo "$as_me: error: conditional \"HAVE_GTK_3\" was never defined.
 
28913
Usually this means the macro was only invoked conditionally." >&2;}
 
28914
   { (exit 1); exit 1; }; }
 
28915
fi
 
28916
if test -z "${USE_VERSION_DEFS_TRUE}" && test -z "${USE_VERSION_DEFS_FALSE}"; then
 
28917
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_VERSION_DEFS\" was never defined.
 
28918
Usually this means the macro was only invoked conditionally." >&5
 
28919
$as_echo "$as_me: error: conditional \"USE_VERSION_DEFS\" was never defined.
 
28920
Usually this means the macro was only invoked conditionally." >&2;}
 
28921
   { (exit 1); exit 1; }; }
 
28922
fi
28256
28923
if test -z "${HAVE_SASL_TRUE}" && test -z "${HAVE_SASL_FALSE}"; then
28257
28924
  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SASL\" was never defined.
28258
28925
Usually this means the macro was only invoked conditionally." >&5
28288
28955
Usually this means the macro was only invoked conditionally." >&2;}
28289
28956
   { (exit 1); exit 1; }; }
28290
28957
fi
 
28958
if test -z "${WITH_GOBJECT_INTROSPECTION_TRUE}" && test -z "${WITH_GOBJECT_INTROSPECTION_FALSE}"; then
 
28959
  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_GOBJECT_INTROSPECTION\" was never defined.
 
28960
Usually this means the macro was only invoked conditionally." >&5
 
28961
$as_echo "$as_me: error: conditional \"WITH_GOBJECT_INTROSPECTION\" was never defined.
 
28962
Usually this means the macro was only invoked conditionally." >&2;}
 
28963
   { (exit 1); exit 1; }; }
 
28964
fi
28291
28965
 
28292
28966
: ${CONFIG_STATUS=./config.status}
28293
28967
ac_write_fail=0
28610
29284
# report actual input values of CONFIG_FILES etc. instead of their
28611
29285
# values after options handling.
28612
29286
ac_log="
28613
 
This file was extended by gtk-vnc $as_me 0.3.10, which was
 
29287
This file was extended by gtk-vnc $as_me 0.4.1, which was
28614
29288
generated by GNU Autoconf 2.63.  Invocation command line was
28615
29289
 
28616
29290
  CONFIG_FILES    = $CONFIG_FILES
28673
29347
_ACEOF
28674
29348
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28675
29349
ac_cs_version="\\
28676
 
gtk-vnc config.status 0.3.10
 
29350
gtk-vnc config.status 0.4.1
28677
29351
configured by $0, generated by GNU Autoconf 2.63,
28678
29352
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28679
29353
 
28796
29470
sed_quote_subst='$sed_quote_subst'
28797
29471
double_quote_subst='$double_quote_subst'
28798
29472
delay_variable_subst='$delay_variable_subst'
 
29473
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
 
29474
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
28799
29475
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
28800
29476
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
28801
29477
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
28802
 
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
28803
 
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
 
29478
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
28804
29479
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
28805
 
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
28806
29480
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
28807
29481
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
28808
29482
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
29061
29735
    "gnulib/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/lib/Makefile" ;;
29062
29736
    "gnulib/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/tests/Makefile" ;;
29063
29737
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
29738
    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
29064
29739
    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
29065
29740
    "plugin/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/Makefile" ;;
29066
29741
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 
29742
    "gvnc-1.0.pc") CONFIG_FILES="$CONFIG_FILES gvnc-1.0.pc" ;;
29067
29743
    "gtk-vnc-1.0.pc") CONFIG_FILES="$CONFIG_FILES gtk-vnc-1.0.pc" ;;
 
29744
    "gtk-vnc-2.0.pc") CONFIG_FILES="$CONFIG_FILES gtk-vnc-2.0.pc" ;;
29068
29745
    "gtk-vnc.spec") CONFIG_FILES="$CONFIG_FILES gtk-vnc.spec" ;;
29069
29746
    "mingw32-gtk-vnc.spec") CONFIG_FILES="$CONFIG_FILES mingw32-gtk-vnc.spec" ;;
29070
29747
    "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
29910
30587
 
29911
30588
# ### BEGIN LIBTOOL CONFIG
29912
30589
 
 
30590
# Which release of libtool.m4 was used?
 
30591
macro_version=$macro_version
 
30592
macro_revision=$macro_revision
 
30593
 
29913
30594
# Assembler program.
29914
30595
AS=$AS
29915
30596
 
29919
30600
# Object dumper program.
29920
30601
OBJDUMP=$OBJDUMP
29921
30602
 
29922
 
# Which release of libtool.m4 was used?
29923
 
macro_version=$macro_version
29924
 
macro_revision=$macro_revision
 
30603
# Whether or not to build static libraries.
 
30604
build_old_libs=$enable_static
29925
30605
 
29926
30606
# Whether or not to build shared libraries.
29927
30607
build_libtool_libs=$enable_shared
29928
30608
 
29929
 
# Whether or not to build static libraries.
29930
 
build_old_libs=$enable_static
29931
 
 
29932
30609
# What type of objects to build.
29933
30610
pic_mode=$pic_mode
29934
30611
 
30576
31253
 
30577
31254
        Compiler ...................:  ${CC}
30578
31255
        Compiler Flags .............:  ${CFLAGS}
 
31256
        Extra Link Flags ...........:  ${VERSION_SCRIPT_FLAGS} ${NO_UNDEFINED_FLAGS}
30579
31257
        Prefix......................:  ${prefix}
30580
31258
 
30581
31259
        Python binding .............:  ${WITH_PYTHON}
30583
31261
        Browser plugin .............:  ${enable_plugin}
30584
31262
        Scaling support.............:  ${with_scaling}
30585
31263
        SASL support................:  ${enable_sasl}
 
31264
        GTK+ version................:  ${GTK_API_VERSION}
30586
31265
"