~ubuntu-branches/debian/jessie/liblouis/jessie

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Thibault
  • Date: 2010-01-12 23:48:47 UTC
  • mto: (1.1.4 upstream) (5.2.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20100112234847-ph9xdk3lrjdox6ks
ImportĀ upstreamĀ versionĀ 1.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.59 for liblouis 1.7.0.
 
3
# Generated by GNU Autoconf 2.59 for liblouis 1.8.0.
4
4
#
5
5
# Report bugs to <john.boyer@abilitiessoft.com>.
6
6
#
423
423
# Identity of this package.
424
424
PACKAGE_NAME='liblouis'
425
425
PACKAGE_TARNAME='liblouis'
426
 
PACKAGE_VERSION='1.7.0'
427
 
PACKAGE_STRING='liblouis 1.7.0'
 
426
PACKAGE_VERSION='1.8.0'
 
427
PACKAGE_STRING='liblouis 1.8.0'
428
428
PACKAGE_BUGREPORT='john.boyer@abilitiessoft.com'
429
429
 
430
430
ac_unique_file="liblouis/lou_backTranslateString.c"
465
465
# include <unistd.h>
466
466
#endif"
467
467
 
468
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S CPP EGREP LIBOBJS LIBLOUIS_CURRENT LIBLOUIS_REVISION LIBLOUIS_AGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os SED ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG LTLIBOBJS'
 
468
gl_getopt_required=POSIX
 
469
gl_header_list=
 
470
gl_getopt_required=POSIX
 
471
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os CPP EGREP GL_COND_LIBTOOL_TRUE GL_COND_LIBTOOL_FALSE GNULIB_CHOWN GNULIB_CLOSE GNULIB_DUP2 GNULIB_DUP3 GNULIB_ENVIRON GNULIB_EUIDACCESS GNULIB_FACCESSAT GNULIB_FCHDIR GNULIB_FCHOWNAT GNULIB_FSYNC GNULIB_FTRUNCATE GNULIB_GETCWD GNULIB_GETDOMAINNAME GNULIB_GETDTABLESIZE GNULIB_GETHOSTNAME GNULIB_GETLOGIN_R GNULIB_GETPAGESIZE GNULIB_GETUSERSHELL GNULIB_LCHOWN GNULIB_LINK GNULIB_LINKAT GNULIB_LSEEK GNULIB_PIPE2 GNULIB_READLINK GNULIB_READLINKAT GNULIB_RMDIR GNULIB_SLEEP GNULIB_SYMLINK GNULIB_SYMLINKAT GNULIB_UNISTD_H_GETOPT GNULIB_UNISTD_H_SIGPIPE GNULIB_UNLINK GNULIB_UNLINKAT GNULIB_WRITE HAVE_DUP2 HAVE_DUP3 HAVE_EUIDACCESS HAVE_FACCESSAT HAVE_FCHOWNAT HAVE_FSYNC HAVE_FTRUNCATE HAVE_GETDOMAINNAME HAVE_GETDTABLESIZE HAVE_GETHOSTNAME HAVE_GETPAGESIZE HAVE_GETUSERSHELL HAVE_LINK HAVE_LINKAT HAVE_PIPE2 HAVE_READLINK HAVE_READLINKAT HAVE_SLEEP HAVE_SYMLINK HAVE_SYMLINKAT HAVE_DECL_ENVIRON HAVE_DECL_GETLOGIN_R HAVE_OS_H HAVE_SYS_PARAM_H HAVE_UNLINKAT REPLACE_CHOWN REPLACE_CLOSE REPLACE_DUP REPLACE_DUP2 REPLACE_FCHDIR REPLACE_FCHOWNAT REPLACE_GETCWD REPLACE_GETPAGESIZE REPLACE_LCHOWN REPLACE_LINK REPLACE_LINKAT REPLACE_LSEEK REPLACE_READLINK REPLACE_RMDIR REPLACE_SYMLINK REPLACE_UNLINK REPLACE_UNLINKAT REPLACE_WRITE UNISTD_H_HAVE_WINSOCK2_H UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS INCLUDE_NEXT INCLUDE_NEXT_AS_FIRST_DIRECTIVE PRAGMA_SYSTEM_HEADER NEXT_GETOPT_H NEXT_AS_FIRST_DIRECTIVE_GETOPT_H HAVE_GETOPT_H GETOPT_H LIBINTL LTLIBINTL STDARG_H NEXT_STDARG_H NEXT_AS_FIRST_DIRECTIVE_STDARG_H REPLACE_NULL HAVE_WCHAR_T STDDEF_H NEXT_STDDEF_H NEXT_AS_FIRST_DIRECTIVE_STDDEF_H NEXT_UNISTD_H NEXT_AS_FIRST_DIRECTIVE_UNISTD_H HAVE_UNISTD_H LN_S LIBOBJS LIBLOUIS_CURRENT LIBLOUIS_REVISION LIBLOUIS_AGE SED ECHO AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL HELP2MAN HAVE_HELP2MAN_TRUE HAVE_HELP2MAN_FALSE PKG_CONFIG WIDECHAR_TYPE LTLIBOBJS gl_LIBOBJS gl_LTLIBOBJS gltests_LIBOBJS gltests_LTLIBOBJS'
469
472
ac_subst_files=''
470
473
 
471
474
# Initialize some variables set by options.
954
957
  # Omit some internal or obsolete options to make the list less imposing.
955
958
  # This message is too long to be a string in the A/UX 3.1 sh.
956
959
  cat <<_ACEOF
957
 
\`configure' configures liblouis 1.7.0 to adapt to many kinds of systems.
 
960
\`configure' configures liblouis 1.8.0 to adapt to many kinds of systems.
958
961
 
959
962
Usage: $0 [OPTION]... [VAR=VALUE]...
960
963
 
1020
1023
 
1021
1024
if test -n "$ac_init_help"; then
1022
1025
  case $ac_init_help in
1023
 
     short | recursive ) echo "Configuration of liblouis 1.7.0:";;
 
1026
     short | recursive ) echo "Configuration of liblouis 1.8.0:";;
1024
1027
   esac
1025
1028
  cat <<\_ACEOF
1026
1029
 
1041
1044
Optional Packages:
1042
1045
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1043
1046
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1047
  --with-packager         String identifying the packager of this software
 
1048
  --with-packager-version Packager-specific version information
 
1049
  --with-packager-bug-reports
 
1050
                          Packager info for bug reports (URL/e-mail/...)
1044
1051
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1045
1052
  --with-pic              try to use only PIC/non-PIC objects [default=use
1046
1053
                          both]
1160
1167
test -n "$ac_init_help" && exit 0
1161
1168
if $ac_init_version; then
1162
1169
  cat <<\_ACEOF
1163
 
liblouis configure 1.7.0
 
1170
liblouis configure 1.8.0
1164
1171
generated by GNU Autoconf 2.59
1165
1172
 
1166
1173
Copyright (C) 2003 Free Software Foundation, Inc.
1174
1181
This file contains any messages produced by compilers while
1175
1182
running configure, to aid debugging if configure makes a mistake.
1176
1183
 
1177
 
It was created by liblouis $as_me 1.7.0, which was
 
1184
It was created by liblouis $as_me 1.8.0, which was
1178
1185
generated by GNU Autoconf 2.59.  Invocation command line was
1179
1186
 
1180
1187
  $ $0 $@
1485
1492
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1486
1493
 
1487
1494
 
1488
 
 
1489
 
 
1490
 
 
1491
 
 
1492
 
 
1493
 
 
1494
 
 
1495
 
 
1496
 
 
1497
 
 
1498
 
 
1499
 
 
1500
 
 
1501
 
 
1502
 
 
1503
 
 
1504
 
 
1505
 
 
1506
 
 
1507
 
 
1508
 
 
1509
 
 
1510
 
 
1511
 
 
1512
 
 
1513
 
 
1514
 
am__api_version="1.9"
 
1495
gl_getopt_required=GNU
 
1496
gl_header_list="$gl_header_list getopt.h"
 
1497
gl_header_list="$gl_header_list stdarg.h"
 
1498
gl_header_list="$gl_header_list stddef.h"
 
1499
gl_header_list="$gl_header_list unistd.h"
 
1500
 
 
1501
 
 
1502
 
 
1503
 
 
1504
 
 
1505
 
 
1506
 
 
1507
 
 
1508
 
 
1509
 
 
1510
 
 
1511
 
 
1512
 
 
1513
 
 
1514
 
 
1515
 
 
1516
 
 
1517
 
 
1518
 
 
1519
 
 
1520
 
 
1521
 
 
1522
 
 
1523
 
 
1524
 
 
1525
 
 
1526
          ac_config_headers="$ac_config_headers liblouis/config.h"
 
1527
 
 
1528
 
1515
1529
ac_aux_dir=
1516
 
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1530
for ac_dir in build-aux $srcdir/build-aux; do
1517
1531
  if test -f $ac_dir/install-sh; then
1518
1532
    ac_aux_dir=$ac_dir
1519
1533
    ac_install_sh="$ac_aux_dir/install-sh -c"
1529
1543
  fi
1530
1544
done
1531
1545
if test -z "$ac_aux_dir"; then
1532
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1533
 
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1546
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux $srcdir/build-aux" >&5
 
1547
echo "$as_me: error: cannot find install-sh or install.sh in build-aux $srcdir/build-aux" >&2;}
1534
1548
   { (exit 1); exit 1; }; }
1535
1549
fi
1536
1550
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1537
1551
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1538
1552
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1539
1553
 
 
1554
case m4 in
 
1555
  [\\/]* | ?:[\\/]* ) ac_macro_dir=m4         ;;
 
1556
  *)                      ac_macro_dir=$srcdir/m4 ;;
 
1557
esac
 
1558
if test -d "$ac_macro_dir"; then :
 
1559
else
 
1560
  { { echo "$as_me:$LINENO: error: cannot find macro directory \`m4'" >&5
 
1561
echo "$as_me: error: cannot find macro directory \`m4'" >&2;}
 
1562
   { (exit 1); exit 1; }; }
 
1563
fi
 
1564
 
 
1565
am__api_version="1.9"
1540
1566
# Find a good install program.  We prefer a C program (faster),
1541
1567
# so one script is as good as another.  But avoid the broken or
1542
1568
# incompatible versions:
1818
1844
 
1819
1845
# Define the identity of the package.
1820
1846
 PACKAGE=liblouis
1821
 
 VERSION=1.7.0
 
1847
 VERSION=1.8.0
1822
1848
 
1823
1849
 
1824
1850
cat >>confdefs.h <<_ACEOF
1948
1974
 
1949
1975
 
1950
1976
 
1951
 
          ac_config_headers="$ac_config_headers liblouis/louiscfg.h"
1952
 
 
1953
 
# AM_MAINTAINER_MODE
1954
1977
 
1955
1978
# Checks for programs.
1956
1979
ac_ext=c
3057
3080
fi
3058
3081
 
3059
3082
 
3060
 
# Find a good install program.  We prefer a C program (faster),
3061
 
# so one script is as good as another.  But avoid the broken or
3062
 
# incompatible versions:
3063
 
# SysV /etc/install, /usr/sbin/install
3064
 
# SunOS /usr/etc/install
3065
 
# IRIX /sbin/install
3066
 
# AIX /bin/install
3067
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
3068
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3069
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3070
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3071
 
# OS/2's system install, which has a completely different semantic
3072
 
# ./install, which can be erroneously created by make from ./install.sh.
3073
 
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3074
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3075
 
if test -z "$INSTALL"; then
3076
 
if test "${ac_cv_path_install+set}" = set; then
3077
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3078
 
else
3079
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080
 
for as_dir in $PATH
3081
 
do
3082
 
  IFS=$as_save_IFS
3083
 
  test -z "$as_dir" && as_dir=.
3084
 
  # Account for people who put trailing slashes in PATH elements.
3085
 
case $as_dir/ in
3086
 
  ./ | .// | /cC/* | \
3087
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3088
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3089
 
  /usr/ucb/* ) ;;
3090
 
  *)
3091
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
3092
 
    # Don't use installbsd from OSF since it installs stuff as root
3093
 
    # by default.
3094
 
    for ac_prog in ginstall scoinst install; do
3095
 
      for ac_exec_ext in '' $ac_executable_extensions; do
3096
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3097
 
          if test $ac_prog = install &&
3098
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3099
 
            # AIX install.  It has an incompatible calling convention.
3100
 
            :
3101
 
          elif test $ac_prog = install &&
3102
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3103
 
            # program-specific install script used by HP pwplus--don't use.
3104
 
            :
3105
 
          else
3106
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3107
 
            break 3
3108
 
          fi
3109
 
        fi
3110
 
      done
3111
 
    done
3112
 
    ;;
3113
 
esac
3114
 
done
3115
 
 
3116
 
 
3117
 
fi
3118
 
  if test "${ac_cv_path_install+set}" = set; then
3119
 
    INSTALL=$ac_cv_path_install
3120
 
  else
3121
 
    # As a last resort, use the slow shell script.  We don't cache a
3122
 
    # path for INSTALL within a source directory, because that will
3123
 
    # break other packages using the cache if that directory is
3124
 
    # removed, or if the path is relative.
3125
 
    INSTALL=$ac_install_sh
3126
 
  fi
3127
 
fi
3128
 
echo "$as_me:$LINENO: result: $INSTALL" >&5
3129
 
echo "${ECHO_T}$INSTALL" >&6
3130
 
 
3131
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3132
 
# It thinks the first close brace ends the variable substitution.
3133
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3134
 
 
3135
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3136
 
 
3137
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3138
 
 
3139
 
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3140
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3141
 
LN_S=$as_ln_s
3142
 
if test "$LN_S" = "ln -s"; then
3143
 
  echo "$as_me:$LINENO: result: yes" >&5
3144
 
echo "${ECHO_T}yes" >&6
3145
 
else
3146
 
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3147
 
echo "${ECHO_T}no, using $LN_S" >&6
3148
 
fi
3149
 
 
3150
 
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3151
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3152
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3153
 
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3154
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3155
 
else
3156
 
  cat >conftest.make <<\_ACEOF
3157
 
all:
3158
 
        @echo 'ac_maketemp="$(MAKE)"'
 
3083
 
 
3084
# gnulib
 
3085
if test -n "$ac_tool_prefix"; then
 
3086
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
3087
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
3088
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3089
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3090
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
3091
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3092
else
 
3093
  if test -n "$RANLIB"; then
 
3094
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
3095
else
 
3096
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3097
for as_dir in $PATH
 
3098
do
 
3099
  IFS=$as_save_IFS
 
3100
  test -z "$as_dir" && as_dir=.
 
3101
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3102
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3103
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
3104
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3105
    break 2
 
3106
  fi
 
3107
done
 
3108
done
 
3109
 
 
3110
fi
 
3111
fi
 
3112
RANLIB=$ac_cv_prog_RANLIB
 
3113
if test -n "$RANLIB"; then
 
3114
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
3115
echo "${ECHO_T}$RANLIB" >&6
 
3116
else
 
3117
  echo "$as_me:$LINENO: result: no" >&5
 
3118
echo "${ECHO_T}no" >&6
 
3119
fi
 
3120
 
 
3121
fi
 
3122
if test -z "$ac_cv_prog_RANLIB"; then
 
3123
  ac_ct_RANLIB=$RANLIB
 
3124
  # Extract the first word of "ranlib", so it can be a program name with args.
 
3125
set dummy ranlib; ac_word=$2
 
3126
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3127
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3128
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
3129
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3130
else
 
3131
  if test -n "$ac_ct_RANLIB"; then
 
3132
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
3133
else
 
3134
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3135
for as_dir in $PATH
 
3136
do
 
3137
  IFS=$as_save_IFS
 
3138
  test -z "$as_dir" && as_dir=.
 
3139
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3140
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3141
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
3142
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3143
    break 2
 
3144
  fi
 
3145
done
 
3146
done
 
3147
 
 
3148
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
3149
fi
 
3150
fi
 
3151
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
3152
if test -n "$ac_ct_RANLIB"; then
 
3153
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
3154
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
3155
else
 
3156
  echo "$as_me:$LINENO: result: no" >&5
 
3157
echo "${ECHO_T}no" >&6
 
3158
fi
 
3159
 
 
3160
  RANLIB=$ac_ct_RANLIB
 
3161
else
 
3162
  RANLIB="$ac_cv_prog_RANLIB"
 
3163
fi
 
3164
 
 
3165
 
 
3166
cat >>confdefs.h <<\_ACEOF
 
3167
#define _GNU_SOURCE 1
3159
3168
_ACEOF
3160
 
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3161
 
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3162
 
if test -n "$ac_maketemp"; then
3163
 
  eval ac_cv_prog_make_${ac_make}_set=yes
3164
 
else
3165
 
  eval ac_cv_prog_make_${ac_make}_set=no
3166
 
fi
3167
 
rm -f conftest.make
3168
 
fi
3169
 
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3170
 
  echo "$as_me:$LINENO: result: yes" >&5
3171
 
echo "${ECHO_T}yes" >&6
3172
 
  SET_MAKE=
3173
 
else
3174
 
  echo "$as_me:$LINENO: result: no" >&5
3175
 
echo "${ECHO_T}no" >&6
3176
 
  SET_MAKE="MAKE=${MAKE-make}"
3177
 
fi
3178
 
 
3179
 
 
3180
 
# Checks for libraries.
3181
 
 
3182
 
# Checks for header files.
 
3169
 
 
3170
 
 
3171
# Make sure we can run config.sub.
 
3172
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
3173
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
3174
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
3175
   { (exit 1); exit 1; }; }
 
3176
 
 
3177
echo "$as_me:$LINENO: checking build system type" >&5
 
3178
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
3179
if test "${ac_cv_build+set}" = set; then
 
3180
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3181
else
 
3182
  ac_cv_build_alias=$build_alias
 
3183
test -z "$ac_cv_build_alias" &&
 
3184
  ac_cv_build_alias=`$ac_config_guess`
 
3185
test -z "$ac_cv_build_alias" &&
 
3186
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
3187
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
3188
   { (exit 1); exit 1; }; }
 
3189
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
3190
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
3191
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
3192
   { (exit 1); exit 1; }; }
 
3193
 
 
3194
fi
 
3195
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
3196
echo "${ECHO_T}$ac_cv_build" >&6
 
3197
build=$ac_cv_build
 
3198
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
3199
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
3200
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
3201
 
 
3202
 
 
3203
echo "$as_me:$LINENO: checking host system type" >&5
 
3204
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
3205
if test "${ac_cv_host+set}" = set; then
 
3206
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3207
else
 
3208
  ac_cv_host_alias=$host_alias
 
3209
test -z "$ac_cv_host_alias" &&
 
3210
  ac_cv_host_alias=$ac_cv_build_alias
 
3211
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
3212
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
3213
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
3214
   { (exit 1); exit 1; }; }
 
3215
 
 
3216
fi
 
3217
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
3218
echo "${ECHO_T}$ac_cv_host" >&6
 
3219
host=$ac_cv_host
 
3220
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
3221
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
3222
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
3223
 
 
3224
 
3183
3225
 
3184
3226
ac_ext=c
3185
3227
ac_cpp='$CPP $CPPFLAGS'
3672
3714
 
3673
3715
 
3674
3716
 
 
3717
  if test "${ac_cv_header_minix_config_h+set}" = set; then
 
3718
  echo "$as_me:$LINENO: checking for minix/config.h" >&5
 
3719
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
 
3720
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
3721
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3722
fi
 
3723
echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
 
3724
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
 
3725
else
 
3726
  # Is the header compilable?
 
3727
echo "$as_me:$LINENO: checking minix/config.h usability" >&5
 
3728
echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
 
3729
cat >conftest.$ac_ext <<_ACEOF
 
3730
/* confdefs.h.  */
 
3731
_ACEOF
 
3732
cat confdefs.h >>conftest.$ac_ext
 
3733
cat >>conftest.$ac_ext <<_ACEOF
 
3734
/* end confdefs.h.  */
 
3735
$ac_includes_default
 
3736
#include <minix/config.h>
 
3737
_ACEOF
 
3738
rm -f conftest.$ac_objext
 
3739
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3740
  (eval $ac_compile) 2>conftest.er1
 
3741
  ac_status=$?
 
3742
  grep -v '^ *+' conftest.er1 >conftest.err
 
3743
  rm -f conftest.er1
 
3744
  cat conftest.err >&5
 
3745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3746
  (exit $ac_status); } &&
 
3747
         { ac_try='test -z "$ac_c_werror_flag"
 
3748
                         || test ! -s conftest.err'
 
3749
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3750
  (eval $ac_try) 2>&5
 
3751
  ac_status=$?
 
3752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3753
  (exit $ac_status); }; } &&
 
3754
         { ac_try='test -s conftest.$ac_objext'
 
3755
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3756
  (eval $ac_try) 2>&5
 
3757
  ac_status=$?
 
3758
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3759
  (exit $ac_status); }; }; then
 
3760
  ac_header_compiler=yes
 
3761
else
 
3762
  echo "$as_me: failed program was:" >&5
 
3763
sed 's/^/| /' conftest.$ac_ext >&5
 
3764
 
 
3765
ac_header_compiler=no
 
3766
fi
 
3767
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3768
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
3769
echo "${ECHO_T}$ac_header_compiler" >&6
 
3770
 
 
3771
# Is the header present?
 
3772
echo "$as_me:$LINENO: checking minix/config.h presence" >&5
 
3773
echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
 
3774
cat >conftest.$ac_ext <<_ACEOF
 
3775
/* confdefs.h.  */
 
3776
_ACEOF
 
3777
cat confdefs.h >>conftest.$ac_ext
 
3778
cat >>conftest.$ac_ext <<_ACEOF
 
3779
/* end confdefs.h.  */
 
3780
#include <minix/config.h>
 
3781
_ACEOF
 
3782
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3783
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3784
  ac_status=$?
 
3785
  grep -v '^ *+' conftest.er1 >conftest.err
 
3786
  rm -f conftest.er1
 
3787
  cat conftest.err >&5
 
3788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3789
  (exit $ac_status); } >/dev/null; then
 
3790
  if test -s conftest.err; then
 
3791
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3792
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3793
  else
 
3794
    ac_cpp_err=
 
3795
  fi
 
3796
else
 
3797
  ac_cpp_err=yes
 
3798
fi
 
3799
if test -z "$ac_cpp_err"; then
 
3800
  ac_header_preproc=yes
 
3801
else
 
3802
  echo "$as_me: failed program was:" >&5
 
3803
sed 's/^/| /' conftest.$ac_ext >&5
 
3804
 
 
3805
  ac_header_preproc=no
 
3806
fi
 
3807
rm -f conftest.err conftest.$ac_ext
 
3808
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
3809
echo "${ECHO_T}$ac_header_preproc" >&6
 
3810
 
 
3811
# So?  What about this header?
 
3812
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
3813
  yes:no: )
 
3814
    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
3815
echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
3816
    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
 
3817
echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
 
3818
    ac_header_preproc=yes
 
3819
    ;;
 
3820
  no:yes:* )
 
3821
    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
 
3822
echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
 
3823
    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
 
3824
echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
 
3825
    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
 
3826
echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
 
3827
    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
 
3828
echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
3829
    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
 
3830
echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
 
3831
    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
 
3832
echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
 
3833
    (
 
3834
      cat <<\_ASBOX
 
3835
## ------------------------------------------- ##
 
3836
## Report this to john.boyer@abilitiessoft.com ##
 
3837
## ------------------------------------------- ##
 
3838
_ASBOX
 
3839
    ) |
 
3840
      sed "s/^/$as_me: WARNING:     /" >&2
 
3841
    ;;
 
3842
esac
 
3843
echo "$as_me:$LINENO: checking for minix/config.h" >&5
 
3844
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
 
3845
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
3846
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3847
else
 
3848
  ac_cv_header_minix_config_h=$ac_header_preproc
 
3849
fi
 
3850
echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
 
3851
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
 
3852
 
 
3853
fi
 
3854
if test $ac_cv_header_minix_config_h = yes; then
 
3855
  MINIX=yes
 
3856
else
 
3857
  MINIX=
 
3858
fi
 
3859
 
 
3860
 
 
3861
  if test "$MINIX" = yes; then
 
3862
 
 
3863
cat >>confdefs.h <<\_ACEOF
 
3864
#define _POSIX_SOURCE 1
 
3865
_ACEOF
 
3866
 
 
3867
 
 
3868
cat >>confdefs.h <<\_ACEOF
 
3869
#define _POSIX_1_SOURCE 2
 
3870
_ACEOF
 
3871
 
 
3872
 
 
3873
cat >>confdefs.h <<\_ACEOF
 
3874
#define _MINIX 1
 
3875
_ACEOF
 
3876
 
 
3877
  fi
 
3878
 
 
3879
        case "$host_os" in
 
3880
    hpux*)
 
3881
 
 
3882
cat >>confdefs.h <<\_ACEOF
 
3883
#define _XOPEN_SOURCE 500
 
3884
_ACEOF
 
3885
 
 
3886
      ;;
 
3887
  esac
 
3888
 
 
3889
 
 
3890
 
 
3891
  echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
 
3892
echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
 
3893
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
 
3894
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3895
else
 
3896
  cat >conftest.$ac_ext <<_ACEOF
 
3897
/* confdefs.h.  */
 
3898
_ACEOF
 
3899
cat confdefs.h >>conftest.$ac_ext
 
3900
cat >>conftest.$ac_ext <<_ACEOF
 
3901
/* end confdefs.h.  */
 
3902
 
 
3903
#         define __EXTENSIONS__ 1
 
3904
          $ac_includes_default
 
3905
int
 
3906
main ()
 
3907
{
 
3908
 
 
3909
  ;
 
3910
  return 0;
 
3911
}
 
3912
_ACEOF
 
3913
rm -f conftest.$ac_objext
 
3914
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3915
  (eval $ac_compile) 2>conftest.er1
 
3916
  ac_status=$?
 
3917
  grep -v '^ *+' conftest.er1 >conftest.err
 
3918
  rm -f conftest.er1
 
3919
  cat conftest.err >&5
 
3920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3921
  (exit $ac_status); } &&
 
3922
         { ac_try='test -z "$ac_c_werror_flag"
 
3923
                         || test ! -s conftest.err'
 
3924
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3925
  (eval $ac_try) 2>&5
 
3926
  ac_status=$?
 
3927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3928
  (exit $ac_status); }; } &&
 
3929
         { ac_try='test -s conftest.$ac_objext'
 
3930
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3931
  (eval $ac_try) 2>&5
 
3932
  ac_status=$?
 
3933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3934
  (exit $ac_status); }; }; then
 
3935
  ac_cv_safe_to_define___extensions__=yes
 
3936
else
 
3937
  echo "$as_me: failed program was:" >&5
 
3938
sed 's/^/| /' conftest.$ac_ext >&5
 
3939
 
 
3940
ac_cv_safe_to_define___extensions__=no
 
3941
fi
 
3942
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3943
fi
 
3944
echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
 
3945
echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
 
3946
  test $ac_cv_safe_to_define___extensions__ = yes &&
 
3947
    cat >>confdefs.h <<\_ACEOF
 
3948
#define __EXTENSIONS__ 1
 
3949
_ACEOF
 
3950
 
 
3951
  cat >>confdefs.h <<\_ACEOF
 
3952
#define _ALL_SOURCE 1
 
3953
_ACEOF
 
3954
 
 
3955
  cat >>confdefs.h <<\_ACEOF
 
3956
#define _GNU_SOURCE 1
 
3957
_ACEOF
 
3958
 
 
3959
  cat >>confdefs.h <<\_ACEOF
 
3960
#define _POSIX_PTHREAD_SEMANTICS 1
 
3961
_ACEOF
 
3962
 
 
3963
  cat >>confdefs.h <<\_ACEOF
 
3964
#define _TANDEM_SOURCE 1
 
3965
_ACEOF
 
3966
 
 
3967
 
 
3968
 
 
3969
 
 
3970
 
 
3971
 
 
3972
 
 
3973
 
 
3974
 
 
3975
 
 
3976
 
 
3977
 
 
3978
 
 
3979
 
 
3980
 
 
3981
 
 
3982
 
 
3983
 
 
3984
 
 
3985
 
 
3986
 
 
3987
 
 
3988
 
 
3989
  GNULIB_CHOWN=0;
 
3990
  GNULIB_CLOSE=0;
 
3991
  GNULIB_DUP2=0;
 
3992
  GNULIB_DUP3=0;
 
3993
  GNULIB_ENVIRON=0;
 
3994
  GNULIB_EUIDACCESS=0;
 
3995
  GNULIB_FACCESSAT=0;
 
3996
  GNULIB_FCHDIR=0;
 
3997
  GNULIB_FCHOWNAT=0;
 
3998
  GNULIB_FSYNC=0;
 
3999
  GNULIB_FTRUNCATE=0;
 
4000
  GNULIB_GETCWD=0;
 
4001
  GNULIB_GETDOMAINNAME=0;
 
4002
  GNULIB_GETDTABLESIZE=0;
 
4003
  GNULIB_GETHOSTNAME=0;
 
4004
  GNULIB_GETLOGIN_R=0;
 
4005
  GNULIB_GETPAGESIZE=0;
 
4006
  GNULIB_GETUSERSHELL=0;
 
4007
  GNULIB_LCHOWN=0;
 
4008
  GNULIB_LINK=0;
 
4009
  GNULIB_LINKAT=0;
 
4010
  GNULIB_LSEEK=0;
 
4011
  GNULIB_PIPE2=0;
 
4012
  GNULIB_READLINK=0;
 
4013
  GNULIB_READLINKAT=0;
 
4014
  GNULIB_RMDIR=0;
 
4015
  GNULIB_SLEEP=0;
 
4016
  GNULIB_SYMLINK=0;
 
4017
  GNULIB_SYMLINKAT=0;
 
4018
  GNULIB_UNISTD_H_GETOPT=0;
 
4019
  GNULIB_UNISTD_H_SIGPIPE=0;
 
4020
  GNULIB_UNLINK=0;
 
4021
  GNULIB_UNLINKAT=0;
 
4022
  GNULIB_WRITE=0;
 
4023
    HAVE_DUP2=1;
 
4024
  HAVE_DUP3=1;
 
4025
  HAVE_EUIDACCESS=1;
 
4026
  HAVE_FACCESSAT=1;
 
4027
  HAVE_FCHOWNAT=1;
 
4028
  HAVE_FSYNC=1;
 
4029
  HAVE_FTRUNCATE=1;
 
4030
  HAVE_GETDOMAINNAME=1;
 
4031
  HAVE_GETDTABLESIZE=1;
 
4032
  HAVE_GETHOSTNAME=1;
 
4033
  HAVE_GETPAGESIZE=1;
 
4034
  HAVE_GETUSERSHELL=1;
 
4035
  HAVE_LINK=1;
 
4036
  HAVE_LINKAT=1;
 
4037
  HAVE_PIPE2=1;
 
4038
  HAVE_READLINK=1;
 
4039
  HAVE_READLINKAT=1;
 
4040
  HAVE_SLEEP=1;
 
4041
  HAVE_SYMLINK=1;
 
4042
  HAVE_SYMLINKAT=1;
 
4043
  HAVE_DECL_ENVIRON=1;
 
4044
  HAVE_DECL_GETLOGIN_R=1;
 
4045
  HAVE_OS_H=0;
 
4046
  HAVE_SYS_PARAM_H=0;
 
4047
  HAVE_UNLINKAT=1;
 
4048
  REPLACE_CHOWN=0;
 
4049
  REPLACE_CLOSE=0;
 
4050
  REPLACE_DUP=0;
 
4051
  REPLACE_DUP2=0;
 
4052
  REPLACE_FCHDIR=0;
 
4053
  REPLACE_FCHOWNAT=0;
 
4054
  REPLACE_GETCWD=0;
 
4055
  REPLACE_GETPAGESIZE=0;
 
4056
  REPLACE_LCHOWN=0;
 
4057
  REPLACE_LINK=0;
 
4058
  REPLACE_LINKAT=0;
 
4059
  REPLACE_LSEEK=0;
 
4060
  REPLACE_READLINK=0;
 
4061
  REPLACE_RMDIR=0;
 
4062
  REPLACE_SYMLINK=0;
 
4063
  REPLACE_UNLINK=0;
 
4064
  REPLACE_UNLINKAT=0;
 
4065
  REPLACE_WRITE=0;
 
4066
  UNISTD_H_HAVE_WINSOCK2_H=0;
 
4067
  UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
 
4068
 
 
4069
 
 
4070
 
 
4071
 
 
4072
  echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
 
4073
echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
 
4074
if test "${gl_cv_have_include_next+set}" = set; then
 
4075
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4076
else
 
4077
  rm -rf conftestd1a conftestd1b conftestd2
 
4078
     mkdir conftestd1a conftestd1b conftestd2
 
4079
                                                  cat <<EOF > conftestd1a/conftest.h
 
4080
#define DEFINED_IN_CONFTESTD1
 
4081
#include_next <conftest.h>
 
4082
#ifdef DEFINED_IN_CONFTESTD2
 
4083
int foo;
 
4084
#else
 
4085
#error "include_next doesn't work"
 
4086
#endif
 
4087
EOF
 
4088
     cat <<EOF > conftestd1b/conftest.h
 
4089
#define DEFINED_IN_CONFTESTD1
 
4090
#include <stdio.h>
 
4091
#include_next <conftest.h>
 
4092
#ifdef DEFINED_IN_CONFTESTD2
 
4093
int foo;
 
4094
#else
 
4095
#error "include_next doesn't work"
 
4096
#endif
 
4097
EOF
 
4098
     cat <<EOF > conftestd2/conftest.h
 
4099
#ifndef DEFINED_IN_CONFTESTD1
 
4100
#error "include_next test doesn't work"
 
4101
#endif
 
4102
#define DEFINED_IN_CONFTESTD2
 
4103
EOF
 
4104
     gl_save_CPPFLAGS="$CPPFLAGS"
 
4105
     CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
 
4106
     cat >conftest.$ac_ext <<_ACEOF
 
4107
#include <conftest.h>
 
4108
_ACEOF
 
4109
rm -f conftest.$ac_objext
 
4110
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4111
  (eval $ac_compile) 2>conftest.er1
 
4112
  ac_status=$?
 
4113
  grep -v '^ *+' conftest.er1 >conftest.err
 
4114
  rm -f conftest.er1
 
4115
  cat conftest.err >&5
 
4116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4117
  (exit $ac_status); } &&
 
4118
         { ac_try='test -z "$ac_c_werror_flag"
 
4119
                         || test ! -s conftest.err'
 
4120
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4121
  (eval $ac_try) 2>&5
 
4122
  ac_status=$?
 
4123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4124
  (exit $ac_status); }; } &&
 
4125
         { ac_try='test -s conftest.$ac_objext'
 
4126
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4127
  (eval $ac_try) 2>&5
 
4128
  ac_status=$?
 
4129
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4130
  (exit $ac_status); }; }; then
 
4131
  gl_cv_have_include_next=yes
 
4132
else
 
4133
  echo "$as_me: failed program was:" >&5
 
4134
sed 's/^/| /' conftest.$ac_ext >&5
 
4135
 
 
4136
CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
 
4137
        cat >conftest.$ac_ext <<_ACEOF
 
4138
#include <conftest.h>
 
4139
_ACEOF
 
4140
rm -f conftest.$ac_objext
 
4141
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4142
  (eval $ac_compile) 2>conftest.er1
 
4143
  ac_status=$?
 
4144
  grep -v '^ *+' conftest.er1 >conftest.err
 
4145
  rm -f conftest.er1
 
4146
  cat conftest.err >&5
 
4147
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4148
  (exit $ac_status); } &&
 
4149
         { ac_try='test -z "$ac_c_werror_flag"
 
4150
                         || test ! -s conftest.err'
 
4151
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4152
  (eval $ac_try) 2>&5
 
4153
  ac_status=$?
 
4154
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4155
  (exit $ac_status); }; } &&
 
4156
         { ac_try='test -s conftest.$ac_objext'
 
4157
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4158
  (eval $ac_try) 2>&5
 
4159
  ac_status=$?
 
4160
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4161
  (exit $ac_status); }; }; then
 
4162
  gl_cv_have_include_next=buggy
 
4163
else
 
4164
  echo "$as_me: failed program was:" >&5
 
4165
sed 's/^/| /' conftest.$ac_ext >&5
 
4166
 
 
4167
gl_cv_have_include_next=no
 
4168
fi
 
4169
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4170
 
 
4171
fi
 
4172
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4173
     CPPFLAGS="$gl_save_CPPFLAGS"
 
4174
     rm -rf conftestd1a conftestd1b conftestd2
 
4175
 
 
4176
fi
 
4177
echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
 
4178
echo "${ECHO_T}$gl_cv_have_include_next" >&6
 
4179
  PRAGMA_SYSTEM_HEADER=
 
4180
  if test $gl_cv_have_include_next = yes; then
 
4181
    INCLUDE_NEXT=include_next
 
4182
    INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
 
4183
    if test -n "$GCC"; then
 
4184
      PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
 
4185
    fi
 
4186
  else
 
4187
    if test $gl_cv_have_include_next = buggy; then
 
4188
      INCLUDE_NEXT=include
 
4189
      INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
 
4190
    else
 
4191
      INCLUDE_NEXT=include
 
4192
      INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
 
4193
    fi
 
4194
  fi
 
4195
 
 
4196
 
 
4197
 
 
4198
 
 
4199
 
 
4200
 
 
4201
 
 
4202
 
 
4203
 
 
4204
for ac_header in $gl_header_list
 
4205
do
 
4206
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4207
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4208
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4209
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4210
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4211
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4212
fi
 
4213
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4214
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4215
else
 
4216
  # Is the header compilable?
 
4217
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4218
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4219
cat >conftest.$ac_ext <<_ACEOF
 
4220
/* confdefs.h.  */
 
4221
_ACEOF
 
4222
cat confdefs.h >>conftest.$ac_ext
 
4223
cat >>conftest.$ac_ext <<_ACEOF
 
4224
/* end confdefs.h.  */
 
4225
$ac_includes_default
 
4226
#include <$ac_header>
 
4227
_ACEOF
 
4228
rm -f conftest.$ac_objext
 
4229
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4230
  (eval $ac_compile) 2>conftest.er1
 
4231
  ac_status=$?
 
4232
  grep -v '^ *+' conftest.er1 >conftest.err
 
4233
  rm -f conftest.er1
 
4234
  cat conftest.err >&5
 
4235
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4236
  (exit $ac_status); } &&
 
4237
         { ac_try='test -z "$ac_c_werror_flag"
 
4238
                         || test ! -s conftest.err'
 
4239
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4240
  (eval $ac_try) 2>&5
 
4241
  ac_status=$?
 
4242
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4243
  (exit $ac_status); }; } &&
 
4244
         { ac_try='test -s conftest.$ac_objext'
 
4245
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4246
  (eval $ac_try) 2>&5
 
4247
  ac_status=$?
 
4248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4249
  (exit $ac_status); }; }; then
 
4250
  ac_header_compiler=yes
 
4251
else
 
4252
  echo "$as_me: failed program was:" >&5
 
4253
sed 's/^/| /' conftest.$ac_ext >&5
 
4254
 
 
4255
ac_header_compiler=no
 
4256
fi
 
4257
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4258
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4259
echo "${ECHO_T}$ac_header_compiler" >&6
 
4260
 
 
4261
# Is the header present?
 
4262
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4263
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4264
cat >conftest.$ac_ext <<_ACEOF
 
4265
/* confdefs.h.  */
 
4266
_ACEOF
 
4267
cat confdefs.h >>conftest.$ac_ext
 
4268
cat >>conftest.$ac_ext <<_ACEOF
 
4269
/* end confdefs.h.  */
 
4270
#include <$ac_header>
 
4271
_ACEOF
 
4272
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4273
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4274
  ac_status=$?
 
4275
  grep -v '^ *+' conftest.er1 >conftest.err
 
4276
  rm -f conftest.er1
 
4277
  cat conftest.err >&5
 
4278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4279
  (exit $ac_status); } >/dev/null; then
 
4280
  if test -s conftest.err; then
 
4281
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4282
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4283
  else
 
4284
    ac_cpp_err=
 
4285
  fi
 
4286
else
 
4287
  ac_cpp_err=yes
 
4288
fi
 
4289
if test -z "$ac_cpp_err"; then
 
4290
  ac_header_preproc=yes
 
4291
else
 
4292
  echo "$as_me: failed program was:" >&5
 
4293
sed 's/^/| /' conftest.$ac_ext >&5
 
4294
 
 
4295
  ac_header_preproc=no
 
4296
fi
 
4297
rm -f conftest.err conftest.$ac_ext
 
4298
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4299
echo "${ECHO_T}$ac_header_preproc" >&6
 
4300
 
 
4301
# So?  What about this header?
 
4302
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4303
  yes:no: )
 
4304
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4305
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4306
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4307
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4308
    ac_header_preproc=yes
 
4309
    ;;
 
4310
  no:yes:* )
 
4311
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4312
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4313
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4314
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4315
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4316
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4317
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4318
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4319
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4320
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4321
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4322
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4323
    (
 
4324
      cat <<\_ASBOX
 
4325
## ------------------------------------------- ##
 
4326
## Report this to john.boyer@abilitiessoft.com ##
 
4327
## ------------------------------------------- ##
 
4328
_ASBOX
 
4329
    ) |
 
4330
      sed "s/^/$as_me: WARNING:     /" >&2
 
4331
    ;;
 
4332
esac
 
4333
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4334
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4335
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4336
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4337
else
 
4338
  eval "$as_ac_Header=\$ac_header_preproc"
 
4339
fi
 
4340
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4341
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4342
 
 
4343
fi
 
4344
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4345
  cat >>confdefs.h <<_ACEOF
 
4346
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4347
_ACEOF
 
4348
 
 
4349
fi
 
4350
 
 
4351
done
 
4352
 
 
4353
 
 
4354
 
 
4355
 
 
4356
 
 
4357
 
 
4358
 
 
4359
 
 
4360
 
 
4361
 
 
4362
 
 
4363
 
 
4364
 
 
4365
 
 
4366
  :
 
4367
 
 
4368
 
 
4369
 
 
4370
 
 
4371
 
 
4372
 
 
4373
 
 
4374
     if test $gl_cv_have_include_next = yes; then
 
4375
       gl_cv_next_getopt_h='<'getopt.h'>'
 
4376
     else
 
4377
       echo "$as_me:$LINENO: checking absolute name of <getopt.h>" >&5
 
4378
echo $ECHO_N "checking absolute name of <getopt.h>... $ECHO_C" >&6
 
4379
if test "${gl_cv_next_getopt_h+set}" = set; then
 
4380
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4381
else
 
4382
 
 
4383
          if test $ac_cv_header_getopt_h = yes; then
 
4384
            cat >conftest.$ac_ext <<_ACEOF
 
4385
/* confdefs.h.  */
 
4386
_ACEOF
 
4387
cat confdefs.h >>conftest.$ac_ext
 
4388
cat >>conftest.$ac_ext <<_ACEOF
 
4389
/* end confdefs.h.  */
 
4390
#include <getopt.h>
 
4391
 
 
4392
_ACEOF
 
4393
                                                                    case "$host_os" in
 
4394
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
4395
              *)    gl_absname_cpp="$ac_cpp" ;;
 
4396
            esac
 
4397
                                    gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
4398
               sed -n '\#/getopt.h#{
 
4399
                 s#.*"\(.*/getopt.h\)".*#\1#
 
4400
                 s#^/[^/]#//&#
 
4401
                 p
 
4402
                 q
 
4403
               }'`'"'
 
4404
          else
 
4405
            gl_cv_next_getopt_h='<'getopt.h'>'
 
4406
          fi
 
4407
 
 
4408
fi
 
4409
echo "$as_me:$LINENO: result: $gl_cv_next_getopt_h" >&5
 
4410
echo "${ECHO_T}$gl_cv_next_getopt_h" >&6
 
4411
     fi
 
4412
     NEXT_GETOPT_H=$gl_cv_next_getopt_h
 
4413
 
 
4414
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
4415
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
4416
       gl_next_as_first_directive='<'getopt.h'>'
 
4417
     else
 
4418
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
4419
       gl_next_as_first_directive=$gl_cv_next_getopt_h
 
4420
     fi
 
4421
     NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
 
4422
 
 
4423
 
 
4424
 
 
4425
 
 
4426
  :
 
4427
 
 
4428
 
 
4429
 
 
4430
 
 
4431
 
 
4432
  if test $ac_cv_header_getopt_h = yes; then
 
4433
    HAVE_GETOPT_H=1
 
4434
  else
 
4435
    HAVE_GETOPT_H=0
 
4436
  fi
 
4437
 
 
4438
 
 
4439
  gl_replace_getopt=
 
4440
 
 
4441
    if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
 
4442
 
 
4443
for ac_header in getopt.h
 
4444
do
 
4445
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4446
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4447
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4448
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4449
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4450
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4451
fi
 
4452
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4453
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4454
else
 
4455
  # Is the header compilable?
 
4456
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4457
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4458
cat >conftest.$ac_ext <<_ACEOF
 
4459
/* confdefs.h.  */
 
4460
_ACEOF
 
4461
cat confdefs.h >>conftest.$ac_ext
 
4462
cat >>conftest.$ac_ext <<_ACEOF
 
4463
/* end confdefs.h.  */
 
4464
$ac_includes_default
 
4465
#include <$ac_header>
 
4466
_ACEOF
 
4467
rm -f conftest.$ac_objext
 
4468
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4469
  (eval $ac_compile) 2>conftest.er1
 
4470
  ac_status=$?
 
4471
  grep -v '^ *+' conftest.er1 >conftest.err
 
4472
  rm -f conftest.er1
 
4473
  cat conftest.err >&5
 
4474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4475
  (exit $ac_status); } &&
 
4476
         { ac_try='test -z "$ac_c_werror_flag"
 
4477
                         || test ! -s conftest.err'
 
4478
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4479
  (eval $ac_try) 2>&5
 
4480
  ac_status=$?
 
4481
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4482
  (exit $ac_status); }; } &&
 
4483
         { ac_try='test -s conftest.$ac_objext'
 
4484
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4485
  (eval $ac_try) 2>&5
 
4486
  ac_status=$?
 
4487
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4488
  (exit $ac_status); }; }; then
 
4489
  ac_header_compiler=yes
 
4490
else
 
4491
  echo "$as_me: failed program was:" >&5
 
4492
sed 's/^/| /' conftest.$ac_ext >&5
 
4493
 
 
4494
ac_header_compiler=no
 
4495
fi
 
4496
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4497
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4498
echo "${ECHO_T}$ac_header_compiler" >&6
 
4499
 
 
4500
# Is the header present?
 
4501
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4502
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4503
cat >conftest.$ac_ext <<_ACEOF
 
4504
/* confdefs.h.  */
 
4505
_ACEOF
 
4506
cat confdefs.h >>conftest.$ac_ext
 
4507
cat >>conftest.$ac_ext <<_ACEOF
 
4508
/* end confdefs.h.  */
 
4509
#include <$ac_header>
 
4510
_ACEOF
 
4511
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4512
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4513
  ac_status=$?
 
4514
  grep -v '^ *+' conftest.er1 >conftest.err
 
4515
  rm -f conftest.er1
 
4516
  cat conftest.err >&5
 
4517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4518
  (exit $ac_status); } >/dev/null; then
 
4519
  if test -s conftest.err; then
 
4520
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4521
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4522
  else
 
4523
    ac_cpp_err=
 
4524
  fi
 
4525
else
 
4526
  ac_cpp_err=yes
 
4527
fi
 
4528
if test -z "$ac_cpp_err"; then
 
4529
  ac_header_preproc=yes
 
4530
else
 
4531
  echo "$as_me: failed program was:" >&5
 
4532
sed 's/^/| /' conftest.$ac_ext >&5
 
4533
 
 
4534
  ac_header_preproc=no
 
4535
fi
 
4536
rm -f conftest.err conftest.$ac_ext
 
4537
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4538
echo "${ECHO_T}$ac_header_preproc" >&6
 
4539
 
 
4540
# So?  What about this header?
 
4541
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4542
  yes:no: )
 
4543
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4544
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4545
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4546
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4547
    ac_header_preproc=yes
 
4548
    ;;
 
4549
  no:yes:* )
 
4550
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4551
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4552
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4553
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4554
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4555
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4556
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4557
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4558
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4559
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4560
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4561
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4562
    (
 
4563
      cat <<\_ASBOX
 
4564
## ------------------------------------------- ##
 
4565
## Report this to john.boyer@abilitiessoft.com ##
 
4566
## ------------------------------------------- ##
 
4567
_ASBOX
 
4568
    ) |
 
4569
      sed "s/^/$as_me: WARNING:     /" >&2
 
4570
    ;;
 
4571
esac
 
4572
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4573
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4574
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4575
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4576
else
 
4577
  eval "$as_ac_Header=\$ac_header_preproc"
 
4578
fi
 
4579
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4580
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4581
 
 
4582
fi
 
4583
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4584
  cat >>confdefs.h <<_ACEOF
 
4585
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4586
_ACEOF
 
4587
 
 
4588
else
 
4589
  gl_replace_getopt=yes
 
4590
fi
 
4591
 
 
4592
done
 
4593
 
 
4594
  fi
 
4595
 
 
4596
    if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
 
4597
 
 
4598
for ac_func in getopt_long_only
 
4599
do
 
4600
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
4601
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
4602
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
4603
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
4604
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4605
else
 
4606
  cat >conftest.$ac_ext <<_ACEOF
 
4607
/* confdefs.h.  */
 
4608
_ACEOF
 
4609
cat confdefs.h >>conftest.$ac_ext
 
4610
cat >>conftest.$ac_ext <<_ACEOF
 
4611
/* end confdefs.h.  */
 
4612
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
4613
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
4614
#define $ac_func innocuous_$ac_func
 
4615
 
 
4616
/* System header to define __stub macros and hopefully few prototypes,
 
4617
    which can conflict with char $ac_func (); below.
 
4618
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4619
    <limits.h> exists even on freestanding compilers.  */
 
4620
 
 
4621
#ifdef __STDC__
 
4622
# include <limits.h>
 
4623
#else
 
4624
# include <assert.h>
 
4625
#endif
 
4626
 
 
4627
#undef $ac_func
 
4628
 
 
4629
/* Override any gcc2 internal prototype to avoid an error.  */
 
4630
#ifdef __cplusplus
 
4631
extern "C"
 
4632
{
 
4633
#endif
 
4634
/* We use char because int might match the return type of a gcc2
 
4635
   builtin and then its argument prototype would still apply.  */
 
4636
char $ac_func ();
 
4637
/* The GNU C library defines this for functions which it implements
 
4638
    to always fail with ENOSYS.  Some functions are actually named
 
4639
    something starting with __ and the normal name is an alias.  */
 
4640
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
4641
choke me
 
4642
#else
 
4643
char (*f) () = $ac_func;
 
4644
#endif
 
4645
#ifdef __cplusplus
 
4646
}
 
4647
#endif
 
4648
 
 
4649
int
 
4650
main ()
 
4651
{
 
4652
return f != $ac_func;
 
4653
  ;
 
4654
  return 0;
 
4655
}
 
4656
_ACEOF
 
4657
rm -f conftest.$ac_objext conftest$ac_exeext
 
4658
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4659
  (eval $ac_link) 2>conftest.er1
 
4660
  ac_status=$?
 
4661
  grep -v '^ *+' conftest.er1 >conftest.err
 
4662
  rm -f conftest.er1
 
4663
  cat conftest.err >&5
 
4664
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4665
  (exit $ac_status); } &&
 
4666
         { ac_try='test -z "$ac_c_werror_flag"
 
4667
                         || test ! -s conftest.err'
 
4668
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4669
  (eval $ac_try) 2>&5
 
4670
  ac_status=$?
 
4671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4672
  (exit $ac_status); }; } &&
 
4673
         { ac_try='test -s conftest$ac_exeext'
 
4674
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4675
  (eval $ac_try) 2>&5
 
4676
  ac_status=$?
 
4677
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4678
  (exit $ac_status); }; }; then
 
4679
  eval "$as_ac_var=yes"
 
4680
else
 
4681
  echo "$as_me: failed program was:" >&5
 
4682
sed 's/^/| /' conftest.$ac_ext >&5
 
4683
 
 
4684
eval "$as_ac_var=no"
 
4685
fi
 
4686
rm -f conftest.err conftest.$ac_objext \
 
4687
      conftest$ac_exeext conftest.$ac_ext
 
4688
fi
 
4689
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
4690
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
4691
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
4692
  cat >>confdefs.h <<_ACEOF
 
4693
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
4694
_ACEOF
 
4695
 
 
4696
else
 
4697
  gl_replace_getopt=yes
 
4698
fi
 
4699
done
 
4700
 
 
4701
  fi
 
4702
 
 
4703
      if false && test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
 
4704
    echo "$as_me:$LINENO: checking whether optreset is declared" >&5
 
4705
echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
 
4706
if test "${ac_cv_have_decl_optreset+set}" = set; then
 
4707
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4708
else
 
4709
  cat >conftest.$ac_ext <<_ACEOF
 
4710
/* confdefs.h.  */
 
4711
_ACEOF
 
4712
cat confdefs.h >>conftest.$ac_ext
 
4713
cat >>conftest.$ac_ext <<_ACEOF
 
4714
/* end confdefs.h.  */
 
4715
#include <getopt.h>
 
4716
 
 
4717
int
 
4718
main ()
 
4719
{
 
4720
#ifndef optreset
 
4721
  char *p = (char *) optreset;
 
4722
#endif
 
4723
 
 
4724
  ;
 
4725
  return 0;
 
4726
}
 
4727
_ACEOF
 
4728
rm -f conftest.$ac_objext
 
4729
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4730
  (eval $ac_compile) 2>conftest.er1
 
4731
  ac_status=$?
 
4732
  grep -v '^ *+' conftest.er1 >conftest.err
 
4733
  rm -f conftest.er1
 
4734
  cat conftest.err >&5
 
4735
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4736
  (exit $ac_status); } &&
 
4737
         { ac_try='test -z "$ac_c_werror_flag"
 
4738
                         || test ! -s conftest.err'
 
4739
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4740
  (eval $ac_try) 2>&5
 
4741
  ac_status=$?
 
4742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4743
  (exit $ac_status); }; } &&
 
4744
         { ac_try='test -s conftest.$ac_objext'
 
4745
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4746
  (eval $ac_try) 2>&5
 
4747
  ac_status=$?
 
4748
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4749
  (exit $ac_status); }; }; then
 
4750
  ac_cv_have_decl_optreset=yes
 
4751
else
 
4752
  echo "$as_me: failed program was:" >&5
 
4753
sed 's/^/| /' conftest.$ac_ext >&5
 
4754
 
 
4755
ac_cv_have_decl_optreset=no
 
4756
fi
 
4757
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4758
fi
 
4759
echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
 
4760
echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
 
4761
if test $ac_cv_have_decl_optreset = yes; then
 
4762
  gl_replace_getopt=yes
 
4763
fi
 
4764
 
 
4765
  fi
 
4766
 
 
4767
          if test -z "$gl_replace_getopt"; then
 
4768
    echo "$as_me:$LINENO: checking whether getopt is POSIX compatible" >&5
 
4769
echo $ECHO_N "checking whether getopt is POSIX compatible... $ECHO_C" >&6
 
4770
if test "${gl_cv_func_getopt_posix+set}" = set; then
 
4771
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4772
else
 
4773
 
 
4774
                if test "$cross_compiling" = yes; then
 
4775
  case "$host_os" in
 
4776
             mingw*) gl_cv_func_getopt_posix="guessing no";;
 
4777
             *)      gl_cv_func_getopt_posix="guessing yes";;
 
4778
           esac
 
4779
 
 
4780
else
 
4781
  cat >conftest.$ac_ext <<_ACEOF
 
4782
/* confdefs.h.  */
 
4783
_ACEOF
 
4784
cat confdefs.h >>conftest.$ac_ext
 
4785
cat >>conftest.$ac_ext <<_ACEOF
 
4786
/* end confdefs.h.  */
 
4787
 
 
4788
#include <unistd.h>
 
4789
#include <stdlib.h>
 
4790
#include <string.h>
 
4791
 
 
4792
/* The glibc implementation of getopt supports setting optind = 0 as a means
 
4793
   of clearing the internal state, but other implementations don't.  */
 
4794
#if (__GLIBC__ >= 2)
 
4795
# define OPTIND_MIN 0
 
4796
#else
 
4797
# define OPTIND_MIN 1
 
4798
#endif
 
4799
 
 
4800
int
 
4801
main ()
 
4802
{
 
4803
  {
 
4804
    int argc = 0;
 
4805
    char *argv[10];
 
4806
    int c;
 
4807
 
 
4808
    argv[argc++] = "program";
 
4809
    argv[argc++] = "-a";
 
4810
    argv[argc++] = "foo";
 
4811
    argv[argc++] = "bar";
 
4812
    optind = OPTIND_MIN;
 
4813
    opterr = 0;
 
4814
 
 
4815
    c = getopt (argc, argv, "ab");
 
4816
    if (!(c == 'a'))
 
4817
      return 1;
 
4818
    c = getopt (argc, argv, "ab");
 
4819
    if (!(c == -1))
 
4820
      return 2;
 
4821
    if (!(optind == 2))
 
4822
      return 3;
 
4823
  }
 
4824
  /* Some internal state exists at this point.  */
 
4825
  {
 
4826
    int argc = 0;
 
4827
    char *argv[10];
 
4828
    int c;
 
4829
 
 
4830
    argv[argc++] = "program";
 
4831
    argv[argc++] = "donald";
 
4832
    argv[argc++] = "-p";
 
4833
    argv[argc++] = "billy";
 
4834
    argv[argc++] = "duck";
 
4835
    argv[argc++] = "-a";
 
4836
    argv[argc++] = "bar";
 
4837
    optind = OPTIND_MIN;
 
4838
    opterr = 0;
 
4839
 
 
4840
    c = getopt (argc, argv, "+abp:q:");
 
4841
    if (!(c == -1))
 
4842
      return 4;
 
4843
    if (!(strcmp (argv[0], "program") == 0))
 
4844
      return 5;
 
4845
    if (!(strcmp (argv[1], "donald") == 0))
 
4846
      return 6;
 
4847
    if (!(strcmp (argv[2], "-p") == 0))
 
4848
      return 7;
 
4849
    if (!(strcmp (argv[3], "billy") == 0))
 
4850
      return 8;
 
4851
    if (!(strcmp (argv[4], "duck") == 0))
 
4852
      return 9;
 
4853
    if (!(strcmp (argv[5], "-a") == 0))
 
4854
      return 10;
 
4855
    if (!(strcmp (argv[6], "bar") == 0))
 
4856
      return 11;
 
4857
    if (!(optind == 1))
 
4858
      return 12;
 
4859
  }
 
4860
 
 
4861
  return 0;
 
4862
}
 
4863
 
 
4864
_ACEOF
 
4865
rm -f conftest$ac_exeext
 
4866
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4867
  (eval $ac_link) 2>&5
 
4868
  ac_status=$?
 
4869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4870
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4871
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4872
  (eval $ac_try) 2>&5
 
4873
  ac_status=$?
 
4874
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4875
  (exit $ac_status); }; }; then
 
4876
  gl_cv_func_getopt_posix=yes
 
4877
else
 
4878
  echo "$as_me: program exited with status $ac_status" >&5
 
4879
echo "$as_me: failed program was:" >&5
 
4880
sed 's/^/| /' conftest.$ac_ext >&5
 
4881
 
 
4882
( exit $ac_status )
 
4883
gl_cv_func_getopt_posix=no
 
4884
fi
 
4885
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4886
fi
 
4887
 
 
4888
fi
 
4889
echo "$as_me:$LINENO: result: $gl_cv_func_getopt_posix" >&5
 
4890
echo "${ECHO_T}$gl_cv_func_getopt_posix" >&6
 
4891
    case "$gl_cv_func_getopt_posix" in
 
4892
      *no) gl_replace_getopt=yes ;;
 
4893
    esac
 
4894
  fi
 
4895
 
 
4896
  if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
 
4897
    echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
 
4898
echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
 
4899
if test "${gl_cv_func_getopt_gnu+set}" = set; then
 
4900
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4901
else
 
4902
  if test "$cross_compiling" = yes; then
 
4903
           case "$host_os" in
 
4904
           *-gnu* | mingw*) gl_cv_func_getopt_gnu=no;;
 
4905
           *)               gl_cv_func_getopt_gnu=yes;;
 
4906
         esac
 
4907
 
 
4908
else
 
4909
  cat >conftest.$ac_ext <<_ACEOF
 
4910
/* confdefs.h.  */
 
4911
_ACEOF
 
4912
cat confdefs.h >>conftest.$ac_ext
 
4913
cat >>conftest.$ac_ext <<_ACEOF
 
4914
/* end confdefs.h.  */
 
4915
#include <getopt.h>
 
4916
                           #include <stddef.h>
 
4917
                           #include <string.h>
 
4918
int
 
4919
main ()
 
4920
{
 
4921
 
 
4922
             /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
 
4923
                and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
 
4924
                OSF/1 5.1, Solaris 10.  */
 
4925
             {
 
4926
               char *myargv[3];
 
4927
               myargv[0] = "conftest";
 
4928
               myargv[1] = "-+";
 
4929
               myargv[2] = 0;
 
4930
               opterr = 0;
 
4931
               if (getopt (2, myargv, "+a") != '?')
 
4932
                 return 1;
 
4933
             }
 
4934
             /* This code succeeds on glibc 2.8, mingw,
 
4935
                and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
 
4936
                IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin.  */
 
4937
             {
 
4938
               char *argv[] = { "program", "-p", "foo", "bar" };
 
4939
 
 
4940
               optind = 1;
 
4941
               if (getopt (4, argv, "p::") != 'p')
 
4942
                 return 2;
 
4943
               if (optarg != NULL)
 
4944
                 return 3;
 
4945
               if (getopt (4, argv, "p::") != -1)
 
4946
                 return 4;
 
4947
               if (optind != 2)
 
4948
                 return 5;
 
4949
             }
 
4950
             return 0;
 
4951
 
 
4952
  ;
 
4953
  return 0;
 
4954
}
 
4955
_ACEOF
 
4956
rm -f conftest$ac_exeext
 
4957
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4958
  (eval $ac_link) 2>&5
 
4959
  ac_status=$?
 
4960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4961
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4962
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4963
  (eval $ac_try) 2>&5
 
4964
  ac_status=$?
 
4965
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4966
  (exit $ac_status); }; }; then
 
4967
  gl_cv_func_getopt_gnu=yes
 
4968
else
 
4969
  echo "$as_me: program exited with status $ac_status" >&5
 
4970
echo "$as_me: failed program was:" >&5
 
4971
sed 's/^/| /' conftest.$ac_ext >&5
 
4972
 
 
4973
( exit $ac_status )
 
4974
gl_cv_func_getopt_gnu=no
 
4975
fi
 
4976
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4977
fi
 
4978
 
 
4979
fi
 
4980
echo "$as_me:$LINENO: result: $gl_cv_func_getopt_gnu" >&5
 
4981
echo "${ECHO_T}$gl_cv_func_getopt_gnu" >&6
 
4982
    if test "$gl_cv_func_getopt_gnu" = "no"; then
 
4983
      gl_replace_getopt=yes
 
4984
    fi
 
4985
  fi
 
4986
 
 
4987
 
 
4988
      echo "$as_me:$LINENO: checking whether getenv is declared" >&5
 
4989
echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
 
4990
if test "${ac_cv_have_decl_getenv+set}" = set; then
 
4991
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4992
else
 
4993
  cat >conftest.$ac_ext <<_ACEOF
 
4994
/* confdefs.h.  */
 
4995
_ACEOF
 
4996
cat confdefs.h >>conftest.$ac_ext
 
4997
cat >>conftest.$ac_ext <<_ACEOF
 
4998
/* end confdefs.h.  */
 
4999
$ac_includes_default
 
5000
int
 
5001
main ()
 
5002
{
 
5003
#ifndef getenv
 
5004
  char *p = (char *) getenv;
 
5005
#endif
 
5006
 
 
5007
  ;
 
5008
  return 0;
 
5009
}
 
5010
_ACEOF
 
5011
rm -f conftest.$ac_objext
 
5012
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5013
  (eval $ac_compile) 2>conftest.er1
 
5014
  ac_status=$?
 
5015
  grep -v '^ *+' conftest.er1 >conftest.err
 
5016
  rm -f conftest.er1
 
5017
  cat conftest.err >&5
 
5018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5019
  (exit $ac_status); } &&
 
5020
         { ac_try='test -z "$ac_c_werror_flag"
 
5021
                         || test ! -s conftest.err'
 
5022
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5023
  (eval $ac_try) 2>&5
 
5024
  ac_status=$?
 
5025
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5026
  (exit $ac_status); }; } &&
 
5027
         { ac_try='test -s conftest.$ac_objext'
 
5028
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5029
  (eval $ac_try) 2>&5
 
5030
  ac_status=$?
 
5031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5032
  (exit $ac_status); }; }; then
 
5033
  ac_cv_have_decl_getenv=yes
 
5034
else
 
5035
  echo "$as_me: failed program was:" >&5
 
5036
sed 's/^/| /' conftest.$ac_ext >&5
 
5037
 
 
5038
ac_cv_have_decl_getenv=no
 
5039
fi
 
5040
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5041
fi
 
5042
echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
 
5043
echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
 
5044
if test $ac_cv_have_decl_getenv = yes; then
 
5045
 
 
5046
cat >>confdefs.h <<_ACEOF
 
5047
#define HAVE_DECL_GETENV 1
 
5048
_ACEOF
 
5049
 
 
5050
 
 
5051
else
 
5052
  cat >>confdefs.h <<_ACEOF
 
5053
#define HAVE_DECL_GETENV 0
 
5054
_ACEOF
 
5055
 
 
5056
 
 
5057
fi
 
5058
 
 
5059
 
 
5060
 
 
5061
 
 
5062
 
 
5063
 
 
5064
 
 
5065
 
 
5066
  if test -n "$gl_replace_getopt"; then
 
5067
 
 
5068
 
 
5069
 
 
5070
  GETOPT_H=getopt.h
 
5071
 
 
5072
cat >>confdefs.h <<\_ACEOF
 
5073
#define __GETOPT_PREFIX rpl_
 
5074
_ACEOF
 
5075
 
 
5076
 
 
5077
 
 
5078
    GNULIB_UNISTD_H_GETOPT=1
 
5079
 
 
5080
 
 
5081
 
 
5082
 
 
5083
 
 
5084
 
 
5085
 
 
5086
 
 
5087
  gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
 
5088
 
 
5089
 
 
5090
 
 
5091
 
 
5092
 
 
5093
 
 
5094
 
 
5095
 
 
5096
 
 
5097
  gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
 
5098
 
 
5099
 
 
5100
 
 
5101
  :
 
5102
 
 
5103
 
 
5104
 
 
5105
 
 
5106
 
 
5107
 
 
5108
 
 
5109
 
 
5110
fi
 
5111
 
 
5112
 
 
5113
 
 
5114
 
 
5115
 
 
5116
 
 
5117
 
 
5118
 
 
5119
 
 
5120
 
 
5121
    REPLACE_NULL=0;
 
5122
  HAVE_WCHAR_T=1;
 
5123
  STDDEF_H='';
 
5124
 
 
5125
 
 
5126
  echo "$as_me:$LINENO: checking for wchar_t" >&5
 
5127
echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
 
5128
if test "${gt_cv_c_wchar_t+set}" = set; then
 
5129
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5130
else
 
5131
  cat >conftest.$ac_ext <<_ACEOF
 
5132
/* confdefs.h.  */
 
5133
_ACEOF
 
5134
cat confdefs.h >>conftest.$ac_ext
 
5135
cat >>conftest.$ac_ext <<_ACEOF
 
5136
/* end confdefs.h.  */
 
5137
#include <stddef.h>
 
5138
       wchar_t foo = (wchar_t)'\0';
 
5139
int
 
5140
main ()
 
5141
{
 
5142
 
 
5143
  ;
 
5144
  return 0;
 
5145
}
 
5146
_ACEOF
 
5147
rm -f conftest.$ac_objext
 
5148
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5149
  (eval $ac_compile) 2>conftest.er1
 
5150
  ac_status=$?
 
5151
  grep -v '^ *+' conftest.er1 >conftest.err
 
5152
  rm -f conftest.er1
 
5153
  cat conftest.err >&5
 
5154
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5155
  (exit $ac_status); } &&
 
5156
         { ac_try='test -z "$ac_c_werror_flag"
 
5157
                         || test ! -s conftest.err'
 
5158
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5159
  (eval $ac_try) 2>&5
 
5160
  ac_status=$?
 
5161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5162
  (exit $ac_status); }; } &&
 
5163
         { ac_try='test -s conftest.$ac_objext'
 
5164
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5165
  (eval $ac_try) 2>&5
 
5166
  ac_status=$?
 
5167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5168
  (exit $ac_status); }; }; then
 
5169
  gt_cv_c_wchar_t=yes
 
5170
else
 
5171
  echo "$as_me: failed program was:" >&5
 
5172
sed 's/^/| /' conftest.$ac_ext >&5
 
5173
 
 
5174
gt_cv_c_wchar_t=no
 
5175
fi
 
5176
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5177
fi
 
5178
echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
 
5179
echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
 
5180
  if test $gt_cv_c_wchar_t = yes; then
 
5181
 
 
5182
cat >>confdefs.h <<\_ACEOF
 
5183
#define HAVE_WCHAR_T 1
 
5184
_ACEOF
 
5185
 
 
5186
  fi
 
5187
 
 
5188
 
 
5189
 
 
5190
 
 
5191
 
 
5192
 
 
5193
 
 
5194
 
 
5195
 
 
5196
 
 
5197
 
 
5198
 
 
5199
 
 
5200
 
 
5201
 
 
5202
 
 
5203
if true; then
 
5204
  GL_COND_LIBTOOL_TRUE=
 
5205
  GL_COND_LIBTOOL_FALSE='#'
 
5206
else
 
5207
  GL_COND_LIBTOOL_TRUE='#'
 
5208
  GL_COND_LIBTOOL_FALSE=
 
5209
fi
 
5210
 
 
5211
  gl_cond_libtool=true
 
5212
 
 
5213
 
 
5214
 
 
5215
 
 
5216
 
 
5217
 
 
5218
 
 
5219
 
 
5220
 
 
5221
  gl_source_base='gnulib'
 
5222
 
 
5223
 
 
5224
 
 
5225
 
 
5226
 
 
5227
 
 
5228
 
 
5229
cat >>confdefs.h <<\_ACEOF
 
5230
#define GNULIB_GETOPT_GNU 1
 
5231
_ACEOF
 
5232
 
 
5233
 
 
5234
 
 
5235
 
 
5236
 
 
5237
 
 
5238
 
 
5239
  if test -n "$gl_replace_getopt"; then
 
5240
 
 
5241
 
 
5242
 
 
5243
  GETOPT_H=getopt.h
 
5244
 
 
5245
cat >>confdefs.h <<\_ACEOF
 
5246
#define __GETOPT_PREFIX rpl_
 
5247
_ACEOF
 
5248
 
 
5249
 
 
5250
 
 
5251
    GNULIB_UNISTD_H_GETOPT=1
 
5252
 
 
5253
 
 
5254
 
 
5255
 
 
5256
 
 
5257
 
 
5258
 
 
5259
 
 
5260
  gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
 
5261
 
 
5262
 
 
5263
 
 
5264
 
 
5265
 
 
5266
 
 
5267
 
 
5268
 
 
5269
 
 
5270
  gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
 
5271
 
 
5272
 
 
5273
 
 
5274
  :
 
5275
 
 
5276
 
 
5277
 
 
5278
 
 
5279
 
 
5280
 
 
5281
 
 
5282
 
 
5283
fi
 
5284
 
 
5285
 
 
5286
 
 
5287
 
 
5288
 
 
5289
  echo "$as_me:$LINENO: checking whether program_invocation_name is declared" >&5
 
5290
echo $ECHO_N "checking whether program_invocation_name is declared... $ECHO_C" >&6
 
5291
if test "${ac_cv_have_decl_program_invocation_name+set}" = set; then
 
5292
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5293
else
 
5294
  cat >conftest.$ac_ext <<_ACEOF
 
5295
/* confdefs.h.  */
 
5296
_ACEOF
 
5297
cat confdefs.h >>conftest.$ac_ext
 
5298
cat >>conftest.$ac_ext <<_ACEOF
 
5299
/* end confdefs.h.  */
 
5300
#include <errno.h>
 
5301
 
 
5302
int
 
5303
main ()
 
5304
{
 
5305
#ifndef program_invocation_name
 
5306
  char *p = (char *) program_invocation_name;
 
5307
#endif
 
5308
 
 
5309
  ;
 
5310
  return 0;
 
5311
}
 
5312
_ACEOF
 
5313
rm -f conftest.$ac_objext
 
5314
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5315
  (eval $ac_compile) 2>conftest.er1
 
5316
  ac_status=$?
 
5317
  grep -v '^ *+' conftest.er1 >conftest.err
 
5318
  rm -f conftest.er1
 
5319
  cat conftest.err >&5
 
5320
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5321
  (exit $ac_status); } &&
 
5322
         { ac_try='test -z "$ac_c_werror_flag"
 
5323
                         || test ! -s conftest.err'
 
5324
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5325
  (eval $ac_try) 2>&5
 
5326
  ac_status=$?
 
5327
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5328
  (exit $ac_status); }; } &&
 
5329
         { ac_try='test -s conftest.$ac_objext'
 
5330
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5331
  (eval $ac_try) 2>&5
 
5332
  ac_status=$?
 
5333
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5334
  (exit $ac_status); }; }; then
 
5335
  ac_cv_have_decl_program_invocation_name=yes
 
5336
else
 
5337
  echo "$as_me: failed program was:" >&5
 
5338
sed 's/^/| /' conftest.$ac_ext >&5
 
5339
 
 
5340
ac_cv_have_decl_program_invocation_name=no
 
5341
fi
 
5342
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5343
fi
 
5344
echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_name" >&5
 
5345
echo "${ECHO_T}$ac_cv_have_decl_program_invocation_name" >&6
 
5346
if test $ac_cv_have_decl_program_invocation_name = yes; then
 
5347
 
 
5348
cat >>confdefs.h <<_ACEOF
 
5349
#define HAVE_DECL_PROGRAM_INVOCATION_NAME 1
 
5350
_ACEOF
 
5351
 
 
5352
 
 
5353
else
 
5354
  cat >>confdefs.h <<_ACEOF
 
5355
#define HAVE_DECL_PROGRAM_INVOCATION_NAME 0
 
5356
_ACEOF
 
5357
 
 
5358
 
 
5359
fi
 
5360
 
 
5361
 
 
5362
  echo "$as_me:$LINENO: checking whether program_invocation_short_name is declared" >&5
 
5363
echo $ECHO_N "checking whether program_invocation_short_name is declared... $ECHO_C" >&6
 
5364
if test "${ac_cv_have_decl_program_invocation_short_name+set}" = set; then
 
5365
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5366
else
 
5367
  cat >conftest.$ac_ext <<_ACEOF
 
5368
/* confdefs.h.  */
 
5369
_ACEOF
 
5370
cat confdefs.h >>conftest.$ac_ext
 
5371
cat >>conftest.$ac_ext <<_ACEOF
 
5372
/* end confdefs.h.  */
 
5373
#include <errno.h>
 
5374
 
 
5375
int
 
5376
main ()
 
5377
{
 
5378
#ifndef program_invocation_short_name
 
5379
  char *p = (char *) program_invocation_short_name;
 
5380
#endif
 
5381
 
 
5382
  ;
 
5383
  return 0;
 
5384
}
 
5385
_ACEOF
 
5386
rm -f conftest.$ac_objext
 
5387
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5388
  (eval $ac_compile) 2>conftest.er1
 
5389
  ac_status=$?
 
5390
  grep -v '^ *+' conftest.er1 >conftest.err
 
5391
  rm -f conftest.er1
 
5392
  cat conftest.err >&5
 
5393
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5394
  (exit $ac_status); } &&
 
5395
         { ac_try='test -z "$ac_c_werror_flag"
 
5396
                         || test ! -s conftest.err'
 
5397
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5398
  (eval $ac_try) 2>&5
 
5399
  ac_status=$?
 
5400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5401
  (exit $ac_status); }; } &&
 
5402
         { ac_try='test -s conftest.$ac_objext'
 
5403
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5404
  (eval $ac_try) 2>&5
 
5405
  ac_status=$?
 
5406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5407
  (exit $ac_status); }; }; then
 
5408
  ac_cv_have_decl_program_invocation_short_name=yes
 
5409
else
 
5410
  echo "$as_me: failed program was:" >&5
 
5411
sed 's/^/| /' conftest.$ac_ext >&5
 
5412
 
 
5413
ac_cv_have_decl_program_invocation_short_name=no
 
5414
fi
 
5415
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5416
fi
 
5417
echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_short_name" >&5
 
5418
echo "${ECHO_T}$ac_cv_have_decl_program_invocation_short_name" >&6
 
5419
if test $ac_cv_have_decl_program_invocation_short_name = yes; then
 
5420
 
 
5421
cat >>confdefs.h <<_ACEOF
 
5422
#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1
 
5423
_ACEOF
 
5424
 
 
5425
 
 
5426
else
 
5427
  cat >>confdefs.h <<_ACEOF
 
5428
#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 0
 
5429
_ACEOF
 
5430
 
 
5431
 
 
5432
fi
 
5433
 
 
5434
 
 
5435
 
 
5436
  STDARG_H='';
 
5437
  NEXT_STDARG_H='<stdarg.h>';
 
5438
  echo "$as_me:$LINENO: checking for va_copy" >&5
 
5439
echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
 
5440
  if test "${gl_cv_func_va_copy+set}" = set; then
 
5441
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5442
else
 
5443
 
 
5444
    cat >conftest.$ac_ext <<_ACEOF
 
5445
/* confdefs.h.  */
 
5446
_ACEOF
 
5447
cat confdefs.h >>conftest.$ac_ext
 
5448
cat >>conftest.$ac_ext <<_ACEOF
 
5449
/* end confdefs.h.  */
 
5450
#include <stdarg.h>
 
5451
int
 
5452
main ()
 
5453
{
 
5454
 
 
5455
#ifndef va_copy
 
5456
void (*func) (va_list, va_list) = va_copy;
 
5457
#endif
 
5458
 
 
5459
  ;
 
5460
  return 0;
 
5461
}
 
5462
_ACEOF
 
5463
rm -f conftest.$ac_objext
 
5464
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5465
  (eval $ac_compile) 2>conftest.er1
 
5466
  ac_status=$?
 
5467
  grep -v '^ *+' conftest.er1 >conftest.err
 
5468
  rm -f conftest.er1
 
5469
  cat conftest.err >&5
 
5470
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5471
  (exit $ac_status); } &&
 
5472
         { ac_try='test -z "$ac_c_werror_flag"
 
5473
                         || test ! -s conftest.err'
 
5474
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5475
  (eval $ac_try) 2>&5
 
5476
  ac_status=$?
 
5477
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5478
  (exit $ac_status); }; } &&
 
5479
         { ac_try='test -s conftest.$ac_objext'
 
5480
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5481
  (eval $ac_try) 2>&5
 
5482
  ac_status=$?
 
5483
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5484
  (exit $ac_status); }; }; then
 
5485
  gl_cv_func_va_copy=yes
 
5486
else
 
5487
  echo "$as_me: failed program was:" >&5
 
5488
sed 's/^/| /' conftest.$ac_ext >&5
 
5489
 
 
5490
gl_cv_func_va_copy=no
 
5491
fi
 
5492
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5493
fi
 
5494
 
 
5495
  echo "$as_me:$LINENO: result: $gl_cv_func_va_copy" >&5
 
5496
echo "${ECHO_T}$gl_cv_func_va_copy" >&6
 
5497
  if test $gl_cv_func_va_copy = no; then
 
5498
                                    cat >conftest.$ac_ext <<_ACEOF
 
5499
/* confdefs.h.  */
 
5500
_ACEOF
 
5501
cat confdefs.h >>conftest.$ac_ext
 
5502
cat >>conftest.$ac_ext <<_ACEOF
 
5503
/* end confdefs.h.  */
 
5504
#if defined _AIX && !defined __GNUC__
 
5505
        AIX vaccine
 
5506
       #endif
 
5507
 
 
5508
_ACEOF
 
5509
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5510
  $EGREP "vaccine" >/dev/null 2>&1; then
 
5511
  gl_aixcc=yes
 
5512
else
 
5513
  gl_aixcc=no
 
5514
fi
 
5515
rm -f conftest*
 
5516
 
 
5517
    if test $gl_aixcc = yes; then
 
5518
            STDARG_H=stdarg.h
 
5519
 
 
5520
 
 
5521
 
 
5522
 
 
5523
  :
 
5524
 
 
5525
 
 
5526
 
 
5527
 
 
5528
 
 
5529
 
 
5530
 
 
5531
     if test $gl_cv_have_include_next = yes; then
 
5532
       gl_cv_next_stdarg_h='<'stdarg.h'>'
 
5533
     else
 
5534
       echo "$as_me:$LINENO: checking absolute name of <stdarg.h>" >&5
 
5535
echo $ECHO_N "checking absolute name of <stdarg.h>... $ECHO_C" >&6
 
5536
if test "${gl_cv_next_stdarg_h+set}" = set; then
 
5537
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5538
else
 
5539
 
 
5540
          if test $ac_cv_header_stdarg_h = yes; then
 
5541
            cat >conftest.$ac_ext <<_ACEOF
 
5542
/* confdefs.h.  */
 
5543
_ACEOF
 
5544
cat confdefs.h >>conftest.$ac_ext
 
5545
cat >>conftest.$ac_ext <<_ACEOF
 
5546
/* end confdefs.h.  */
 
5547
#include <stdarg.h>
 
5548
 
 
5549
_ACEOF
 
5550
                                                                    case "$host_os" in
 
5551
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
5552
              *)    gl_absname_cpp="$ac_cpp" ;;
 
5553
            esac
 
5554
                                    gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
5555
               sed -n '\#/stdarg.h#{
 
5556
                 s#.*"\(.*/stdarg.h\)".*#\1#
 
5557
                 s#^/[^/]#//&#
 
5558
                 p
 
5559
                 q
 
5560
               }'`'"'
 
5561
          else
 
5562
            gl_cv_next_stdarg_h='<'stdarg.h'>'
 
5563
          fi
 
5564
 
 
5565
fi
 
5566
echo "$as_me:$LINENO: result: $gl_cv_next_stdarg_h" >&5
 
5567
echo "${ECHO_T}$gl_cv_next_stdarg_h" >&6
 
5568
     fi
 
5569
     NEXT_STDARG_H=$gl_cv_next_stdarg_h
 
5570
 
 
5571
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
5572
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
5573
       gl_next_as_first_directive='<'stdarg.h'>'
 
5574
     else
 
5575
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
5576
       gl_next_as_first_directive=$gl_cv_next_stdarg_h
 
5577
     fi
 
5578
     NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
 
5579
 
 
5580
 
 
5581
 
 
5582
            if test "$gl_cv_next_stdarg_h" = '""'; then
 
5583
        gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
 
5584
        NEXT_STDARG_H="$gl_cv_next_stdarg_h"
 
5585
      fi
 
5586
    else
 
5587
 
 
5588
  saved_as_echo_n="$as_echo_n"
 
5589
  as_echo_n=':'
 
5590
  if test "${gl_cv_func___va_copy+set}" = set; then
 
5591
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5592
else
 
5593
 
 
5594
        cat >conftest.$ac_ext <<_ACEOF
 
5595
/* confdefs.h.  */
 
5596
_ACEOF
 
5597
cat confdefs.h >>conftest.$ac_ext
 
5598
cat >>conftest.$ac_ext <<_ACEOF
 
5599
/* end confdefs.h.  */
 
5600
#include <stdarg.h>
 
5601
int
 
5602
main ()
 
5603
{
 
5604
 
 
5605
#ifndef __va_copy
 
5606
error, bail out
 
5607
#endif
 
5608
 
 
5609
  ;
 
5610
  return 0;
 
5611
}
 
5612
_ACEOF
 
5613
rm -f conftest.$ac_objext
 
5614
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5615
  (eval $ac_compile) 2>conftest.er1
 
5616
  ac_status=$?
 
5617
  grep -v '^ *+' conftest.er1 >conftest.err
 
5618
  rm -f conftest.er1
 
5619
  cat conftest.err >&5
 
5620
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5621
  (exit $ac_status); } &&
 
5622
         { ac_try='test -z "$ac_c_werror_flag"
 
5623
                         || test ! -s conftest.err'
 
5624
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5625
  (eval $ac_try) 2>&5
 
5626
  ac_status=$?
 
5627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5628
  (exit $ac_status); }; } &&
 
5629
         { ac_try='test -s conftest.$ac_objext'
 
5630
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5631
  (eval $ac_try) 2>&5
 
5632
  ac_status=$?
 
5633
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5634
  (exit $ac_status); }; }; then
 
5635
  gl_cv_func___va_copy=yes
 
5636
else
 
5637
  echo "$as_me: failed program was:" >&5
 
5638
sed 's/^/| /' conftest.$ac_ext >&5
 
5639
 
 
5640
gl_cv_func___va_copy=no
 
5641
fi
 
5642
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5643
fi
 
5644
 
 
5645
  as_echo_n="$saved_as_echo_n"
 
5646
 
 
5647
      if test $gl_cv_func___va_copy = yes; then
 
5648
 
 
5649
cat >>confdefs.h <<\_ACEOF
 
5650
#define va_copy __va_copy
 
5651
_ACEOF
 
5652
 
 
5653
      else
 
5654
 
 
5655
 
 
5656
 
 
5657
cat >>confdefs.h <<\_ACEOF
 
5658
#define va_copy gl_va_copy
 
5659
_ACEOF
 
5660
 
 
5661
      fi
 
5662
    fi
 
5663
  fi
 
5664
 
 
5665
 
 
5666
 
 
5667
 
 
5668
  if test $gt_cv_c_wchar_t = no; then
 
5669
    HAVE_WCHAR_T=0
 
5670
    STDDEF_H=stddef.h
 
5671
  fi
 
5672
  echo "$as_me:$LINENO: checking whether NULL can be used in arbitrary expressions" >&5
 
5673
echo $ECHO_N "checking whether NULL can be used in arbitrary expressions... $ECHO_C" >&6
 
5674
if test "${gl_cv_decl_null_works+set}" = set; then
 
5675
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5676
else
 
5677
  cat >conftest.$ac_ext <<_ACEOF
 
5678
/* confdefs.h.  */
 
5679
_ACEOF
 
5680
cat confdefs.h >>conftest.$ac_ext
 
5681
cat >>conftest.$ac_ext <<_ACEOF
 
5682
/* end confdefs.h.  */
 
5683
#include <stddef.h>
 
5684
      int test[2 * (sizeof NULL == sizeof (void *)) -1];
 
5685
 
 
5686
int
 
5687
main ()
 
5688
{
 
5689
 
 
5690
  ;
 
5691
  return 0;
 
5692
}
 
5693
_ACEOF
 
5694
rm -f conftest.$ac_objext
 
5695
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5696
  (eval $ac_compile) 2>conftest.er1
 
5697
  ac_status=$?
 
5698
  grep -v '^ *+' conftest.er1 >conftest.err
 
5699
  rm -f conftest.er1
 
5700
  cat conftest.err >&5
 
5701
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5702
  (exit $ac_status); } &&
 
5703
         { ac_try='test -z "$ac_c_werror_flag"
 
5704
                         || test ! -s conftest.err'
 
5705
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5706
  (eval $ac_try) 2>&5
 
5707
  ac_status=$?
 
5708
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5709
  (exit $ac_status); }; } &&
 
5710
         { ac_try='test -s conftest.$ac_objext'
 
5711
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5712
  (eval $ac_try) 2>&5
 
5713
  ac_status=$?
 
5714
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5715
  (exit $ac_status); }; }; then
 
5716
  gl_cv_decl_null_works=yes
 
5717
else
 
5718
  echo "$as_me: failed program was:" >&5
 
5719
sed 's/^/| /' conftest.$ac_ext >&5
 
5720
 
 
5721
gl_cv_decl_null_works=no
 
5722
fi
 
5723
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5724
fi
 
5725
echo "$as_me:$LINENO: result: $gl_cv_decl_null_works" >&5
 
5726
echo "${ECHO_T}$gl_cv_decl_null_works" >&6
 
5727
  if test $gl_cv_decl_null_works = no; then
 
5728
    REPLACE_NULL=1
 
5729
    STDDEF_H=stddef.h
 
5730
  fi
 
5731
  if test -n "$STDDEF_H"; then
 
5732
 
 
5733
 
 
5734
 
 
5735
 
 
5736
  :
 
5737
 
 
5738
 
 
5739
 
 
5740
 
 
5741
 
 
5742
 
 
5743
 
 
5744
     if test $gl_cv_have_include_next = yes; then
 
5745
       gl_cv_next_stddef_h='<'stddef.h'>'
 
5746
     else
 
5747
       echo "$as_me:$LINENO: checking absolute name of <stddef.h>" >&5
 
5748
echo $ECHO_N "checking absolute name of <stddef.h>... $ECHO_C" >&6
 
5749
if test "${gl_cv_next_stddef_h+set}" = set; then
 
5750
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5751
else
 
5752
 
 
5753
          if test $ac_cv_header_stddef_h = yes; then
 
5754
            cat >conftest.$ac_ext <<_ACEOF
 
5755
/* confdefs.h.  */
 
5756
_ACEOF
 
5757
cat confdefs.h >>conftest.$ac_ext
 
5758
cat >>conftest.$ac_ext <<_ACEOF
 
5759
/* end confdefs.h.  */
 
5760
#include <stddef.h>
 
5761
 
 
5762
_ACEOF
 
5763
                                                                    case "$host_os" in
 
5764
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
5765
              *)    gl_absname_cpp="$ac_cpp" ;;
 
5766
            esac
 
5767
                                    gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
5768
               sed -n '\#/stddef.h#{
 
5769
                 s#.*"\(.*/stddef.h\)".*#\1#
 
5770
                 s#^/[^/]#//&#
 
5771
                 p
 
5772
                 q
 
5773
               }'`'"'
 
5774
          else
 
5775
            gl_cv_next_stddef_h='<'stddef.h'>'
 
5776
          fi
 
5777
 
 
5778
fi
 
5779
echo "$as_me:$LINENO: result: $gl_cv_next_stddef_h" >&5
 
5780
echo "${ECHO_T}$gl_cv_next_stddef_h" >&6
 
5781
     fi
 
5782
     NEXT_STDDEF_H=$gl_cv_next_stddef_h
 
5783
 
 
5784
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
5785
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
5786
       gl_next_as_first_directive='<'stddef.h'>'
 
5787
     else
 
5788
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
5789
       gl_next_as_first_directive=$gl_cv_next_stddef_h
 
5790
     fi
 
5791
     NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
 
5792
 
 
5793
 
 
5794
 
 
5795
  fi
 
5796
 
 
5797
 
 
5798
 
 
5799
 
 
5800
 
 
5801
 
 
5802
 
 
5803
 
 
5804
  :
 
5805
 
 
5806
 
 
5807
 
 
5808
 
 
5809
 
 
5810
 
 
5811
 
 
5812
     if test $gl_cv_have_include_next = yes; then
 
5813
       gl_cv_next_unistd_h='<'unistd.h'>'
 
5814
     else
 
5815
       echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
 
5816
echo $ECHO_N "checking absolute name of <unistd.h>... $ECHO_C" >&6
 
5817
if test "${gl_cv_next_unistd_h+set}" = set; then
 
5818
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5819
else
 
5820
 
 
5821
          if test $ac_cv_header_unistd_h = yes; then
 
5822
            cat >conftest.$ac_ext <<_ACEOF
 
5823
/* confdefs.h.  */
 
5824
_ACEOF
 
5825
cat confdefs.h >>conftest.$ac_ext
 
5826
cat >>conftest.$ac_ext <<_ACEOF
 
5827
/* end confdefs.h.  */
 
5828
#include <unistd.h>
 
5829
 
 
5830
_ACEOF
 
5831
                                                                    case "$host_os" in
 
5832
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
5833
              *)    gl_absname_cpp="$ac_cpp" ;;
 
5834
            esac
 
5835
                                    gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
5836
               sed -n '\#/unistd.h#{
 
5837
                 s#.*"\(.*/unistd.h\)".*#\1#
 
5838
                 s#^/[^/]#//&#
 
5839
                 p
 
5840
                 q
 
5841
               }'`'"'
 
5842
          else
 
5843
            gl_cv_next_unistd_h='<'unistd.h'>'
 
5844
          fi
 
5845
 
 
5846
fi
 
5847
echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
 
5848
echo "${ECHO_T}$gl_cv_next_unistd_h" >&6
 
5849
     fi
 
5850
     NEXT_UNISTD_H=$gl_cv_next_unistd_h
 
5851
 
 
5852
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
5853
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
5854
       gl_next_as_first_directive='<'unistd.h'>'
 
5855
     else
 
5856
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
5857
       gl_next_as_first_directive=$gl_cv_next_unistd_h
 
5858
     fi
 
5859
     NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
 
5860
 
 
5861
 
 
5862
 
 
5863
 
 
5864
 
 
5865
  :
 
5866
 
 
5867
 
 
5868
 
 
5869
 
 
5870
 
 
5871
  if test $ac_cv_header_unistd_h = yes; then
 
5872
    HAVE_UNISTD_H=1
 
5873
  else
 
5874
    HAVE_UNISTD_H=0
 
5875
  fi
 
5876
 
 
5877
 
 
5878
 
 
5879
# Check whether --with-packager or --without-packager was given.
 
5880
if test "${with_packager+set}" = set; then
 
5881
  withval="$with_packager"
 
5882
        case $withval in
 
5883
        yes|no) ;;
 
5884
        *)
 
5885
cat >>confdefs.h <<_ACEOF
 
5886
#define PACKAGE_PACKAGER "$withval"
 
5887
_ACEOF
 
5888
 ;;
 
5889
      esac
 
5890
 
 
5891
fi;
 
5892
 
 
5893
 
 
5894
# Check whether --with-packager-version or --without-packager-version was given.
 
5895
if test "${with_packager_version+set}" = set; then
 
5896
  withval="$with_packager_version"
 
5897
        case $withval in
 
5898
        yes|no) ;;
 
5899
        *)
 
5900
cat >>confdefs.h <<_ACEOF
 
5901
#define PACKAGE_PACKAGER_VERSION "$withval"
 
5902
_ACEOF
 
5903
 ;;
 
5904
      esac
 
5905
 
 
5906
fi;
 
5907
 
 
5908
 
 
5909
# Check whether --with-packager-bug-reports or --without-packager-bug-reports was given.
 
5910
if test "${with_packager_bug_reports+set}" = set; then
 
5911
  withval="$with_packager_bug_reports"
 
5912
        case $withval in
 
5913
        yes|no) ;;
 
5914
        *)
 
5915
cat >>confdefs.h <<_ACEOF
 
5916
#define PACKAGE_PACKAGER_BUG_REPORTS "$withval"
 
5917
_ACEOF
 
5918
 ;;
 
5919
      esac
 
5920
 
 
5921
fi;
 
5922
 
 
5923
  if test "X$with_packager" = "X" && \
 
5924
     test "X$with_packager_version$with_packager_bug_reports" != "X"
 
5925
  then
 
5926
    { { echo "$as_me:$LINENO: error: The --with-packager-{bug-reports,version} options require --with-packager" >&5
 
5927
echo "$as_me: error: The --with-packager-{bug-reports,version} options require --with-packager" >&2;}
 
5928
   { (exit 1); exit 1; }; }
 
5929
  fi
 
5930
 
 
5931
 
 
5932
 
 
5933
 
 
5934
 
 
5935
 
 
5936
 
 
5937
 
 
5938
 
 
5939
 
 
5940
  gltests_libdeps=
 
5941
  gltests_ltlibdeps=
 
5942
 
 
5943
 
 
5944
 
 
5945
 
 
5946
 
 
5947
 
 
5948
 
 
5949
 
 
5950
 
 
5951
  gl_source_base='tests'
 
5952
 
 
5953
 
 
5954
 
 
5955
 
 
5956
 
 
5957
 
 
5958
 
 
5959
 
 
5960
 
 
5961
# Checks for more programs.
 
5962
# Find a good install program.  We prefer a C program (faster),
 
5963
# so one script is as good as another.  But avoid the broken or
 
5964
# incompatible versions:
 
5965
# SysV /etc/install, /usr/sbin/install
 
5966
# SunOS /usr/etc/install
 
5967
# IRIX /sbin/install
 
5968
# AIX /bin/install
 
5969
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
5970
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
5971
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
5972
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
5973
# OS/2's system install, which has a completely different semantic
 
5974
# ./install, which can be erroneously created by make from ./install.sh.
 
5975
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
5976
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
5977
if test -z "$INSTALL"; then
 
5978
if test "${ac_cv_path_install+set}" = set; then
 
5979
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5980
else
 
5981
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5982
for as_dir in $PATH
 
5983
do
 
5984
  IFS=$as_save_IFS
 
5985
  test -z "$as_dir" && as_dir=.
 
5986
  # Account for people who put trailing slashes in PATH elements.
 
5987
case $as_dir/ in
 
5988
  ./ | .// | /cC/* | \
 
5989
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
5990
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
5991
  /usr/ucb/* ) ;;
 
5992
  *)
 
5993
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
5994
    # Don't use installbsd from OSF since it installs stuff as root
 
5995
    # by default.
 
5996
    for ac_prog in ginstall scoinst install; do
 
5997
      for ac_exec_ext in '' $ac_executable_extensions; do
 
5998
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
5999
          if test $ac_prog = install &&
 
6000
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
6001
            # AIX install.  It has an incompatible calling convention.
 
6002
            :
 
6003
          elif test $ac_prog = install &&
 
6004
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
6005
            # program-specific install script used by HP pwplus--don't use.
 
6006
            :
 
6007
          else
 
6008
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
6009
            break 3
 
6010
          fi
 
6011
        fi
 
6012
      done
 
6013
    done
 
6014
    ;;
 
6015
esac
 
6016
done
 
6017
 
 
6018
 
 
6019
fi
 
6020
  if test "${ac_cv_path_install+set}" = set; then
 
6021
    INSTALL=$ac_cv_path_install
 
6022
  else
 
6023
    # As a last resort, use the slow shell script.  We don't cache a
 
6024
    # path for INSTALL within a source directory, because that will
 
6025
    # break other packages using the cache if that directory is
 
6026
    # removed, or if the path is relative.
 
6027
    INSTALL=$ac_install_sh
 
6028
  fi
 
6029
fi
 
6030
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
6031
echo "${ECHO_T}$INSTALL" >&6
 
6032
 
 
6033
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
6034
# It thinks the first close brace ends the variable substitution.
 
6035
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
6036
 
 
6037
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
6038
 
 
6039
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
6040
 
 
6041
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
6042
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
6043
LN_S=$as_ln_s
 
6044
if test "$LN_S" = "ln -s"; then
 
6045
  echo "$as_me:$LINENO: result: yes" >&5
 
6046
echo "${ECHO_T}yes" >&6
 
6047
else
 
6048
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
6049
echo "${ECHO_T}no, using $LN_S" >&6
 
6050
fi
 
6051
 
 
6052
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
6053
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
6054
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
6055
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
6056
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6057
else
 
6058
  cat >conftest.make <<\_ACEOF
 
6059
all:
 
6060
        @echo 'ac_maketemp="$(MAKE)"'
 
6061
_ACEOF
 
6062
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
6063
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
6064
if test -n "$ac_maketemp"; then
 
6065
  eval ac_cv_prog_make_${ac_make}_set=yes
 
6066
else
 
6067
  eval ac_cv_prog_make_${ac_make}_set=no
 
6068
fi
 
6069
rm -f conftest.make
 
6070
fi
 
6071
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
6072
  echo "$as_me:$LINENO: result: yes" >&5
 
6073
echo "${ECHO_T}yes" >&6
 
6074
  SET_MAKE=
 
6075
else
 
6076
  echo "$as_me:$LINENO: result: no" >&5
 
6077
echo "${ECHO_T}no" >&6
 
6078
  SET_MAKE="MAKE=${MAKE-make}"
 
6079
fi
 
6080
 
 
6081
 
 
6082
# Checks for libraries.
 
6083
 
 
6084
# Checks for header files.
 
6085
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
6086
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
6087
if test "${ac_cv_header_stdc+set}" = set; then
 
6088
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6089
else
 
6090
  cat >conftest.$ac_ext <<_ACEOF
 
6091
/* confdefs.h.  */
 
6092
_ACEOF
 
6093
cat confdefs.h >>conftest.$ac_ext
 
6094
cat >>conftest.$ac_ext <<_ACEOF
 
6095
/* end confdefs.h.  */
 
6096
#include <stdlib.h>
 
6097
#include <stdarg.h>
 
6098
#include <string.h>
 
6099
#include <float.h>
 
6100
 
 
6101
int
 
6102
main ()
 
6103
{
 
6104
 
 
6105
  ;
 
6106
  return 0;
 
6107
}
 
6108
_ACEOF
 
6109
rm -f conftest.$ac_objext
 
6110
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6111
  (eval $ac_compile) 2>conftest.er1
 
6112
  ac_status=$?
 
6113
  grep -v '^ *+' conftest.er1 >conftest.err
 
6114
  rm -f conftest.er1
 
6115
  cat conftest.err >&5
 
6116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6117
  (exit $ac_status); } &&
 
6118
         { ac_try='test -z "$ac_c_werror_flag"
 
6119
                         || test ! -s conftest.err'
 
6120
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6121
  (eval $ac_try) 2>&5
 
6122
  ac_status=$?
 
6123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6124
  (exit $ac_status); }; } &&
 
6125
         { ac_try='test -s conftest.$ac_objext'
 
6126
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6127
  (eval $ac_try) 2>&5
 
6128
  ac_status=$?
 
6129
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6130
  (exit $ac_status); }; }; then
 
6131
  ac_cv_header_stdc=yes
 
6132
else
 
6133
  echo "$as_me: failed program was:" >&5
 
6134
sed 's/^/| /' conftest.$ac_ext >&5
 
6135
 
 
6136
ac_cv_header_stdc=no
 
6137
fi
 
6138
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6139
 
 
6140
if test $ac_cv_header_stdc = yes; then
 
6141
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
6142
  cat >conftest.$ac_ext <<_ACEOF
 
6143
/* confdefs.h.  */
 
6144
_ACEOF
 
6145
cat confdefs.h >>conftest.$ac_ext
 
6146
cat >>conftest.$ac_ext <<_ACEOF
 
6147
/* end confdefs.h.  */
 
6148
#include <string.h>
 
6149
 
 
6150
_ACEOF
 
6151
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6152
  $EGREP "memchr" >/dev/null 2>&1; then
 
6153
  :
 
6154
else
 
6155
  ac_cv_header_stdc=no
 
6156
fi
 
6157
rm -f conftest*
 
6158
 
 
6159
fi
 
6160
 
 
6161
if test $ac_cv_header_stdc = yes; then
 
6162
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
6163
  cat >conftest.$ac_ext <<_ACEOF
 
6164
/* confdefs.h.  */
 
6165
_ACEOF
 
6166
cat confdefs.h >>conftest.$ac_ext
 
6167
cat >>conftest.$ac_ext <<_ACEOF
 
6168
/* end confdefs.h.  */
 
6169
#include <stdlib.h>
 
6170
 
 
6171
_ACEOF
 
6172
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6173
  $EGREP "free" >/dev/null 2>&1; then
 
6174
  :
 
6175
else
 
6176
  ac_cv_header_stdc=no
 
6177
fi
 
6178
rm -f conftest*
 
6179
 
 
6180
fi
 
6181
 
 
6182
if test $ac_cv_header_stdc = yes; then
 
6183
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
6184
  if test "$cross_compiling" = yes; then
 
6185
  :
 
6186
else
 
6187
  cat >conftest.$ac_ext <<_ACEOF
 
6188
/* confdefs.h.  */
 
6189
_ACEOF
 
6190
cat confdefs.h >>conftest.$ac_ext
 
6191
cat >>conftest.$ac_ext <<_ACEOF
 
6192
/* end confdefs.h.  */
 
6193
#include <ctype.h>
 
6194
#if ((' ' & 0x0FF) == 0x020)
 
6195
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
6196
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
6197
#else
 
6198
# define ISLOWER(c) \
 
6199
                   (('a' <= (c) && (c) <= 'i') \
 
6200
                     || ('j' <= (c) && (c) <= 'r') \
 
6201
                     || ('s' <= (c) && (c) <= 'z'))
 
6202
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
6203
#endif
 
6204
 
 
6205
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
6206
int
 
6207
main ()
 
6208
{
 
6209
  int i;
 
6210
  for (i = 0; i < 256; i++)
 
6211
    if (XOR (islower (i), ISLOWER (i))
 
6212
        || toupper (i) != TOUPPER (i))
 
6213
      exit(2);
 
6214
  exit (0);
 
6215
}
 
6216
_ACEOF
 
6217
rm -f conftest$ac_exeext
 
6218
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6219
  (eval $ac_link) 2>&5
 
6220
  ac_status=$?
 
6221
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6222
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6223
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6224
  (eval $ac_try) 2>&5
 
6225
  ac_status=$?
 
6226
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6227
  (exit $ac_status); }; }; then
 
6228
  :
 
6229
else
 
6230
  echo "$as_me: program exited with status $ac_status" >&5
 
6231
echo "$as_me: failed program was:" >&5
 
6232
sed 's/^/| /' conftest.$ac_ext >&5
 
6233
 
 
6234
( exit $ac_status )
 
6235
ac_cv_header_stdc=no
 
6236
fi
 
6237
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6238
fi
 
6239
fi
 
6240
fi
 
6241
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
6242
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
6243
if test $ac_cv_header_stdc = yes; then
 
6244
 
 
6245
cat >>confdefs.h <<\_ACEOF
 
6246
#define STDC_HEADERS 1
 
6247
_ACEOF
 
6248
 
 
6249
fi
 
6250
 
 
6251
 
 
6252
 
 
6253
 
3675
6254
for ac_header in stddef.h stdlib.h string.h
3676
6255
do
3677
6256
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4787
7366
 
4788
7367
 
4789
7368
# increment if the interface has additions, changes, removals.
4790
 
LIBLOUIS_CURRENT=2
 
7369
LIBLOUIS_CURRENT=3
4791
7370
 
4792
7371
# increment any time the source changes; set to
4793
7372
#  0 if you increment CURRENT
4794
 
LIBLOUIS_REVISION=5
 
7373
LIBLOUIS_REVISION=0
4795
7374
 
4796
7375
# increment if any interfaces have been added; set to 0
4797
7376
#  if any interfaces have been changed or removed. removal has
4798
7377
#  precedence over adding, so set to 0 if both happened.
4799
 
LIBLOUIS_AGE=2
 
7378
LIBLOUIS_AGE=1
4800
7379
 
4801
7380
 
4802
7381
 
5113
7692
  enable_fast_install=yes
5114
7693
fi;
5115
7694
 
5116
 
# Make sure we can run config.sub.
5117
 
$ac_config_sub sun4 >/dev/null 2>&1 ||
5118
 
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
5119
 
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
5120
 
   { (exit 1); exit 1; }; }
5121
 
 
5122
 
echo "$as_me:$LINENO: checking build system type" >&5
5123
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6
5124
 
if test "${ac_cv_build+set}" = set; then
5125
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5126
 
else
5127
 
  ac_cv_build_alias=$build_alias
5128
 
test -z "$ac_cv_build_alias" &&
5129
 
  ac_cv_build_alias=`$ac_config_guess`
5130
 
test -z "$ac_cv_build_alias" &&
5131
 
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5132
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5133
 
   { (exit 1); exit 1; }; }
5134
 
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
5135
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
5136
 
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
5137
 
   { (exit 1); exit 1; }; }
5138
 
 
5139
 
fi
5140
 
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5141
 
echo "${ECHO_T}$ac_cv_build" >&6
5142
 
build=$ac_cv_build
5143
 
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5144
 
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5145
 
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5146
 
 
5147
 
 
5148
 
echo "$as_me:$LINENO: checking host system type" >&5
5149
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6
5150
 
if test "${ac_cv_host+set}" = set; then
5151
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5152
 
else
5153
 
  ac_cv_host_alias=$host_alias
5154
 
test -z "$ac_cv_host_alias" &&
5155
 
  ac_cv_host_alias=$ac_cv_build_alias
5156
 
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5157
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5158
 
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5159
 
   { (exit 1); exit 1; }; }
5160
 
 
5161
 
fi
5162
 
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5163
 
echo "${ECHO_T}$ac_cv_host" >&6
5164
 
host=$ac_cv_host
5165
 
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5166
 
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5167
 
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5168
 
 
5169
 
 
5170
7695
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5171
7696
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5172
7697
if test "${lt_cv_path_SED+set}" = set; then
5636
8161
  ;;
5637
8162
*-*-irix6*)
5638
8163
  # Find out which ABI we are using.
5639
 
  echo '#line 5639 "configure"' > conftest.$ac_ext
 
8164
  echo '#line 8164 "configure"' > conftest.$ac_ext
5640
8165
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5641
8166
  (eval $ac_compile) 2>&5
5642
8167
  ac_status=$?
7004
9529
 
7005
9530
 
7006
9531
# Provide some information about the compiler.
7007
 
echo "$as_me:7007:" \
 
9532
echo "$as_me:9532:" \
7008
9533
     "checking for Fortran 77 compiler version" >&5
7009
9534
ac_compiler=`set X $ac_compile; echo $2`
7010
9535
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8067
10592
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8068
10593
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8069
10594
   -e 's:$: $lt_compiler_flag:'`
8070
 
   (eval echo "\"\$as_me:8070: $lt_compile\"" >&5)
 
10595
   (eval echo "\"\$as_me:10595: $lt_compile\"" >&5)
8071
10596
   (eval "$lt_compile" 2>conftest.err)
8072
10597
   ac_status=$?
8073
10598
   cat conftest.err >&5
8074
 
   echo "$as_me:8074: \$? = $ac_status" >&5
 
10599
   echo "$as_me:10599: \$? = $ac_status" >&5
8075
10600
   if (exit $ac_status) && test -s "$ac_outfile"; then
8076
10601
     # The compiler can only warn and ignore the option if not recognized
8077
10602
     # So say no if there are warnings other than the usual output.
8335
10860
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8336
10861
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8337
10862
   -e 's:$: $lt_compiler_flag:'`
8338
 
   (eval echo "\"\$as_me:8338: $lt_compile\"" >&5)
 
10863
   (eval echo "\"\$as_me:10863: $lt_compile\"" >&5)
8339
10864
   (eval "$lt_compile" 2>conftest.err)
8340
10865
   ac_status=$?
8341
10866
   cat conftest.err >&5
8342
 
   echo "$as_me:8342: \$? = $ac_status" >&5
 
10867
   echo "$as_me:10867: \$? = $ac_status" >&5
8343
10868
   if (exit $ac_status) && test -s "$ac_outfile"; then
8344
10869
     # The compiler can only warn and ignore the option if not recognized
8345
10870
     # So say no if there are warnings other than the usual output.
8439
10964
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8440
10965
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8441
10966
   -e 's:$: $lt_compiler_flag:'`
8442
 
   (eval echo "\"\$as_me:8442: $lt_compile\"" >&5)
 
10967
   (eval echo "\"\$as_me:10967: $lt_compile\"" >&5)
8443
10968
   (eval "$lt_compile" 2>out/conftest.err)
8444
10969
   ac_status=$?
8445
10970
   cat out/conftest.err >&5
8446
 
   echo "$as_me:8446: \$? = $ac_status" >&5
 
10971
   echo "$as_me:10971: \$? = $ac_status" >&5
8447
10972
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8448
10973
   then
8449
10974
     # The compiler can only warn and ignore the option if not recognized
9908
12433
  libsuff=
9909
12434
  case "$host_cpu" in
9910
12435
  x86_64*|s390x*|powerpc64*)
9911
 
    echo '#line 9911 "configure"' > conftest.$ac_ext
 
12436
    echo '#line 12436 "configure"' > conftest.$ac_ext
9912
12437
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9913
12438
  (eval $ac_compile) 2>&5
9914
12439
  ac_status=$?
10805
13330
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10806
13331
  lt_status=$lt_dlunknown
10807
13332
  cat > conftest.$ac_ext <<EOF
10808
 
#line 10808 "configure"
 
13333
#line 13333 "configure"
10809
13334
#include "confdefs.h"
10810
13335
 
10811
13336
#if HAVE_DLFCN_H
10905
13430
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10906
13431
  lt_status=$lt_dlunknown
10907
13432
  cat > conftest.$ac_ext <<EOF
10908
 
#line 10908 "configure"
 
13433
#line 13433 "configure"
10909
13434
#include "confdefs.h"
10910
13435
 
10911
13436
#if HAVE_DLFCN_H
13248
15773
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13249
15774
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13250
15775
   -e 's:$: $lt_compiler_flag:'`
13251
 
   (eval echo "\"\$as_me:13251: $lt_compile\"" >&5)
 
15776
   (eval echo "\"\$as_me:15776: $lt_compile\"" >&5)
13252
15777
   (eval "$lt_compile" 2>conftest.err)
13253
15778
   ac_status=$?
13254
15779
   cat conftest.err >&5
13255
 
   echo "$as_me:13255: \$? = $ac_status" >&5
 
15780
   echo "$as_me:15780: \$? = $ac_status" >&5
13256
15781
   if (exit $ac_status) && test -s "$ac_outfile"; then
13257
15782
     # The compiler can only warn and ignore the option if not recognized
13258
15783
     # So say no if there are warnings other than the usual output.
13352
15877
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13353
15878
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13354
15879
   -e 's:$: $lt_compiler_flag:'`
13355
 
   (eval echo "\"\$as_me:13355: $lt_compile\"" >&5)
 
15880
   (eval echo "\"\$as_me:15880: $lt_compile\"" >&5)
13356
15881
   (eval "$lt_compile" 2>out/conftest.err)
13357
15882
   ac_status=$?
13358
15883
   cat out/conftest.err >&5
13359
 
   echo "$as_me:13359: \$? = $ac_status" >&5
 
15884
   echo "$as_me:15884: \$? = $ac_status" >&5
13360
15885
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13361
15886
   then
13362
15887
     # The compiler can only warn and ignore the option if not recognized
13888
16413
  libsuff=
13889
16414
  case "$host_cpu" in
13890
16415
  x86_64*|s390x*|powerpc64*)
13891
 
    echo '#line 13891 "configure"' > conftest.$ac_ext
 
16416
    echo '#line 16416 "configure"' > conftest.$ac_ext
13892
16417
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13893
16418
  (eval $ac_compile) 2>&5
13894
16419
  ac_status=$?
14946
17471
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14947
17472
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14948
17473
   -e 's:$: $lt_compiler_flag:'`
14949
 
   (eval echo "\"\$as_me:14949: $lt_compile\"" >&5)
 
17474
   (eval echo "\"\$as_me:17474: $lt_compile\"" >&5)
14950
17475
   (eval "$lt_compile" 2>conftest.err)
14951
17476
   ac_status=$?
14952
17477
   cat conftest.err >&5
14953
 
   echo "$as_me:14953: \$? = $ac_status" >&5
 
17478
   echo "$as_me:17478: \$? = $ac_status" >&5
14954
17479
   if (exit $ac_status) && test -s "$ac_outfile"; then
14955
17480
     # The compiler can only warn and ignore the option if not recognized
14956
17481
     # So say no if there are warnings other than the usual output.
15050
17575
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15051
17576
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15052
17577
   -e 's:$: $lt_compiler_flag:'`
15053
 
   (eval echo "\"\$as_me:15053: $lt_compile\"" >&5)
 
17578
   (eval echo "\"\$as_me:17578: $lt_compile\"" >&5)
15054
17579
   (eval "$lt_compile" 2>out/conftest.err)
15055
17580
   ac_status=$?
15056
17581
   cat out/conftest.err >&5
15057
 
   echo "$as_me:15057: \$? = $ac_status" >&5
 
17582
   echo "$as_me:17582: \$? = $ac_status" >&5
15058
17583
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15059
17584
   then
15060
17585
     # The compiler can only warn and ignore the option if not recognized
16499
19024
  libsuff=
16500
19025
  case "$host_cpu" in
16501
19026
  x86_64*|s390x*|powerpc64*)
16502
 
    echo '#line 16502 "configure"' > conftest.$ac_ext
 
19027
    echo '#line 19027 "configure"' > conftest.$ac_ext
16503
19028
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16504
19029
  (eval $ac_compile) 2>&5
16505
19030
  ac_status=$?
17277
19802
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17278
19803
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17279
19804
   -e 's:$: $lt_compiler_flag:'`
17280
 
   (eval echo "\"\$as_me:17280: $lt_compile\"" >&5)
 
19805
   (eval echo "\"\$as_me:19805: $lt_compile\"" >&5)
17281
19806
   (eval "$lt_compile" 2>conftest.err)
17282
19807
   ac_status=$?
17283
19808
   cat conftest.err >&5
17284
 
   echo "$as_me:17284: \$? = $ac_status" >&5
 
19809
   echo "$as_me:19809: \$? = $ac_status" >&5
17285
19810
   if (exit $ac_status) && test -s "$ac_outfile"; then
17286
19811
     # The compiler can only warn and ignore the option if not recognized
17287
19812
     # So say no if there are warnings other than the usual output.
17545
20070
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17546
20071
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17547
20072
   -e 's:$: $lt_compiler_flag:'`
17548
 
   (eval echo "\"\$as_me:17548: $lt_compile\"" >&5)
 
20073
   (eval echo "\"\$as_me:20073: $lt_compile\"" >&5)
17549
20074
   (eval "$lt_compile" 2>conftest.err)
17550
20075
   ac_status=$?
17551
20076
   cat conftest.err >&5
17552
 
   echo "$as_me:17552: \$? = $ac_status" >&5
 
20077
   echo "$as_me:20077: \$? = $ac_status" >&5
17553
20078
   if (exit $ac_status) && test -s "$ac_outfile"; then
17554
20079
     # The compiler can only warn and ignore the option if not recognized
17555
20080
     # So say no if there are warnings other than the usual output.
17649
20174
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17650
20175
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17651
20176
   -e 's:$: $lt_compiler_flag:'`
17652
 
   (eval echo "\"\$as_me:17652: $lt_compile\"" >&5)
 
20177
   (eval echo "\"\$as_me:20177: $lt_compile\"" >&5)
17653
20178
   (eval "$lt_compile" 2>out/conftest.err)
17654
20179
   ac_status=$?
17655
20180
   cat out/conftest.err >&5
17656
 
   echo "$as_me:17656: \$? = $ac_status" >&5
 
20181
   echo "$as_me:20181: \$? = $ac_status" >&5
17657
20182
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17658
20183
   then
17659
20184
     # The compiler can only warn and ignore the option if not recognized
19118
21643
  libsuff=
19119
21644
  case "$host_cpu" in
19120
21645
  x86_64*|s390x*|powerpc64*)
19121
 
    echo '#line 19121 "configure"' > conftest.$ac_ext
 
21646
    echo '#line 21646 "configure"' > conftest.$ac_ext
19122
21647
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19123
21648
  (eval $ac_compile) 2>&5
19124
21649
  ac_status=$?
20344
22869
 
20345
22870
 
20346
22871
 
 
22872
# GNU help2man creates man pages from --help output; in many cases,
 
22873
# this is sufficient, and obviates the need to maintain man pages
 
22874
# separately. However, some developers do not have it so we do not
 
22875
# make its use mandatory.
 
22876
# Extract the first word of "help2man", so it can be a program name with args.
 
22877
set dummy help2man; ac_word=$2
 
22878
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
22879
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
22880
if test "${ac_cv_prog_HELP2MAN+set}" = set; then
 
22881
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22882
else
 
22883
  if test -n "$HELP2MAN"; then
 
22884
  ac_cv_prog_HELP2MAN="$HELP2MAN" # Let the user override the test.
 
22885
else
 
22886
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22887
for as_dir in $PATH
 
22888
do
 
22889
  IFS=$as_save_IFS
 
22890
  test -z "$as_dir" && as_dir=.
 
22891
  for ac_exec_ext in '' $ac_executable_extensions; do
 
22892
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
22893
    ac_cv_prog_HELP2MAN="help2man"
 
22894
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22895
    break 2
 
22896
  fi
 
22897
done
 
22898
done
 
22899
 
 
22900
fi
 
22901
fi
 
22902
HELP2MAN=$ac_cv_prog_HELP2MAN
 
22903
if test -n "$HELP2MAN"; then
 
22904
  echo "$as_me:$LINENO: result: $HELP2MAN" >&5
 
22905
echo "${ECHO_T}$HELP2MAN" >&6
 
22906
else
 
22907
  echo "$as_me:$LINENO: result: no" >&5
 
22908
echo "${ECHO_T}no" >&6
 
22909
fi
 
22910
 
 
22911
 
 
22912
 
 
22913
if test x$HELP2MAN = xhelp2man; then
 
22914
  HAVE_HELP2MAN_TRUE=
 
22915
  HAVE_HELP2MAN_FALSE='#'
 
22916
else
 
22917
  HAVE_HELP2MAN_TRUE='#'
 
22918
  HAVE_HELP2MAN_FALSE=
 
22919
fi
 
22920
 
 
22921
 
20347
22922
# Extract the first word of "pkg-config", so it can be a program name with args.
20348
22923
set dummy pkg-config; ac_word=$2
20349
22924
echo "$as_me:$LINENO: checking for $ac_word" >&5
20392
22967
  enable_ucs4=no
20393
22968
fi;
20394
22969
 
20395
 
 
20396
 
 
 
22970
echo "$as_me:$LINENO: checking whether 4 byte-wide characters should be supported" >&5
 
22971
echo $ECHO_N "checking whether 4 byte-wide characters should be supported... $ECHO_C" >&6
 
22972
echo "$as_me:$LINENO: result: $enable_ucs4" >&5
 
22973
echo "${ECHO_T}$enable_ucs4" >&6
20397
22974
 
20398
22975
case "$enable_ucs4" in
20399
 
no) unicode_size="2"
20400
 
      cat >>confdefs.h <<\_ACEOF
20401
 
#define WIDECHAR_SIZE 2
20402
 
_ACEOF
20403
 
 
20404
 
      ;;
20405
 
yes) unicode_size="4"
20406
 
      cat >>confdefs.h <<\_ACEOF
20407
 
#define WIDECHAR_SIZE 4
20408
 
_ACEOF
20409
 
 
20410
 
      ;;
 
22976
yes) WIDECHAR_TYPE='unsigned int';;
 
22977
*) WIDECHAR_TYPE='unsigned short int';;
20411
22978
esac
20412
22979
 
 
22980
 
20413
22981
case $host in
20414
22982
  *mingw* | *cygwin*)
20415
22983
    CFLAGS="$CFLAGS -Wl,--add-stdcall-alias"
20416
22984
  ;;
20417
22985
esac
20418
22986
 
20419
 
                                                                                          ac_config_files="$ac_config_files Makefile doc/Makefile liblouis/Makefile tables/Makefile liblouis.pc tests/Makefile python/Makefile python/louis/Makefile tools/Makefile"
 
22987
                                                                                                                                            ac_config_files="$ac_config_files Makefile doc/Makefile man/Makefile liblouis/Makefile liblouis/liblouis.h tables/Makefile liblouis.pc tests/Makefile tests/table_test_corpuses/Makefile python/Makefile python/louis/Makefile tools/Makefile gnulib/Makefile m4/Makefile"
20420
22988
 
20421
22989
cat >confcache <<\_ACEOF
20422
22990
# This file is a shell script that caches the results of configure
20523
23091
Usually this means the macro was only invoked conditionally." >&2;}
20524
23092
   { (exit 1); exit 1; }; }
20525
23093
fi
 
23094
if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
 
23095
  { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
 
23096
Usually this means the macro was only invoked conditionally." >&5
 
23097
echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
 
23098
Usually this means the macro was only invoked conditionally." >&2;}
 
23099
   { (exit 1); exit 1; }; }
 
23100
fi
 
23101
 
 
23102
    gl_libobjs=
 
23103
    gl_ltlibobjs=
 
23104
    if test -n "$gl_LIBOBJS"; then
 
23105
      # Remove the extension.
 
23106
      sed_drop_objext='s/\.o$//;s/\.obj$//'
 
23107
      for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
 
23108
        gl_libobjs="$gl_libobjs $i.$ac_objext"
 
23109
        gl_ltlibobjs="$gl_ltlibobjs $i.lo"
 
23110
      done
 
23111
    fi
 
23112
    gl_LIBOBJS=$gl_libobjs
 
23113
 
 
23114
    gl_LTLIBOBJS=$gl_ltlibobjs
 
23115
 
 
23116
 
 
23117
 
 
23118
    gltests_libobjs=
 
23119
    gltests_ltlibobjs=
 
23120
    if test -n "$gltests_LIBOBJS"; then
 
23121
      # Remove the extension.
 
23122
      sed_drop_objext='s/\.o$//;s/\.obj$//'
 
23123
      for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
 
23124
        gltests_libobjs="$gltests_libobjs $i.$ac_objext"
 
23125
        gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
 
23126
      done
 
23127
    fi
 
23128
    gltests_LIBOBJS=$gltests_libobjs
 
23129
 
 
23130
    gltests_LTLIBOBJS=$gltests_ltlibobjs
 
23131
 
 
23132
 
20526
23133
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20527
23134
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20528
23135
Usually this means the macro was only invoked conditionally." >&5
20530
23137
Usually this means the macro was only invoked conditionally." >&2;}
20531
23138
   { (exit 1); exit 1; }; }
20532
23139
fi
 
23140
if test -z "${HAVE_HELP2MAN_TRUE}" && test -z "${HAVE_HELP2MAN_FALSE}"; then
 
23141
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_HELP2MAN\" was never defined.
 
23142
Usually this means the macro was only invoked conditionally." >&5
 
23143
echo "$as_me: error: conditional \"HAVE_HELP2MAN\" was never defined.
 
23144
Usually this means the macro was only invoked conditionally." >&2;}
 
23145
   { (exit 1); exit 1; }; }
 
23146
fi
20533
23147
 
20534
23148
: ${CONFIG_STATUS=./config.status}
20535
23149
ac_clean_files_save=$ac_clean_files
20801
23415
} >&5
20802
23416
cat >&5 <<_CSEOF
20803
23417
 
20804
 
This file was extended by liblouis $as_me 1.7.0, which was
 
23418
This file was extended by liblouis $as_me 1.8.0, which was
20805
23419
generated by GNU Autoconf 2.59.  Invocation command line was
20806
23420
 
20807
23421
  CONFIG_FILES    = $CONFIG_FILES
20864
23478
 
20865
23479
cat >>$CONFIG_STATUS <<_ACEOF
20866
23480
ac_cs_version="\\
20867
 
liblouis config.status 1.7.0
 
23481
liblouis config.status 1.8.0
20868
23482
configured by $0, generated by GNU Autoconf 2.59,
20869
23483
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20870
23484
 
20976
23590
  # Handling of arguments.
20977
23591
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20978
23592
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
23593
  "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20979
23594
  "liblouis/Makefile" ) CONFIG_FILES="$CONFIG_FILES liblouis/Makefile" ;;
 
23595
  "liblouis/liblouis.h" ) CONFIG_FILES="$CONFIG_FILES liblouis/liblouis.h" ;;
20980
23596
  "tables/Makefile" ) CONFIG_FILES="$CONFIG_FILES tables/Makefile" ;;
20981
23597
  "liblouis.pc" ) CONFIG_FILES="$CONFIG_FILES liblouis.pc" ;;
20982
23598
  "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
 
23599
  "tests/table_test_corpuses/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/table_test_corpuses/Makefile" ;;
20983
23600
  "python/Makefile" ) CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
20984
23601
  "python/louis/Makefile" ) CONFIG_FILES="$CONFIG_FILES python/louis/Makefile" ;;
20985
23602
  "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
 
23603
  "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
 
23604
  "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
20986
23605
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20987
 
  "liblouis/louiscfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS liblouis/louiscfg.h" ;;
 
23606
  "liblouis/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS liblouis/config.h" ;;
20988
23607
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20989
23608
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20990
23609
   { (exit 1); exit 1; }; };;
21108
23727
s,@CCDEPMODE@,$CCDEPMODE,;t t
21109
23728
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21110
23729
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21111
 
s,@LN_S@,$LN_S,;t t
21112
 
s,@CPP@,$CPP,;t t
21113
 
s,@EGREP@,$EGREP,;t t
21114
 
s,@LIBOBJS@,$LIBOBJS,;t t
21115
 
s,@LIBLOUIS_CURRENT@,$LIBLOUIS_CURRENT,;t t
21116
 
s,@LIBLOUIS_REVISION@,$LIBLOUIS_REVISION,;t t
21117
 
s,@LIBLOUIS_AGE@,$LIBLOUIS_AGE,;t t
 
23730
s,@RANLIB@,$RANLIB,;t t
 
23731
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21118
23732
s,@build@,$build,;t t
21119
23733
s,@build_cpu@,$build_cpu,;t t
21120
23734
s,@build_vendor@,$build_vendor,;t t
21123
23737
s,@host_cpu@,$host_cpu,;t t
21124
23738
s,@host_vendor@,$host_vendor,;t t
21125
23739
s,@host_os@,$host_os,;t t
 
23740
s,@CPP@,$CPP,;t t
 
23741
s,@EGREP@,$EGREP,;t t
 
23742
s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
 
23743
s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
 
23744
s,@GNULIB_CHOWN@,$GNULIB_CHOWN,;t t
 
23745
s,@GNULIB_CLOSE@,$GNULIB_CLOSE,;t t
 
23746
s,@GNULIB_DUP2@,$GNULIB_DUP2,;t t
 
23747
s,@GNULIB_DUP3@,$GNULIB_DUP3,;t t
 
23748
s,@GNULIB_ENVIRON@,$GNULIB_ENVIRON,;t t
 
23749
s,@GNULIB_EUIDACCESS@,$GNULIB_EUIDACCESS,;t t
 
23750
s,@GNULIB_FACCESSAT@,$GNULIB_FACCESSAT,;t t
 
23751
s,@GNULIB_FCHDIR@,$GNULIB_FCHDIR,;t t
 
23752
s,@GNULIB_FCHOWNAT@,$GNULIB_FCHOWNAT,;t t
 
23753
s,@GNULIB_FSYNC@,$GNULIB_FSYNC,;t t
 
23754
s,@GNULIB_FTRUNCATE@,$GNULIB_FTRUNCATE,;t t
 
23755
s,@GNULIB_GETCWD@,$GNULIB_GETCWD,;t t
 
23756
s,@GNULIB_GETDOMAINNAME@,$GNULIB_GETDOMAINNAME,;t t
 
23757
s,@GNULIB_GETDTABLESIZE@,$GNULIB_GETDTABLESIZE,;t t
 
23758
s,@GNULIB_GETHOSTNAME@,$GNULIB_GETHOSTNAME,;t t
 
23759
s,@GNULIB_GETLOGIN_R@,$GNULIB_GETLOGIN_R,;t t
 
23760
s,@GNULIB_GETPAGESIZE@,$GNULIB_GETPAGESIZE,;t t
 
23761
s,@GNULIB_GETUSERSHELL@,$GNULIB_GETUSERSHELL,;t t
 
23762
s,@GNULIB_LCHOWN@,$GNULIB_LCHOWN,;t t
 
23763
s,@GNULIB_LINK@,$GNULIB_LINK,;t t
 
23764
s,@GNULIB_LINKAT@,$GNULIB_LINKAT,;t t
 
23765
s,@GNULIB_LSEEK@,$GNULIB_LSEEK,;t t
 
23766
s,@GNULIB_PIPE2@,$GNULIB_PIPE2,;t t
 
23767
s,@GNULIB_READLINK@,$GNULIB_READLINK,;t t
 
23768
s,@GNULIB_READLINKAT@,$GNULIB_READLINKAT,;t t
 
23769
s,@GNULIB_RMDIR@,$GNULIB_RMDIR,;t t
 
23770
s,@GNULIB_SLEEP@,$GNULIB_SLEEP,;t t
 
23771
s,@GNULIB_SYMLINK@,$GNULIB_SYMLINK,;t t
 
23772
s,@GNULIB_SYMLINKAT@,$GNULIB_SYMLINKAT,;t t
 
23773
s,@GNULIB_UNISTD_H_GETOPT@,$GNULIB_UNISTD_H_GETOPT,;t t
 
23774
s,@GNULIB_UNISTD_H_SIGPIPE@,$GNULIB_UNISTD_H_SIGPIPE,;t t
 
23775
s,@GNULIB_UNLINK@,$GNULIB_UNLINK,;t t
 
23776
s,@GNULIB_UNLINKAT@,$GNULIB_UNLINKAT,;t t
 
23777
s,@GNULIB_WRITE@,$GNULIB_WRITE,;t t
 
23778
s,@HAVE_DUP2@,$HAVE_DUP2,;t t
 
23779
s,@HAVE_DUP3@,$HAVE_DUP3,;t t
 
23780
s,@HAVE_EUIDACCESS@,$HAVE_EUIDACCESS,;t t
 
23781
s,@HAVE_FACCESSAT@,$HAVE_FACCESSAT,;t t
 
23782
s,@HAVE_FCHOWNAT@,$HAVE_FCHOWNAT,;t t
 
23783
s,@HAVE_FSYNC@,$HAVE_FSYNC,;t t
 
23784
s,@HAVE_FTRUNCATE@,$HAVE_FTRUNCATE,;t t
 
23785
s,@HAVE_GETDOMAINNAME@,$HAVE_GETDOMAINNAME,;t t
 
23786
s,@HAVE_GETDTABLESIZE@,$HAVE_GETDTABLESIZE,;t t
 
23787
s,@HAVE_GETHOSTNAME@,$HAVE_GETHOSTNAME,;t t
 
23788
s,@HAVE_GETPAGESIZE@,$HAVE_GETPAGESIZE,;t t
 
23789
s,@HAVE_GETUSERSHELL@,$HAVE_GETUSERSHELL,;t t
 
23790
s,@HAVE_LINK@,$HAVE_LINK,;t t
 
23791
s,@HAVE_LINKAT@,$HAVE_LINKAT,;t t
 
23792
s,@HAVE_PIPE2@,$HAVE_PIPE2,;t t
 
23793
s,@HAVE_READLINK@,$HAVE_READLINK,;t t
 
23794
s,@HAVE_READLINKAT@,$HAVE_READLINKAT,;t t
 
23795
s,@HAVE_SLEEP@,$HAVE_SLEEP,;t t
 
23796
s,@HAVE_SYMLINK@,$HAVE_SYMLINK,;t t
 
23797
s,@HAVE_SYMLINKAT@,$HAVE_SYMLINKAT,;t t
 
23798
s,@HAVE_DECL_ENVIRON@,$HAVE_DECL_ENVIRON,;t t
 
23799
s,@HAVE_DECL_GETLOGIN_R@,$HAVE_DECL_GETLOGIN_R,;t t
 
23800
s,@HAVE_OS_H@,$HAVE_OS_H,;t t
 
23801
s,@HAVE_SYS_PARAM_H@,$HAVE_SYS_PARAM_H,;t t
 
23802
s,@HAVE_UNLINKAT@,$HAVE_UNLINKAT,;t t
 
23803
s,@REPLACE_CHOWN@,$REPLACE_CHOWN,;t t
 
23804
s,@REPLACE_CLOSE@,$REPLACE_CLOSE,;t t
 
23805
s,@REPLACE_DUP@,$REPLACE_DUP,;t t
 
23806
s,@REPLACE_DUP2@,$REPLACE_DUP2,;t t
 
23807
s,@REPLACE_FCHDIR@,$REPLACE_FCHDIR,;t t
 
23808
s,@REPLACE_FCHOWNAT@,$REPLACE_FCHOWNAT,;t t
 
23809
s,@REPLACE_GETCWD@,$REPLACE_GETCWD,;t t
 
23810
s,@REPLACE_GETPAGESIZE@,$REPLACE_GETPAGESIZE,;t t
 
23811
s,@REPLACE_LCHOWN@,$REPLACE_LCHOWN,;t t
 
23812
s,@REPLACE_LINK@,$REPLACE_LINK,;t t
 
23813
s,@REPLACE_LINKAT@,$REPLACE_LINKAT,;t t
 
23814
s,@REPLACE_LSEEK@,$REPLACE_LSEEK,;t t
 
23815
s,@REPLACE_READLINK@,$REPLACE_READLINK,;t t
 
23816
s,@REPLACE_RMDIR@,$REPLACE_RMDIR,;t t
 
23817
s,@REPLACE_SYMLINK@,$REPLACE_SYMLINK,;t t
 
23818
s,@REPLACE_UNLINK@,$REPLACE_UNLINK,;t t
 
23819
s,@REPLACE_UNLINKAT@,$REPLACE_UNLINKAT,;t t
 
23820
s,@REPLACE_WRITE@,$REPLACE_WRITE,;t t
 
23821
s,@UNISTD_H_HAVE_WINSOCK2_H@,$UNISTD_H_HAVE_WINSOCK2_H,;t t
 
23822
s,@UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@,$UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS,;t t
 
23823
s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
 
23824
s,@INCLUDE_NEXT_AS_FIRST_DIRECTIVE@,$INCLUDE_NEXT_AS_FIRST_DIRECTIVE,;t t
 
23825
s,@PRAGMA_SYSTEM_HEADER@,$PRAGMA_SYSTEM_HEADER,;t t
 
23826
s,@NEXT_GETOPT_H@,$NEXT_GETOPT_H,;t t
 
23827
s,@NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@,$NEXT_AS_FIRST_DIRECTIVE_GETOPT_H,;t t
 
23828
s,@HAVE_GETOPT_H@,$HAVE_GETOPT_H,;t t
 
23829
s,@GETOPT_H@,$GETOPT_H,;t t
 
23830
s,@LIBINTL@,$LIBINTL,;t t
 
23831
s,@LTLIBINTL@,$LTLIBINTL,;t t
 
23832
s,@STDARG_H@,$STDARG_H,;t t
 
23833
s,@NEXT_STDARG_H@,$NEXT_STDARG_H,;t t
 
23834
s,@NEXT_AS_FIRST_DIRECTIVE_STDARG_H@,$NEXT_AS_FIRST_DIRECTIVE_STDARG_H,;t t
 
23835
s,@REPLACE_NULL@,$REPLACE_NULL,;t t
 
23836
s,@HAVE_WCHAR_T@,$HAVE_WCHAR_T,;t t
 
23837
s,@STDDEF_H@,$STDDEF_H,;t t
 
23838
s,@NEXT_STDDEF_H@,$NEXT_STDDEF_H,;t t
 
23839
s,@NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@,$NEXT_AS_FIRST_DIRECTIVE_STDDEF_H,;t t
 
23840
s,@NEXT_UNISTD_H@,$NEXT_UNISTD_H,;t t
 
23841
s,@NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@,$NEXT_AS_FIRST_DIRECTIVE_UNISTD_H,;t t
 
23842
s,@HAVE_UNISTD_H@,$HAVE_UNISTD_H,;t t
 
23843
s,@LN_S@,$LN_S,;t t
 
23844
s,@LIBOBJS@,$LIBOBJS,;t t
 
23845
s,@LIBLOUIS_CURRENT@,$LIBLOUIS_CURRENT,;t t
 
23846
s,@LIBLOUIS_REVISION@,$LIBLOUIS_REVISION,;t t
 
23847
s,@LIBLOUIS_AGE@,$LIBLOUIS_AGE,;t t
21126
23848
s,@SED@,$SED,;t t
21127
23849
s,@ECHO@,$ECHO,;t t
21128
23850
s,@AR@,$AR,;t t
21129
23851
s,@ac_ct_AR@,$ac_ct_AR,;t t
21130
 
s,@RANLIB@,$RANLIB,;t t
21131
 
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21132
23852
s,@DLLTOOL@,$DLLTOOL,;t t
21133
23853
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
21134
23854
s,@AS@,$AS,;t t
21146
23866
s,@FFLAGS@,$FFLAGS,;t t
21147
23867
s,@ac_ct_F77@,$ac_ct_F77,;t t
21148
23868
s,@LIBTOOL@,$LIBTOOL,;t t
 
23869
s,@HELP2MAN@,$HELP2MAN,;t t
 
23870
s,@HAVE_HELP2MAN_TRUE@,$HAVE_HELP2MAN_TRUE,;t t
 
23871
s,@HAVE_HELP2MAN_FALSE@,$HAVE_HELP2MAN_FALSE,;t t
21149
23872
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
 
23873
s,@WIDECHAR_TYPE@,$WIDECHAR_TYPE,;t t
21150
23874
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
23875
s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
 
23876
s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
 
23877
s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
 
23878
s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
21151
23879
CEOF
21152
23880
 
21153
23881
_ACEOF