| 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.59. |
| 4 | # |
| 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
| 6 | # This configure script is free software; the Free Software Foundation |
| 7 | # gives unlimited permission to copy, distribute and modify it. |
| 8 | ## --------------------- ## |
| 9 | ## M4sh Initialization. ## |
| 10 | ## --------------------- ## |
| 11 | |
| 12 | # Be Bourne compatible |
| 13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 14 | emulate sh |
| 15 | NULLCMD=: |
| 16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 17 | # is contrary to our usage. Disable this feature. |
| 18 | alias -g '${1+"$@"}'='"$@"' |
| 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 20 | set -o posix |
| 21 | fi |
| 22 | DUALCASE=1; export DUALCASE # for MKS sh |
| 23 | |
| 24 | # Support unset when possible. |
| 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 26 | as_unset=unset |
| 27 | else |
| 28 | as_unset=false |
| 29 | fi |
| 30 | |
| 31 | |
| 32 | # Work around bugs in pre-3.0 UWIN ksh. |
| 33 | $as_unset ENV MAIL MAILPATH |
| 34 | PS1='$ ' |
| 35 | PS2='> ' |
| 36 | PS4='+ ' |
| 37 | |
| 38 | # NLS nuisances. |
| 39 | for as_var in \ |
| 40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 42 | LC_TELEPHONE LC_TIME |
| 43 | do |
| 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 45 | eval $as_var=C; export $as_var |
| 46 | else |
| 47 | $as_unset $as_var |
| 48 | fi |
| 49 | done |
| 50 | |
| 51 | # Required to use basename. |
| 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 53 | as_expr=expr |
| 54 | else |
| 55 | as_expr=false |
| 56 | fi |
| 57 | |
| 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 59 | as_basename=basename |
| 60 | else |
| 61 | as_basename=false |
| 62 | fi |
| 63 | |
| 64 | |
| 65 | # Name of the executable. |
| 66 | as_me=`$as_basename "$0" || |
| 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 68 | X"$0" : 'X\(//\)$' \| \ |
| 69 | X"$0" : 'X\(/\)$' \| \ |
| 70 | . : '\(.\)' 2>/dev/null || |
| 71 | echo X/"$0" | |
| 72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 73 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 74 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 75 | s/.*/./; q'` |
| 76 | |
| 77 | |
| 78 | # PATH needs CR, and LINENO needs CR and PATH. |
| 79 | # Avoid depending upon Character Ranges. |
| 80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 83 | as_cr_digits='0123456789' |
| 84 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 85 | |
| 86 | # The user is always right. |
| 87 | if test "${PATH_SEPARATOR+set}" != set; then |
| 88 | echo "#! /bin/sh" >conf$$.sh |
| 89 | echo "exit 0" >>conf$$.sh |
| 90 | chmod +x conf$$.sh |
| 91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 92 | PATH_SEPARATOR=';' |
| 93 | else |
| 94 | PATH_SEPARATOR=: |
| 95 | fi |
| 96 | rm -f conf$$.sh |
| 97 | fi |
| 98 | |
| 99 | |
| 100 | as_lineno_1=$LINENO |
| 101 | as_lineno_2=$LINENO |
| 102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 103 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 104 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 105 | # Find who we are. Look in the path if we contain no path at all |
| 106 | # relative or not. |
| 107 | case $0 in |
| 108 | *[\\/]* ) as_myself=$0 ;; |
| 109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 110 | for as_dir in $PATH |
| 111 | do |
| 112 | IFS=$as_save_IFS |
| 113 | test -z "$as_dir" && as_dir=. |
| 114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 115 | done |
| 116 | |
| 117 | ;; |
| 118 | esac |
| 119 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 120 | # in which case we are not to be found in the path. |
| 121 | if test "x$as_myself" = x; then |
| 122 | as_myself=$0 |
| 123 | fi |
| 124 | if test ! -f "$as_myself"; then |
| 125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 126 | { (exit 1); exit 1; }; } |
| 127 | fi |
| 128 | case $CONFIG_SHELL in |
| 129 | '') |
| 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 132 | do |
| 133 | IFS=$as_save_IFS |
| 134 | test -z "$as_dir" && as_dir=. |
| 135 | for as_base in sh bash ksh sh5; do |
| 136 | case $as_dir in |
| 137 | /*) |
| 138 | if ("$as_dir/$as_base" -c ' |
| 139 | as_lineno_1=$LINENO |
| 140 | as_lineno_2=$LINENO |
| 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 146 | CONFIG_SHELL=$as_dir/$as_base |
| 147 | export CONFIG_SHELL |
| 148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 149 | fi;; |
| 150 | esac |
| 151 | done |
| 152 | done |
| 153 | ;; |
| 154 | esac |
| 155 | |
| 156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 157 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 158 | # line-number line before each line; the second 'sed' does the real |
| 159 | # work. The second script uses 'N' to pair each line-number line |
| 160 | # with the numbered line, and appends trailing '-' during |
| 161 | # substitution so that $LINENO is not a special case at line end. |
| 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 164 | sed '=' <$as_myself | |
| 165 | sed ' |
| 166 | N |
| 167 | s,$,-, |
| 168 | : loop |
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 170 | t loop |
| 171 | s,-$,, |
| 172 | s,^['$as_cr_digits']*\n,, |
| 173 | ' >$as_me.lineno && |
| 174 | chmod +x $as_me.lineno || |
| 175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 176 | { (exit 1); exit 1; }; } |
| 177 | |
| 178 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 179 | # (the dirname of $[0] is not the place where we might find the |
| 180 | # original and so on. Autoconf is especially sensible to this). |
| 181 | . ./$as_me.lineno |
| 182 | # Exit status is that of the last command. |
| 183 | exit |
| 184 | } |
| 185 | |
| 186 | |
| 187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 188 | *c*,-n*) ECHO_N= ECHO_C=' |
| 189 | ' ECHO_T=' ' ;; |
| 190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 192 | esac |
| 193 | |
| 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 195 | as_expr=expr |
| 196 | else |
| 197 | as_expr=false |
| 198 | fi |
| 199 | |
| 200 | rm -f conf$$ conf$$.exe conf$$.file |
| 201 | echo >conf$$.file |
| 202 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 203 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 205 | if test -f conf$$.exe; then |
| 206 | # Don't use ln at all; we don't have any links |
| 207 | as_ln_s='cp -p' |
| 208 | else |
| 209 | as_ln_s='ln -s' |
| 210 | fi |
| 211 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 212 | as_ln_s=ln |
| 213 | else |
| 214 | as_ln_s='cp -p' |
| 215 | fi |
| 216 | rm -f conf$$ conf$$.exe conf$$.file |
| 217 | |
| 218 | if mkdir -p . 2>/dev/null; then |
| 219 | as_mkdir_p=: |
| 220 | else |
| 221 | test -d ./-p && rmdir ./-p |
| 222 | as_mkdir_p=false |
| 223 | fi |
| 224 | |
| 225 | as_executable_p="test -f" |
| 226 | |
| 227 | # Sed expression to map a string onto a valid CPP name. |
| 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 229 | |
| 230 | # Sed expression to map a string onto a valid variable name. |
| 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 232 | |
| 233 | |
| 234 | # IFS |
| 235 | # We need space, tab and new line, in precisely that order. |
| 236 | as_nl=' |
| 237 | ' |
| 238 | IFS=" $as_nl" |
| 239 | |
| 240 | # CDPATH. |
| 241 | $as_unset CDPATH |
| 242 | |
| 243 | |
| 244 | # Name of the host. |
| 245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 246 | # so uname gets run too. |
| 247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 248 | |
| 249 | exec 6>&1 |
| 250 | |
| 251 | # |
| 252 | # Initializations. |
| 253 | # |
| 254 | ac_default_prefix=/usr/local |
| 255 | ac_config_libobj_dir=. |
| 256 | cross_compiling=no |
| 257 | subdirs= |
| 258 | MFLAGS= |
| 259 | MAKEFLAGS= |
| 260 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 261 | |
| 262 | # Maximum number of lines to put in a shell here document. |
| 263 | # This variable seems obsolete. It should probably be removed, and |
| 264 | # only ac_max_sed_lines should be used. |
| 265 | : ${ac_max_here_lines=38} |
| 266 | |
| 267 | # Identity of this package. |
| 268 | PACKAGE_NAME= |
| 269 | PACKAGE_TARNAME= |
| 270 | PACKAGE_VERSION= |
| 271 | PACKAGE_STRING= |
| 272 | PACKAGE_BUGREPORT= |
| 273 | |
| 274 | ac_unique_file="main.c" |
| 275 | # Factoring default headers for most tests. |
| 276 | ac_includes_default="\ |
| 277 | #include <stdio.h> |
| 278 | #if HAVE_SYS_TYPES_H |
| 279 | # include <sys/types.h> |
| 280 | #endif |
| 281 | #if HAVE_SYS_STAT_H |
| 282 | # include <sys/stat.h> |
| 283 | #endif |
| 284 | #if STDC_HEADERS |
| 285 | # include <stdlib.h> |
| 286 | # include <stddef.h> |
| 287 | #else |
| 288 | # if HAVE_STDLIB_H |
| 289 | # include <stdlib.h> |
| 290 | # endif |
| 291 | #endif |
| 292 | #if HAVE_STRING_H |
| 293 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 294 | # include <memory.h> |
| 295 | # endif |
| 296 | # include <string.h> |
| 297 | #endif |
| 298 | #if HAVE_STRINGS_H |
| 299 | # include <strings.h> |
| 300 | #endif |
| 301 | #if HAVE_INTTYPES_H |
| 302 | # include <inttypes.h> |
| 303 | #else |
| 304 | # if HAVE_STDINT_H |
| 305 | # include <stdint.h> |
| 306 | # endif |
| 307 | #endif |
| 308 | #if HAVE_UNISTD_H |
| 309 | # include <unistd.h> |
| 310 | #endif" |
| 311 | |
| 312 | gl_header_list= |
| 313 | ac_subdirs_all="$ac_subdirs_all doc testsuite" |
| 314 | ac_subdirs_all="$ac_subdirs_all gdbtk" |
| 315 | ac_subdirs_all="$ac_subdirs_all multi-ice" |
| 316 | ac_subdirs_all="$ac_subdirs_all gdbserver" |
| 317 | 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT localedir GL_COND_LIBTOOL_TRUE GL_COND_LIBTOOL_FALSE GNULIB_MEMMEM GNULIB_MEMPCPY GNULIB_MEMRCHR GNULIB_STPCPY GNULIB_STPNCPY GNULIB_STRCHRNUL GNULIB_STRDUP GNULIB_STRNDUP GNULIB_STRNLEN GNULIB_STRPBRK GNULIB_STRSEP GNULIB_STRSTR GNULIB_STRCASESTR GNULIB_STRTOK_R GNULIB_MBSLEN GNULIB_MBSNLEN GNULIB_MBSCHR GNULIB_MBSRCHR GNULIB_MBSSTR GNULIB_MBSCASECMP GNULIB_MBSNCASECMP GNULIB_MBSPCASECMP GNULIB_MBSCASESTR GNULIB_MBSCSPN GNULIB_MBSPBRK GNULIB_MBSSPN GNULIB_MBSSEP GNULIB_MBSTOK_R GNULIB_STRERROR GNULIB_STRSIGNAL HAVE_DECL_MEMMEM HAVE_MEMPCPY HAVE_DECL_MEMRCHR HAVE_STPCPY HAVE_STPNCPY HAVE_STRCHRNUL HAVE_DECL_STRDUP HAVE_STRNDUP HAVE_DECL_STRNDUP HAVE_DECL_STRNLEN HAVE_STRPBRK HAVE_STRSEP HAVE_STRCASESTR HAVE_DECL_STRTOK_R HAVE_DECL_STRERROR HAVE_DECL_STRSIGNAL REPLACE_STRERROR REPLACE_STRSIGNAL REPLACE_MEMMEM REPLACE_STRCASESTR REPLACE_STRSTR HAVE_LONG_LONG_INT HAVE_UNSIGNED_LONG_LONG_INT HAVE_INTTYPES_H HAVE_SYS_TYPES_H INCLUDE_NEXT NEXT_STDINT_H HAVE_STDINT_H HAVE_SYS_INTTYPES_H HAVE_SYS_BITYPES_H BITSIZEOF_PTRDIFF_T BITSIZEOF_SIG_ATOMIC_T BITSIZEOF_SIZE_T BITSIZEOF_WCHAR_T BITSIZEOF_WINT_T HAVE_SIGNED_SIG_ATOMIC_T HAVE_SIGNED_WCHAR_T HAVE_SIGNED_WINT_T PTRDIFF_T_SUFFIX SIG_ATOMIC_T_SUFFIX SIZE_T_SUFFIX WCHAR_T_SUFFIX WINT_T_SUFFIX STDINT_H NEXT_STRING_H GNULIB_WCWIDTH HAVE_DECL_WCWIDTH REPLACE_WCWIDTH WCHAR_H HAVE_WCHAR_H NEXT_WCHAR_H LIBGNU_LIBDEPS LIBGNU_LTLIBDEPS PACKAGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W 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 DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE subdirs TARGET_OBS LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG READLINE READLINE_DEPS READLINE_CFLAGS HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR SIM SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags nm_h LIBICONV LIBOBJS LTLIBOBJS gl_LIBOBJS gl_LTLIBOBJS gltests_LIBOBJS gltests_LTLIBOBJS' |
| 318 | ac_subst_files='host_makefile_frag' |
| 319 | |
| 320 | # Initialize some variables set by options. |
| 321 | ac_init_help= |
| 322 | ac_init_version=false |
| 323 | # The variables have the same names as the options, with |
| 324 | # dashes changed to underlines. |
| 325 | cache_file=/dev/null |
| 326 | exec_prefix=NONE |
| 327 | no_create= |
| 328 | no_recursion= |
| 329 | prefix=NONE |
| 330 | program_prefix=NONE |
| 331 | program_suffix=NONE |
| 332 | program_transform_name=s,x,x, |
| 333 | silent= |
| 334 | site= |
| 335 | srcdir= |
| 336 | verbose= |
| 337 | x_includes=NONE |
| 338 | x_libraries=NONE |
| 339 | |
| 340 | # Installation directory options. |
| 341 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 342 | # and all the variables that are supposed to be based on exec_prefix |
| 343 | # by default will actually change. |
| 344 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 345 | bindir='${exec_prefix}/bin' |
| 346 | sbindir='${exec_prefix}/sbin' |
| 347 | libexecdir='${exec_prefix}/libexec' |
| 348 | datadir='${prefix}/share' |
| 349 | sysconfdir='${prefix}/etc' |
| 350 | sharedstatedir='${prefix}/com' |
| 351 | localstatedir='${prefix}/var' |
| 352 | libdir='${exec_prefix}/lib' |
| 353 | includedir='${prefix}/include' |
| 354 | oldincludedir='/usr/include' |
| 355 | infodir='${prefix}/info' |
| 356 | mandir='${prefix}/man' |
| 357 | |
| 358 | ac_prev= |
| 359 | for ac_option |
| 360 | do |
| 361 | # If the previous option needs an argument, assign it. |
| 362 | if test -n "$ac_prev"; then |
| 363 | eval "$ac_prev=\$ac_option" |
| 364 | ac_prev= |
| 365 | continue |
| 366 | fi |
| 367 | |
| 368 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 369 | |
| 370 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 371 | |
| 372 | case $ac_option in |
| 373 | |
| 374 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 375 | ac_prev=bindir ;; |
| 376 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 377 | bindir=$ac_optarg ;; |
| 378 | |
| 379 | -build | --build | --buil | --bui | --bu) |
| 380 | ac_prev=build_alias ;; |
| 381 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 382 | build_alias=$ac_optarg ;; |
| 383 | |
| 384 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 385 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 386 | ac_prev=cache_file ;; |
| 387 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 388 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 389 | cache_file=$ac_optarg ;; |
| 390 | |
| 391 | --config-cache | -C) |
| 392 | cache_file=config.cache ;; |
| 393 | |
| 394 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 395 | ac_prev=datadir ;; |
| 396 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 397 | | --da=*) |
| 398 | datadir=$ac_optarg ;; |
| 399 | |
| 400 | -disable-* | --disable-*) |
| 401 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 402 | # Reject names that are not valid shell variable names. |
| 403 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 404 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 405 | { (exit 1); exit 1; }; } |
| 406 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 407 | eval "enable_$ac_feature=no" ;; |
| 408 | |
| 409 | -enable-* | --enable-*) |
| 410 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 411 | # Reject names that are not valid shell variable names. |
| 412 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 413 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 414 | { (exit 1); exit 1; }; } |
| 415 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 416 | case $ac_option in |
| 417 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 418 | *) ac_optarg=yes ;; |
| 419 | esac |
| 420 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 421 | |
| 422 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 423 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 424 | | --exec | --exe | --ex) |
| 425 | ac_prev=exec_prefix ;; |
| 426 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 427 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 428 | | --exec=* | --exe=* | --ex=*) |
| 429 | exec_prefix=$ac_optarg ;; |
| 430 | |
| 431 | -gas | --gas | --ga | --g) |
| 432 | # Obsolete; use --with-gas. |
| 433 | with_gas=yes ;; |
| 434 | |
| 435 | -help | --help | --hel | --he | -h) |
| 436 | ac_init_help=long ;; |
| 437 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 438 | ac_init_help=recursive ;; |
| 439 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 440 | ac_init_help=short ;; |
| 441 | |
| 442 | -host | --host | --hos | --ho) |
| 443 | ac_prev=host_alias ;; |
| 444 | -host=* | --host=* | --hos=* | --ho=*) |
| 445 | host_alias=$ac_optarg ;; |
| 446 | |
| 447 | -includedir | --includedir | --includedi | --included | --include \ |
| 448 | | --includ | --inclu | --incl | --inc) |
| 449 | ac_prev=includedir ;; |
| 450 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 451 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 452 | includedir=$ac_optarg ;; |
| 453 | |
| 454 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 455 | ac_prev=infodir ;; |
| 456 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 457 | infodir=$ac_optarg ;; |
| 458 | |
| 459 | -libdir | --libdir | --libdi | --libd) |
| 460 | ac_prev=libdir ;; |
| 461 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 462 | libdir=$ac_optarg ;; |
| 463 | |
| 464 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 465 | | --libexe | --libex | --libe) |
| 466 | ac_prev=libexecdir ;; |
| 467 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 468 | | --libexe=* | --libex=* | --libe=*) |
| 469 | libexecdir=$ac_optarg ;; |
| 470 | |
| 471 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 472 | | --localstate | --localstat | --localsta | --localst \ |
| 473 | | --locals | --local | --loca | --loc | --lo) |
| 474 | ac_prev=localstatedir ;; |
| 475 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 476 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 477 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 478 | localstatedir=$ac_optarg ;; |
| 479 | |
| 480 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 481 | ac_prev=mandir ;; |
| 482 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 483 | mandir=$ac_optarg ;; |
| 484 | |
| 485 | -nfp | --nfp | --nf) |
| 486 | # Obsolete; use --without-fp. |
| 487 | with_fp=no ;; |
| 488 | |
| 489 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 490 | | --no-cr | --no-c | -n) |
| 491 | no_create=yes ;; |
| 492 | |
| 493 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 494 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 495 | no_recursion=yes ;; |
| 496 | |
| 497 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 498 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 499 | | --oldin | --oldi | --old | --ol | --o) |
| 500 | ac_prev=oldincludedir ;; |
| 501 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 502 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 503 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 504 | oldincludedir=$ac_optarg ;; |
| 505 | |
| 506 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 507 | ac_prev=prefix ;; |
| 508 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 509 | prefix=$ac_optarg ;; |
| 510 | |
| 511 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 512 | | --program-pre | --program-pr | --program-p) |
| 513 | ac_prev=program_prefix ;; |
| 514 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 515 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 516 | program_prefix=$ac_optarg ;; |
| 517 | |
| 518 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 519 | | --program-suf | --program-su | --program-s) |
| 520 | ac_prev=program_suffix ;; |
| 521 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 522 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 523 | program_suffix=$ac_optarg ;; |
| 524 | |
| 525 | -program-transform-name | --program-transform-name \ |
| 526 | | --program-transform-nam | --program-transform-na \ |
| 527 | | --program-transform-n | --program-transform- \ |
| 528 | | --program-transform | --program-transfor \ |
| 529 | | --program-transfo | --program-transf \ |
| 530 | | --program-trans | --program-tran \ |
| 531 | | --progr-tra | --program-tr | --program-t) |
| 532 | ac_prev=program_transform_name ;; |
| 533 | -program-transform-name=* | --program-transform-name=* \ |
| 534 | | --program-transform-nam=* | --program-transform-na=* \ |
| 535 | | --program-transform-n=* | --program-transform-=* \ |
| 536 | | --program-transform=* | --program-transfor=* \ |
| 537 | | --program-transfo=* | --program-transf=* \ |
| 538 | | --program-trans=* | --program-tran=* \ |
| 539 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 540 | program_transform_name=$ac_optarg ;; |
| 541 | |
| 542 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 543 | | -silent | --silent | --silen | --sile | --sil) |
| 544 | silent=yes ;; |
| 545 | |
| 546 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 547 | ac_prev=sbindir ;; |
| 548 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 549 | | --sbi=* | --sb=*) |
| 550 | sbindir=$ac_optarg ;; |
| 551 | |
| 552 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 553 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 554 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 555 | | --sha | --sh) |
| 556 | ac_prev=sharedstatedir ;; |
| 557 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 558 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 559 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 560 | | --sha=* | --sh=*) |
| 561 | sharedstatedir=$ac_optarg ;; |
| 562 | |
| 563 | -site | --site | --sit) |
| 564 | ac_prev=site ;; |
| 565 | -site=* | --site=* | --sit=*) |
| 566 | site=$ac_optarg ;; |
| 567 | |
| 568 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 569 | ac_prev=srcdir ;; |
| 570 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 571 | srcdir=$ac_optarg ;; |
| 572 | |
| 573 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 574 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 575 | ac_prev=sysconfdir ;; |
| 576 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 577 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 578 | sysconfdir=$ac_optarg ;; |
| 579 | |
| 580 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 581 | ac_prev=target_alias ;; |
| 582 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 583 | target_alias=$ac_optarg ;; |
| 584 | |
| 585 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 586 | verbose=yes ;; |
| 587 | |
| 588 | -version | --version | --versio | --versi | --vers | -V) |
| 589 | ac_init_version=: ;; |
| 590 | |
| 591 | -with-* | --with-*) |
| 592 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 593 | # Reject names that are not valid shell variable names. |
| 594 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 595 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 596 | { (exit 1); exit 1; }; } |
| 597 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 598 | case $ac_option in |
| 599 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 600 | *) ac_optarg=yes ;; |
| 601 | esac |
| 602 | eval "with_$ac_package='$ac_optarg'" ;; |
| 603 | |
| 604 | -without-* | --without-*) |
| 605 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 606 | # Reject names that are not valid shell variable names. |
| 607 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 608 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 609 | { (exit 1); exit 1; }; } |
| 610 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 611 | eval "with_$ac_package=no" ;; |
| 612 | |
| 613 | --x) |
| 614 | # Obsolete; use --with-x. |
| 615 | with_x=yes ;; |
| 616 | |
| 617 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 618 | | --x-incl | --x-inc | --x-in | --x-i) |
| 619 | ac_prev=x_includes ;; |
| 620 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 621 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 622 | x_includes=$ac_optarg ;; |
| 623 | |
| 624 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 625 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 626 | ac_prev=x_libraries ;; |
| 627 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 628 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 629 | x_libraries=$ac_optarg ;; |
| 630 | |
| 631 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 632 | Try \`$0 --help' for more information." >&2 |
| 633 | { (exit 1); exit 1; }; } |
| 634 | ;; |
| 635 | |
| 636 | *=*) |
| 637 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 638 | # Reject names that are not valid shell variable names. |
| 639 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 640 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 641 | { (exit 1); exit 1; }; } |
| 642 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 643 | eval "$ac_envvar='$ac_optarg'" |
| 644 | export $ac_envvar ;; |
| 645 | |
| 646 | *) |
| 647 | # FIXME: should be removed in autoconf 3.0. |
| 648 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 649 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 650 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 651 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 652 | ;; |
| 653 | |
| 654 | esac |
| 655 | done |
| 656 | |
| 657 | if test -n "$ac_prev"; then |
| 658 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 659 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 660 | { (exit 1); exit 1; }; } |
| 661 | fi |
| 662 | |
| 663 | # Be sure to have absolute paths. |
| 664 | for ac_var in exec_prefix prefix |
| 665 | do |
| 666 | eval ac_val=$`echo $ac_var` |
| 667 | case $ac_val in |
| 668 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 669 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 670 | { (exit 1); exit 1; }; };; |
| 671 | esac |
| 672 | done |
| 673 | |
| 674 | # Be sure to have absolute paths. |
| 675 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 676 | localstatedir libdir includedir oldincludedir infodir mandir |
| 677 | do |
| 678 | eval ac_val=$`echo $ac_var` |
| 679 | case $ac_val in |
| 680 | [\\/$]* | ?:[\\/]* ) ;; |
| 681 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 682 | { (exit 1); exit 1; }; };; |
| 683 | esac |
| 684 | done |
| 685 | |
| 686 | # There might be people who depend on the old broken behavior: `$host' |
| 687 | # used to hold the argument of --host etc. |
| 688 | # FIXME: To remove some day. |
| 689 | build=$build_alias |
| 690 | host=$host_alias |
| 691 | target=$target_alias |
| 692 | |
| 693 | # FIXME: To remove some day. |
| 694 | if test "x$host_alias" != x; then |
| 695 | if test "x$build_alias" = x; then |
| 696 | cross_compiling=maybe |
| 697 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 698 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 699 | elif test "x$build_alias" != "x$host_alias"; then |
| 700 | cross_compiling=yes |
| 701 | fi |
| 702 | fi |
| 703 | |
| 704 | ac_tool_prefix= |
| 705 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 706 | |
| 707 | test "$silent" = yes && exec 6>/dev/null |
| 708 | |
| 709 | |
| 710 | # Find the source files, if location was not specified. |
| 711 | if test -z "$srcdir"; then |
| 712 | ac_srcdir_defaulted=yes |
| 713 | # Try the directory containing this script, then its parent. |
| 714 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 715 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 716 | X"$0" : 'X\(//\)[^/]' \| \ |
| 717 | X"$0" : 'X\(//\)$' \| \ |
| 718 | X"$0" : 'X\(/\)' \| \ |
| 719 | . : '\(.\)' 2>/dev/null || |
| 720 | echo X"$0" | |
| 721 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 722 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 723 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 724 | /^X\(\/\).*/{ s//\1/; q; } |
| 725 | s/.*/./; q'` |
| 726 | srcdir=$ac_confdir |
| 727 | if test ! -r $srcdir/$ac_unique_file; then |
| 728 | srcdir=.. |
| 729 | fi |
| 730 | else |
| 731 | ac_srcdir_defaulted=no |
| 732 | fi |
| 733 | if test ! -r $srcdir/$ac_unique_file; then |
| 734 | if test "$ac_srcdir_defaulted" = yes; then |
| 735 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 736 | { (exit 1); exit 1; }; } |
| 737 | else |
| 738 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 739 | { (exit 1); exit 1; }; } |
| 740 | fi |
| 741 | fi |
| 742 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 743 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 744 | { (exit 1); exit 1; }; } |
| 745 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 746 | ac_env_build_alias_set=${build_alias+set} |
| 747 | ac_env_build_alias_value=$build_alias |
| 748 | ac_cv_env_build_alias_set=${build_alias+set} |
| 749 | ac_cv_env_build_alias_value=$build_alias |
| 750 | ac_env_host_alias_set=${host_alias+set} |
| 751 | ac_env_host_alias_value=$host_alias |
| 752 | ac_cv_env_host_alias_set=${host_alias+set} |
| 753 | ac_cv_env_host_alias_value=$host_alias |
| 754 | ac_env_target_alias_set=${target_alias+set} |
| 755 | ac_env_target_alias_value=$target_alias |
| 756 | ac_cv_env_target_alias_set=${target_alias+set} |
| 757 | ac_cv_env_target_alias_value=$target_alias |
| 758 | ac_env_CC_set=${CC+set} |
| 759 | ac_env_CC_value=$CC |
| 760 | ac_cv_env_CC_set=${CC+set} |
| 761 | ac_cv_env_CC_value=$CC |
| 762 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 763 | ac_env_CFLAGS_value=$CFLAGS |
| 764 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 765 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 766 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 767 | ac_env_LDFLAGS_value=$LDFLAGS |
| 768 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 769 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 770 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 771 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 772 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 773 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 774 | ac_env_CPP_set=${CPP+set} |
| 775 | ac_env_CPP_value=$CPP |
| 776 | ac_cv_env_CPP_set=${CPP+set} |
| 777 | ac_cv_env_CPP_value=$CPP |
| 778 | |
| 779 | # |
| 780 | # Report the --help message. |
| 781 | # |
| 782 | if test "$ac_init_help" = "long"; then |
| 783 | # Omit some internal or obsolete options to make the list less imposing. |
| 784 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 785 | cat <<_ACEOF |
| 786 | \`configure' configures this package to adapt to many kinds of systems. |
| 787 | |
| 788 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 789 | |
| 790 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 791 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 792 | |
| 793 | Defaults for the options are specified in brackets. |
| 794 | |
| 795 | Configuration: |
| 796 | -h, --help display this help and exit |
| 797 | --help=short display options specific to this package |
| 798 | --help=recursive display the short help of all the included packages |
| 799 | -V, --version display version information and exit |
| 800 | -q, --quiet, --silent do not print \`checking...' messages |
| 801 | --cache-file=FILE cache test results in FILE [disabled] |
| 802 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 803 | -n, --no-create do not create output files |
| 804 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 805 | |
| 806 | _ACEOF |
| 807 | |
| 808 | cat <<_ACEOF |
| 809 | Installation directories: |
| 810 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 811 | [$ac_default_prefix] |
| 812 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 813 | [PREFIX] |
| 814 | |
| 815 | By default, \`make install' will install all the files in |
| 816 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 817 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 818 | for instance \`--prefix=\$HOME'. |
| 819 | |
| 820 | For better control, use the options below. |
| 821 | |
| 822 | Fine tuning of the installation directories: |
| 823 | --bindir=DIR user executables [EPREFIX/bin] |
| 824 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 825 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 826 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 827 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 828 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 829 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 830 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 831 | --includedir=DIR C header files [PREFIX/include] |
| 832 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 833 | --infodir=DIR info documentation [PREFIX/info] |
| 834 | --mandir=DIR man documentation [PREFIX/man] |
| 835 | _ACEOF |
| 836 | |
| 837 | cat <<\_ACEOF |
| 838 | |
| 839 | Program names: |
| 840 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 841 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 842 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 843 | |
| 844 | X features: |
| 845 | --x-includes=DIR X include files are in DIR |
| 846 | --x-libraries=DIR X library files are in DIR |
| 847 | |
| 848 | System types: |
| 849 | --build=BUILD configure for building on BUILD [guessed] |
| 850 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 851 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 852 | _ACEOF |
| 853 | fi |
| 854 | |
| 855 | if test -n "$ac_init_help"; then |
| 856 | |
| 857 | cat <<\_ACEOF |
| 858 | |
| 859 | Optional Features: |
| 860 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 861 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 862 | --enable-maintainer-mode enable make rules and dependencies not useful |
| 863 | (and sometimes confusing) to the casual installer |
| 864 | --disable-dependency-tracking speeds up one-time build |
| 865 | --enable-dependency-tracking do not reject slow dependency extractors |
| 866 | --enable-targets alternative target configurations |
| 867 | --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) |
| 868 | --disable-gdbcli disable command-line interface (CLI) |
| 869 | --disable-gdbmi disable machine-interface (MI) |
| 870 | --enable-tui enable full-screen terminal user interface (TUI) |
| 871 | --enable-gdbtk enable gdbtk graphical user interface (GUI) |
| 872 | --enable-profiling enable profiling of GDB |
| 873 | --disable-rpath do not hardcode runtime library paths |
| 874 | --enable-werror treat compile warnings as errors |
| 875 | --enable-build-warnings Enable build-time compiler warnings if gcc is used |
| 876 | --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used |
| 877 | --enable-sim Link gdb with simulator |
| 878 | --enable-multi-ice build the multi-ice-gdb-server |
| 879 | |
| 880 | Optional Packages: |
| 881 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 882 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 883 | --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug |
| 884 | --with-libunwind Use libunwind frame unwinding support |
| 885 | --with-system-readline use installed readline library |
| 886 | --with-expat include expat support (auto/yes/no) |
| 887 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 888 | --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib |
| 889 | --without-libexpat-prefix don't search for libexpat in includedir and libdir |
| 890 | --without-included-regex don't use included regex; this is the default |
| 891 | on systems with version 2 of the GNU C library |
| 892 | (use with caution on other system) |
| 893 | --with-sysroot=DIR Search for usr/lib et al within DIR. |
| 894 | --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh) |
| 895 | --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh) |
| 896 | --with-tclinclude=DIR Directory where tcl private headers are |
| 897 | --with-tkinclude=DIR Directory where tk private headers are |
| 898 | --with-itclconfig Directory containing itcl configuration (itclConfig.sh) |
| 899 | --with-itkconfig Directory containing itk configuration (itkConfig.sh) |
| 900 | --with-x use the X Window System |
| 901 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib |
| 902 | |
| 903 | Some influential environment variables: |
| 904 | CC C compiler command |
| 905 | CFLAGS C compiler flags |
| 906 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 907 | nonstandard directory <lib dir> |
| 908 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 909 | headers in a nonstandard directory <include dir> |
| 910 | CPP C preprocessor |
| 911 | |
| 912 | Use these variables to override the choices made by `configure' or to help |
| 913 | it to find libraries and programs with nonstandard names/locations. |
| 914 | |
| 915 | _ACEOF |
| 916 | fi |
| 917 | |
| 918 | if test "$ac_init_help" = "recursive"; then |
| 919 | # If there are subdirs, report their specific --help. |
| 920 | ac_popdir=`pwd` |
| 921 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 922 | test -d $ac_dir || continue |
| 923 | ac_builddir=. |
| 924 | |
| 925 | if test "$ac_dir" != .; then |
| 926 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 927 | # A "../" for each directory in $ac_dir_suffix. |
| 928 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 929 | else |
| 930 | ac_dir_suffix= ac_top_builddir= |
| 931 | fi |
| 932 | |
| 933 | case $srcdir in |
| 934 | .) # No --srcdir option. We are building in place. |
| 935 | ac_srcdir=. |
| 936 | if test -z "$ac_top_builddir"; then |
| 937 | ac_top_srcdir=. |
| 938 | else |
| 939 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 940 | fi ;; |
| 941 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 942 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 943 | ac_top_srcdir=$srcdir ;; |
| 944 | *) # Relative path. |
| 945 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 946 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 947 | esac |
| 948 | |
| 949 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 950 | # the directories may not exist. |
| 951 | case `pwd` in |
| 952 | .) ac_abs_builddir="$ac_dir";; |
| 953 | *) |
| 954 | case "$ac_dir" in |
| 955 | .) ac_abs_builddir=`pwd`;; |
| 956 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 957 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 958 | esac;; |
| 959 | esac |
| 960 | case $ac_abs_builddir in |
| 961 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 962 | *) |
| 963 | case ${ac_top_builddir}. in |
| 964 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 965 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 966 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 967 | esac;; |
| 968 | esac |
| 969 | case $ac_abs_builddir in |
| 970 | .) ac_abs_srcdir=$ac_srcdir;; |
| 971 | *) |
| 972 | case $ac_srcdir in |
| 973 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 974 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 975 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 976 | esac;; |
| 977 | esac |
| 978 | case $ac_abs_builddir in |
| 979 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 980 | *) |
| 981 | case $ac_top_srcdir in |
| 982 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 983 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 984 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 985 | esac;; |
| 986 | esac |
| 987 | |
| 988 | cd $ac_dir |
| 989 | # Check for guested configure; otherwise get Cygnus style configure. |
| 990 | if test -f $ac_srcdir/configure.gnu; then |
| 991 | echo |
| 992 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 993 | elif test -f $ac_srcdir/configure; then |
| 994 | echo |
| 995 | $SHELL $ac_srcdir/configure --help=recursive |
| 996 | elif test -f $ac_srcdir/configure.ac || |
| 997 | test -f $ac_srcdir/configure.in; then |
| 998 | echo |
| 999 | $ac_configure --help |
| 1000 | else |
| 1001 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1002 | fi |
| 1003 | cd $ac_popdir |
| 1004 | done |
| 1005 | fi |
| 1006 | |
| 1007 | test -n "$ac_init_help" && exit 0 |
| 1008 | if $ac_init_version; then |
| 1009 | cat <<\_ACEOF |
| 1010 | |
| 1011 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 1012 | This configure script is free software; the Free Software Foundation |
| 1013 | gives unlimited permission to copy, distribute and modify it. |
| 1014 | _ACEOF |
| 1015 | exit 0 |
| 1016 | fi |
| 1017 | exec 5>config.log |
| 1018 | cat >&5 <<_ACEOF |
| 1019 | This file contains any messages produced by compilers while |
| 1020 | running configure, to aid debugging if configure makes a mistake. |
| 1021 | |
| 1022 | It was created by $as_me, which was |
| 1023 | generated by GNU Autoconf 2.59. Invocation command line was |
| 1024 | |
| 1025 | $ $0 $@ |
| 1026 | |
| 1027 | _ACEOF |
| 1028 | { |
| 1029 | cat <<_ASUNAME |
| 1030 | ## --------- ## |
| 1031 | ## Platform. ## |
| 1032 | ## --------- ## |
| 1033 | |
| 1034 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1035 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1036 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1037 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1038 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1039 | |
| 1040 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1041 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1042 | |
| 1043 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1044 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1045 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1046 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1047 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1048 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1049 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1050 | |
| 1051 | _ASUNAME |
| 1052 | |
| 1053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1054 | for as_dir in $PATH |
| 1055 | do |
| 1056 | IFS=$as_save_IFS |
| 1057 | test -z "$as_dir" && as_dir=. |
| 1058 | echo "PATH: $as_dir" |
| 1059 | done |
| 1060 | |
| 1061 | } >&5 |
| 1062 | |
| 1063 | cat >&5 <<_ACEOF |
| 1064 | |
| 1065 | |
| 1066 | ## ----------- ## |
| 1067 | ## Core tests. ## |
| 1068 | ## ----------- ## |
| 1069 | |
| 1070 | _ACEOF |
| 1071 | |
| 1072 | |
| 1073 | # Keep a trace of the command line. |
| 1074 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1075 | # Strip out --silent because we don't want to record it for future runs. |
| 1076 | # Also quote any args containing shell meta-characters. |
| 1077 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1078 | ac_configure_args= |
| 1079 | ac_configure_args0= |
| 1080 | ac_configure_args1= |
| 1081 | ac_sep= |
| 1082 | ac_must_keep_next=false |
| 1083 | for ac_pass in 1 2 |
| 1084 | do |
| 1085 | for ac_arg |
| 1086 | do |
| 1087 | case $ac_arg in |
| 1088 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1089 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1090 | | -silent | --silent | --silen | --sile | --sil) |
| 1091 | continue ;; |
| 1092 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1093 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1094 | esac |
| 1095 | case $ac_pass in |
| 1096 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1097 | 2) |
| 1098 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1099 | if test $ac_must_keep_next = true; then |
| 1100 | ac_must_keep_next=false # Got value, back to normal. |
| 1101 | else |
| 1102 | case $ac_arg in |
| 1103 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1104 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1105 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1106 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1107 | case "$ac_configure_args0 " in |
| 1108 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1109 | esac |
| 1110 | ;; |
| 1111 | -* ) ac_must_keep_next=true ;; |
| 1112 | esac |
| 1113 | fi |
| 1114 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1115 | # Get rid of the leading space. |
| 1116 | ac_sep=" " |
| 1117 | ;; |
| 1118 | esac |
| 1119 | done |
| 1120 | done |
| 1121 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1122 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1123 | |
| 1124 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1125 | # config.log. We remove comments because anyway the quotes in there |
| 1126 | # would cause problems or look ugly. |
| 1127 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1128 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1129 | trap 'exit_status=$? |
| 1130 | # Save into config.log some information that might help in debugging. |
| 1131 | { |
| 1132 | echo |
| 1133 | |
| 1134 | cat <<\_ASBOX |
| 1135 | ## ---------------- ## |
| 1136 | ## Cache variables. ## |
| 1137 | ## ---------------- ## |
| 1138 | _ASBOX |
| 1139 | echo |
| 1140 | # The following way of writing the cache mishandles newlines in values, |
| 1141 | { |
| 1142 | (set) 2>&1 | |
| 1143 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1144 | *ac_space=\ *) |
| 1145 | sed -n \ |
| 1146 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1147 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1148 | ;; |
| 1149 | *) |
| 1150 | sed -n \ |
| 1151 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1152 | ;; |
| 1153 | esac; |
| 1154 | } |
| 1155 | echo |
| 1156 | |
| 1157 | cat <<\_ASBOX |
| 1158 | ## ----------------- ## |
| 1159 | ## Output variables. ## |
| 1160 | ## ----------------- ## |
| 1161 | _ASBOX |
| 1162 | echo |
| 1163 | for ac_var in $ac_subst_vars |
| 1164 | do |
| 1165 | eval ac_val=$`echo $ac_var` |
| 1166 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1167 | done | sort |
| 1168 | echo |
| 1169 | |
| 1170 | if test -n "$ac_subst_files"; then |
| 1171 | cat <<\_ASBOX |
| 1172 | ## ------------- ## |
| 1173 | ## Output files. ## |
| 1174 | ## ------------- ## |
| 1175 | _ASBOX |
| 1176 | echo |
| 1177 | for ac_var in $ac_subst_files |
| 1178 | do |
| 1179 | eval ac_val=$`echo $ac_var` |
| 1180 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1181 | done | sort |
| 1182 | echo |
| 1183 | fi |
| 1184 | |
| 1185 | if test -s confdefs.h; then |
| 1186 | cat <<\_ASBOX |
| 1187 | ## ----------- ## |
| 1188 | ## confdefs.h. ## |
| 1189 | ## ----------- ## |
| 1190 | _ASBOX |
| 1191 | echo |
| 1192 | sed "/^$/d" confdefs.h | sort |
| 1193 | echo |
| 1194 | fi |
| 1195 | test "$ac_signal" != 0 && |
| 1196 | echo "$as_me: caught signal $ac_signal" |
| 1197 | echo "$as_me: exit $exit_status" |
| 1198 | } >&5 |
| 1199 | rm -f core *.core && |
| 1200 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1201 | exit $exit_status |
| 1202 | ' 0 |
| 1203 | for ac_signal in 1 2 13 15; do |
| 1204 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1205 | done |
| 1206 | ac_signal=0 |
| 1207 | |
| 1208 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1209 | rm -rf conftest* confdefs.h |
| 1210 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1211 | echo >confdefs.h |
| 1212 | |
| 1213 | # Predefined preprocessor variables. |
| 1214 | |
| 1215 | cat >>confdefs.h <<_ACEOF |
| 1216 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1217 | _ACEOF |
| 1218 | |
| 1219 | |
| 1220 | cat >>confdefs.h <<_ACEOF |
| 1221 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1222 | _ACEOF |
| 1223 | |
| 1224 | |
| 1225 | cat >>confdefs.h <<_ACEOF |
| 1226 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1227 | _ACEOF |
| 1228 | |
| 1229 | |
| 1230 | cat >>confdefs.h <<_ACEOF |
| 1231 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1232 | _ACEOF |
| 1233 | |
| 1234 | |
| 1235 | cat >>confdefs.h <<_ACEOF |
| 1236 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1237 | _ACEOF |
| 1238 | |
| 1239 | |
| 1240 | # Let the site file select an alternate cache file if it wants to. |
| 1241 | # Prefer explicitly selected file to automatically selected ones. |
| 1242 | if test -z "$CONFIG_SITE"; then |
| 1243 | if test "x$prefix" != xNONE; then |
| 1244 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1245 | else |
| 1246 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1247 | fi |
| 1248 | fi |
| 1249 | for ac_site_file in $CONFIG_SITE; do |
| 1250 | if test -r "$ac_site_file"; then |
| 1251 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1252 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1253 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1254 | . "$ac_site_file" |
| 1255 | fi |
| 1256 | done |
| 1257 | |
| 1258 | if test -r "$cache_file"; then |
| 1259 | # Some versions of bash will fail to source /dev/null (special |
| 1260 | # files actually), so we avoid doing that. |
| 1261 | if test -f "$cache_file"; then |
| 1262 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1263 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1264 | case $cache_file in |
| 1265 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1266 | *) . ./$cache_file;; |
| 1267 | esac |
| 1268 | fi |
| 1269 | else |
| 1270 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1271 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1272 | >$cache_file |
| 1273 | fi |
| 1274 | |
| 1275 | # Check that the precious variables saved in the cache have kept the same |
| 1276 | # value. |
| 1277 | ac_cache_corrupted=false |
| 1278 | for ac_var in `(set) 2>&1 | |
| 1279 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1280 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1281 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1282 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1283 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1284 | case $ac_old_set,$ac_new_set in |
| 1285 | set,) |
| 1286 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1287 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1288 | ac_cache_corrupted=: ;; |
| 1289 | ,set) |
| 1290 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1291 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1292 | ac_cache_corrupted=: ;; |
| 1293 | ,);; |
| 1294 | *) |
| 1295 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1296 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1297 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1298 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1299 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1300 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1301 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1302 | ac_cache_corrupted=: |
| 1303 | fi;; |
| 1304 | esac |
| 1305 | # Pass precious variables to config.status. |
| 1306 | if test "$ac_new_set" = set; then |
| 1307 | case $ac_new_val in |
| 1308 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1309 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1310 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1311 | esac |
| 1312 | case " $ac_configure_args " in |
| 1313 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1314 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1315 | esac |
| 1316 | fi |
| 1317 | done |
| 1318 | if $ac_cache_corrupted; then |
| 1319 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1320 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1321 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1322 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1323 | { (exit 1); exit 1; }; } |
| 1324 | fi |
| 1325 | |
| 1326 | ac_ext=c |
| 1327 | ac_cpp='$CPP $CPPFLAGS' |
| 1328 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1329 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1330 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1331 | |
| 1332 | |
| 1333 | gl_header_list="$gl_header_list stdint.h" |
| 1334 | gl_header_list="$gl_header_list wchar.h" |
| 1335 | gl_header_list="$gl_header_list string.h" |
| 1336 | |
| 1337 | |
| 1338 | |
| 1339 | |
| 1340 | |
| 1341 | |
| 1342 | |
| 1343 | |
| 1344 | |
| 1345 | |
| 1346 | |
| 1347 | |
| 1348 | |
| 1349 | |
| 1350 | |
| 1351 | |
| 1352 | |
| 1353 | ac_config_headers="$ac_config_headers config.h:config.in" |
| 1354 | |
| 1355 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 1356 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
| 1357 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
| 1358 | if test "${enable_maintainer_mode+set}" = set; then |
| 1359 | enableval="$enable_maintainer_mode" |
| 1360 | USE_MAINTAINER_MODE=$enableval |
| 1361 | else |
| 1362 | USE_MAINTAINER_MODE=no |
| 1363 | fi; |
| 1364 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
| 1365 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 |
| 1366 | |
| 1367 | |
| 1368 | if test $USE_MAINTAINER_MODE = yes; then |
| 1369 | MAINTAINER_MODE_TRUE= |
| 1370 | MAINTAINER_MODE_FALSE='#' |
| 1371 | else |
| 1372 | MAINTAINER_MODE_TRUE='#' |
| 1373 | MAINTAINER_MODE_FALSE= |
| 1374 | fi |
| 1375 | |
| 1376 | MAINT=$MAINTAINER_MODE_TRUE |
| 1377 | |
| 1378 | |
| 1379 | |
| 1380 | ac_ext=c |
| 1381 | ac_cpp='$CPP $CPPFLAGS' |
| 1382 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1383 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1384 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1385 | if test -n "$ac_tool_prefix"; then |
| 1386 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1387 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1388 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1389 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1390 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1392 | else |
| 1393 | if test -n "$CC"; then |
| 1394 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1395 | else |
| 1396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1397 | for as_dir in $PATH |
| 1398 | do |
| 1399 | IFS=$as_save_IFS |
| 1400 | test -z "$as_dir" && as_dir=. |
| 1401 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1402 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1403 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1404 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1405 | break 2 |
| 1406 | fi |
| 1407 | done |
| 1408 | done |
| 1409 | |
| 1410 | fi |
| 1411 | fi |
| 1412 | CC=$ac_cv_prog_CC |
| 1413 | if test -n "$CC"; then |
| 1414 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1415 | echo "${ECHO_T}$CC" >&6 |
| 1416 | else |
| 1417 | echo "$as_me:$LINENO: result: no" >&5 |
| 1418 | echo "${ECHO_T}no" >&6 |
| 1419 | fi |
| 1420 | |
| 1421 | fi |
| 1422 | if test -z "$ac_cv_prog_CC"; then |
| 1423 | ac_ct_CC=$CC |
| 1424 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1425 | set dummy gcc; ac_word=$2 |
| 1426 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1427 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1428 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1430 | else |
| 1431 | if test -n "$ac_ct_CC"; then |
| 1432 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1433 | else |
| 1434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1435 | for as_dir in $PATH |
| 1436 | do |
| 1437 | IFS=$as_save_IFS |
| 1438 | test -z "$as_dir" && as_dir=. |
| 1439 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1440 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1441 | ac_cv_prog_ac_ct_CC="gcc" |
| 1442 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1443 | break 2 |
| 1444 | fi |
| 1445 | done |
| 1446 | done |
| 1447 | |
| 1448 | fi |
| 1449 | fi |
| 1450 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1451 | if test -n "$ac_ct_CC"; then |
| 1452 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1453 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1454 | else |
| 1455 | echo "$as_me:$LINENO: result: no" >&5 |
| 1456 | echo "${ECHO_T}no" >&6 |
| 1457 | fi |
| 1458 | |
| 1459 | CC=$ac_ct_CC |
| 1460 | else |
| 1461 | CC="$ac_cv_prog_CC" |
| 1462 | fi |
| 1463 | |
| 1464 | if test -z "$CC"; then |
| 1465 | if test -n "$ac_tool_prefix"; then |
| 1466 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1467 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1468 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1469 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1470 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1472 | else |
| 1473 | if test -n "$CC"; then |
| 1474 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1475 | else |
| 1476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1477 | for as_dir in $PATH |
| 1478 | do |
| 1479 | IFS=$as_save_IFS |
| 1480 | test -z "$as_dir" && as_dir=. |
| 1481 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1482 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1483 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1484 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1485 | break 2 |
| 1486 | fi |
| 1487 | done |
| 1488 | done |
| 1489 | |
| 1490 | fi |
| 1491 | fi |
| 1492 | CC=$ac_cv_prog_CC |
| 1493 | if test -n "$CC"; then |
| 1494 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1495 | echo "${ECHO_T}$CC" >&6 |
| 1496 | else |
| 1497 | echo "$as_me:$LINENO: result: no" >&5 |
| 1498 | echo "${ECHO_T}no" >&6 |
| 1499 | fi |
| 1500 | |
| 1501 | fi |
| 1502 | if test -z "$ac_cv_prog_CC"; then |
| 1503 | ac_ct_CC=$CC |
| 1504 | # Extract the first word of "cc", so it can be a program name with args. |
| 1505 | set dummy cc; ac_word=$2 |
| 1506 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1507 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1508 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1510 | else |
| 1511 | if test -n "$ac_ct_CC"; then |
| 1512 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1513 | else |
| 1514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1515 | for as_dir in $PATH |
| 1516 | do |
| 1517 | IFS=$as_save_IFS |
| 1518 | test -z "$as_dir" && as_dir=. |
| 1519 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1520 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1521 | ac_cv_prog_ac_ct_CC="cc" |
| 1522 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1523 | break 2 |
| 1524 | fi |
| 1525 | done |
| 1526 | done |
| 1527 | |
| 1528 | fi |
| 1529 | fi |
| 1530 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1531 | if test -n "$ac_ct_CC"; then |
| 1532 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1533 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1534 | else |
| 1535 | echo "$as_me:$LINENO: result: no" >&5 |
| 1536 | echo "${ECHO_T}no" >&6 |
| 1537 | fi |
| 1538 | |
| 1539 | CC=$ac_ct_CC |
| 1540 | else |
| 1541 | CC="$ac_cv_prog_CC" |
| 1542 | fi |
| 1543 | |
| 1544 | fi |
| 1545 | if test -z "$CC"; then |
| 1546 | # Extract the first word of "cc", so it can be a program name with args. |
| 1547 | set dummy cc; ac_word=$2 |
| 1548 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1549 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1550 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1552 | else |
| 1553 | if test -n "$CC"; then |
| 1554 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1555 | else |
| 1556 | ac_prog_rejected=no |
| 1557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1558 | for as_dir in $PATH |
| 1559 | do |
| 1560 | IFS=$as_save_IFS |
| 1561 | test -z "$as_dir" && as_dir=. |
| 1562 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1563 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1564 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1565 | ac_prog_rejected=yes |
| 1566 | continue |
| 1567 | fi |
| 1568 | ac_cv_prog_CC="cc" |
| 1569 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1570 | break 2 |
| 1571 | fi |
| 1572 | done |
| 1573 | done |
| 1574 | |
| 1575 | if test $ac_prog_rejected = yes; then |
| 1576 | # We found a bogon in the path, so make sure we never use it. |
| 1577 | set dummy $ac_cv_prog_CC |
| 1578 | shift |
| 1579 | if test $# != 0; then |
| 1580 | # We chose a different compiler from the bogus one. |
| 1581 | # However, it has the same basename, so the bogon will be chosen |
| 1582 | # first if we set CC to just the basename; use the full file name. |
| 1583 | shift |
| 1584 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 1585 | fi |
| 1586 | fi |
| 1587 | fi |
| 1588 | fi |
| 1589 | CC=$ac_cv_prog_CC |
| 1590 | if test -n "$CC"; then |
| 1591 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1592 | echo "${ECHO_T}$CC" >&6 |
| 1593 | else |
| 1594 | echo "$as_me:$LINENO: result: no" >&5 |
| 1595 | echo "${ECHO_T}no" >&6 |
| 1596 | fi |
| 1597 | |
| 1598 | fi |
| 1599 | if test -z "$CC"; then |
| 1600 | if test -n "$ac_tool_prefix"; then |
| 1601 | for ac_prog in cl |
| 1602 | do |
| 1603 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1604 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1605 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1606 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1607 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1609 | else |
| 1610 | if test -n "$CC"; then |
| 1611 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1612 | else |
| 1613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1614 | for as_dir in $PATH |
| 1615 | do |
| 1616 | IFS=$as_save_IFS |
| 1617 | test -z "$as_dir" && as_dir=. |
| 1618 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1619 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1620 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1621 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1622 | break 2 |
| 1623 | fi |
| 1624 | done |
| 1625 | done |
| 1626 | |
| 1627 | fi |
| 1628 | fi |
| 1629 | CC=$ac_cv_prog_CC |
| 1630 | if test -n "$CC"; then |
| 1631 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1632 | echo "${ECHO_T}$CC" >&6 |
| 1633 | else |
| 1634 | echo "$as_me:$LINENO: result: no" >&5 |
| 1635 | echo "${ECHO_T}no" >&6 |
| 1636 | fi |
| 1637 | |
| 1638 | test -n "$CC" && break |
| 1639 | done |
| 1640 | fi |
| 1641 | if test -z "$CC"; then |
| 1642 | ac_ct_CC=$CC |
| 1643 | for ac_prog in cl |
| 1644 | do |
| 1645 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1646 | set dummy $ac_prog; ac_word=$2 |
| 1647 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1648 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1649 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1651 | else |
| 1652 | if test -n "$ac_ct_CC"; then |
| 1653 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1654 | else |
| 1655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1656 | for as_dir in $PATH |
| 1657 | do |
| 1658 | IFS=$as_save_IFS |
| 1659 | test -z "$as_dir" && as_dir=. |
| 1660 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1661 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1662 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1663 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1664 | break 2 |
| 1665 | fi |
| 1666 | done |
| 1667 | done |
| 1668 | |
| 1669 | fi |
| 1670 | fi |
| 1671 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1672 | if test -n "$ac_ct_CC"; then |
| 1673 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1674 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1675 | else |
| 1676 | echo "$as_me:$LINENO: result: no" >&5 |
| 1677 | echo "${ECHO_T}no" >&6 |
| 1678 | fi |
| 1679 | |
| 1680 | test -n "$ac_ct_CC" && break |
| 1681 | done |
| 1682 | |
| 1683 | CC=$ac_ct_CC |
| 1684 | fi |
| 1685 | |
| 1686 | fi |
| 1687 | |
| 1688 | |
| 1689 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1690 | See \`config.log' for more details." >&5 |
| 1691 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1692 | See \`config.log' for more details." >&2;} |
| 1693 | { (exit 1); exit 1; }; } |
| 1694 | |
| 1695 | # Provide some information about the compiler. |
| 1696 | echo "$as_me:$LINENO:" \ |
| 1697 | "checking for C compiler version" >&5 |
| 1698 | ac_compiler=`set X $ac_compile; echo $2` |
| 1699 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1700 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1701 | ac_status=$? |
| 1702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1703 | (exit $ac_status); } |
| 1704 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1705 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1706 | ac_status=$? |
| 1707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1708 | (exit $ac_status); } |
| 1709 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1710 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1711 | ac_status=$? |
| 1712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1713 | (exit $ac_status); } |
| 1714 | |
| 1715 | cat >conftest.$ac_ext <<_ACEOF |
| 1716 | /* confdefs.h. */ |
| 1717 | _ACEOF |
| 1718 | cat confdefs.h >>conftest.$ac_ext |
| 1719 | cat >>conftest.$ac_ext <<_ACEOF |
| 1720 | /* end confdefs.h. */ |
| 1721 | |
| 1722 | int |
| 1723 | main () |
| 1724 | { |
| 1725 | |
| 1726 | ; |
| 1727 | return 0; |
| 1728 | } |
| 1729 | _ACEOF |
| 1730 | ac_clean_files_save=$ac_clean_files |
| 1731 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 1732 | # Try to create an executable without -o first, disregard a.out. |
| 1733 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1734 | # of exeext. |
| 1735 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 1736 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
| 1737 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1738 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1739 | (eval $ac_link_default) 2>&5 |
| 1740 | ac_status=$? |
| 1741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1742 | (exit $ac_status); }; then |
| 1743 | # Find the output, starting from the most likely. This scheme is |
| 1744 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1745 | # resort. |
| 1746 | |
| 1747 | # Be careful to initialize this variable, since it used to be cached. |
| 1748 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1749 | ac_cv_exeext= |
| 1750 | # b.out is created by i960 compilers. |
| 1751 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1752 | do |
| 1753 | test -f "$ac_file" || continue |
| 1754 | case $ac_file in |
| 1755 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1756 | ;; |
| 1757 | conftest.$ac_ext ) |
| 1758 | # This is the source file. |
| 1759 | ;; |
| 1760 | [ab].out ) |
| 1761 | # We found the default executable, but exeext='' is most |
| 1762 | # certainly right. |
| 1763 | break;; |
| 1764 | *.* ) |
| 1765 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1766 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1767 | # but it would be cool to find out if it's true. Does anybody |
| 1768 | # maintain Libtool? --akim. |
| 1769 | export ac_cv_exeext |
| 1770 | break;; |
| 1771 | * ) |
| 1772 | break;; |
| 1773 | esac |
| 1774 | done |
| 1775 | else |
| 1776 | echo "$as_me: failed program was:" >&5 |
| 1777 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1778 | |
| 1779 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 1780 | See \`config.log' for more details." >&5 |
| 1781 | echo "$as_me: error: C compiler cannot create executables |
| 1782 | See \`config.log' for more details." >&2;} |
| 1783 | { (exit 77); exit 77; }; } |
| 1784 | fi |
| 1785 | |
| 1786 | ac_exeext=$ac_cv_exeext |
| 1787 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1788 | echo "${ECHO_T}$ac_file" >&6 |
| 1789 | |
| 1790 | # Check the compiler produces executables we can run. If not, either |
| 1791 | # the compiler is broken, or we cross compile. |
| 1792 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 1793 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1794 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1795 | # If not cross compiling, check that we can run a simple program. |
| 1796 | if test "$cross_compiling" != yes; then |
| 1797 | if { ac_try='./$ac_file' |
| 1798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1799 | (eval $ac_try) 2>&5 |
| 1800 | ac_status=$? |
| 1801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1802 | (exit $ac_status); }; }; then |
| 1803 | cross_compiling=no |
| 1804 | else |
| 1805 | if test "$cross_compiling" = maybe; then |
| 1806 | cross_compiling=yes |
| 1807 | else |
| 1808 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 1809 | If you meant to cross compile, use \`--host'. |
| 1810 | See \`config.log' for more details." >&5 |
| 1811 | echo "$as_me: error: cannot run C compiled programs. |
| 1812 | If you meant to cross compile, use \`--host'. |
| 1813 | See \`config.log' for more details." >&2;} |
| 1814 | { (exit 1); exit 1; }; } |
| 1815 | fi |
| 1816 | fi |
| 1817 | fi |
| 1818 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1819 | echo "${ECHO_T}yes" >&6 |
| 1820 | |
| 1821 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 1822 | ac_clean_files=$ac_clean_files_save |
| 1823 | # Check the compiler produces executables we can run. If not, either |
| 1824 | # the compiler is broken, or we cross compile. |
| 1825 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1826 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1827 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1828 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1829 | |
| 1830 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1831 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1832 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1833 | (eval $ac_link) 2>&5 |
| 1834 | ac_status=$? |
| 1835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1836 | (exit $ac_status); }; then |
| 1837 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1838 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1839 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1840 | # `rm'. |
| 1841 | for ac_file in conftest.exe conftest conftest.*; do |
| 1842 | test -f "$ac_file" || continue |
| 1843 | case $ac_file in |
| 1844 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 1845 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1846 | export ac_cv_exeext |
| 1847 | break;; |
| 1848 | * ) break;; |
| 1849 | esac |
| 1850 | done |
| 1851 | else |
| 1852 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1853 | See \`config.log' for more details." >&5 |
| 1854 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1855 | See \`config.log' for more details." >&2;} |
| 1856 | { (exit 1); exit 1; }; } |
| 1857 | fi |
| 1858 | |
| 1859 | rm -f conftest$ac_cv_exeext |
| 1860 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1861 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1862 | |
| 1863 | rm -f conftest.$ac_ext |
| 1864 | EXEEXT=$ac_cv_exeext |
| 1865 | ac_exeext=$EXEEXT |
| 1866 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1867 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 1868 | if test "${ac_cv_objext+set}" = set; then |
| 1869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1870 | else |
| 1871 | cat >conftest.$ac_ext <<_ACEOF |
| 1872 | /* confdefs.h. */ |
| 1873 | _ACEOF |
| 1874 | cat confdefs.h >>conftest.$ac_ext |
| 1875 | cat >>conftest.$ac_ext <<_ACEOF |
| 1876 | /* end confdefs.h. */ |
| 1877 | |
| 1878 | int |
| 1879 | main () |
| 1880 | { |
| 1881 | |
| 1882 | ; |
| 1883 | return 0; |
| 1884 | } |
| 1885 | _ACEOF |
| 1886 | rm -f conftest.o conftest.obj |
| 1887 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1888 | (eval $ac_compile) 2>&5 |
| 1889 | ac_status=$? |
| 1890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1891 | (exit $ac_status); }; then |
| 1892 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 1893 | case $ac_file in |
| 1894 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 1895 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1896 | break;; |
| 1897 | esac |
| 1898 | done |
| 1899 | else |
| 1900 | echo "$as_me: failed program was:" >&5 |
| 1901 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1902 | |
| 1903 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 1904 | See \`config.log' for more details." >&5 |
| 1905 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 1906 | See \`config.log' for more details." >&2;} |
| 1907 | { (exit 1); exit 1; }; } |
| 1908 | fi |
| 1909 | |
| 1910 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 1911 | fi |
| 1912 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 1913 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 1914 | OBJEXT=$ac_cv_objext |
| 1915 | ac_objext=$OBJEXT |
| 1916 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 1917 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 1918 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 1919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1920 | else |
| 1921 | cat >conftest.$ac_ext <<_ACEOF |
| 1922 | /* confdefs.h. */ |
| 1923 | _ACEOF |
| 1924 | cat confdefs.h >>conftest.$ac_ext |
| 1925 | cat >>conftest.$ac_ext <<_ACEOF |
| 1926 | /* end confdefs.h. */ |
| 1927 | |
| 1928 | int |
| 1929 | main () |
| 1930 | { |
| 1931 | #ifndef __GNUC__ |
| 1932 | choke me |
| 1933 | #endif |
| 1934 | |
| 1935 | ; |
| 1936 | return 0; |
| 1937 | } |
| 1938 | _ACEOF |
| 1939 | rm -f conftest.$ac_objext |
| 1940 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1941 | (eval $ac_compile) 2>conftest.er1 |
| 1942 | ac_status=$? |
| 1943 | grep -v '^ *+' conftest.er1 >conftest.err |
| 1944 | rm -f conftest.er1 |
| 1945 | cat conftest.err >&5 |
| 1946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1947 | (exit $ac_status); } && |
| 1948 | { ac_try='test -z "$ac_c_werror_flag" |
| 1949 | || test ! -s conftest.err' |
| 1950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1951 | (eval $ac_try) 2>&5 |
| 1952 | ac_status=$? |
| 1953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1954 | (exit $ac_status); }; } && |
| 1955 | { ac_try='test -s conftest.$ac_objext' |
| 1956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1957 | (eval $ac_try) 2>&5 |
| 1958 | ac_status=$? |
| 1959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1960 | (exit $ac_status); }; }; then |
| 1961 | ac_compiler_gnu=yes |
| 1962 | else |
| 1963 | echo "$as_me: failed program was:" >&5 |
| 1964 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1965 | |
| 1966 | ac_compiler_gnu=no |
| 1967 | fi |
| 1968 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1969 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 1970 | |
| 1971 | fi |
| 1972 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 1973 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 1974 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 1975 | ac_test_CFLAGS=${CFLAGS+set} |
| 1976 | ac_save_CFLAGS=$CFLAGS |
| 1977 | CFLAGS="-g" |
| 1978 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 1979 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 1980 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 1981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1982 | else |
| 1983 | cat >conftest.$ac_ext <<_ACEOF |
| 1984 | /* confdefs.h. */ |
| 1985 | _ACEOF |
| 1986 | cat confdefs.h >>conftest.$ac_ext |
| 1987 | cat >>conftest.$ac_ext <<_ACEOF |
| 1988 | /* end confdefs.h. */ |
| 1989 | |
| 1990 | int |
| 1991 | main () |
| 1992 | { |
| 1993 | |
| 1994 | ; |
| 1995 | return 0; |
| 1996 | } |
| 1997 | _ACEOF |
| 1998 | rm -f conftest.$ac_objext |
| 1999 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2000 | (eval $ac_compile) 2>conftest.er1 |
| 2001 | ac_status=$? |
| 2002 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2003 | rm -f conftest.er1 |
| 2004 | cat conftest.err >&5 |
| 2005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2006 | (exit $ac_status); } && |
| 2007 | { ac_try='test -z "$ac_c_werror_flag" |
| 2008 | || test ! -s conftest.err' |
| 2009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2010 | (eval $ac_try) 2>&5 |
| 2011 | ac_status=$? |
| 2012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2013 | (exit $ac_status); }; } && |
| 2014 | { ac_try='test -s conftest.$ac_objext' |
| 2015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2016 | (eval $ac_try) 2>&5 |
| 2017 | ac_status=$? |
| 2018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2019 | (exit $ac_status); }; }; then |
| 2020 | ac_cv_prog_cc_g=yes |
| 2021 | else |
| 2022 | echo "$as_me: failed program was:" >&5 |
| 2023 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2024 | |
| 2025 | ac_cv_prog_cc_g=no |
| 2026 | fi |
| 2027 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2028 | fi |
| 2029 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2030 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2031 | if test "$ac_test_CFLAGS" = set; then |
| 2032 | CFLAGS=$ac_save_CFLAGS |
| 2033 | elif test $ac_cv_prog_cc_g = yes; then |
| 2034 | if test "$GCC" = yes; then |
| 2035 | CFLAGS="-g -O2" |
| 2036 | else |
| 2037 | CFLAGS="-g" |
| 2038 | fi |
| 2039 | else |
| 2040 | if test "$GCC" = yes; then |
| 2041 | CFLAGS="-O2" |
| 2042 | else |
| 2043 | CFLAGS= |
| 2044 | fi |
| 2045 | fi |
| 2046 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2047 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2048 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2050 | else |
| 2051 | ac_cv_prog_cc_stdc=no |
| 2052 | ac_save_CC=$CC |
| 2053 | cat >conftest.$ac_ext <<_ACEOF |
| 2054 | /* confdefs.h. */ |
| 2055 | _ACEOF |
| 2056 | cat confdefs.h >>conftest.$ac_ext |
| 2057 | cat >>conftest.$ac_ext <<_ACEOF |
| 2058 | /* end confdefs.h. */ |
| 2059 | #include <stdarg.h> |
| 2060 | #include <stdio.h> |
| 2061 | #include <sys/types.h> |
| 2062 | #include <sys/stat.h> |
| 2063 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2064 | struct buf { int x; }; |
| 2065 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2066 | static char *e (p, i) |
| 2067 | char **p; |
| 2068 | int i; |
| 2069 | { |
| 2070 | return p[i]; |
| 2071 | } |
| 2072 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2073 | { |
| 2074 | char *s; |
| 2075 | va_list v; |
| 2076 | va_start (v,p); |
| 2077 | s = g (p, va_arg (v,int)); |
| 2078 | va_end (v); |
| 2079 | return s; |
| 2080 | } |
| 2081 | |
| 2082 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2083 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2084 | These don't provoke an error unfortunately, instead are silently treated |
| 2085 | as 'x'. The following induces an error, until -std1 is added to get |
| 2086 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2087 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2088 | that's true only with -std1. */ |
| 2089 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2090 | |
| 2091 | int test (int i, double x); |
| 2092 | struct s1 {int (*f) (int a);}; |
| 2093 | struct s2 {int (*f) (double a);}; |
| 2094 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2095 | int argc; |
| 2096 | char **argv; |
| 2097 | int |
| 2098 | main () |
| 2099 | { |
| 2100 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2101 | ; |
| 2102 | return 0; |
| 2103 | } |
| 2104 | _ACEOF |
| 2105 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2106 | # breaks some systems' header files. |
| 2107 | # AIX -qlanglvl=ansi |
| 2108 | # Ultrix and OSF/1 -std1 |
| 2109 | # HP-UX 10.20 and later -Ae |
| 2110 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2111 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2112 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2113 | do |
| 2114 | CC="$ac_save_CC $ac_arg" |
| 2115 | rm -f conftest.$ac_objext |
| 2116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2117 | (eval $ac_compile) 2>conftest.er1 |
| 2118 | ac_status=$? |
| 2119 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2120 | rm -f conftest.er1 |
| 2121 | cat conftest.err >&5 |
| 2122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2123 | (exit $ac_status); } && |
| 2124 | { ac_try='test -z "$ac_c_werror_flag" |
| 2125 | || test ! -s conftest.err' |
| 2126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2127 | (eval $ac_try) 2>&5 |
| 2128 | ac_status=$? |
| 2129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2130 | (exit $ac_status); }; } && |
| 2131 | { ac_try='test -s conftest.$ac_objext' |
| 2132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2133 | (eval $ac_try) 2>&5 |
| 2134 | ac_status=$? |
| 2135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2136 | (exit $ac_status); }; }; then |
| 2137 | ac_cv_prog_cc_stdc=$ac_arg |
| 2138 | break |
| 2139 | else |
| 2140 | echo "$as_me: failed program was:" >&5 |
| 2141 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2142 | |
| 2143 | fi |
| 2144 | rm -f conftest.err conftest.$ac_objext |
| 2145 | done |
| 2146 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2147 | CC=$ac_save_CC |
| 2148 | |
| 2149 | fi |
| 2150 | |
| 2151 | case "x$ac_cv_prog_cc_stdc" in |
| 2152 | x|xno) |
| 2153 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2154 | echo "${ECHO_T}none needed" >&6 ;; |
| 2155 | *) |
| 2156 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2157 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2158 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2159 | esac |
| 2160 | |
| 2161 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2162 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2163 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2164 | # the declaration of exit, since it's the most demanding environment. |
| 2165 | cat >conftest.$ac_ext <<_ACEOF |
| 2166 | #ifndef __cplusplus |
| 2167 | choke me |
| 2168 | #endif |
| 2169 | _ACEOF |
| 2170 | rm -f conftest.$ac_objext |
| 2171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2172 | (eval $ac_compile) 2>conftest.er1 |
| 2173 | ac_status=$? |
| 2174 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2175 | rm -f conftest.er1 |
| 2176 | cat conftest.err >&5 |
| 2177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2178 | (exit $ac_status); } && |
| 2179 | { ac_try='test -z "$ac_c_werror_flag" |
| 2180 | || test ! -s conftest.err' |
| 2181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2182 | (eval $ac_try) 2>&5 |
| 2183 | ac_status=$? |
| 2184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2185 | (exit $ac_status); }; } && |
| 2186 | { ac_try='test -s conftest.$ac_objext' |
| 2187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2188 | (eval $ac_try) 2>&5 |
| 2189 | ac_status=$? |
| 2190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2191 | (exit $ac_status); }; }; then |
| 2192 | for ac_declaration in \ |
| 2193 | '' \ |
| 2194 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2195 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2196 | 'extern "C" void exit (int) throw ();' \ |
| 2197 | 'extern "C" void exit (int);' \ |
| 2198 | 'void exit (int);' |
| 2199 | do |
| 2200 | cat >conftest.$ac_ext <<_ACEOF |
| 2201 | /* confdefs.h. */ |
| 2202 | _ACEOF |
| 2203 | cat confdefs.h >>conftest.$ac_ext |
| 2204 | cat >>conftest.$ac_ext <<_ACEOF |
| 2205 | /* end confdefs.h. */ |
| 2206 | $ac_declaration |
| 2207 | #include <stdlib.h> |
| 2208 | int |
| 2209 | main () |
| 2210 | { |
| 2211 | exit (42); |
| 2212 | ; |
| 2213 | return 0; |
| 2214 | } |
| 2215 | _ACEOF |
| 2216 | rm -f conftest.$ac_objext |
| 2217 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2218 | (eval $ac_compile) 2>conftest.er1 |
| 2219 | ac_status=$? |
| 2220 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2221 | rm -f conftest.er1 |
| 2222 | cat conftest.err >&5 |
| 2223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2224 | (exit $ac_status); } && |
| 2225 | { ac_try='test -z "$ac_c_werror_flag" |
| 2226 | || test ! -s conftest.err' |
| 2227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2228 | (eval $ac_try) 2>&5 |
| 2229 | ac_status=$? |
| 2230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2231 | (exit $ac_status); }; } && |
| 2232 | { ac_try='test -s conftest.$ac_objext' |
| 2233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2234 | (eval $ac_try) 2>&5 |
| 2235 | ac_status=$? |
| 2236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2237 | (exit $ac_status); }; }; then |
| 2238 | : |
| 2239 | else |
| 2240 | echo "$as_me: failed program was:" >&5 |
| 2241 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2242 | |
| 2243 | continue |
| 2244 | fi |
| 2245 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2246 | cat >conftest.$ac_ext <<_ACEOF |
| 2247 | /* confdefs.h. */ |
| 2248 | _ACEOF |
| 2249 | cat confdefs.h >>conftest.$ac_ext |
| 2250 | cat >>conftest.$ac_ext <<_ACEOF |
| 2251 | /* end confdefs.h. */ |
| 2252 | $ac_declaration |
| 2253 | int |
| 2254 | main () |
| 2255 | { |
| 2256 | exit (42); |
| 2257 | ; |
| 2258 | return 0; |
| 2259 | } |
| 2260 | _ACEOF |
| 2261 | rm -f conftest.$ac_objext |
| 2262 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2263 | (eval $ac_compile) 2>conftest.er1 |
| 2264 | ac_status=$? |
| 2265 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2266 | rm -f conftest.er1 |
| 2267 | cat conftest.err >&5 |
| 2268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2269 | (exit $ac_status); } && |
| 2270 | { ac_try='test -z "$ac_c_werror_flag" |
| 2271 | || test ! -s conftest.err' |
| 2272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2273 | (eval $ac_try) 2>&5 |
| 2274 | ac_status=$? |
| 2275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2276 | (exit $ac_status); }; } && |
| 2277 | { ac_try='test -s conftest.$ac_objext' |
| 2278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2279 | (eval $ac_try) 2>&5 |
| 2280 | ac_status=$? |
| 2281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2282 | (exit $ac_status); }; }; then |
| 2283 | break |
| 2284 | else |
| 2285 | echo "$as_me: failed program was:" >&5 |
| 2286 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2287 | |
| 2288 | fi |
| 2289 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2290 | done |
| 2291 | rm -f conftest* |
| 2292 | if test -n "$ac_declaration"; then |
| 2293 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2294 | echo $ac_declaration >>confdefs.h |
| 2295 | echo '#endif' >>confdefs.h |
| 2296 | fi |
| 2297 | |
| 2298 | else |
| 2299 | echo "$as_me: failed program was:" >&5 |
| 2300 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2301 | |
| 2302 | fi |
| 2303 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2304 | ac_ext=c |
| 2305 | ac_cpp='$CPP $CPPFLAGS' |
| 2306 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2307 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2308 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2309 | |
| 2310 | |
| 2311 | cat >>confdefs.h <<\_ACEOF |
| 2312 | #define _GNU_SOURCE 1 |
| 2313 | _ACEOF |
| 2314 | |
| 2315 | |
| 2316 | |
| 2317 | ac_ext=c |
| 2318 | ac_cpp='$CPP $CPPFLAGS' |
| 2319 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2320 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2321 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2322 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2323 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 2324 | # On Suns, sometimes $CPP names a directory. |
| 2325 | if test -n "$CPP" && test -d "$CPP"; then |
| 2326 | CPP= |
| 2327 | fi |
| 2328 | if test -z "$CPP"; then |
| 2329 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2331 | else |
| 2332 | # Double quotes because CPP needs to be expanded |
| 2333 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2334 | do |
| 2335 | ac_preproc_ok=false |
| 2336 | for ac_c_preproc_warn_flag in '' yes |
| 2337 | do |
| 2338 | # Use a header file that comes with gcc, so configuring glibc |
| 2339 | # with a fresh cross-compiler works. |
| 2340 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2341 | # <limits.h> exists even on freestanding compilers. |
| 2342 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2343 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2344 | cat >conftest.$ac_ext <<_ACEOF |
| 2345 | /* confdefs.h. */ |
| 2346 | _ACEOF |
| 2347 | cat confdefs.h >>conftest.$ac_ext |
| 2348 | cat >>conftest.$ac_ext <<_ACEOF |
| 2349 | /* end confdefs.h. */ |
| 2350 | #ifdef __STDC__ |
| 2351 | # include <limits.h> |
| 2352 | #else |
| 2353 | # include <assert.h> |
| 2354 | #endif |
| 2355 | Syntax error |
| 2356 | _ACEOF |
| 2357 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2358 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2359 | ac_status=$? |
| 2360 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2361 | rm -f conftest.er1 |
| 2362 | cat conftest.err >&5 |
| 2363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2364 | (exit $ac_status); } >/dev/null; then |
| 2365 | if test -s conftest.err; then |
| 2366 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2367 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2368 | else |
| 2369 | ac_cpp_err= |
| 2370 | fi |
| 2371 | else |
| 2372 | ac_cpp_err=yes |
| 2373 | fi |
| 2374 | if test -z "$ac_cpp_err"; then |
| 2375 | : |
| 2376 | else |
| 2377 | echo "$as_me: failed program was:" >&5 |
| 2378 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2379 | |
| 2380 | # Broken: fails on valid input. |
| 2381 | continue |
| 2382 | fi |
| 2383 | rm -f conftest.err conftest.$ac_ext |
| 2384 | |
| 2385 | # OK, works on sane cases. Now check whether non-existent headers |
| 2386 | # can be detected and how. |
| 2387 | cat >conftest.$ac_ext <<_ACEOF |
| 2388 | /* confdefs.h. */ |
| 2389 | _ACEOF |
| 2390 | cat confdefs.h >>conftest.$ac_ext |
| 2391 | cat >>conftest.$ac_ext <<_ACEOF |
| 2392 | /* end confdefs.h. */ |
| 2393 | #include <ac_nonexistent.h> |
| 2394 | _ACEOF |
| 2395 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2396 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2397 | ac_status=$? |
| 2398 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2399 | rm -f conftest.er1 |
| 2400 | cat conftest.err >&5 |
| 2401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2402 | (exit $ac_status); } >/dev/null; then |
| 2403 | if test -s conftest.err; then |
| 2404 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2405 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2406 | else |
| 2407 | ac_cpp_err= |
| 2408 | fi |
| 2409 | else |
| 2410 | ac_cpp_err=yes |
| 2411 | fi |
| 2412 | if test -z "$ac_cpp_err"; then |
| 2413 | # Broken: success on invalid input. |
| 2414 | continue |
| 2415 | else |
| 2416 | echo "$as_me: failed program was:" >&5 |
| 2417 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2418 | |
| 2419 | # Passes both tests. |
| 2420 | ac_preproc_ok=: |
| 2421 | break |
| 2422 | fi |
| 2423 | rm -f conftest.err conftest.$ac_ext |
| 2424 | |
| 2425 | done |
| 2426 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2427 | rm -f conftest.err conftest.$ac_ext |
| 2428 | if $ac_preproc_ok; then |
| 2429 | break |
| 2430 | fi |
| 2431 | |
| 2432 | done |
| 2433 | ac_cv_prog_CPP=$CPP |
| 2434 | |
| 2435 | fi |
| 2436 | CPP=$ac_cv_prog_CPP |
| 2437 | else |
| 2438 | ac_cv_prog_CPP=$CPP |
| 2439 | fi |
| 2440 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2441 | echo "${ECHO_T}$CPP" >&6 |
| 2442 | ac_preproc_ok=false |
| 2443 | for ac_c_preproc_warn_flag in '' yes |
| 2444 | do |
| 2445 | # Use a header file that comes with gcc, so configuring glibc |
| 2446 | # with a fresh cross-compiler works. |
| 2447 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2448 | # <limits.h> exists even on freestanding compilers. |
| 2449 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2450 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2451 | cat >conftest.$ac_ext <<_ACEOF |
| 2452 | /* confdefs.h. */ |
| 2453 | _ACEOF |
| 2454 | cat confdefs.h >>conftest.$ac_ext |
| 2455 | cat >>conftest.$ac_ext <<_ACEOF |
| 2456 | /* end confdefs.h. */ |
| 2457 | #ifdef __STDC__ |
| 2458 | # include <limits.h> |
| 2459 | #else |
| 2460 | # include <assert.h> |
| 2461 | #endif |
| 2462 | Syntax error |
| 2463 | _ACEOF |
| 2464 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2465 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2466 | ac_status=$? |
| 2467 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2468 | rm -f conftest.er1 |
| 2469 | cat conftest.err >&5 |
| 2470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2471 | (exit $ac_status); } >/dev/null; then |
| 2472 | if test -s conftest.err; then |
| 2473 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2474 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2475 | else |
| 2476 | ac_cpp_err= |
| 2477 | fi |
| 2478 | else |
| 2479 | ac_cpp_err=yes |
| 2480 | fi |
| 2481 | if test -z "$ac_cpp_err"; then |
| 2482 | : |
| 2483 | else |
| 2484 | echo "$as_me: failed program was:" >&5 |
| 2485 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2486 | |
| 2487 | # Broken: fails on valid input. |
| 2488 | continue |
| 2489 | fi |
| 2490 | rm -f conftest.err conftest.$ac_ext |
| 2491 | |
| 2492 | # OK, works on sane cases. Now check whether non-existent headers |
| 2493 | # can be detected and how. |
| 2494 | cat >conftest.$ac_ext <<_ACEOF |
| 2495 | /* confdefs.h. */ |
| 2496 | _ACEOF |
| 2497 | cat confdefs.h >>conftest.$ac_ext |
| 2498 | cat >>conftest.$ac_ext <<_ACEOF |
| 2499 | /* end confdefs.h. */ |
| 2500 | #include <ac_nonexistent.h> |
| 2501 | _ACEOF |
| 2502 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2503 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2504 | ac_status=$? |
| 2505 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2506 | rm -f conftest.er1 |
| 2507 | cat conftest.err >&5 |
| 2508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2509 | (exit $ac_status); } >/dev/null; then |
| 2510 | if test -s conftest.err; then |
| 2511 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2512 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2513 | else |
| 2514 | ac_cpp_err= |
| 2515 | fi |
| 2516 | else |
| 2517 | ac_cpp_err=yes |
| 2518 | fi |
| 2519 | if test -z "$ac_cpp_err"; then |
| 2520 | # Broken: success on invalid input. |
| 2521 | continue |
| 2522 | else |
| 2523 | echo "$as_me: failed program was:" >&5 |
| 2524 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2525 | |
| 2526 | # Passes both tests. |
| 2527 | ac_preproc_ok=: |
| 2528 | break |
| 2529 | fi |
| 2530 | rm -f conftest.err conftest.$ac_ext |
| 2531 | |
| 2532 | done |
| 2533 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2534 | rm -f conftest.err conftest.$ac_ext |
| 2535 | if $ac_preproc_ok; then |
| 2536 | : |
| 2537 | else |
| 2538 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 2539 | See \`config.log' for more details." >&5 |
| 2540 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 2541 | See \`config.log' for more details." >&2;} |
| 2542 | { (exit 1); exit 1; }; } |
| 2543 | fi |
| 2544 | |
| 2545 | ac_ext=c |
| 2546 | ac_cpp='$CPP $CPPFLAGS' |
| 2547 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2548 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2549 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2550 | |
| 2551 | |
| 2552 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 2553 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 2554 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 2555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2556 | else |
| 2557 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 2558 | then ac_cv_prog_egrep='grep -E' |
| 2559 | else ac_cv_prog_egrep='egrep' |
| 2560 | fi |
| 2561 | fi |
| 2562 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 2563 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 2564 | EGREP=$ac_cv_prog_egrep |
| 2565 | |
| 2566 | |
| 2567 | |
| 2568 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 2569 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 2570 | cat >conftest.$ac_ext <<_ACEOF |
| 2571 | /* confdefs.h. */ |
| 2572 | _ACEOF |
| 2573 | cat confdefs.h >>conftest.$ac_ext |
| 2574 | cat >>conftest.$ac_ext <<_ACEOF |
| 2575 | /* end confdefs.h. */ |
| 2576 | #ifdef _AIX |
| 2577 | yes |
| 2578 | #endif |
| 2579 | |
| 2580 | _ACEOF |
| 2581 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2582 | $EGREP "yes" >/dev/null 2>&1; then |
| 2583 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2584 | echo "${ECHO_T}yes" >&6 |
| 2585 | cat >>confdefs.h <<\_ACEOF |
| 2586 | #define _ALL_SOURCE 1 |
| 2587 | _ACEOF |
| 2588 | |
| 2589 | else |
| 2590 | echo "$as_me:$LINENO: result: no" >&5 |
| 2591 | echo "${ECHO_T}no" >&6 |
| 2592 | fi |
| 2593 | rm -f conftest* |
| 2594 | |
| 2595 | |
| 2596 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
| 2597 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 |
| 2598 | if test "${ac_cv_search_strerror+set}" = set; then |
| 2599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2600 | else |
| 2601 | ac_func_search_save_LIBS=$LIBS |
| 2602 | ac_cv_search_strerror=no |
| 2603 | cat >conftest.$ac_ext <<_ACEOF |
| 2604 | /* confdefs.h. */ |
| 2605 | _ACEOF |
| 2606 | cat confdefs.h >>conftest.$ac_ext |
| 2607 | cat >>conftest.$ac_ext <<_ACEOF |
| 2608 | /* end confdefs.h. */ |
| 2609 | |
| 2610 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2611 | #ifdef __cplusplus |
| 2612 | extern "C" |
| 2613 | #endif |
| 2614 | /* We use char because int might match the return type of a gcc2 |
| 2615 | builtin and then its argument prototype would still apply. */ |
| 2616 | char strerror (); |
| 2617 | int |
| 2618 | main () |
| 2619 | { |
| 2620 | strerror (); |
| 2621 | ; |
| 2622 | return 0; |
| 2623 | } |
| 2624 | _ACEOF |
| 2625 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2626 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2627 | (eval $ac_link) 2>conftest.er1 |
| 2628 | ac_status=$? |
| 2629 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2630 | rm -f conftest.er1 |
| 2631 | cat conftest.err >&5 |
| 2632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2633 | (exit $ac_status); } && |
| 2634 | { ac_try='test -z "$ac_c_werror_flag" |
| 2635 | || test ! -s conftest.err' |
| 2636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2637 | (eval $ac_try) 2>&5 |
| 2638 | ac_status=$? |
| 2639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2640 | (exit $ac_status); }; } && |
| 2641 | { ac_try='test -s conftest$ac_exeext' |
| 2642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2643 | (eval $ac_try) 2>&5 |
| 2644 | ac_status=$? |
| 2645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2646 | (exit $ac_status); }; }; then |
| 2647 | ac_cv_search_strerror="none required" |
| 2648 | else |
| 2649 | echo "$as_me: failed program was:" >&5 |
| 2650 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2651 | |
| 2652 | fi |
| 2653 | rm -f conftest.err conftest.$ac_objext \ |
| 2654 | conftest$ac_exeext conftest.$ac_ext |
| 2655 | if test "$ac_cv_search_strerror" = no; then |
| 2656 | for ac_lib in cposix; do |
| 2657 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 2658 | cat >conftest.$ac_ext <<_ACEOF |
| 2659 | /* confdefs.h. */ |
| 2660 | _ACEOF |
| 2661 | cat confdefs.h >>conftest.$ac_ext |
| 2662 | cat >>conftest.$ac_ext <<_ACEOF |
| 2663 | /* end confdefs.h. */ |
| 2664 | |
| 2665 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2666 | #ifdef __cplusplus |
| 2667 | extern "C" |
| 2668 | #endif |
| 2669 | /* We use char because int might match the return type of a gcc2 |
| 2670 | builtin and then its argument prototype would still apply. */ |
| 2671 | char strerror (); |
| 2672 | int |
| 2673 | main () |
| 2674 | { |
| 2675 | strerror (); |
| 2676 | ; |
| 2677 | return 0; |
| 2678 | } |
| 2679 | _ACEOF |
| 2680 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2681 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2682 | (eval $ac_link) 2>conftest.er1 |
| 2683 | ac_status=$? |
| 2684 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2685 | rm -f conftest.er1 |
| 2686 | cat conftest.err >&5 |
| 2687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2688 | (exit $ac_status); } && |
| 2689 | { ac_try='test -z "$ac_c_werror_flag" |
| 2690 | || test ! -s conftest.err' |
| 2691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2692 | (eval $ac_try) 2>&5 |
| 2693 | ac_status=$? |
| 2694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2695 | (exit $ac_status); }; } && |
| 2696 | { ac_try='test -s conftest$ac_exeext' |
| 2697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2698 | (eval $ac_try) 2>&5 |
| 2699 | ac_status=$? |
| 2700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2701 | (exit $ac_status); }; }; then |
| 2702 | ac_cv_search_strerror="-l$ac_lib" |
| 2703 | break |
| 2704 | else |
| 2705 | echo "$as_me: failed program was:" >&5 |
| 2706 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2707 | |
| 2708 | fi |
| 2709 | rm -f conftest.err conftest.$ac_objext \ |
| 2710 | conftest$ac_exeext conftest.$ac_ext |
| 2711 | done |
| 2712 | fi |
| 2713 | LIBS=$ac_func_search_save_LIBS |
| 2714 | fi |
| 2715 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
| 2716 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 |
| 2717 | if test "$ac_cv_search_strerror" != no; then |
| 2718 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" |
| 2719 | |
| 2720 | fi |
| 2721 | |
| 2722 | if test -n "$ac_tool_prefix"; then |
| 2723 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 2724 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 2725 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2726 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2727 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 2728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2729 | else |
| 2730 | if test -n "$RANLIB"; then |
| 2731 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 2732 | else |
| 2733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2734 | for as_dir in $PATH |
| 2735 | do |
| 2736 | IFS=$as_save_IFS |
| 2737 | test -z "$as_dir" && as_dir=. |
| 2738 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2739 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2740 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 2741 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2742 | break 2 |
| 2743 | fi |
| 2744 | done |
| 2745 | done |
| 2746 | |
| 2747 | fi |
| 2748 | fi |
| 2749 | RANLIB=$ac_cv_prog_RANLIB |
| 2750 | if test -n "$RANLIB"; then |
| 2751 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 2752 | echo "${ECHO_T}$RANLIB" >&6 |
| 2753 | else |
| 2754 | echo "$as_me:$LINENO: result: no" >&5 |
| 2755 | echo "${ECHO_T}no" >&6 |
| 2756 | fi |
| 2757 | |
| 2758 | fi |
| 2759 | if test -z "$ac_cv_prog_RANLIB"; then |
| 2760 | ac_ct_RANLIB=$RANLIB |
| 2761 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 2762 | set dummy ranlib; ac_word=$2 |
| 2763 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2764 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2765 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 2766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2767 | else |
| 2768 | if test -n "$ac_ct_RANLIB"; then |
| 2769 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 2770 | else |
| 2771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2772 | for as_dir in $PATH |
| 2773 | do |
| 2774 | IFS=$as_save_IFS |
| 2775 | test -z "$as_dir" && as_dir=. |
| 2776 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2777 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2778 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 2779 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2780 | break 2 |
| 2781 | fi |
| 2782 | done |
| 2783 | done |
| 2784 | |
| 2785 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 2786 | fi |
| 2787 | fi |
| 2788 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 2789 | if test -n "$ac_ct_RANLIB"; then |
| 2790 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 2791 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 2792 | else |
| 2793 | echo "$as_me:$LINENO: result: no" >&5 |
| 2794 | echo "${ECHO_T}no" >&6 |
| 2795 | fi |
| 2796 | |
| 2797 | RANLIB=$ac_ct_RANLIB |
| 2798 | else |
| 2799 | RANLIB="$ac_cv_prog_RANLIB" |
| 2800 | fi |
| 2801 | |
| 2802 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 2803 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 2804 | if test "${ac_cv_header_stdc+set}" = set; then |
| 2805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2806 | else |
| 2807 | cat >conftest.$ac_ext <<_ACEOF |
| 2808 | /* confdefs.h. */ |
| 2809 | _ACEOF |
| 2810 | cat confdefs.h >>conftest.$ac_ext |
| 2811 | cat >>conftest.$ac_ext <<_ACEOF |
| 2812 | /* end confdefs.h. */ |
| 2813 | #include <stdlib.h> |
| 2814 | #include <stdarg.h> |
| 2815 | #include <string.h> |
| 2816 | #include <float.h> |
| 2817 | |
| 2818 | int |
| 2819 | main () |
| 2820 | { |
| 2821 | |
| 2822 | ; |
| 2823 | return 0; |
| 2824 | } |
| 2825 | _ACEOF |
| 2826 | rm -f conftest.$ac_objext |
| 2827 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2828 | (eval $ac_compile) 2>conftest.er1 |
| 2829 | ac_status=$? |
| 2830 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2831 | rm -f conftest.er1 |
| 2832 | cat conftest.err >&5 |
| 2833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2834 | (exit $ac_status); } && |
| 2835 | { ac_try='test -z "$ac_c_werror_flag" |
| 2836 | || test ! -s conftest.err' |
| 2837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2838 | (eval $ac_try) 2>&5 |
| 2839 | ac_status=$? |
| 2840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2841 | (exit $ac_status); }; } && |
| 2842 | { ac_try='test -s conftest.$ac_objext' |
| 2843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2844 | (eval $ac_try) 2>&5 |
| 2845 | ac_status=$? |
| 2846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2847 | (exit $ac_status); }; }; then |
| 2848 | ac_cv_header_stdc=yes |
| 2849 | else |
| 2850 | echo "$as_me: failed program was:" >&5 |
| 2851 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2852 | |
| 2853 | ac_cv_header_stdc=no |
| 2854 | fi |
| 2855 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2856 | |
| 2857 | if test $ac_cv_header_stdc = yes; then |
| 2858 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 2859 | cat >conftest.$ac_ext <<_ACEOF |
| 2860 | /* confdefs.h. */ |
| 2861 | _ACEOF |
| 2862 | cat confdefs.h >>conftest.$ac_ext |
| 2863 | cat >>conftest.$ac_ext <<_ACEOF |
| 2864 | /* end confdefs.h. */ |
| 2865 | #include <string.h> |
| 2866 | |
| 2867 | _ACEOF |
| 2868 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2869 | $EGREP "memchr" >/dev/null 2>&1; then |
| 2870 | : |
| 2871 | else |
| 2872 | ac_cv_header_stdc=no |
| 2873 | fi |
| 2874 | rm -f conftest* |
| 2875 | |
| 2876 | fi |
| 2877 | |
| 2878 | if test $ac_cv_header_stdc = yes; then |
| 2879 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 2880 | cat >conftest.$ac_ext <<_ACEOF |
| 2881 | /* confdefs.h. */ |
| 2882 | _ACEOF |
| 2883 | cat confdefs.h >>conftest.$ac_ext |
| 2884 | cat >>conftest.$ac_ext <<_ACEOF |
| 2885 | /* end confdefs.h. */ |
| 2886 | #include <stdlib.h> |
| 2887 | |
| 2888 | _ACEOF |
| 2889 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2890 | $EGREP "free" >/dev/null 2>&1; then |
| 2891 | : |
| 2892 | else |
| 2893 | ac_cv_header_stdc=no |
| 2894 | fi |
| 2895 | rm -f conftest* |
| 2896 | |
| 2897 | fi |
| 2898 | |
| 2899 | if test $ac_cv_header_stdc = yes; then |
| 2900 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 2901 | if test "$cross_compiling" = yes; then |
| 2902 | : |
| 2903 | else |
| 2904 | cat >conftest.$ac_ext <<_ACEOF |
| 2905 | /* confdefs.h. */ |
| 2906 | _ACEOF |
| 2907 | cat confdefs.h >>conftest.$ac_ext |
| 2908 | cat >>conftest.$ac_ext <<_ACEOF |
| 2909 | /* end confdefs.h. */ |
| 2910 | #include <ctype.h> |
| 2911 | #if ((' ' & 0x0FF) == 0x020) |
| 2912 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2913 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 2914 | #else |
| 2915 | # define ISLOWER(c) \ |
| 2916 | (('a' <= (c) && (c) <= 'i') \ |
| 2917 | || ('j' <= (c) && (c) <= 'r') \ |
| 2918 | || ('s' <= (c) && (c) <= 'z')) |
| 2919 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 2920 | #endif |
| 2921 | |
| 2922 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 2923 | int |
| 2924 | main () |
| 2925 | { |
| 2926 | int i; |
| 2927 | for (i = 0; i < 256; i++) |
| 2928 | if (XOR (islower (i), ISLOWER (i)) |
| 2929 | || toupper (i) != TOUPPER (i)) |
| 2930 | exit(2); |
| 2931 | exit (0); |
| 2932 | } |
| 2933 | _ACEOF |
| 2934 | rm -f conftest$ac_exeext |
| 2935 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2936 | (eval $ac_link) 2>&5 |
| 2937 | ac_status=$? |
| 2938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2939 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 2940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2941 | (eval $ac_try) 2>&5 |
| 2942 | ac_status=$? |
| 2943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2944 | (exit $ac_status); }; }; then |
| 2945 | : |
| 2946 | else |
| 2947 | echo "$as_me: program exited with status $ac_status" >&5 |
| 2948 | echo "$as_me: failed program was:" >&5 |
| 2949 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2950 | |
| 2951 | ( exit $ac_status ) |
| 2952 | ac_cv_header_stdc=no |
| 2953 | fi |
| 2954 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 2955 | fi |
| 2956 | fi |
| 2957 | fi |
| 2958 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 2959 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 2960 | if test $ac_cv_header_stdc = yes; then |
| 2961 | |
| 2962 | cat >>confdefs.h <<\_ACEOF |
| 2963 | #define STDC_HEADERS 1 |
| 2964 | _ACEOF |
| 2965 | |
| 2966 | fi |
| 2967 | |
| 2968 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 2969 | |
| 2970 | |
| 2971 | |
| 2972 | |
| 2973 | |
| 2974 | |
| 2975 | |
| 2976 | |
| 2977 | |
| 2978 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 2979 | inttypes.h stdint.h unistd.h |
| 2980 | do |
| 2981 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 2982 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 2983 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 2984 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 2985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2986 | else |
| 2987 | cat >conftest.$ac_ext <<_ACEOF |
| 2988 | /* confdefs.h. */ |
| 2989 | _ACEOF |
| 2990 | cat confdefs.h >>conftest.$ac_ext |
| 2991 | cat >>conftest.$ac_ext <<_ACEOF |
| 2992 | /* end confdefs.h. */ |
| 2993 | $ac_includes_default |
| 2994 | |
| 2995 | #include <$ac_header> |
| 2996 | _ACEOF |
| 2997 | rm -f conftest.$ac_objext |
| 2998 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2999 | (eval $ac_compile) 2>conftest.er1 |
| 3000 | ac_status=$? |
| 3001 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3002 | rm -f conftest.er1 |
| 3003 | cat conftest.err >&5 |
| 3004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3005 | (exit $ac_status); } && |
| 3006 | { ac_try='test -z "$ac_c_werror_flag" |
| 3007 | || test ! -s conftest.err' |
| 3008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3009 | (eval $ac_try) 2>&5 |
| 3010 | ac_status=$? |
| 3011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3012 | (exit $ac_status); }; } && |
| 3013 | { ac_try='test -s conftest.$ac_objext' |
| 3014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3015 | (eval $ac_try) 2>&5 |
| 3016 | ac_status=$? |
| 3017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3018 | (exit $ac_status); }; }; then |
| 3019 | eval "$as_ac_Header=yes" |
| 3020 | else |
| 3021 | echo "$as_me: failed program was:" >&5 |
| 3022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3023 | |
| 3024 | eval "$as_ac_Header=no" |
| 3025 | fi |
| 3026 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3027 | fi |
| 3028 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3029 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3030 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3031 | cat >>confdefs.h <<_ACEOF |
| 3032 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3033 | _ACEOF |
| 3034 | |
| 3035 | fi |
| 3036 | |
| 3037 | done |
| 3038 | |
| 3039 | |
| 3040 | |
| 3041 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 3042 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 3043 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 3044 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 3045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3046 | fi |
| 3047 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 3048 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 3049 | else |
| 3050 | # Is the header compilable? |
| 3051 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
| 3052 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 |
| 3053 | cat >conftest.$ac_ext <<_ACEOF |
| 3054 | /* confdefs.h. */ |
| 3055 | _ACEOF |
| 3056 | cat confdefs.h >>conftest.$ac_ext |
| 3057 | cat >>conftest.$ac_ext <<_ACEOF |
| 3058 | /* end confdefs.h. */ |
| 3059 | $ac_includes_default |
| 3060 | #include <minix/config.h> |
| 3061 | _ACEOF |
| 3062 | rm -f conftest.$ac_objext |
| 3063 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3064 | (eval $ac_compile) 2>conftest.er1 |
| 3065 | ac_status=$? |
| 3066 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3067 | rm -f conftest.er1 |
| 3068 | cat conftest.err >&5 |
| 3069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3070 | (exit $ac_status); } && |
| 3071 | { ac_try='test -z "$ac_c_werror_flag" |
| 3072 | || test ! -s conftest.err' |
| 3073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3074 | (eval $ac_try) 2>&5 |
| 3075 | ac_status=$? |
| 3076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3077 | (exit $ac_status); }; } && |
| 3078 | { ac_try='test -s conftest.$ac_objext' |
| 3079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3080 | (eval $ac_try) 2>&5 |
| 3081 | ac_status=$? |
| 3082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3083 | (exit $ac_status); }; }; then |
| 3084 | ac_header_compiler=yes |
| 3085 | else |
| 3086 | echo "$as_me: failed program was:" >&5 |
| 3087 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3088 | |
| 3089 | ac_header_compiler=no |
| 3090 | fi |
| 3091 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3092 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3093 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3094 | |
| 3095 | # Is the header present? |
| 3096 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
| 3097 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 |
| 3098 | cat >conftest.$ac_ext <<_ACEOF |
| 3099 | /* confdefs.h. */ |
| 3100 | _ACEOF |
| 3101 | cat confdefs.h >>conftest.$ac_ext |
| 3102 | cat >>conftest.$ac_ext <<_ACEOF |
| 3103 | /* end confdefs.h. */ |
| 3104 | #include <minix/config.h> |
| 3105 | _ACEOF |
| 3106 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3107 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3108 | ac_status=$? |
| 3109 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3110 | rm -f conftest.er1 |
| 3111 | cat conftest.err >&5 |
| 3112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3113 | (exit $ac_status); } >/dev/null; then |
| 3114 | if test -s conftest.err; then |
| 3115 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3116 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3117 | else |
| 3118 | ac_cpp_err= |
| 3119 | fi |
| 3120 | else |
| 3121 | ac_cpp_err=yes |
| 3122 | fi |
| 3123 | if test -z "$ac_cpp_err"; then |
| 3124 | ac_header_preproc=yes |
| 3125 | else |
| 3126 | echo "$as_me: failed program was:" >&5 |
| 3127 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3128 | |
| 3129 | ac_header_preproc=no |
| 3130 | fi |
| 3131 | rm -f conftest.err conftest.$ac_ext |
| 3132 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3133 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3134 | |
| 3135 | # So? What about this header? |
| 3136 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3137 | yes:no: ) |
| 3138 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3139 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3140 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 |
| 3141 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} |
| 3142 | ac_header_preproc=yes |
| 3143 | ;; |
| 3144 | no:yes:* ) |
| 3145 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
| 3146 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} |
| 3147 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 |
| 3148 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} |
| 3149 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 |
| 3150 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} |
| 3151 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 3152 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 3153 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 3154 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} |
| 3155 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 |
| 3156 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} |
| 3157 | ( |
| 3158 | cat <<\_ASBOX |
| 3159 | ## ------------------------------------------ ## |
| 3160 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 3161 | ## ------------------------------------------ ## |
| 3162 | _ASBOX |
| 3163 | ) | |
| 3164 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3165 | ;; |
| 3166 | esac |
| 3167 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 3168 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 3169 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 3170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3171 | else |
| 3172 | ac_cv_header_minix_config_h=$ac_header_preproc |
| 3173 | fi |
| 3174 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 3175 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 3176 | |
| 3177 | fi |
| 3178 | if test $ac_cv_header_minix_config_h = yes; then |
| 3179 | MINIX=yes |
| 3180 | else |
| 3181 | MINIX= |
| 3182 | fi |
| 3183 | |
| 3184 | |
| 3185 | if test "$MINIX" = yes; then |
| 3186 | |
| 3187 | cat >>confdefs.h <<\_ACEOF |
| 3188 | #define _POSIX_SOURCE 1 |
| 3189 | _ACEOF |
| 3190 | |
| 3191 | |
| 3192 | cat >>confdefs.h <<\_ACEOF |
| 3193 | #define _POSIX_1_SOURCE 2 |
| 3194 | _ACEOF |
| 3195 | |
| 3196 | |
| 3197 | cat >>confdefs.h <<\_ACEOF |
| 3198 | #define _MINIX 1 |
| 3199 | _ACEOF |
| 3200 | |
| 3201 | fi |
| 3202 | |
| 3203 | |
| 3204 | |
| 3205 | echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 3206 | echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6 |
| 3207 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then |
| 3208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3209 | else |
| 3210 | cat >conftest.$ac_ext <<_ACEOF |
| 3211 | /* confdefs.h. */ |
| 3212 | _ACEOF |
| 3213 | cat confdefs.h >>conftest.$ac_ext |
| 3214 | cat >>conftest.$ac_ext <<_ACEOF |
| 3215 | /* end confdefs.h. */ |
| 3216 | |
| 3217 | # define __EXTENSIONS__ 1 |
| 3218 | $ac_includes_default |
| 3219 | int |
| 3220 | main () |
| 3221 | { |
| 3222 | |
| 3223 | ; |
| 3224 | return 0; |
| 3225 | } |
| 3226 | _ACEOF |
| 3227 | rm -f conftest.$ac_objext |
| 3228 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3229 | (eval $ac_compile) 2>conftest.er1 |
| 3230 | ac_status=$? |
| 3231 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3232 | rm -f conftest.er1 |
| 3233 | cat conftest.err >&5 |
| 3234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3235 | (exit $ac_status); } && |
| 3236 | { ac_try='test -z "$ac_c_werror_flag" |
| 3237 | || test ! -s conftest.err' |
| 3238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3239 | (eval $ac_try) 2>&5 |
| 3240 | ac_status=$? |
| 3241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3242 | (exit $ac_status); }; } && |
| 3243 | { ac_try='test -s conftest.$ac_objext' |
| 3244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3245 | (eval $ac_try) 2>&5 |
| 3246 | ac_status=$? |
| 3247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3248 | (exit $ac_status); }; }; then |
| 3249 | ac_cv_safe_to_define___extensions__=yes |
| 3250 | else |
| 3251 | echo "$as_me: failed program was:" >&5 |
| 3252 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3253 | |
| 3254 | ac_cv_safe_to_define___extensions__=no |
| 3255 | fi |
| 3256 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3257 | fi |
| 3258 | echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 3259 | echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6 |
| 3260 | test $ac_cv_safe_to_define___extensions__ = yes && |
| 3261 | cat >>confdefs.h <<\_ACEOF |
| 3262 | #define __EXTENSIONS__ 1 |
| 3263 | _ACEOF |
| 3264 | |
| 3265 | cat >>confdefs.h <<\_ACEOF |
| 3266 | #define _ALL_SOURCE 1 |
| 3267 | _ACEOF |
| 3268 | |
| 3269 | cat >>confdefs.h <<\_ACEOF |
| 3270 | #define _GNU_SOURCE 1 |
| 3271 | _ACEOF |
| 3272 | |
| 3273 | cat >>confdefs.h <<\_ACEOF |
| 3274 | #define _POSIX_PTHREAD_SEMANTICS 1 |
| 3275 | _ACEOF |
| 3276 | |
| 3277 | cat >>confdefs.h <<\_ACEOF |
| 3278 | #define _TANDEM_SOURCE 1 |
| 3279 | _ACEOF |
| 3280 | |
| 3281 | |
| 3282 | |
| 3283 | |
| 3284 | |
| 3285 | |
| 3286 | |
| 3287 | |
| 3288 | |
| 3289 | |
| 3290 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5 |
| 3291 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 |
| 3292 | if test "${am_cv_prog_cc_stdc+set}" = set; then |
| 3293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3294 | else |
| 3295 | am_cv_prog_cc_stdc=no |
| 3296 | ac_save_CC="$CC" |
| 3297 | # Don't try gcc -ansi; that turns off useful extensions and |
| 3298 | # breaks some systems' header files. |
| 3299 | # AIX -qlanglvl=ansi |
| 3300 | # Ultrix and OSF/1 -std1 |
| 3301 | # HP-UX 10.20 and later -Ae |
| 3302 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 3303 | # SVR4 -Xc -D__EXTENSIONS__ |
| 3304 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3305 | do |
| 3306 | CC="$ac_save_CC $ac_arg" |
| 3307 | cat >conftest.$ac_ext <<_ACEOF |
| 3308 | /* confdefs.h. */ |
| 3309 | _ACEOF |
| 3310 | cat confdefs.h >>conftest.$ac_ext |
| 3311 | cat >>conftest.$ac_ext <<_ACEOF |
| 3312 | /* end confdefs.h. */ |
| 3313 | #include <stdarg.h> |
| 3314 | #include <stdio.h> |
| 3315 | #include <sys/types.h> |
| 3316 | #include <sys/stat.h> |
| 3317 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3318 | struct buf { int x; }; |
| 3319 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3320 | static char *e (p, i) |
| 3321 | char **p; |
| 3322 | int i; |
| 3323 | { |
| 3324 | return p[i]; |
| 3325 | } |
| 3326 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3327 | { |
| 3328 | char *s; |
| 3329 | va_list v; |
| 3330 | va_start (v,p); |
| 3331 | s = g (p, va_arg (v,int)); |
| 3332 | va_end (v); |
| 3333 | return s; |
| 3334 | } |
| 3335 | int test (int i, double x); |
| 3336 | struct s1 {int (*f) (int a);}; |
| 3337 | struct s2 {int (*f) (double a);}; |
| 3338 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3339 | int argc; |
| 3340 | char **argv; |
| 3341 | |
| 3342 | int |
| 3343 | main () |
| 3344 | { |
| 3345 | |
| 3346 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3347 | |
| 3348 | ; |
| 3349 | return 0; |
| 3350 | } |
| 3351 | _ACEOF |
| 3352 | rm -f conftest.$ac_objext |
| 3353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3354 | (eval $ac_compile) 2>conftest.er1 |
| 3355 | ac_status=$? |
| 3356 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3357 | rm -f conftest.er1 |
| 3358 | cat conftest.err >&5 |
| 3359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3360 | (exit $ac_status); } && |
| 3361 | { ac_try='test -z "$ac_c_werror_flag" |
| 3362 | || test ! -s conftest.err' |
| 3363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3364 | (eval $ac_try) 2>&5 |
| 3365 | ac_status=$? |
| 3366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3367 | (exit $ac_status); }; } && |
| 3368 | { ac_try='test -s conftest.$ac_objext' |
| 3369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3370 | (eval $ac_try) 2>&5 |
| 3371 | ac_status=$? |
| 3372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3373 | (exit $ac_status); }; }; then |
| 3374 | am_cv_prog_cc_stdc="$ac_arg"; break |
| 3375 | else |
| 3376 | echo "$as_me: failed program was:" >&5 |
| 3377 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3378 | |
| 3379 | fi |
| 3380 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3381 | done |
| 3382 | CC="$ac_save_CC" |
| 3383 | |
| 3384 | fi |
| 3385 | |
| 3386 | if test -z "$am_cv_prog_cc_stdc"; then |
| 3387 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 3388 | echo "${ECHO_T}none needed" >&6 |
| 3389 | else |
| 3390 | echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5 |
| 3391 | echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6 |
| 3392 | fi |
| 3393 | case "x$am_cv_prog_cc_stdc" in |
| 3394 | x|xno) ;; |
| 3395 | *) CC="$CC $am_cv_prog_cc_stdc" ;; |
| 3396 | esac |
| 3397 | |
| 3398 | |
| 3399 | ac_aux_dir= |
| 3400 | for ac_dir in .. $srcdir/..; do |
| 3401 | if test -f $ac_dir/install-sh; then |
| 3402 | ac_aux_dir=$ac_dir |
| 3403 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3404 | break |
| 3405 | elif test -f $ac_dir/install.sh; then |
| 3406 | ac_aux_dir=$ac_dir |
| 3407 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3408 | break |
| 3409 | elif test -f $ac_dir/shtool; then |
| 3410 | ac_aux_dir=$ac_dir |
| 3411 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3412 | break |
| 3413 | fi |
| 3414 | done |
| 3415 | if test -z "$ac_aux_dir"; then |
| 3416 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5 |
| 3417 | echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;} |
| 3418 | { (exit 1); exit 1; }; } |
| 3419 | fi |
| 3420 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3421 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3422 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 3423 | |
| 3424 | # Make sure we can run config.sub. |
| 3425 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 3426 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 3427 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 3428 | { (exit 1); exit 1; }; } |
| 3429 | |
| 3430 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 3431 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 3432 | if test "${ac_cv_build+set}" = set; then |
| 3433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3434 | else |
| 3435 | ac_cv_build_alias=$build_alias |
| 3436 | test -z "$ac_cv_build_alias" && |
| 3437 | ac_cv_build_alias=`$ac_config_guess` |
| 3438 | test -z "$ac_cv_build_alias" && |
| 3439 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 3440 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 3441 | { (exit 1); exit 1; }; } |
| 3442 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 3443 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 3444 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 3445 | { (exit 1); exit 1; }; } |
| 3446 | |
| 3447 | fi |
| 3448 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 3449 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 3450 | build=$ac_cv_build |
| 3451 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 3452 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 3453 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 3454 | |
| 3455 | |
| 3456 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 3457 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 3458 | if test "${ac_cv_host+set}" = set; then |
| 3459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3460 | else |
| 3461 | ac_cv_host_alias=$host_alias |
| 3462 | test -z "$ac_cv_host_alias" && |
| 3463 | ac_cv_host_alias=$ac_cv_build_alias |
| 3464 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 3465 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 3466 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 3467 | { (exit 1); exit 1; }; } |
| 3468 | |
| 3469 | fi |
| 3470 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 3471 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 3472 | host=$ac_cv_host |
| 3473 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 3474 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 3475 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 3476 | |
| 3477 | |
| 3478 | echo "$as_me:$LINENO: checking target system type" >&5 |
| 3479 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
| 3480 | if test "${ac_cv_target+set}" = set; then |
| 3481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3482 | else |
| 3483 | ac_cv_target_alias=$target_alias |
| 3484 | test "x$ac_cv_target_alias" = "x" && |
| 3485 | ac_cv_target_alias=$ac_cv_host_alias |
| 3486 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
| 3487 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
| 3488 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
| 3489 | { (exit 1); exit 1; }; } |
| 3490 | |
| 3491 | fi |
| 3492 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 3493 | echo "${ECHO_T}$ac_cv_target" >&6 |
| 3494 | target=$ac_cv_target |
| 3495 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 3496 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 3497 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 3498 | |
| 3499 | |
| 3500 | # The aliases save the names the user supplied, while $host etc. |
| 3501 | # will get canonicalized. |
| 3502 | test -n "$target_alias" && |
| 3503 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 3504 | NONENONEs,x,x, && |
| 3505 | program_prefix=${target_alias}- |
| 3506 | |
| 3507 | |
| 3508 | CONFIG_OBS= |
| 3509 | CONFIG_DEPS= |
| 3510 | CONFIG_SRCS= |
| 3511 | ENABLE_CFLAGS= |
| 3512 | |
| 3513 | CONFIG_ALL= |
| 3514 | CONFIG_CLEAN= |
| 3515 | CONFIG_INSTALL= |
| 3516 | CONFIG_UNINSTALL= |
| 3517 | |
| 3518 | # If we haven't got the data from the intl directory, |
| 3519 | # assume NLS is disabled. |
| 3520 | USE_NLS=no |
| 3521 | LIBINTL= |
| 3522 | LIBINTL_DEP= |
| 3523 | INCINTL= |
| 3524 | XGETTEXT= |
| 3525 | GMSGFMT= |
| 3526 | POSUB= |
| 3527 | |
| 3528 | if test -f ../intl/config.intl; then |
| 3529 | . ../intl/config.intl |
| 3530 | fi |
| 3531 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 3532 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 |
| 3533 | if test x"$USE_NLS" != xyes; then |
| 3534 | echo "$as_me:$LINENO: result: no" >&5 |
| 3535 | echo "${ECHO_T}no" >&6 |
| 3536 | else |
| 3537 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3538 | echo "${ECHO_T}yes" >&6 |
| 3539 | |
| 3540 | cat >>confdefs.h <<\_ACEOF |
| 3541 | #define ENABLE_NLS 1 |
| 3542 | _ACEOF |
| 3543 | |
| 3544 | |
| 3545 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
| 3546 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 |
| 3547 | # Look for .po and .gmo files in the source directory. |
| 3548 | CATALOGS= |
| 3549 | XLINGUAS= |
| 3550 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do |
| 3551 | # If there aren't any .gmo files the shell will give us the |
| 3552 | # literal string "../path/to/srcdir/po/*.gmo" which has to be |
| 3553 | # weeded out. |
| 3554 | case "$cat" in *\**) |
| 3555 | continue;; |
| 3556 | esac |
| 3557 | # The quadruple backslash is collapsed to a double backslash |
| 3558 | # by the backticks, then collapsed again by the double quotes, |
| 3559 | # leaving us with one backslash in the sed expression (right |
| 3560 | # before the dot that mustn't act as a wildcard). |
| 3561 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` |
| 3562 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` |
| 3563 | # The user is allowed to set LINGUAS to a list of languages to |
| 3564 | # install catalogs for. If it's empty that means "all of them." |
| 3565 | if test "x$LINGUAS" = x; then |
| 3566 | CATALOGS="$CATALOGS $cat" |
| 3567 | XLINGUAS="$XLINGUAS $lang" |
| 3568 | else |
| 3569 | case "$LINGUAS" in *$lang*) |
| 3570 | CATALOGS="$CATALOGS $cat" |
| 3571 | XLINGUAS="$XLINGUAS $lang" |
| 3572 | ;; |
| 3573 | esac |
| 3574 | fi |
| 3575 | done |
| 3576 | LINGUAS="$XLINGUAS" |
| 3577 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 |
| 3578 | echo "${ECHO_T}$LINGUAS" >&6 |
| 3579 | |
| 3580 | |
| 3581 | DATADIRNAME=share |
| 3582 | |
| 3583 | INSTOBJEXT=.mo |
| 3584 | |
| 3585 | GENCAT=gencat |
| 3586 | |
| 3587 | CATOBJEXT=.gmo |
| 3588 | |
| 3589 | fi |
| 3590 | |
| 3591 | localedir='${datadir}/locale' |
| 3592 | |
| 3593 | |
| 3594 | if test x"$USE_NLS" = xyes; then |
| 3595 | CONFIG_ALL="$CONFIG_ALL all-po" |
| 3596 | CONFIG_CLEAN="$CONFIG_CLEAN clean-po" |
| 3597 | CONFIG_INSTALL="$CONFIG_INSTALL install-po" |
| 3598 | CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po" |
| 3599 | fi |
| 3600 | |
| 3601 | |
| 3602 | GNULIB_MEMMEM=0; |
| 3603 | GNULIB_MEMPCPY=0; |
| 3604 | GNULIB_MEMRCHR=0; |
| 3605 | GNULIB_STPCPY=0; |
| 3606 | GNULIB_STPNCPY=0; |
| 3607 | GNULIB_STRCHRNUL=0; |
| 3608 | GNULIB_STRDUP=0; |
| 3609 | GNULIB_STRNDUP=0; |
| 3610 | GNULIB_STRNLEN=0; |
| 3611 | GNULIB_STRPBRK=0; |
| 3612 | GNULIB_STRSEP=0; |
| 3613 | GNULIB_STRSTR=0; |
| 3614 | GNULIB_STRCASESTR=0; |
| 3615 | GNULIB_STRTOK_R=0; |
| 3616 | GNULIB_MBSLEN=0; |
| 3617 | GNULIB_MBSNLEN=0; |
| 3618 | GNULIB_MBSCHR=0; |
| 3619 | GNULIB_MBSRCHR=0; |
| 3620 | GNULIB_MBSSTR=0; |
| 3621 | GNULIB_MBSCASECMP=0; |
| 3622 | GNULIB_MBSNCASECMP=0; |
| 3623 | GNULIB_MBSPCASECMP=0; |
| 3624 | GNULIB_MBSCASESTR=0; |
| 3625 | GNULIB_MBSCSPN=0; |
| 3626 | GNULIB_MBSPBRK=0; |
| 3627 | GNULIB_MBSSPN=0; |
| 3628 | GNULIB_MBSSEP=0; |
| 3629 | GNULIB_MBSTOK_R=0; |
| 3630 | GNULIB_STRERROR=0; |
| 3631 | GNULIB_STRSIGNAL=0; |
| 3632 | HAVE_DECL_MEMMEM=1; |
| 3633 | HAVE_MEMPCPY=1; |
| 3634 | HAVE_DECL_MEMRCHR=1; |
| 3635 | HAVE_STPCPY=1; |
| 3636 | HAVE_STPNCPY=1; |
| 3637 | HAVE_STRCHRNUL=1; |
| 3638 | HAVE_DECL_STRDUP=1; |
| 3639 | HAVE_STRNDUP=1; |
| 3640 | HAVE_DECL_STRNDUP=1; |
| 3641 | HAVE_DECL_STRNLEN=1; |
| 3642 | HAVE_STRPBRK=1; |
| 3643 | HAVE_STRSEP=1; |
| 3644 | HAVE_STRCASESTR=1; |
| 3645 | HAVE_DECL_STRTOK_R=1; |
| 3646 | HAVE_DECL_STRERROR=1; |
| 3647 | HAVE_DECL_STRSIGNAL=1; |
| 3648 | REPLACE_STRERROR=0; |
| 3649 | REPLACE_STRSIGNAL=0; |
| 3650 | REPLACE_MEMMEM=0; |
| 3651 | REPLACE_STRCASESTR=0; |
| 3652 | REPLACE_STRSTR=0; |
| 3653 | |
| 3654 | |
| 3655 | echo "$as_me:$LINENO: checking whether memmem is declared" >&5 |
| 3656 | echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6 |
| 3657 | if test "${ac_cv_have_decl_memmem+set}" = set; then |
| 3658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3659 | else |
| 3660 | cat >conftest.$ac_ext <<_ACEOF |
| 3661 | /* confdefs.h. */ |
| 3662 | _ACEOF |
| 3663 | cat confdefs.h >>conftest.$ac_ext |
| 3664 | cat >>conftest.$ac_ext <<_ACEOF |
| 3665 | /* end confdefs.h. */ |
| 3666 | $ac_includes_default |
| 3667 | int |
| 3668 | main () |
| 3669 | { |
| 3670 | #ifndef memmem |
| 3671 | char *p = (char *) memmem; |
| 3672 | #endif |
| 3673 | |
| 3674 | ; |
| 3675 | return 0; |
| 3676 | } |
| 3677 | _ACEOF |
| 3678 | rm -f conftest.$ac_objext |
| 3679 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3680 | (eval $ac_compile) 2>conftest.er1 |
| 3681 | ac_status=$? |
| 3682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3683 | rm -f conftest.er1 |
| 3684 | cat conftest.err >&5 |
| 3685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3686 | (exit $ac_status); } && |
| 3687 | { ac_try='test -z "$ac_c_werror_flag" |
| 3688 | || test ! -s conftest.err' |
| 3689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3690 | (eval $ac_try) 2>&5 |
| 3691 | ac_status=$? |
| 3692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3693 | (exit $ac_status); }; } && |
| 3694 | { ac_try='test -s conftest.$ac_objext' |
| 3695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3696 | (eval $ac_try) 2>&5 |
| 3697 | ac_status=$? |
| 3698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3699 | (exit $ac_status); }; }; then |
| 3700 | ac_cv_have_decl_memmem=yes |
| 3701 | else |
| 3702 | echo "$as_me: failed program was:" >&5 |
| 3703 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3704 | |
| 3705 | ac_cv_have_decl_memmem=no |
| 3706 | fi |
| 3707 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3708 | fi |
| 3709 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5 |
| 3710 | echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6 |
| 3711 | if test $ac_cv_have_decl_memmem = yes; then |
| 3712 | |
| 3713 | cat >>confdefs.h <<_ACEOF |
| 3714 | #define HAVE_DECL_MEMMEM 1 |
| 3715 | _ACEOF |
| 3716 | |
| 3717 | |
| 3718 | else |
| 3719 | cat >>confdefs.h <<_ACEOF |
| 3720 | #define HAVE_DECL_MEMMEM 0 |
| 3721 | _ACEOF |
| 3722 | |
| 3723 | |
| 3724 | fi |
| 3725 | |
| 3726 | |
| 3727 | |
| 3728 | |
| 3729 | |
| 3730 | |
| 3731 | |
| 3732 | |
| 3733 | |
| 3734 | |
| 3735 | |
| 3736 | |
| 3737 | |
| 3738 | |
| 3739 | |
| 3740 | for ac_func in memmem |
| 3741 | do |
| 3742 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 3743 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 3744 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 3745 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 3746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3747 | else |
| 3748 | cat >conftest.$ac_ext <<_ACEOF |
| 3749 | /* confdefs.h. */ |
| 3750 | _ACEOF |
| 3751 | cat confdefs.h >>conftest.$ac_ext |
| 3752 | cat >>conftest.$ac_ext <<_ACEOF |
| 3753 | /* end confdefs.h. */ |
| 3754 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 3755 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 3756 | #define $ac_func innocuous_$ac_func |
| 3757 | |
| 3758 | /* System header to define __stub macros and hopefully few prototypes, |
| 3759 | which can conflict with char $ac_func (); below. |
| 3760 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3761 | <limits.h> exists even on freestanding compilers. */ |
| 3762 | |
| 3763 | #ifdef __STDC__ |
| 3764 | # include <limits.h> |
| 3765 | #else |
| 3766 | # include <assert.h> |
| 3767 | #endif |
| 3768 | |
| 3769 | #undef $ac_func |
| 3770 | |
| 3771 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3772 | #ifdef __cplusplus |
| 3773 | extern "C" |
| 3774 | { |
| 3775 | #endif |
| 3776 | /* We use char because int might match the return type of a gcc2 |
| 3777 | builtin and then its argument prototype would still apply. */ |
| 3778 | char $ac_func (); |
| 3779 | /* The GNU C library defines this for functions which it implements |
| 3780 | to always fail with ENOSYS. Some functions are actually named |
| 3781 | something starting with __ and the normal name is an alias. */ |
| 3782 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3783 | choke me |
| 3784 | #else |
| 3785 | char (*f) () = $ac_func; |
| 3786 | #endif |
| 3787 | #ifdef __cplusplus |
| 3788 | } |
| 3789 | #endif |
| 3790 | |
| 3791 | int |
| 3792 | main () |
| 3793 | { |
| 3794 | return f != $ac_func; |
| 3795 | ; |
| 3796 | return 0; |
| 3797 | } |
| 3798 | _ACEOF |
| 3799 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3800 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3801 | (eval $ac_link) 2>conftest.er1 |
| 3802 | ac_status=$? |
| 3803 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3804 | rm -f conftest.er1 |
| 3805 | cat conftest.err >&5 |
| 3806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3807 | (exit $ac_status); } && |
| 3808 | { ac_try='test -z "$ac_c_werror_flag" |
| 3809 | || test ! -s conftest.err' |
| 3810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3811 | (eval $ac_try) 2>&5 |
| 3812 | ac_status=$? |
| 3813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3814 | (exit $ac_status); }; } && |
| 3815 | { ac_try='test -s conftest$ac_exeext' |
| 3816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3817 | (eval $ac_try) 2>&5 |
| 3818 | ac_status=$? |
| 3819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3820 | (exit $ac_status); }; }; then |
| 3821 | eval "$as_ac_var=yes" |
| 3822 | else |
| 3823 | echo "$as_me: failed program was:" >&5 |
| 3824 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3825 | |
| 3826 | eval "$as_ac_var=no" |
| 3827 | fi |
| 3828 | rm -f conftest.err conftest.$ac_objext \ |
| 3829 | conftest$ac_exeext conftest.$ac_ext |
| 3830 | fi |
| 3831 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 3832 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 3833 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 3834 | cat >>confdefs.h <<_ACEOF |
| 3835 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 3836 | _ACEOF |
| 3837 | |
| 3838 | else |
| 3839 | |
| 3840 | gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" |
| 3841 | |
| 3842 | fi |
| 3843 | done |
| 3844 | |
| 3845 | |
| 3846 | |
| 3847 | : |
| 3848 | |
| 3849 | |
| 3850 | |
| 3851 | |
| 3852 | |
| 3853 | if test $ac_cv_have_decl_memmem = no; then |
| 3854 | HAVE_DECL_MEMMEM=0 |
| 3855 | fi |
| 3856 | : |
| 3857 | |
| 3858 | |
| 3859 | echo "$as_me:$LINENO: checking for long long int" >&5 |
| 3860 | echo $ECHO_N "checking for long long int... $ECHO_C" >&6 |
| 3861 | if test "${ac_cv_type_long_long_int+set}" = set; then |
| 3862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3863 | else |
| 3864 | cat >conftest.$ac_ext <<_ACEOF |
| 3865 | |
| 3866 | /* confdefs.h. */ |
| 3867 | _ACEOF |
| 3868 | cat confdefs.h >>conftest.$ac_ext |
| 3869 | cat >>conftest.$ac_ext <<_ACEOF |
| 3870 | /* end confdefs.h. */ |
| 3871 | /* For now, do not test the preprocessor; as of 2007 there are too many |
| 3872 | implementations with broken preprocessors. Perhaps this can |
| 3873 | be revisited in 2012. In the meantime, code should not expect |
| 3874 | #if to work with literals wider than 32 bits. */ |
| 3875 | /* Test literals. */ |
| 3876 | long long int ll = 9223372036854775807ll; |
| 3877 | long long int nll = -9223372036854775807LL; |
| 3878 | unsigned long long int ull = 18446744073709551615ULL; |
| 3879 | /* Test constant expressions. */ |
| 3880 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) |
| 3881 | ? 1 : -1)]; |
| 3882 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 |
| 3883 | ? 1 : -1)]; |
| 3884 | int i = 63; |
| 3885 | int |
| 3886 | main () |
| 3887 | { |
| 3888 | /* Test availability of runtime routines for shift and division. */ |
| 3889 | long long int llmax = 9223372036854775807ll; |
| 3890 | unsigned long long int ullmax = 18446744073709551615ull; |
| 3891 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) |
| 3892 | | (llmax / ll) | (llmax % ll) |
| 3893 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) |
| 3894 | | (ullmax / ull) | (ullmax % ull)); |
| 3895 | ; |
| 3896 | return 0; |
| 3897 | } |
| 3898 | |
| 3899 | _ACEOF |
| 3900 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3901 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3902 | (eval $ac_link) 2>conftest.er1 |
| 3903 | ac_status=$? |
| 3904 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3905 | rm -f conftest.er1 |
| 3906 | cat conftest.err >&5 |
| 3907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3908 | (exit $ac_status); } && |
| 3909 | { ac_try='test -z "$ac_c_werror_flag" |
| 3910 | || test ! -s conftest.err' |
| 3911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3912 | (eval $ac_try) 2>&5 |
| 3913 | ac_status=$? |
| 3914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3915 | (exit $ac_status); }; } && |
| 3916 | { ac_try='test -s conftest$ac_exeext' |
| 3917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3918 | (eval $ac_try) 2>&5 |
| 3919 | ac_status=$? |
| 3920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3921 | (exit $ac_status); }; }; then |
| 3922 | if test "$cross_compiling" = yes; then |
| 3923 | ac_cv_type_long_long_int=yes |
| 3924 | else |
| 3925 | cat >conftest.$ac_ext <<_ACEOF |
| 3926 | /* confdefs.h. */ |
| 3927 | _ACEOF |
| 3928 | cat confdefs.h >>conftest.$ac_ext |
| 3929 | cat >>conftest.$ac_ext <<_ACEOF |
| 3930 | /* end confdefs.h. */ |
| 3931 | #include <limits.h> |
| 3932 | #ifndef LLONG_MAX |
| 3933 | # define HALF \ |
| 3934 | (1LL << (sizeof (long long int) * CHAR_BIT - 2)) |
| 3935 | # define LLONG_MAX (HALF - 1 + HALF) |
| 3936 | #endif |
| 3937 | int |
| 3938 | main () |
| 3939 | { |
| 3940 | long long int n = 1; |
| 3941 | int i; |
| 3942 | for (i = 0; ; i++) |
| 3943 | { |
| 3944 | long long int m = n << i; |
| 3945 | if (m >> i != n) |
| 3946 | return 1; |
| 3947 | if (LLONG_MAX / 2 < m) |
| 3948 | break; |
| 3949 | } |
| 3950 | return 0; |
| 3951 | ; |
| 3952 | return 0; |
| 3953 | } |
| 3954 | _ACEOF |
| 3955 | rm -f conftest$ac_exeext |
| 3956 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3957 | (eval $ac_link) 2>&5 |
| 3958 | ac_status=$? |
| 3959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3960 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3962 | (eval $ac_try) 2>&5 |
| 3963 | ac_status=$? |
| 3964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3965 | (exit $ac_status); }; }; then |
| 3966 | ac_cv_type_long_long_int=yes |
| 3967 | else |
| 3968 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3969 | echo "$as_me: failed program was:" >&5 |
| 3970 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3971 | |
| 3972 | ( exit $ac_status ) |
| 3973 | ac_cv_type_long_long_int=no |
| 3974 | fi |
| 3975 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3976 | fi |
| 3977 | else |
| 3978 | echo "$as_me: failed program was:" >&5 |
| 3979 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3980 | |
| 3981 | ac_cv_type_long_long_int=no |
| 3982 | fi |
| 3983 | rm -f conftest.err conftest.$ac_objext \ |
| 3984 | conftest$ac_exeext conftest.$ac_ext |
| 3985 | fi |
| 3986 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 |
| 3987 | echo "${ECHO_T}$ac_cv_type_long_long_int" >&6 |
| 3988 | if test $ac_cv_type_long_long_int = yes; then |
| 3989 | |
| 3990 | cat >>confdefs.h <<\_ACEOF |
| 3991 | #define HAVE_LONG_LONG_INT 1 |
| 3992 | _ACEOF |
| 3993 | |
| 3994 | fi |
| 3995 | |
| 3996 | |
| 3997 | echo "$as_me:$LINENO: checking for unsigned long long int" >&5 |
| 3998 | echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6 |
| 3999 | if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then |
| 4000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4001 | else |
| 4002 | cat >conftest.$ac_ext <<_ACEOF |
| 4003 | |
| 4004 | /* confdefs.h. */ |
| 4005 | _ACEOF |
| 4006 | cat confdefs.h >>conftest.$ac_ext |
| 4007 | cat >>conftest.$ac_ext <<_ACEOF |
| 4008 | /* end confdefs.h. */ |
| 4009 | /* For now, do not test the preprocessor; as of 2007 there are too many |
| 4010 | implementations with broken preprocessors. Perhaps this can |
| 4011 | be revisited in 2012. In the meantime, code should not expect |
| 4012 | #if to work with literals wider than 32 bits. */ |
| 4013 | /* Test literals. */ |
| 4014 | long long int ll = 9223372036854775807ll; |
| 4015 | long long int nll = -9223372036854775807LL; |
| 4016 | unsigned long long int ull = 18446744073709551615ULL; |
| 4017 | /* Test constant expressions. */ |
| 4018 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) |
| 4019 | ? 1 : -1)]; |
| 4020 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 |
| 4021 | ? 1 : -1)]; |
| 4022 | int i = 63; |
| 4023 | int |
| 4024 | main () |
| 4025 | { |
| 4026 | /* Test availability of runtime routines for shift and division. */ |
| 4027 | long long int llmax = 9223372036854775807ll; |
| 4028 | unsigned long long int ullmax = 18446744073709551615ull; |
| 4029 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) |
| 4030 | | (llmax / ll) | (llmax % ll) |
| 4031 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) |
| 4032 | | (ullmax / ull) | (ullmax % ull)); |
| 4033 | ; |
| 4034 | return 0; |
| 4035 | } |
| 4036 | |
| 4037 | _ACEOF |
| 4038 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4039 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4040 | (eval $ac_link) 2>conftest.er1 |
| 4041 | ac_status=$? |
| 4042 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4043 | rm -f conftest.er1 |
| 4044 | cat conftest.err >&5 |
| 4045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4046 | (exit $ac_status); } && |
| 4047 | { ac_try='test -z "$ac_c_werror_flag" |
| 4048 | || test ! -s conftest.err' |
| 4049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4050 | (eval $ac_try) 2>&5 |
| 4051 | ac_status=$? |
| 4052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4053 | (exit $ac_status); }; } && |
| 4054 | { ac_try='test -s conftest$ac_exeext' |
| 4055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4056 | (eval $ac_try) 2>&5 |
| 4057 | ac_status=$? |
| 4058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4059 | (exit $ac_status); }; }; then |
| 4060 | ac_cv_type_unsigned_long_long_int=yes |
| 4061 | else |
| 4062 | echo "$as_me: failed program was:" >&5 |
| 4063 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4064 | |
| 4065 | ac_cv_type_unsigned_long_long_int=no |
| 4066 | fi |
| 4067 | rm -f conftest.err conftest.$ac_objext \ |
| 4068 | conftest$ac_exeext conftest.$ac_ext |
| 4069 | fi |
| 4070 | echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5 |
| 4071 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6 |
| 4072 | if test $ac_cv_type_unsigned_long_long_int = yes; then |
| 4073 | |
| 4074 | cat >>confdefs.h <<\_ACEOF |
| 4075 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 |
| 4076 | _ACEOF |
| 4077 | |
| 4078 | fi |
| 4079 | |
| 4080 | |
| 4081 | |
| 4082 | echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5 |
| 4083 | echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6 |
| 4084 | if test "${gl_cv_have_include_next+set}" = set; then |
| 4085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4086 | else |
| 4087 | rm -rf conftestd1 conftestd2 |
| 4088 | mkdir conftestd1 conftestd2 |
| 4089 | cat <<EOF > conftestd1/conftest.h |
| 4090 | #define DEFINED_IN_CONFTESTD1 |
| 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 | save_CPPFLAGS="$CPPFLAGS" |
| 4105 | CPPFLAGS="$CPPFLAGS -Iconftestd1 -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 | gl_cv_have_include_next=no |
| 4137 | fi |
| 4138 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4139 | CPPFLAGS="$save_CPPFLAGS" |
| 4140 | rm -rf conftestd1 conftestd2 |
| 4141 | |
| 4142 | fi |
| 4143 | echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5 |
| 4144 | echo "${ECHO_T}$gl_cv_have_include_next" >&6 |
| 4145 | if test $gl_cv_have_include_next = yes; then |
| 4146 | |
| 4147 | |
| 4148 | cat >>confdefs.h <<\_ACEOF |
| 4149 | #define HAVE_INCLUDE_NEXT 1 |
| 4150 | _ACEOF |
| 4151 | |
| 4152 | |
| 4153 | INCLUDE_NEXT=include_next |
| 4154 | else |
| 4155 | INCLUDE_NEXT=include |
| 4156 | fi |
| 4157 | |
| 4158 | |
| 4159 | |
| 4160 | |
| 4161 | |
| 4162 | |
| 4163 | |
| 4164 | for ac_header in $gl_header_list |
| 4165 | do |
| 4166 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4167 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4168 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4169 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4170 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4172 | fi |
| 4173 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4174 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4175 | else |
| 4176 | # Is the header compilable? |
| 4177 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4178 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4179 | cat >conftest.$ac_ext <<_ACEOF |
| 4180 | /* confdefs.h. */ |
| 4181 | _ACEOF |
| 4182 | cat confdefs.h >>conftest.$ac_ext |
| 4183 | cat >>conftest.$ac_ext <<_ACEOF |
| 4184 | /* end confdefs.h. */ |
| 4185 | $ac_includes_default |
| 4186 | #include <$ac_header> |
| 4187 | _ACEOF |
| 4188 | rm -f conftest.$ac_objext |
| 4189 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4190 | (eval $ac_compile) 2>conftest.er1 |
| 4191 | ac_status=$? |
| 4192 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4193 | rm -f conftest.er1 |
| 4194 | cat conftest.err >&5 |
| 4195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4196 | (exit $ac_status); } && |
| 4197 | { ac_try='test -z "$ac_c_werror_flag" |
| 4198 | || test ! -s conftest.err' |
| 4199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4200 | (eval $ac_try) 2>&5 |
| 4201 | ac_status=$? |
| 4202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4203 | (exit $ac_status); }; } && |
| 4204 | { ac_try='test -s conftest.$ac_objext' |
| 4205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4206 | (eval $ac_try) 2>&5 |
| 4207 | ac_status=$? |
| 4208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4209 | (exit $ac_status); }; }; then |
| 4210 | ac_header_compiler=yes |
| 4211 | else |
| 4212 | echo "$as_me: failed program was:" >&5 |
| 4213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4214 | |
| 4215 | ac_header_compiler=no |
| 4216 | fi |
| 4217 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4218 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4219 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4220 | |
| 4221 | # Is the header present? |
| 4222 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4223 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4224 | cat >conftest.$ac_ext <<_ACEOF |
| 4225 | /* confdefs.h. */ |
| 4226 | _ACEOF |
| 4227 | cat confdefs.h >>conftest.$ac_ext |
| 4228 | cat >>conftest.$ac_ext <<_ACEOF |
| 4229 | /* end confdefs.h. */ |
| 4230 | #include <$ac_header> |
| 4231 | _ACEOF |
| 4232 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4233 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4234 | ac_status=$? |
| 4235 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4236 | rm -f conftest.er1 |
| 4237 | cat conftest.err >&5 |
| 4238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4239 | (exit $ac_status); } >/dev/null; then |
| 4240 | if test -s conftest.err; then |
| 4241 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4242 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4243 | else |
| 4244 | ac_cpp_err= |
| 4245 | fi |
| 4246 | else |
| 4247 | ac_cpp_err=yes |
| 4248 | fi |
| 4249 | if test -z "$ac_cpp_err"; then |
| 4250 | ac_header_preproc=yes |
| 4251 | else |
| 4252 | echo "$as_me: failed program was:" >&5 |
| 4253 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4254 | |
| 4255 | ac_header_preproc=no |
| 4256 | fi |
| 4257 | rm -f conftest.err conftest.$ac_ext |
| 4258 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4259 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4260 | |
| 4261 | # So? What about this header? |
| 4262 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4263 | yes:no: ) |
| 4264 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4265 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4266 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 4267 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 4268 | ac_header_preproc=yes |
| 4269 | ;; |
| 4270 | no:yes:* ) |
| 4271 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4272 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4273 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4274 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4275 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 4276 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 4277 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 4278 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4279 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4280 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4281 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 4282 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 4283 | ( |
| 4284 | cat <<\_ASBOX |
| 4285 | ## ------------------------------------------ ## |
| 4286 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 4287 | ## ------------------------------------------ ## |
| 4288 | _ASBOX |
| 4289 | ) | |
| 4290 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4291 | ;; |
| 4292 | esac |
| 4293 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4294 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4295 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4297 | else |
| 4298 | eval "$as_ac_Header=\$ac_header_preproc" |
| 4299 | fi |
| 4300 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4301 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4302 | |
| 4303 | fi |
| 4304 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4305 | cat >>confdefs.h <<_ACEOF |
| 4306 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4307 | _ACEOF |
| 4308 | |
| 4309 | fi |
| 4310 | |
| 4311 | done |
| 4312 | |
| 4313 | |
| 4314 | |
| 4315 | |
| 4316 | |
| 4317 | |
| 4318 | |
| 4319 | |
| 4320 | |
| 4321 | |
| 4322 | |
| 4323 | |
| 4324 | echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5 |
| 4325 | echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6 |
| 4326 | if test "${ac_cv_c_restrict+set}" = set; then |
| 4327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4328 | else |
| 4329 | ac_cv_c_restrict=no |
| 4330 | # The order here caters to the fact that C++ does not require restrict. |
| 4331 | for ac_kw in __restrict __restrict__ _Restrict restrict; do |
| 4332 | cat >conftest.$ac_ext <<_ACEOF |
| 4333 | /* confdefs.h. */ |
| 4334 | _ACEOF |
| 4335 | cat confdefs.h >>conftest.$ac_ext |
| 4336 | cat >>conftest.$ac_ext <<_ACEOF |
| 4337 | /* end confdefs.h. */ |
| 4338 | typedef int * int_ptr; |
| 4339 | int foo (int_ptr $ac_kw ip) { |
| 4340 | return ip[0]; |
| 4341 | } |
| 4342 | int |
| 4343 | main () |
| 4344 | { |
| 4345 | int s[1]; |
| 4346 | int * $ac_kw t = s; |
| 4347 | t[0] = 0; |
| 4348 | return foo(t) |
| 4349 | ; |
| 4350 | return 0; |
| 4351 | } |
| 4352 | _ACEOF |
| 4353 | rm -f conftest.$ac_objext |
| 4354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4355 | (eval $ac_compile) 2>conftest.er1 |
| 4356 | ac_status=$? |
| 4357 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4358 | rm -f conftest.er1 |
| 4359 | cat conftest.err >&5 |
| 4360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4361 | (exit $ac_status); } && |
| 4362 | { ac_try='test -z "$ac_c_werror_flag" |
| 4363 | || test ! -s conftest.err' |
| 4364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4365 | (eval $ac_try) 2>&5 |
| 4366 | ac_status=$? |
| 4367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4368 | (exit $ac_status); }; } && |
| 4369 | { ac_try='test -s conftest.$ac_objext' |
| 4370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4371 | (eval $ac_try) 2>&5 |
| 4372 | ac_status=$? |
| 4373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4374 | (exit $ac_status); }; }; then |
| 4375 | ac_cv_c_restrict=$ac_kw |
| 4376 | else |
| 4377 | echo "$as_me: failed program was:" >&5 |
| 4378 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4379 | |
| 4380 | fi |
| 4381 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4382 | test "$ac_cv_c_restrict" != no && break |
| 4383 | done |
| 4384 | |
| 4385 | fi |
| 4386 | echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5 |
| 4387 | echo "${ECHO_T}$ac_cv_c_restrict" >&6 |
| 4388 | |
| 4389 | |
| 4390 | case $ac_cv_c_restrict in |
| 4391 | restrict) ;; |
| 4392 | no) cat >>confdefs.h <<\_ACEOF |
| 4393 | #define restrict |
| 4394 | _ACEOF |
| 4395 | ;; |
| 4396 | *) cat >>confdefs.h <<_ACEOF |
| 4397 | #define restrict $ac_cv_c_restrict |
| 4398 | _ACEOF |
| 4399 | ;; |
| 4400 | esac |
| 4401 | |
| 4402 | |
| 4403 | |
| 4404 | |
| 4405 | |
| 4406 | |
| 4407 | |
| 4408 | |
| 4409 | |
| 4410 | |
| 4411 | |
| 4412 | |
| 4413 | |
| 4414 | : |
| 4415 | |
| 4416 | |
| 4417 | |
| 4418 | |
| 4419 | |
| 4420 | |
| 4421 | |
| 4422 | if test $gl_cv_have_include_next = yes; then |
| 4423 | gl_cv_next_string_h='<'string.h'>' |
| 4424 | else |
| 4425 | echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5 |
| 4426 | echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6 |
| 4427 | if test "${gl_cv_next_string_h+set}" = set; then |
| 4428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4429 | else |
| 4430 | |
| 4431 | if test $ac_cv_header_string_h = yes; then |
| 4432 | cat >conftest.$ac_ext <<_ACEOF |
| 4433 | /* confdefs.h. */ |
| 4434 | _ACEOF |
| 4435 | cat confdefs.h >>conftest.$ac_ext |
| 4436 | cat >>conftest.$ac_ext <<_ACEOF |
| 4437 | /* end confdefs.h. */ |
| 4438 | #include <string.h> |
| 4439 | |
| 4440 | _ACEOF |
| 4441 | gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4442 | sed -n '\#/string.h#{ |
| 4443 | s#.*"\(.*/string.h\)".*#\1# |
| 4444 | s#^/[^/]#//&# |
| 4445 | p |
| 4446 | q |
| 4447 | }'`'"' |
| 4448 | else |
| 4449 | gl_cv_next_string_h='<'string.h'>' |
| 4450 | fi |
| 4451 | |
| 4452 | fi |
| 4453 | echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5 |
| 4454 | echo "${ECHO_T}$gl_cv_next_string_h" >&6 |
| 4455 | fi |
| 4456 | NEXT_STRING_H=$gl_cv_next_string_h |
| 4457 | |
| 4458 | |
| 4459 | |
| 4460 | |
| 4461 | |
| 4462 | GNULIB_WCWIDTH=0; |
| 4463 | HAVE_DECL_WCWIDTH=1; |
| 4464 | REPLACE_WCWIDTH=0; |
| 4465 | WCHAR_H= |
| 4466 | |
| 4467 | |
| 4468 | |
| 4469 | |
| 4470 | |
| 4471 | if false; then |
| 4472 | GL_COND_LIBTOOL_TRUE= |
| 4473 | GL_COND_LIBTOOL_FALSE='#' |
| 4474 | else |
| 4475 | GL_COND_LIBTOOL_TRUE='#' |
| 4476 | GL_COND_LIBTOOL_FALSE= |
| 4477 | fi |
| 4478 | |
| 4479 | gl_cond_libtool=false |
| 4480 | gl_libdeps= |
| 4481 | gl_ltlibdeps= |
| 4482 | |
| 4483 | |
| 4484 | |
| 4485 | gl_source_base='gnulib' |
| 4486 | |
| 4487 | |
| 4488 | |
| 4489 | |
| 4490 | |
| 4491 | |
| 4492 | |
| 4493 | |
| 4494 | |
| 4495 | for ac_func in memchr |
| 4496 | do |
| 4497 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 4498 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 4499 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 4500 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 4501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4502 | else |
| 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 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 4510 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4511 | #define $ac_func innocuous_$ac_func |
| 4512 | |
| 4513 | /* System header to define __stub macros and hopefully few prototypes, |
| 4514 | which can conflict with char $ac_func (); below. |
| 4515 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4516 | <limits.h> exists even on freestanding compilers. */ |
| 4517 | |
| 4518 | #ifdef __STDC__ |
| 4519 | # include <limits.h> |
| 4520 | #else |
| 4521 | # include <assert.h> |
| 4522 | #endif |
| 4523 | |
| 4524 | #undef $ac_func |
| 4525 | |
| 4526 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4527 | #ifdef __cplusplus |
| 4528 | extern "C" |
| 4529 | { |
| 4530 | #endif |
| 4531 | /* We use char because int might match the return type of a gcc2 |
| 4532 | builtin and then its argument prototype would still apply. */ |
| 4533 | char $ac_func (); |
| 4534 | /* The GNU C library defines this for functions which it implements |
| 4535 | to always fail with ENOSYS. Some functions are actually named |
| 4536 | something starting with __ and the normal name is an alias. */ |
| 4537 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4538 | choke me |
| 4539 | #else |
| 4540 | char (*f) () = $ac_func; |
| 4541 | #endif |
| 4542 | #ifdef __cplusplus |
| 4543 | } |
| 4544 | #endif |
| 4545 | |
| 4546 | int |
| 4547 | main () |
| 4548 | { |
| 4549 | return f != $ac_func; |
| 4550 | ; |
| 4551 | return 0; |
| 4552 | } |
| 4553 | _ACEOF |
| 4554 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4555 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4556 | (eval $ac_link) 2>conftest.er1 |
| 4557 | ac_status=$? |
| 4558 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4559 | rm -f conftest.er1 |
| 4560 | cat conftest.err >&5 |
| 4561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4562 | (exit $ac_status); } && |
| 4563 | { ac_try='test -z "$ac_c_werror_flag" |
| 4564 | || test ! -s conftest.err' |
| 4565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4566 | (eval $ac_try) 2>&5 |
| 4567 | ac_status=$? |
| 4568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4569 | (exit $ac_status); }; } && |
| 4570 | { ac_try='test -s conftest$ac_exeext' |
| 4571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4572 | (eval $ac_try) 2>&5 |
| 4573 | ac_status=$? |
| 4574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4575 | (exit $ac_status); }; }; then |
| 4576 | eval "$as_ac_var=yes" |
| 4577 | else |
| 4578 | echo "$as_me: failed program was:" >&5 |
| 4579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4580 | |
| 4581 | eval "$as_ac_var=no" |
| 4582 | fi |
| 4583 | rm -f conftest.err conftest.$ac_objext \ |
| 4584 | conftest$ac_exeext conftest.$ac_ext |
| 4585 | fi |
| 4586 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 4587 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 4588 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 4589 | cat >>confdefs.h <<_ACEOF |
| 4590 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 4591 | _ACEOF |
| 4592 | |
| 4593 | else |
| 4594 | |
| 4595 | gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" |
| 4596 | |
| 4597 | fi |
| 4598 | done |
| 4599 | |
| 4600 | |
| 4601 | if test $ac_cv_func_memchr = no; then |
| 4602 | |
| 4603 | |
| 4604 | for ac_header in bp-sym.h |
| 4605 | do |
| 4606 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4607 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4608 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4609 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4610 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4612 | fi |
| 4613 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4614 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4615 | else |
| 4616 | # Is the header compilable? |
| 4617 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4618 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4619 | cat >conftest.$ac_ext <<_ACEOF |
| 4620 | /* confdefs.h. */ |
| 4621 | _ACEOF |
| 4622 | cat confdefs.h >>conftest.$ac_ext |
| 4623 | cat >>conftest.$ac_ext <<_ACEOF |
| 4624 | /* end confdefs.h. */ |
| 4625 | $ac_includes_default |
| 4626 | #include <$ac_header> |
| 4627 | _ACEOF |
| 4628 | rm -f conftest.$ac_objext |
| 4629 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4630 | (eval $ac_compile) 2>conftest.er1 |
| 4631 | ac_status=$? |
| 4632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4633 | rm -f conftest.er1 |
| 4634 | cat conftest.err >&5 |
| 4635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4636 | (exit $ac_status); } && |
| 4637 | { ac_try='test -z "$ac_c_werror_flag" |
| 4638 | || test ! -s conftest.err' |
| 4639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4640 | (eval $ac_try) 2>&5 |
| 4641 | ac_status=$? |
| 4642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4643 | (exit $ac_status); }; } && |
| 4644 | { ac_try='test -s conftest.$ac_objext' |
| 4645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4646 | (eval $ac_try) 2>&5 |
| 4647 | ac_status=$? |
| 4648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4649 | (exit $ac_status); }; }; then |
| 4650 | ac_header_compiler=yes |
| 4651 | else |
| 4652 | echo "$as_me: failed program was:" >&5 |
| 4653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4654 | |
| 4655 | ac_header_compiler=no |
| 4656 | fi |
| 4657 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4658 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4659 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4660 | |
| 4661 | # Is the header present? |
| 4662 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4663 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4664 | cat >conftest.$ac_ext <<_ACEOF |
| 4665 | /* confdefs.h. */ |
| 4666 | _ACEOF |
| 4667 | cat confdefs.h >>conftest.$ac_ext |
| 4668 | cat >>conftest.$ac_ext <<_ACEOF |
| 4669 | /* end confdefs.h. */ |
| 4670 | #include <$ac_header> |
| 4671 | _ACEOF |
| 4672 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4673 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4674 | ac_status=$? |
| 4675 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4676 | rm -f conftest.er1 |
| 4677 | cat conftest.err >&5 |
| 4678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4679 | (exit $ac_status); } >/dev/null; then |
| 4680 | if test -s conftest.err; then |
| 4681 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4682 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4683 | else |
| 4684 | ac_cpp_err= |
| 4685 | fi |
| 4686 | else |
| 4687 | ac_cpp_err=yes |
| 4688 | fi |
| 4689 | if test -z "$ac_cpp_err"; then |
| 4690 | ac_header_preproc=yes |
| 4691 | else |
| 4692 | echo "$as_me: failed program was:" >&5 |
| 4693 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4694 | |
| 4695 | ac_header_preproc=no |
| 4696 | fi |
| 4697 | rm -f conftest.err conftest.$ac_ext |
| 4698 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4699 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4700 | |
| 4701 | # So? What about this header? |
| 4702 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4703 | yes:no: ) |
| 4704 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4705 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4706 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 4707 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 4708 | ac_header_preproc=yes |
| 4709 | ;; |
| 4710 | no:yes:* ) |
| 4711 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4712 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4713 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4714 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4715 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 4716 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 4717 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 4718 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4719 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4720 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4721 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 4722 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 4723 | ( |
| 4724 | cat <<\_ASBOX |
| 4725 | ## ------------------------------------------ ## |
| 4726 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 4727 | ## ------------------------------------------ ## |
| 4728 | _ASBOX |
| 4729 | ) | |
| 4730 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4731 | ;; |
| 4732 | esac |
| 4733 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4734 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4735 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4737 | else |
| 4738 | eval "$as_ac_Header=\$ac_header_preproc" |
| 4739 | fi |
| 4740 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4741 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4742 | |
| 4743 | fi |
| 4744 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4745 | cat >>confdefs.h <<_ACEOF |
| 4746 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4747 | _ACEOF |
| 4748 | |
| 4749 | fi |
| 4750 | |
| 4751 | done |
| 4752 | |
| 4753 | |
| 4754 | fi |
| 4755 | |
| 4756 | |
| 4757 | echo "$as_me:$LINENO: checking for working memcmp" >&5 |
| 4758 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 |
| 4759 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
| 4760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4761 | else |
| 4762 | if test "$cross_compiling" = yes; then |
| 4763 | ac_cv_func_memcmp_working=no |
| 4764 | else |
| 4765 | cat >conftest.$ac_ext <<_ACEOF |
| 4766 | /* confdefs.h. */ |
| 4767 | _ACEOF |
| 4768 | cat confdefs.h >>conftest.$ac_ext |
| 4769 | cat >>conftest.$ac_ext <<_ACEOF |
| 4770 | /* end confdefs.h. */ |
| 4771 | $ac_includes_default |
| 4772 | int |
| 4773 | main () |
| 4774 | { |
| 4775 | |
| 4776 | /* Some versions of memcmp are not 8-bit clean. */ |
| 4777 | char c0 = 0x40, c1 = 0x80, c2 = 0x81; |
| 4778 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
| 4779 | exit (1); |
| 4780 | |
| 4781 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
| 4782 | or more and with at least one buffer not starting on a 4-byte boundary. |
| 4783 | William Lewis provided this test program. */ |
| 4784 | { |
| 4785 | char foo[21]; |
| 4786 | char bar[21]; |
| 4787 | int i; |
| 4788 | for (i = 0; i < 4; i++) |
| 4789 | { |
| 4790 | char *a = foo + i; |
| 4791 | char *b = bar + i; |
| 4792 | strcpy (a, "--------01111111"); |
| 4793 | strcpy (b, "--------10000000"); |
| 4794 | if (memcmp (a, b, 16) >= 0) |
| 4795 | exit (1); |
| 4796 | } |
| 4797 | exit (0); |
| 4798 | } |
| 4799 | |
| 4800 | ; |
| 4801 | return 0; |
| 4802 | } |
| 4803 | _ACEOF |
| 4804 | rm -f conftest$ac_exeext |
| 4805 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4806 | (eval $ac_link) 2>&5 |
| 4807 | ac_status=$? |
| 4808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4809 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4811 | (eval $ac_try) 2>&5 |
| 4812 | ac_status=$? |
| 4813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4814 | (exit $ac_status); }; }; then |
| 4815 | ac_cv_func_memcmp_working=yes |
| 4816 | else |
| 4817 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4818 | echo "$as_me: failed program was:" >&5 |
| 4819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4820 | |
| 4821 | ( exit $ac_status ) |
| 4822 | ac_cv_func_memcmp_working=no |
| 4823 | fi |
| 4824 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4825 | fi |
| 4826 | fi |
| 4827 | echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
| 4828 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 |
| 4829 | test $ac_cv_func_memcmp_working = no && |
| 4830 | |
| 4831 | |
| 4832 | |
| 4833 | |
| 4834 | |
| 4835 | |
| 4836 | gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext" |
| 4837 | |
| 4838 | |
| 4839 | if test $ac_cv_func_memcmp_working = no; then |
| 4840 | |
| 4841 | cat >>confdefs.h <<\_ACEOF |
| 4842 | #define memcmp rpl_memcmp |
| 4843 | _ACEOF |
| 4844 | |
| 4845 | : |
| 4846 | fi |
| 4847 | |
| 4848 | |
| 4849 | |
| 4850 | if test $ac_cv_have_decl_memmem = yes; then |
| 4851 | echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5 |
| 4852 | echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6 |
| 4853 | if test "${gl_cv_func_memmem_works+set}" = set; then |
| 4854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4855 | else |
| 4856 | if test "$cross_compiling" = yes; then |
| 4857 | gl_cv_func_memmem_works="guessing no" |
| 4858 | else |
| 4859 | cat >conftest.$ac_ext <<_ACEOF |
| 4860 | /* confdefs.h. */ |
| 4861 | _ACEOF |
| 4862 | cat confdefs.h >>conftest.$ac_ext |
| 4863 | cat >>conftest.$ac_ext <<_ACEOF |
| 4864 | /* end confdefs.h. */ |
| 4865 | |
| 4866 | #include <string.h> /* for memmem */ |
| 4867 | #include <stdlib.h> /* for malloc */ |
| 4868 | #include <unistd.h> /* for alarm */ |
| 4869 | |
| 4870 | int |
| 4871 | main () |
| 4872 | { |
| 4873 | size_t m = 1000000; |
| 4874 | char *haystack = (char *) malloc (2 * m + 1); |
| 4875 | char *needle = (char *) malloc (m + 1); |
| 4876 | void *result = 0; |
| 4877 | /* Failure to compile this test due to missing alarm is okay, |
| 4878 | since all such platforms (mingw) also lack memmem. */ |
| 4879 | alarm (5); |
| 4880 | /* Check for quadratic performance. */ |
| 4881 | if (haystack && needle) |
| 4882 | { |
| 4883 | memset (haystack, 'A', 2 * m); |
| 4884 | haystack[2 * m] = 'B'; |
| 4885 | memset (needle, 'A', m); |
| 4886 | needle[m] = 'B'; |
| 4887 | result = memmem (haystack, 2 * m + 1, needle, m + 1); |
| 4888 | } |
| 4889 | /* Check for empty needle behavior. */ |
| 4890 | return !result || !memmem ("a", 1, 0, 0); |
| 4891 | ; |
| 4892 | return 0; |
| 4893 | } |
| 4894 | _ACEOF |
| 4895 | rm -f conftest$ac_exeext |
| 4896 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4897 | (eval $ac_link) 2>&5 |
| 4898 | ac_status=$? |
| 4899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4900 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4902 | (eval $ac_try) 2>&5 |
| 4903 | ac_status=$? |
| 4904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4905 | (exit $ac_status); }; }; then |
| 4906 | gl_cv_func_memmem_works=yes |
| 4907 | else |
| 4908 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4909 | echo "$as_me: failed program was:" >&5 |
| 4910 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4911 | |
| 4912 | ( exit $ac_status ) |
| 4913 | gl_cv_func_memmem_works=no |
| 4914 | fi |
| 4915 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4916 | fi |
| 4917 | fi |
| 4918 | echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5 |
| 4919 | echo "${ECHO_T}$gl_cv_func_memmem_works" >&6 |
| 4920 | if test "$gl_cv_func_memmem_works" != yes; then |
| 4921 | REPLACE_MEMMEM=1 |
| 4922 | |
| 4923 | |
| 4924 | |
| 4925 | |
| 4926 | |
| 4927 | |
| 4928 | |
| 4929 | gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext" |
| 4930 | |
| 4931 | fi |
| 4932 | fi |
| 4933 | |
| 4934 | |
| 4935 | |
| 4936 | |
| 4937 | |
| 4938 | |
| 4939 | |
| 4940 | |
| 4941 | |
| 4942 | |
| 4943 | |
| 4944 | |
| 4945 | |
| 4946 | for ac_func in memmem |
| 4947 | do |
| 4948 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 4949 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 4950 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 4951 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 4952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4953 | else |
| 4954 | cat >conftest.$ac_ext <<_ACEOF |
| 4955 | /* confdefs.h. */ |
| 4956 | _ACEOF |
| 4957 | cat confdefs.h >>conftest.$ac_ext |
| 4958 | cat >>conftest.$ac_ext <<_ACEOF |
| 4959 | /* end confdefs.h. */ |
| 4960 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 4961 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4962 | #define $ac_func innocuous_$ac_func |
| 4963 | |
| 4964 | /* System header to define __stub macros and hopefully few prototypes, |
| 4965 | which can conflict with char $ac_func (); below. |
| 4966 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4967 | <limits.h> exists even on freestanding compilers. */ |
| 4968 | |
| 4969 | #ifdef __STDC__ |
| 4970 | # include <limits.h> |
| 4971 | #else |
| 4972 | # include <assert.h> |
| 4973 | #endif |
| 4974 | |
| 4975 | #undef $ac_func |
| 4976 | |
| 4977 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4978 | #ifdef __cplusplus |
| 4979 | extern "C" |
| 4980 | { |
| 4981 | #endif |
| 4982 | /* We use char because int might match the return type of a gcc2 |
| 4983 | builtin and then its argument prototype would still apply. */ |
| 4984 | char $ac_func (); |
| 4985 | /* The GNU C library defines this for functions which it implements |
| 4986 | to always fail with ENOSYS. Some functions are actually named |
| 4987 | something starting with __ and the normal name is an alias. */ |
| 4988 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4989 | choke me |
| 4990 | #else |
| 4991 | char (*f) () = $ac_func; |
| 4992 | #endif |
| 4993 | #ifdef __cplusplus |
| 4994 | } |
| 4995 | #endif |
| 4996 | |
| 4997 | int |
| 4998 | main () |
| 4999 | { |
| 5000 | return f != $ac_func; |
| 5001 | ; |
| 5002 | return 0; |
| 5003 | } |
| 5004 | _ACEOF |
| 5005 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5006 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5007 | (eval $ac_link) 2>conftest.er1 |
| 5008 | ac_status=$? |
| 5009 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5010 | rm -f conftest.er1 |
| 5011 | cat conftest.err >&5 |
| 5012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5013 | (exit $ac_status); } && |
| 5014 | { ac_try='test -z "$ac_c_werror_flag" |
| 5015 | || test ! -s conftest.err' |
| 5016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5017 | (eval $ac_try) 2>&5 |
| 5018 | ac_status=$? |
| 5019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5020 | (exit $ac_status); }; } && |
| 5021 | { ac_try='test -s conftest$ac_exeext' |
| 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); }; }; then |
| 5027 | eval "$as_ac_var=yes" |
| 5028 | else |
| 5029 | echo "$as_me: failed program was:" >&5 |
| 5030 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5031 | |
| 5032 | eval "$as_ac_var=no" |
| 5033 | fi |
| 5034 | rm -f conftest.err conftest.$ac_objext \ |
| 5035 | conftest$ac_exeext conftest.$ac_ext |
| 5036 | fi |
| 5037 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 5038 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5039 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 5040 | cat >>confdefs.h <<_ACEOF |
| 5041 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 5042 | _ACEOF |
| 5043 | |
| 5044 | else |
| 5045 | |
| 5046 | gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" |
| 5047 | |
| 5048 | fi |
| 5049 | done |
| 5050 | |
| 5051 | |
| 5052 | |
| 5053 | : |
| 5054 | |
| 5055 | |
| 5056 | |
| 5057 | |
| 5058 | |
| 5059 | if test $ac_cv_have_decl_memmem = no; then |
| 5060 | HAVE_DECL_MEMMEM=0 |
| 5061 | fi |
| 5062 | : |
| 5063 | |
| 5064 | |
| 5065 | |
| 5066 | GNULIB_MEMMEM=1 |
| 5067 | |
| 5068 | |
| 5069 | |
| 5070 | |
| 5071 | if test $ac_cv_type_long_long_int = yes; then |
| 5072 | HAVE_LONG_LONG_INT=1 |
| 5073 | else |
| 5074 | HAVE_LONG_LONG_INT=0 |
| 5075 | fi |
| 5076 | |
| 5077 | |
| 5078 | if test $ac_cv_type_unsigned_long_long_int = yes; then |
| 5079 | HAVE_UNSIGNED_LONG_LONG_INT=1 |
| 5080 | else |
| 5081 | HAVE_UNSIGNED_LONG_LONG_INT=0 |
| 5082 | fi |
| 5083 | |
| 5084 | |
| 5085 | if test $ac_cv_header_inttypes_h = yes; then |
| 5086 | HAVE_INTTYPES_H=1 |
| 5087 | else |
| 5088 | HAVE_INTTYPES_H=0 |
| 5089 | fi |
| 5090 | |
| 5091 | |
| 5092 | if test $ac_cv_header_sys_types_h = yes; then |
| 5093 | HAVE_SYS_TYPES_H=1 |
| 5094 | else |
| 5095 | HAVE_SYS_TYPES_H=0 |
| 5096 | fi |
| 5097 | |
| 5098 | |
| 5099 | |
| 5100 | |
| 5101 | |
| 5102 | : |
| 5103 | |
| 5104 | |
| 5105 | |
| 5106 | |
| 5107 | |
| 5108 | |
| 5109 | |
| 5110 | if test $gl_cv_have_include_next = yes; then |
| 5111 | gl_cv_next_stdint_h='<'stdint.h'>' |
| 5112 | else |
| 5113 | echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5 |
| 5114 | echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6 |
| 5115 | if test "${gl_cv_next_stdint_h+set}" = set; then |
| 5116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5117 | else |
| 5118 | |
| 5119 | if test $ac_cv_header_stdint_h = yes; then |
| 5120 | cat >conftest.$ac_ext <<_ACEOF |
| 5121 | /* confdefs.h. */ |
| 5122 | _ACEOF |
| 5123 | cat confdefs.h >>conftest.$ac_ext |
| 5124 | cat >>conftest.$ac_ext <<_ACEOF |
| 5125 | /* end confdefs.h. */ |
| 5126 | #include <stdint.h> |
| 5127 | |
| 5128 | _ACEOF |
| 5129 | gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5130 | sed -n '\#/stdint.h#{ |
| 5131 | s#.*"\(.*/stdint.h\)".*#\1# |
| 5132 | s#^/[^/]#//&# |
| 5133 | p |
| 5134 | q |
| 5135 | }'`'"' |
| 5136 | else |
| 5137 | gl_cv_next_stdint_h='<'stdint.h'>' |
| 5138 | fi |
| 5139 | |
| 5140 | fi |
| 5141 | echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5 |
| 5142 | echo "${ECHO_T}$gl_cv_next_stdint_h" >&6 |
| 5143 | fi |
| 5144 | NEXT_STDINT_H=$gl_cv_next_stdint_h |
| 5145 | |
| 5146 | |
| 5147 | |
| 5148 | if test $ac_cv_header_stdint_h = yes; then |
| 5149 | HAVE_STDINT_H=1 |
| 5150 | else |
| 5151 | HAVE_STDINT_H=0 |
| 5152 | fi |
| 5153 | |
| 5154 | |
| 5155 | if test $ac_cv_header_stdint_h = yes; then |
| 5156 | echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5 |
| 5157 | echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6 |
| 5158 | if test "${gl_cv_header_working_stdint_h+set}" = set; then |
| 5159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5160 | else |
| 5161 | gl_cv_header_working_stdint_h=no |
| 5162 | cat >conftest.$ac_ext <<_ACEOF |
| 5163 | |
| 5164 | /* confdefs.h. */ |
| 5165 | _ACEOF |
| 5166 | cat confdefs.h >>conftest.$ac_ext |
| 5167 | cat >>conftest.$ac_ext <<_ACEOF |
| 5168 | /* end confdefs.h. */ |
| 5169 | |
| 5170 | #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ |
| 5171 | #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ |
| 5172 | #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ |
| 5173 | #include <stdint.h> |
| 5174 | /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */ |
| 5175 | #if !(defined WCHAR_MIN && defined WCHAR_MAX) |
| 5176 | #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>" |
| 5177 | #endif |
| 5178 | |
| 5179 | |
| 5180 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 5181 | included before <wchar.h>. */ |
| 5182 | #include <stddef.h> |
| 5183 | #include <signal.h> |
| 5184 | #if HAVE_WCHAR_H |
| 5185 | # include <stdio.h> |
| 5186 | # include <time.h> |
| 5187 | # include <wchar.h> |
| 5188 | #endif |
| 5189 | |
| 5190 | |
| 5191 | #ifdef INT8_MAX |
| 5192 | int8_t a1 = INT8_MAX; |
| 5193 | int8_t a1min = INT8_MIN; |
| 5194 | #endif |
| 5195 | #ifdef INT16_MAX |
| 5196 | int16_t a2 = INT16_MAX; |
| 5197 | int16_t a2min = INT16_MIN; |
| 5198 | #endif |
| 5199 | #ifdef INT32_MAX |
| 5200 | int32_t a3 = INT32_MAX; |
| 5201 | int32_t a3min = INT32_MIN; |
| 5202 | #endif |
| 5203 | #ifdef INT64_MAX |
| 5204 | int64_t a4 = INT64_MAX; |
| 5205 | int64_t a4min = INT64_MIN; |
| 5206 | #endif |
| 5207 | #ifdef UINT8_MAX |
| 5208 | uint8_t b1 = UINT8_MAX; |
| 5209 | #else |
| 5210 | typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; |
| 5211 | #endif |
| 5212 | #ifdef UINT16_MAX |
| 5213 | uint16_t b2 = UINT16_MAX; |
| 5214 | #endif |
| 5215 | #ifdef UINT32_MAX |
| 5216 | uint32_t b3 = UINT32_MAX; |
| 5217 | #endif |
| 5218 | #ifdef UINT64_MAX |
| 5219 | uint64_t b4 = UINT64_MAX; |
| 5220 | #endif |
| 5221 | int_least8_t c1 = INT8_C (0x7f); |
| 5222 | int_least8_t c1max = INT_LEAST8_MAX; |
| 5223 | int_least8_t c1min = INT_LEAST8_MIN; |
| 5224 | int_least16_t c2 = INT16_C (0x7fff); |
| 5225 | int_least16_t c2max = INT_LEAST16_MAX; |
| 5226 | int_least16_t c2min = INT_LEAST16_MIN; |
| 5227 | int_least32_t c3 = INT32_C (0x7fffffff); |
| 5228 | int_least32_t c3max = INT_LEAST32_MAX; |
| 5229 | int_least32_t c3min = INT_LEAST32_MIN; |
| 5230 | int_least64_t c4 = INT64_C (0x7fffffffffffffff); |
| 5231 | int_least64_t c4max = INT_LEAST64_MAX; |
| 5232 | int_least64_t c4min = INT_LEAST64_MIN; |
| 5233 | uint_least8_t d1 = UINT8_C (0xff); |
| 5234 | uint_least8_t d1max = UINT_LEAST8_MAX; |
| 5235 | uint_least16_t d2 = UINT16_C (0xffff); |
| 5236 | uint_least16_t d2max = UINT_LEAST16_MAX; |
| 5237 | uint_least32_t d3 = UINT32_C (0xffffffff); |
| 5238 | uint_least32_t d3max = UINT_LEAST32_MAX; |
| 5239 | uint_least64_t d4 = UINT64_C (0xffffffffffffffff); |
| 5240 | uint_least64_t d4max = UINT_LEAST64_MAX; |
| 5241 | int_fast8_t e1 = INT_FAST8_MAX; |
| 5242 | int_fast8_t e1min = INT_FAST8_MIN; |
| 5243 | int_fast16_t e2 = INT_FAST16_MAX; |
| 5244 | int_fast16_t e2min = INT_FAST16_MIN; |
| 5245 | int_fast32_t e3 = INT_FAST32_MAX; |
| 5246 | int_fast32_t e3min = INT_FAST32_MIN; |
| 5247 | int_fast64_t e4 = INT_FAST64_MAX; |
| 5248 | int_fast64_t e4min = INT_FAST64_MIN; |
| 5249 | uint_fast8_t f1 = UINT_FAST8_MAX; |
| 5250 | uint_fast16_t f2 = UINT_FAST16_MAX; |
| 5251 | uint_fast32_t f3 = UINT_FAST32_MAX; |
| 5252 | uint_fast64_t f4 = UINT_FAST64_MAX; |
| 5253 | #ifdef INTPTR_MAX |
| 5254 | intptr_t g = INTPTR_MAX; |
| 5255 | intptr_t gmin = INTPTR_MIN; |
| 5256 | #endif |
| 5257 | #ifdef UINTPTR_MAX |
| 5258 | uintptr_t h = UINTPTR_MAX; |
| 5259 | #endif |
| 5260 | intmax_t i = INTMAX_MAX; |
| 5261 | uintmax_t j = UINTMAX_MAX; |
| 5262 | |
| 5263 | #include <limits.h> /* for CHAR_BIT */ |
| 5264 | #define TYPE_MINIMUM(t) \ |
| 5265 | ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))) |
| 5266 | #define TYPE_MAXIMUM(t) \ |
| 5267 | ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) |
| 5268 | struct s { |
| 5269 | int check_PTRDIFF: |
| 5270 | PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) |
| 5271 | && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) |
| 5272 | ? 1 : -1; |
| 5273 | /* Detect bug in FreeBSD 6.0 / ia64. */ |
| 5274 | int check_SIG_ATOMIC: |
| 5275 | SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) |
| 5276 | && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) |
| 5277 | ? 1 : -1; |
| 5278 | int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; |
| 5279 | int check_WCHAR: |
| 5280 | WCHAR_MIN == TYPE_MINIMUM (wchar_t) |
| 5281 | && WCHAR_MAX == TYPE_MAXIMUM (wchar_t) |
| 5282 | ? 1 : -1; |
| 5283 | /* Detect bug in mingw. */ |
| 5284 | int check_WINT: |
| 5285 | WINT_MIN == TYPE_MINIMUM (wint_t) |
| 5286 | && WINT_MAX == TYPE_MAXIMUM (wint_t) |
| 5287 | ? 1 : -1; |
| 5288 | |
| 5289 | /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ |
| 5290 | int check_UINT8_C: |
| 5291 | (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; |
| 5292 | int check_UINT16_C: |
| 5293 | (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; |
| 5294 | |
| 5295 | /* Detect bugs in OpenBSD 3.9 stdint.h. */ |
| 5296 | #ifdef UINT8_MAX |
| 5297 | int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; |
| 5298 | #endif |
| 5299 | #ifdef UINT16_MAX |
| 5300 | int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; |
| 5301 | #endif |
| 5302 | #ifdef UINT32_MAX |
| 5303 | int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; |
| 5304 | #endif |
| 5305 | #ifdef UINT64_MAX |
| 5306 | int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; |
| 5307 | #endif |
| 5308 | int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; |
| 5309 | int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; |
| 5310 | int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; |
| 5311 | int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; |
| 5312 | int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; |
| 5313 | int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; |
| 5314 | int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; |
| 5315 | int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; |
| 5316 | int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; |
| 5317 | int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; |
| 5318 | int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; |
| 5319 | }; |
| 5320 | |
| 5321 | int |
| 5322 | main () |
| 5323 | { |
| 5324 | |
| 5325 | ; |
| 5326 | return 0; |
| 5327 | } |
| 5328 | _ACEOF |
| 5329 | rm -f conftest.$ac_objext |
| 5330 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5331 | (eval $ac_compile) 2>conftest.er1 |
| 5332 | ac_status=$? |
| 5333 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5334 | rm -f conftest.er1 |
| 5335 | cat conftest.err >&5 |
| 5336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5337 | (exit $ac_status); } && |
| 5338 | { ac_try='test -z "$ac_c_werror_flag" |
| 5339 | || test ! -s conftest.err' |
| 5340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5341 | (eval $ac_try) 2>&5 |
| 5342 | ac_status=$? |
| 5343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5344 | (exit $ac_status); }; } && |
| 5345 | { ac_try='test -s conftest.$ac_objext' |
| 5346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5347 | (eval $ac_try) 2>&5 |
| 5348 | ac_status=$? |
| 5349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5350 | (exit $ac_status); }; }; then |
| 5351 | gl_cv_header_working_stdint_h=yes |
| 5352 | else |
| 5353 | echo "$as_me: failed program was:" >&5 |
| 5354 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5355 | |
| 5356 | fi |
| 5357 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5358 | fi |
| 5359 | echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5 |
| 5360 | echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6 |
| 5361 | fi |
| 5362 | if test "$gl_cv_header_working_stdint_h" = yes; then |
| 5363 | STDINT_H= |
| 5364 | else |
| 5365 | |
| 5366 | |
| 5367 | for ac_header in sys/inttypes.h sys/bitypes.h |
| 5368 | do |
| 5369 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5370 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5371 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5372 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5373 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5375 | fi |
| 5376 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5377 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5378 | else |
| 5379 | # Is the header compilable? |
| 5380 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5381 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 5382 | cat >conftest.$ac_ext <<_ACEOF |
| 5383 | /* confdefs.h. */ |
| 5384 | _ACEOF |
| 5385 | cat confdefs.h >>conftest.$ac_ext |
| 5386 | cat >>conftest.$ac_ext <<_ACEOF |
| 5387 | /* end confdefs.h. */ |
| 5388 | $ac_includes_default |
| 5389 | #include <$ac_header> |
| 5390 | _ACEOF |
| 5391 | rm -f conftest.$ac_objext |
| 5392 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5393 | (eval $ac_compile) 2>conftest.er1 |
| 5394 | ac_status=$? |
| 5395 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5396 | rm -f conftest.er1 |
| 5397 | cat conftest.err >&5 |
| 5398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5399 | (exit $ac_status); } && |
| 5400 | { ac_try='test -z "$ac_c_werror_flag" |
| 5401 | || test ! -s conftest.err' |
| 5402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5403 | (eval $ac_try) 2>&5 |
| 5404 | ac_status=$? |
| 5405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5406 | (exit $ac_status); }; } && |
| 5407 | { ac_try='test -s conftest.$ac_objext' |
| 5408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5409 | (eval $ac_try) 2>&5 |
| 5410 | ac_status=$? |
| 5411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5412 | (exit $ac_status); }; }; then |
| 5413 | ac_header_compiler=yes |
| 5414 | else |
| 5415 | echo "$as_me: failed program was:" >&5 |
| 5416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5417 | |
| 5418 | ac_header_compiler=no |
| 5419 | fi |
| 5420 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5421 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5422 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5423 | |
| 5424 | # Is the header present? |
| 5425 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5426 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 5427 | cat >conftest.$ac_ext <<_ACEOF |
| 5428 | /* confdefs.h. */ |
| 5429 | _ACEOF |
| 5430 | cat confdefs.h >>conftest.$ac_ext |
| 5431 | cat >>conftest.$ac_ext <<_ACEOF |
| 5432 | /* end confdefs.h. */ |
| 5433 | #include <$ac_header> |
| 5434 | _ACEOF |
| 5435 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5436 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5437 | ac_status=$? |
| 5438 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5439 | rm -f conftest.er1 |
| 5440 | cat conftest.err >&5 |
| 5441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5442 | (exit $ac_status); } >/dev/null; then |
| 5443 | if test -s conftest.err; then |
| 5444 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5445 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5446 | else |
| 5447 | ac_cpp_err= |
| 5448 | fi |
| 5449 | else |
| 5450 | ac_cpp_err=yes |
| 5451 | fi |
| 5452 | if test -z "$ac_cpp_err"; then |
| 5453 | ac_header_preproc=yes |
| 5454 | else |
| 5455 | echo "$as_me: failed program was:" >&5 |
| 5456 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5457 | |
| 5458 | ac_header_preproc=no |
| 5459 | fi |
| 5460 | rm -f conftest.err conftest.$ac_ext |
| 5461 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5462 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5463 | |
| 5464 | # So? What about this header? |
| 5465 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5466 | yes:no: ) |
| 5467 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5468 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5469 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5470 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 5471 | ac_header_preproc=yes |
| 5472 | ;; |
| 5473 | no:yes:* ) |
| 5474 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5475 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5476 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5477 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5478 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5479 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5480 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5481 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5482 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5483 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5484 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5485 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 5486 | ( |
| 5487 | cat <<\_ASBOX |
| 5488 | ## ------------------------------------------ ## |
| 5489 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 5490 | ## ------------------------------------------ ## |
| 5491 | _ASBOX |
| 5492 | ) | |
| 5493 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5494 | ;; |
| 5495 | esac |
| 5496 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5497 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5498 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5500 | else |
| 5501 | eval "$as_ac_Header=\$ac_header_preproc" |
| 5502 | fi |
| 5503 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5504 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5505 | |
| 5506 | fi |
| 5507 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5508 | cat >>confdefs.h <<_ACEOF |
| 5509 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5510 | _ACEOF |
| 5511 | |
| 5512 | fi |
| 5513 | |
| 5514 | done |
| 5515 | |
| 5516 | if test $ac_cv_header_sys_inttypes_h = yes; then |
| 5517 | HAVE_SYS_INTTYPES_H=1 |
| 5518 | else |
| 5519 | HAVE_SYS_INTTYPES_H=0 |
| 5520 | fi |
| 5521 | |
| 5522 | if test $ac_cv_header_sys_bitypes_h = yes; then |
| 5523 | HAVE_SYS_BITYPES_H=1 |
| 5524 | else |
| 5525 | HAVE_SYS_BITYPES_H=0 |
| 5526 | fi |
| 5527 | |
| 5528 | |
| 5529 | |
| 5530 | : |
| 5531 | |
| 5532 | |
| 5533 | |
| 5534 | |
| 5535 | |
| 5536 | |
| 5537 | |
| 5538 | |
| 5539 | |
| 5540 | |
| 5541 | |
| 5542 | |
| 5543 | |
| 5544 | |
| 5545 | for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do |
| 5546 | echo "$as_me:$LINENO: checking for bit size of $gltype" >&5 |
| 5547 | echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6 |
| 5548 | if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then |
| 5549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5550 | else |
| 5551 | if test "$cross_compiling" = yes; then |
| 5552 | # Depending upon the size, compute the lo and hi bounds. |
| 5553 | cat >conftest.$ac_ext <<_ACEOF |
| 5554 | /* confdefs.h. */ |
| 5555 | _ACEOF |
| 5556 | cat confdefs.h >>conftest.$ac_ext |
| 5557 | cat >>conftest.$ac_ext <<_ACEOF |
| 5558 | /* end confdefs.h. */ |
| 5559 | |
| 5560 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 5561 | included before <wchar.h>. */ |
| 5562 | #include <stddef.h> |
| 5563 | #include <signal.h> |
| 5564 | #if HAVE_WCHAR_H |
| 5565 | # include <stdio.h> |
| 5566 | # include <time.h> |
| 5567 | # include <wchar.h> |
| 5568 | #endif |
| 5569 | |
| 5570 | #include <limits.h> |
| 5571 | int |
| 5572 | main () |
| 5573 | { |
| 5574 | static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)]; |
| 5575 | test_array [0] = 0 |
| 5576 | |
| 5577 | ; |
| 5578 | return 0; |
| 5579 | } |
| 5580 | _ACEOF |
| 5581 | rm -f conftest.$ac_objext |
| 5582 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5583 | (eval $ac_compile) 2>conftest.er1 |
| 5584 | ac_status=$? |
| 5585 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5586 | rm -f conftest.er1 |
| 5587 | cat conftest.err >&5 |
| 5588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5589 | (exit $ac_status); } && |
| 5590 | { ac_try='test -z "$ac_c_werror_flag" |
| 5591 | || test ! -s conftest.err' |
| 5592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5593 | (eval $ac_try) 2>&5 |
| 5594 | ac_status=$? |
| 5595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5596 | (exit $ac_status); }; } && |
| 5597 | { ac_try='test -s conftest.$ac_objext' |
| 5598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5599 | (eval $ac_try) 2>&5 |
| 5600 | ac_status=$? |
| 5601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5602 | (exit $ac_status); }; }; then |
| 5603 | ac_lo=0 ac_mid=0 |
| 5604 | while :; do |
| 5605 | cat >conftest.$ac_ext <<_ACEOF |
| 5606 | /* confdefs.h. */ |
| 5607 | _ACEOF |
| 5608 | cat confdefs.h >>conftest.$ac_ext |
| 5609 | cat >>conftest.$ac_ext <<_ACEOF |
| 5610 | /* end confdefs.h. */ |
| 5611 | |
| 5612 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 5613 | included before <wchar.h>. */ |
| 5614 | #include <stddef.h> |
| 5615 | #include <signal.h> |
| 5616 | #if HAVE_WCHAR_H |
| 5617 | # include <stdio.h> |
| 5618 | # include <time.h> |
| 5619 | # include <wchar.h> |
| 5620 | #endif |
| 5621 | |
| 5622 | #include <limits.h> |
| 5623 | int |
| 5624 | main () |
| 5625 | { |
| 5626 | static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)]; |
| 5627 | test_array [0] = 0 |
| 5628 | |
| 5629 | ; |
| 5630 | return 0; |
| 5631 | } |
| 5632 | _ACEOF |
| 5633 | rm -f conftest.$ac_objext |
| 5634 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5635 | (eval $ac_compile) 2>conftest.er1 |
| 5636 | ac_status=$? |
| 5637 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5638 | rm -f conftest.er1 |
| 5639 | cat conftest.err >&5 |
| 5640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5641 | (exit $ac_status); } && |
| 5642 | { ac_try='test -z "$ac_c_werror_flag" |
| 5643 | || test ! -s conftest.err' |
| 5644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5645 | (eval $ac_try) 2>&5 |
| 5646 | ac_status=$? |
| 5647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5648 | (exit $ac_status); }; } && |
| 5649 | { ac_try='test -s conftest.$ac_objext' |
| 5650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5651 | (eval $ac_try) 2>&5 |
| 5652 | ac_status=$? |
| 5653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5654 | (exit $ac_status); }; }; then |
| 5655 | ac_hi=$ac_mid; break |
| 5656 | else |
| 5657 | echo "$as_me: failed program was:" >&5 |
| 5658 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5659 | |
| 5660 | ac_lo=`expr $ac_mid + 1` |
| 5661 | if test $ac_lo -le $ac_mid; then |
| 5662 | ac_lo= ac_hi= |
| 5663 | break |
| 5664 | fi |
| 5665 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5666 | fi |
| 5667 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5668 | done |
| 5669 | else |
| 5670 | echo "$as_me: failed program was:" >&5 |
| 5671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5672 | |
| 5673 | cat >conftest.$ac_ext <<_ACEOF |
| 5674 | /* confdefs.h. */ |
| 5675 | _ACEOF |
| 5676 | cat confdefs.h >>conftest.$ac_ext |
| 5677 | cat >>conftest.$ac_ext <<_ACEOF |
| 5678 | /* end confdefs.h. */ |
| 5679 | |
| 5680 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 5681 | included before <wchar.h>. */ |
| 5682 | #include <stddef.h> |
| 5683 | #include <signal.h> |
| 5684 | #if HAVE_WCHAR_H |
| 5685 | # include <stdio.h> |
| 5686 | # include <time.h> |
| 5687 | # include <wchar.h> |
| 5688 | #endif |
| 5689 | |
| 5690 | #include <limits.h> |
| 5691 | int |
| 5692 | main () |
| 5693 | { |
| 5694 | static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)]; |
| 5695 | test_array [0] = 0 |
| 5696 | |
| 5697 | ; |
| 5698 | return 0; |
| 5699 | } |
| 5700 | _ACEOF |
| 5701 | rm -f conftest.$ac_objext |
| 5702 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5703 | (eval $ac_compile) 2>conftest.er1 |
| 5704 | ac_status=$? |
| 5705 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5706 | rm -f conftest.er1 |
| 5707 | cat conftest.err >&5 |
| 5708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5709 | (exit $ac_status); } && |
| 5710 | { ac_try='test -z "$ac_c_werror_flag" |
| 5711 | || test ! -s conftest.err' |
| 5712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5713 | (eval $ac_try) 2>&5 |
| 5714 | ac_status=$? |
| 5715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5716 | (exit $ac_status); }; } && |
| 5717 | { ac_try='test -s conftest.$ac_objext' |
| 5718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5719 | (eval $ac_try) 2>&5 |
| 5720 | ac_status=$? |
| 5721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5722 | (exit $ac_status); }; }; then |
| 5723 | ac_hi=-1 ac_mid=-1 |
| 5724 | while :; do |
| 5725 | cat >conftest.$ac_ext <<_ACEOF |
| 5726 | /* confdefs.h. */ |
| 5727 | _ACEOF |
| 5728 | cat confdefs.h >>conftest.$ac_ext |
| 5729 | cat >>conftest.$ac_ext <<_ACEOF |
| 5730 | /* end confdefs.h. */ |
| 5731 | |
| 5732 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 5733 | included before <wchar.h>. */ |
| 5734 | #include <stddef.h> |
| 5735 | #include <signal.h> |
| 5736 | #if HAVE_WCHAR_H |
| 5737 | # include <stdio.h> |
| 5738 | # include <time.h> |
| 5739 | # include <wchar.h> |
| 5740 | #endif |
| 5741 | |
| 5742 | #include <limits.h> |
| 5743 | int |
| 5744 | main () |
| 5745 | { |
| 5746 | static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)]; |
| 5747 | test_array [0] = 0 |
| 5748 | |
| 5749 | ; |
| 5750 | return 0; |
| 5751 | } |
| 5752 | _ACEOF |
| 5753 | rm -f conftest.$ac_objext |
| 5754 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5755 | (eval $ac_compile) 2>conftest.er1 |
| 5756 | ac_status=$? |
| 5757 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5758 | rm -f conftest.er1 |
| 5759 | cat conftest.err >&5 |
| 5760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5761 | (exit $ac_status); } && |
| 5762 | { ac_try='test -z "$ac_c_werror_flag" |
| 5763 | || test ! -s conftest.err' |
| 5764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5765 | (eval $ac_try) 2>&5 |
| 5766 | ac_status=$? |
| 5767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5768 | (exit $ac_status); }; } && |
| 5769 | { ac_try='test -s conftest.$ac_objext' |
| 5770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5771 | (eval $ac_try) 2>&5 |
| 5772 | ac_status=$? |
| 5773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5774 | (exit $ac_status); }; }; then |
| 5775 | ac_lo=$ac_mid; break |
| 5776 | else |
| 5777 | echo "$as_me: failed program was:" >&5 |
| 5778 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5779 | |
| 5780 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5781 | if test $ac_mid -le $ac_hi; then |
| 5782 | ac_lo= ac_hi= |
| 5783 | break |
| 5784 | fi |
| 5785 | ac_mid=`expr 2 '*' $ac_mid` |
| 5786 | fi |
| 5787 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5788 | done |
| 5789 | else |
| 5790 | echo "$as_me: failed program was:" >&5 |
| 5791 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5792 | |
| 5793 | ac_lo= ac_hi= |
| 5794 | fi |
| 5795 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5796 | fi |
| 5797 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5798 | # Binary search between lo and hi bounds. |
| 5799 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5800 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5801 | cat >conftest.$ac_ext <<_ACEOF |
| 5802 | /* confdefs.h. */ |
| 5803 | _ACEOF |
| 5804 | cat confdefs.h >>conftest.$ac_ext |
| 5805 | cat >>conftest.$ac_ext <<_ACEOF |
| 5806 | /* end confdefs.h. */ |
| 5807 | |
| 5808 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 5809 | included before <wchar.h>. */ |
| 5810 | #include <stddef.h> |
| 5811 | #include <signal.h> |
| 5812 | #if HAVE_WCHAR_H |
| 5813 | # include <stdio.h> |
| 5814 | # include <time.h> |
| 5815 | # include <wchar.h> |
| 5816 | #endif |
| 5817 | |
| 5818 | #include <limits.h> |
| 5819 | int |
| 5820 | main () |
| 5821 | { |
| 5822 | static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)]; |
| 5823 | test_array [0] = 0 |
| 5824 | |
| 5825 | ; |
| 5826 | return 0; |
| 5827 | } |
| 5828 | _ACEOF |
| 5829 | rm -f conftest.$ac_objext |
| 5830 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5831 | (eval $ac_compile) 2>conftest.er1 |
| 5832 | ac_status=$? |
| 5833 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5834 | rm -f conftest.er1 |
| 5835 | cat conftest.err >&5 |
| 5836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5837 | (exit $ac_status); } && |
| 5838 | { ac_try='test -z "$ac_c_werror_flag" |
| 5839 | || test ! -s conftest.err' |
| 5840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5841 | (eval $ac_try) 2>&5 |
| 5842 | ac_status=$? |
| 5843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5844 | (exit $ac_status); }; } && |
| 5845 | { ac_try='test -s conftest.$ac_objext' |
| 5846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5847 | (eval $ac_try) 2>&5 |
| 5848 | ac_status=$? |
| 5849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5850 | (exit $ac_status); }; }; then |
| 5851 | ac_hi=$ac_mid |
| 5852 | else |
| 5853 | echo "$as_me: failed program was:" >&5 |
| 5854 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5855 | |
| 5856 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5857 | fi |
| 5858 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5859 | done |
| 5860 | case $ac_lo in |
| 5861 | ?*) result=$ac_lo;; |
| 5862 | '') result=unknown ;; |
| 5863 | esac |
| 5864 | else |
| 5865 | if test "$cross_compiling" = yes; then |
| 5866 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 5867 | See \`config.log' for more details." >&5 |
| 5868 | echo "$as_me: error: cannot run test program while cross compiling |
| 5869 | See \`config.log' for more details." >&2;} |
| 5870 | { (exit 1); exit 1; }; } |
| 5871 | else |
| 5872 | cat >conftest.$ac_ext <<_ACEOF |
| 5873 | /* confdefs.h. */ |
| 5874 | _ACEOF |
| 5875 | cat confdefs.h >>conftest.$ac_ext |
| 5876 | cat >>conftest.$ac_ext <<_ACEOF |
| 5877 | /* end confdefs.h. */ |
| 5878 | |
| 5879 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 5880 | included before <wchar.h>. */ |
| 5881 | #include <stddef.h> |
| 5882 | #include <signal.h> |
| 5883 | #if HAVE_WCHAR_H |
| 5884 | # include <stdio.h> |
| 5885 | # include <time.h> |
| 5886 | # include <wchar.h> |
| 5887 | #endif |
| 5888 | |
| 5889 | #include <limits.h> |
| 5890 | long longval () { return sizeof ($gltype) * CHAR_BIT; } |
| 5891 | unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; } |
| 5892 | #include <stdio.h> |
| 5893 | #include <stdlib.h> |
| 5894 | int |
| 5895 | main () |
| 5896 | { |
| 5897 | |
| 5898 | FILE *f = fopen ("conftest.val", "w"); |
| 5899 | if (! f) |
| 5900 | exit (1); |
| 5901 | if ((sizeof ($gltype) * CHAR_BIT) < 0) |
| 5902 | { |
| 5903 | long i = longval (); |
| 5904 | if (i != (sizeof ($gltype) * CHAR_BIT)) |
| 5905 | exit (1); |
| 5906 | fprintf (f, "%ld\n", i); |
| 5907 | } |
| 5908 | else |
| 5909 | { |
| 5910 | unsigned long i = ulongval (); |
| 5911 | if (i != (sizeof ($gltype) * CHAR_BIT)) |
| 5912 | exit (1); |
| 5913 | fprintf (f, "%lu\n", i); |
| 5914 | } |
| 5915 | exit (ferror (f) || fclose (f) != 0); |
| 5916 | |
| 5917 | ; |
| 5918 | return 0; |
| 5919 | } |
| 5920 | _ACEOF |
| 5921 | rm -f conftest$ac_exeext |
| 5922 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5923 | (eval $ac_link) 2>&5 |
| 5924 | ac_status=$? |
| 5925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5926 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5928 | (eval $ac_try) 2>&5 |
| 5929 | ac_status=$? |
| 5930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5931 | (exit $ac_status); }; }; then |
| 5932 | result=`cat conftest.val` |
| 5933 | else |
| 5934 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5935 | echo "$as_me: failed program was:" >&5 |
| 5936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5937 | |
| 5938 | ( exit $ac_status ) |
| 5939 | result=unknown |
| 5940 | fi |
| 5941 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5942 | fi |
| 5943 | fi |
| 5944 | rm -f conftest.val |
| 5945 | eval gl_cv_bitsizeof_${gltype}=\$result |
| 5946 | |
| 5947 | fi |
| 5948 | echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5 |
| 5949 | echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6 |
| 5950 | eval result=\$gl_cv_bitsizeof_${gltype} |
| 5951 | if test $result = unknown; then |
| 5952 | result=0 |
| 5953 | fi |
| 5954 | GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 5955 | cat >>confdefs.h <<_ACEOF |
| 5956 | #define BITSIZEOF_${GLTYPE} $result |
| 5957 | _ACEOF |
| 5958 | |
| 5959 | eval BITSIZEOF_${GLTYPE}=\$result |
| 5960 | done |
| 5961 | |
| 5962 | |
| 5963 | |
| 5964 | |
| 5965 | |
| 5966 | |
| 5967 | |
| 5968 | for gltype in sig_atomic_t wchar_t wint_t ; do |
| 5969 | echo "$as_me:$LINENO: checking whether $gltype is signed" >&5 |
| 5970 | echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6 |
| 5971 | if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then |
| 5972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5973 | else |
| 5974 | cat >conftest.$ac_ext <<_ACEOF |
| 5975 | /* confdefs.h. */ |
| 5976 | _ACEOF |
| 5977 | cat confdefs.h >>conftest.$ac_ext |
| 5978 | cat >>conftest.$ac_ext <<_ACEOF |
| 5979 | /* end confdefs.h. */ |
| 5980 | |
| 5981 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 5982 | included before <wchar.h>. */ |
| 5983 | #include <stddef.h> |
| 5984 | #include <signal.h> |
| 5985 | #if HAVE_WCHAR_H |
| 5986 | # include <stdio.h> |
| 5987 | # include <time.h> |
| 5988 | # include <wchar.h> |
| 5989 | #endif |
| 5990 | |
| 5991 | int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; |
| 5992 | int |
| 5993 | main () |
| 5994 | { |
| 5995 | |
| 5996 | ; |
| 5997 | return 0; |
| 5998 | } |
| 5999 | _ACEOF |
| 6000 | rm -f conftest.$ac_objext |
| 6001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6002 | (eval $ac_compile) 2>conftest.er1 |
| 6003 | ac_status=$? |
| 6004 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6005 | rm -f conftest.er1 |
| 6006 | cat conftest.err >&5 |
| 6007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6008 | (exit $ac_status); } && |
| 6009 | { ac_try='test -z "$ac_c_werror_flag" |
| 6010 | || test ! -s conftest.err' |
| 6011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6012 | (eval $ac_try) 2>&5 |
| 6013 | ac_status=$? |
| 6014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6015 | (exit $ac_status); }; } && |
| 6016 | { ac_try='test -s conftest.$ac_objext' |
| 6017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6018 | (eval $ac_try) 2>&5 |
| 6019 | ac_status=$? |
| 6020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6021 | (exit $ac_status); }; }; then |
| 6022 | result=yes |
| 6023 | else |
| 6024 | echo "$as_me: failed program was:" >&5 |
| 6025 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6026 | |
| 6027 | result=no |
| 6028 | fi |
| 6029 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6030 | eval gl_cv_type_${gltype}_signed=\$result |
| 6031 | |
| 6032 | fi |
| 6033 | echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5 |
| 6034 | echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6 |
| 6035 | eval result=\$gl_cv_type_${gltype}_signed |
| 6036 | GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 6037 | if test "$result" = yes; then |
| 6038 | cat >>confdefs.h <<_ACEOF |
| 6039 | #define HAVE_SIGNED_${GLTYPE} 1 |
| 6040 | _ACEOF |
| 6041 | |
| 6042 | eval HAVE_SIGNED_${GLTYPE}=1 |
| 6043 | else |
| 6044 | eval HAVE_SIGNED_${GLTYPE}=0 |
| 6045 | fi |
| 6046 | done |
| 6047 | |
| 6048 | |
| 6049 | gl_cv_type_ptrdiff_t_signed=yes |
| 6050 | gl_cv_type_size_t_signed=no |
| 6051 | |
| 6052 | |
| 6053 | |
| 6054 | |
| 6055 | |
| 6056 | |
| 6057 | |
| 6058 | for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do |
| 6059 | echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5 |
| 6060 | echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6 |
| 6061 | if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then |
| 6062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6063 | else |
| 6064 | eval gl_cv_type_${gltype}_suffix=no |
| 6065 | eval result=\$gl_cv_type_${gltype}_signed |
| 6066 | if test "$result" = yes; then |
| 6067 | glsufu= |
| 6068 | else |
| 6069 | glsufu=u |
| 6070 | fi |
| 6071 | for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do |
| 6072 | case $glsuf in |
| 6073 | '') gltype1='int';; |
| 6074 | l) gltype1='long int';; |
| 6075 | ll) gltype1='long long int';; |
| 6076 | i64) gltype1='__int64';; |
| 6077 | u) gltype1='unsigned int';; |
| 6078 | ul) gltype1='unsigned long int';; |
| 6079 | ull) gltype1='unsigned long long int';; |
| 6080 | ui64)gltype1='unsigned __int64';; |
| 6081 | esac |
| 6082 | cat >conftest.$ac_ext <<_ACEOF |
| 6083 | /* confdefs.h. */ |
| 6084 | _ACEOF |
| 6085 | cat confdefs.h >>conftest.$ac_ext |
| 6086 | cat >>conftest.$ac_ext <<_ACEOF |
| 6087 | /* end confdefs.h. */ |
| 6088 | |
| 6089 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 6090 | included before <wchar.h>. */ |
| 6091 | #include <stddef.h> |
| 6092 | #include <signal.h> |
| 6093 | #if HAVE_WCHAR_H |
| 6094 | # include <stdio.h> |
| 6095 | # include <time.h> |
| 6096 | # include <wchar.h> |
| 6097 | #endif |
| 6098 | |
| 6099 | extern $gltype foo; |
| 6100 | extern $gltype1 foo; |
| 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 | eval gl_cv_type_${gltype}_suffix=\$glsuf |
| 6132 | else |
| 6133 | echo "$as_me: failed program was:" >&5 |
| 6134 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6135 | |
| 6136 | fi |
| 6137 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6138 | eval result=\$gl_cv_type_${gltype}_suffix |
| 6139 | test "$result" != no && break |
| 6140 | done |
| 6141 | fi |
| 6142 | echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5 |
| 6143 | echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6 |
| 6144 | GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 6145 | eval result=\$gl_cv_type_${gltype}_suffix |
| 6146 | test "$result" = no && result= |
| 6147 | eval ${GLTYPE}_SUFFIX=\$result |
| 6148 | cat >>confdefs.h <<_ACEOF |
| 6149 | #define ${GLTYPE}_SUFFIX $result |
| 6150 | _ACEOF |
| 6151 | |
| 6152 | done |
| 6153 | |
| 6154 | |
| 6155 | |
| 6156 | STDINT_H=stdint.h |
| 6157 | fi |
| 6158 | |
| 6159 | |
| 6160 | |
| 6161 | |
| 6162 | |
| 6163 | |
| 6164 | |
| 6165 | echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5 |
| 6166 | echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6 |
| 6167 | if test "${gl_cv_header_wchar_h_standalone+set}" = set; then |
| 6168 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6169 | else |
| 6170 | cat >conftest.$ac_ext <<_ACEOF |
| 6171 | #include <wchar.h> |
| 6172 | wchar_t w; |
| 6173 | _ACEOF |
| 6174 | rm -f conftest.$ac_objext |
| 6175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6176 | (eval $ac_compile) 2>conftest.er1 |
| 6177 | ac_status=$? |
| 6178 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6179 | rm -f conftest.er1 |
| 6180 | cat conftest.err >&5 |
| 6181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6182 | (exit $ac_status); } && |
| 6183 | { ac_try='test -z "$ac_c_werror_flag" |
| 6184 | || test ! -s conftest.err' |
| 6185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6186 | (eval $ac_try) 2>&5 |
| 6187 | ac_status=$? |
| 6188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6189 | (exit $ac_status); }; } && |
| 6190 | { ac_try='test -s conftest.$ac_objext' |
| 6191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6192 | (eval $ac_try) 2>&5 |
| 6193 | ac_status=$? |
| 6194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6195 | (exit $ac_status); }; }; then |
| 6196 | gl_cv_header_wchar_h_standalone=yes |
| 6197 | else |
| 6198 | echo "$as_me: failed program was:" >&5 |
| 6199 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6200 | |
| 6201 | gl_cv_header_wchar_h_standalone=no |
| 6202 | fi |
| 6203 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6204 | fi |
| 6205 | echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5 |
| 6206 | echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6 |
| 6207 | if test $gl_cv_header_wchar_h_standalone != yes; then |
| 6208 | WCHAR_H=wchar.h |
| 6209 | fi |
| 6210 | |
| 6211 | |
| 6212 | : |
| 6213 | |
| 6214 | |
| 6215 | |
| 6216 | |
| 6217 | |
| 6218 | if test $ac_cv_header_wchar_h = yes; then |
| 6219 | HAVE_WCHAR_H=1 |
| 6220 | else |
| 6221 | HAVE_WCHAR_H=0 |
| 6222 | fi |
| 6223 | |
| 6224 | |
| 6225 | |
| 6226 | |
| 6227 | : |
| 6228 | |
| 6229 | |
| 6230 | |
| 6231 | |
| 6232 | |
| 6233 | |
| 6234 | |
| 6235 | if test $gl_cv_have_include_next = yes; then |
| 6236 | gl_cv_next_wchar_h='<'wchar.h'>' |
| 6237 | else |
| 6238 | echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5 |
| 6239 | echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6 |
| 6240 | if test "${gl_cv_next_wchar_h+set}" = set; then |
| 6241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6242 | else |
| 6243 | |
| 6244 | if test $ac_cv_header_wchar_h = yes; then |
| 6245 | cat >conftest.$ac_ext <<_ACEOF |
| 6246 | /* confdefs.h. */ |
| 6247 | _ACEOF |
| 6248 | cat confdefs.h >>conftest.$ac_ext |
| 6249 | cat >>conftest.$ac_ext <<_ACEOF |
| 6250 | /* end confdefs.h. */ |
| 6251 | #include <wchar.h> |
| 6252 | |
| 6253 | _ACEOF |
| 6254 | gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6255 | sed -n '\#/wchar.h#{ |
| 6256 | s#.*"\(.*/wchar.h\)".*#\1# |
| 6257 | s#^/[^/]#//&# |
| 6258 | p |
| 6259 | q |
| 6260 | }'`'"' |
| 6261 | else |
| 6262 | gl_cv_next_wchar_h='<'wchar.h'>' |
| 6263 | fi |
| 6264 | |
| 6265 | fi |
| 6266 | echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5 |
| 6267 | echo "${ECHO_T}$gl_cv_next_wchar_h" >&6 |
| 6268 | fi |
| 6269 | NEXT_WCHAR_H=$gl_cv_next_wchar_h |
| 6270 | |
| 6271 | |
| 6272 | |
| 6273 | |
| 6274 | |
| 6275 | |
| 6276 | |
| 6277 | |
| 6278 | gltests_libdeps= |
| 6279 | gltests_ltlibdeps= |
| 6280 | |
| 6281 | |
| 6282 | |
| 6283 | gl_source_base='tests' |
| 6284 | |
| 6285 | |
| 6286 | |
| 6287 | |
| 6288 | LIBGNU_LIBDEPS="$gl_libdeps" |
| 6289 | |
| 6290 | LIBGNU_LTLIBDEPS="$gl_ltlibdeps" |
| 6291 | |
| 6292 | |
| 6293 | |
| 6294 | PACKAGE=gdb |
| 6295 | |
| 6296 | cat >>confdefs.h <<_ACEOF |
| 6297 | #define PACKAGE "$PACKAGE" |
| 6298 | _ACEOF |
| 6299 | |
| 6300 | |
| 6301 | |
| 6302 | # GDB does not use automake, but gnulib does. This line lets us |
| 6303 | # generate its Makefile.in. |
| 6304 | am__api_version="1.9" |
| 6305 | # Find a good install program. We prefer a C program (faster), |
| 6306 | # so one script is as good as another. But avoid the broken or |
| 6307 | # incompatible versions: |
| 6308 | # SysV /etc/install, /usr/sbin/install |
| 6309 | # SunOS /usr/etc/install |
| 6310 | # IRIX /sbin/install |
| 6311 | # AIX /bin/install |
| 6312 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 6313 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 6314 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 6315 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 6316 | # OS/2's system install, which has a completely different semantic |
| 6317 | # ./install, which can be erroneously created by make from ./install.sh. |
| 6318 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 6319 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 6320 | if test -z "$INSTALL"; then |
| 6321 | if test "${ac_cv_path_install+set}" = set; then |
| 6322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6323 | else |
| 6324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6325 | for as_dir in $PATH |
| 6326 | do |
| 6327 | IFS=$as_save_IFS |
| 6328 | test -z "$as_dir" && as_dir=. |
| 6329 | # Account for people who put trailing slashes in PATH elements. |
| 6330 | case $as_dir/ in |
| 6331 | ./ | .// | /cC/* | \ |
| 6332 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 6333 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 6334 | /usr/ucb/* ) ;; |
| 6335 | *) |
| 6336 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 6337 | # Don't use installbsd from OSF since it installs stuff as root |
| 6338 | # by default. |
| 6339 | for ac_prog in ginstall scoinst install; do |
| 6340 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6341 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 6342 | if test $ac_prog = install && |
| 6343 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 6344 | # AIX install. It has an incompatible calling convention. |
| 6345 | : |
| 6346 | elif test $ac_prog = install && |
| 6347 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 6348 | # program-specific install script used by HP pwplus--don't use. |
| 6349 | : |
| 6350 | else |
| 6351 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 6352 | break 3 |
| 6353 | fi |
| 6354 | fi |
| 6355 | done |
| 6356 | done |
| 6357 | ;; |
| 6358 | esac |
| 6359 | done |
| 6360 | |
| 6361 | |
| 6362 | fi |
| 6363 | if test "${ac_cv_path_install+set}" = set; then |
| 6364 | INSTALL=$ac_cv_path_install |
| 6365 | else |
| 6366 | # As a last resort, use the slow shell script. We don't cache a |
| 6367 | # path for INSTALL within a source directory, because that will |
| 6368 | # break other packages using the cache if that directory is |
| 6369 | # removed, or if the path is relative. |
| 6370 | INSTALL=$ac_install_sh |
| 6371 | fi |
| 6372 | fi |
| 6373 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 6374 | echo "${ECHO_T}$INSTALL" >&6 |
| 6375 | |
| 6376 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 6377 | # It thinks the first close brace ends the variable substitution. |
| 6378 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 6379 | |
| 6380 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 6381 | |
| 6382 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 6383 | |
| 6384 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
| 6385 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
| 6386 | # Just in case |
| 6387 | sleep 1 |
| 6388 | echo timestamp > conftest.file |
| 6389 | # Do `set' in a subshell so we don't clobber the current shell's |
| 6390 | # arguments. Must try -L first in case configure is actually a |
| 6391 | # symlink; some systems play weird games with the mod time of symlinks |
| 6392 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 6393 | # directory). |
| 6394 | if ( |
| 6395 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
| 6396 | if test "$*" = "X"; then |
| 6397 | # -L didn't work. |
| 6398 | set X `ls -t $srcdir/configure conftest.file` |
| 6399 | fi |
| 6400 | rm -f conftest.file |
| 6401 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 6402 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 6403 | |
| 6404 | # If neither matched, then we have a broken ls. This can happen |
| 6405 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 6406 | # broken ls alias from the environment. This has actually |
| 6407 | # happened. Such a system could not be considered "sane". |
| 6408 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
| 6409 | alias in your environment" >&5 |
| 6410 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 6411 | alias in your environment" >&2;} |
| 6412 | { (exit 1); exit 1; }; } |
| 6413 | fi |
| 6414 | |
| 6415 | test "$2" = conftest.file |
| 6416 | ) |
| 6417 | then |
| 6418 | # Ok. |
| 6419 | : |
| 6420 | else |
| 6421 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
| 6422 | Check your system clock" >&5 |
| 6423 | echo "$as_me: error: newly created file is older than distributed files! |
| 6424 | Check your system clock" >&2;} |
| 6425 | { (exit 1); exit 1; }; } |
| 6426 | fi |
| 6427 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6428 | echo "${ECHO_T}yes" >&6 |
| 6429 | test "$program_prefix" != NONE && |
| 6430 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
| 6431 | # Use a double $ so make ignores it. |
| 6432 | test "$program_suffix" != NONE && |
| 6433 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
| 6434 | # Double any \ or $. echo might interpret backslashes. |
| 6435 | # By default was `s,x,x', remove it if useless. |
| 6436 | cat <<\_ACEOF >conftest.sed |
| 6437 | s/[\\$]/&&/g;s/;s,x,x,$// |
| 6438 | _ACEOF |
| 6439 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
| 6440 | rm conftest.sed |
| 6441 | |
| 6442 | # expand $ac_aux_dir to an absolute path |
| 6443 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 6444 | |
| 6445 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 6446 | # Use eval to expand $SHELL |
| 6447 | if eval "$MISSING --run true"; then |
| 6448 | am_missing_run="$MISSING --run " |
| 6449 | else |
| 6450 | am_missing_run= |
| 6451 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
| 6452 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 6453 | fi |
| 6454 | |
| 6455 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
| 6456 | # We used to keeping the `.' as first argument, in order to |
| 6457 | # allow $(mkdir_p) to be used without argument. As in |
| 6458 | # $(mkdir_p) $(somedir) |
| 6459 | # where $(somedir) is conditionally defined. However this is wrong |
| 6460 | # for two reasons: |
| 6461 | # 1. if the package is installed by a user who cannot write `.' |
| 6462 | # make install will fail, |
| 6463 | # 2. the above comment should most certainly read |
| 6464 | # $(mkdir_p) $(DESTDIR)$(somedir) |
| 6465 | # so it does not work when $(somedir) is undefined and |
| 6466 | # $(DESTDIR) is not. |
| 6467 | # To support the latter case, we have to write |
| 6468 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
| 6469 | # so the `.' trick is pointless. |
| 6470 | mkdir_p='mkdir -p --' |
| 6471 | else |
| 6472 | # On NextStep and OpenStep, the `mkdir' command does not |
| 6473 | # recognize any option. It will interpret all options as |
| 6474 | # directories to create, and then abort because `.' already |
| 6475 | # exists. |
| 6476 | for d in ./-p ./--version; |
| 6477 | do |
| 6478 | test -d $d && rmdir $d |
| 6479 | done |
| 6480 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
| 6481 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
| 6482 | mkdir_p='$(mkinstalldirs)' |
| 6483 | else |
| 6484 | mkdir_p='$(install_sh) -d' |
| 6485 | fi |
| 6486 | fi |
| 6487 | |
| 6488 | for ac_prog in gawk mawk nawk awk |
| 6489 | do |
| 6490 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6491 | set dummy $ac_prog; ac_word=$2 |
| 6492 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6493 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 6494 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 6495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6496 | else |
| 6497 | if test -n "$AWK"; then |
| 6498 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 6499 | else |
| 6500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6501 | for as_dir in $PATH |
| 6502 | do |
| 6503 | IFS=$as_save_IFS |
| 6504 | test -z "$as_dir" && as_dir=. |
| 6505 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6506 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6507 | ac_cv_prog_AWK="$ac_prog" |
| 6508 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6509 | break 2 |
| 6510 | fi |
| 6511 | done |
| 6512 | done |
| 6513 | |
| 6514 | fi |
| 6515 | fi |
| 6516 | AWK=$ac_cv_prog_AWK |
| 6517 | if test -n "$AWK"; then |
| 6518 | echo "$as_me:$LINENO: result: $AWK" >&5 |
| 6519 | echo "${ECHO_T}$AWK" >&6 |
| 6520 | else |
| 6521 | echo "$as_me:$LINENO: result: no" >&5 |
| 6522 | echo "${ECHO_T}no" >&6 |
| 6523 | fi |
| 6524 | |
| 6525 | test -n "$AWK" && break |
| 6526 | done |
| 6527 | |
| 6528 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 6529 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
| 6530 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
| 6531 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 6532 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6533 | else |
| 6534 | cat >conftest.make <<\_ACEOF |
| 6535 | all: |
| 6536 | @echo 'ac_maketemp="$(MAKE)"' |
| 6537 | _ACEOF |
| 6538 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 6539 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 6540 | if test -n "$ac_maketemp"; then |
| 6541 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 6542 | else |
| 6543 | eval ac_cv_prog_make_${ac_make}_set=no |
| 6544 | fi |
| 6545 | rm -f conftest.make |
| 6546 | fi |
| 6547 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 6548 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6549 | echo "${ECHO_T}yes" >&6 |
| 6550 | SET_MAKE= |
| 6551 | else |
| 6552 | echo "$as_me:$LINENO: result: no" >&5 |
| 6553 | echo "${ECHO_T}no" >&6 |
| 6554 | SET_MAKE="MAKE=${MAKE-make}" |
| 6555 | fi |
| 6556 | |
| 6557 | rm -rf .tst 2>/dev/null |
| 6558 | mkdir .tst 2>/dev/null |
| 6559 | if test -d .tst; then |
| 6560 | am__leading_dot=. |
| 6561 | else |
| 6562 | am__leading_dot=_ |
| 6563 | fi |
| 6564 | rmdir .tst 2>/dev/null |
| 6565 | |
| 6566 | DEPDIR="${am__leading_dot}deps" |
| 6567 | |
| 6568 | ac_config_commands="$ac_config_commands depfiles" |
| 6569 | |
| 6570 | |
| 6571 | am_make=${MAKE-make} |
| 6572 | cat > confinc << 'END' |
| 6573 | am__doit: |
| 6574 | @echo done |
| 6575 | .PHONY: am__doit |
| 6576 | END |
| 6577 | # If we don't find an include directive, just comment out the code. |
| 6578 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
| 6579 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
| 6580 | am__include="#" |
| 6581 | am__quote= |
| 6582 | _am_result=none |
| 6583 | # First try GNU make style include. |
| 6584 | echo "include confinc" > confmf |
| 6585 | # We grep out `Entering directory' and `Leaving directory' |
| 6586 | # messages which can occur if `w' ends up in MAKEFLAGS. |
| 6587 | # In particular we don't look at `^make:' because GNU make might |
| 6588 | # be invoked under some other name (usually "gmake"), in which |
| 6589 | # case it prints its new name instead of `make'. |
| 6590 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
| 6591 | am__include=include |
| 6592 | am__quote= |
| 6593 | _am_result=GNU |
| 6594 | fi |
| 6595 | # Now try BSD make style include. |
| 6596 | if test "$am__include" = "#"; then |
| 6597 | echo '.include "confinc"' > confmf |
| 6598 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 6599 | am__include=.include |
| 6600 | am__quote="\"" |
| 6601 | _am_result=BSD |
| 6602 | fi |
| 6603 | fi |
| 6604 | |
| 6605 | |
| 6606 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
| 6607 | echo "${ECHO_T}$_am_result" >&6 |
| 6608 | rm -f confinc confmf |
| 6609 | |
| 6610 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
| 6611 | if test "${enable_dependency_tracking+set}" = set; then |
| 6612 | enableval="$enable_dependency_tracking" |
| 6613 | |
| 6614 | fi; |
| 6615 | if test "x$enable_dependency_tracking" != xno; then |
| 6616 | am_depcomp="$ac_aux_dir/depcomp" |
| 6617 | AMDEPBACKSLASH='\' |
| 6618 | fi |
| 6619 | |
| 6620 | |
| 6621 | if test "x$enable_dependency_tracking" != xno; then |
| 6622 | AMDEP_TRUE= |
| 6623 | AMDEP_FALSE='#' |
| 6624 | else |
| 6625 | AMDEP_TRUE='#' |
| 6626 | AMDEP_FALSE= |
| 6627 | fi |
| 6628 | |
| 6629 | |
| 6630 | |
| 6631 | # test to see if srcdir already configured |
| 6632 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
| 6633 | test -f $srcdir/config.status; then |
| 6634 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 6635 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 6636 | { (exit 1); exit 1; }; } |
| 6637 | fi |
| 6638 | |
| 6639 | # test whether we have cygpath |
| 6640 | if test -z "$CYGPATH_W"; then |
| 6641 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 6642 | CYGPATH_W='cygpath -w' |
| 6643 | else |
| 6644 | CYGPATH_W=echo |
| 6645 | fi |
| 6646 | fi |
| 6647 | |
| 6648 | |
| 6649 | # Define the identity of the package. |
| 6650 | PACKAGE=gdb |
| 6651 | VERSION=UNUSED-VERSION |
| 6652 | |
| 6653 | |
| 6654 | # Some tools Automake needs. |
| 6655 | |
| 6656 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 6657 | |
| 6658 | |
| 6659 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 6660 | |
| 6661 | |
| 6662 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 6663 | |
| 6664 | |
| 6665 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 6666 | |
| 6667 | |
| 6668 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 6669 | |
| 6670 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
| 6671 | |
| 6672 | # Installed binaries are usually stripped using `strip' when the user |
| 6673 | # run `make install-strip'. However `strip' might not be the right |
| 6674 | # tool to use in cross-compilation environments, therefore Automake |
| 6675 | # will honor the `STRIP' environment variable to overrule this program. |
| 6676 | if test "$cross_compiling" != no; then |
| 6677 | if test -n "$ac_tool_prefix"; then |
| 6678 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 6679 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 6680 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6681 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 6682 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 6683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6684 | else |
| 6685 | if test -n "$STRIP"; then |
| 6686 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 6687 | else |
| 6688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6689 | for as_dir in $PATH |
| 6690 | do |
| 6691 | IFS=$as_save_IFS |
| 6692 | test -z "$as_dir" && as_dir=. |
| 6693 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6694 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6695 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 6696 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6697 | break 2 |
| 6698 | fi |
| 6699 | done |
| 6700 | done |
| 6701 | |
| 6702 | fi |
| 6703 | fi |
| 6704 | STRIP=$ac_cv_prog_STRIP |
| 6705 | if test -n "$STRIP"; then |
| 6706 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 6707 | echo "${ECHO_T}$STRIP" >&6 |
| 6708 | else |
| 6709 | echo "$as_me:$LINENO: result: no" >&5 |
| 6710 | echo "${ECHO_T}no" >&6 |
| 6711 | fi |
| 6712 | |
| 6713 | fi |
| 6714 | if test -z "$ac_cv_prog_STRIP"; then |
| 6715 | ac_ct_STRIP=$STRIP |
| 6716 | # Extract the first word of "strip", so it can be a program name with args. |
| 6717 | set dummy strip; ac_word=$2 |
| 6718 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6719 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 6720 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 6721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6722 | else |
| 6723 | if test -n "$ac_ct_STRIP"; then |
| 6724 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 6725 | else |
| 6726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6727 | for as_dir in $PATH |
| 6728 | do |
| 6729 | IFS=$as_save_IFS |
| 6730 | test -z "$as_dir" && as_dir=. |
| 6731 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6732 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6733 | ac_cv_prog_ac_ct_STRIP="strip" |
| 6734 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6735 | break 2 |
| 6736 | fi |
| 6737 | done |
| 6738 | done |
| 6739 | |
| 6740 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 6741 | fi |
| 6742 | fi |
| 6743 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 6744 | if test -n "$ac_ct_STRIP"; then |
| 6745 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 6746 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 6747 | else |
| 6748 | echo "$as_me:$LINENO: result: no" >&5 |
| 6749 | echo "${ECHO_T}no" >&6 |
| 6750 | fi |
| 6751 | |
| 6752 | STRIP=$ac_ct_STRIP |
| 6753 | else |
| 6754 | STRIP="$ac_cv_prog_STRIP" |
| 6755 | fi |
| 6756 | |
| 6757 | fi |
| 6758 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
| 6759 | |
| 6760 | # We need awk for the "check" target. The system "awk" is bad on |
| 6761 | # some platforms. |
| 6762 | # Always define AMTAR for backward compatibility. |
| 6763 | |
| 6764 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 6765 | |
| 6766 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
| 6767 | |
| 6768 | |
| 6769 | |
| 6770 | |
| 6771 | depcc="$CC" am_compiler_list= |
| 6772 | |
| 6773 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 6774 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 6775 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 6776 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6777 | else |
| 6778 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 6779 | # We make a subdir and do the tests there. Otherwise we can end up |
| 6780 | # making bogus files that we don't know about and never remove. For |
| 6781 | # instance it was reported that on HP-UX the gcc test will end up |
| 6782 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 6783 | # in D'. |
| 6784 | mkdir conftest.dir |
| 6785 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 6786 | # using a relative directory. |
| 6787 | cp "$am_depcomp" conftest.dir |
| 6788 | cd conftest.dir |
| 6789 | # We will build objects and dependencies in a subdirectory because |
| 6790 | # it helps to detect inapplicable dependency modes. For instance |
| 6791 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 6792 | # side effect of compilation, but ICC will put the dependencies in |
| 6793 | # the current directory while Tru64 will put them in the object |
| 6794 | # directory. |
| 6795 | mkdir sub |
| 6796 | |
| 6797 | am_cv_CC_dependencies_compiler_type=none |
| 6798 | if test "$am_compiler_list" = ""; then |
| 6799 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 6800 | fi |
| 6801 | for depmode in $am_compiler_list; do |
| 6802 | # Setup a source with many dependencies, because some compilers |
| 6803 | # like to wrap large dependency lists on column 80 (with \), and |
| 6804 | # we should not choose a depcomp mode which is confused by this. |
| 6805 | # |
| 6806 | # We need to recreate these files for each test, as the compiler may |
| 6807 | # overwrite some of them when testing with obscure command lines. |
| 6808 | # This happens at least with the AIX C compiler. |
| 6809 | : > sub/conftest.c |
| 6810 | for i in 1 2 3 4 5 6; do |
| 6811 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 6812 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 6813 | # Solaris 8's {/usr,}/bin/sh. |
| 6814 | touch sub/conftst$i.h |
| 6815 | done |
| 6816 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 6817 | |
| 6818 | case $depmode in |
| 6819 | nosideeffect) |
| 6820 | # after this tag, mechanisms are not by side-effect, so they'll |
| 6821 | # only be used when explicitly requested |
| 6822 | if test "x$enable_dependency_tracking" = xyes; then |
| 6823 | continue |
| 6824 | else |
| 6825 | break |
| 6826 | fi |
| 6827 | ;; |
| 6828 | none) break ;; |
| 6829 | esac |
| 6830 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 6831 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 6832 | # handle `-M -o', and we need to detect this. |
| 6833 | if depmode=$depmode \ |
| 6834 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 6835 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 6836 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 6837 | >/dev/null 2>conftest.err && |
| 6838 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 6839 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 6840 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 6841 | # icc doesn't choke on unknown options, it will just issue warnings |
| 6842 | # or remarks (even with -Werror). So we grep stderr for any message |
| 6843 | # that says an option was ignored or not supported. |
| 6844 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 6845 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 6846 | # The diagnosis changed in icc 8.0: |
| 6847 | # icc: Command line remark: option '-MP' not supported |
| 6848 | if (grep 'ignoring option' conftest.err || |
| 6849 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 6850 | am_cv_CC_dependencies_compiler_type=$depmode |
| 6851 | break |
| 6852 | fi |
| 6853 | fi |
| 6854 | done |
| 6855 | |
| 6856 | cd .. |
| 6857 | rm -rf conftest.dir |
| 6858 | else |
| 6859 | am_cv_CC_dependencies_compiler_type=none |
| 6860 | fi |
| 6861 | |
| 6862 | fi |
| 6863 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 6864 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
| 6865 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 6866 | |
| 6867 | |
| 6868 | |
| 6869 | if |
| 6870 | test "x$enable_dependency_tracking" != xno \ |
| 6871 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 6872 | am__fastdepCC_TRUE= |
| 6873 | am__fastdepCC_FALSE='#' |
| 6874 | else |
| 6875 | am__fastdepCC_TRUE='#' |
| 6876 | am__fastdepCC_FALSE= |
| 6877 | fi |
| 6878 | |
| 6879 | |
| 6880 | |
| 6881 | |
| 6882 | debugdir=${libdir}/debug |
| 6883 | |
| 6884 | |
| 6885 | # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given. |
| 6886 | if test "${with_separate_debug_dir+set}" = set; then |
| 6887 | withval="$with_separate_debug_dir" |
| 6888 | debugdir="${withval}" |
| 6889 | fi; |
| 6890 | |
| 6891 | |
| 6892 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" |
| 6893 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 6894 | ac_define_dir=`eval echo $debugdir` |
| 6895 | ac_define_dir=`eval echo $ac_define_dir` |
| 6896 | |
| 6897 | cat >>confdefs.h <<_ACEOF |
| 6898 | #define DEBUGDIR "$ac_define_dir" |
| 6899 | _ACEOF |
| 6900 | |
| 6901 | |
| 6902 | #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"), |
| 6903 | |
| 6904 | if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then |
| 6905 | if test "x$prefix" = xNONE; then |
| 6906 | test_prefix=/usr/local |
| 6907 | else |
| 6908 | test_prefix=$prefix |
| 6909 | fi |
| 6910 | else |
| 6911 | test_prefix=$exec_prefix |
| 6912 | fi |
| 6913 | case ${debugdir} in |
| 6914 | "${test_prefix}"|"${test_prefix}/"*|\ |
| 6915 | '${exec_prefix}'|'${exec_prefix}/'*) |
| 6916 | |
| 6917 | cat >>confdefs.h <<\_ACEOF |
| 6918 | #define DEBUGDIR_RELOCATABLE 1 |
| 6919 | _ACEOF |
| 6920 | |
| 6921 | ;; |
| 6922 | esac |
| 6923 | |
| 6924 | |
| 6925 | |
| 6926 | subdirs="$subdirs doc testsuite" |
| 6927 | |
| 6928 | |
| 6929 | # Check whether to support alternative target configurations |
| 6930 | # Check whether --enable-targets or --disable-targets was given. |
| 6931 | if test "${enable_targets+set}" = set; then |
| 6932 | enableval="$enable_targets" |
| 6933 | case "${enableval}" in |
| 6934 | yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5 |
| 6935 | echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;} |
| 6936 | { (exit 1); exit 1; }; } |
| 6937 | ;; |
| 6938 | no) enable_targets= ;; |
| 6939 | *) enable_targets=$enableval ;; |
| 6940 | esac |
| 6941 | fi; |
| 6942 | |
| 6943 | # Check whether to enable 64-bit support on 32-bit hosts |
| 6944 | # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given. |
| 6945 | if test "${enable_64_bit_bfd+set}" = set; then |
| 6946 | enableval="$enable_64_bit_bfd" |
| 6947 | case "${enableval}" in |
| 6948 | yes) want64=true ;; |
| 6949 | no) want64=false ;; |
| 6950 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5 |
| 6951 | echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;} |
| 6952 | { (exit 1); exit 1; }; } ;; |
| 6953 | esac |
| 6954 | else |
| 6955 | want64=false |
| 6956 | fi; |
| 6957 | # Provide defaults for some variables set by the per-host and per-target |
| 6958 | # configuration. |
| 6959 | gdb_host_obs=posix-hdep.o |
| 6960 | |
| 6961 | if test "${target}" = "${host}"; then |
| 6962 | gdb_native=yes |
| 6963 | else |
| 6964 | gdb_native=no |
| 6965 | fi |
| 6966 | |
| 6967 | . $srcdir/configure.host |
| 6968 | |
| 6969 | # Accumulate some settings from configure.tgt over all enabled targets |
| 6970 | |
| 6971 | TARGET_OBS= |
| 6972 | all_targets= |
| 6973 | |
| 6974 | for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'` |
| 6975 | do |
| 6976 | if test "$targ_alias" = "all"; then |
| 6977 | all_targets=true |
| 6978 | else |
| 6979 | # Canonicalize the secondary target names. |
| 6980 | result=`$ac_config_sub $targ_alias 2>/dev/null` |
| 6981 | if test -n "$result"; then |
| 6982 | targ=$result |
| 6983 | else |
| 6984 | targ=$targ_alias |
| 6985 | fi |
| 6986 | |
| 6987 | . ${srcdir}/configure.tgt |
| 6988 | |
| 6989 | # Target-specific object files |
| 6990 | for i in ${gdb_target_obs}; do |
| 6991 | case " $TARGET_OBS " in |
| 6992 | *" ${i} "*) ;; |
| 6993 | *) |
| 6994 | TARGET_OBS="$TARGET_OBS ${i}" |
| 6995 | ;; |
| 6996 | esac |
| 6997 | done |
| 6998 | |
| 6999 | # Check whether this target needs 64-bit CORE_ADDR |
| 7000 | if test x${want64} = xfalse; then |
| 7001 | . ${srcdir}/../bfd/config.bfd |
| 7002 | fi |
| 7003 | fi |
| 7004 | done |
| 7005 | |
| 7006 | if test x${all_targets} = xtrue; then |
| 7007 | |
| 7008 | # We want all 64-bit targets if we either: |
| 7009 | # - run on a 64-bit host or |
| 7010 | # - already require 64-bit support for some other target or |
| 7011 | # - the --enable-64-bit-bfd option was supplied |
| 7012 | # Otherwise we only support all 32-bit targets. |
| 7013 | # |
| 7014 | # NOTE: This test must be in sync with the corresponding |
| 7015 | # tests in BFD! |
| 7016 | |
| 7017 | if test x${want64} = xfalse; then |
| 7018 | echo "$as_me:$LINENO: checking for long" >&5 |
| 7019 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 7020 | if test "${ac_cv_type_long+set}" = set; then |
| 7021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7022 | else |
| 7023 | cat >conftest.$ac_ext <<_ACEOF |
| 7024 | /* confdefs.h. */ |
| 7025 | _ACEOF |
| 7026 | cat confdefs.h >>conftest.$ac_ext |
| 7027 | cat >>conftest.$ac_ext <<_ACEOF |
| 7028 | /* end confdefs.h. */ |
| 7029 | $ac_includes_default |
| 7030 | int |
| 7031 | main () |
| 7032 | { |
| 7033 | if ((long *) 0) |
| 7034 | return 0; |
| 7035 | if (sizeof (long)) |
| 7036 | return 0; |
| 7037 | ; |
| 7038 | return 0; |
| 7039 | } |
| 7040 | _ACEOF |
| 7041 | rm -f conftest.$ac_objext |
| 7042 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7043 | (eval $ac_compile) 2>conftest.er1 |
| 7044 | ac_status=$? |
| 7045 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7046 | rm -f conftest.er1 |
| 7047 | cat conftest.err >&5 |
| 7048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7049 | (exit $ac_status); } && |
| 7050 | { ac_try='test -z "$ac_c_werror_flag" |
| 7051 | || test ! -s conftest.err' |
| 7052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7053 | (eval $ac_try) 2>&5 |
| 7054 | ac_status=$? |
| 7055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7056 | (exit $ac_status); }; } && |
| 7057 | { ac_try='test -s conftest.$ac_objext' |
| 7058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7059 | (eval $ac_try) 2>&5 |
| 7060 | ac_status=$? |
| 7061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7062 | (exit $ac_status); }; }; then |
| 7063 | ac_cv_type_long=yes |
| 7064 | else |
| 7065 | echo "$as_me: failed program was:" >&5 |
| 7066 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7067 | |
| 7068 | ac_cv_type_long=no |
| 7069 | fi |
| 7070 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7071 | fi |
| 7072 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 7073 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 7074 | |
| 7075 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 7076 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 7077 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 7078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7079 | else |
| 7080 | if test "$ac_cv_type_long" = yes; then |
| 7081 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7082 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7083 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7084 | # This bug is HP SR number 8606223364. |
| 7085 | if test "$cross_compiling" = yes; then |
| 7086 | # Depending upon the size, compute the lo and hi bounds. |
| 7087 | cat >conftest.$ac_ext <<_ACEOF |
| 7088 | /* confdefs.h. */ |
| 7089 | _ACEOF |
| 7090 | cat confdefs.h >>conftest.$ac_ext |
| 7091 | cat >>conftest.$ac_ext <<_ACEOF |
| 7092 | /* end confdefs.h. */ |
| 7093 | $ac_includes_default |
| 7094 | int |
| 7095 | main () |
| 7096 | { |
| 7097 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 7098 | test_array [0] = 0 |
| 7099 | |
| 7100 | ; |
| 7101 | return 0; |
| 7102 | } |
| 7103 | _ACEOF |
| 7104 | rm -f conftest.$ac_objext |
| 7105 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7106 | (eval $ac_compile) 2>conftest.er1 |
| 7107 | ac_status=$? |
| 7108 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7109 | rm -f conftest.er1 |
| 7110 | cat conftest.err >&5 |
| 7111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7112 | (exit $ac_status); } && |
| 7113 | { ac_try='test -z "$ac_c_werror_flag" |
| 7114 | || test ! -s conftest.err' |
| 7115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7116 | (eval $ac_try) 2>&5 |
| 7117 | ac_status=$? |
| 7118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7119 | (exit $ac_status); }; } && |
| 7120 | { ac_try='test -s conftest.$ac_objext' |
| 7121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7122 | (eval $ac_try) 2>&5 |
| 7123 | ac_status=$? |
| 7124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7125 | (exit $ac_status); }; }; then |
| 7126 | ac_lo=0 ac_mid=0 |
| 7127 | while :; do |
| 7128 | cat >conftest.$ac_ext <<_ACEOF |
| 7129 | /* confdefs.h. */ |
| 7130 | _ACEOF |
| 7131 | cat confdefs.h >>conftest.$ac_ext |
| 7132 | cat >>conftest.$ac_ext <<_ACEOF |
| 7133 | /* end confdefs.h. */ |
| 7134 | $ac_includes_default |
| 7135 | int |
| 7136 | main () |
| 7137 | { |
| 7138 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 7139 | test_array [0] = 0 |
| 7140 | |
| 7141 | ; |
| 7142 | return 0; |
| 7143 | } |
| 7144 | _ACEOF |
| 7145 | rm -f conftest.$ac_objext |
| 7146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7147 | (eval $ac_compile) 2>conftest.er1 |
| 7148 | ac_status=$? |
| 7149 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7150 | rm -f conftest.er1 |
| 7151 | cat conftest.err >&5 |
| 7152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7153 | (exit $ac_status); } && |
| 7154 | { ac_try='test -z "$ac_c_werror_flag" |
| 7155 | || test ! -s conftest.err' |
| 7156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7157 | (eval $ac_try) 2>&5 |
| 7158 | ac_status=$? |
| 7159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7160 | (exit $ac_status); }; } && |
| 7161 | { ac_try='test -s conftest.$ac_objext' |
| 7162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7163 | (eval $ac_try) 2>&5 |
| 7164 | ac_status=$? |
| 7165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7166 | (exit $ac_status); }; }; then |
| 7167 | ac_hi=$ac_mid; break |
| 7168 | else |
| 7169 | echo "$as_me: failed program was:" >&5 |
| 7170 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7171 | |
| 7172 | ac_lo=`expr $ac_mid + 1` |
| 7173 | if test $ac_lo -le $ac_mid; then |
| 7174 | ac_lo= ac_hi= |
| 7175 | break |
| 7176 | fi |
| 7177 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7178 | fi |
| 7179 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7180 | done |
| 7181 | else |
| 7182 | echo "$as_me: failed program was:" >&5 |
| 7183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7184 | |
| 7185 | cat >conftest.$ac_ext <<_ACEOF |
| 7186 | /* confdefs.h. */ |
| 7187 | _ACEOF |
| 7188 | cat confdefs.h >>conftest.$ac_ext |
| 7189 | cat >>conftest.$ac_ext <<_ACEOF |
| 7190 | /* end confdefs.h. */ |
| 7191 | $ac_includes_default |
| 7192 | int |
| 7193 | main () |
| 7194 | { |
| 7195 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 7196 | test_array [0] = 0 |
| 7197 | |
| 7198 | ; |
| 7199 | return 0; |
| 7200 | } |
| 7201 | _ACEOF |
| 7202 | rm -f conftest.$ac_objext |
| 7203 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7204 | (eval $ac_compile) 2>conftest.er1 |
| 7205 | ac_status=$? |
| 7206 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7207 | rm -f conftest.er1 |
| 7208 | cat conftest.err >&5 |
| 7209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7210 | (exit $ac_status); } && |
| 7211 | { ac_try='test -z "$ac_c_werror_flag" |
| 7212 | || test ! -s conftest.err' |
| 7213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7214 | (eval $ac_try) 2>&5 |
| 7215 | ac_status=$? |
| 7216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7217 | (exit $ac_status); }; } && |
| 7218 | { ac_try='test -s conftest.$ac_objext' |
| 7219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7220 | (eval $ac_try) 2>&5 |
| 7221 | ac_status=$? |
| 7222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7223 | (exit $ac_status); }; }; then |
| 7224 | ac_hi=-1 ac_mid=-1 |
| 7225 | while :; do |
| 7226 | cat >conftest.$ac_ext <<_ACEOF |
| 7227 | /* confdefs.h. */ |
| 7228 | _ACEOF |
| 7229 | cat confdefs.h >>conftest.$ac_ext |
| 7230 | cat >>conftest.$ac_ext <<_ACEOF |
| 7231 | /* end confdefs.h. */ |
| 7232 | $ac_includes_default |
| 7233 | int |
| 7234 | main () |
| 7235 | { |
| 7236 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 7237 | test_array [0] = 0 |
| 7238 | |
| 7239 | ; |
| 7240 | return 0; |
| 7241 | } |
| 7242 | _ACEOF |
| 7243 | rm -f conftest.$ac_objext |
| 7244 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7245 | (eval $ac_compile) 2>conftest.er1 |
| 7246 | ac_status=$? |
| 7247 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7248 | rm -f conftest.er1 |
| 7249 | cat conftest.err >&5 |
| 7250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7251 | (exit $ac_status); } && |
| 7252 | { ac_try='test -z "$ac_c_werror_flag" |
| 7253 | || test ! -s conftest.err' |
| 7254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7255 | (eval $ac_try) 2>&5 |
| 7256 | ac_status=$? |
| 7257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7258 | (exit $ac_status); }; } && |
| 7259 | { ac_try='test -s conftest.$ac_objext' |
| 7260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7261 | (eval $ac_try) 2>&5 |
| 7262 | ac_status=$? |
| 7263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7264 | (exit $ac_status); }; }; then |
| 7265 | ac_lo=$ac_mid; break |
| 7266 | else |
| 7267 | echo "$as_me: failed program was:" >&5 |
| 7268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7269 | |
| 7270 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7271 | if test $ac_mid -le $ac_hi; then |
| 7272 | ac_lo= ac_hi= |
| 7273 | break |
| 7274 | fi |
| 7275 | ac_mid=`expr 2 '*' $ac_mid` |
| 7276 | fi |
| 7277 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7278 | done |
| 7279 | else |
| 7280 | echo "$as_me: failed program was:" >&5 |
| 7281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7282 | |
| 7283 | ac_lo= ac_hi= |
| 7284 | fi |
| 7285 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7286 | fi |
| 7287 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7288 | # Binary search between lo and hi bounds. |
| 7289 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7290 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7291 | cat >conftest.$ac_ext <<_ACEOF |
| 7292 | /* confdefs.h. */ |
| 7293 | _ACEOF |
| 7294 | cat confdefs.h >>conftest.$ac_ext |
| 7295 | cat >>conftest.$ac_ext <<_ACEOF |
| 7296 | /* end confdefs.h. */ |
| 7297 | $ac_includes_default |
| 7298 | int |
| 7299 | main () |
| 7300 | { |
| 7301 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 7302 | test_array [0] = 0 |
| 7303 | |
| 7304 | ; |
| 7305 | return 0; |
| 7306 | } |
| 7307 | _ACEOF |
| 7308 | rm -f conftest.$ac_objext |
| 7309 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7310 | (eval $ac_compile) 2>conftest.er1 |
| 7311 | ac_status=$? |
| 7312 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7313 | rm -f conftest.er1 |
| 7314 | cat conftest.err >&5 |
| 7315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7316 | (exit $ac_status); } && |
| 7317 | { ac_try='test -z "$ac_c_werror_flag" |
| 7318 | || test ! -s conftest.err' |
| 7319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7320 | (eval $ac_try) 2>&5 |
| 7321 | ac_status=$? |
| 7322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7323 | (exit $ac_status); }; } && |
| 7324 | { ac_try='test -s conftest.$ac_objext' |
| 7325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7326 | (eval $ac_try) 2>&5 |
| 7327 | ac_status=$? |
| 7328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7329 | (exit $ac_status); }; }; then |
| 7330 | ac_hi=$ac_mid |
| 7331 | else |
| 7332 | echo "$as_me: failed program was:" >&5 |
| 7333 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7334 | |
| 7335 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7336 | fi |
| 7337 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7338 | done |
| 7339 | case $ac_lo in |
| 7340 | ?*) ac_cv_sizeof_long=$ac_lo;; |
| 7341 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 7342 | See \`config.log' for more details." >&5 |
| 7343 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 7344 | See \`config.log' for more details." >&2;} |
| 7345 | { (exit 1); exit 1; }; } ;; |
| 7346 | esac |
| 7347 | else |
| 7348 | if test "$cross_compiling" = yes; then |
| 7349 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7350 | See \`config.log' for more details." >&5 |
| 7351 | echo "$as_me: error: cannot run test program while cross compiling |
| 7352 | See \`config.log' for more details." >&2;} |
| 7353 | { (exit 1); exit 1; }; } |
| 7354 | else |
| 7355 | cat >conftest.$ac_ext <<_ACEOF |
| 7356 | /* confdefs.h. */ |
| 7357 | _ACEOF |
| 7358 | cat confdefs.h >>conftest.$ac_ext |
| 7359 | cat >>conftest.$ac_ext <<_ACEOF |
| 7360 | /* end confdefs.h. */ |
| 7361 | $ac_includes_default |
| 7362 | long longval () { return (long) (sizeof (long)); } |
| 7363 | unsigned long ulongval () { return (long) (sizeof (long)); } |
| 7364 | #include <stdio.h> |
| 7365 | #include <stdlib.h> |
| 7366 | int |
| 7367 | main () |
| 7368 | { |
| 7369 | |
| 7370 | FILE *f = fopen ("conftest.val", "w"); |
| 7371 | if (! f) |
| 7372 | exit (1); |
| 7373 | if (((long) (sizeof (long))) < 0) |
| 7374 | { |
| 7375 | long i = longval (); |
| 7376 | if (i != ((long) (sizeof (long)))) |
| 7377 | exit (1); |
| 7378 | fprintf (f, "%ld\n", i); |
| 7379 | } |
| 7380 | else |
| 7381 | { |
| 7382 | unsigned long i = ulongval (); |
| 7383 | if (i != ((long) (sizeof (long)))) |
| 7384 | exit (1); |
| 7385 | fprintf (f, "%lu\n", i); |
| 7386 | } |
| 7387 | exit (ferror (f) || fclose (f) != 0); |
| 7388 | |
| 7389 | ; |
| 7390 | return 0; |
| 7391 | } |
| 7392 | _ACEOF |
| 7393 | rm -f conftest$ac_exeext |
| 7394 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7395 | (eval $ac_link) 2>&5 |
| 7396 | ac_status=$? |
| 7397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7398 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7400 | (eval $ac_try) 2>&5 |
| 7401 | ac_status=$? |
| 7402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7403 | (exit $ac_status); }; }; then |
| 7404 | ac_cv_sizeof_long=`cat conftest.val` |
| 7405 | else |
| 7406 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7407 | echo "$as_me: failed program was:" >&5 |
| 7408 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7409 | |
| 7410 | ( exit $ac_status ) |
| 7411 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 7412 | See \`config.log' for more details." >&5 |
| 7413 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 7414 | See \`config.log' for more details." >&2;} |
| 7415 | { (exit 1); exit 1; }; } |
| 7416 | fi |
| 7417 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7418 | fi |
| 7419 | fi |
| 7420 | rm -f conftest.val |
| 7421 | else |
| 7422 | ac_cv_sizeof_long=0 |
| 7423 | fi |
| 7424 | fi |
| 7425 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 7426 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 7427 | cat >>confdefs.h <<_ACEOF |
| 7428 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 7429 | _ACEOF |
| 7430 | |
| 7431 | |
| 7432 | if test "x${ac_cv_sizeof_long}" = "x8"; then |
| 7433 | want64=true |
| 7434 | fi |
| 7435 | fi |
| 7436 | if test x${want64} = xtrue; then |
| 7437 | TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)' |
| 7438 | else |
| 7439 | TARGET_OBS='$(ALL_TARGET_OBS)' |
| 7440 | fi |
| 7441 | fi |
| 7442 | |
| 7443 | |
| 7444 | |
| 7445 | # For other settings, only the main target counts. |
| 7446 | gdb_sim= |
| 7447 | gdb_osabi= |
| 7448 | build_gdbserver= |
| 7449 | targ=$target; . ${srcdir}/configure.tgt |
| 7450 | |
| 7451 | # Fetch the default architecture and default target vector from BFD. |
| 7452 | targ=$target; . $srcdir/../bfd/config.bfd |
| 7453 | |
| 7454 | # We only want the first architecture, so strip off the others if |
| 7455 | # there is more than one. |
| 7456 | targ_archs=`echo $targ_archs | sed 's/ .*//'` |
| 7457 | |
| 7458 | if test "x$targ_archs" != x; then |
| 7459 | |
| 7460 | cat >>confdefs.h <<_ACEOF |
| 7461 | #define DEFAULT_BFD_ARCH $targ_archs |
| 7462 | _ACEOF |
| 7463 | |
| 7464 | fi |
| 7465 | if test "x$targ_defvec" != x; then |
| 7466 | |
| 7467 | cat >>confdefs.h <<_ACEOF |
| 7468 | #define DEFAULT_BFD_VEC $targ_defvec |
| 7469 | _ACEOF |
| 7470 | |
| 7471 | fi |
| 7472 | |
| 7473 | # The CLI cannot be disabled yet, but may be in the future. |
| 7474 | |
| 7475 | # Enable CLI. |
| 7476 | # Check whether --enable-gdbcli or --disable-gdbcli was given. |
| 7477 | if test "${enable_gdbcli+set}" = set; then |
| 7478 | enableval="$enable_gdbcli" |
| 7479 | case $enableval in |
| 7480 | yes) |
| 7481 | ;; |
| 7482 | no) |
| 7483 | { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5 |
| 7484 | echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;} |
| 7485 | { (exit 1); exit 1; }; } ;; |
| 7486 | *) |
| 7487 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5 |
| 7488 | echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;} |
| 7489 | { (exit 1); exit 1; }; } ;; |
| 7490 | esac |
| 7491 | else |
| 7492 | enable_gdbcli=yes |
| 7493 | fi; |
| 7494 | if test x"$enable_gdbcli" = xyes; then |
| 7495 | if test -d $srcdir/cli; then |
| 7496 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)" |
| 7497 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)" |
| 7498 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)" |
| 7499 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)" |
| 7500 | fi |
| 7501 | fi |
| 7502 | |
| 7503 | # Enable MI. |
| 7504 | # Check whether --enable-gdbmi or --disable-gdbmi was given. |
| 7505 | if test "${enable_gdbmi+set}" = set; then |
| 7506 | enableval="$enable_gdbmi" |
| 7507 | case $enableval in |
| 7508 | yes | no) |
| 7509 | ;; |
| 7510 | *) |
| 7511 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5 |
| 7512 | echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;} |
| 7513 | { (exit 1); exit 1; }; } ;; |
| 7514 | esac |
| 7515 | else |
| 7516 | enable_gdbmi=yes |
| 7517 | fi; |
| 7518 | if test x"$enable_gdbmi" = xyes; then |
| 7519 | if test -d $srcdir/mi; then |
| 7520 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)" |
| 7521 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)" |
| 7522 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)" |
| 7523 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)" |
| 7524 | fi |
| 7525 | fi |
| 7526 | |
| 7527 | # Enable TUI. |
| 7528 | # Check whether --enable-tui or --disable-tui was given. |
| 7529 | if test "${enable_tui+set}" = set; then |
| 7530 | enableval="$enable_tui" |
| 7531 | case $enableval in |
| 7532 | yes | no) |
| 7533 | ;; |
| 7534 | *) |
| 7535 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5 |
| 7536 | echo "$as_me: error: bad value $enableval for --enable-tui" >&2;} |
| 7537 | { (exit 1); exit 1; }; } ;; |
| 7538 | esac |
| 7539 | else |
| 7540 | enable_tui=yes |
| 7541 | fi; |
| 7542 | |
| 7543 | # Enable gdbtk. |
| 7544 | # Check whether --enable-gdbtk or --disable-gdbtk was given. |
| 7545 | if test "${enable_gdbtk+set}" = set; then |
| 7546 | enableval="$enable_gdbtk" |
| 7547 | case $enableval in |
| 7548 | yes | no) |
| 7549 | ;; |
| 7550 | *) |
| 7551 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5 |
| 7552 | echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;} |
| 7553 | { (exit 1); exit 1; }; } ;; |
| 7554 | esac |
| 7555 | else |
| 7556 | if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then |
| 7557 | enable_gdbtk=yes |
| 7558 | else |
| 7559 | enable_gdbtk=no |
| 7560 | fi |
| 7561 | fi; |
| 7562 | # We unconditionally disable gdbtk tests on selected platforms. |
| 7563 | case $host_os in |
| 7564 | go32* | windows*) |
| 7565 | { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5 |
| 7566 | echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;} |
| 7567 | enable_gdbtk=no ;; |
| 7568 | esac |
| 7569 | |
| 7570 | # Libunwind support. |
| 7571 | |
| 7572 | # Check whether --with-libunwind or --without-libunwind was given. |
| 7573 | if test "${with_libunwind+set}" = set; then |
| 7574 | withval="$with_libunwind" |
| 7575 | case "${withval}" in |
| 7576 | yes) enable_libunwind=yes ;; |
| 7577 | no) enable_libunwind=no ;; |
| 7578 | *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5 |
| 7579 | echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;} |
| 7580 | { (exit 1); exit 1; }; } ;; |
| 7581 | esac |
| 7582 | else |
| 7583 | |
| 7584 | |
| 7585 | for ac_header in libunwind.h |
| 7586 | do |
| 7587 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7588 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7589 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7590 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7591 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7593 | fi |
| 7594 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7595 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7596 | else |
| 7597 | # Is the header compilable? |
| 7598 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7599 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7600 | cat >conftest.$ac_ext <<_ACEOF |
| 7601 | /* confdefs.h. */ |
| 7602 | _ACEOF |
| 7603 | cat confdefs.h >>conftest.$ac_ext |
| 7604 | cat >>conftest.$ac_ext <<_ACEOF |
| 7605 | /* end confdefs.h. */ |
| 7606 | $ac_includes_default |
| 7607 | #include <$ac_header> |
| 7608 | _ACEOF |
| 7609 | rm -f conftest.$ac_objext |
| 7610 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7611 | (eval $ac_compile) 2>conftest.er1 |
| 7612 | ac_status=$? |
| 7613 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7614 | rm -f conftest.er1 |
| 7615 | cat conftest.err >&5 |
| 7616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7617 | (exit $ac_status); } && |
| 7618 | { ac_try='test -z "$ac_c_werror_flag" |
| 7619 | || test ! -s conftest.err' |
| 7620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7621 | (eval $ac_try) 2>&5 |
| 7622 | ac_status=$? |
| 7623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7624 | (exit $ac_status); }; } && |
| 7625 | { ac_try='test -s conftest.$ac_objext' |
| 7626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7627 | (eval $ac_try) 2>&5 |
| 7628 | ac_status=$? |
| 7629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7630 | (exit $ac_status); }; }; then |
| 7631 | ac_header_compiler=yes |
| 7632 | else |
| 7633 | echo "$as_me: failed program was:" >&5 |
| 7634 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7635 | |
| 7636 | ac_header_compiler=no |
| 7637 | fi |
| 7638 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7639 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7640 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7641 | |
| 7642 | # Is the header present? |
| 7643 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7644 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7645 | cat >conftest.$ac_ext <<_ACEOF |
| 7646 | /* confdefs.h. */ |
| 7647 | _ACEOF |
| 7648 | cat confdefs.h >>conftest.$ac_ext |
| 7649 | cat >>conftest.$ac_ext <<_ACEOF |
| 7650 | /* end confdefs.h. */ |
| 7651 | #include <$ac_header> |
| 7652 | _ACEOF |
| 7653 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7654 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7655 | ac_status=$? |
| 7656 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7657 | rm -f conftest.er1 |
| 7658 | cat conftest.err >&5 |
| 7659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7660 | (exit $ac_status); } >/dev/null; then |
| 7661 | if test -s conftest.err; then |
| 7662 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7663 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7664 | else |
| 7665 | ac_cpp_err= |
| 7666 | fi |
| 7667 | else |
| 7668 | ac_cpp_err=yes |
| 7669 | fi |
| 7670 | if test -z "$ac_cpp_err"; then |
| 7671 | ac_header_preproc=yes |
| 7672 | else |
| 7673 | echo "$as_me: failed program was:" >&5 |
| 7674 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7675 | |
| 7676 | ac_header_preproc=no |
| 7677 | fi |
| 7678 | rm -f conftest.err conftest.$ac_ext |
| 7679 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7680 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7681 | |
| 7682 | # So? What about this header? |
| 7683 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7684 | yes:no: ) |
| 7685 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7686 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7687 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7688 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7689 | ac_header_preproc=yes |
| 7690 | ;; |
| 7691 | no:yes:* ) |
| 7692 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7693 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7694 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7695 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7696 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7697 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7698 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7699 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7700 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7701 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7702 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7703 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 7704 | ( |
| 7705 | cat <<\_ASBOX |
| 7706 | ## ------------------------------------------ ## |
| 7707 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 7708 | ## ------------------------------------------ ## |
| 7709 | _ASBOX |
| 7710 | ) | |
| 7711 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7712 | ;; |
| 7713 | esac |
| 7714 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7715 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7716 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7718 | else |
| 7719 | eval "$as_ac_Header=\$ac_header_preproc" |
| 7720 | fi |
| 7721 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7722 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7723 | |
| 7724 | fi |
| 7725 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7726 | cat >>confdefs.h <<_ACEOF |
| 7727 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7728 | _ACEOF |
| 7729 | |
| 7730 | fi |
| 7731 | |
| 7732 | done |
| 7733 | |
| 7734 | |
| 7735 | for ac_header in libunwind-ia64.h |
| 7736 | do |
| 7737 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7738 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7739 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7740 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7741 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7743 | fi |
| 7744 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7745 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7746 | else |
| 7747 | # Is the header compilable? |
| 7748 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7749 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7750 | cat >conftest.$ac_ext <<_ACEOF |
| 7751 | /* confdefs.h. */ |
| 7752 | _ACEOF |
| 7753 | cat confdefs.h >>conftest.$ac_ext |
| 7754 | cat >>conftest.$ac_ext <<_ACEOF |
| 7755 | /* end confdefs.h. */ |
| 7756 | $ac_includes_default |
| 7757 | #include <$ac_header> |
| 7758 | _ACEOF |
| 7759 | rm -f conftest.$ac_objext |
| 7760 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7761 | (eval $ac_compile) 2>conftest.er1 |
| 7762 | ac_status=$? |
| 7763 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7764 | rm -f conftest.er1 |
| 7765 | cat conftest.err >&5 |
| 7766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7767 | (exit $ac_status); } && |
| 7768 | { ac_try='test -z "$ac_c_werror_flag" |
| 7769 | || test ! -s conftest.err' |
| 7770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7771 | (eval $ac_try) 2>&5 |
| 7772 | ac_status=$? |
| 7773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7774 | (exit $ac_status); }; } && |
| 7775 | { ac_try='test -s conftest.$ac_objext' |
| 7776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7777 | (eval $ac_try) 2>&5 |
| 7778 | ac_status=$? |
| 7779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7780 | (exit $ac_status); }; }; then |
| 7781 | ac_header_compiler=yes |
| 7782 | else |
| 7783 | echo "$as_me: failed program was:" >&5 |
| 7784 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7785 | |
| 7786 | ac_header_compiler=no |
| 7787 | fi |
| 7788 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7789 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7790 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7791 | |
| 7792 | # Is the header present? |
| 7793 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7794 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7795 | cat >conftest.$ac_ext <<_ACEOF |
| 7796 | /* confdefs.h. */ |
| 7797 | _ACEOF |
| 7798 | cat confdefs.h >>conftest.$ac_ext |
| 7799 | cat >>conftest.$ac_ext <<_ACEOF |
| 7800 | /* end confdefs.h. */ |
| 7801 | #include <$ac_header> |
| 7802 | _ACEOF |
| 7803 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7804 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7805 | ac_status=$? |
| 7806 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7807 | rm -f conftest.er1 |
| 7808 | cat conftest.err >&5 |
| 7809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7810 | (exit $ac_status); } >/dev/null; then |
| 7811 | if test -s conftest.err; then |
| 7812 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7813 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7814 | else |
| 7815 | ac_cpp_err= |
| 7816 | fi |
| 7817 | else |
| 7818 | ac_cpp_err=yes |
| 7819 | fi |
| 7820 | if test -z "$ac_cpp_err"; then |
| 7821 | ac_header_preproc=yes |
| 7822 | else |
| 7823 | echo "$as_me: failed program was:" >&5 |
| 7824 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7825 | |
| 7826 | ac_header_preproc=no |
| 7827 | fi |
| 7828 | rm -f conftest.err conftest.$ac_ext |
| 7829 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7830 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7831 | |
| 7832 | # So? What about this header? |
| 7833 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7834 | yes:no: ) |
| 7835 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7836 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7837 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7838 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7839 | ac_header_preproc=yes |
| 7840 | ;; |
| 7841 | no:yes:* ) |
| 7842 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7843 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7844 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7845 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7846 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7847 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7848 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7849 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7850 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7851 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7852 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7853 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 7854 | ( |
| 7855 | cat <<\_ASBOX |
| 7856 | ## ------------------------------------------ ## |
| 7857 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 7858 | ## ------------------------------------------ ## |
| 7859 | _ASBOX |
| 7860 | ) | |
| 7861 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7862 | ;; |
| 7863 | esac |
| 7864 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7865 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7866 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7868 | else |
| 7869 | eval "$as_ac_Header=\$ac_header_preproc" |
| 7870 | fi |
| 7871 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7872 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7873 | |
| 7874 | fi |
| 7875 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7876 | cat >>confdefs.h <<_ACEOF |
| 7877 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7878 | _ACEOF |
| 7879 | |
| 7880 | fi |
| 7881 | |
| 7882 | done |
| 7883 | |
| 7884 | if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then |
| 7885 | enable_libunwind=yes; |
| 7886 | fi |
| 7887 | |
| 7888 | fi; |
| 7889 | |
| 7890 | if test x"$enable_libunwind" = xyes; then |
| 7891 | |
| 7892 | for ac_header in libunwind.h |
| 7893 | do |
| 7894 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7895 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7896 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7897 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7898 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7900 | fi |
| 7901 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7902 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7903 | else |
| 7904 | # Is the header compilable? |
| 7905 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7906 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7907 | cat >conftest.$ac_ext <<_ACEOF |
| 7908 | /* confdefs.h. */ |
| 7909 | _ACEOF |
| 7910 | cat confdefs.h >>conftest.$ac_ext |
| 7911 | cat >>conftest.$ac_ext <<_ACEOF |
| 7912 | /* end confdefs.h. */ |
| 7913 | $ac_includes_default |
| 7914 | #include <$ac_header> |
| 7915 | _ACEOF |
| 7916 | rm -f conftest.$ac_objext |
| 7917 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7918 | (eval $ac_compile) 2>conftest.er1 |
| 7919 | ac_status=$? |
| 7920 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7921 | rm -f conftest.er1 |
| 7922 | cat conftest.err >&5 |
| 7923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7924 | (exit $ac_status); } && |
| 7925 | { ac_try='test -z "$ac_c_werror_flag" |
| 7926 | || test ! -s conftest.err' |
| 7927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7928 | (eval $ac_try) 2>&5 |
| 7929 | ac_status=$? |
| 7930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7931 | (exit $ac_status); }; } && |
| 7932 | { ac_try='test -s conftest.$ac_objext' |
| 7933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7934 | (eval $ac_try) 2>&5 |
| 7935 | ac_status=$? |
| 7936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7937 | (exit $ac_status); }; }; then |
| 7938 | ac_header_compiler=yes |
| 7939 | else |
| 7940 | echo "$as_me: failed program was:" >&5 |
| 7941 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7942 | |
| 7943 | ac_header_compiler=no |
| 7944 | fi |
| 7945 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7946 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7947 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7948 | |
| 7949 | # Is the header present? |
| 7950 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7951 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7952 | cat >conftest.$ac_ext <<_ACEOF |
| 7953 | /* confdefs.h. */ |
| 7954 | _ACEOF |
| 7955 | cat confdefs.h >>conftest.$ac_ext |
| 7956 | cat >>conftest.$ac_ext <<_ACEOF |
| 7957 | /* end confdefs.h. */ |
| 7958 | #include <$ac_header> |
| 7959 | _ACEOF |
| 7960 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7961 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7962 | ac_status=$? |
| 7963 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7964 | rm -f conftest.er1 |
| 7965 | cat conftest.err >&5 |
| 7966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7967 | (exit $ac_status); } >/dev/null; then |
| 7968 | if test -s conftest.err; then |
| 7969 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7970 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7971 | else |
| 7972 | ac_cpp_err= |
| 7973 | fi |
| 7974 | else |
| 7975 | ac_cpp_err=yes |
| 7976 | fi |
| 7977 | if test -z "$ac_cpp_err"; then |
| 7978 | ac_header_preproc=yes |
| 7979 | else |
| 7980 | echo "$as_me: failed program was:" >&5 |
| 7981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7982 | |
| 7983 | ac_header_preproc=no |
| 7984 | fi |
| 7985 | rm -f conftest.err conftest.$ac_ext |
| 7986 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7987 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7988 | |
| 7989 | # So? What about this header? |
| 7990 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7991 | yes:no: ) |
| 7992 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7993 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7994 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7995 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7996 | ac_header_preproc=yes |
| 7997 | ;; |
| 7998 | no:yes:* ) |
| 7999 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8000 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8001 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8002 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8003 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8004 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8005 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8006 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8007 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8008 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8009 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8010 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8011 | ( |
| 8012 | cat <<\_ASBOX |
| 8013 | ## ------------------------------------------ ## |
| 8014 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 8015 | ## ------------------------------------------ ## |
| 8016 | _ASBOX |
| 8017 | ) | |
| 8018 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8019 | ;; |
| 8020 | esac |
| 8021 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8022 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8023 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8025 | else |
| 8026 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8027 | fi |
| 8028 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8029 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8030 | |
| 8031 | fi |
| 8032 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8033 | cat >>confdefs.h <<_ACEOF |
| 8034 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8035 | _ACEOF |
| 8036 | |
| 8037 | fi |
| 8038 | |
| 8039 | done |
| 8040 | |
| 8041 | |
| 8042 | for ac_header in libunwind-ia64.h |
| 8043 | do |
| 8044 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8045 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8046 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8047 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8048 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8050 | fi |
| 8051 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8052 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8053 | else |
| 8054 | # Is the header compilable? |
| 8055 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8056 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8057 | cat >conftest.$ac_ext <<_ACEOF |
| 8058 | /* confdefs.h. */ |
| 8059 | _ACEOF |
| 8060 | cat confdefs.h >>conftest.$ac_ext |
| 8061 | cat >>conftest.$ac_ext <<_ACEOF |
| 8062 | /* end confdefs.h. */ |
| 8063 | $ac_includes_default |
| 8064 | #include <$ac_header> |
| 8065 | _ACEOF |
| 8066 | rm -f conftest.$ac_objext |
| 8067 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8068 | (eval $ac_compile) 2>conftest.er1 |
| 8069 | ac_status=$? |
| 8070 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8071 | rm -f conftest.er1 |
| 8072 | cat conftest.err >&5 |
| 8073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8074 | (exit $ac_status); } && |
| 8075 | { ac_try='test -z "$ac_c_werror_flag" |
| 8076 | || test ! -s conftest.err' |
| 8077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8078 | (eval $ac_try) 2>&5 |
| 8079 | ac_status=$? |
| 8080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8081 | (exit $ac_status); }; } && |
| 8082 | { ac_try='test -s conftest.$ac_objext' |
| 8083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8084 | (eval $ac_try) 2>&5 |
| 8085 | ac_status=$? |
| 8086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8087 | (exit $ac_status); }; }; then |
| 8088 | ac_header_compiler=yes |
| 8089 | else |
| 8090 | echo "$as_me: failed program was:" >&5 |
| 8091 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8092 | |
| 8093 | ac_header_compiler=no |
| 8094 | fi |
| 8095 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8096 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8097 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8098 | |
| 8099 | # Is the header present? |
| 8100 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8101 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8102 | cat >conftest.$ac_ext <<_ACEOF |
| 8103 | /* confdefs.h. */ |
| 8104 | _ACEOF |
| 8105 | cat confdefs.h >>conftest.$ac_ext |
| 8106 | cat >>conftest.$ac_ext <<_ACEOF |
| 8107 | /* end confdefs.h. */ |
| 8108 | #include <$ac_header> |
| 8109 | _ACEOF |
| 8110 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8111 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8112 | ac_status=$? |
| 8113 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8114 | rm -f conftest.er1 |
| 8115 | cat conftest.err >&5 |
| 8116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8117 | (exit $ac_status); } >/dev/null; then |
| 8118 | if test -s conftest.err; then |
| 8119 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8120 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8121 | else |
| 8122 | ac_cpp_err= |
| 8123 | fi |
| 8124 | else |
| 8125 | ac_cpp_err=yes |
| 8126 | fi |
| 8127 | if test -z "$ac_cpp_err"; then |
| 8128 | ac_header_preproc=yes |
| 8129 | else |
| 8130 | echo "$as_me: failed program was:" >&5 |
| 8131 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8132 | |
| 8133 | ac_header_preproc=no |
| 8134 | fi |
| 8135 | rm -f conftest.err conftest.$ac_ext |
| 8136 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8137 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8138 | |
| 8139 | # So? What about this header? |
| 8140 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8141 | yes:no: ) |
| 8142 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8143 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8144 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8145 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8146 | ac_header_preproc=yes |
| 8147 | ;; |
| 8148 | no:yes:* ) |
| 8149 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8150 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8151 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8152 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8153 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8154 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8155 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8156 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8157 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8158 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8159 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8160 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8161 | ( |
| 8162 | cat <<\_ASBOX |
| 8163 | ## ------------------------------------------ ## |
| 8164 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 8165 | ## ------------------------------------------ ## |
| 8166 | _ASBOX |
| 8167 | ) | |
| 8168 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8169 | ;; |
| 8170 | esac |
| 8171 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8172 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8173 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8175 | else |
| 8176 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8177 | fi |
| 8178 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8179 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8180 | |
| 8181 | fi |
| 8182 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8183 | cat >>confdefs.h <<_ACEOF |
| 8184 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8185 | _ACEOF |
| 8186 | |
| 8187 | fi |
| 8188 | |
| 8189 | done |
| 8190 | |
| 8191 | |
| 8192 | cat >>confdefs.h <<\_ACEOF |
| 8193 | #define HAVE_LIBUNWIND 1 |
| 8194 | _ACEOF |
| 8195 | |
| 8196 | CONFIG_OBS="$CONFIG_OBS libunwind-frame.o" |
| 8197 | CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o" |
| 8198 | CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c" |
| 8199 | fi |
| 8200 | |
| 8201 | # Profiling support. |
| 8202 | # Check whether --enable-profiling or --disable-profiling was given. |
| 8203 | if test "${enable_profiling+set}" = set; then |
| 8204 | enableval="$enable_profiling" |
| 8205 | case $enableval in |
| 8206 | yes | no) |
| 8207 | ;; |
| 8208 | *) |
| 8209 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5 |
| 8210 | echo "$as_me: error: bad value $enableval for --enable-profile" >&2;} |
| 8211 | { (exit 1); exit 1; }; } ;; |
| 8212 | esac |
| 8213 | else |
| 8214 | enable_profiling=no |
| 8215 | fi; |
| 8216 | |
| 8217 | |
| 8218 | |
| 8219 | for ac_func in monstartup _mcleanup |
| 8220 | do |
| 8221 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8222 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 8223 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 8224 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 8225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8226 | else |
| 8227 | cat >conftest.$ac_ext <<_ACEOF |
| 8228 | /* confdefs.h. */ |
| 8229 | _ACEOF |
| 8230 | cat confdefs.h >>conftest.$ac_ext |
| 8231 | cat >>conftest.$ac_ext <<_ACEOF |
| 8232 | /* end confdefs.h. */ |
| 8233 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 8234 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 8235 | #define $ac_func innocuous_$ac_func |
| 8236 | |
| 8237 | /* System header to define __stub macros and hopefully few prototypes, |
| 8238 | which can conflict with char $ac_func (); below. |
| 8239 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8240 | <limits.h> exists even on freestanding compilers. */ |
| 8241 | |
| 8242 | #ifdef __STDC__ |
| 8243 | # include <limits.h> |
| 8244 | #else |
| 8245 | # include <assert.h> |
| 8246 | #endif |
| 8247 | |
| 8248 | #undef $ac_func |
| 8249 | |
| 8250 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8251 | #ifdef __cplusplus |
| 8252 | extern "C" |
| 8253 | { |
| 8254 | #endif |
| 8255 | /* We use char because int might match the return type of a gcc2 |
| 8256 | builtin and then its argument prototype would still apply. */ |
| 8257 | char $ac_func (); |
| 8258 | /* The GNU C library defines this for functions which it implements |
| 8259 | to always fail with ENOSYS. Some functions are actually named |
| 8260 | something starting with __ and the normal name is an alias. */ |
| 8261 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 8262 | choke me |
| 8263 | #else |
| 8264 | char (*f) () = $ac_func; |
| 8265 | #endif |
| 8266 | #ifdef __cplusplus |
| 8267 | } |
| 8268 | #endif |
| 8269 | |
| 8270 | int |
| 8271 | main () |
| 8272 | { |
| 8273 | return f != $ac_func; |
| 8274 | ; |
| 8275 | return 0; |
| 8276 | } |
| 8277 | _ACEOF |
| 8278 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8279 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8280 | (eval $ac_link) 2>conftest.er1 |
| 8281 | ac_status=$? |
| 8282 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8283 | rm -f conftest.er1 |
| 8284 | cat conftest.err >&5 |
| 8285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8286 | (exit $ac_status); } && |
| 8287 | { ac_try='test -z "$ac_c_werror_flag" |
| 8288 | || test ! -s conftest.err' |
| 8289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8290 | (eval $ac_try) 2>&5 |
| 8291 | ac_status=$? |
| 8292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8293 | (exit $ac_status); }; } && |
| 8294 | { ac_try='test -s conftest$ac_exeext' |
| 8295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8296 | (eval $ac_try) 2>&5 |
| 8297 | ac_status=$? |
| 8298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8299 | (exit $ac_status); }; }; then |
| 8300 | eval "$as_ac_var=yes" |
| 8301 | else |
| 8302 | echo "$as_me: failed program was:" >&5 |
| 8303 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8304 | |
| 8305 | eval "$as_ac_var=no" |
| 8306 | fi |
| 8307 | rm -f conftest.err conftest.$ac_objext \ |
| 8308 | conftest$ac_exeext conftest.$ac_ext |
| 8309 | fi |
| 8310 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 8311 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 8312 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 8313 | cat >>confdefs.h <<_ACEOF |
| 8314 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 8315 | _ACEOF |
| 8316 | |
| 8317 | fi |
| 8318 | done |
| 8319 | |
| 8320 | echo "$as_me:$LINENO: checking for _etext" >&5 |
| 8321 | echo $ECHO_N "checking for _etext... $ECHO_C" >&6 |
| 8322 | if test "${ac_cv_var__etext+set}" = set; then |
| 8323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8324 | else |
| 8325 | cat >conftest.$ac_ext <<_ACEOF |
| 8326 | /* confdefs.h. */ |
| 8327 | _ACEOF |
| 8328 | cat confdefs.h >>conftest.$ac_ext |
| 8329 | cat >>conftest.$ac_ext <<_ACEOF |
| 8330 | /* end confdefs.h. */ |
| 8331 | #include <stdlib.h> |
| 8332 | extern char _etext; |
| 8333 | |
| 8334 | int |
| 8335 | main () |
| 8336 | { |
| 8337 | free (&_etext); |
| 8338 | ; |
| 8339 | return 0; |
| 8340 | } |
| 8341 | _ACEOF |
| 8342 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8343 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8344 | (eval $ac_link) 2>conftest.er1 |
| 8345 | ac_status=$? |
| 8346 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8347 | rm -f conftest.er1 |
| 8348 | cat conftest.err >&5 |
| 8349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8350 | (exit $ac_status); } && |
| 8351 | { ac_try='test -z "$ac_c_werror_flag" |
| 8352 | || test ! -s conftest.err' |
| 8353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8354 | (eval $ac_try) 2>&5 |
| 8355 | ac_status=$? |
| 8356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8357 | (exit $ac_status); }; } && |
| 8358 | { ac_try='test -s conftest$ac_exeext' |
| 8359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8360 | (eval $ac_try) 2>&5 |
| 8361 | ac_status=$? |
| 8362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8363 | (exit $ac_status); }; }; then |
| 8364 | ac_cv_var__etext=yes |
| 8365 | else |
| 8366 | echo "$as_me: failed program was:" >&5 |
| 8367 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8368 | |
| 8369 | ac_cv_var__etext=no |
| 8370 | fi |
| 8371 | rm -f conftest.err conftest.$ac_objext \ |
| 8372 | conftest$ac_exeext conftest.$ac_ext |
| 8373 | fi |
| 8374 | echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5 |
| 8375 | echo "${ECHO_T}$ac_cv_var__etext" >&6 |
| 8376 | if test $ac_cv_var__etext = yes; then |
| 8377 | |
| 8378 | cat >>confdefs.h <<\_ACEOF |
| 8379 | #define HAVE__ETEXT 1 |
| 8380 | _ACEOF |
| 8381 | |
| 8382 | fi |
| 8383 | echo "$as_me:$LINENO: checking for etext" >&5 |
| 8384 | echo $ECHO_N "checking for etext... $ECHO_C" >&6 |
| 8385 | if test "${ac_cv_var_etext+set}" = set; then |
| 8386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8387 | else |
| 8388 | cat >conftest.$ac_ext <<_ACEOF |
| 8389 | /* confdefs.h. */ |
| 8390 | _ACEOF |
| 8391 | cat confdefs.h >>conftest.$ac_ext |
| 8392 | cat >>conftest.$ac_ext <<_ACEOF |
| 8393 | /* end confdefs.h. */ |
| 8394 | #include <stdlib.h> |
| 8395 | extern char etext; |
| 8396 | |
| 8397 | int |
| 8398 | main () |
| 8399 | { |
| 8400 | free (&etext); |
| 8401 | ; |
| 8402 | return 0; |
| 8403 | } |
| 8404 | _ACEOF |
| 8405 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8406 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8407 | (eval $ac_link) 2>conftest.er1 |
| 8408 | ac_status=$? |
| 8409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8410 | rm -f conftest.er1 |
| 8411 | cat conftest.err >&5 |
| 8412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8413 | (exit $ac_status); } && |
| 8414 | { ac_try='test -z "$ac_c_werror_flag" |
| 8415 | || test ! -s conftest.err' |
| 8416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8417 | (eval $ac_try) 2>&5 |
| 8418 | ac_status=$? |
| 8419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8420 | (exit $ac_status); }; } && |
| 8421 | { ac_try='test -s conftest$ac_exeext' |
| 8422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8423 | (eval $ac_try) 2>&5 |
| 8424 | ac_status=$? |
| 8425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8426 | (exit $ac_status); }; }; then |
| 8427 | ac_cv_var_etext=yes |
| 8428 | else |
| 8429 | echo "$as_me: failed program was:" >&5 |
| 8430 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8431 | |
| 8432 | ac_cv_var_etext=no |
| 8433 | fi |
| 8434 | rm -f conftest.err conftest.$ac_objext \ |
| 8435 | conftest$ac_exeext conftest.$ac_ext |
| 8436 | fi |
| 8437 | echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5 |
| 8438 | echo "${ECHO_T}$ac_cv_var_etext" >&6 |
| 8439 | if test $ac_cv_var_etext = yes; then |
| 8440 | |
| 8441 | cat >>confdefs.h <<\_ACEOF |
| 8442 | #define HAVE_ETEXT 1 |
| 8443 | _ACEOF |
| 8444 | |
| 8445 | fi |
| 8446 | if test "$enable_profiling" = yes ; then |
| 8447 | if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then |
| 8448 | { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5 |
| 8449 | echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;} |
| 8450 | { (exit 1); exit 1; }; } |
| 8451 | fi |
| 8452 | PROFILE_CFLAGS=-pg |
| 8453 | OLD_CFLAGS="$CFLAGS" |
| 8454 | CFLAGS="$CFLAGS $PROFILE_CFLAGS" |
| 8455 | |
| 8456 | echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5 |
| 8457 | echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6 |
| 8458 | if test "${ac_cv_cc_supports_pg+set}" = set; then |
| 8459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8460 | else |
| 8461 | cat >conftest.$ac_ext <<_ACEOF |
| 8462 | /* confdefs.h. */ |
| 8463 | _ACEOF |
| 8464 | cat confdefs.h >>conftest.$ac_ext |
| 8465 | cat >>conftest.$ac_ext <<_ACEOF |
| 8466 | /* end confdefs.h. */ |
| 8467 | |
| 8468 | int |
| 8469 | main () |
| 8470 | { |
| 8471 | int x; |
| 8472 | ; |
| 8473 | return 0; |
| 8474 | } |
| 8475 | _ACEOF |
| 8476 | rm -f conftest.$ac_objext |
| 8477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8478 | (eval $ac_compile) 2>conftest.er1 |
| 8479 | ac_status=$? |
| 8480 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8481 | rm -f conftest.er1 |
| 8482 | cat conftest.err >&5 |
| 8483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8484 | (exit $ac_status); } && |
| 8485 | { ac_try='test -z "$ac_c_werror_flag" |
| 8486 | || test ! -s conftest.err' |
| 8487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8488 | (eval $ac_try) 2>&5 |
| 8489 | ac_status=$? |
| 8490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8491 | (exit $ac_status); }; } && |
| 8492 | { ac_try='test -s conftest.$ac_objext' |
| 8493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8494 | (eval $ac_try) 2>&5 |
| 8495 | ac_status=$? |
| 8496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8497 | (exit $ac_status); }; }; then |
| 8498 | ac_cv_cc_supports_pg=yes |
| 8499 | else |
| 8500 | echo "$as_me: failed program was:" >&5 |
| 8501 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8502 | |
| 8503 | ac_cv_cc_supports_pg=no |
| 8504 | fi |
| 8505 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8506 | fi |
| 8507 | echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5 |
| 8508 | echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6 |
| 8509 | |
| 8510 | if test $ac_cv_cc_supports_pg = no; then |
| 8511 | { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5 |
| 8512 | echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;} |
| 8513 | { (exit 1); exit 1; }; } |
| 8514 | fi |
| 8515 | |
| 8516 | CFLAGS="$OLD_CFLAGS" |
| 8517 | fi |
| 8518 | |
| 8519 | # --------------------- # |
| 8520 | # Checks for programs. # |
| 8521 | # --------------------- # |
| 8522 | |
| 8523 | for ac_prog in gawk mawk nawk awk |
| 8524 | do |
| 8525 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8526 | set dummy $ac_prog; ac_word=$2 |
| 8527 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8528 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8529 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 8530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8531 | else |
| 8532 | if test -n "$AWK"; then |
| 8533 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 8534 | else |
| 8535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8536 | for as_dir in $PATH |
| 8537 | do |
| 8538 | IFS=$as_save_IFS |
| 8539 | test -z "$as_dir" && as_dir=. |
| 8540 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8541 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8542 | ac_cv_prog_AWK="$ac_prog" |
| 8543 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8544 | break 2 |
| 8545 | fi |
| 8546 | done |
| 8547 | done |
| 8548 | |
| 8549 | fi |
| 8550 | fi |
| 8551 | AWK=$ac_cv_prog_AWK |
| 8552 | if test -n "$AWK"; then |
| 8553 | echo "$as_me:$LINENO: result: $AWK" >&5 |
| 8554 | echo "${ECHO_T}$AWK" >&6 |
| 8555 | else |
| 8556 | echo "$as_me:$LINENO: result: no" >&5 |
| 8557 | echo "${ECHO_T}no" >&6 |
| 8558 | fi |
| 8559 | |
| 8560 | test -n "$AWK" && break |
| 8561 | done |
| 8562 | |
| 8563 | # Find a good install program. We prefer a C program (faster), |
| 8564 | # so one script is as good as another. But avoid the broken or |
| 8565 | # incompatible versions: |
| 8566 | # SysV /etc/install, /usr/sbin/install |
| 8567 | # SunOS /usr/etc/install |
| 8568 | # IRIX /sbin/install |
| 8569 | # AIX /bin/install |
| 8570 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 8571 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 8572 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 8573 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 8574 | # OS/2's system install, which has a completely different semantic |
| 8575 | # ./install, which can be erroneously created by make from ./install.sh. |
| 8576 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 8577 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 8578 | if test -z "$INSTALL"; then |
| 8579 | if test "${ac_cv_path_install+set}" = set; then |
| 8580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8581 | else |
| 8582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8583 | for as_dir in $PATH |
| 8584 | do |
| 8585 | IFS=$as_save_IFS |
| 8586 | test -z "$as_dir" && as_dir=. |
| 8587 | # Account for people who put trailing slashes in PATH elements. |
| 8588 | case $as_dir/ in |
| 8589 | ./ | .// | /cC/* | \ |
| 8590 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 8591 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 8592 | /usr/ucb/* ) ;; |
| 8593 | *) |
| 8594 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 8595 | # Don't use installbsd from OSF since it installs stuff as root |
| 8596 | # by default. |
| 8597 | for ac_prog in ginstall scoinst install; do |
| 8598 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8599 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 8600 | if test $ac_prog = install && |
| 8601 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 8602 | # AIX install. It has an incompatible calling convention. |
| 8603 | : |
| 8604 | elif test $ac_prog = install && |
| 8605 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 8606 | # program-specific install script used by HP pwplus--don't use. |
| 8607 | : |
| 8608 | else |
| 8609 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 8610 | break 3 |
| 8611 | fi |
| 8612 | fi |
| 8613 | done |
| 8614 | done |
| 8615 | ;; |
| 8616 | esac |
| 8617 | done |
| 8618 | |
| 8619 | |
| 8620 | fi |
| 8621 | if test "${ac_cv_path_install+set}" = set; then |
| 8622 | INSTALL=$ac_cv_path_install |
| 8623 | else |
| 8624 | # As a last resort, use the slow shell script. We don't cache a |
| 8625 | # path for INSTALL within a source directory, because that will |
| 8626 | # break other packages using the cache if that directory is |
| 8627 | # removed, or if the path is relative. |
| 8628 | INSTALL=$ac_install_sh |
| 8629 | fi |
| 8630 | fi |
| 8631 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 8632 | echo "${ECHO_T}$INSTALL" >&6 |
| 8633 | |
| 8634 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 8635 | # It thinks the first close brace ends the variable substitution. |
| 8636 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 8637 | |
| 8638 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 8639 | |
| 8640 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 8641 | |
| 8642 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 8643 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 8644 | LN_S=$as_ln_s |
| 8645 | if test "$LN_S" = "ln -s"; then |
| 8646 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8647 | echo "${ECHO_T}yes" >&6 |
| 8648 | else |
| 8649 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 8650 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 8651 | fi |
| 8652 | |
| 8653 | if test -n "$ac_tool_prefix"; then |
| 8654 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 8655 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 8656 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8657 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8658 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 8659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8660 | else |
| 8661 | if test -n "$RANLIB"; then |
| 8662 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 8663 | else |
| 8664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8665 | for as_dir in $PATH |
| 8666 | do |
| 8667 | IFS=$as_save_IFS |
| 8668 | test -z "$as_dir" && as_dir=. |
| 8669 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8670 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8671 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 8672 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8673 | break 2 |
| 8674 | fi |
| 8675 | done |
| 8676 | done |
| 8677 | |
| 8678 | fi |
| 8679 | fi |
| 8680 | RANLIB=$ac_cv_prog_RANLIB |
| 8681 | if test -n "$RANLIB"; then |
| 8682 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 8683 | echo "${ECHO_T}$RANLIB" >&6 |
| 8684 | else |
| 8685 | echo "$as_me:$LINENO: result: no" >&5 |
| 8686 | echo "${ECHO_T}no" >&6 |
| 8687 | fi |
| 8688 | |
| 8689 | fi |
| 8690 | if test -z "$ac_cv_prog_RANLIB"; then |
| 8691 | ac_ct_RANLIB=$RANLIB |
| 8692 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 8693 | set dummy ranlib; ac_word=$2 |
| 8694 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8695 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8696 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 8697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8698 | else |
| 8699 | if test -n "$ac_ct_RANLIB"; then |
| 8700 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 8701 | else |
| 8702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8703 | for as_dir in $PATH |
| 8704 | do |
| 8705 | IFS=$as_save_IFS |
| 8706 | test -z "$as_dir" && as_dir=. |
| 8707 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8708 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8709 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 8710 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8711 | break 2 |
| 8712 | fi |
| 8713 | done |
| 8714 | done |
| 8715 | |
| 8716 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 8717 | fi |
| 8718 | fi |
| 8719 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 8720 | if test -n "$ac_ct_RANLIB"; then |
| 8721 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 8722 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 8723 | else |
| 8724 | echo "$as_me:$LINENO: result: no" >&5 |
| 8725 | echo "${ECHO_T}no" >&6 |
| 8726 | fi |
| 8727 | |
| 8728 | RANLIB=$ac_ct_RANLIB |
| 8729 | else |
| 8730 | RANLIB="$ac_cv_prog_RANLIB" |
| 8731 | fi |
| 8732 | |
| 8733 | for ac_prog in 'bison -y' byacc |
| 8734 | do |
| 8735 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8736 | set dummy $ac_prog; ac_word=$2 |
| 8737 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8738 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8739 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 8740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8741 | else |
| 8742 | if test -n "$YACC"; then |
| 8743 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 8744 | else |
| 8745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8746 | for as_dir in $PATH |
| 8747 | do |
| 8748 | IFS=$as_save_IFS |
| 8749 | test -z "$as_dir" && as_dir=. |
| 8750 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8751 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8752 | ac_cv_prog_YACC="$ac_prog" |
| 8753 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8754 | break 2 |
| 8755 | fi |
| 8756 | done |
| 8757 | done |
| 8758 | |
| 8759 | fi |
| 8760 | fi |
| 8761 | YACC=$ac_cv_prog_YACC |
| 8762 | if test -n "$YACC"; then |
| 8763 | echo "$as_me:$LINENO: result: $YACC" >&5 |
| 8764 | echo "${ECHO_T}$YACC" >&6 |
| 8765 | else |
| 8766 | echo "$as_me:$LINENO: result: no" >&5 |
| 8767 | echo "${ECHO_T}no" >&6 |
| 8768 | fi |
| 8769 | |
| 8770 | test -n "$YACC" && break |
| 8771 | done |
| 8772 | test -n "$YACC" || YACC="yacc" |
| 8773 | |
| 8774 | |
| 8775 | if test -n "$ac_tool_prefix"; then |
| 8776 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 8777 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 8778 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8779 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8780 | if test "${ac_cv_prog_AR+set}" = set; then |
| 8781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8782 | else |
| 8783 | if test -n "$AR"; then |
| 8784 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 8785 | else |
| 8786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8787 | for as_dir in $PATH |
| 8788 | do |
| 8789 | IFS=$as_save_IFS |
| 8790 | test -z "$as_dir" && as_dir=. |
| 8791 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8792 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8793 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 8794 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8795 | break 2 |
| 8796 | fi |
| 8797 | done |
| 8798 | done |
| 8799 | |
| 8800 | fi |
| 8801 | fi |
| 8802 | AR=$ac_cv_prog_AR |
| 8803 | if test -n "$AR"; then |
| 8804 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 8805 | echo "${ECHO_T}$AR" >&6 |
| 8806 | else |
| 8807 | echo "$as_me:$LINENO: result: no" >&5 |
| 8808 | echo "${ECHO_T}no" >&6 |
| 8809 | fi |
| 8810 | |
| 8811 | fi |
| 8812 | if test -z "$ac_cv_prog_AR"; then |
| 8813 | ac_ct_AR=$AR |
| 8814 | # Extract the first word of "ar", so it can be a program name with args. |
| 8815 | set dummy ar; ac_word=$2 |
| 8816 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8817 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8818 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 8819 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8820 | else |
| 8821 | if test -n "$ac_ct_AR"; then |
| 8822 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 8823 | else |
| 8824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8825 | for as_dir in $PATH |
| 8826 | do |
| 8827 | IFS=$as_save_IFS |
| 8828 | test -z "$as_dir" && as_dir=. |
| 8829 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8830 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8831 | ac_cv_prog_ac_ct_AR="ar" |
| 8832 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8833 | break 2 |
| 8834 | fi |
| 8835 | done |
| 8836 | done |
| 8837 | |
| 8838 | fi |
| 8839 | fi |
| 8840 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 8841 | if test -n "$ac_ct_AR"; then |
| 8842 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 8843 | echo "${ECHO_T}$ac_ct_AR" >&6 |
| 8844 | else |
| 8845 | echo "$as_me:$LINENO: result: no" >&5 |
| 8846 | echo "${ECHO_T}no" >&6 |
| 8847 | fi |
| 8848 | |
| 8849 | AR=$ac_ct_AR |
| 8850 | else |
| 8851 | AR="$ac_cv_prog_AR" |
| 8852 | fi |
| 8853 | |
| 8854 | if test -n "$ac_tool_prefix"; then |
| 8855 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 8856 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 8857 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8858 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8859 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
| 8860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8861 | else |
| 8862 | if test -n "$DLLTOOL"; then |
| 8863 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 8864 | else |
| 8865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8866 | for as_dir in $PATH |
| 8867 | do |
| 8868 | IFS=$as_save_IFS |
| 8869 | test -z "$as_dir" && as_dir=. |
| 8870 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8871 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8872 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 8873 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8874 | break 2 |
| 8875 | fi |
| 8876 | done |
| 8877 | done |
| 8878 | |
| 8879 | fi |
| 8880 | fi |
| 8881 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 8882 | if test -n "$DLLTOOL"; then |
| 8883 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
| 8884 | echo "${ECHO_T}$DLLTOOL" >&6 |
| 8885 | else |
| 8886 | echo "$as_me:$LINENO: result: no" >&5 |
| 8887 | echo "${ECHO_T}no" >&6 |
| 8888 | fi |
| 8889 | |
| 8890 | fi |
| 8891 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 8892 | ac_ct_DLLTOOL=$DLLTOOL |
| 8893 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 8894 | set dummy dlltool; ac_word=$2 |
| 8895 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8896 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8897 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then |
| 8898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8899 | else |
| 8900 | if test -n "$ac_ct_DLLTOOL"; then |
| 8901 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 8902 | else |
| 8903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8904 | for as_dir in $PATH |
| 8905 | do |
| 8906 | IFS=$as_save_IFS |
| 8907 | test -z "$as_dir" && as_dir=. |
| 8908 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8909 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8910 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 8911 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8912 | break 2 |
| 8913 | fi |
| 8914 | done |
| 8915 | done |
| 8916 | |
| 8917 | fi |
| 8918 | fi |
| 8919 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 8920 | if test -n "$ac_ct_DLLTOOL"; then |
| 8921 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 |
| 8922 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 |
| 8923 | else |
| 8924 | echo "$as_me:$LINENO: result: no" >&5 |
| 8925 | echo "${ECHO_T}no" >&6 |
| 8926 | fi |
| 8927 | |
| 8928 | DLLTOOL=$ac_ct_DLLTOOL |
| 8929 | else |
| 8930 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 8931 | fi |
| 8932 | |
| 8933 | if test -n "$ac_tool_prefix"; then |
| 8934 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. |
| 8935 | set dummy ${ac_tool_prefix}windres; ac_word=$2 |
| 8936 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8937 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8938 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
| 8939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8940 | else |
| 8941 | if test -n "$WINDRES"; then |
| 8942 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. |
| 8943 | else |
| 8944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8945 | for as_dir in $PATH |
| 8946 | do |
| 8947 | IFS=$as_save_IFS |
| 8948 | test -z "$as_dir" && as_dir=. |
| 8949 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8950 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8951 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
| 8952 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8953 | break 2 |
| 8954 | fi |
| 8955 | done |
| 8956 | done |
| 8957 | |
| 8958 | fi |
| 8959 | fi |
| 8960 | WINDRES=$ac_cv_prog_WINDRES |
| 8961 | if test -n "$WINDRES"; then |
| 8962 | echo "$as_me:$LINENO: result: $WINDRES" >&5 |
| 8963 | echo "${ECHO_T}$WINDRES" >&6 |
| 8964 | else |
| 8965 | echo "$as_me:$LINENO: result: no" >&5 |
| 8966 | echo "${ECHO_T}no" >&6 |
| 8967 | fi |
| 8968 | |
| 8969 | fi |
| 8970 | if test -z "$ac_cv_prog_WINDRES"; then |
| 8971 | ac_ct_WINDRES=$WINDRES |
| 8972 | # Extract the first word of "windres", so it can be a program name with args. |
| 8973 | set dummy windres; ac_word=$2 |
| 8974 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8975 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8976 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
| 8977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8978 | else |
| 8979 | if test -n "$ac_ct_WINDRES"; then |
| 8980 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. |
| 8981 | else |
| 8982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8983 | for as_dir in $PATH |
| 8984 | do |
| 8985 | IFS=$as_save_IFS |
| 8986 | test -z "$as_dir" && as_dir=. |
| 8987 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8988 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8989 | ac_cv_prog_ac_ct_WINDRES="windres" |
| 8990 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8991 | break 2 |
| 8992 | fi |
| 8993 | done |
| 8994 | done |
| 8995 | |
| 8996 | fi |
| 8997 | fi |
| 8998 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
| 8999 | if test -n "$ac_ct_WINDRES"; then |
| 9000 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 |
| 9001 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 |
| 9002 | else |
| 9003 | echo "$as_me:$LINENO: result: no" >&5 |
| 9004 | echo "${ECHO_T}no" >&6 |
| 9005 | fi |
| 9006 | |
| 9007 | WINDRES=$ac_ct_WINDRES |
| 9008 | else |
| 9009 | WINDRES="$ac_cv_prog_WINDRES" |
| 9010 | fi |
| 9011 | |
| 9012 | |
| 9013 | # Needed for GNU/Hurd. |
| 9014 | if test -n "$ac_tool_prefix"; then |
| 9015 | # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args. |
| 9016 | set dummy ${ac_tool_prefix}mig; ac_word=$2 |
| 9017 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9018 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 9019 | if test "${ac_cv_prog_MIG+set}" = set; then |
| 9020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9021 | else |
| 9022 | if test -n "$MIG"; then |
| 9023 | ac_cv_prog_MIG="$MIG" # Let the user override the test. |
| 9024 | else |
| 9025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9026 | for as_dir in $PATH |
| 9027 | do |
| 9028 | IFS=$as_save_IFS |
| 9029 | test -z "$as_dir" && as_dir=. |
| 9030 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9031 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9032 | ac_cv_prog_MIG="${ac_tool_prefix}mig" |
| 9033 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9034 | break 2 |
| 9035 | fi |
| 9036 | done |
| 9037 | done |
| 9038 | |
| 9039 | fi |
| 9040 | fi |
| 9041 | MIG=$ac_cv_prog_MIG |
| 9042 | if test -n "$MIG"; then |
| 9043 | echo "$as_me:$LINENO: result: $MIG" >&5 |
| 9044 | echo "${ECHO_T}$MIG" >&6 |
| 9045 | else |
| 9046 | echo "$as_me:$LINENO: result: no" >&5 |
| 9047 | echo "${ECHO_T}no" >&6 |
| 9048 | fi |
| 9049 | |
| 9050 | fi |
| 9051 | if test -z "$ac_cv_prog_MIG"; then |
| 9052 | ac_ct_MIG=$MIG |
| 9053 | # Extract the first word of "mig", so it can be a program name with args. |
| 9054 | set dummy mig; ac_word=$2 |
| 9055 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9056 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 9057 | if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then |
| 9058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9059 | else |
| 9060 | if test -n "$ac_ct_MIG"; then |
| 9061 | ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test. |
| 9062 | else |
| 9063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9064 | for as_dir in $PATH |
| 9065 | do |
| 9066 | IFS=$as_save_IFS |
| 9067 | test -z "$as_dir" && as_dir=. |
| 9068 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9069 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9070 | ac_cv_prog_ac_ct_MIG="mig" |
| 9071 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9072 | break 2 |
| 9073 | fi |
| 9074 | done |
| 9075 | done |
| 9076 | |
| 9077 | fi |
| 9078 | fi |
| 9079 | ac_ct_MIG=$ac_cv_prog_ac_ct_MIG |
| 9080 | if test -n "$ac_ct_MIG"; then |
| 9081 | echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5 |
| 9082 | echo "${ECHO_T}$ac_ct_MIG" >&6 |
| 9083 | else |
| 9084 | echo "$as_me:$LINENO: result: no" >&5 |
| 9085 | echo "${ECHO_T}no" >&6 |
| 9086 | fi |
| 9087 | |
| 9088 | MIG=$ac_ct_MIG |
| 9089 | else |
| 9090 | MIG="$ac_cv_prog_MIG" |
| 9091 | fi |
| 9092 | |
| 9093 | |
| 9094 | # ---------------------- # |
| 9095 | # Checks for libraries. # |
| 9096 | # ---------------------- # |
| 9097 | |
| 9098 | # We might need to link with -lm; most simulators need it. |
| 9099 | |
| 9100 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
| 9101 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
| 9102 | if test "${ac_cv_lib_m_main+set}" = set; then |
| 9103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9104 | else |
| 9105 | ac_check_lib_save_LIBS=$LIBS |
| 9106 | LIBS="-lm $LIBS" |
| 9107 | cat >conftest.$ac_ext <<_ACEOF |
| 9108 | /* confdefs.h. */ |
| 9109 | _ACEOF |
| 9110 | cat confdefs.h >>conftest.$ac_ext |
| 9111 | cat >>conftest.$ac_ext <<_ACEOF |
| 9112 | /* end confdefs.h. */ |
| 9113 | |
| 9114 | |
| 9115 | int |
| 9116 | main () |
| 9117 | { |
| 9118 | main (); |
| 9119 | ; |
| 9120 | return 0; |
| 9121 | } |
| 9122 | _ACEOF |
| 9123 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9124 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9125 | (eval $ac_link) 2>conftest.er1 |
| 9126 | ac_status=$? |
| 9127 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9128 | rm -f conftest.er1 |
| 9129 | cat conftest.err >&5 |
| 9130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9131 | (exit $ac_status); } && |
| 9132 | { ac_try='test -z "$ac_c_werror_flag" |
| 9133 | || test ! -s conftest.err' |
| 9134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9135 | (eval $ac_try) 2>&5 |
| 9136 | ac_status=$? |
| 9137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9138 | (exit $ac_status); }; } && |
| 9139 | { ac_try='test -s conftest$ac_exeext' |
| 9140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9141 | (eval $ac_try) 2>&5 |
| 9142 | ac_status=$? |
| 9143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9144 | (exit $ac_status); }; }; then |
| 9145 | ac_cv_lib_m_main=yes |
| 9146 | else |
| 9147 | echo "$as_me: failed program was:" >&5 |
| 9148 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9149 | |
| 9150 | ac_cv_lib_m_main=no |
| 9151 | fi |
| 9152 | rm -f conftest.err conftest.$ac_objext \ |
| 9153 | conftest$ac_exeext conftest.$ac_ext |
| 9154 | LIBS=$ac_check_lib_save_LIBS |
| 9155 | fi |
| 9156 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
| 9157 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
| 9158 | if test $ac_cv_lib_m_main = yes; then |
| 9159 | cat >>confdefs.h <<_ACEOF |
| 9160 | #define HAVE_LIBM 1 |
| 9161 | _ACEOF |
| 9162 | |
| 9163 | LIBS="-lm $LIBS" |
| 9164 | |
| 9165 | fi |
| 9166 | |
| 9167 | |
| 9168 | # We need to link with -lw to get `wctype' on Solaris before Solaris |
| 9169 | # 2.6. Solaris 2.6 and beyond have this function in libc, and have a |
| 9170 | # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1 |
| 9171 | # is known to have this problem). Therefore we avoid libw if we can. |
| 9172 | echo "$as_me:$LINENO: checking for wctype" >&5 |
| 9173 | echo $ECHO_N "checking for wctype... $ECHO_C" >&6 |
| 9174 | if test "${ac_cv_func_wctype+set}" = set; then |
| 9175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9176 | else |
| 9177 | cat >conftest.$ac_ext <<_ACEOF |
| 9178 | /* confdefs.h. */ |
| 9179 | _ACEOF |
| 9180 | cat confdefs.h >>conftest.$ac_ext |
| 9181 | cat >>conftest.$ac_ext <<_ACEOF |
| 9182 | /* end confdefs.h. */ |
| 9183 | /* Define wctype to an innocuous variant, in case <limits.h> declares wctype. |
| 9184 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9185 | #define wctype innocuous_wctype |
| 9186 | |
| 9187 | /* System header to define __stub macros and hopefully few prototypes, |
| 9188 | which can conflict with char wctype (); below. |
| 9189 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9190 | <limits.h> exists even on freestanding compilers. */ |
| 9191 | |
| 9192 | #ifdef __STDC__ |
| 9193 | # include <limits.h> |
| 9194 | #else |
| 9195 | # include <assert.h> |
| 9196 | #endif |
| 9197 | |
| 9198 | #undef wctype |
| 9199 | |
| 9200 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9201 | #ifdef __cplusplus |
| 9202 | extern "C" |
| 9203 | { |
| 9204 | #endif |
| 9205 | /* We use char because int might match the return type of a gcc2 |
| 9206 | builtin and then its argument prototype would still apply. */ |
| 9207 | char wctype (); |
| 9208 | /* The GNU C library defines this for functions which it implements |
| 9209 | to always fail with ENOSYS. Some functions are actually named |
| 9210 | something starting with __ and the normal name is an alias. */ |
| 9211 | #if defined (__stub_wctype) || defined (__stub___wctype) |
| 9212 | choke me |
| 9213 | #else |
| 9214 | char (*f) () = wctype; |
| 9215 | #endif |
| 9216 | #ifdef __cplusplus |
| 9217 | } |
| 9218 | #endif |
| 9219 | |
| 9220 | int |
| 9221 | main () |
| 9222 | { |
| 9223 | return f != wctype; |
| 9224 | ; |
| 9225 | return 0; |
| 9226 | } |
| 9227 | _ACEOF |
| 9228 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9229 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9230 | (eval $ac_link) 2>conftest.er1 |
| 9231 | ac_status=$? |
| 9232 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9233 | rm -f conftest.er1 |
| 9234 | cat conftest.err >&5 |
| 9235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9236 | (exit $ac_status); } && |
| 9237 | { ac_try='test -z "$ac_c_werror_flag" |
| 9238 | || test ! -s conftest.err' |
| 9239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9240 | (eval $ac_try) 2>&5 |
| 9241 | ac_status=$? |
| 9242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9243 | (exit $ac_status); }; } && |
| 9244 | { ac_try='test -s conftest$ac_exeext' |
| 9245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9246 | (eval $ac_try) 2>&5 |
| 9247 | ac_status=$? |
| 9248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9249 | (exit $ac_status); }; }; then |
| 9250 | ac_cv_func_wctype=yes |
| 9251 | else |
| 9252 | echo "$as_me: failed program was:" >&5 |
| 9253 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9254 | |
| 9255 | ac_cv_func_wctype=no |
| 9256 | fi |
| 9257 | rm -f conftest.err conftest.$ac_objext \ |
| 9258 | conftest$ac_exeext conftest.$ac_ext |
| 9259 | fi |
| 9260 | echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5 |
| 9261 | echo "${ECHO_T}$ac_cv_func_wctype" >&6 |
| 9262 | if test $ac_cv_func_wctype = yes; then |
| 9263 | : |
| 9264 | else |
| 9265 | |
| 9266 | echo "$as_me:$LINENO: checking for wctype in -lw" >&5 |
| 9267 | echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6 |
| 9268 | if test "${ac_cv_lib_w_wctype+set}" = set; then |
| 9269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9270 | else |
| 9271 | ac_check_lib_save_LIBS=$LIBS |
| 9272 | LIBS="-lw $LIBS" |
| 9273 | cat >conftest.$ac_ext <<_ACEOF |
| 9274 | /* confdefs.h. */ |
| 9275 | _ACEOF |
| 9276 | cat confdefs.h >>conftest.$ac_ext |
| 9277 | cat >>conftest.$ac_ext <<_ACEOF |
| 9278 | /* end confdefs.h. */ |
| 9279 | |
| 9280 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9281 | #ifdef __cplusplus |
| 9282 | extern "C" |
| 9283 | #endif |
| 9284 | /* We use char because int might match the return type of a gcc2 |
| 9285 | builtin and then its argument prototype would still apply. */ |
| 9286 | char wctype (); |
| 9287 | int |
| 9288 | main () |
| 9289 | { |
| 9290 | wctype (); |
| 9291 | ; |
| 9292 | return 0; |
| 9293 | } |
| 9294 | _ACEOF |
| 9295 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9296 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9297 | (eval $ac_link) 2>conftest.er1 |
| 9298 | ac_status=$? |
| 9299 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9300 | rm -f conftest.er1 |
| 9301 | cat conftest.err >&5 |
| 9302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9303 | (exit $ac_status); } && |
| 9304 | { ac_try='test -z "$ac_c_werror_flag" |
| 9305 | || test ! -s conftest.err' |
| 9306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9307 | (eval $ac_try) 2>&5 |
| 9308 | ac_status=$? |
| 9309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9310 | (exit $ac_status); }; } && |
| 9311 | { ac_try='test -s conftest$ac_exeext' |
| 9312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9313 | (eval $ac_try) 2>&5 |
| 9314 | ac_status=$? |
| 9315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9316 | (exit $ac_status); }; }; then |
| 9317 | ac_cv_lib_w_wctype=yes |
| 9318 | else |
| 9319 | echo "$as_me: failed program was:" >&5 |
| 9320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9321 | |
| 9322 | ac_cv_lib_w_wctype=no |
| 9323 | fi |
| 9324 | rm -f conftest.err conftest.$ac_objext \ |
| 9325 | conftest$ac_exeext conftest.$ac_ext |
| 9326 | LIBS=$ac_check_lib_save_LIBS |
| 9327 | fi |
| 9328 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5 |
| 9329 | echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6 |
| 9330 | if test $ac_cv_lib_w_wctype = yes; then |
| 9331 | cat >>confdefs.h <<_ACEOF |
| 9332 | #define HAVE_LIBW 1 |
| 9333 | _ACEOF |
| 9334 | |
| 9335 | LIBS="-lw $LIBS" |
| 9336 | |
| 9337 | fi |
| 9338 | |
| 9339 | fi |
| 9340 | |
| 9341 | |
| 9342 | # Some systems (e.g. Solaris) have `gethostbyname' in libnsl. |
| 9343 | echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 |
| 9344 | echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6 |
| 9345 | if test "${ac_cv_search_gethostbyname+set}" = set; then |
| 9346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9347 | else |
| 9348 | ac_func_search_save_LIBS=$LIBS |
| 9349 | ac_cv_search_gethostbyname=no |
| 9350 | cat >conftest.$ac_ext <<_ACEOF |
| 9351 | /* confdefs.h. */ |
| 9352 | _ACEOF |
| 9353 | cat confdefs.h >>conftest.$ac_ext |
| 9354 | cat >>conftest.$ac_ext <<_ACEOF |
| 9355 | /* end confdefs.h. */ |
| 9356 | |
| 9357 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9358 | #ifdef __cplusplus |
| 9359 | extern "C" |
| 9360 | #endif |
| 9361 | /* We use char because int might match the return type of a gcc2 |
| 9362 | builtin and then its argument prototype would still apply. */ |
| 9363 | char gethostbyname (); |
| 9364 | int |
| 9365 | main () |
| 9366 | { |
| 9367 | gethostbyname (); |
| 9368 | ; |
| 9369 | return 0; |
| 9370 | } |
| 9371 | _ACEOF |
| 9372 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9373 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9374 | (eval $ac_link) 2>conftest.er1 |
| 9375 | ac_status=$? |
| 9376 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9377 | rm -f conftest.er1 |
| 9378 | cat conftest.err >&5 |
| 9379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9380 | (exit $ac_status); } && |
| 9381 | { ac_try='test -z "$ac_c_werror_flag" |
| 9382 | || test ! -s conftest.err' |
| 9383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9384 | (eval $ac_try) 2>&5 |
| 9385 | ac_status=$? |
| 9386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9387 | (exit $ac_status); }; } && |
| 9388 | { ac_try='test -s conftest$ac_exeext' |
| 9389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9390 | (eval $ac_try) 2>&5 |
| 9391 | ac_status=$? |
| 9392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9393 | (exit $ac_status); }; }; then |
| 9394 | ac_cv_search_gethostbyname="none required" |
| 9395 | else |
| 9396 | echo "$as_me: failed program was:" >&5 |
| 9397 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9398 | |
| 9399 | fi |
| 9400 | rm -f conftest.err conftest.$ac_objext \ |
| 9401 | conftest$ac_exeext conftest.$ac_ext |
| 9402 | if test "$ac_cv_search_gethostbyname" = no; then |
| 9403 | for ac_lib in nsl; do |
| 9404 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9405 | cat >conftest.$ac_ext <<_ACEOF |
| 9406 | /* confdefs.h. */ |
| 9407 | _ACEOF |
| 9408 | cat confdefs.h >>conftest.$ac_ext |
| 9409 | cat >>conftest.$ac_ext <<_ACEOF |
| 9410 | /* end confdefs.h. */ |
| 9411 | |
| 9412 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9413 | #ifdef __cplusplus |
| 9414 | extern "C" |
| 9415 | #endif |
| 9416 | /* We use char because int might match the return type of a gcc2 |
| 9417 | builtin and then its argument prototype would still apply. */ |
| 9418 | char gethostbyname (); |
| 9419 | int |
| 9420 | main () |
| 9421 | { |
| 9422 | gethostbyname (); |
| 9423 | ; |
| 9424 | return 0; |
| 9425 | } |
| 9426 | _ACEOF |
| 9427 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9428 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9429 | (eval $ac_link) 2>conftest.er1 |
| 9430 | ac_status=$? |
| 9431 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9432 | rm -f conftest.er1 |
| 9433 | cat conftest.err >&5 |
| 9434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9435 | (exit $ac_status); } && |
| 9436 | { ac_try='test -z "$ac_c_werror_flag" |
| 9437 | || test ! -s conftest.err' |
| 9438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9439 | (eval $ac_try) 2>&5 |
| 9440 | ac_status=$? |
| 9441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9442 | (exit $ac_status); }; } && |
| 9443 | { ac_try='test -s conftest$ac_exeext' |
| 9444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9445 | (eval $ac_try) 2>&5 |
| 9446 | ac_status=$? |
| 9447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9448 | (exit $ac_status); }; }; then |
| 9449 | ac_cv_search_gethostbyname="-l$ac_lib" |
| 9450 | break |
| 9451 | else |
| 9452 | echo "$as_me: failed program was:" >&5 |
| 9453 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9454 | |
| 9455 | fi |
| 9456 | rm -f conftest.err conftest.$ac_objext \ |
| 9457 | conftest$ac_exeext conftest.$ac_ext |
| 9458 | done |
| 9459 | fi |
| 9460 | LIBS=$ac_func_search_save_LIBS |
| 9461 | fi |
| 9462 | echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 |
| 9463 | echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6 |
| 9464 | if test "$ac_cv_search_gethostbyname" != no; then |
| 9465 | test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" |
| 9466 | |
| 9467 | fi |
| 9468 | |
| 9469 | |
| 9470 | # Some systems (e.g. Solaris) have `socketpair' in libsocket. |
| 9471 | echo "$as_me:$LINENO: checking for library containing socketpair" >&5 |
| 9472 | echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6 |
| 9473 | if test "${ac_cv_search_socketpair+set}" = set; then |
| 9474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9475 | else |
| 9476 | ac_func_search_save_LIBS=$LIBS |
| 9477 | ac_cv_search_socketpair=no |
| 9478 | cat >conftest.$ac_ext <<_ACEOF |
| 9479 | /* confdefs.h. */ |
| 9480 | _ACEOF |
| 9481 | cat confdefs.h >>conftest.$ac_ext |
| 9482 | cat >>conftest.$ac_ext <<_ACEOF |
| 9483 | /* end confdefs.h. */ |
| 9484 | |
| 9485 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9486 | #ifdef __cplusplus |
| 9487 | extern "C" |
| 9488 | #endif |
| 9489 | /* We use char because int might match the return type of a gcc2 |
| 9490 | builtin and then its argument prototype would still apply. */ |
| 9491 | char socketpair (); |
| 9492 | int |
| 9493 | main () |
| 9494 | { |
| 9495 | socketpair (); |
| 9496 | ; |
| 9497 | return 0; |
| 9498 | } |
| 9499 | _ACEOF |
| 9500 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9501 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9502 | (eval $ac_link) 2>conftest.er1 |
| 9503 | ac_status=$? |
| 9504 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9505 | rm -f conftest.er1 |
| 9506 | cat conftest.err >&5 |
| 9507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9508 | (exit $ac_status); } && |
| 9509 | { ac_try='test -z "$ac_c_werror_flag" |
| 9510 | || test ! -s conftest.err' |
| 9511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9512 | (eval $ac_try) 2>&5 |
| 9513 | ac_status=$? |
| 9514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9515 | (exit $ac_status); }; } && |
| 9516 | { ac_try='test -s conftest$ac_exeext' |
| 9517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9518 | (eval $ac_try) 2>&5 |
| 9519 | ac_status=$? |
| 9520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9521 | (exit $ac_status); }; }; then |
| 9522 | ac_cv_search_socketpair="none required" |
| 9523 | else |
| 9524 | echo "$as_me: failed program was:" >&5 |
| 9525 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9526 | |
| 9527 | fi |
| 9528 | rm -f conftest.err conftest.$ac_objext \ |
| 9529 | conftest$ac_exeext conftest.$ac_ext |
| 9530 | if test "$ac_cv_search_socketpair" = no; then |
| 9531 | for ac_lib in socket; do |
| 9532 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9533 | cat >conftest.$ac_ext <<_ACEOF |
| 9534 | /* confdefs.h. */ |
| 9535 | _ACEOF |
| 9536 | cat confdefs.h >>conftest.$ac_ext |
| 9537 | cat >>conftest.$ac_ext <<_ACEOF |
| 9538 | /* end confdefs.h. */ |
| 9539 | |
| 9540 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9541 | #ifdef __cplusplus |
| 9542 | extern "C" |
| 9543 | #endif |
| 9544 | /* We use char because int might match the return type of a gcc2 |
| 9545 | builtin and then its argument prototype would still apply. */ |
| 9546 | char socketpair (); |
| 9547 | int |
| 9548 | main () |
| 9549 | { |
| 9550 | socketpair (); |
| 9551 | ; |
| 9552 | return 0; |
| 9553 | } |
| 9554 | _ACEOF |
| 9555 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9556 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9557 | (eval $ac_link) 2>conftest.er1 |
| 9558 | ac_status=$? |
| 9559 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9560 | rm -f conftest.er1 |
| 9561 | cat conftest.err >&5 |
| 9562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9563 | (exit $ac_status); } && |
| 9564 | { ac_try='test -z "$ac_c_werror_flag" |
| 9565 | || test ! -s conftest.err' |
| 9566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9567 | (eval $ac_try) 2>&5 |
| 9568 | ac_status=$? |
| 9569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9570 | (exit $ac_status); }; } && |
| 9571 | { ac_try='test -s conftest$ac_exeext' |
| 9572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9573 | (eval $ac_try) 2>&5 |
| 9574 | ac_status=$? |
| 9575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9576 | (exit $ac_status); }; }; then |
| 9577 | ac_cv_search_socketpair="-l$ac_lib" |
| 9578 | break |
| 9579 | else |
| 9580 | echo "$as_me: failed program was:" >&5 |
| 9581 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9582 | |
| 9583 | fi |
| 9584 | rm -f conftest.err conftest.$ac_objext \ |
| 9585 | conftest$ac_exeext conftest.$ac_ext |
| 9586 | done |
| 9587 | fi |
| 9588 | LIBS=$ac_func_search_save_LIBS |
| 9589 | fi |
| 9590 | echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5 |
| 9591 | echo "${ECHO_T}$ac_cv_search_socketpair" >&6 |
| 9592 | if test "$ac_cv_search_socketpair" != no; then |
| 9593 | test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS" |
| 9594 | |
| 9595 | fi |
| 9596 | |
| 9597 | |
| 9598 | # Link in zlib if we can. This allows us to read compressed debug sections. |
| 9599 | echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5 |
| 9600 | echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6 |
| 9601 | if test "${ac_cv_search_zlibVersion+set}" = set; then |
| 9602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9603 | else |
| 9604 | ac_func_search_save_LIBS=$LIBS |
| 9605 | ac_cv_search_zlibVersion=no |
| 9606 | cat >conftest.$ac_ext <<_ACEOF |
| 9607 | /* confdefs.h. */ |
| 9608 | _ACEOF |
| 9609 | cat confdefs.h >>conftest.$ac_ext |
| 9610 | cat >>conftest.$ac_ext <<_ACEOF |
| 9611 | /* end confdefs.h. */ |
| 9612 | |
| 9613 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9614 | #ifdef __cplusplus |
| 9615 | extern "C" |
| 9616 | #endif |
| 9617 | /* We use char because int might match the return type of a gcc2 |
| 9618 | builtin and then its argument prototype would still apply. */ |
| 9619 | char zlibVersion (); |
| 9620 | int |
| 9621 | main () |
| 9622 | { |
| 9623 | zlibVersion (); |
| 9624 | ; |
| 9625 | return 0; |
| 9626 | } |
| 9627 | _ACEOF |
| 9628 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9629 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9630 | (eval $ac_link) 2>conftest.er1 |
| 9631 | ac_status=$? |
| 9632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9633 | rm -f conftest.er1 |
| 9634 | cat conftest.err >&5 |
| 9635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9636 | (exit $ac_status); } && |
| 9637 | { ac_try='test -z "$ac_c_werror_flag" |
| 9638 | || test ! -s conftest.err' |
| 9639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9640 | (eval $ac_try) 2>&5 |
| 9641 | ac_status=$? |
| 9642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9643 | (exit $ac_status); }; } && |
| 9644 | { ac_try='test -s conftest$ac_exeext' |
| 9645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9646 | (eval $ac_try) 2>&5 |
| 9647 | ac_status=$? |
| 9648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9649 | (exit $ac_status); }; }; then |
| 9650 | ac_cv_search_zlibVersion="none required" |
| 9651 | else |
| 9652 | echo "$as_me: failed program was:" >&5 |
| 9653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9654 | |
| 9655 | fi |
| 9656 | rm -f conftest.err conftest.$ac_objext \ |
| 9657 | conftest$ac_exeext conftest.$ac_ext |
| 9658 | if test "$ac_cv_search_zlibVersion" = no; then |
| 9659 | for ac_lib in z; do |
| 9660 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9661 | cat >conftest.$ac_ext <<_ACEOF |
| 9662 | /* confdefs.h. */ |
| 9663 | _ACEOF |
| 9664 | cat confdefs.h >>conftest.$ac_ext |
| 9665 | cat >>conftest.$ac_ext <<_ACEOF |
| 9666 | /* end confdefs.h. */ |
| 9667 | |
| 9668 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9669 | #ifdef __cplusplus |
| 9670 | extern "C" |
| 9671 | #endif |
| 9672 | /* We use char because int might match the return type of a gcc2 |
| 9673 | builtin and then its argument prototype would still apply. */ |
| 9674 | char zlibVersion (); |
| 9675 | int |
| 9676 | main () |
| 9677 | { |
| 9678 | zlibVersion (); |
| 9679 | ; |
| 9680 | return 0; |
| 9681 | } |
| 9682 | _ACEOF |
| 9683 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9684 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9685 | (eval $ac_link) 2>conftest.er1 |
| 9686 | ac_status=$? |
| 9687 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9688 | rm -f conftest.er1 |
| 9689 | cat conftest.err >&5 |
| 9690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9691 | (exit $ac_status); } && |
| 9692 | { ac_try='test -z "$ac_c_werror_flag" |
| 9693 | || test ! -s conftest.err' |
| 9694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9695 | (eval $ac_try) 2>&5 |
| 9696 | ac_status=$? |
| 9697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9698 | (exit $ac_status); }; } && |
| 9699 | { ac_try='test -s conftest$ac_exeext' |
| 9700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9701 | (eval $ac_try) 2>&5 |
| 9702 | ac_status=$? |
| 9703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9704 | (exit $ac_status); }; }; then |
| 9705 | ac_cv_search_zlibVersion="-l$ac_lib" |
| 9706 | break |
| 9707 | else |
| 9708 | echo "$as_me: failed program was:" >&5 |
| 9709 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9710 | |
| 9711 | fi |
| 9712 | rm -f conftest.err conftest.$ac_objext \ |
| 9713 | conftest$ac_exeext conftest.$ac_ext |
| 9714 | done |
| 9715 | fi |
| 9716 | LIBS=$ac_func_search_save_LIBS |
| 9717 | fi |
| 9718 | echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5 |
| 9719 | echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6 |
| 9720 | if test "$ac_cv_search_zlibVersion" != no; then |
| 9721 | test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS" |
| 9722 | |
| 9723 | for ac_header in zlib.h |
| 9724 | do |
| 9725 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9726 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9727 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9728 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9729 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9731 | fi |
| 9732 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9733 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9734 | else |
| 9735 | # Is the header compilable? |
| 9736 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9737 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9738 | cat >conftest.$ac_ext <<_ACEOF |
| 9739 | /* confdefs.h. */ |
| 9740 | _ACEOF |
| 9741 | cat confdefs.h >>conftest.$ac_ext |
| 9742 | cat >>conftest.$ac_ext <<_ACEOF |
| 9743 | /* end confdefs.h. */ |
| 9744 | $ac_includes_default |
| 9745 | #include <$ac_header> |
| 9746 | _ACEOF |
| 9747 | rm -f conftest.$ac_objext |
| 9748 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9749 | (eval $ac_compile) 2>conftest.er1 |
| 9750 | ac_status=$? |
| 9751 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9752 | rm -f conftest.er1 |
| 9753 | cat conftest.err >&5 |
| 9754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9755 | (exit $ac_status); } && |
| 9756 | { ac_try='test -z "$ac_c_werror_flag" |
| 9757 | || test ! -s conftest.err' |
| 9758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9759 | (eval $ac_try) 2>&5 |
| 9760 | ac_status=$? |
| 9761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9762 | (exit $ac_status); }; } && |
| 9763 | { ac_try='test -s conftest.$ac_objext' |
| 9764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9765 | (eval $ac_try) 2>&5 |
| 9766 | ac_status=$? |
| 9767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9768 | (exit $ac_status); }; }; then |
| 9769 | ac_header_compiler=yes |
| 9770 | else |
| 9771 | echo "$as_me: failed program was:" >&5 |
| 9772 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9773 | |
| 9774 | ac_header_compiler=no |
| 9775 | fi |
| 9776 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9777 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9778 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9779 | |
| 9780 | # Is the header present? |
| 9781 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9782 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9783 | cat >conftest.$ac_ext <<_ACEOF |
| 9784 | /* confdefs.h. */ |
| 9785 | _ACEOF |
| 9786 | cat confdefs.h >>conftest.$ac_ext |
| 9787 | cat >>conftest.$ac_ext <<_ACEOF |
| 9788 | /* end confdefs.h. */ |
| 9789 | #include <$ac_header> |
| 9790 | _ACEOF |
| 9791 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9792 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9793 | ac_status=$? |
| 9794 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9795 | rm -f conftest.er1 |
| 9796 | cat conftest.err >&5 |
| 9797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9798 | (exit $ac_status); } >/dev/null; then |
| 9799 | if test -s conftest.err; then |
| 9800 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9801 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9802 | else |
| 9803 | ac_cpp_err= |
| 9804 | fi |
| 9805 | else |
| 9806 | ac_cpp_err=yes |
| 9807 | fi |
| 9808 | if test -z "$ac_cpp_err"; then |
| 9809 | ac_header_preproc=yes |
| 9810 | else |
| 9811 | echo "$as_me: failed program was:" >&5 |
| 9812 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9813 | |
| 9814 | ac_header_preproc=no |
| 9815 | fi |
| 9816 | rm -f conftest.err conftest.$ac_ext |
| 9817 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9818 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9819 | |
| 9820 | # So? What about this header? |
| 9821 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9822 | yes:no: ) |
| 9823 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9824 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9825 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9826 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9827 | ac_header_preproc=yes |
| 9828 | ;; |
| 9829 | no:yes:* ) |
| 9830 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9831 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9832 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9833 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9834 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9835 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9836 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9837 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9838 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9839 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9840 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9841 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9842 | ( |
| 9843 | cat <<\_ASBOX |
| 9844 | ## ------------------------------------------ ## |
| 9845 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 9846 | ## ------------------------------------------ ## |
| 9847 | _ASBOX |
| 9848 | ) | |
| 9849 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9850 | ;; |
| 9851 | esac |
| 9852 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9853 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9854 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9856 | else |
| 9857 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9858 | fi |
| 9859 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9860 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9861 | |
| 9862 | fi |
| 9863 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9864 | cat >>confdefs.h <<_ACEOF |
| 9865 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9866 | _ACEOF |
| 9867 | |
| 9868 | fi |
| 9869 | |
| 9870 | done |
| 9871 | |
| 9872 | fi |
| 9873 | |
| 9874 | |
| 9875 | # Link in zlib if we can. This allows us to read compressed debug sections. |
| 9876 | echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5 |
| 9877 | echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6 |
| 9878 | if test "${ac_cv_search_zlibVersion+set}" = set; then |
| 9879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9880 | else |
| 9881 | ac_func_search_save_LIBS=$LIBS |
| 9882 | ac_cv_search_zlibVersion=no |
| 9883 | cat >conftest.$ac_ext <<_ACEOF |
| 9884 | /* confdefs.h. */ |
| 9885 | _ACEOF |
| 9886 | cat confdefs.h >>conftest.$ac_ext |
| 9887 | cat >>conftest.$ac_ext <<_ACEOF |
| 9888 | /* end confdefs.h. */ |
| 9889 | |
| 9890 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9891 | #ifdef __cplusplus |
| 9892 | extern "C" |
| 9893 | #endif |
| 9894 | /* We use char because int might match the return type of a gcc2 |
| 9895 | builtin and then its argument prototype would still apply. */ |
| 9896 | char zlibVersion (); |
| 9897 | int |
| 9898 | main () |
| 9899 | { |
| 9900 | zlibVersion (); |
| 9901 | ; |
| 9902 | return 0; |
| 9903 | } |
| 9904 | _ACEOF |
| 9905 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9906 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9907 | (eval $ac_link) 2>conftest.er1 |
| 9908 | ac_status=$? |
| 9909 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9910 | rm -f conftest.er1 |
| 9911 | cat conftest.err >&5 |
| 9912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9913 | (exit $ac_status); } && |
| 9914 | { ac_try='test -z "$ac_c_werror_flag" |
| 9915 | || test ! -s conftest.err' |
| 9916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9917 | (eval $ac_try) 2>&5 |
| 9918 | ac_status=$? |
| 9919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9920 | (exit $ac_status); }; } && |
| 9921 | { ac_try='test -s conftest$ac_exeext' |
| 9922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9923 | (eval $ac_try) 2>&5 |
| 9924 | ac_status=$? |
| 9925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9926 | (exit $ac_status); }; }; then |
| 9927 | ac_cv_search_zlibVersion="none required" |
| 9928 | else |
| 9929 | echo "$as_me: failed program was:" >&5 |
| 9930 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9931 | |
| 9932 | fi |
| 9933 | rm -f conftest.err conftest.$ac_objext \ |
| 9934 | conftest$ac_exeext conftest.$ac_ext |
| 9935 | if test "$ac_cv_search_zlibVersion" = no; then |
| 9936 | for ac_lib in z; do |
| 9937 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9938 | cat >conftest.$ac_ext <<_ACEOF |
| 9939 | /* confdefs.h. */ |
| 9940 | _ACEOF |
| 9941 | cat confdefs.h >>conftest.$ac_ext |
| 9942 | cat >>conftest.$ac_ext <<_ACEOF |
| 9943 | /* end confdefs.h. */ |
| 9944 | |
| 9945 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9946 | #ifdef __cplusplus |
| 9947 | extern "C" |
| 9948 | #endif |
| 9949 | /* We use char because int might match the return type of a gcc2 |
| 9950 | builtin and then its argument prototype would still apply. */ |
| 9951 | char zlibVersion (); |
| 9952 | int |
| 9953 | main () |
| 9954 | { |
| 9955 | zlibVersion (); |
| 9956 | ; |
| 9957 | return 0; |
| 9958 | } |
| 9959 | _ACEOF |
| 9960 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9961 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9962 | (eval $ac_link) 2>conftest.er1 |
| 9963 | ac_status=$? |
| 9964 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9965 | rm -f conftest.er1 |
| 9966 | cat conftest.err >&5 |
| 9967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9968 | (exit $ac_status); } && |
| 9969 | { ac_try='test -z "$ac_c_werror_flag" |
| 9970 | || test ! -s conftest.err' |
| 9971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9972 | (eval $ac_try) 2>&5 |
| 9973 | ac_status=$? |
| 9974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9975 | (exit $ac_status); }; } && |
| 9976 | { ac_try='test -s conftest$ac_exeext' |
| 9977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9978 | (eval $ac_try) 2>&5 |
| 9979 | ac_status=$? |
| 9980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9981 | (exit $ac_status); }; }; then |
| 9982 | ac_cv_search_zlibVersion="-l$ac_lib" |
| 9983 | break |
| 9984 | else |
| 9985 | echo "$as_me: failed program was:" >&5 |
| 9986 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9987 | |
| 9988 | fi |
| 9989 | rm -f conftest.err conftest.$ac_objext \ |
| 9990 | conftest$ac_exeext conftest.$ac_ext |
| 9991 | done |
| 9992 | fi |
| 9993 | LIBS=$ac_func_search_save_LIBS |
| 9994 | fi |
| 9995 | echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5 |
| 9996 | echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6 |
| 9997 | if test "$ac_cv_search_zlibVersion" != no; then |
| 9998 | test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS" |
| 9999 | |
| 10000 | for ac_header in zlib.h |
| 10001 | do |
| 10002 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10003 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10004 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10005 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10006 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10008 | fi |
| 10009 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10010 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10011 | else |
| 10012 | # Is the header compilable? |
| 10013 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10014 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10015 | cat >conftest.$ac_ext <<_ACEOF |
| 10016 | /* confdefs.h. */ |
| 10017 | _ACEOF |
| 10018 | cat confdefs.h >>conftest.$ac_ext |
| 10019 | cat >>conftest.$ac_ext <<_ACEOF |
| 10020 | /* end confdefs.h. */ |
| 10021 | $ac_includes_default |
| 10022 | #include <$ac_header> |
| 10023 | _ACEOF |
| 10024 | rm -f conftest.$ac_objext |
| 10025 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10026 | (eval $ac_compile) 2>conftest.er1 |
| 10027 | ac_status=$? |
| 10028 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10029 | rm -f conftest.er1 |
| 10030 | cat conftest.err >&5 |
| 10031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10032 | (exit $ac_status); } && |
| 10033 | { ac_try='test -z "$ac_c_werror_flag" |
| 10034 | || test ! -s conftest.err' |
| 10035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10036 | (eval $ac_try) 2>&5 |
| 10037 | ac_status=$? |
| 10038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10039 | (exit $ac_status); }; } && |
| 10040 | { ac_try='test -s conftest.$ac_objext' |
| 10041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10042 | (eval $ac_try) 2>&5 |
| 10043 | ac_status=$? |
| 10044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10045 | (exit $ac_status); }; }; then |
| 10046 | ac_header_compiler=yes |
| 10047 | else |
| 10048 | echo "$as_me: failed program was:" >&5 |
| 10049 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10050 | |
| 10051 | ac_header_compiler=no |
| 10052 | fi |
| 10053 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10054 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10055 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10056 | |
| 10057 | # Is the header present? |
| 10058 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10059 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10060 | cat >conftest.$ac_ext <<_ACEOF |
| 10061 | /* confdefs.h. */ |
| 10062 | _ACEOF |
| 10063 | cat confdefs.h >>conftest.$ac_ext |
| 10064 | cat >>conftest.$ac_ext <<_ACEOF |
| 10065 | /* end confdefs.h. */ |
| 10066 | #include <$ac_header> |
| 10067 | _ACEOF |
| 10068 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10069 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10070 | ac_status=$? |
| 10071 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10072 | rm -f conftest.er1 |
| 10073 | cat conftest.err >&5 |
| 10074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10075 | (exit $ac_status); } >/dev/null; then |
| 10076 | if test -s conftest.err; then |
| 10077 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10078 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10079 | else |
| 10080 | ac_cpp_err= |
| 10081 | fi |
| 10082 | else |
| 10083 | ac_cpp_err=yes |
| 10084 | fi |
| 10085 | if test -z "$ac_cpp_err"; then |
| 10086 | ac_header_preproc=yes |
| 10087 | else |
| 10088 | echo "$as_me: failed program was:" >&5 |
| 10089 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10090 | |
| 10091 | ac_header_preproc=no |
| 10092 | fi |
| 10093 | rm -f conftest.err conftest.$ac_ext |
| 10094 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10095 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10096 | |
| 10097 | # So? What about this header? |
| 10098 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10099 | yes:no: ) |
| 10100 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10101 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10102 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10103 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10104 | ac_header_preproc=yes |
| 10105 | ;; |
| 10106 | no:yes:* ) |
| 10107 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10108 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10109 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10110 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10111 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10112 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10113 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10114 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10115 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10116 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10117 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10118 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10119 | ( |
| 10120 | cat <<\_ASBOX |
| 10121 | ## ------------------------------------------ ## |
| 10122 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 10123 | ## ------------------------------------------ ## |
| 10124 | _ASBOX |
| 10125 | ) | |
| 10126 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10127 | ;; |
| 10128 | esac |
| 10129 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10130 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10131 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10133 | else |
| 10134 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10135 | fi |
| 10136 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10137 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10138 | |
| 10139 | fi |
| 10140 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10141 | cat >>confdefs.h <<_ACEOF |
| 10142 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10143 | _ACEOF |
| 10144 | |
| 10145 | fi |
| 10146 | |
| 10147 | done |
| 10148 | |
| 10149 | fi |
| 10150 | |
| 10151 | |
| 10152 | # For the TUI, we need enhanced curses functionality. |
| 10153 | # |
| 10154 | # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied |
| 10155 | # curses library because the latter might not provide all the |
| 10156 | # functionality we need. However, this leads to problems on systems |
| 10157 | # where the linker searches /usr/local/lib, but the compiler doesn't |
| 10158 | # search /usr/local/include, if ncurses is installed in /usr/local. A |
| 10159 | # default installation of ncurses on alpha*-dec-osf* will lead to such |
| 10160 | # a situation. |
| 10161 | echo "$as_me:$LINENO: checking for library containing waddstr" >&5 |
| 10162 | echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6 |
| 10163 | if test "${ac_cv_search_waddstr+set}" = set; then |
| 10164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10165 | else |
| 10166 | ac_func_search_save_LIBS=$LIBS |
| 10167 | ac_cv_search_waddstr=no |
| 10168 | cat >conftest.$ac_ext <<_ACEOF |
| 10169 | /* confdefs.h. */ |
| 10170 | _ACEOF |
| 10171 | cat confdefs.h >>conftest.$ac_ext |
| 10172 | cat >>conftest.$ac_ext <<_ACEOF |
| 10173 | /* end confdefs.h. */ |
| 10174 | |
| 10175 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10176 | #ifdef __cplusplus |
| 10177 | extern "C" |
| 10178 | #endif |
| 10179 | /* We use char because int might match the return type of a gcc2 |
| 10180 | builtin and then its argument prototype would still apply. */ |
| 10181 | char waddstr (); |
| 10182 | int |
| 10183 | main () |
| 10184 | { |
| 10185 | waddstr (); |
| 10186 | ; |
| 10187 | return 0; |
| 10188 | } |
| 10189 | _ACEOF |
| 10190 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10192 | (eval $ac_link) 2>conftest.er1 |
| 10193 | ac_status=$? |
| 10194 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10195 | rm -f conftest.er1 |
| 10196 | cat conftest.err >&5 |
| 10197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10198 | (exit $ac_status); } && |
| 10199 | { ac_try='test -z "$ac_c_werror_flag" |
| 10200 | || test ! -s conftest.err' |
| 10201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10202 | (eval $ac_try) 2>&5 |
| 10203 | ac_status=$? |
| 10204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10205 | (exit $ac_status); }; } && |
| 10206 | { ac_try='test -s conftest$ac_exeext' |
| 10207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10208 | (eval $ac_try) 2>&5 |
| 10209 | ac_status=$? |
| 10210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10211 | (exit $ac_status); }; }; then |
| 10212 | ac_cv_search_waddstr="none required" |
| 10213 | else |
| 10214 | echo "$as_me: failed program was:" >&5 |
| 10215 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10216 | |
| 10217 | fi |
| 10218 | rm -f conftest.err conftest.$ac_objext \ |
| 10219 | conftest$ac_exeext conftest.$ac_ext |
| 10220 | if test "$ac_cv_search_waddstr" = no; then |
| 10221 | for ac_lib in ncurses cursesX curses; do |
| 10222 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10223 | cat >conftest.$ac_ext <<_ACEOF |
| 10224 | /* confdefs.h. */ |
| 10225 | _ACEOF |
| 10226 | cat confdefs.h >>conftest.$ac_ext |
| 10227 | cat >>conftest.$ac_ext <<_ACEOF |
| 10228 | /* end confdefs.h. */ |
| 10229 | |
| 10230 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10231 | #ifdef __cplusplus |
| 10232 | extern "C" |
| 10233 | #endif |
| 10234 | /* We use char because int might match the return type of a gcc2 |
| 10235 | builtin and then its argument prototype would still apply. */ |
| 10236 | char waddstr (); |
| 10237 | int |
| 10238 | main () |
| 10239 | { |
| 10240 | waddstr (); |
| 10241 | ; |
| 10242 | return 0; |
| 10243 | } |
| 10244 | _ACEOF |
| 10245 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10246 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10247 | (eval $ac_link) 2>conftest.er1 |
| 10248 | ac_status=$? |
| 10249 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10250 | rm -f conftest.er1 |
| 10251 | cat conftest.err >&5 |
| 10252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10253 | (exit $ac_status); } && |
| 10254 | { ac_try='test -z "$ac_c_werror_flag" |
| 10255 | || test ! -s conftest.err' |
| 10256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10257 | (eval $ac_try) 2>&5 |
| 10258 | ac_status=$? |
| 10259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10260 | (exit $ac_status); }; } && |
| 10261 | { ac_try='test -s conftest$ac_exeext' |
| 10262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10263 | (eval $ac_try) 2>&5 |
| 10264 | ac_status=$? |
| 10265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10266 | (exit $ac_status); }; }; then |
| 10267 | ac_cv_search_waddstr="-l$ac_lib" |
| 10268 | break |
| 10269 | else |
| 10270 | echo "$as_me: failed program was:" >&5 |
| 10271 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10272 | |
| 10273 | fi |
| 10274 | rm -f conftest.err conftest.$ac_objext \ |
| 10275 | conftest$ac_exeext conftest.$ac_ext |
| 10276 | done |
| 10277 | fi |
| 10278 | LIBS=$ac_func_search_save_LIBS |
| 10279 | fi |
| 10280 | echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5 |
| 10281 | echo "${ECHO_T}$ac_cv_search_waddstr" >&6 |
| 10282 | if test "$ac_cv_search_waddstr" != no; then |
| 10283 | test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS" |
| 10284 | |
| 10285 | fi |
| 10286 | |
| 10287 | |
| 10288 | # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c). |
| 10289 | echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5 |
| 10290 | echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6 |
| 10291 | if test "${ac_cv_search_dlgetmodinfo+set}" = set; then |
| 10292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10293 | else |
| 10294 | ac_func_search_save_LIBS=$LIBS |
| 10295 | ac_cv_search_dlgetmodinfo=no |
| 10296 | cat >conftest.$ac_ext <<_ACEOF |
| 10297 | /* confdefs.h. */ |
| 10298 | _ACEOF |
| 10299 | cat confdefs.h >>conftest.$ac_ext |
| 10300 | cat >>conftest.$ac_ext <<_ACEOF |
| 10301 | /* end confdefs.h. */ |
| 10302 | |
| 10303 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10304 | #ifdef __cplusplus |
| 10305 | extern "C" |
| 10306 | #endif |
| 10307 | /* We use char because int might match the return type of a gcc2 |
| 10308 | builtin and then its argument prototype would still apply. */ |
| 10309 | char dlgetmodinfo (); |
| 10310 | int |
| 10311 | main () |
| 10312 | { |
| 10313 | dlgetmodinfo (); |
| 10314 | ; |
| 10315 | return 0; |
| 10316 | } |
| 10317 | _ACEOF |
| 10318 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10319 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10320 | (eval $ac_link) 2>conftest.er1 |
| 10321 | ac_status=$? |
| 10322 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10323 | rm -f conftest.er1 |
| 10324 | cat conftest.err >&5 |
| 10325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10326 | (exit $ac_status); } && |
| 10327 | { ac_try='test -z "$ac_c_werror_flag" |
| 10328 | || test ! -s conftest.err' |
| 10329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10330 | (eval $ac_try) 2>&5 |
| 10331 | ac_status=$? |
| 10332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10333 | (exit $ac_status); }; } && |
| 10334 | { ac_try='test -s conftest$ac_exeext' |
| 10335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10336 | (eval $ac_try) 2>&5 |
| 10337 | ac_status=$? |
| 10338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10339 | (exit $ac_status); }; }; then |
| 10340 | ac_cv_search_dlgetmodinfo="none required" |
| 10341 | else |
| 10342 | echo "$as_me: failed program was:" >&5 |
| 10343 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10344 | |
| 10345 | fi |
| 10346 | rm -f conftest.err conftest.$ac_objext \ |
| 10347 | conftest$ac_exeext conftest.$ac_ext |
| 10348 | if test "$ac_cv_search_dlgetmodinfo" = no; then |
| 10349 | for ac_lib in dl xpdl; do |
| 10350 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10351 | cat >conftest.$ac_ext <<_ACEOF |
| 10352 | /* confdefs.h. */ |
| 10353 | _ACEOF |
| 10354 | cat confdefs.h >>conftest.$ac_ext |
| 10355 | cat >>conftest.$ac_ext <<_ACEOF |
| 10356 | /* end confdefs.h. */ |
| 10357 | |
| 10358 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10359 | #ifdef __cplusplus |
| 10360 | extern "C" |
| 10361 | #endif |
| 10362 | /* We use char because int might match the return type of a gcc2 |
| 10363 | builtin and then its argument prototype would still apply. */ |
| 10364 | char dlgetmodinfo (); |
| 10365 | int |
| 10366 | main () |
| 10367 | { |
| 10368 | dlgetmodinfo (); |
| 10369 | ; |
| 10370 | return 0; |
| 10371 | } |
| 10372 | _ACEOF |
| 10373 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10374 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10375 | (eval $ac_link) 2>conftest.er1 |
| 10376 | ac_status=$? |
| 10377 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10378 | rm -f conftest.er1 |
| 10379 | cat conftest.err >&5 |
| 10380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10381 | (exit $ac_status); } && |
| 10382 | { ac_try='test -z "$ac_c_werror_flag" |
| 10383 | || test ! -s conftest.err' |
| 10384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10385 | (eval $ac_try) 2>&5 |
| 10386 | ac_status=$? |
| 10387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10388 | (exit $ac_status); }; } && |
| 10389 | { ac_try='test -s conftest$ac_exeext' |
| 10390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10391 | (eval $ac_try) 2>&5 |
| 10392 | ac_status=$? |
| 10393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10394 | (exit $ac_status); }; }; then |
| 10395 | ac_cv_search_dlgetmodinfo="-l$ac_lib" |
| 10396 | break |
| 10397 | else |
| 10398 | echo "$as_me: failed program was:" >&5 |
| 10399 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10400 | |
| 10401 | fi |
| 10402 | rm -f conftest.err conftest.$ac_objext \ |
| 10403 | conftest$ac_exeext conftest.$ac_ext |
| 10404 | done |
| 10405 | fi |
| 10406 | LIBS=$ac_func_search_save_LIBS |
| 10407 | fi |
| 10408 | echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5 |
| 10409 | echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6 |
| 10410 | if test "$ac_cv_search_dlgetmodinfo" != no; then |
| 10411 | test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS" |
| 10412 | |
| 10413 | fi |
| 10414 | |
| 10415 | |
| 10416 | # Since GDB uses Readline, we need termcap functionality. In many |
| 10417 | # cases this will be provided by the curses library, but some systems |
| 10418 | # have a seperate termcap library, or no curses library at all. |
| 10419 | |
| 10420 | case $host_os in |
| 10421 | cygwin*) |
| 10422 | if test -d $srcdir/libtermcap; then |
| 10423 | LIBS="../libtermcap/libtermcap.a $LIBS" |
| 10424 | ac_cv_search_tgetent="../libtermcap/libtermcap.a" |
| 10425 | fi ;; |
| 10426 | go32* | *djgpp*) |
| 10427 | ac_cv_search_tgetent="none required" |
| 10428 | ;; |
| 10429 | *mingw32*) |
| 10430 | ac_cv_search_tgetent="none required" |
| 10431 | CONFIG_OBS="$CONFIG_OBS win32-termcap.o" |
| 10432 | ;; |
| 10433 | esac |
| 10434 | |
| 10435 | # These are the libraries checked by Readline. |
| 10436 | echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
| 10437 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6 |
| 10438 | if test "${ac_cv_search_tgetent+set}" = set; then |
| 10439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10440 | else |
| 10441 | ac_func_search_save_LIBS=$LIBS |
| 10442 | ac_cv_search_tgetent=no |
| 10443 | cat >conftest.$ac_ext <<_ACEOF |
| 10444 | /* confdefs.h. */ |
| 10445 | _ACEOF |
| 10446 | cat confdefs.h >>conftest.$ac_ext |
| 10447 | cat >>conftest.$ac_ext <<_ACEOF |
| 10448 | /* end confdefs.h. */ |
| 10449 | |
| 10450 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10451 | #ifdef __cplusplus |
| 10452 | extern "C" |
| 10453 | #endif |
| 10454 | /* We use char because int might match the return type of a gcc2 |
| 10455 | builtin and then its argument prototype would still apply. */ |
| 10456 | char tgetent (); |
| 10457 | int |
| 10458 | main () |
| 10459 | { |
| 10460 | tgetent (); |
| 10461 | ; |
| 10462 | return 0; |
| 10463 | } |
| 10464 | _ACEOF |
| 10465 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10466 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10467 | (eval $ac_link) 2>conftest.er1 |
| 10468 | ac_status=$? |
| 10469 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10470 | rm -f conftest.er1 |
| 10471 | cat conftest.err >&5 |
| 10472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10473 | (exit $ac_status); } && |
| 10474 | { ac_try='test -z "$ac_c_werror_flag" |
| 10475 | || test ! -s conftest.err' |
| 10476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10477 | (eval $ac_try) 2>&5 |
| 10478 | ac_status=$? |
| 10479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10480 | (exit $ac_status); }; } && |
| 10481 | { ac_try='test -s conftest$ac_exeext' |
| 10482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10483 | (eval $ac_try) 2>&5 |
| 10484 | ac_status=$? |
| 10485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10486 | (exit $ac_status); }; }; then |
| 10487 | ac_cv_search_tgetent="none required" |
| 10488 | else |
| 10489 | echo "$as_me: failed program was:" >&5 |
| 10490 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10491 | |
| 10492 | fi |
| 10493 | rm -f conftest.err conftest.$ac_objext \ |
| 10494 | conftest$ac_exeext conftest.$ac_ext |
| 10495 | if test "$ac_cv_search_tgetent" = no; then |
| 10496 | for ac_lib in termcap tinfo curses ncurses; do |
| 10497 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10498 | cat >conftest.$ac_ext <<_ACEOF |
| 10499 | /* confdefs.h. */ |
| 10500 | _ACEOF |
| 10501 | cat confdefs.h >>conftest.$ac_ext |
| 10502 | cat >>conftest.$ac_ext <<_ACEOF |
| 10503 | /* end confdefs.h. */ |
| 10504 | |
| 10505 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10506 | #ifdef __cplusplus |
| 10507 | extern "C" |
| 10508 | #endif |
| 10509 | /* We use char because int might match the return type of a gcc2 |
| 10510 | builtin and then its argument prototype would still apply. */ |
| 10511 | char tgetent (); |
| 10512 | int |
| 10513 | main () |
| 10514 | { |
| 10515 | tgetent (); |
| 10516 | ; |
| 10517 | return 0; |
| 10518 | } |
| 10519 | _ACEOF |
| 10520 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10521 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10522 | (eval $ac_link) 2>conftest.er1 |
| 10523 | ac_status=$? |
| 10524 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10525 | rm -f conftest.er1 |
| 10526 | cat conftest.err >&5 |
| 10527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10528 | (exit $ac_status); } && |
| 10529 | { ac_try='test -z "$ac_c_werror_flag" |
| 10530 | || test ! -s conftest.err' |
| 10531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10532 | (eval $ac_try) 2>&5 |
| 10533 | ac_status=$? |
| 10534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10535 | (exit $ac_status); }; } && |
| 10536 | { ac_try='test -s conftest$ac_exeext' |
| 10537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10538 | (eval $ac_try) 2>&5 |
| 10539 | ac_status=$? |
| 10540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10541 | (exit $ac_status); }; }; then |
| 10542 | ac_cv_search_tgetent="-l$ac_lib" |
| 10543 | break |
| 10544 | else |
| 10545 | echo "$as_me: failed program was:" >&5 |
| 10546 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10547 | |
| 10548 | fi |
| 10549 | rm -f conftest.err conftest.$ac_objext \ |
| 10550 | conftest$ac_exeext conftest.$ac_ext |
| 10551 | done |
| 10552 | fi |
| 10553 | LIBS=$ac_func_search_save_LIBS |
| 10554 | fi |
| 10555 | echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
| 10556 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6 |
| 10557 | if test "$ac_cv_search_tgetent" != no; then |
| 10558 | test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" |
| 10559 | |
| 10560 | fi |
| 10561 | |
| 10562 | |
| 10563 | if test "$ac_cv_search_tgetent" = no; then |
| 10564 | { { echo "$as_me:$LINENO: error: no termcap library found" >&5 |
| 10565 | echo "$as_me: error: no termcap library found" >&2;} |
| 10566 | { (exit 1); exit 1; }; } |
| 10567 | fi |
| 10568 | |
| 10569 | |
| 10570 | # Check whether --with-system-readline or --without-system-readline was given. |
| 10571 | if test "${with_system_readline+set}" = set; then |
| 10572 | withval="$with_system_readline" |
| 10573 | |
| 10574 | fi; |
| 10575 | |
| 10576 | if test "$with_system_readline" = yes; then |
| 10577 | READLINE=-lreadline |
| 10578 | READLINE_DEPS= |
| 10579 | READLINE_CFLAGS= |
| 10580 | else |
| 10581 | READLINE='$(READLINE_DIR)/libreadline.a' |
| 10582 | READLINE_DEPS='$(READLINE)' |
| 10583 | READLINE_CFLAGS='-I$(READLINE_SRC)/..' |
| 10584 | fi |
| 10585 | |
| 10586 | |
| 10587 | |
| 10588 | |
| 10589 | |
| 10590 | # Check whether --with-expat or --without-expat was given. |
| 10591 | if test "${with_expat+set}" = set; then |
| 10592 | withval="$with_expat" |
| 10593 | |
| 10594 | else |
| 10595 | with_expat=auto |
| 10596 | fi; |
| 10597 | echo "$as_me:$LINENO: checking whether to use expat" >&5 |
| 10598 | echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6 |
| 10599 | echo "$as_me:$LINENO: result: $with_expat" >&5 |
| 10600 | echo "${ECHO_T}$with_expat" >&6 |
| 10601 | |
| 10602 | if test "${with_expat}" = no; then |
| 10603 | { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5 |
| 10604 | echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;} |
| 10605 | HAVE_LIBEXPAT=no |
| 10606 | else |
| 10607 | |
| 10608 | if test "X$prefix" = "XNONE"; then |
| 10609 | acl_final_prefix="$ac_default_prefix" |
| 10610 | else |
| 10611 | acl_final_prefix="$prefix" |
| 10612 | fi |
| 10613 | if test "X$exec_prefix" = "XNONE"; then |
| 10614 | acl_final_exec_prefix='${prefix}' |
| 10615 | else |
| 10616 | acl_final_exec_prefix="$exec_prefix" |
| 10617 | fi |
| 10618 | acl_save_prefix="$prefix" |
| 10619 | prefix="$acl_final_prefix" |
| 10620 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 10621 | prefix="$acl_save_prefix" |
| 10622 | |
| 10623 | |
| 10624 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 10625 | if test "${with_gnu_ld+set}" = set; then |
| 10626 | withval="$with_gnu_ld" |
| 10627 | test "$withval" = no || with_gnu_ld=yes |
| 10628 | else |
| 10629 | with_gnu_ld=no |
| 10630 | fi; |
| 10631 | # Prepare PATH_SEPARATOR. |
| 10632 | # The user is always right. |
| 10633 | if test "${PATH_SEPARATOR+set}" != set; then |
| 10634 | echo "#! /bin/sh" >conf$$.sh |
| 10635 | echo "exit 0" >>conf$$.sh |
| 10636 | chmod +x conf$$.sh |
| 10637 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 10638 | PATH_SEPARATOR=';' |
| 10639 | else |
| 10640 | PATH_SEPARATOR=: |
| 10641 | fi |
| 10642 | rm -f conf$$.sh |
| 10643 | fi |
| 10644 | ac_prog=ld |
| 10645 | if test "$GCC" = yes; then |
| 10646 | # Check if gcc -print-prog-name=ld gives a path. |
| 10647 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
| 10648 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
| 10649 | case $host in |
| 10650 | *-*-mingw*) |
| 10651 | # gcc leaves a trailing carriage return which upsets mingw |
| 10652 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 10653 | *) |
| 10654 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 10655 | esac |
| 10656 | case $ac_prog in |
| 10657 | # Accept absolute paths. |
| 10658 | [\\/]* | [A-Za-z]:[\\/]*) |
| 10659 | re_direlt='/[^/][^/]*/\.\./' |
| 10660 | # Canonicalize the path of ld |
| 10661 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 10662 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 10663 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 10664 | done |
| 10665 | test -z "$LD" && LD="$ac_prog" |
| 10666 | ;; |
| 10667 | "") |
| 10668 | # If it fails, then pretend we aren't using GCC. |
| 10669 | ac_prog=ld |
| 10670 | ;; |
| 10671 | *) |
| 10672 | # If it is relative, then search for the first ld in PATH. |
| 10673 | with_gnu_ld=unknown |
| 10674 | ;; |
| 10675 | esac |
| 10676 | elif test "$with_gnu_ld" = yes; then |
| 10677 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 10678 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 10679 | else |
| 10680 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 10681 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 10682 | fi |
| 10683 | if test "${acl_cv_path_LD+set}" = set; then |
| 10684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10685 | else |
| 10686 | if test -z "$LD"; then |
| 10687 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 10688 | for ac_dir in $PATH; do |
| 10689 | test -z "$ac_dir" && ac_dir=. |
| 10690 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 10691 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 10692 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 10693 | # but apparently some GNU ld's only accept -v. |
| 10694 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 10695 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
| 10696 | test "$with_gnu_ld" != no && break |
| 10697 | else |
| 10698 | test "$with_gnu_ld" != yes && break |
| 10699 | fi |
| 10700 | fi |
| 10701 | done |
| 10702 | IFS="$ac_save_ifs" |
| 10703 | else |
| 10704 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 10705 | fi |
| 10706 | fi |
| 10707 | |
| 10708 | LD="$acl_cv_path_LD" |
| 10709 | if test -n "$LD"; then |
| 10710 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 10711 | echo "${ECHO_T}$LD" >&6 |
| 10712 | else |
| 10713 | echo "$as_me:$LINENO: result: no" >&5 |
| 10714 | echo "${ECHO_T}no" >&6 |
| 10715 | fi |
| 10716 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 10717 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 10718 | { (exit 1); exit 1; }; } |
| 10719 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 10720 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 10721 | if test "${acl_cv_prog_gnu_ld+set}" = set; then |
| 10722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10723 | else |
| 10724 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 10725 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
| 10726 | acl_cv_prog_gnu_ld=yes |
| 10727 | else |
| 10728 | acl_cv_prog_gnu_ld=no |
| 10729 | fi |
| 10730 | fi |
| 10731 | echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
| 10732 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 |
| 10733 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 10734 | |
| 10735 | |
| 10736 | |
| 10737 | echo "$as_me:$LINENO: checking for shared library run path origin" >&5 |
| 10738 | echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 |
| 10739 | if test "${acl_cv_rpath+set}" = set; then |
| 10740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10741 | else |
| 10742 | |
| 10743 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 10744 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 10745 | . ./conftest.sh |
| 10746 | rm -f ./conftest.sh |
| 10747 | acl_cv_rpath=done |
| 10748 | |
| 10749 | fi |
| 10750 | echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
| 10751 | echo "${ECHO_T}$acl_cv_rpath" >&6 |
| 10752 | wl="$acl_cv_wl" |
| 10753 | libext="$acl_cv_libext" |
| 10754 | shlibext="$acl_cv_shlibext" |
| 10755 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 10756 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 10757 | hardcode_direct="$acl_cv_hardcode_direct" |
| 10758 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
| 10759 | # Check whether --enable-rpath or --disable-rpath was given. |
| 10760 | if test "${enable_rpath+set}" = set; then |
| 10761 | enableval="$enable_rpath" |
| 10762 | : |
| 10763 | else |
| 10764 | enable_rpath=yes |
| 10765 | fi; |
| 10766 | |
| 10767 | |
| 10768 | |
| 10769 | |
| 10770 | |
| 10771 | |
| 10772 | |
| 10773 | |
| 10774 | |
| 10775 | use_additional=yes |
| 10776 | |
| 10777 | acl_save_prefix="$prefix" |
| 10778 | prefix="$acl_final_prefix" |
| 10779 | acl_save_exec_prefix="$exec_prefix" |
| 10780 | exec_prefix="$acl_final_exec_prefix" |
| 10781 | |
| 10782 | eval additional_includedir=\"$includedir\" |
| 10783 | eval additional_libdir=\"$libdir\" |
| 10784 | |
| 10785 | exec_prefix="$acl_save_exec_prefix" |
| 10786 | prefix="$acl_save_prefix" |
| 10787 | |
| 10788 | |
| 10789 | # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given. |
| 10790 | if test "${with_libexpat_prefix+set}" = set; then |
| 10791 | withval="$with_libexpat_prefix" |
| 10792 | |
| 10793 | if test "X$withval" = "Xno"; then |
| 10794 | use_additional=no |
| 10795 | else |
| 10796 | if test "X$withval" = "X"; then |
| 10797 | |
| 10798 | acl_save_prefix="$prefix" |
| 10799 | prefix="$acl_final_prefix" |
| 10800 | acl_save_exec_prefix="$exec_prefix" |
| 10801 | exec_prefix="$acl_final_exec_prefix" |
| 10802 | |
| 10803 | eval additional_includedir=\"$includedir\" |
| 10804 | eval additional_libdir=\"$libdir\" |
| 10805 | |
| 10806 | exec_prefix="$acl_save_exec_prefix" |
| 10807 | prefix="$acl_save_prefix" |
| 10808 | |
| 10809 | else |
| 10810 | additional_includedir="$withval/include" |
| 10811 | additional_libdir="$withval/lib" |
| 10812 | fi |
| 10813 | fi |
| 10814 | |
| 10815 | fi; |
| 10816 | LIBEXPAT= |
| 10817 | LTLIBEXPAT= |
| 10818 | INCEXPAT= |
| 10819 | rpathdirs= |
| 10820 | ltrpathdirs= |
| 10821 | names_already_handled= |
| 10822 | names_next_round='expat ' |
| 10823 | while test -n "$names_next_round"; do |
| 10824 | names_this_round="$names_next_round" |
| 10825 | names_next_round= |
| 10826 | for name in $names_this_round; do |
| 10827 | already_handled= |
| 10828 | for n in $names_already_handled; do |
| 10829 | if test "$n" = "$name"; then |
| 10830 | already_handled=yes |
| 10831 | break |
| 10832 | fi |
| 10833 | done |
| 10834 | if test -z "$already_handled"; then |
| 10835 | names_already_handled="$names_already_handled $name" |
| 10836 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 10837 | eval value=\"\$HAVE_LIB$uppername\" |
| 10838 | if test -n "$value"; then |
| 10839 | if test "$value" = yes; then |
| 10840 | eval value=\"\$LIB$uppername\" |
| 10841 | test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value" |
| 10842 | eval value=\"\$LTLIB$uppername\" |
| 10843 | test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value" |
| 10844 | else |
| 10845 | : |
| 10846 | fi |
| 10847 | else |
| 10848 | found_dir= |
| 10849 | found_la= |
| 10850 | found_so= |
| 10851 | found_a= |
| 10852 | if test $use_additional = yes; then |
| 10853 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 10854 | found_dir="$additional_libdir" |
| 10855 | found_so="$additional_libdir/lib$name.$shlibext" |
| 10856 | if test -f "$additional_libdir/lib$name.la"; then |
| 10857 | found_la="$additional_libdir/lib$name.la" |
| 10858 | fi |
| 10859 | else |
| 10860 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 10861 | found_dir="$additional_libdir" |
| 10862 | found_a="$additional_libdir/lib$name.$libext" |
| 10863 | if test -f "$additional_libdir/lib$name.la"; then |
| 10864 | found_la="$additional_libdir/lib$name.la" |
| 10865 | fi |
| 10866 | fi |
| 10867 | fi |
| 10868 | fi |
| 10869 | if test "X$found_dir" = "X"; then |
| 10870 | for x in $LDFLAGS $LTLIBEXPAT; do |
| 10871 | |
| 10872 | acl_save_prefix="$prefix" |
| 10873 | prefix="$acl_final_prefix" |
| 10874 | acl_save_exec_prefix="$exec_prefix" |
| 10875 | exec_prefix="$acl_final_exec_prefix" |
| 10876 | eval x=\"$x\" |
| 10877 | exec_prefix="$acl_save_exec_prefix" |
| 10878 | prefix="$acl_save_prefix" |
| 10879 | |
| 10880 | case "$x" in |
| 10881 | -L*) |
| 10882 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 10883 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 10884 | found_dir="$dir" |
| 10885 | found_so="$dir/lib$name.$shlibext" |
| 10886 | if test -f "$dir/lib$name.la"; then |
| 10887 | found_la="$dir/lib$name.la" |
| 10888 | fi |
| 10889 | else |
| 10890 | if test -f "$dir/lib$name.$libext"; then |
| 10891 | found_dir="$dir" |
| 10892 | found_a="$dir/lib$name.$libext" |
| 10893 | if test -f "$dir/lib$name.la"; then |
| 10894 | found_la="$dir/lib$name.la" |
| 10895 | fi |
| 10896 | fi |
| 10897 | fi |
| 10898 | ;; |
| 10899 | esac |
| 10900 | if test "X$found_dir" != "X"; then |
| 10901 | break |
| 10902 | fi |
| 10903 | done |
| 10904 | fi |
| 10905 | if test "X$found_dir" != "X"; then |
| 10906 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name" |
| 10907 | if test "X$found_so" != "X"; then |
| 10908 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 10909 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" |
| 10910 | else |
| 10911 | haveit= |
| 10912 | for x in $ltrpathdirs; do |
| 10913 | if test "X$x" = "X$found_dir"; then |
| 10914 | haveit=yes |
| 10915 | break |
| 10916 | fi |
| 10917 | done |
| 10918 | if test -z "$haveit"; then |
| 10919 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 10920 | fi |
| 10921 | if test "$hardcode_direct" = yes; then |
| 10922 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" |
| 10923 | else |
| 10924 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 10925 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" |
| 10926 | haveit= |
| 10927 | for x in $rpathdirs; do |
| 10928 | if test "X$x" = "X$found_dir"; then |
| 10929 | haveit=yes |
| 10930 | break |
| 10931 | fi |
| 10932 | done |
| 10933 | if test -z "$haveit"; then |
| 10934 | rpathdirs="$rpathdirs $found_dir" |
| 10935 | fi |
| 10936 | else |
| 10937 | haveit= |
| 10938 | for x in $LDFLAGS $LIBEXPAT; do |
| 10939 | |
| 10940 | acl_save_prefix="$prefix" |
| 10941 | prefix="$acl_final_prefix" |
| 10942 | acl_save_exec_prefix="$exec_prefix" |
| 10943 | exec_prefix="$acl_final_exec_prefix" |
| 10944 | eval x=\"$x\" |
| 10945 | exec_prefix="$acl_save_exec_prefix" |
| 10946 | prefix="$acl_save_prefix" |
| 10947 | |
| 10948 | if test "X$x" = "X-L$found_dir"; then |
| 10949 | haveit=yes |
| 10950 | break |
| 10951 | fi |
| 10952 | done |
| 10953 | if test -z "$haveit"; then |
| 10954 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir" |
| 10955 | fi |
| 10956 | if test "$hardcode_minus_L" != no; then |
| 10957 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" |
| 10958 | else |
| 10959 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name" |
| 10960 | fi |
| 10961 | fi |
| 10962 | fi |
| 10963 | fi |
| 10964 | else |
| 10965 | if test "X$found_a" != "X"; then |
| 10966 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a" |
| 10967 | else |
| 10968 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name" |
| 10969 | fi |
| 10970 | fi |
| 10971 | additional_includedir= |
| 10972 | case "$found_dir" in |
| 10973 | */lib | */lib/) |
| 10974 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 10975 | additional_includedir="$basedir/include" |
| 10976 | ;; |
| 10977 | esac |
| 10978 | if test "X$additional_includedir" != "X"; then |
| 10979 | if test "X$additional_includedir" != "X/usr/include"; then |
| 10980 | haveit= |
| 10981 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 10982 | if test -n "$GCC"; then |
| 10983 | case $host_os in |
| 10984 | linux*) haveit=yes;; |
| 10985 | esac |
| 10986 | fi |
| 10987 | fi |
| 10988 | if test -z "$haveit"; then |
| 10989 | for x in $CPPFLAGS $INCEXPAT; do |
| 10990 | |
| 10991 | acl_save_prefix="$prefix" |
| 10992 | prefix="$acl_final_prefix" |
| 10993 | acl_save_exec_prefix="$exec_prefix" |
| 10994 | exec_prefix="$acl_final_exec_prefix" |
| 10995 | eval x=\"$x\" |
| 10996 | exec_prefix="$acl_save_exec_prefix" |
| 10997 | prefix="$acl_save_prefix" |
| 10998 | |
| 10999 | if test "X$x" = "X-I$additional_includedir"; then |
| 11000 | haveit=yes |
| 11001 | break |
| 11002 | fi |
| 11003 | done |
| 11004 | if test -z "$haveit"; then |
| 11005 | if test -d "$additional_includedir"; then |
| 11006 | INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir" |
| 11007 | fi |
| 11008 | fi |
| 11009 | fi |
| 11010 | fi |
| 11011 | fi |
| 11012 | if test -n "$found_la"; then |
| 11013 | save_libdir="$libdir" |
| 11014 | case "$found_la" in |
| 11015 | */* | *\\*) . "$found_la" ;; |
| 11016 | *) . "./$found_la" ;; |
| 11017 | esac |
| 11018 | libdir="$save_libdir" |
| 11019 | for dep in $dependency_libs; do |
| 11020 | case "$dep" in |
| 11021 | -L*) |
| 11022 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 11023 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 11024 | haveit= |
| 11025 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 11026 | if test -n "$GCC"; then |
| 11027 | case $host_os in |
| 11028 | linux*) haveit=yes;; |
| 11029 | esac |
| 11030 | fi |
| 11031 | fi |
| 11032 | if test -z "$haveit"; then |
| 11033 | haveit= |
| 11034 | for x in $LDFLAGS $LIBEXPAT; do |
| 11035 | |
| 11036 | acl_save_prefix="$prefix" |
| 11037 | prefix="$acl_final_prefix" |
| 11038 | acl_save_exec_prefix="$exec_prefix" |
| 11039 | exec_prefix="$acl_final_exec_prefix" |
| 11040 | eval x=\"$x\" |
| 11041 | exec_prefix="$acl_save_exec_prefix" |
| 11042 | prefix="$acl_save_prefix" |
| 11043 | |
| 11044 | if test "X$x" = "X-L$additional_libdir"; then |
| 11045 | haveit=yes |
| 11046 | break |
| 11047 | fi |
| 11048 | done |
| 11049 | if test -z "$haveit"; then |
| 11050 | if test -d "$additional_libdir"; then |
| 11051 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir" |
| 11052 | fi |
| 11053 | fi |
| 11054 | haveit= |
| 11055 | for x in $LDFLAGS $LTLIBEXPAT; do |
| 11056 | |
| 11057 | acl_save_prefix="$prefix" |
| 11058 | prefix="$acl_final_prefix" |
| 11059 | acl_save_exec_prefix="$exec_prefix" |
| 11060 | exec_prefix="$acl_final_exec_prefix" |
| 11061 | eval x=\"$x\" |
| 11062 | exec_prefix="$acl_save_exec_prefix" |
| 11063 | prefix="$acl_save_prefix" |
| 11064 | |
| 11065 | if test "X$x" = "X-L$additional_libdir"; then |
| 11066 | haveit=yes |
| 11067 | break |
| 11068 | fi |
| 11069 | done |
| 11070 | if test -z "$haveit"; then |
| 11071 | if test -d "$additional_libdir"; then |
| 11072 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir" |
| 11073 | fi |
| 11074 | fi |
| 11075 | fi |
| 11076 | fi |
| 11077 | ;; |
| 11078 | -R*) |
| 11079 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 11080 | if test "$enable_rpath" != no; then |
| 11081 | haveit= |
| 11082 | for x in $rpathdirs; do |
| 11083 | if test "X$x" = "X$dir"; then |
| 11084 | haveit=yes |
| 11085 | break |
| 11086 | fi |
| 11087 | done |
| 11088 | if test -z "$haveit"; then |
| 11089 | rpathdirs="$rpathdirs $dir" |
| 11090 | fi |
| 11091 | haveit= |
| 11092 | for x in $ltrpathdirs; do |
| 11093 | if test "X$x" = "X$dir"; then |
| 11094 | haveit=yes |
| 11095 | break |
| 11096 | fi |
| 11097 | done |
| 11098 | if test -z "$haveit"; then |
| 11099 | ltrpathdirs="$ltrpathdirs $dir" |
| 11100 | fi |
| 11101 | fi |
| 11102 | ;; |
| 11103 | -l*) |
| 11104 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 11105 | ;; |
| 11106 | *.la) |
| 11107 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 11108 | ;; |
| 11109 | *) |
| 11110 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep" |
| 11111 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep" |
| 11112 | ;; |
| 11113 | esac |
| 11114 | done |
| 11115 | fi |
| 11116 | else |
| 11117 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name" |
| 11118 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name" |
| 11119 | fi |
| 11120 | fi |
| 11121 | fi |
| 11122 | done |
| 11123 | done |
| 11124 | if test "X$rpathdirs" != "X"; then |
| 11125 | if test -n "$hardcode_libdir_separator"; then |
| 11126 | alldirs= |
| 11127 | for found_dir in $rpathdirs; do |
| 11128 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 11129 | done |
| 11130 | acl_save_libdir="$libdir" |
| 11131 | libdir="$alldirs" |
| 11132 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 11133 | libdir="$acl_save_libdir" |
| 11134 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag" |
| 11135 | else |
| 11136 | for found_dir in $rpathdirs; do |
| 11137 | acl_save_libdir="$libdir" |
| 11138 | libdir="$found_dir" |
| 11139 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 11140 | libdir="$acl_save_libdir" |
| 11141 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag" |
| 11142 | done |
| 11143 | fi |
| 11144 | fi |
| 11145 | if test "X$ltrpathdirs" != "X"; then |
| 11146 | for found_dir in $ltrpathdirs; do |
| 11147 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir" |
| 11148 | done |
| 11149 | fi |
| 11150 | |
| 11151 | |
| 11152 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 11153 | |
| 11154 | for element in $INCEXPAT; do |
| 11155 | haveit= |
| 11156 | for x in $CPPFLAGS; do |
| 11157 | |
| 11158 | acl_save_prefix="$prefix" |
| 11159 | prefix="$acl_final_prefix" |
| 11160 | acl_save_exec_prefix="$exec_prefix" |
| 11161 | exec_prefix="$acl_final_exec_prefix" |
| 11162 | eval x=\"$x\" |
| 11163 | exec_prefix="$acl_save_exec_prefix" |
| 11164 | prefix="$acl_save_prefix" |
| 11165 | |
| 11166 | if test "X$x" = "X$element"; then |
| 11167 | haveit=yes |
| 11168 | break |
| 11169 | fi |
| 11170 | done |
| 11171 | if test -z "$haveit"; then |
| 11172 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 11173 | fi |
| 11174 | done |
| 11175 | |
| 11176 | |
| 11177 | echo "$as_me:$LINENO: checking for libexpat" >&5 |
| 11178 | echo $ECHO_N "checking for libexpat... $ECHO_C" >&6 |
| 11179 | if test "${ac_cv_libexpat+set}" = set; then |
| 11180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11181 | else |
| 11182 | |
| 11183 | ac_save_LIBS="$LIBS" |
| 11184 | LIBS="$LIBS $LIBEXPAT" |
| 11185 | cat >conftest.$ac_ext <<_ACEOF |
| 11186 | /* confdefs.h. */ |
| 11187 | _ACEOF |
| 11188 | cat confdefs.h >>conftest.$ac_ext |
| 11189 | cat >>conftest.$ac_ext <<_ACEOF |
| 11190 | /* end confdefs.h. */ |
| 11191 | #include "expat.h" |
| 11192 | int |
| 11193 | main () |
| 11194 | { |
| 11195 | XML_Parser p = XML_ParserCreate (0); |
| 11196 | ; |
| 11197 | return 0; |
| 11198 | } |
| 11199 | _ACEOF |
| 11200 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11201 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11202 | (eval $ac_link) 2>conftest.er1 |
| 11203 | ac_status=$? |
| 11204 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11205 | rm -f conftest.er1 |
| 11206 | cat conftest.err >&5 |
| 11207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11208 | (exit $ac_status); } && |
| 11209 | { ac_try='test -z "$ac_c_werror_flag" |
| 11210 | || test ! -s conftest.err' |
| 11211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11212 | (eval $ac_try) 2>&5 |
| 11213 | ac_status=$? |
| 11214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11215 | (exit $ac_status); }; } && |
| 11216 | { ac_try='test -s conftest$ac_exeext' |
| 11217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11218 | (eval $ac_try) 2>&5 |
| 11219 | ac_status=$? |
| 11220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11221 | (exit $ac_status); }; }; then |
| 11222 | ac_cv_libexpat=yes |
| 11223 | else |
| 11224 | echo "$as_me: failed program was:" >&5 |
| 11225 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11226 | |
| 11227 | ac_cv_libexpat=no |
| 11228 | fi |
| 11229 | rm -f conftest.err conftest.$ac_objext \ |
| 11230 | conftest$ac_exeext conftest.$ac_ext |
| 11231 | LIBS="$ac_save_LIBS" |
| 11232 | |
| 11233 | fi |
| 11234 | echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5 |
| 11235 | echo "${ECHO_T}$ac_cv_libexpat" >&6 |
| 11236 | if test "$ac_cv_libexpat" = yes; then |
| 11237 | HAVE_LIBEXPAT=yes |
| 11238 | |
| 11239 | cat >>confdefs.h <<\_ACEOF |
| 11240 | #define HAVE_LIBEXPAT 1 |
| 11241 | _ACEOF |
| 11242 | |
| 11243 | echo "$as_me:$LINENO: checking how to link with libexpat" >&5 |
| 11244 | echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6 |
| 11245 | echo "$as_me:$LINENO: result: $LIBEXPAT" >&5 |
| 11246 | echo "${ECHO_T}$LIBEXPAT" >&6 |
| 11247 | else |
| 11248 | HAVE_LIBEXPAT=no |
| 11249 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 11250 | LIBEXPAT= |
| 11251 | LTLIBEXPAT= |
| 11252 | fi |
| 11253 | |
| 11254 | |
| 11255 | |
| 11256 | |
| 11257 | |
| 11258 | |
| 11259 | if test "$HAVE_LIBEXPAT" != yes; then |
| 11260 | if test "$with_expat" = yes; then |
| 11261 | { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5 |
| 11262 | echo "$as_me: error: expat is missing or unusable" >&2;} |
| 11263 | { (exit 1); exit 1; }; } |
| 11264 | else |
| 11265 | { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5 |
| 11266 | echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;} |
| 11267 | fi |
| 11268 | else |
| 11269 | save_LIBS=$LIBS |
| 11270 | LIBS="$LIBS $LIBEXPAT" |
| 11271 | |
| 11272 | for ac_func in XML_StopParser |
| 11273 | do |
| 11274 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11275 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11276 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11277 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11279 | else |
| 11280 | cat >conftest.$ac_ext <<_ACEOF |
| 11281 | /* confdefs.h. */ |
| 11282 | _ACEOF |
| 11283 | cat confdefs.h >>conftest.$ac_ext |
| 11284 | cat >>conftest.$ac_ext <<_ACEOF |
| 11285 | /* end confdefs.h. */ |
| 11286 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11287 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11288 | #define $ac_func innocuous_$ac_func |
| 11289 | |
| 11290 | /* System header to define __stub macros and hopefully few prototypes, |
| 11291 | which can conflict with char $ac_func (); below. |
| 11292 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11293 | <limits.h> exists even on freestanding compilers. */ |
| 11294 | |
| 11295 | #ifdef __STDC__ |
| 11296 | # include <limits.h> |
| 11297 | #else |
| 11298 | # include <assert.h> |
| 11299 | #endif |
| 11300 | |
| 11301 | #undef $ac_func |
| 11302 | |
| 11303 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11304 | #ifdef __cplusplus |
| 11305 | extern "C" |
| 11306 | { |
| 11307 | #endif |
| 11308 | /* We use char because int might match the return type of a gcc2 |
| 11309 | builtin and then its argument prototype would still apply. */ |
| 11310 | char $ac_func (); |
| 11311 | /* The GNU C library defines this for functions which it implements |
| 11312 | to always fail with ENOSYS. Some functions are actually named |
| 11313 | something starting with __ and the normal name is an alias. */ |
| 11314 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11315 | choke me |
| 11316 | #else |
| 11317 | char (*f) () = $ac_func; |
| 11318 | #endif |
| 11319 | #ifdef __cplusplus |
| 11320 | } |
| 11321 | #endif |
| 11322 | |
| 11323 | int |
| 11324 | main () |
| 11325 | { |
| 11326 | return f != $ac_func; |
| 11327 | ; |
| 11328 | return 0; |
| 11329 | } |
| 11330 | _ACEOF |
| 11331 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11332 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11333 | (eval $ac_link) 2>conftest.er1 |
| 11334 | ac_status=$? |
| 11335 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11336 | rm -f conftest.er1 |
| 11337 | cat conftest.err >&5 |
| 11338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11339 | (exit $ac_status); } && |
| 11340 | { ac_try='test -z "$ac_c_werror_flag" |
| 11341 | || test ! -s conftest.err' |
| 11342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11343 | (eval $ac_try) 2>&5 |
| 11344 | ac_status=$? |
| 11345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11346 | (exit $ac_status); }; } && |
| 11347 | { ac_try='test -s conftest$ac_exeext' |
| 11348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11349 | (eval $ac_try) 2>&5 |
| 11350 | ac_status=$? |
| 11351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11352 | (exit $ac_status); }; }; then |
| 11353 | eval "$as_ac_var=yes" |
| 11354 | else |
| 11355 | echo "$as_me: failed program was:" >&5 |
| 11356 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11357 | |
| 11358 | eval "$as_ac_var=no" |
| 11359 | fi |
| 11360 | rm -f conftest.err conftest.$ac_objext \ |
| 11361 | conftest$ac_exeext conftest.$ac_ext |
| 11362 | fi |
| 11363 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11364 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11365 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11366 | cat >>confdefs.h <<_ACEOF |
| 11367 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11368 | _ACEOF |
| 11369 | |
| 11370 | fi |
| 11371 | done |
| 11372 | |
| 11373 | LIBS=$save_LIBS |
| 11374 | fi |
| 11375 | fi |
| 11376 | |
| 11377 | # ------------------------- # |
| 11378 | # Checks for header files. # |
| 11379 | # ------------------------- # |
| 11380 | |
| 11381 | |
| 11382 | |
| 11383 | |
| 11384 | |
| 11385 | |
| 11386 | ac_header_dirent=no |
| 11387 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 11388 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 11389 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 11390 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 11391 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11393 | else |
| 11394 | cat >conftest.$ac_ext <<_ACEOF |
| 11395 | /* confdefs.h. */ |
| 11396 | _ACEOF |
| 11397 | cat confdefs.h >>conftest.$ac_ext |
| 11398 | cat >>conftest.$ac_ext <<_ACEOF |
| 11399 | /* end confdefs.h. */ |
| 11400 | #include <sys/types.h> |
| 11401 | #include <$ac_hdr> |
| 11402 | |
| 11403 | int |
| 11404 | main () |
| 11405 | { |
| 11406 | if ((DIR *) 0) |
| 11407 | return 0; |
| 11408 | ; |
| 11409 | return 0; |
| 11410 | } |
| 11411 | _ACEOF |
| 11412 | rm -f conftest.$ac_objext |
| 11413 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11414 | (eval $ac_compile) 2>conftest.er1 |
| 11415 | ac_status=$? |
| 11416 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11417 | rm -f conftest.er1 |
| 11418 | cat conftest.err >&5 |
| 11419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11420 | (exit $ac_status); } && |
| 11421 | { ac_try='test -z "$ac_c_werror_flag" |
| 11422 | || test ! -s conftest.err' |
| 11423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11424 | (eval $ac_try) 2>&5 |
| 11425 | ac_status=$? |
| 11426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11427 | (exit $ac_status); }; } && |
| 11428 | { ac_try='test -s conftest.$ac_objext' |
| 11429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11430 | (eval $ac_try) 2>&5 |
| 11431 | ac_status=$? |
| 11432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11433 | (exit $ac_status); }; }; then |
| 11434 | eval "$as_ac_Header=yes" |
| 11435 | else |
| 11436 | echo "$as_me: failed program was:" >&5 |
| 11437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11438 | |
| 11439 | eval "$as_ac_Header=no" |
| 11440 | fi |
| 11441 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11442 | fi |
| 11443 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11444 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11445 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11446 | cat >>confdefs.h <<_ACEOF |
| 11447 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 11448 | _ACEOF |
| 11449 | |
| 11450 | ac_header_dirent=$ac_hdr; break |
| 11451 | fi |
| 11452 | |
| 11453 | done |
| 11454 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 11455 | if test $ac_header_dirent = dirent.h; then |
| 11456 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 11457 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 11458 | if test "${ac_cv_search_opendir+set}" = set; then |
| 11459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11460 | else |
| 11461 | ac_func_search_save_LIBS=$LIBS |
| 11462 | ac_cv_search_opendir=no |
| 11463 | cat >conftest.$ac_ext <<_ACEOF |
| 11464 | /* confdefs.h. */ |
| 11465 | _ACEOF |
| 11466 | cat confdefs.h >>conftest.$ac_ext |
| 11467 | cat >>conftest.$ac_ext <<_ACEOF |
| 11468 | /* end confdefs.h. */ |
| 11469 | |
| 11470 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11471 | #ifdef __cplusplus |
| 11472 | extern "C" |
| 11473 | #endif |
| 11474 | /* We use char because int might match the return type of a gcc2 |
| 11475 | builtin and then its argument prototype would still apply. */ |
| 11476 | char opendir (); |
| 11477 | int |
| 11478 | main () |
| 11479 | { |
| 11480 | opendir (); |
| 11481 | ; |
| 11482 | return 0; |
| 11483 | } |
| 11484 | _ACEOF |
| 11485 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11486 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11487 | (eval $ac_link) 2>conftest.er1 |
| 11488 | ac_status=$? |
| 11489 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11490 | rm -f conftest.er1 |
| 11491 | cat conftest.err >&5 |
| 11492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11493 | (exit $ac_status); } && |
| 11494 | { ac_try='test -z "$ac_c_werror_flag" |
| 11495 | || test ! -s conftest.err' |
| 11496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11497 | (eval $ac_try) 2>&5 |
| 11498 | ac_status=$? |
| 11499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11500 | (exit $ac_status); }; } && |
| 11501 | { ac_try='test -s conftest$ac_exeext' |
| 11502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11503 | (eval $ac_try) 2>&5 |
| 11504 | ac_status=$? |
| 11505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11506 | (exit $ac_status); }; }; then |
| 11507 | ac_cv_search_opendir="none required" |
| 11508 | else |
| 11509 | echo "$as_me: failed program was:" >&5 |
| 11510 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11511 | |
| 11512 | fi |
| 11513 | rm -f conftest.err conftest.$ac_objext \ |
| 11514 | conftest$ac_exeext conftest.$ac_ext |
| 11515 | if test "$ac_cv_search_opendir" = no; then |
| 11516 | for ac_lib in dir; do |
| 11517 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 11518 | cat >conftest.$ac_ext <<_ACEOF |
| 11519 | /* confdefs.h. */ |
| 11520 | _ACEOF |
| 11521 | cat confdefs.h >>conftest.$ac_ext |
| 11522 | cat >>conftest.$ac_ext <<_ACEOF |
| 11523 | /* end confdefs.h. */ |
| 11524 | |
| 11525 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11526 | #ifdef __cplusplus |
| 11527 | extern "C" |
| 11528 | #endif |
| 11529 | /* We use char because int might match the return type of a gcc2 |
| 11530 | builtin and then its argument prototype would still apply. */ |
| 11531 | char opendir (); |
| 11532 | int |
| 11533 | main () |
| 11534 | { |
| 11535 | opendir (); |
| 11536 | ; |
| 11537 | return 0; |
| 11538 | } |
| 11539 | _ACEOF |
| 11540 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11541 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11542 | (eval $ac_link) 2>conftest.er1 |
| 11543 | ac_status=$? |
| 11544 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11545 | rm -f conftest.er1 |
| 11546 | cat conftest.err >&5 |
| 11547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11548 | (exit $ac_status); } && |
| 11549 | { ac_try='test -z "$ac_c_werror_flag" |
| 11550 | || test ! -s conftest.err' |
| 11551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11552 | (eval $ac_try) 2>&5 |
| 11553 | ac_status=$? |
| 11554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11555 | (exit $ac_status); }; } && |
| 11556 | { ac_try='test -s conftest$ac_exeext' |
| 11557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11558 | (eval $ac_try) 2>&5 |
| 11559 | ac_status=$? |
| 11560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11561 | (exit $ac_status); }; }; then |
| 11562 | ac_cv_search_opendir="-l$ac_lib" |
| 11563 | break |
| 11564 | else |
| 11565 | echo "$as_me: failed program was:" >&5 |
| 11566 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11567 | |
| 11568 | fi |
| 11569 | rm -f conftest.err conftest.$ac_objext \ |
| 11570 | conftest$ac_exeext conftest.$ac_ext |
| 11571 | done |
| 11572 | fi |
| 11573 | LIBS=$ac_func_search_save_LIBS |
| 11574 | fi |
| 11575 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 11576 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 11577 | if test "$ac_cv_search_opendir" != no; then |
| 11578 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 11579 | |
| 11580 | fi |
| 11581 | |
| 11582 | else |
| 11583 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 11584 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 11585 | if test "${ac_cv_search_opendir+set}" = set; then |
| 11586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11587 | else |
| 11588 | ac_func_search_save_LIBS=$LIBS |
| 11589 | ac_cv_search_opendir=no |
| 11590 | cat >conftest.$ac_ext <<_ACEOF |
| 11591 | /* confdefs.h. */ |
| 11592 | _ACEOF |
| 11593 | cat confdefs.h >>conftest.$ac_ext |
| 11594 | cat >>conftest.$ac_ext <<_ACEOF |
| 11595 | /* end confdefs.h. */ |
| 11596 | |
| 11597 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11598 | #ifdef __cplusplus |
| 11599 | extern "C" |
| 11600 | #endif |
| 11601 | /* We use char because int might match the return type of a gcc2 |
| 11602 | builtin and then its argument prototype would still apply. */ |
| 11603 | char opendir (); |
| 11604 | int |
| 11605 | main () |
| 11606 | { |
| 11607 | opendir (); |
| 11608 | ; |
| 11609 | return 0; |
| 11610 | } |
| 11611 | _ACEOF |
| 11612 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11613 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11614 | (eval $ac_link) 2>conftest.er1 |
| 11615 | ac_status=$? |
| 11616 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11617 | rm -f conftest.er1 |
| 11618 | cat conftest.err >&5 |
| 11619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11620 | (exit $ac_status); } && |
| 11621 | { ac_try='test -z "$ac_c_werror_flag" |
| 11622 | || test ! -s conftest.err' |
| 11623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11624 | (eval $ac_try) 2>&5 |
| 11625 | ac_status=$? |
| 11626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11627 | (exit $ac_status); }; } && |
| 11628 | { ac_try='test -s conftest$ac_exeext' |
| 11629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11630 | (eval $ac_try) 2>&5 |
| 11631 | ac_status=$? |
| 11632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11633 | (exit $ac_status); }; }; then |
| 11634 | ac_cv_search_opendir="none required" |
| 11635 | else |
| 11636 | echo "$as_me: failed program was:" >&5 |
| 11637 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11638 | |
| 11639 | fi |
| 11640 | rm -f conftest.err conftest.$ac_objext \ |
| 11641 | conftest$ac_exeext conftest.$ac_ext |
| 11642 | if test "$ac_cv_search_opendir" = no; then |
| 11643 | for ac_lib in x; do |
| 11644 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 11645 | cat >conftest.$ac_ext <<_ACEOF |
| 11646 | /* confdefs.h. */ |
| 11647 | _ACEOF |
| 11648 | cat confdefs.h >>conftest.$ac_ext |
| 11649 | cat >>conftest.$ac_ext <<_ACEOF |
| 11650 | /* end confdefs.h. */ |
| 11651 | |
| 11652 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11653 | #ifdef __cplusplus |
| 11654 | extern "C" |
| 11655 | #endif |
| 11656 | /* We use char because int might match the return type of a gcc2 |
| 11657 | builtin and then its argument prototype would still apply. */ |
| 11658 | char opendir (); |
| 11659 | int |
| 11660 | main () |
| 11661 | { |
| 11662 | opendir (); |
| 11663 | ; |
| 11664 | return 0; |
| 11665 | } |
| 11666 | _ACEOF |
| 11667 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11668 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11669 | (eval $ac_link) 2>conftest.er1 |
| 11670 | ac_status=$? |
| 11671 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11672 | rm -f conftest.er1 |
| 11673 | cat conftest.err >&5 |
| 11674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11675 | (exit $ac_status); } && |
| 11676 | { ac_try='test -z "$ac_c_werror_flag" |
| 11677 | || test ! -s conftest.err' |
| 11678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11679 | (eval $ac_try) 2>&5 |
| 11680 | ac_status=$? |
| 11681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11682 | (exit $ac_status); }; } && |
| 11683 | { ac_try='test -s conftest$ac_exeext' |
| 11684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11685 | (eval $ac_try) 2>&5 |
| 11686 | ac_status=$? |
| 11687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11688 | (exit $ac_status); }; }; then |
| 11689 | ac_cv_search_opendir="-l$ac_lib" |
| 11690 | break |
| 11691 | else |
| 11692 | echo "$as_me: failed program was:" >&5 |
| 11693 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11694 | |
| 11695 | fi |
| 11696 | rm -f conftest.err conftest.$ac_objext \ |
| 11697 | conftest$ac_exeext conftest.$ac_ext |
| 11698 | done |
| 11699 | fi |
| 11700 | LIBS=$ac_func_search_save_LIBS |
| 11701 | fi |
| 11702 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 11703 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 11704 | if test "$ac_cv_search_opendir" != no; then |
| 11705 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 11706 | |
| 11707 | fi |
| 11708 | |
| 11709 | fi |
| 11710 | |
| 11711 | echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 11712 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 |
| 11713 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 11714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11715 | else |
| 11716 | cat >conftest.$ac_ext <<_ACEOF |
| 11717 | /* confdefs.h. */ |
| 11718 | _ACEOF |
| 11719 | cat confdefs.h >>conftest.$ac_ext |
| 11720 | cat >>conftest.$ac_ext <<_ACEOF |
| 11721 | /* end confdefs.h. */ |
| 11722 | #include <sys/types.h> |
| 11723 | #include <sys/stat.h> |
| 11724 | |
| 11725 | #if defined(S_ISBLK) && defined(S_IFDIR) |
| 11726 | # if S_ISBLK (S_IFDIR) |
| 11727 | You lose. |
| 11728 | # endif |
| 11729 | #endif |
| 11730 | |
| 11731 | #if defined(S_ISBLK) && defined(S_IFCHR) |
| 11732 | # if S_ISBLK (S_IFCHR) |
| 11733 | You lose. |
| 11734 | # endif |
| 11735 | #endif |
| 11736 | |
| 11737 | #if defined(S_ISLNK) && defined(S_IFREG) |
| 11738 | # if S_ISLNK (S_IFREG) |
| 11739 | You lose. |
| 11740 | # endif |
| 11741 | #endif |
| 11742 | |
| 11743 | #if defined(S_ISSOCK) && defined(S_IFREG) |
| 11744 | # if S_ISSOCK (S_IFREG) |
| 11745 | You lose. |
| 11746 | # endif |
| 11747 | #endif |
| 11748 | |
| 11749 | _ACEOF |
| 11750 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11751 | $EGREP "You lose" >/dev/null 2>&1; then |
| 11752 | ac_cv_header_stat_broken=yes |
| 11753 | else |
| 11754 | ac_cv_header_stat_broken=no |
| 11755 | fi |
| 11756 | rm -f conftest* |
| 11757 | |
| 11758 | fi |
| 11759 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 11760 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 |
| 11761 | if test $ac_cv_header_stat_broken = yes; then |
| 11762 | |
| 11763 | cat >>confdefs.h <<\_ACEOF |
| 11764 | #define STAT_MACROS_BROKEN 1 |
| 11765 | _ACEOF |
| 11766 | |
| 11767 | fi |
| 11768 | |
| 11769 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 11770 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 11771 | if test "${ac_cv_header_stdc+set}" = set; then |
| 11772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11773 | else |
| 11774 | cat >conftest.$ac_ext <<_ACEOF |
| 11775 | /* confdefs.h. */ |
| 11776 | _ACEOF |
| 11777 | cat confdefs.h >>conftest.$ac_ext |
| 11778 | cat >>conftest.$ac_ext <<_ACEOF |
| 11779 | /* end confdefs.h. */ |
| 11780 | #include <stdlib.h> |
| 11781 | #include <stdarg.h> |
| 11782 | #include <string.h> |
| 11783 | #include <float.h> |
| 11784 | |
| 11785 | int |
| 11786 | main () |
| 11787 | { |
| 11788 | |
| 11789 | ; |
| 11790 | return 0; |
| 11791 | } |
| 11792 | _ACEOF |
| 11793 | rm -f conftest.$ac_objext |
| 11794 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11795 | (eval $ac_compile) 2>conftest.er1 |
| 11796 | ac_status=$? |
| 11797 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11798 | rm -f conftest.er1 |
| 11799 | cat conftest.err >&5 |
| 11800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11801 | (exit $ac_status); } && |
| 11802 | { ac_try='test -z "$ac_c_werror_flag" |
| 11803 | || test ! -s conftest.err' |
| 11804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11805 | (eval $ac_try) 2>&5 |
| 11806 | ac_status=$? |
| 11807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11808 | (exit $ac_status); }; } && |
| 11809 | { ac_try='test -s conftest.$ac_objext' |
| 11810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11811 | (eval $ac_try) 2>&5 |
| 11812 | ac_status=$? |
| 11813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11814 | (exit $ac_status); }; }; then |
| 11815 | ac_cv_header_stdc=yes |
| 11816 | else |
| 11817 | echo "$as_me: failed program was:" >&5 |
| 11818 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11819 | |
| 11820 | ac_cv_header_stdc=no |
| 11821 | fi |
| 11822 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11823 | |
| 11824 | if test $ac_cv_header_stdc = yes; then |
| 11825 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 11826 | cat >conftest.$ac_ext <<_ACEOF |
| 11827 | /* confdefs.h. */ |
| 11828 | _ACEOF |
| 11829 | cat confdefs.h >>conftest.$ac_ext |
| 11830 | cat >>conftest.$ac_ext <<_ACEOF |
| 11831 | /* end confdefs.h. */ |
| 11832 | #include <string.h> |
| 11833 | |
| 11834 | _ACEOF |
| 11835 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11836 | $EGREP "memchr" >/dev/null 2>&1; then |
| 11837 | : |
| 11838 | else |
| 11839 | ac_cv_header_stdc=no |
| 11840 | fi |
| 11841 | rm -f conftest* |
| 11842 | |
| 11843 | fi |
| 11844 | |
| 11845 | if test $ac_cv_header_stdc = yes; then |
| 11846 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 11847 | cat >conftest.$ac_ext <<_ACEOF |
| 11848 | /* confdefs.h. */ |
| 11849 | _ACEOF |
| 11850 | cat confdefs.h >>conftest.$ac_ext |
| 11851 | cat >>conftest.$ac_ext <<_ACEOF |
| 11852 | /* end confdefs.h. */ |
| 11853 | #include <stdlib.h> |
| 11854 | |
| 11855 | _ACEOF |
| 11856 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11857 | $EGREP "free" >/dev/null 2>&1; then |
| 11858 | : |
| 11859 | else |
| 11860 | ac_cv_header_stdc=no |
| 11861 | fi |
| 11862 | rm -f conftest* |
| 11863 | |
| 11864 | fi |
| 11865 | |
| 11866 | if test $ac_cv_header_stdc = yes; then |
| 11867 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 11868 | if test "$cross_compiling" = yes; then |
| 11869 | : |
| 11870 | else |
| 11871 | cat >conftest.$ac_ext <<_ACEOF |
| 11872 | /* confdefs.h. */ |
| 11873 | _ACEOF |
| 11874 | cat confdefs.h >>conftest.$ac_ext |
| 11875 | cat >>conftest.$ac_ext <<_ACEOF |
| 11876 | /* end confdefs.h. */ |
| 11877 | #include <ctype.h> |
| 11878 | #if ((' ' & 0x0FF) == 0x020) |
| 11879 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 11880 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 11881 | #else |
| 11882 | # define ISLOWER(c) \ |
| 11883 | (('a' <= (c) && (c) <= 'i') \ |
| 11884 | || ('j' <= (c) && (c) <= 'r') \ |
| 11885 | || ('s' <= (c) && (c) <= 'z')) |
| 11886 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 11887 | #endif |
| 11888 | |
| 11889 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 11890 | int |
| 11891 | main () |
| 11892 | { |
| 11893 | int i; |
| 11894 | for (i = 0; i < 256; i++) |
| 11895 | if (XOR (islower (i), ISLOWER (i)) |
| 11896 | || toupper (i) != TOUPPER (i)) |
| 11897 | exit(2); |
| 11898 | exit (0); |
| 11899 | } |
| 11900 | _ACEOF |
| 11901 | rm -f conftest$ac_exeext |
| 11902 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11903 | (eval $ac_link) 2>&5 |
| 11904 | ac_status=$? |
| 11905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11906 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11908 | (eval $ac_try) 2>&5 |
| 11909 | ac_status=$? |
| 11910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11911 | (exit $ac_status); }; }; then |
| 11912 | : |
| 11913 | else |
| 11914 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11915 | echo "$as_me: failed program was:" >&5 |
| 11916 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11917 | |
| 11918 | ( exit $ac_status ) |
| 11919 | ac_cv_header_stdc=no |
| 11920 | fi |
| 11921 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11922 | fi |
| 11923 | fi |
| 11924 | fi |
| 11925 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 11926 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 11927 | if test $ac_cv_header_stdc = yes; then |
| 11928 | |
| 11929 | cat >>confdefs.h <<\_ACEOF |
| 11930 | #define STDC_HEADERS 1 |
| 11931 | _ACEOF |
| 11932 | |
| 11933 | fi |
| 11934 | |
| 11935 | |
| 11936 | for ac_header in nlist.h |
| 11937 | do |
| 11938 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11939 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11940 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11941 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11942 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11944 | fi |
| 11945 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11946 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11947 | else |
| 11948 | # Is the header compilable? |
| 11949 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11950 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 11951 | cat >conftest.$ac_ext <<_ACEOF |
| 11952 | /* confdefs.h. */ |
| 11953 | _ACEOF |
| 11954 | cat confdefs.h >>conftest.$ac_ext |
| 11955 | cat >>conftest.$ac_ext <<_ACEOF |
| 11956 | /* end confdefs.h. */ |
| 11957 | $ac_includes_default |
| 11958 | #include <$ac_header> |
| 11959 | _ACEOF |
| 11960 | rm -f conftest.$ac_objext |
| 11961 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11962 | (eval $ac_compile) 2>conftest.er1 |
| 11963 | ac_status=$? |
| 11964 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11965 | rm -f conftest.er1 |
| 11966 | cat conftest.err >&5 |
| 11967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11968 | (exit $ac_status); } && |
| 11969 | { ac_try='test -z "$ac_c_werror_flag" |
| 11970 | || test ! -s conftest.err' |
| 11971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11972 | (eval $ac_try) 2>&5 |
| 11973 | ac_status=$? |
| 11974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11975 | (exit $ac_status); }; } && |
| 11976 | { ac_try='test -s conftest.$ac_objext' |
| 11977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11978 | (eval $ac_try) 2>&5 |
| 11979 | ac_status=$? |
| 11980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11981 | (exit $ac_status); }; }; then |
| 11982 | ac_header_compiler=yes |
| 11983 | else |
| 11984 | echo "$as_me: failed program was:" >&5 |
| 11985 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11986 | |
| 11987 | ac_header_compiler=no |
| 11988 | fi |
| 11989 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11990 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11991 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11992 | |
| 11993 | # Is the header present? |
| 11994 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11995 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 11996 | cat >conftest.$ac_ext <<_ACEOF |
| 11997 | /* confdefs.h. */ |
| 11998 | _ACEOF |
| 11999 | cat confdefs.h >>conftest.$ac_ext |
| 12000 | cat >>conftest.$ac_ext <<_ACEOF |
| 12001 | /* end confdefs.h. */ |
| 12002 | #include <$ac_header> |
| 12003 | _ACEOF |
| 12004 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12005 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12006 | ac_status=$? |
| 12007 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12008 | rm -f conftest.er1 |
| 12009 | cat conftest.err >&5 |
| 12010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12011 | (exit $ac_status); } >/dev/null; then |
| 12012 | if test -s conftest.err; then |
| 12013 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12014 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12015 | else |
| 12016 | ac_cpp_err= |
| 12017 | fi |
| 12018 | else |
| 12019 | ac_cpp_err=yes |
| 12020 | fi |
| 12021 | if test -z "$ac_cpp_err"; then |
| 12022 | ac_header_preproc=yes |
| 12023 | else |
| 12024 | echo "$as_me: failed program was:" >&5 |
| 12025 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12026 | |
| 12027 | ac_header_preproc=no |
| 12028 | fi |
| 12029 | rm -f conftest.err conftest.$ac_ext |
| 12030 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12031 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 12032 | |
| 12033 | # So? What about this header? |
| 12034 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12035 | yes:no: ) |
| 12036 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12037 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12038 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12039 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12040 | ac_header_preproc=yes |
| 12041 | ;; |
| 12042 | no:yes:* ) |
| 12043 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12044 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12045 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12046 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12047 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12048 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12049 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12050 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12051 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12052 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12053 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12054 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12055 | ( |
| 12056 | cat <<\_ASBOX |
| 12057 | ## ------------------------------------------ ## |
| 12058 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 12059 | ## ------------------------------------------ ## |
| 12060 | _ASBOX |
| 12061 | ) | |
| 12062 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12063 | ;; |
| 12064 | esac |
| 12065 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12066 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12067 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12069 | else |
| 12070 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12071 | fi |
| 12072 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12073 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12074 | |
| 12075 | fi |
| 12076 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12077 | cat >>confdefs.h <<_ACEOF |
| 12078 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12079 | _ACEOF |
| 12080 | |
| 12081 | fi |
| 12082 | |
| 12083 | done |
| 12084 | |
| 12085 | |
| 12086 | for ac_header in link.h |
| 12087 | do |
| 12088 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12089 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12090 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12091 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12093 | else |
| 12094 | cat >conftest.$ac_ext <<_ACEOF |
| 12095 | /* confdefs.h. */ |
| 12096 | _ACEOF |
| 12097 | cat confdefs.h >>conftest.$ac_ext |
| 12098 | cat >>conftest.$ac_ext <<_ACEOF |
| 12099 | /* end confdefs.h. */ |
| 12100 | #if HAVE_SYS_TYPES_H |
| 12101 | # include <sys/types.h> |
| 12102 | #endif |
| 12103 | #if HAVE_NLIST_H |
| 12104 | # include <nlist.h> |
| 12105 | #endif |
| 12106 | |
| 12107 | |
| 12108 | #include <$ac_header> |
| 12109 | _ACEOF |
| 12110 | rm -f conftest.$ac_objext |
| 12111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12112 | (eval $ac_compile) 2>conftest.er1 |
| 12113 | ac_status=$? |
| 12114 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12115 | rm -f conftest.er1 |
| 12116 | cat conftest.err >&5 |
| 12117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12118 | (exit $ac_status); } && |
| 12119 | { ac_try='test -z "$ac_c_werror_flag" |
| 12120 | || test ! -s conftest.err' |
| 12121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12122 | (eval $ac_try) 2>&5 |
| 12123 | ac_status=$? |
| 12124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12125 | (exit $ac_status); }; } && |
| 12126 | { ac_try='test -s conftest.$ac_objext' |
| 12127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12128 | (eval $ac_try) 2>&5 |
| 12129 | ac_status=$? |
| 12130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12131 | (exit $ac_status); }; }; then |
| 12132 | eval "$as_ac_Header=yes" |
| 12133 | else |
| 12134 | echo "$as_me: failed program was:" >&5 |
| 12135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12136 | |
| 12137 | eval "$as_ac_Header=no" |
| 12138 | fi |
| 12139 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12140 | fi |
| 12141 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12142 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12143 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12144 | cat >>confdefs.h <<_ACEOF |
| 12145 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12146 | _ACEOF |
| 12147 | |
| 12148 | fi |
| 12149 | |
| 12150 | done |
| 12151 | |
| 12152 | |
| 12153 | for ac_header in machine/reg.h |
| 12154 | do |
| 12155 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12156 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12157 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12158 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12159 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12161 | fi |
| 12162 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12163 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12164 | else |
| 12165 | # Is the header compilable? |
| 12166 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12167 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 12168 | cat >conftest.$ac_ext <<_ACEOF |
| 12169 | /* confdefs.h. */ |
| 12170 | _ACEOF |
| 12171 | cat confdefs.h >>conftest.$ac_ext |
| 12172 | cat >>conftest.$ac_ext <<_ACEOF |
| 12173 | /* end confdefs.h. */ |
| 12174 | $ac_includes_default |
| 12175 | #include <$ac_header> |
| 12176 | _ACEOF |
| 12177 | rm -f conftest.$ac_objext |
| 12178 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12179 | (eval $ac_compile) 2>conftest.er1 |
| 12180 | ac_status=$? |
| 12181 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12182 | rm -f conftest.er1 |
| 12183 | cat conftest.err >&5 |
| 12184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12185 | (exit $ac_status); } && |
| 12186 | { ac_try='test -z "$ac_c_werror_flag" |
| 12187 | || test ! -s conftest.err' |
| 12188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12189 | (eval $ac_try) 2>&5 |
| 12190 | ac_status=$? |
| 12191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12192 | (exit $ac_status); }; } && |
| 12193 | { ac_try='test -s conftest.$ac_objext' |
| 12194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12195 | (eval $ac_try) 2>&5 |
| 12196 | ac_status=$? |
| 12197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12198 | (exit $ac_status); }; }; then |
| 12199 | ac_header_compiler=yes |
| 12200 | else |
| 12201 | echo "$as_me: failed program was:" >&5 |
| 12202 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12203 | |
| 12204 | ac_header_compiler=no |
| 12205 | fi |
| 12206 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12207 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12208 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12209 | |
| 12210 | # Is the header present? |
| 12211 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12212 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 12213 | cat >conftest.$ac_ext <<_ACEOF |
| 12214 | /* confdefs.h. */ |
| 12215 | _ACEOF |
| 12216 | cat confdefs.h >>conftest.$ac_ext |
| 12217 | cat >>conftest.$ac_ext <<_ACEOF |
| 12218 | /* end confdefs.h. */ |
| 12219 | #include <$ac_header> |
| 12220 | _ACEOF |
| 12221 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12222 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12223 | ac_status=$? |
| 12224 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12225 | rm -f conftest.er1 |
| 12226 | cat conftest.err >&5 |
| 12227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12228 | (exit $ac_status); } >/dev/null; then |
| 12229 | if test -s conftest.err; then |
| 12230 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12231 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12232 | else |
| 12233 | ac_cpp_err= |
| 12234 | fi |
| 12235 | else |
| 12236 | ac_cpp_err=yes |
| 12237 | fi |
| 12238 | if test -z "$ac_cpp_err"; then |
| 12239 | ac_header_preproc=yes |
| 12240 | else |
| 12241 | echo "$as_me: failed program was:" >&5 |
| 12242 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12243 | |
| 12244 | ac_header_preproc=no |
| 12245 | fi |
| 12246 | rm -f conftest.err conftest.$ac_ext |
| 12247 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12248 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 12249 | |
| 12250 | # So? What about this header? |
| 12251 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12252 | yes:no: ) |
| 12253 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12254 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12255 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12256 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12257 | ac_header_preproc=yes |
| 12258 | ;; |
| 12259 | no:yes:* ) |
| 12260 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12261 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12262 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12263 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12264 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12265 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12266 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12267 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12268 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12269 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12270 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12271 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12272 | ( |
| 12273 | cat <<\_ASBOX |
| 12274 | ## ------------------------------------------ ## |
| 12275 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 12276 | ## ------------------------------------------ ## |
| 12277 | _ASBOX |
| 12278 | ) | |
| 12279 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12280 | ;; |
| 12281 | esac |
| 12282 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12283 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12284 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12286 | else |
| 12287 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12288 | fi |
| 12289 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12290 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12291 | |
| 12292 | fi |
| 12293 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12294 | cat >>confdefs.h <<_ACEOF |
| 12295 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12296 | _ACEOF |
| 12297 | |
| 12298 | fi |
| 12299 | |
| 12300 | done |
| 12301 | |
| 12302 | |
| 12303 | |
| 12304 | for ac_header in poll.h sys/poll.h |
| 12305 | do |
| 12306 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12307 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12308 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12309 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12310 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12312 | fi |
| 12313 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12314 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12315 | else |
| 12316 | # Is the header compilable? |
| 12317 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12318 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 12319 | cat >conftest.$ac_ext <<_ACEOF |
| 12320 | /* confdefs.h. */ |
| 12321 | _ACEOF |
| 12322 | cat confdefs.h >>conftest.$ac_ext |
| 12323 | cat >>conftest.$ac_ext <<_ACEOF |
| 12324 | /* end confdefs.h. */ |
| 12325 | $ac_includes_default |
| 12326 | #include <$ac_header> |
| 12327 | _ACEOF |
| 12328 | rm -f conftest.$ac_objext |
| 12329 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12330 | (eval $ac_compile) 2>conftest.er1 |
| 12331 | ac_status=$? |
| 12332 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12333 | rm -f conftest.er1 |
| 12334 | cat conftest.err >&5 |
| 12335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12336 | (exit $ac_status); } && |
| 12337 | { ac_try='test -z "$ac_c_werror_flag" |
| 12338 | || test ! -s conftest.err' |
| 12339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12340 | (eval $ac_try) 2>&5 |
| 12341 | ac_status=$? |
| 12342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12343 | (exit $ac_status); }; } && |
| 12344 | { ac_try='test -s conftest.$ac_objext' |
| 12345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12346 | (eval $ac_try) 2>&5 |
| 12347 | ac_status=$? |
| 12348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12349 | (exit $ac_status); }; }; then |
| 12350 | ac_header_compiler=yes |
| 12351 | else |
| 12352 | echo "$as_me: failed program was:" >&5 |
| 12353 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12354 | |
| 12355 | ac_header_compiler=no |
| 12356 | fi |
| 12357 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12358 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12359 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12360 | |
| 12361 | # Is the header present? |
| 12362 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12363 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 12364 | cat >conftest.$ac_ext <<_ACEOF |
| 12365 | /* confdefs.h. */ |
| 12366 | _ACEOF |
| 12367 | cat confdefs.h >>conftest.$ac_ext |
| 12368 | cat >>conftest.$ac_ext <<_ACEOF |
| 12369 | /* end confdefs.h. */ |
| 12370 | #include <$ac_header> |
| 12371 | _ACEOF |
| 12372 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12373 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12374 | ac_status=$? |
| 12375 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12376 | rm -f conftest.er1 |
| 12377 | cat conftest.err >&5 |
| 12378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12379 | (exit $ac_status); } >/dev/null; then |
| 12380 | if test -s conftest.err; then |
| 12381 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12382 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12383 | else |
| 12384 | ac_cpp_err= |
| 12385 | fi |
| 12386 | else |
| 12387 | ac_cpp_err=yes |
| 12388 | fi |
| 12389 | if test -z "$ac_cpp_err"; then |
| 12390 | ac_header_preproc=yes |
| 12391 | else |
| 12392 | echo "$as_me: failed program was:" >&5 |
| 12393 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12394 | |
| 12395 | ac_header_preproc=no |
| 12396 | fi |
| 12397 | rm -f conftest.err conftest.$ac_ext |
| 12398 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12399 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 12400 | |
| 12401 | # So? What about this header? |
| 12402 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12403 | yes:no: ) |
| 12404 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12405 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12406 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12407 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12408 | ac_header_preproc=yes |
| 12409 | ;; |
| 12410 | no:yes:* ) |
| 12411 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12412 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12413 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12414 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12415 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12416 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12417 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12418 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12419 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12420 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12421 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12422 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12423 | ( |
| 12424 | cat <<\_ASBOX |
| 12425 | ## ------------------------------------------ ## |
| 12426 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 12427 | ## ------------------------------------------ ## |
| 12428 | _ASBOX |
| 12429 | ) | |
| 12430 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12431 | ;; |
| 12432 | esac |
| 12433 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12434 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12435 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12437 | else |
| 12438 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12439 | fi |
| 12440 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12441 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12442 | |
| 12443 | fi |
| 12444 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12445 | cat >>confdefs.h <<_ACEOF |
| 12446 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12447 | _ACEOF |
| 12448 | |
| 12449 | fi |
| 12450 | |
| 12451 | done |
| 12452 | |
| 12453 | |
| 12454 | |
| 12455 | |
| 12456 | for ac_header in proc_service.h thread_db.h gnu/libc-version.h |
| 12457 | do |
| 12458 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12459 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12460 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12461 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12462 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12464 | fi |
| 12465 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12466 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12467 | else |
| 12468 | # Is the header compilable? |
| 12469 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12470 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 12471 | cat >conftest.$ac_ext <<_ACEOF |
| 12472 | /* confdefs.h. */ |
| 12473 | _ACEOF |
| 12474 | cat confdefs.h >>conftest.$ac_ext |
| 12475 | cat >>conftest.$ac_ext <<_ACEOF |
| 12476 | /* end confdefs.h. */ |
| 12477 | $ac_includes_default |
| 12478 | #include <$ac_header> |
| 12479 | _ACEOF |
| 12480 | rm -f conftest.$ac_objext |
| 12481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12482 | (eval $ac_compile) 2>conftest.er1 |
| 12483 | ac_status=$? |
| 12484 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12485 | rm -f conftest.er1 |
| 12486 | cat conftest.err >&5 |
| 12487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12488 | (exit $ac_status); } && |
| 12489 | { ac_try='test -z "$ac_c_werror_flag" |
| 12490 | || test ! -s conftest.err' |
| 12491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12492 | (eval $ac_try) 2>&5 |
| 12493 | ac_status=$? |
| 12494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12495 | (exit $ac_status); }; } && |
| 12496 | { ac_try='test -s conftest.$ac_objext' |
| 12497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12498 | (eval $ac_try) 2>&5 |
| 12499 | ac_status=$? |
| 12500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12501 | (exit $ac_status); }; }; then |
| 12502 | ac_header_compiler=yes |
| 12503 | else |
| 12504 | echo "$as_me: failed program was:" >&5 |
| 12505 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12506 | |
| 12507 | ac_header_compiler=no |
| 12508 | fi |
| 12509 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12510 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12511 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12512 | |
| 12513 | # Is the header present? |
| 12514 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12515 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 12516 | cat >conftest.$ac_ext <<_ACEOF |
| 12517 | /* confdefs.h. */ |
| 12518 | _ACEOF |
| 12519 | cat confdefs.h >>conftest.$ac_ext |
| 12520 | cat >>conftest.$ac_ext <<_ACEOF |
| 12521 | /* end confdefs.h. */ |
| 12522 | #include <$ac_header> |
| 12523 | _ACEOF |
| 12524 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12525 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12526 | ac_status=$? |
| 12527 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12528 | rm -f conftest.er1 |
| 12529 | cat conftest.err >&5 |
| 12530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12531 | (exit $ac_status); } >/dev/null; then |
| 12532 | if test -s conftest.err; then |
| 12533 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12534 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12535 | else |
| 12536 | ac_cpp_err= |
| 12537 | fi |
| 12538 | else |
| 12539 | ac_cpp_err=yes |
| 12540 | fi |
| 12541 | if test -z "$ac_cpp_err"; then |
| 12542 | ac_header_preproc=yes |
| 12543 | else |
| 12544 | echo "$as_me: failed program was:" >&5 |
| 12545 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12546 | |
| 12547 | ac_header_preproc=no |
| 12548 | fi |
| 12549 | rm -f conftest.err conftest.$ac_ext |
| 12550 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12551 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 12552 | |
| 12553 | # So? What about this header? |
| 12554 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12555 | yes:no: ) |
| 12556 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12557 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12558 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12559 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12560 | ac_header_preproc=yes |
| 12561 | ;; |
| 12562 | no:yes:* ) |
| 12563 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12564 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12565 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12566 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12567 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12568 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12569 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12570 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12571 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12572 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12573 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12574 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12575 | ( |
| 12576 | cat <<\_ASBOX |
| 12577 | ## ------------------------------------------ ## |
| 12578 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 12579 | ## ------------------------------------------ ## |
| 12580 | _ASBOX |
| 12581 | ) | |
| 12582 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12583 | ;; |
| 12584 | esac |
| 12585 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12586 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12587 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12589 | else |
| 12590 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12591 | fi |
| 12592 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12593 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12594 | |
| 12595 | fi |
| 12596 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12597 | cat >>confdefs.h <<_ACEOF |
| 12598 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12599 | _ACEOF |
| 12600 | |
| 12601 | fi |
| 12602 | |
| 12603 | done |
| 12604 | |
| 12605 | |
| 12606 | for ac_header in signal.h |
| 12607 | do |
| 12608 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12609 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12610 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12611 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12612 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12614 | fi |
| 12615 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12616 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12617 | else |
| 12618 | # Is the header compilable? |
| 12619 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12620 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 12621 | cat >conftest.$ac_ext <<_ACEOF |
| 12622 | /* confdefs.h. */ |
| 12623 | _ACEOF |
| 12624 | cat confdefs.h >>conftest.$ac_ext |
| 12625 | cat >>conftest.$ac_ext <<_ACEOF |
| 12626 | /* end confdefs.h. */ |
| 12627 | $ac_includes_default |
| 12628 | #include <$ac_header> |
| 12629 | _ACEOF |
| 12630 | rm -f conftest.$ac_objext |
| 12631 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12632 | (eval $ac_compile) 2>conftest.er1 |
| 12633 | ac_status=$? |
| 12634 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12635 | rm -f conftest.er1 |
| 12636 | cat conftest.err >&5 |
| 12637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12638 | (exit $ac_status); } && |
| 12639 | { ac_try='test -z "$ac_c_werror_flag" |
| 12640 | || test ! -s conftest.err' |
| 12641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12642 | (eval $ac_try) 2>&5 |
| 12643 | ac_status=$? |
| 12644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12645 | (exit $ac_status); }; } && |
| 12646 | { ac_try='test -s conftest.$ac_objext' |
| 12647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12648 | (eval $ac_try) 2>&5 |
| 12649 | ac_status=$? |
| 12650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12651 | (exit $ac_status); }; }; then |
| 12652 | ac_header_compiler=yes |
| 12653 | else |
| 12654 | echo "$as_me: failed program was:" >&5 |
| 12655 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12656 | |
| 12657 | ac_header_compiler=no |
| 12658 | fi |
| 12659 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12660 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12661 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12662 | |
| 12663 | # Is the header present? |
| 12664 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12665 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 12666 | cat >conftest.$ac_ext <<_ACEOF |
| 12667 | /* confdefs.h. */ |
| 12668 | _ACEOF |
| 12669 | cat confdefs.h >>conftest.$ac_ext |
| 12670 | cat >>conftest.$ac_ext <<_ACEOF |
| 12671 | /* end confdefs.h. */ |
| 12672 | #include <$ac_header> |
| 12673 | _ACEOF |
| 12674 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12675 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12676 | ac_status=$? |
| 12677 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12678 | rm -f conftest.er1 |
| 12679 | cat conftest.err >&5 |
| 12680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12681 | (exit $ac_status); } >/dev/null; then |
| 12682 | if test -s conftest.err; then |
| 12683 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12684 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12685 | else |
| 12686 | ac_cpp_err= |
| 12687 | fi |
| 12688 | else |
| 12689 | ac_cpp_err=yes |
| 12690 | fi |
| 12691 | if test -z "$ac_cpp_err"; then |
| 12692 | ac_header_preproc=yes |
| 12693 | else |
| 12694 | echo "$as_me: failed program was:" >&5 |
| 12695 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12696 | |
| 12697 | ac_header_preproc=no |
| 12698 | fi |
| 12699 | rm -f conftest.err conftest.$ac_ext |
| 12700 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12701 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 12702 | |
| 12703 | # So? What about this header? |
| 12704 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12705 | yes:no: ) |
| 12706 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12707 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12708 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12709 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12710 | ac_header_preproc=yes |
| 12711 | ;; |
| 12712 | no:yes:* ) |
| 12713 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12714 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12715 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12716 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12717 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12718 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12719 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12720 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12721 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12722 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12723 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12724 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12725 | ( |
| 12726 | cat <<\_ASBOX |
| 12727 | ## ------------------------------------------ ## |
| 12728 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 12729 | ## ------------------------------------------ ## |
| 12730 | _ASBOX |
| 12731 | ) | |
| 12732 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12733 | ;; |
| 12734 | esac |
| 12735 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12736 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12737 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12739 | else |
| 12740 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12741 | fi |
| 12742 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12743 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12744 | |
| 12745 | fi |
| 12746 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12747 | cat >>confdefs.h <<_ACEOF |
| 12748 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12749 | _ACEOF |
| 12750 | |
| 12751 | fi |
| 12752 | |
| 12753 | done |
| 12754 | |
| 12755 | |
| 12756 | for ac_header in stddef.h |
| 12757 | do |
| 12758 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12759 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12760 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12761 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12762 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12764 | fi |
| 12765 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12766 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12767 | else |
| 12768 | # Is the header compilable? |
| 12769 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12770 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 12771 | cat >conftest.$ac_ext <<_ACEOF |
| 12772 | /* confdefs.h. */ |
| 12773 | _ACEOF |
| 12774 | cat confdefs.h >>conftest.$ac_ext |
| 12775 | cat >>conftest.$ac_ext <<_ACEOF |
| 12776 | /* end confdefs.h. */ |
| 12777 | $ac_includes_default |
| 12778 | #include <$ac_header> |
| 12779 | _ACEOF |
| 12780 | rm -f conftest.$ac_objext |
| 12781 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12782 | (eval $ac_compile) 2>conftest.er1 |
| 12783 | ac_status=$? |
| 12784 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12785 | rm -f conftest.er1 |
| 12786 | cat conftest.err >&5 |
| 12787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12788 | (exit $ac_status); } && |
| 12789 | { ac_try='test -z "$ac_c_werror_flag" |
| 12790 | || test ! -s conftest.err' |
| 12791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12792 | (eval $ac_try) 2>&5 |
| 12793 | ac_status=$? |
| 12794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12795 | (exit $ac_status); }; } && |
| 12796 | { ac_try='test -s conftest.$ac_objext' |
| 12797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12798 | (eval $ac_try) 2>&5 |
| 12799 | ac_status=$? |
| 12800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12801 | (exit $ac_status); }; }; then |
| 12802 | ac_header_compiler=yes |
| 12803 | else |
| 12804 | echo "$as_me: failed program was:" >&5 |
| 12805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12806 | |
| 12807 | ac_header_compiler=no |
| 12808 | fi |
| 12809 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12810 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12811 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12812 | |
| 12813 | # Is the header present? |
| 12814 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12815 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 12816 | cat >conftest.$ac_ext <<_ACEOF |
| 12817 | /* confdefs.h. */ |
| 12818 | _ACEOF |
| 12819 | cat confdefs.h >>conftest.$ac_ext |
| 12820 | cat >>conftest.$ac_ext <<_ACEOF |
| 12821 | /* end confdefs.h. */ |
| 12822 | #include <$ac_header> |
| 12823 | _ACEOF |
| 12824 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12825 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12826 | ac_status=$? |
| 12827 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12828 | rm -f conftest.er1 |
| 12829 | cat conftest.err >&5 |
| 12830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12831 | (exit $ac_status); } >/dev/null; then |
| 12832 | if test -s conftest.err; then |
| 12833 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12834 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12835 | else |
| 12836 | ac_cpp_err= |
| 12837 | fi |
| 12838 | else |
| 12839 | ac_cpp_err=yes |
| 12840 | fi |
| 12841 | if test -z "$ac_cpp_err"; then |
| 12842 | ac_header_preproc=yes |
| 12843 | else |
| 12844 | echo "$as_me: failed program was:" >&5 |
| 12845 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12846 | |
| 12847 | ac_header_preproc=no |
| 12848 | fi |
| 12849 | rm -f conftest.err conftest.$ac_ext |
| 12850 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12851 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 12852 | |
| 12853 | # So? What about this header? |
| 12854 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12855 | yes:no: ) |
| 12856 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12857 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12858 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12859 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12860 | ac_header_preproc=yes |
| 12861 | ;; |
| 12862 | no:yes:* ) |
| 12863 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12864 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12865 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12866 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12867 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12868 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12869 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12870 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12871 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12872 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12873 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12874 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12875 | ( |
| 12876 | cat <<\_ASBOX |
| 12877 | ## ------------------------------------------ ## |
| 12878 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 12879 | ## ------------------------------------------ ## |
| 12880 | _ASBOX |
| 12881 | ) | |
| 12882 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12883 | ;; |
| 12884 | esac |
| 12885 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12886 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12887 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12889 | else |
| 12890 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12891 | fi |
| 12892 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12893 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12894 | |
| 12895 | fi |
| 12896 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12897 | cat >>confdefs.h <<_ACEOF |
| 12898 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12899 | _ACEOF |
| 12900 | |
| 12901 | fi |
| 12902 | |
| 12903 | done |
| 12904 | |
| 12905 | |
| 12906 | for ac_header in stdlib.h |
| 12907 | do |
| 12908 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12909 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12910 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12911 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12912 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12914 | fi |
| 12915 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12916 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12917 | else |
| 12918 | # Is the header compilable? |
| 12919 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12920 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 12921 | cat >conftest.$ac_ext <<_ACEOF |
| 12922 | /* confdefs.h. */ |
| 12923 | _ACEOF |
| 12924 | cat confdefs.h >>conftest.$ac_ext |
| 12925 | cat >>conftest.$ac_ext <<_ACEOF |
| 12926 | /* end confdefs.h. */ |
| 12927 | $ac_includes_default |
| 12928 | #include <$ac_header> |
| 12929 | _ACEOF |
| 12930 | rm -f conftest.$ac_objext |
| 12931 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12932 | (eval $ac_compile) 2>conftest.er1 |
| 12933 | ac_status=$? |
| 12934 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12935 | rm -f conftest.er1 |
| 12936 | cat conftest.err >&5 |
| 12937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12938 | (exit $ac_status); } && |
| 12939 | { ac_try='test -z "$ac_c_werror_flag" |
| 12940 | || test ! -s conftest.err' |
| 12941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12942 | (eval $ac_try) 2>&5 |
| 12943 | ac_status=$? |
| 12944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12945 | (exit $ac_status); }; } && |
| 12946 | { ac_try='test -s conftest.$ac_objext' |
| 12947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12948 | (eval $ac_try) 2>&5 |
| 12949 | ac_status=$? |
| 12950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12951 | (exit $ac_status); }; }; then |
| 12952 | ac_header_compiler=yes |
| 12953 | else |
| 12954 | echo "$as_me: failed program was:" >&5 |
| 12955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12956 | |
| 12957 | ac_header_compiler=no |
| 12958 | fi |
| 12959 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12960 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12961 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12962 | |
| 12963 | # Is the header present? |
| 12964 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12965 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 12966 | cat >conftest.$ac_ext <<_ACEOF |
| 12967 | /* confdefs.h. */ |
| 12968 | _ACEOF |
| 12969 | cat confdefs.h >>conftest.$ac_ext |
| 12970 | cat >>conftest.$ac_ext <<_ACEOF |
| 12971 | /* end confdefs.h. */ |
| 12972 | #include <$ac_header> |
| 12973 | _ACEOF |
| 12974 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12975 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12976 | ac_status=$? |
| 12977 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12978 | rm -f conftest.er1 |
| 12979 | cat conftest.err >&5 |
| 12980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12981 | (exit $ac_status); } >/dev/null; then |
| 12982 | if test -s conftest.err; then |
| 12983 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12984 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12985 | else |
| 12986 | ac_cpp_err= |
| 12987 | fi |
| 12988 | else |
| 12989 | ac_cpp_err=yes |
| 12990 | fi |
| 12991 | if test -z "$ac_cpp_err"; then |
| 12992 | ac_header_preproc=yes |
| 12993 | else |
| 12994 | echo "$as_me: failed program was:" >&5 |
| 12995 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12996 | |
| 12997 | ac_header_preproc=no |
| 12998 | fi |
| 12999 | rm -f conftest.err conftest.$ac_ext |
| 13000 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13001 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 13002 | |
| 13003 | # So? What about this header? |
| 13004 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13005 | yes:no: ) |
| 13006 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13007 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 13008 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 13009 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 13010 | ac_header_preproc=yes |
| 13011 | ;; |
| 13012 | no:yes:* ) |
| 13013 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 13014 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 13015 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 13016 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 13017 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 13018 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 13019 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 13020 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 13021 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 13022 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 13023 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 13024 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 13025 | ( |
| 13026 | cat <<\_ASBOX |
| 13027 | ## ------------------------------------------ ## |
| 13028 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 13029 | ## ------------------------------------------ ## |
| 13030 | _ASBOX |
| 13031 | ) | |
| 13032 | sed "s/^/$as_me: WARNING: /" >&2 |
| 13033 | ;; |
| 13034 | esac |
| 13035 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13036 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13037 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13039 | else |
| 13040 | eval "$as_ac_Header=\$ac_header_preproc" |
| 13041 | fi |
| 13042 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13043 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 13044 | |
| 13045 | fi |
| 13046 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 13047 | cat >>confdefs.h <<_ACEOF |
| 13048 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13049 | _ACEOF |
| 13050 | |
| 13051 | fi |
| 13052 | |
| 13053 | done |
| 13054 | |
| 13055 | |
| 13056 | for ac_header in stdint.h |
| 13057 | do |
| 13058 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 13059 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13060 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13061 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13062 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13064 | fi |
| 13065 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13066 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 13067 | else |
| 13068 | # Is the header compilable? |
| 13069 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 13070 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 13071 | cat >conftest.$ac_ext <<_ACEOF |
| 13072 | /* confdefs.h. */ |
| 13073 | _ACEOF |
| 13074 | cat confdefs.h >>conftest.$ac_ext |
| 13075 | cat >>conftest.$ac_ext <<_ACEOF |
| 13076 | /* end confdefs.h. */ |
| 13077 | $ac_includes_default |
| 13078 | #include <$ac_header> |
| 13079 | _ACEOF |
| 13080 | rm -f conftest.$ac_objext |
| 13081 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13082 | (eval $ac_compile) 2>conftest.er1 |
| 13083 | ac_status=$? |
| 13084 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13085 | rm -f conftest.er1 |
| 13086 | cat conftest.err >&5 |
| 13087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13088 | (exit $ac_status); } && |
| 13089 | { ac_try='test -z "$ac_c_werror_flag" |
| 13090 | || test ! -s conftest.err' |
| 13091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13092 | (eval $ac_try) 2>&5 |
| 13093 | ac_status=$? |
| 13094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13095 | (exit $ac_status); }; } && |
| 13096 | { ac_try='test -s conftest.$ac_objext' |
| 13097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13098 | (eval $ac_try) 2>&5 |
| 13099 | ac_status=$? |
| 13100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13101 | (exit $ac_status); }; }; then |
| 13102 | ac_header_compiler=yes |
| 13103 | else |
| 13104 | echo "$as_me: failed program was:" >&5 |
| 13105 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13106 | |
| 13107 | ac_header_compiler=no |
| 13108 | fi |
| 13109 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13110 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13111 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 13112 | |
| 13113 | # Is the header present? |
| 13114 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 13115 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 13116 | cat >conftest.$ac_ext <<_ACEOF |
| 13117 | /* confdefs.h. */ |
| 13118 | _ACEOF |
| 13119 | cat confdefs.h >>conftest.$ac_ext |
| 13120 | cat >>conftest.$ac_ext <<_ACEOF |
| 13121 | /* end confdefs.h. */ |
| 13122 | #include <$ac_header> |
| 13123 | _ACEOF |
| 13124 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 13125 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 13126 | ac_status=$? |
| 13127 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13128 | rm -f conftest.er1 |
| 13129 | cat conftest.err >&5 |
| 13130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13131 | (exit $ac_status); } >/dev/null; then |
| 13132 | if test -s conftest.err; then |
| 13133 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 13134 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 13135 | else |
| 13136 | ac_cpp_err= |
| 13137 | fi |
| 13138 | else |
| 13139 | ac_cpp_err=yes |
| 13140 | fi |
| 13141 | if test -z "$ac_cpp_err"; then |
| 13142 | ac_header_preproc=yes |
| 13143 | else |
| 13144 | echo "$as_me: failed program was:" >&5 |
| 13145 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13146 | |
| 13147 | ac_header_preproc=no |
| 13148 | fi |
| 13149 | rm -f conftest.err conftest.$ac_ext |
| 13150 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13151 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 13152 | |
| 13153 | # So? What about this header? |
| 13154 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13155 | yes:no: ) |
| 13156 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13157 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 13158 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 13159 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 13160 | ac_header_preproc=yes |
| 13161 | ;; |
| 13162 | no:yes:* ) |
| 13163 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 13164 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 13165 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 13166 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 13167 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 13168 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 13169 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 13170 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 13171 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 13172 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 13173 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 13174 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 13175 | ( |
| 13176 | cat <<\_ASBOX |
| 13177 | ## ------------------------------------------ ## |
| 13178 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 13179 | ## ------------------------------------------ ## |
| 13180 | _ASBOX |
| 13181 | ) | |
| 13182 | sed "s/^/$as_me: WARNING: /" >&2 |
| 13183 | ;; |
| 13184 | esac |
| 13185 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13186 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13187 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13189 | else |
| 13190 | eval "$as_ac_Header=\$ac_header_preproc" |
| 13191 | fi |
| 13192 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13193 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 13194 | |
| 13195 | fi |
| 13196 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 13197 | cat >>confdefs.h <<_ACEOF |
| 13198 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13199 | _ACEOF |
| 13200 | |
| 13201 | fi |
| 13202 | |
| 13203 | done |
| 13204 | |
| 13205 | |
| 13206 | |
| 13207 | |
| 13208 | for ac_header in string.h memory.h strings.h |
| 13209 | do |
| 13210 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 13211 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13212 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13213 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13214 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13216 | fi |
| 13217 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13218 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 13219 | else |
| 13220 | # Is the header compilable? |
| 13221 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 13222 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 13223 | cat >conftest.$ac_ext <<_ACEOF |
| 13224 | /* confdefs.h. */ |
| 13225 | _ACEOF |
| 13226 | cat confdefs.h >>conftest.$ac_ext |
| 13227 | cat >>conftest.$ac_ext <<_ACEOF |
| 13228 | /* end confdefs.h. */ |
| 13229 | $ac_includes_default |
| 13230 | #include <$ac_header> |
| 13231 | _ACEOF |
| 13232 | rm -f conftest.$ac_objext |
| 13233 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13234 | (eval $ac_compile) 2>conftest.er1 |
| 13235 | ac_status=$? |
| 13236 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13237 | rm -f conftest.er1 |
| 13238 | cat conftest.err >&5 |
| 13239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13240 | (exit $ac_status); } && |
| 13241 | { ac_try='test -z "$ac_c_werror_flag" |
| 13242 | || test ! -s conftest.err' |
| 13243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13244 | (eval $ac_try) 2>&5 |
| 13245 | ac_status=$? |
| 13246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13247 | (exit $ac_status); }; } && |
| 13248 | { ac_try='test -s conftest.$ac_objext' |
| 13249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13250 | (eval $ac_try) 2>&5 |
| 13251 | ac_status=$? |
| 13252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13253 | (exit $ac_status); }; }; then |
| 13254 | ac_header_compiler=yes |
| 13255 | else |
| 13256 | echo "$as_me: failed program was:" >&5 |
| 13257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13258 | |
| 13259 | ac_header_compiler=no |
| 13260 | fi |
| 13261 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13262 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13263 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 13264 | |
| 13265 | # Is the header present? |
| 13266 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 13267 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 13268 | cat >conftest.$ac_ext <<_ACEOF |
| 13269 | /* confdefs.h. */ |
| 13270 | _ACEOF |
| 13271 | cat confdefs.h >>conftest.$ac_ext |
| 13272 | cat >>conftest.$ac_ext <<_ACEOF |
| 13273 | /* end confdefs.h. */ |
| 13274 | #include <$ac_header> |
| 13275 | _ACEOF |
| 13276 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 13277 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 13278 | ac_status=$? |
| 13279 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13280 | rm -f conftest.er1 |
| 13281 | cat conftest.err >&5 |
| 13282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13283 | (exit $ac_status); } >/dev/null; then |
| 13284 | if test -s conftest.err; then |
| 13285 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 13286 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 13287 | else |
| 13288 | ac_cpp_err= |
| 13289 | fi |
| 13290 | else |
| 13291 | ac_cpp_err=yes |
| 13292 | fi |
| 13293 | if test -z "$ac_cpp_err"; then |
| 13294 | ac_header_preproc=yes |
| 13295 | else |
| 13296 | echo "$as_me: failed program was:" >&5 |
| 13297 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13298 | |
| 13299 | ac_header_preproc=no |
| 13300 | fi |
| 13301 | rm -f conftest.err conftest.$ac_ext |
| 13302 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13303 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 13304 | |
| 13305 | # So? What about this header? |
| 13306 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13307 | yes:no: ) |
| 13308 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13309 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 13310 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 13311 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 13312 | ac_header_preproc=yes |
| 13313 | ;; |
| 13314 | no:yes:* ) |
| 13315 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 13316 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 13317 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 13318 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 13319 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 13320 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 13321 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 13322 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 13323 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 13324 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 13325 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 13326 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 13327 | ( |
| 13328 | cat <<\_ASBOX |
| 13329 | ## ------------------------------------------ ## |
| 13330 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 13331 | ## ------------------------------------------ ## |
| 13332 | _ASBOX |
| 13333 | ) | |
| 13334 | sed "s/^/$as_me: WARNING: /" >&2 |
| 13335 | ;; |
| 13336 | esac |
| 13337 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13338 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13339 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13341 | else |
| 13342 | eval "$as_ac_Header=\$ac_header_preproc" |
| 13343 | fi |
| 13344 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13345 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 13346 | |
| 13347 | fi |
| 13348 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 13349 | cat >>confdefs.h <<_ACEOF |
| 13350 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13351 | _ACEOF |
| 13352 | |
| 13353 | fi |
| 13354 | |
| 13355 | done |
| 13356 | |
| 13357 | |
| 13358 | for ac_header in sys/fault.h |
| 13359 | do |
| 13360 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 13361 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13362 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13363 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13364 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13366 | fi |
| 13367 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13368 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 13369 | else |
| 13370 | # Is the header compilable? |
| 13371 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 13372 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 13373 | cat >conftest.$ac_ext <<_ACEOF |
| 13374 | /* confdefs.h. */ |
| 13375 | _ACEOF |
| 13376 | cat confdefs.h >>conftest.$ac_ext |
| 13377 | cat >>conftest.$ac_ext <<_ACEOF |
| 13378 | /* end confdefs.h. */ |
| 13379 | $ac_includes_default |
| 13380 | #include <$ac_header> |
| 13381 | _ACEOF |
| 13382 | rm -f conftest.$ac_objext |
| 13383 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13384 | (eval $ac_compile) 2>conftest.er1 |
| 13385 | ac_status=$? |
| 13386 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13387 | rm -f conftest.er1 |
| 13388 | cat conftest.err >&5 |
| 13389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13390 | (exit $ac_status); } && |
| 13391 | { ac_try='test -z "$ac_c_werror_flag" |
| 13392 | || test ! -s conftest.err' |
| 13393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13394 | (eval $ac_try) 2>&5 |
| 13395 | ac_status=$? |
| 13396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13397 | (exit $ac_status); }; } && |
| 13398 | { ac_try='test -s conftest.$ac_objext' |
| 13399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13400 | (eval $ac_try) 2>&5 |
| 13401 | ac_status=$? |
| 13402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13403 | (exit $ac_status); }; }; then |
| 13404 | ac_header_compiler=yes |
| 13405 | else |
| 13406 | echo "$as_me: failed program was:" >&5 |
| 13407 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13408 | |
| 13409 | ac_header_compiler=no |
| 13410 | fi |
| 13411 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13412 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13413 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 13414 | |
| 13415 | # Is the header present? |
| 13416 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 13417 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 13418 | cat >conftest.$ac_ext <<_ACEOF |
| 13419 | /* confdefs.h. */ |
| 13420 | _ACEOF |
| 13421 | cat confdefs.h >>conftest.$ac_ext |
| 13422 | cat >>conftest.$ac_ext <<_ACEOF |
| 13423 | /* end confdefs.h. */ |
| 13424 | #include <$ac_header> |
| 13425 | _ACEOF |
| 13426 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 13427 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 13428 | ac_status=$? |
| 13429 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13430 | rm -f conftest.er1 |
| 13431 | cat conftest.err >&5 |
| 13432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13433 | (exit $ac_status); } >/dev/null; then |
| 13434 | if test -s conftest.err; then |
| 13435 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 13436 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 13437 | else |
| 13438 | ac_cpp_err= |
| 13439 | fi |
| 13440 | else |
| 13441 | ac_cpp_err=yes |
| 13442 | fi |
| 13443 | if test -z "$ac_cpp_err"; then |
| 13444 | ac_header_preproc=yes |
| 13445 | else |
| 13446 | echo "$as_me: failed program was:" >&5 |
| 13447 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13448 | |
| 13449 | ac_header_preproc=no |
| 13450 | fi |
| 13451 | rm -f conftest.err conftest.$ac_ext |
| 13452 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13453 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 13454 | |
| 13455 | # So? What about this header? |
| 13456 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13457 | yes:no: ) |
| 13458 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13459 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 13460 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 13461 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 13462 | ac_header_preproc=yes |
| 13463 | ;; |
| 13464 | no:yes:* ) |
| 13465 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 13466 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 13467 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 13468 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 13469 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 13470 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 13471 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 13472 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 13473 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 13474 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 13475 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 13476 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 13477 | ( |
| 13478 | cat <<\_ASBOX |
| 13479 | ## ------------------------------------------ ## |
| 13480 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 13481 | ## ------------------------------------------ ## |
| 13482 | _ASBOX |
| 13483 | ) | |
| 13484 | sed "s/^/$as_me: WARNING: /" >&2 |
| 13485 | ;; |
| 13486 | esac |
| 13487 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13488 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13489 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13491 | else |
| 13492 | eval "$as_ac_Header=\$ac_header_preproc" |
| 13493 | fi |
| 13494 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13495 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 13496 | |
| 13497 | fi |
| 13498 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 13499 | cat >>confdefs.h <<_ACEOF |
| 13500 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13501 | _ACEOF |
| 13502 | |
| 13503 | fi |
| 13504 | |
| 13505 | done |
| 13506 | |
| 13507 | |
| 13508 | for ac_header in sys/file.h |
| 13509 | do |
| 13510 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 13511 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13512 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13513 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13514 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13515 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13516 | fi |
| 13517 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13518 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 13519 | else |
| 13520 | # Is the header compilable? |
| 13521 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 13522 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 13523 | cat >conftest.$ac_ext <<_ACEOF |
| 13524 | /* confdefs.h. */ |
| 13525 | _ACEOF |
| 13526 | cat confdefs.h >>conftest.$ac_ext |
| 13527 | cat >>conftest.$ac_ext <<_ACEOF |
| 13528 | /* end confdefs.h. */ |
| 13529 | $ac_includes_default |
| 13530 | #include <$ac_header> |
| 13531 | _ACEOF |
| 13532 | rm -f conftest.$ac_objext |
| 13533 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13534 | (eval $ac_compile) 2>conftest.er1 |
| 13535 | ac_status=$? |
| 13536 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13537 | rm -f conftest.er1 |
| 13538 | cat conftest.err >&5 |
| 13539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13540 | (exit $ac_status); } && |
| 13541 | { ac_try='test -z "$ac_c_werror_flag" |
| 13542 | || test ! -s conftest.err' |
| 13543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13544 | (eval $ac_try) 2>&5 |
| 13545 | ac_status=$? |
| 13546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13547 | (exit $ac_status); }; } && |
| 13548 | { ac_try='test -s conftest.$ac_objext' |
| 13549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13550 | (eval $ac_try) 2>&5 |
| 13551 | ac_status=$? |
| 13552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13553 | (exit $ac_status); }; }; then |
| 13554 | ac_header_compiler=yes |
| 13555 | else |
| 13556 | echo "$as_me: failed program was:" >&5 |
| 13557 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13558 | |
| 13559 | ac_header_compiler=no |
| 13560 | fi |
| 13561 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13562 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13563 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 13564 | |
| 13565 | # Is the header present? |
| 13566 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 13567 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 13568 | cat >conftest.$ac_ext <<_ACEOF |
| 13569 | /* confdefs.h. */ |
| 13570 | _ACEOF |
| 13571 | cat confdefs.h >>conftest.$ac_ext |
| 13572 | cat >>conftest.$ac_ext <<_ACEOF |
| 13573 | /* end confdefs.h. */ |
| 13574 | #include <$ac_header> |
| 13575 | _ACEOF |
| 13576 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 13577 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 13578 | ac_status=$? |
| 13579 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13580 | rm -f conftest.er1 |
| 13581 | cat conftest.err >&5 |
| 13582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13583 | (exit $ac_status); } >/dev/null; then |
| 13584 | if test -s conftest.err; then |
| 13585 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 13586 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 13587 | else |
| 13588 | ac_cpp_err= |
| 13589 | fi |
| 13590 | else |
| 13591 | ac_cpp_err=yes |
| 13592 | fi |
| 13593 | if test -z "$ac_cpp_err"; then |
| 13594 | ac_header_preproc=yes |
| 13595 | else |
| 13596 | echo "$as_me: failed program was:" >&5 |
| 13597 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13598 | |
| 13599 | ac_header_preproc=no |
| 13600 | fi |
| 13601 | rm -f conftest.err conftest.$ac_ext |
| 13602 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13603 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 13604 | |
| 13605 | # So? What about this header? |
| 13606 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13607 | yes:no: ) |
| 13608 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13609 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 13610 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 13611 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 13612 | ac_header_preproc=yes |
| 13613 | ;; |
| 13614 | no:yes:* ) |
| 13615 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 13616 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 13617 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 13618 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 13619 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 13620 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 13621 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 13622 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 13623 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 13624 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 13625 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 13626 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 13627 | ( |
| 13628 | cat <<\_ASBOX |
| 13629 | ## ------------------------------------------ ## |
| 13630 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 13631 | ## ------------------------------------------ ## |
| 13632 | _ASBOX |
| 13633 | ) | |
| 13634 | sed "s/^/$as_me: WARNING: /" >&2 |
| 13635 | ;; |
| 13636 | esac |
| 13637 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13638 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13639 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13641 | else |
| 13642 | eval "$as_ac_Header=\$ac_header_preproc" |
| 13643 | fi |
| 13644 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13645 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 13646 | |
| 13647 | fi |
| 13648 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 13649 | cat >>confdefs.h <<_ACEOF |
| 13650 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13651 | _ACEOF |
| 13652 | |
| 13653 | fi |
| 13654 | |
| 13655 | done |
| 13656 | |
| 13657 | |
| 13658 | for ac_header in sys/filio.h |
| 13659 | do |
| 13660 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 13661 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13662 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13663 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13664 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13666 | fi |
| 13667 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13668 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 13669 | else |
| 13670 | # Is the header compilable? |
| 13671 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 13672 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 13673 | cat >conftest.$ac_ext <<_ACEOF |
| 13674 | /* confdefs.h. */ |
| 13675 | _ACEOF |
| 13676 | cat confdefs.h >>conftest.$ac_ext |
| 13677 | cat >>conftest.$ac_ext <<_ACEOF |
| 13678 | /* end confdefs.h. */ |
| 13679 | $ac_includes_default |
| 13680 | #include <$ac_header> |
| 13681 | _ACEOF |
| 13682 | rm -f conftest.$ac_objext |
| 13683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13684 | (eval $ac_compile) 2>conftest.er1 |
| 13685 | ac_status=$? |
| 13686 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13687 | rm -f conftest.er1 |
| 13688 | cat conftest.err >&5 |
| 13689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13690 | (exit $ac_status); } && |
| 13691 | { ac_try='test -z "$ac_c_werror_flag" |
| 13692 | || test ! -s conftest.err' |
| 13693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13694 | (eval $ac_try) 2>&5 |
| 13695 | ac_status=$? |
| 13696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13697 | (exit $ac_status); }; } && |
| 13698 | { ac_try='test -s conftest.$ac_objext' |
| 13699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13700 | (eval $ac_try) 2>&5 |
| 13701 | ac_status=$? |
| 13702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13703 | (exit $ac_status); }; }; then |
| 13704 | ac_header_compiler=yes |
| 13705 | else |
| 13706 | echo "$as_me: failed program was:" >&5 |
| 13707 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13708 | |
| 13709 | ac_header_compiler=no |
| 13710 | fi |
| 13711 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13712 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13713 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 13714 | |
| 13715 | # Is the header present? |
| 13716 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 13717 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 13718 | cat >conftest.$ac_ext <<_ACEOF |
| 13719 | /* confdefs.h. */ |
| 13720 | _ACEOF |
| 13721 | cat confdefs.h >>conftest.$ac_ext |
| 13722 | cat >>conftest.$ac_ext <<_ACEOF |
| 13723 | /* end confdefs.h. */ |
| 13724 | #include <$ac_header> |
| 13725 | _ACEOF |
| 13726 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 13727 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 13728 | ac_status=$? |
| 13729 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13730 | rm -f conftest.er1 |
| 13731 | cat conftest.err >&5 |
| 13732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13733 | (exit $ac_status); } >/dev/null; then |
| 13734 | if test -s conftest.err; then |
| 13735 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 13736 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 13737 | else |
| 13738 | ac_cpp_err= |
| 13739 | fi |
| 13740 | else |
| 13741 | ac_cpp_err=yes |
| 13742 | fi |
| 13743 | if test -z "$ac_cpp_err"; then |
| 13744 | ac_header_preproc=yes |
| 13745 | else |
| 13746 | echo "$as_me: failed program was:" >&5 |
| 13747 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13748 | |
| 13749 | ac_header_preproc=no |
| 13750 | fi |
| 13751 | rm -f conftest.err conftest.$ac_ext |
| 13752 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13753 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 13754 | |
| 13755 | # So? What about this header? |
| 13756 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13757 | yes:no: ) |
| 13758 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13759 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 13760 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 13761 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 13762 | ac_header_preproc=yes |
| 13763 | ;; |
| 13764 | no:yes:* ) |
| 13765 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 13766 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 13767 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 13768 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 13769 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 13770 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 13771 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 13772 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 13773 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 13774 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 13775 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 13776 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 13777 | ( |
| 13778 | cat <<\_ASBOX |
| 13779 | ## ------------------------------------------ ## |
| 13780 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 13781 | ## ------------------------------------------ ## |
| 13782 | _ASBOX |
| 13783 | ) | |
| 13784 | sed "s/^/$as_me: WARNING: /" >&2 |
| 13785 | ;; |
| 13786 | esac |
| 13787 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13788 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13789 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13791 | else |
| 13792 | eval "$as_ac_Header=\$ac_header_preproc" |
| 13793 | fi |
| 13794 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13795 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 13796 | |
| 13797 | fi |
| 13798 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 13799 | cat >>confdefs.h <<_ACEOF |
| 13800 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13801 | _ACEOF |
| 13802 | |
| 13803 | fi |
| 13804 | |
| 13805 | done |
| 13806 | |
| 13807 | |
| 13808 | for ac_header in sys/ioctl.h |
| 13809 | do |
| 13810 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 13811 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13812 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13813 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13814 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13816 | fi |
| 13817 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13818 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 13819 | else |
| 13820 | # Is the header compilable? |
| 13821 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 13822 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 13823 | cat >conftest.$ac_ext <<_ACEOF |
| 13824 | /* confdefs.h. */ |
| 13825 | _ACEOF |
| 13826 | cat confdefs.h >>conftest.$ac_ext |
| 13827 | cat >>conftest.$ac_ext <<_ACEOF |
| 13828 | /* end confdefs.h. */ |
| 13829 | $ac_includes_default |
| 13830 | #include <$ac_header> |
| 13831 | _ACEOF |
| 13832 | rm -f conftest.$ac_objext |
| 13833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13834 | (eval $ac_compile) 2>conftest.er1 |
| 13835 | ac_status=$? |
| 13836 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13837 | rm -f conftest.er1 |
| 13838 | cat conftest.err >&5 |
| 13839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13840 | (exit $ac_status); } && |
| 13841 | { ac_try='test -z "$ac_c_werror_flag" |
| 13842 | || test ! -s conftest.err' |
| 13843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13844 | (eval $ac_try) 2>&5 |
| 13845 | ac_status=$? |
| 13846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13847 | (exit $ac_status); }; } && |
| 13848 | { ac_try='test -s conftest.$ac_objext' |
| 13849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13850 | (eval $ac_try) 2>&5 |
| 13851 | ac_status=$? |
| 13852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13853 | (exit $ac_status); }; }; then |
| 13854 | ac_header_compiler=yes |
| 13855 | else |
| 13856 | echo "$as_me: failed program was:" >&5 |
| 13857 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13858 | |
| 13859 | ac_header_compiler=no |
| 13860 | fi |
| 13861 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13862 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13863 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 13864 | |
| 13865 | # Is the header present? |
| 13866 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 13867 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 13868 | cat >conftest.$ac_ext <<_ACEOF |
| 13869 | /* confdefs.h. */ |
| 13870 | _ACEOF |
| 13871 | cat confdefs.h >>conftest.$ac_ext |
| 13872 | cat >>conftest.$ac_ext <<_ACEOF |
| 13873 | /* end confdefs.h. */ |
| 13874 | #include <$ac_header> |
| 13875 | _ACEOF |
| 13876 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 13877 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 13878 | ac_status=$? |
| 13879 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13880 | rm -f conftest.er1 |
| 13881 | cat conftest.err >&5 |
| 13882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13883 | (exit $ac_status); } >/dev/null; then |
| 13884 | if test -s conftest.err; then |
| 13885 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 13886 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 13887 | else |
| 13888 | ac_cpp_err= |
| 13889 | fi |
| 13890 | else |
| 13891 | ac_cpp_err=yes |
| 13892 | fi |
| 13893 | if test -z "$ac_cpp_err"; then |
| 13894 | ac_header_preproc=yes |
| 13895 | else |
| 13896 | echo "$as_me: failed program was:" >&5 |
| 13897 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13898 | |
| 13899 | ac_header_preproc=no |
| 13900 | fi |
| 13901 | rm -f conftest.err conftest.$ac_ext |
| 13902 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13903 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 13904 | |
| 13905 | # So? What about this header? |
| 13906 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13907 | yes:no: ) |
| 13908 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13909 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 13910 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 13911 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 13912 | ac_header_preproc=yes |
| 13913 | ;; |
| 13914 | no:yes:* ) |
| 13915 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 13916 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 13917 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 13918 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 13919 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 13920 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 13921 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 13922 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 13923 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 13924 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 13925 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 13926 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 13927 | ( |
| 13928 | cat <<\_ASBOX |
| 13929 | ## ------------------------------------------ ## |
| 13930 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 13931 | ## ------------------------------------------ ## |
| 13932 | _ASBOX |
| 13933 | ) | |
| 13934 | sed "s/^/$as_me: WARNING: /" >&2 |
| 13935 | ;; |
| 13936 | esac |
| 13937 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13938 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13939 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13941 | else |
| 13942 | eval "$as_ac_Header=\$ac_header_preproc" |
| 13943 | fi |
| 13944 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13945 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 13946 | |
| 13947 | fi |
| 13948 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 13949 | cat >>confdefs.h <<_ACEOF |
| 13950 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13951 | _ACEOF |
| 13952 | |
| 13953 | fi |
| 13954 | |
| 13955 | done |
| 13956 | |
| 13957 | |
| 13958 | for ac_header in sys/param.h |
| 13959 | do |
| 13960 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 13961 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13962 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13963 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13964 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13966 | fi |
| 13967 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13968 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 13969 | else |
| 13970 | # Is the header compilable? |
| 13971 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 13972 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 13973 | cat >conftest.$ac_ext <<_ACEOF |
| 13974 | /* confdefs.h. */ |
| 13975 | _ACEOF |
| 13976 | cat confdefs.h >>conftest.$ac_ext |
| 13977 | cat >>conftest.$ac_ext <<_ACEOF |
| 13978 | /* end confdefs.h. */ |
| 13979 | $ac_includes_default |
| 13980 | #include <$ac_header> |
| 13981 | _ACEOF |
| 13982 | rm -f conftest.$ac_objext |
| 13983 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13984 | (eval $ac_compile) 2>conftest.er1 |
| 13985 | ac_status=$? |
| 13986 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13987 | rm -f conftest.er1 |
| 13988 | cat conftest.err >&5 |
| 13989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13990 | (exit $ac_status); } && |
| 13991 | { ac_try='test -z "$ac_c_werror_flag" |
| 13992 | || test ! -s conftest.err' |
| 13993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13994 | (eval $ac_try) 2>&5 |
| 13995 | ac_status=$? |
| 13996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13997 | (exit $ac_status); }; } && |
| 13998 | { ac_try='test -s conftest.$ac_objext' |
| 13999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14000 | (eval $ac_try) 2>&5 |
| 14001 | ac_status=$? |
| 14002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14003 | (exit $ac_status); }; }; then |
| 14004 | ac_header_compiler=yes |
| 14005 | else |
| 14006 | echo "$as_me: failed program was:" >&5 |
| 14007 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14008 | |
| 14009 | ac_header_compiler=no |
| 14010 | fi |
| 14011 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14012 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14013 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 14014 | |
| 14015 | # Is the header present? |
| 14016 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14017 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 14018 | cat >conftest.$ac_ext <<_ACEOF |
| 14019 | /* confdefs.h. */ |
| 14020 | _ACEOF |
| 14021 | cat confdefs.h >>conftest.$ac_ext |
| 14022 | cat >>conftest.$ac_ext <<_ACEOF |
| 14023 | /* end confdefs.h. */ |
| 14024 | #include <$ac_header> |
| 14025 | _ACEOF |
| 14026 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 14027 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 14028 | ac_status=$? |
| 14029 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14030 | rm -f conftest.er1 |
| 14031 | cat conftest.err >&5 |
| 14032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14033 | (exit $ac_status); } >/dev/null; then |
| 14034 | if test -s conftest.err; then |
| 14035 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14036 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14037 | else |
| 14038 | ac_cpp_err= |
| 14039 | fi |
| 14040 | else |
| 14041 | ac_cpp_err=yes |
| 14042 | fi |
| 14043 | if test -z "$ac_cpp_err"; then |
| 14044 | ac_header_preproc=yes |
| 14045 | else |
| 14046 | echo "$as_me: failed program was:" >&5 |
| 14047 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14048 | |
| 14049 | ac_header_preproc=no |
| 14050 | fi |
| 14051 | rm -f conftest.err conftest.$ac_ext |
| 14052 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14053 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 14054 | |
| 14055 | # So? What about this header? |
| 14056 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14057 | yes:no: ) |
| 14058 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14059 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14060 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14061 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14062 | ac_header_preproc=yes |
| 14063 | ;; |
| 14064 | no:yes:* ) |
| 14065 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14066 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14067 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14068 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14069 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14070 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14071 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14072 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14073 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14074 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14075 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14076 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 14077 | ( |
| 14078 | cat <<\_ASBOX |
| 14079 | ## ------------------------------------------ ## |
| 14080 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 14081 | ## ------------------------------------------ ## |
| 14082 | _ASBOX |
| 14083 | ) | |
| 14084 | sed "s/^/$as_me: WARNING: /" >&2 |
| 14085 | ;; |
| 14086 | esac |
| 14087 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14088 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 14089 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14091 | else |
| 14092 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14093 | fi |
| 14094 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 14095 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 14096 | |
| 14097 | fi |
| 14098 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 14099 | cat >>confdefs.h <<_ACEOF |
| 14100 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 14101 | _ACEOF |
| 14102 | |
| 14103 | fi |
| 14104 | |
| 14105 | done |
| 14106 | |
| 14107 | |
| 14108 | for ac_header in sys/resource.h |
| 14109 | do |
| 14110 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14111 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14112 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14113 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 14114 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14116 | fi |
| 14117 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 14118 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 14119 | else |
| 14120 | # Is the header compilable? |
| 14121 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14122 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 14123 | cat >conftest.$ac_ext <<_ACEOF |
| 14124 | /* confdefs.h. */ |
| 14125 | _ACEOF |
| 14126 | cat confdefs.h >>conftest.$ac_ext |
| 14127 | cat >>conftest.$ac_ext <<_ACEOF |
| 14128 | /* end confdefs.h. */ |
| 14129 | $ac_includes_default |
| 14130 | #include <$ac_header> |
| 14131 | _ACEOF |
| 14132 | rm -f conftest.$ac_objext |
| 14133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14134 | (eval $ac_compile) 2>conftest.er1 |
| 14135 | ac_status=$? |
| 14136 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14137 | rm -f conftest.er1 |
| 14138 | cat conftest.err >&5 |
| 14139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14140 | (exit $ac_status); } && |
| 14141 | { ac_try='test -z "$ac_c_werror_flag" |
| 14142 | || test ! -s conftest.err' |
| 14143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14144 | (eval $ac_try) 2>&5 |
| 14145 | ac_status=$? |
| 14146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14147 | (exit $ac_status); }; } && |
| 14148 | { ac_try='test -s conftest.$ac_objext' |
| 14149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14150 | (eval $ac_try) 2>&5 |
| 14151 | ac_status=$? |
| 14152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14153 | (exit $ac_status); }; }; then |
| 14154 | ac_header_compiler=yes |
| 14155 | else |
| 14156 | echo "$as_me: failed program was:" >&5 |
| 14157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14158 | |
| 14159 | ac_header_compiler=no |
| 14160 | fi |
| 14161 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14162 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14163 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 14164 | |
| 14165 | # Is the header present? |
| 14166 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14167 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 14168 | cat >conftest.$ac_ext <<_ACEOF |
| 14169 | /* confdefs.h. */ |
| 14170 | _ACEOF |
| 14171 | cat confdefs.h >>conftest.$ac_ext |
| 14172 | cat >>conftest.$ac_ext <<_ACEOF |
| 14173 | /* end confdefs.h. */ |
| 14174 | #include <$ac_header> |
| 14175 | _ACEOF |
| 14176 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 14177 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 14178 | ac_status=$? |
| 14179 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14180 | rm -f conftest.er1 |
| 14181 | cat conftest.err >&5 |
| 14182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14183 | (exit $ac_status); } >/dev/null; then |
| 14184 | if test -s conftest.err; then |
| 14185 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14186 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14187 | else |
| 14188 | ac_cpp_err= |
| 14189 | fi |
| 14190 | else |
| 14191 | ac_cpp_err=yes |
| 14192 | fi |
| 14193 | if test -z "$ac_cpp_err"; then |
| 14194 | ac_header_preproc=yes |
| 14195 | else |
| 14196 | echo "$as_me: failed program was:" >&5 |
| 14197 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14198 | |
| 14199 | ac_header_preproc=no |
| 14200 | fi |
| 14201 | rm -f conftest.err conftest.$ac_ext |
| 14202 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14203 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 14204 | |
| 14205 | # So? What about this header? |
| 14206 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14207 | yes:no: ) |
| 14208 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14209 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14210 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14211 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14212 | ac_header_preproc=yes |
| 14213 | ;; |
| 14214 | no:yes:* ) |
| 14215 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14216 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14217 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14218 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14219 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14220 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14221 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14222 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14223 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14224 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14225 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14226 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 14227 | ( |
| 14228 | cat <<\_ASBOX |
| 14229 | ## ------------------------------------------ ## |
| 14230 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 14231 | ## ------------------------------------------ ## |
| 14232 | _ASBOX |
| 14233 | ) | |
| 14234 | sed "s/^/$as_me: WARNING: /" >&2 |
| 14235 | ;; |
| 14236 | esac |
| 14237 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14238 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 14239 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14241 | else |
| 14242 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14243 | fi |
| 14244 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 14245 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 14246 | |
| 14247 | fi |
| 14248 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 14249 | cat >>confdefs.h <<_ACEOF |
| 14250 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 14251 | _ACEOF |
| 14252 | |
| 14253 | fi |
| 14254 | |
| 14255 | done |
| 14256 | |
| 14257 | |
| 14258 | for ac_header in sys/proc.h |
| 14259 | do |
| 14260 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14261 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14262 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 14263 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14265 | else |
| 14266 | cat >conftest.$ac_ext <<_ACEOF |
| 14267 | /* confdefs.h. */ |
| 14268 | _ACEOF |
| 14269 | cat confdefs.h >>conftest.$ac_ext |
| 14270 | cat >>conftest.$ac_ext <<_ACEOF |
| 14271 | /* end confdefs.h. */ |
| 14272 | #if HAVE_SYS_PARAM_H |
| 14273 | # include <sys/param.h> |
| 14274 | #endif |
| 14275 | |
| 14276 | |
| 14277 | #include <$ac_header> |
| 14278 | _ACEOF |
| 14279 | rm -f conftest.$ac_objext |
| 14280 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14281 | (eval $ac_compile) 2>conftest.er1 |
| 14282 | ac_status=$? |
| 14283 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14284 | rm -f conftest.er1 |
| 14285 | cat conftest.err >&5 |
| 14286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14287 | (exit $ac_status); } && |
| 14288 | { ac_try='test -z "$ac_c_werror_flag" |
| 14289 | || test ! -s conftest.err' |
| 14290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14291 | (eval $ac_try) 2>&5 |
| 14292 | ac_status=$? |
| 14293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14294 | (exit $ac_status); }; } && |
| 14295 | { ac_try='test -s conftest.$ac_objext' |
| 14296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14297 | (eval $ac_try) 2>&5 |
| 14298 | ac_status=$? |
| 14299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14300 | (exit $ac_status); }; }; then |
| 14301 | eval "$as_ac_Header=yes" |
| 14302 | else |
| 14303 | echo "$as_me: failed program was:" >&5 |
| 14304 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14305 | |
| 14306 | eval "$as_ac_Header=no" |
| 14307 | fi |
| 14308 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14309 | fi |
| 14310 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 14311 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 14312 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 14313 | cat >>confdefs.h <<_ACEOF |
| 14314 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 14315 | _ACEOF |
| 14316 | |
| 14317 | fi |
| 14318 | |
| 14319 | done |
| 14320 | |
| 14321 | |
| 14322 | for ac_header in sys/procfs.h |
| 14323 | do |
| 14324 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14325 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14326 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14327 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 14328 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14329 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14330 | fi |
| 14331 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 14332 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 14333 | else |
| 14334 | # Is the header compilable? |
| 14335 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14336 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 14337 | cat >conftest.$ac_ext <<_ACEOF |
| 14338 | /* confdefs.h. */ |
| 14339 | _ACEOF |
| 14340 | cat confdefs.h >>conftest.$ac_ext |
| 14341 | cat >>conftest.$ac_ext <<_ACEOF |
| 14342 | /* end confdefs.h. */ |
| 14343 | $ac_includes_default |
| 14344 | #include <$ac_header> |
| 14345 | _ACEOF |
| 14346 | rm -f conftest.$ac_objext |
| 14347 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14348 | (eval $ac_compile) 2>conftest.er1 |
| 14349 | ac_status=$? |
| 14350 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14351 | rm -f conftest.er1 |
| 14352 | cat conftest.err >&5 |
| 14353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14354 | (exit $ac_status); } && |
| 14355 | { ac_try='test -z "$ac_c_werror_flag" |
| 14356 | || test ! -s conftest.err' |
| 14357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14358 | (eval $ac_try) 2>&5 |
| 14359 | ac_status=$? |
| 14360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14361 | (exit $ac_status); }; } && |
| 14362 | { ac_try='test -s conftest.$ac_objext' |
| 14363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14364 | (eval $ac_try) 2>&5 |
| 14365 | ac_status=$? |
| 14366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14367 | (exit $ac_status); }; }; then |
| 14368 | ac_header_compiler=yes |
| 14369 | else |
| 14370 | echo "$as_me: failed program was:" >&5 |
| 14371 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14372 | |
| 14373 | ac_header_compiler=no |
| 14374 | fi |
| 14375 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14376 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14377 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 14378 | |
| 14379 | # Is the header present? |
| 14380 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14381 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 14382 | cat >conftest.$ac_ext <<_ACEOF |
| 14383 | /* confdefs.h. */ |
| 14384 | _ACEOF |
| 14385 | cat confdefs.h >>conftest.$ac_ext |
| 14386 | cat >>conftest.$ac_ext <<_ACEOF |
| 14387 | /* end confdefs.h. */ |
| 14388 | #include <$ac_header> |
| 14389 | _ACEOF |
| 14390 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 14391 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 14392 | ac_status=$? |
| 14393 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14394 | rm -f conftest.er1 |
| 14395 | cat conftest.err >&5 |
| 14396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14397 | (exit $ac_status); } >/dev/null; then |
| 14398 | if test -s conftest.err; then |
| 14399 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14400 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14401 | else |
| 14402 | ac_cpp_err= |
| 14403 | fi |
| 14404 | else |
| 14405 | ac_cpp_err=yes |
| 14406 | fi |
| 14407 | if test -z "$ac_cpp_err"; then |
| 14408 | ac_header_preproc=yes |
| 14409 | else |
| 14410 | echo "$as_me: failed program was:" >&5 |
| 14411 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14412 | |
| 14413 | ac_header_preproc=no |
| 14414 | fi |
| 14415 | rm -f conftest.err conftest.$ac_ext |
| 14416 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14417 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 14418 | |
| 14419 | # So? What about this header? |
| 14420 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14421 | yes:no: ) |
| 14422 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14423 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14424 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14425 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14426 | ac_header_preproc=yes |
| 14427 | ;; |
| 14428 | no:yes:* ) |
| 14429 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14430 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14431 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14432 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14433 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14434 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14435 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14436 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14437 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14438 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14439 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14440 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 14441 | ( |
| 14442 | cat <<\_ASBOX |
| 14443 | ## ------------------------------------------ ## |
| 14444 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 14445 | ## ------------------------------------------ ## |
| 14446 | _ASBOX |
| 14447 | ) | |
| 14448 | sed "s/^/$as_me: WARNING: /" >&2 |
| 14449 | ;; |
| 14450 | esac |
| 14451 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14452 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 14453 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14454 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14455 | else |
| 14456 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14457 | fi |
| 14458 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 14459 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 14460 | |
| 14461 | fi |
| 14462 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 14463 | cat >>confdefs.h <<_ACEOF |
| 14464 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 14465 | _ACEOF |
| 14466 | |
| 14467 | fi |
| 14468 | |
| 14469 | done |
| 14470 | |
| 14471 | |
| 14472 | |
| 14473 | for ac_header in sys/ptrace.h ptrace.h |
| 14474 | do |
| 14475 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14476 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14477 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14478 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 14479 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14481 | fi |
| 14482 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 14483 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 14484 | else |
| 14485 | # Is the header compilable? |
| 14486 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14487 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 14488 | cat >conftest.$ac_ext <<_ACEOF |
| 14489 | /* confdefs.h. */ |
| 14490 | _ACEOF |
| 14491 | cat confdefs.h >>conftest.$ac_ext |
| 14492 | cat >>conftest.$ac_ext <<_ACEOF |
| 14493 | /* end confdefs.h. */ |
| 14494 | $ac_includes_default |
| 14495 | #include <$ac_header> |
| 14496 | _ACEOF |
| 14497 | rm -f conftest.$ac_objext |
| 14498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14499 | (eval $ac_compile) 2>conftest.er1 |
| 14500 | ac_status=$? |
| 14501 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14502 | rm -f conftest.er1 |
| 14503 | cat conftest.err >&5 |
| 14504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14505 | (exit $ac_status); } && |
| 14506 | { ac_try='test -z "$ac_c_werror_flag" |
| 14507 | || test ! -s conftest.err' |
| 14508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14509 | (eval $ac_try) 2>&5 |
| 14510 | ac_status=$? |
| 14511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14512 | (exit $ac_status); }; } && |
| 14513 | { ac_try='test -s conftest.$ac_objext' |
| 14514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14515 | (eval $ac_try) 2>&5 |
| 14516 | ac_status=$? |
| 14517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14518 | (exit $ac_status); }; }; then |
| 14519 | ac_header_compiler=yes |
| 14520 | else |
| 14521 | echo "$as_me: failed program was:" >&5 |
| 14522 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14523 | |
| 14524 | ac_header_compiler=no |
| 14525 | fi |
| 14526 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14527 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14528 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 14529 | |
| 14530 | # Is the header present? |
| 14531 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14532 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 14533 | cat >conftest.$ac_ext <<_ACEOF |
| 14534 | /* confdefs.h. */ |
| 14535 | _ACEOF |
| 14536 | cat confdefs.h >>conftest.$ac_ext |
| 14537 | cat >>conftest.$ac_ext <<_ACEOF |
| 14538 | /* end confdefs.h. */ |
| 14539 | #include <$ac_header> |
| 14540 | _ACEOF |
| 14541 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 14542 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 14543 | ac_status=$? |
| 14544 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14545 | rm -f conftest.er1 |
| 14546 | cat conftest.err >&5 |
| 14547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14548 | (exit $ac_status); } >/dev/null; then |
| 14549 | if test -s conftest.err; then |
| 14550 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14551 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14552 | else |
| 14553 | ac_cpp_err= |
| 14554 | fi |
| 14555 | else |
| 14556 | ac_cpp_err=yes |
| 14557 | fi |
| 14558 | if test -z "$ac_cpp_err"; then |
| 14559 | ac_header_preproc=yes |
| 14560 | else |
| 14561 | echo "$as_me: failed program was:" >&5 |
| 14562 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14563 | |
| 14564 | ac_header_preproc=no |
| 14565 | fi |
| 14566 | rm -f conftest.err conftest.$ac_ext |
| 14567 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14568 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 14569 | |
| 14570 | # So? What about this header? |
| 14571 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14572 | yes:no: ) |
| 14573 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14574 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14575 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14576 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14577 | ac_header_preproc=yes |
| 14578 | ;; |
| 14579 | no:yes:* ) |
| 14580 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14581 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14582 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14583 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14584 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14585 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14586 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14587 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14588 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14589 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14590 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14591 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 14592 | ( |
| 14593 | cat <<\_ASBOX |
| 14594 | ## ------------------------------------------ ## |
| 14595 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 14596 | ## ------------------------------------------ ## |
| 14597 | _ASBOX |
| 14598 | ) | |
| 14599 | sed "s/^/$as_me: WARNING: /" >&2 |
| 14600 | ;; |
| 14601 | esac |
| 14602 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14603 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 14604 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14606 | else |
| 14607 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14608 | fi |
| 14609 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 14610 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 14611 | |
| 14612 | fi |
| 14613 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 14614 | cat >>confdefs.h <<_ACEOF |
| 14615 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 14616 | _ACEOF |
| 14617 | |
| 14618 | fi |
| 14619 | |
| 14620 | done |
| 14621 | |
| 14622 | |
| 14623 | |
| 14624 | for ac_header in sys/reg.h sys/debugreg.h |
| 14625 | do |
| 14626 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14627 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14628 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14629 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 14630 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14632 | fi |
| 14633 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 14634 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 14635 | else |
| 14636 | # Is the header compilable? |
| 14637 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14638 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 14639 | cat >conftest.$ac_ext <<_ACEOF |
| 14640 | /* confdefs.h. */ |
| 14641 | _ACEOF |
| 14642 | cat confdefs.h >>conftest.$ac_ext |
| 14643 | cat >>conftest.$ac_ext <<_ACEOF |
| 14644 | /* end confdefs.h. */ |
| 14645 | $ac_includes_default |
| 14646 | #include <$ac_header> |
| 14647 | _ACEOF |
| 14648 | rm -f conftest.$ac_objext |
| 14649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14650 | (eval $ac_compile) 2>conftest.er1 |
| 14651 | ac_status=$? |
| 14652 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14653 | rm -f conftest.er1 |
| 14654 | cat conftest.err >&5 |
| 14655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14656 | (exit $ac_status); } && |
| 14657 | { ac_try='test -z "$ac_c_werror_flag" |
| 14658 | || test ! -s conftest.err' |
| 14659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14660 | (eval $ac_try) 2>&5 |
| 14661 | ac_status=$? |
| 14662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14663 | (exit $ac_status); }; } && |
| 14664 | { ac_try='test -s conftest.$ac_objext' |
| 14665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14666 | (eval $ac_try) 2>&5 |
| 14667 | ac_status=$? |
| 14668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14669 | (exit $ac_status); }; }; then |
| 14670 | ac_header_compiler=yes |
| 14671 | else |
| 14672 | echo "$as_me: failed program was:" >&5 |
| 14673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14674 | |
| 14675 | ac_header_compiler=no |
| 14676 | fi |
| 14677 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14678 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14679 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 14680 | |
| 14681 | # Is the header present? |
| 14682 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14683 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 14684 | cat >conftest.$ac_ext <<_ACEOF |
| 14685 | /* confdefs.h. */ |
| 14686 | _ACEOF |
| 14687 | cat confdefs.h >>conftest.$ac_ext |
| 14688 | cat >>conftest.$ac_ext <<_ACEOF |
| 14689 | /* end confdefs.h. */ |
| 14690 | #include <$ac_header> |
| 14691 | _ACEOF |
| 14692 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 14693 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 14694 | ac_status=$? |
| 14695 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14696 | rm -f conftest.er1 |
| 14697 | cat conftest.err >&5 |
| 14698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14699 | (exit $ac_status); } >/dev/null; then |
| 14700 | if test -s conftest.err; then |
| 14701 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14702 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14703 | else |
| 14704 | ac_cpp_err= |
| 14705 | fi |
| 14706 | else |
| 14707 | ac_cpp_err=yes |
| 14708 | fi |
| 14709 | if test -z "$ac_cpp_err"; then |
| 14710 | ac_header_preproc=yes |
| 14711 | else |
| 14712 | echo "$as_me: failed program was:" >&5 |
| 14713 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14714 | |
| 14715 | ac_header_preproc=no |
| 14716 | fi |
| 14717 | rm -f conftest.err conftest.$ac_ext |
| 14718 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14719 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 14720 | |
| 14721 | # So? What about this header? |
| 14722 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14723 | yes:no: ) |
| 14724 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14725 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14726 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14727 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14728 | ac_header_preproc=yes |
| 14729 | ;; |
| 14730 | no:yes:* ) |
| 14731 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14732 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14733 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14734 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14735 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14736 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14737 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14738 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14739 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14740 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14741 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14742 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 14743 | ( |
| 14744 | cat <<\_ASBOX |
| 14745 | ## ------------------------------------------ ## |
| 14746 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 14747 | ## ------------------------------------------ ## |
| 14748 | _ASBOX |
| 14749 | ) | |
| 14750 | sed "s/^/$as_me: WARNING: /" >&2 |
| 14751 | ;; |
| 14752 | esac |
| 14753 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14754 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 14755 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14757 | else |
| 14758 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14759 | fi |
| 14760 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 14761 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 14762 | |
| 14763 | fi |
| 14764 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 14765 | cat >>confdefs.h <<_ACEOF |
| 14766 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 14767 | _ACEOF |
| 14768 | |
| 14769 | fi |
| 14770 | |
| 14771 | done |
| 14772 | |
| 14773 | |
| 14774 | for ac_header in sys/select.h |
| 14775 | do |
| 14776 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14777 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14778 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14779 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 14780 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14782 | fi |
| 14783 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 14784 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 14785 | else |
| 14786 | # Is the header compilable? |
| 14787 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14788 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 14789 | cat >conftest.$ac_ext <<_ACEOF |
| 14790 | /* confdefs.h. */ |
| 14791 | _ACEOF |
| 14792 | cat confdefs.h >>conftest.$ac_ext |
| 14793 | cat >>conftest.$ac_ext <<_ACEOF |
| 14794 | /* end confdefs.h. */ |
| 14795 | $ac_includes_default |
| 14796 | #include <$ac_header> |
| 14797 | _ACEOF |
| 14798 | rm -f conftest.$ac_objext |
| 14799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14800 | (eval $ac_compile) 2>conftest.er1 |
| 14801 | ac_status=$? |
| 14802 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14803 | rm -f conftest.er1 |
| 14804 | cat conftest.err >&5 |
| 14805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14806 | (exit $ac_status); } && |
| 14807 | { ac_try='test -z "$ac_c_werror_flag" |
| 14808 | || test ! -s conftest.err' |
| 14809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14810 | (eval $ac_try) 2>&5 |
| 14811 | ac_status=$? |
| 14812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14813 | (exit $ac_status); }; } && |
| 14814 | { ac_try='test -s conftest.$ac_objext' |
| 14815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14816 | (eval $ac_try) 2>&5 |
| 14817 | ac_status=$? |
| 14818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14819 | (exit $ac_status); }; }; then |
| 14820 | ac_header_compiler=yes |
| 14821 | else |
| 14822 | echo "$as_me: failed program was:" >&5 |
| 14823 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14824 | |
| 14825 | ac_header_compiler=no |
| 14826 | fi |
| 14827 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14828 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14829 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 14830 | |
| 14831 | # Is the header present? |
| 14832 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14833 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 14834 | cat >conftest.$ac_ext <<_ACEOF |
| 14835 | /* confdefs.h. */ |
| 14836 | _ACEOF |
| 14837 | cat confdefs.h >>conftest.$ac_ext |
| 14838 | cat >>conftest.$ac_ext <<_ACEOF |
| 14839 | /* end confdefs.h. */ |
| 14840 | #include <$ac_header> |
| 14841 | _ACEOF |
| 14842 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 14843 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 14844 | ac_status=$? |
| 14845 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14846 | rm -f conftest.er1 |
| 14847 | cat conftest.err >&5 |
| 14848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14849 | (exit $ac_status); } >/dev/null; then |
| 14850 | if test -s conftest.err; then |
| 14851 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14852 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14853 | else |
| 14854 | ac_cpp_err= |
| 14855 | fi |
| 14856 | else |
| 14857 | ac_cpp_err=yes |
| 14858 | fi |
| 14859 | if test -z "$ac_cpp_err"; then |
| 14860 | ac_header_preproc=yes |
| 14861 | else |
| 14862 | echo "$as_me: failed program was:" >&5 |
| 14863 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14864 | |
| 14865 | ac_header_preproc=no |
| 14866 | fi |
| 14867 | rm -f conftest.err conftest.$ac_ext |
| 14868 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14869 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 14870 | |
| 14871 | # So? What about this header? |
| 14872 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14873 | yes:no: ) |
| 14874 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14875 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14876 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14877 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14878 | ac_header_preproc=yes |
| 14879 | ;; |
| 14880 | no:yes:* ) |
| 14881 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14882 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14883 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14884 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14885 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14886 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14887 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14888 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14889 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14890 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14891 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14892 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 14893 | ( |
| 14894 | cat <<\_ASBOX |
| 14895 | ## ------------------------------------------ ## |
| 14896 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 14897 | ## ------------------------------------------ ## |
| 14898 | _ASBOX |
| 14899 | ) | |
| 14900 | sed "s/^/$as_me: WARNING: /" >&2 |
| 14901 | ;; |
| 14902 | esac |
| 14903 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14904 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 14905 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14907 | else |
| 14908 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14909 | fi |
| 14910 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 14911 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 14912 | |
| 14913 | fi |
| 14914 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 14915 | cat >>confdefs.h <<_ACEOF |
| 14916 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 14917 | _ACEOF |
| 14918 | |
| 14919 | fi |
| 14920 | |
| 14921 | done |
| 14922 | |
| 14923 | |
| 14924 | for ac_header in sys/syscall.h |
| 14925 | do |
| 14926 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14927 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14928 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14929 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 14930 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14932 | fi |
| 14933 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 14934 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 14935 | else |
| 14936 | # Is the header compilable? |
| 14937 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14938 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 14939 | cat >conftest.$ac_ext <<_ACEOF |
| 14940 | /* confdefs.h. */ |
| 14941 | _ACEOF |
| 14942 | cat confdefs.h >>conftest.$ac_ext |
| 14943 | cat >>conftest.$ac_ext <<_ACEOF |
| 14944 | /* end confdefs.h. */ |
| 14945 | $ac_includes_default |
| 14946 | #include <$ac_header> |
| 14947 | _ACEOF |
| 14948 | rm -f conftest.$ac_objext |
| 14949 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14950 | (eval $ac_compile) 2>conftest.er1 |
| 14951 | ac_status=$? |
| 14952 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14953 | rm -f conftest.er1 |
| 14954 | cat conftest.err >&5 |
| 14955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14956 | (exit $ac_status); } && |
| 14957 | { ac_try='test -z "$ac_c_werror_flag" |
| 14958 | || test ! -s conftest.err' |
| 14959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14960 | (eval $ac_try) 2>&5 |
| 14961 | ac_status=$? |
| 14962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14963 | (exit $ac_status); }; } && |
| 14964 | { ac_try='test -s conftest.$ac_objext' |
| 14965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14966 | (eval $ac_try) 2>&5 |
| 14967 | ac_status=$? |
| 14968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14969 | (exit $ac_status); }; }; then |
| 14970 | ac_header_compiler=yes |
| 14971 | else |
| 14972 | echo "$as_me: failed program was:" >&5 |
| 14973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14974 | |
| 14975 | ac_header_compiler=no |
| 14976 | fi |
| 14977 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14978 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14979 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 14980 | |
| 14981 | # Is the header present? |
| 14982 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14983 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 14984 | cat >conftest.$ac_ext <<_ACEOF |
| 14985 | /* confdefs.h. */ |
| 14986 | _ACEOF |
| 14987 | cat confdefs.h >>conftest.$ac_ext |
| 14988 | cat >>conftest.$ac_ext <<_ACEOF |
| 14989 | /* end confdefs.h. */ |
| 14990 | #include <$ac_header> |
| 14991 | _ACEOF |
| 14992 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 14993 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 14994 | ac_status=$? |
| 14995 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14996 | rm -f conftest.er1 |
| 14997 | cat conftest.err >&5 |
| 14998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14999 | (exit $ac_status); } >/dev/null; then |
| 15000 | if test -s conftest.err; then |
| 15001 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15002 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15003 | else |
| 15004 | ac_cpp_err= |
| 15005 | fi |
| 15006 | else |
| 15007 | ac_cpp_err=yes |
| 15008 | fi |
| 15009 | if test -z "$ac_cpp_err"; then |
| 15010 | ac_header_preproc=yes |
| 15011 | else |
| 15012 | echo "$as_me: failed program was:" >&5 |
| 15013 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15014 | |
| 15015 | ac_header_preproc=no |
| 15016 | fi |
| 15017 | rm -f conftest.err conftest.$ac_ext |
| 15018 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15019 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 15020 | |
| 15021 | # So? What about this header? |
| 15022 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15023 | yes:no: ) |
| 15024 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15025 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15026 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15027 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15028 | ac_header_preproc=yes |
| 15029 | ;; |
| 15030 | no:yes:* ) |
| 15031 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15032 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15033 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15034 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15035 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15036 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15037 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15038 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15039 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15040 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15041 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15042 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15043 | ( |
| 15044 | cat <<\_ASBOX |
| 15045 | ## ------------------------------------------ ## |
| 15046 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 15047 | ## ------------------------------------------ ## |
| 15048 | _ASBOX |
| 15049 | ) | |
| 15050 | sed "s/^/$as_me: WARNING: /" >&2 |
| 15051 | ;; |
| 15052 | esac |
| 15053 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15054 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 15055 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15057 | else |
| 15058 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15059 | fi |
| 15060 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 15061 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 15062 | |
| 15063 | fi |
| 15064 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15065 | cat >>confdefs.h <<_ACEOF |
| 15066 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15067 | _ACEOF |
| 15068 | |
| 15069 | fi |
| 15070 | |
| 15071 | done |
| 15072 | |
| 15073 | |
| 15074 | for ac_header in sys/types.h |
| 15075 | do |
| 15076 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15077 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15078 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15079 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 15080 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15082 | fi |
| 15083 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 15084 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 15085 | else |
| 15086 | # Is the header compilable? |
| 15087 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15088 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 15089 | cat >conftest.$ac_ext <<_ACEOF |
| 15090 | /* confdefs.h. */ |
| 15091 | _ACEOF |
| 15092 | cat confdefs.h >>conftest.$ac_ext |
| 15093 | cat >>conftest.$ac_ext <<_ACEOF |
| 15094 | /* end confdefs.h. */ |
| 15095 | $ac_includes_default |
| 15096 | #include <$ac_header> |
| 15097 | _ACEOF |
| 15098 | rm -f conftest.$ac_objext |
| 15099 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15100 | (eval $ac_compile) 2>conftest.er1 |
| 15101 | ac_status=$? |
| 15102 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15103 | rm -f conftest.er1 |
| 15104 | cat conftest.err >&5 |
| 15105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15106 | (exit $ac_status); } && |
| 15107 | { ac_try='test -z "$ac_c_werror_flag" |
| 15108 | || test ! -s conftest.err' |
| 15109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15110 | (eval $ac_try) 2>&5 |
| 15111 | ac_status=$? |
| 15112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15113 | (exit $ac_status); }; } && |
| 15114 | { ac_try='test -s conftest.$ac_objext' |
| 15115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15116 | (eval $ac_try) 2>&5 |
| 15117 | ac_status=$? |
| 15118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15119 | (exit $ac_status); }; }; then |
| 15120 | ac_header_compiler=yes |
| 15121 | else |
| 15122 | echo "$as_me: failed program was:" >&5 |
| 15123 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15124 | |
| 15125 | ac_header_compiler=no |
| 15126 | fi |
| 15127 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15128 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15129 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 15130 | |
| 15131 | # Is the header present? |
| 15132 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15133 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 15134 | cat >conftest.$ac_ext <<_ACEOF |
| 15135 | /* confdefs.h. */ |
| 15136 | _ACEOF |
| 15137 | cat confdefs.h >>conftest.$ac_ext |
| 15138 | cat >>conftest.$ac_ext <<_ACEOF |
| 15139 | /* end confdefs.h. */ |
| 15140 | #include <$ac_header> |
| 15141 | _ACEOF |
| 15142 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 15143 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 15144 | ac_status=$? |
| 15145 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15146 | rm -f conftest.er1 |
| 15147 | cat conftest.err >&5 |
| 15148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15149 | (exit $ac_status); } >/dev/null; then |
| 15150 | if test -s conftest.err; then |
| 15151 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15152 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15153 | else |
| 15154 | ac_cpp_err= |
| 15155 | fi |
| 15156 | else |
| 15157 | ac_cpp_err=yes |
| 15158 | fi |
| 15159 | if test -z "$ac_cpp_err"; then |
| 15160 | ac_header_preproc=yes |
| 15161 | else |
| 15162 | echo "$as_me: failed program was:" >&5 |
| 15163 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15164 | |
| 15165 | ac_header_preproc=no |
| 15166 | fi |
| 15167 | rm -f conftest.err conftest.$ac_ext |
| 15168 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15169 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 15170 | |
| 15171 | # So? What about this header? |
| 15172 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15173 | yes:no: ) |
| 15174 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15175 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15176 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15177 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15178 | ac_header_preproc=yes |
| 15179 | ;; |
| 15180 | no:yes:* ) |
| 15181 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15182 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15183 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15184 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15185 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15186 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15187 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15188 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15189 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15190 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15191 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15192 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15193 | ( |
| 15194 | cat <<\_ASBOX |
| 15195 | ## ------------------------------------------ ## |
| 15196 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 15197 | ## ------------------------------------------ ## |
| 15198 | _ASBOX |
| 15199 | ) | |
| 15200 | sed "s/^/$as_me: WARNING: /" >&2 |
| 15201 | ;; |
| 15202 | esac |
| 15203 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15204 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 15205 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15207 | else |
| 15208 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15209 | fi |
| 15210 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 15211 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 15212 | |
| 15213 | fi |
| 15214 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15215 | cat >>confdefs.h <<_ACEOF |
| 15216 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15217 | _ACEOF |
| 15218 | |
| 15219 | fi |
| 15220 | |
| 15221 | done |
| 15222 | |
| 15223 | |
| 15224 | for ac_header in sys/user.h |
| 15225 | do |
| 15226 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15227 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15228 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 15229 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15231 | else |
| 15232 | cat >conftest.$ac_ext <<_ACEOF |
| 15233 | /* confdefs.h. */ |
| 15234 | _ACEOF |
| 15235 | cat confdefs.h >>conftest.$ac_ext |
| 15236 | cat >>conftest.$ac_ext <<_ACEOF |
| 15237 | /* end confdefs.h. */ |
| 15238 | #if HAVE_SYS_PARAM_H |
| 15239 | # include <sys/param.h> |
| 15240 | #endif |
| 15241 | |
| 15242 | |
| 15243 | #include <$ac_header> |
| 15244 | _ACEOF |
| 15245 | rm -f conftest.$ac_objext |
| 15246 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15247 | (eval $ac_compile) 2>conftest.er1 |
| 15248 | ac_status=$? |
| 15249 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15250 | rm -f conftest.er1 |
| 15251 | cat conftest.err >&5 |
| 15252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15253 | (exit $ac_status); } && |
| 15254 | { ac_try='test -z "$ac_c_werror_flag" |
| 15255 | || test ! -s conftest.err' |
| 15256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15257 | (eval $ac_try) 2>&5 |
| 15258 | ac_status=$? |
| 15259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15260 | (exit $ac_status); }; } && |
| 15261 | { ac_try='test -s conftest.$ac_objext' |
| 15262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15263 | (eval $ac_try) 2>&5 |
| 15264 | ac_status=$? |
| 15265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15266 | (exit $ac_status); }; }; then |
| 15267 | eval "$as_ac_Header=yes" |
| 15268 | else |
| 15269 | echo "$as_me: failed program was:" >&5 |
| 15270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15271 | |
| 15272 | eval "$as_ac_Header=no" |
| 15273 | fi |
| 15274 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15275 | fi |
| 15276 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 15277 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 15278 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15279 | cat >>confdefs.h <<_ACEOF |
| 15280 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15281 | _ACEOF |
| 15282 | |
| 15283 | fi |
| 15284 | |
| 15285 | done |
| 15286 | |
| 15287 | |
| 15288 | |
| 15289 | for ac_header in sys/wait.h wait.h |
| 15290 | do |
| 15291 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15292 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15293 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15294 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 15295 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15297 | fi |
| 15298 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 15299 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 15300 | else |
| 15301 | # Is the header compilable? |
| 15302 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15303 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 15304 | cat >conftest.$ac_ext <<_ACEOF |
| 15305 | /* confdefs.h. */ |
| 15306 | _ACEOF |
| 15307 | cat confdefs.h >>conftest.$ac_ext |
| 15308 | cat >>conftest.$ac_ext <<_ACEOF |
| 15309 | /* end confdefs.h. */ |
| 15310 | $ac_includes_default |
| 15311 | #include <$ac_header> |
| 15312 | _ACEOF |
| 15313 | rm -f conftest.$ac_objext |
| 15314 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15315 | (eval $ac_compile) 2>conftest.er1 |
| 15316 | ac_status=$? |
| 15317 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15318 | rm -f conftest.er1 |
| 15319 | cat conftest.err >&5 |
| 15320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15321 | (exit $ac_status); } && |
| 15322 | { ac_try='test -z "$ac_c_werror_flag" |
| 15323 | || test ! -s conftest.err' |
| 15324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15325 | (eval $ac_try) 2>&5 |
| 15326 | ac_status=$? |
| 15327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15328 | (exit $ac_status); }; } && |
| 15329 | { ac_try='test -s conftest.$ac_objext' |
| 15330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15331 | (eval $ac_try) 2>&5 |
| 15332 | ac_status=$? |
| 15333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15334 | (exit $ac_status); }; }; then |
| 15335 | ac_header_compiler=yes |
| 15336 | else |
| 15337 | echo "$as_me: failed program was:" >&5 |
| 15338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15339 | |
| 15340 | ac_header_compiler=no |
| 15341 | fi |
| 15342 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15343 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15344 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 15345 | |
| 15346 | # Is the header present? |
| 15347 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15348 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 15349 | cat >conftest.$ac_ext <<_ACEOF |
| 15350 | /* confdefs.h. */ |
| 15351 | _ACEOF |
| 15352 | cat confdefs.h >>conftest.$ac_ext |
| 15353 | cat >>conftest.$ac_ext <<_ACEOF |
| 15354 | /* end confdefs.h. */ |
| 15355 | #include <$ac_header> |
| 15356 | _ACEOF |
| 15357 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 15358 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 15359 | ac_status=$? |
| 15360 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15361 | rm -f conftest.er1 |
| 15362 | cat conftest.err >&5 |
| 15363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15364 | (exit $ac_status); } >/dev/null; then |
| 15365 | if test -s conftest.err; then |
| 15366 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15367 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15368 | else |
| 15369 | ac_cpp_err= |
| 15370 | fi |
| 15371 | else |
| 15372 | ac_cpp_err=yes |
| 15373 | fi |
| 15374 | if test -z "$ac_cpp_err"; then |
| 15375 | ac_header_preproc=yes |
| 15376 | else |
| 15377 | echo "$as_me: failed program was:" >&5 |
| 15378 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15379 | |
| 15380 | ac_header_preproc=no |
| 15381 | fi |
| 15382 | rm -f conftest.err conftest.$ac_ext |
| 15383 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15384 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 15385 | |
| 15386 | # So? What about this header? |
| 15387 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15388 | yes:no: ) |
| 15389 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15390 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15391 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15392 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15393 | ac_header_preproc=yes |
| 15394 | ;; |
| 15395 | no:yes:* ) |
| 15396 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15397 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15398 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15399 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15400 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15401 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15402 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15403 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15404 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15405 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15406 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15407 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15408 | ( |
| 15409 | cat <<\_ASBOX |
| 15410 | ## ------------------------------------------ ## |
| 15411 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 15412 | ## ------------------------------------------ ## |
| 15413 | _ASBOX |
| 15414 | ) | |
| 15415 | sed "s/^/$as_me: WARNING: /" >&2 |
| 15416 | ;; |
| 15417 | esac |
| 15418 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15419 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 15420 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15422 | else |
| 15423 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15424 | fi |
| 15425 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 15426 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 15427 | |
| 15428 | fi |
| 15429 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15430 | cat >>confdefs.h <<_ACEOF |
| 15431 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15432 | _ACEOF |
| 15433 | |
| 15434 | fi |
| 15435 | |
| 15436 | done |
| 15437 | |
| 15438 | |
| 15439 | |
| 15440 | |
| 15441 | for ac_header in termios.h termio.h sgtty.h |
| 15442 | do |
| 15443 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15444 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15445 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15446 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 15447 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15449 | fi |
| 15450 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 15451 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 15452 | else |
| 15453 | # Is the header compilable? |
| 15454 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15455 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 15456 | cat >conftest.$ac_ext <<_ACEOF |
| 15457 | /* confdefs.h. */ |
| 15458 | _ACEOF |
| 15459 | cat confdefs.h >>conftest.$ac_ext |
| 15460 | cat >>conftest.$ac_ext <<_ACEOF |
| 15461 | /* end confdefs.h. */ |
| 15462 | $ac_includes_default |
| 15463 | #include <$ac_header> |
| 15464 | _ACEOF |
| 15465 | rm -f conftest.$ac_objext |
| 15466 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15467 | (eval $ac_compile) 2>conftest.er1 |
| 15468 | ac_status=$? |
| 15469 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15470 | rm -f conftest.er1 |
| 15471 | cat conftest.err >&5 |
| 15472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15473 | (exit $ac_status); } && |
| 15474 | { ac_try='test -z "$ac_c_werror_flag" |
| 15475 | || test ! -s conftest.err' |
| 15476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15477 | (eval $ac_try) 2>&5 |
| 15478 | ac_status=$? |
| 15479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15480 | (exit $ac_status); }; } && |
| 15481 | { ac_try='test -s conftest.$ac_objext' |
| 15482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15483 | (eval $ac_try) 2>&5 |
| 15484 | ac_status=$? |
| 15485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15486 | (exit $ac_status); }; }; then |
| 15487 | ac_header_compiler=yes |
| 15488 | else |
| 15489 | echo "$as_me: failed program was:" >&5 |
| 15490 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15491 | |
| 15492 | ac_header_compiler=no |
| 15493 | fi |
| 15494 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15495 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15496 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 15497 | |
| 15498 | # Is the header present? |
| 15499 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15500 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 15501 | cat >conftest.$ac_ext <<_ACEOF |
| 15502 | /* confdefs.h. */ |
| 15503 | _ACEOF |
| 15504 | cat confdefs.h >>conftest.$ac_ext |
| 15505 | cat >>conftest.$ac_ext <<_ACEOF |
| 15506 | /* end confdefs.h. */ |
| 15507 | #include <$ac_header> |
| 15508 | _ACEOF |
| 15509 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 15510 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 15511 | ac_status=$? |
| 15512 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15513 | rm -f conftest.er1 |
| 15514 | cat conftest.err >&5 |
| 15515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15516 | (exit $ac_status); } >/dev/null; then |
| 15517 | if test -s conftest.err; then |
| 15518 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15519 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15520 | else |
| 15521 | ac_cpp_err= |
| 15522 | fi |
| 15523 | else |
| 15524 | ac_cpp_err=yes |
| 15525 | fi |
| 15526 | if test -z "$ac_cpp_err"; then |
| 15527 | ac_header_preproc=yes |
| 15528 | else |
| 15529 | echo "$as_me: failed program was:" >&5 |
| 15530 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15531 | |
| 15532 | ac_header_preproc=no |
| 15533 | fi |
| 15534 | rm -f conftest.err conftest.$ac_ext |
| 15535 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15536 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 15537 | |
| 15538 | # So? What about this header? |
| 15539 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15540 | yes:no: ) |
| 15541 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15542 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15543 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15544 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15545 | ac_header_preproc=yes |
| 15546 | ;; |
| 15547 | no:yes:* ) |
| 15548 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15549 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15550 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15551 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15552 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15553 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15554 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15555 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15556 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15557 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15558 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15559 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15560 | ( |
| 15561 | cat <<\_ASBOX |
| 15562 | ## ------------------------------------------ ## |
| 15563 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 15564 | ## ------------------------------------------ ## |
| 15565 | _ASBOX |
| 15566 | ) | |
| 15567 | sed "s/^/$as_me: WARNING: /" >&2 |
| 15568 | ;; |
| 15569 | esac |
| 15570 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15571 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 15572 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15574 | else |
| 15575 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15576 | fi |
| 15577 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 15578 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 15579 | |
| 15580 | fi |
| 15581 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15582 | cat >>confdefs.h <<_ACEOF |
| 15583 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15584 | _ACEOF |
| 15585 | |
| 15586 | fi |
| 15587 | |
| 15588 | done |
| 15589 | |
| 15590 | |
| 15591 | for ac_header in unistd.h |
| 15592 | do |
| 15593 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15594 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15595 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15596 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 15597 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15598 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15599 | fi |
| 15600 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 15601 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 15602 | else |
| 15603 | # Is the header compilable? |
| 15604 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15605 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 15606 | cat >conftest.$ac_ext <<_ACEOF |
| 15607 | /* confdefs.h. */ |
| 15608 | _ACEOF |
| 15609 | cat confdefs.h >>conftest.$ac_ext |
| 15610 | cat >>conftest.$ac_ext <<_ACEOF |
| 15611 | /* end confdefs.h. */ |
| 15612 | $ac_includes_default |
| 15613 | #include <$ac_header> |
| 15614 | _ACEOF |
| 15615 | rm -f conftest.$ac_objext |
| 15616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15617 | (eval $ac_compile) 2>conftest.er1 |
| 15618 | ac_status=$? |
| 15619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15620 | rm -f conftest.er1 |
| 15621 | cat conftest.err >&5 |
| 15622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15623 | (exit $ac_status); } && |
| 15624 | { ac_try='test -z "$ac_c_werror_flag" |
| 15625 | || test ! -s conftest.err' |
| 15626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15627 | (eval $ac_try) 2>&5 |
| 15628 | ac_status=$? |
| 15629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15630 | (exit $ac_status); }; } && |
| 15631 | { ac_try='test -s conftest.$ac_objext' |
| 15632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15633 | (eval $ac_try) 2>&5 |
| 15634 | ac_status=$? |
| 15635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15636 | (exit $ac_status); }; }; then |
| 15637 | ac_header_compiler=yes |
| 15638 | else |
| 15639 | echo "$as_me: failed program was:" >&5 |
| 15640 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15641 | |
| 15642 | ac_header_compiler=no |
| 15643 | fi |
| 15644 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15645 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15646 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 15647 | |
| 15648 | # Is the header present? |
| 15649 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15650 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 15651 | cat >conftest.$ac_ext <<_ACEOF |
| 15652 | /* confdefs.h. */ |
| 15653 | _ACEOF |
| 15654 | cat confdefs.h >>conftest.$ac_ext |
| 15655 | cat >>conftest.$ac_ext <<_ACEOF |
| 15656 | /* end confdefs.h. */ |
| 15657 | #include <$ac_header> |
| 15658 | _ACEOF |
| 15659 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 15660 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 15661 | ac_status=$? |
| 15662 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15663 | rm -f conftest.er1 |
| 15664 | cat conftest.err >&5 |
| 15665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15666 | (exit $ac_status); } >/dev/null; then |
| 15667 | if test -s conftest.err; then |
| 15668 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15669 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15670 | else |
| 15671 | ac_cpp_err= |
| 15672 | fi |
| 15673 | else |
| 15674 | ac_cpp_err=yes |
| 15675 | fi |
| 15676 | if test -z "$ac_cpp_err"; then |
| 15677 | ac_header_preproc=yes |
| 15678 | else |
| 15679 | echo "$as_me: failed program was:" >&5 |
| 15680 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15681 | |
| 15682 | ac_header_preproc=no |
| 15683 | fi |
| 15684 | rm -f conftest.err conftest.$ac_ext |
| 15685 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15686 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 15687 | |
| 15688 | # So? What about this header? |
| 15689 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15690 | yes:no: ) |
| 15691 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15692 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15693 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15694 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15695 | ac_header_preproc=yes |
| 15696 | ;; |
| 15697 | no:yes:* ) |
| 15698 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15699 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15700 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15701 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15702 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15703 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15704 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15705 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15706 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15707 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15708 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15709 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15710 | ( |
| 15711 | cat <<\_ASBOX |
| 15712 | ## ------------------------------------------ ## |
| 15713 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 15714 | ## ------------------------------------------ ## |
| 15715 | _ASBOX |
| 15716 | ) | |
| 15717 | sed "s/^/$as_me: WARNING: /" >&2 |
| 15718 | ;; |
| 15719 | esac |
| 15720 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15721 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 15722 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15724 | else |
| 15725 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15726 | fi |
| 15727 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 15728 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 15729 | |
| 15730 | fi |
| 15731 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15732 | cat >>confdefs.h <<_ACEOF |
| 15733 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15734 | _ACEOF |
| 15735 | |
| 15736 | fi |
| 15737 | |
| 15738 | done |
| 15739 | |
| 15740 | |
| 15741 | # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash |
| 15742 | # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to |
| 15743 | # think that we don't have <curses.h> if we're using GCC. |
| 15744 | case $host_os in |
| 15745 | solaris2.[789]) |
| 15746 | if test "$GCC" = yes; then |
| 15747 | |
| 15748 | cat >>confdefs.h <<\_ACEOF |
| 15749 | #define _MSE_INT_H 1 |
| 15750 | _ACEOF |
| 15751 | |
| 15752 | fi ;; |
| 15753 | esac |
| 15754 | |
| 15755 | |
| 15756 | |
| 15757 | |
| 15758 | for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h |
| 15759 | do |
| 15760 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15761 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15762 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15763 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 15764 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15766 | fi |
| 15767 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 15768 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 15769 | else |
| 15770 | # Is the header compilable? |
| 15771 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15772 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 15773 | cat >conftest.$ac_ext <<_ACEOF |
| 15774 | /* confdefs.h. */ |
| 15775 | _ACEOF |
| 15776 | cat confdefs.h >>conftest.$ac_ext |
| 15777 | cat >>conftest.$ac_ext <<_ACEOF |
| 15778 | /* end confdefs.h. */ |
| 15779 | $ac_includes_default |
| 15780 | #include <$ac_header> |
| 15781 | _ACEOF |
| 15782 | rm -f conftest.$ac_objext |
| 15783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15784 | (eval $ac_compile) 2>conftest.er1 |
| 15785 | ac_status=$? |
| 15786 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15787 | rm -f conftest.er1 |
| 15788 | cat conftest.err >&5 |
| 15789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15790 | (exit $ac_status); } && |
| 15791 | { ac_try='test -z "$ac_c_werror_flag" |
| 15792 | || test ! -s conftest.err' |
| 15793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15794 | (eval $ac_try) 2>&5 |
| 15795 | ac_status=$? |
| 15796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15797 | (exit $ac_status); }; } && |
| 15798 | { ac_try='test -s conftest.$ac_objext' |
| 15799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15800 | (eval $ac_try) 2>&5 |
| 15801 | ac_status=$? |
| 15802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15803 | (exit $ac_status); }; }; then |
| 15804 | ac_header_compiler=yes |
| 15805 | else |
| 15806 | echo "$as_me: failed program was:" >&5 |
| 15807 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15808 | |
| 15809 | ac_header_compiler=no |
| 15810 | fi |
| 15811 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15812 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15813 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 15814 | |
| 15815 | # Is the header present? |
| 15816 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15817 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 15818 | cat >conftest.$ac_ext <<_ACEOF |
| 15819 | /* confdefs.h. */ |
| 15820 | _ACEOF |
| 15821 | cat confdefs.h >>conftest.$ac_ext |
| 15822 | cat >>conftest.$ac_ext <<_ACEOF |
| 15823 | /* end confdefs.h. */ |
| 15824 | #include <$ac_header> |
| 15825 | _ACEOF |
| 15826 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 15827 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 15828 | ac_status=$? |
| 15829 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15830 | rm -f conftest.er1 |
| 15831 | cat conftest.err >&5 |
| 15832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15833 | (exit $ac_status); } >/dev/null; then |
| 15834 | if test -s conftest.err; then |
| 15835 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15836 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15837 | else |
| 15838 | ac_cpp_err= |
| 15839 | fi |
| 15840 | else |
| 15841 | ac_cpp_err=yes |
| 15842 | fi |
| 15843 | if test -z "$ac_cpp_err"; then |
| 15844 | ac_header_preproc=yes |
| 15845 | else |
| 15846 | echo "$as_me: failed program was:" >&5 |
| 15847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15848 | |
| 15849 | ac_header_preproc=no |
| 15850 | fi |
| 15851 | rm -f conftest.err conftest.$ac_ext |
| 15852 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15853 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 15854 | |
| 15855 | # So? What about this header? |
| 15856 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15857 | yes:no: ) |
| 15858 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15859 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15860 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15861 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15862 | ac_header_preproc=yes |
| 15863 | ;; |
| 15864 | no:yes:* ) |
| 15865 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15866 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15867 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15868 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15869 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15870 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15871 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15872 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15873 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15874 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15875 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15876 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15877 | ( |
| 15878 | cat <<\_ASBOX |
| 15879 | ## ------------------------------------------ ## |
| 15880 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 15881 | ## ------------------------------------------ ## |
| 15882 | _ASBOX |
| 15883 | ) | |
| 15884 | sed "s/^/$as_me: WARNING: /" >&2 |
| 15885 | ;; |
| 15886 | esac |
| 15887 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15888 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 15889 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15891 | else |
| 15892 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15893 | fi |
| 15894 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 15895 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 15896 | |
| 15897 | fi |
| 15898 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15899 | cat >>confdefs.h <<_ACEOF |
| 15900 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15901 | _ACEOF |
| 15902 | |
| 15903 | fi |
| 15904 | |
| 15905 | done |
| 15906 | |
| 15907 | |
| 15908 | for ac_header in ncurses/term.h |
| 15909 | do |
| 15910 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15911 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15912 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15913 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 15914 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15916 | fi |
| 15917 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 15918 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 15919 | else |
| 15920 | # Is the header compilable? |
| 15921 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15922 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 15923 | cat >conftest.$ac_ext <<_ACEOF |
| 15924 | /* confdefs.h. */ |
| 15925 | _ACEOF |
| 15926 | cat confdefs.h >>conftest.$ac_ext |
| 15927 | cat >>conftest.$ac_ext <<_ACEOF |
| 15928 | /* end confdefs.h. */ |
| 15929 | $ac_includes_default |
| 15930 | #include <$ac_header> |
| 15931 | _ACEOF |
| 15932 | rm -f conftest.$ac_objext |
| 15933 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15934 | (eval $ac_compile) 2>conftest.er1 |
| 15935 | ac_status=$? |
| 15936 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15937 | rm -f conftest.er1 |
| 15938 | cat conftest.err >&5 |
| 15939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15940 | (exit $ac_status); } && |
| 15941 | { ac_try='test -z "$ac_c_werror_flag" |
| 15942 | || test ! -s conftest.err' |
| 15943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15944 | (eval $ac_try) 2>&5 |
| 15945 | ac_status=$? |
| 15946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15947 | (exit $ac_status); }; } && |
| 15948 | { ac_try='test -s conftest.$ac_objext' |
| 15949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15950 | (eval $ac_try) 2>&5 |
| 15951 | ac_status=$? |
| 15952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15953 | (exit $ac_status); }; }; then |
| 15954 | ac_header_compiler=yes |
| 15955 | else |
| 15956 | echo "$as_me: failed program was:" >&5 |
| 15957 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15958 | |
| 15959 | ac_header_compiler=no |
| 15960 | fi |
| 15961 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15962 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15963 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 15964 | |
| 15965 | # Is the header present? |
| 15966 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15967 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 15968 | cat >conftest.$ac_ext <<_ACEOF |
| 15969 | /* confdefs.h. */ |
| 15970 | _ACEOF |
| 15971 | cat confdefs.h >>conftest.$ac_ext |
| 15972 | cat >>conftest.$ac_ext <<_ACEOF |
| 15973 | /* end confdefs.h. */ |
| 15974 | #include <$ac_header> |
| 15975 | _ACEOF |
| 15976 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 15977 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 15978 | ac_status=$? |
| 15979 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15980 | rm -f conftest.er1 |
| 15981 | cat conftest.err >&5 |
| 15982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15983 | (exit $ac_status); } >/dev/null; then |
| 15984 | if test -s conftest.err; then |
| 15985 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15986 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15987 | else |
| 15988 | ac_cpp_err= |
| 15989 | fi |
| 15990 | else |
| 15991 | ac_cpp_err=yes |
| 15992 | fi |
| 15993 | if test -z "$ac_cpp_err"; then |
| 15994 | ac_header_preproc=yes |
| 15995 | else |
| 15996 | echo "$as_me: failed program was:" >&5 |
| 15997 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15998 | |
| 15999 | ac_header_preproc=no |
| 16000 | fi |
| 16001 | rm -f conftest.err conftest.$ac_ext |
| 16002 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16003 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 16004 | |
| 16005 | # So? What about this header? |
| 16006 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16007 | yes:no: ) |
| 16008 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16009 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16010 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16011 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16012 | ac_header_preproc=yes |
| 16013 | ;; |
| 16014 | no:yes:* ) |
| 16015 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16016 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16017 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16018 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16019 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16020 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16021 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16022 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16023 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16024 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16025 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16026 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16027 | ( |
| 16028 | cat <<\_ASBOX |
| 16029 | ## ------------------------------------------ ## |
| 16030 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 16031 | ## ------------------------------------------ ## |
| 16032 | _ASBOX |
| 16033 | ) | |
| 16034 | sed "s/^/$as_me: WARNING: /" >&2 |
| 16035 | ;; |
| 16036 | esac |
| 16037 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16038 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 16039 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16041 | else |
| 16042 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16043 | fi |
| 16044 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 16045 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 16046 | |
| 16047 | fi |
| 16048 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16049 | cat >>confdefs.h <<_ACEOF |
| 16050 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16051 | _ACEOF |
| 16052 | |
| 16053 | fi |
| 16054 | |
| 16055 | done |
| 16056 | |
| 16057 | |
| 16058 | for ac_header in term.h |
| 16059 | do |
| 16060 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16061 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16062 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 16063 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16065 | else |
| 16066 | cat >conftest.$ac_ext <<_ACEOF |
| 16067 | /* confdefs.h. */ |
| 16068 | _ACEOF |
| 16069 | cat confdefs.h >>conftest.$ac_ext |
| 16070 | cat >>conftest.$ac_ext <<_ACEOF |
| 16071 | /* end confdefs.h. */ |
| 16072 | #if HAVE_CURSES_H |
| 16073 | # include <curses.h> |
| 16074 | #endif |
| 16075 | |
| 16076 | |
| 16077 | #include <$ac_header> |
| 16078 | _ACEOF |
| 16079 | rm -f conftest.$ac_objext |
| 16080 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16081 | (eval $ac_compile) 2>conftest.er1 |
| 16082 | ac_status=$? |
| 16083 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16084 | rm -f conftest.er1 |
| 16085 | cat conftest.err >&5 |
| 16086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16087 | (exit $ac_status); } && |
| 16088 | { ac_try='test -z "$ac_c_werror_flag" |
| 16089 | || test ! -s conftest.err' |
| 16090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16091 | (eval $ac_try) 2>&5 |
| 16092 | ac_status=$? |
| 16093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16094 | (exit $ac_status); }; } && |
| 16095 | { ac_try='test -s conftest.$ac_objext' |
| 16096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16097 | (eval $ac_try) 2>&5 |
| 16098 | ac_status=$? |
| 16099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16100 | (exit $ac_status); }; }; then |
| 16101 | eval "$as_ac_Header=yes" |
| 16102 | else |
| 16103 | echo "$as_me: failed program was:" >&5 |
| 16104 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16105 | |
| 16106 | eval "$as_ac_Header=no" |
| 16107 | fi |
| 16108 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16109 | fi |
| 16110 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 16111 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 16112 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16113 | cat >>confdefs.h <<_ACEOF |
| 16114 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16115 | _ACEOF |
| 16116 | |
| 16117 | fi |
| 16118 | |
| 16119 | done |
| 16120 | |
| 16121 | |
| 16122 | # Check for HP/UX 64-bit shared library support |
| 16123 | |
| 16124 | for ac_header in elf_hp.h |
| 16125 | do |
| 16126 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16127 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16128 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16129 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 16130 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16132 | fi |
| 16133 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 16134 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 16135 | else |
| 16136 | # Is the header compilable? |
| 16137 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16138 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 16139 | cat >conftest.$ac_ext <<_ACEOF |
| 16140 | /* confdefs.h. */ |
| 16141 | _ACEOF |
| 16142 | cat confdefs.h >>conftest.$ac_ext |
| 16143 | cat >>conftest.$ac_ext <<_ACEOF |
| 16144 | /* end confdefs.h. */ |
| 16145 | $ac_includes_default |
| 16146 | #include <$ac_header> |
| 16147 | _ACEOF |
| 16148 | rm -f conftest.$ac_objext |
| 16149 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16150 | (eval $ac_compile) 2>conftest.er1 |
| 16151 | ac_status=$? |
| 16152 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16153 | rm -f conftest.er1 |
| 16154 | cat conftest.err >&5 |
| 16155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16156 | (exit $ac_status); } && |
| 16157 | { ac_try='test -z "$ac_c_werror_flag" |
| 16158 | || test ! -s conftest.err' |
| 16159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16160 | (eval $ac_try) 2>&5 |
| 16161 | ac_status=$? |
| 16162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16163 | (exit $ac_status); }; } && |
| 16164 | { ac_try='test -s conftest.$ac_objext' |
| 16165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16166 | (eval $ac_try) 2>&5 |
| 16167 | ac_status=$? |
| 16168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16169 | (exit $ac_status); }; }; then |
| 16170 | ac_header_compiler=yes |
| 16171 | else |
| 16172 | echo "$as_me: failed program was:" >&5 |
| 16173 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16174 | |
| 16175 | ac_header_compiler=no |
| 16176 | fi |
| 16177 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16178 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16179 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 16180 | |
| 16181 | # Is the header present? |
| 16182 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16183 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 16184 | cat >conftest.$ac_ext <<_ACEOF |
| 16185 | /* confdefs.h. */ |
| 16186 | _ACEOF |
| 16187 | cat confdefs.h >>conftest.$ac_ext |
| 16188 | cat >>conftest.$ac_ext <<_ACEOF |
| 16189 | /* end confdefs.h. */ |
| 16190 | #include <$ac_header> |
| 16191 | _ACEOF |
| 16192 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 16193 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 16194 | ac_status=$? |
| 16195 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16196 | rm -f conftest.er1 |
| 16197 | cat conftest.err >&5 |
| 16198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16199 | (exit $ac_status); } >/dev/null; then |
| 16200 | if test -s conftest.err; then |
| 16201 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16202 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16203 | else |
| 16204 | ac_cpp_err= |
| 16205 | fi |
| 16206 | else |
| 16207 | ac_cpp_err=yes |
| 16208 | fi |
| 16209 | if test -z "$ac_cpp_err"; then |
| 16210 | ac_header_preproc=yes |
| 16211 | else |
| 16212 | echo "$as_me: failed program was:" >&5 |
| 16213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16214 | |
| 16215 | ac_header_preproc=no |
| 16216 | fi |
| 16217 | rm -f conftest.err conftest.$ac_ext |
| 16218 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16219 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 16220 | |
| 16221 | # So? What about this header? |
| 16222 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16223 | yes:no: ) |
| 16224 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16225 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16226 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16227 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16228 | ac_header_preproc=yes |
| 16229 | ;; |
| 16230 | no:yes:* ) |
| 16231 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16232 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16233 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16234 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16235 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16236 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16237 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16238 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16239 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16240 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16241 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16242 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16243 | ( |
| 16244 | cat <<\_ASBOX |
| 16245 | ## ------------------------------------------ ## |
| 16246 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 16247 | ## ------------------------------------------ ## |
| 16248 | _ASBOX |
| 16249 | ) | |
| 16250 | sed "s/^/$as_me: WARNING: /" >&2 |
| 16251 | ;; |
| 16252 | esac |
| 16253 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16254 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 16255 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16257 | else |
| 16258 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16259 | fi |
| 16260 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 16261 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 16262 | |
| 16263 | fi |
| 16264 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16265 | cat >>confdefs.h <<_ACEOF |
| 16266 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16267 | _ACEOF |
| 16268 | |
| 16269 | fi |
| 16270 | |
| 16271 | done |
| 16272 | |
| 16273 | |
| 16274 | # FIXME: kettenis/20030102: In most cases we include these |
| 16275 | # unconditionally, so what's the point in checking these? |
| 16276 | |
| 16277 | |
| 16278 | for ac_header in ctype.h time.h |
| 16279 | do |
| 16280 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16281 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16282 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16283 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 16284 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16286 | fi |
| 16287 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 16288 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 16289 | else |
| 16290 | # Is the header compilable? |
| 16291 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16292 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 16293 | cat >conftest.$ac_ext <<_ACEOF |
| 16294 | /* confdefs.h. */ |
| 16295 | _ACEOF |
| 16296 | cat confdefs.h >>conftest.$ac_ext |
| 16297 | cat >>conftest.$ac_ext <<_ACEOF |
| 16298 | /* end confdefs.h. */ |
| 16299 | $ac_includes_default |
| 16300 | #include <$ac_header> |
| 16301 | _ACEOF |
| 16302 | rm -f conftest.$ac_objext |
| 16303 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16304 | (eval $ac_compile) 2>conftest.er1 |
| 16305 | ac_status=$? |
| 16306 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16307 | rm -f conftest.er1 |
| 16308 | cat conftest.err >&5 |
| 16309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16310 | (exit $ac_status); } && |
| 16311 | { ac_try='test -z "$ac_c_werror_flag" |
| 16312 | || test ! -s conftest.err' |
| 16313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16314 | (eval $ac_try) 2>&5 |
| 16315 | ac_status=$? |
| 16316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16317 | (exit $ac_status); }; } && |
| 16318 | { ac_try='test -s conftest.$ac_objext' |
| 16319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16320 | (eval $ac_try) 2>&5 |
| 16321 | ac_status=$? |
| 16322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16323 | (exit $ac_status); }; }; then |
| 16324 | ac_header_compiler=yes |
| 16325 | else |
| 16326 | echo "$as_me: failed program was:" >&5 |
| 16327 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16328 | |
| 16329 | ac_header_compiler=no |
| 16330 | fi |
| 16331 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16332 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16333 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 16334 | |
| 16335 | # Is the header present? |
| 16336 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16337 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 16338 | cat >conftest.$ac_ext <<_ACEOF |
| 16339 | /* confdefs.h. */ |
| 16340 | _ACEOF |
| 16341 | cat confdefs.h >>conftest.$ac_ext |
| 16342 | cat >>conftest.$ac_ext <<_ACEOF |
| 16343 | /* end confdefs.h. */ |
| 16344 | #include <$ac_header> |
| 16345 | _ACEOF |
| 16346 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 16347 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 16348 | ac_status=$? |
| 16349 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16350 | rm -f conftest.er1 |
| 16351 | cat conftest.err >&5 |
| 16352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16353 | (exit $ac_status); } >/dev/null; then |
| 16354 | if test -s conftest.err; then |
| 16355 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16356 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16357 | else |
| 16358 | ac_cpp_err= |
| 16359 | fi |
| 16360 | else |
| 16361 | ac_cpp_err=yes |
| 16362 | fi |
| 16363 | if test -z "$ac_cpp_err"; then |
| 16364 | ac_header_preproc=yes |
| 16365 | else |
| 16366 | echo "$as_me: failed program was:" >&5 |
| 16367 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16368 | |
| 16369 | ac_header_preproc=no |
| 16370 | fi |
| 16371 | rm -f conftest.err conftest.$ac_ext |
| 16372 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16373 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 16374 | |
| 16375 | # So? What about this header? |
| 16376 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16377 | yes:no: ) |
| 16378 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16379 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16380 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16381 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16382 | ac_header_preproc=yes |
| 16383 | ;; |
| 16384 | no:yes:* ) |
| 16385 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16386 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16387 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16388 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16389 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16390 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16391 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16392 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16393 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16394 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16395 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16396 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16397 | ( |
| 16398 | cat <<\_ASBOX |
| 16399 | ## ------------------------------------------ ## |
| 16400 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 16401 | ## ------------------------------------------ ## |
| 16402 | _ASBOX |
| 16403 | ) | |
| 16404 | sed "s/^/$as_me: WARNING: /" >&2 |
| 16405 | ;; |
| 16406 | esac |
| 16407 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16408 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 16409 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16411 | else |
| 16412 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16413 | fi |
| 16414 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 16415 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 16416 | |
| 16417 | fi |
| 16418 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16419 | cat >>confdefs.h <<_ACEOF |
| 16420 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16421 | _ACEOF |
| 16422 | |
| 16423 | fi |
| 16424 | |
| 16425 | done |
| 16426 | |
| 16427 | |
| 16428 | # Create a header we can use portably to get the standard integer types. |
| 16429 | |
| 16430 | |
| 16431 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` |
| 16432 | |
| 16433 | acx_cv_header_stdint=stddef.h |
| 16434 | acx_cv_header_stdint_kind="(already complete)" |
| 16435 | for i in stdint.h $inttype_headers; do |
| 16436 | unset ac_cv_type_uintptr_t |
| 16437 | unset ac_cv_type_uintmax_t |
| 16438 | unset ac_cv_type_int_least32_t |
| 16439 | unset ac_cv_type_int_fast32_t |
| 16440 | unset ac_cv_type_uint64_t |
| 16441 | echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6 |
| 16442 | echo "$as_me:$LINENO: checking for uintmax_t" >&5 |
| 16443 | echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6 |
| 16444 | if test "${ac_cv_type_uintmax_t+set}" = set; then |
| 16445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16446 | else |
| 16447 | cat >conftest.$ac_ext <<_ACEOF |
| 16448 | /* confdefs.h. */ |
| 16449 | _ACEOF |
| 16450 | cat confdefs.h >>conftest.$ac_ext |
| 16451 | cat >>conftest.$ac_ext <<_ACEOF |
| 16452 | /* end confdefs.h. */ |
| 16453 | #include <sys/types.h> |
| 16454 | #include <$i> |
| 16455 | |
| 16456 | int |
| 16457 | main () |
| 16458 | { |
| 16459 | if ((uintmax_t *) 0) |
| 16460 | return 0; |
| 16461 | if (sizeof (uintmax_t)) |
| 16462 | return 0; |
| 16463 | ; |
| 16464 | return 0; |
| 16465 | } |
| 16466 | _ACEOF |
| 16467 | rm -f conftest.$ac_objext |
| 16468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16469 | (eval $ac_compile) 2>conftest.er1 |
| 16470 | ac_status=$? |
| 16471 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16472 | rm -f conftest.er1 |
| 16473 | cat conftest.err >&5 |
| 16474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16475 | (exit $ac_status); } && |
| 16476 | { ac_try='test -z "$ac_c_werror_flag" |
| 16477 | || test ! -s conftest.err' |
| 16478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16479 | (eval $ac_try) 2>&5 |
| 16480 | ac_status=$? |
| 16481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16482 | (exit $ac_status); }; } && |
| 16483 | { ac_try='test -s conftest.$ac_objext' |
| 16484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16485 | (eval $ac_try) 2>&5 |
| 16486 | ac_status=$? |
| 16487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16488 | (exit $ac_status); }; }; then |
| 16489 | ac_cv_type_uintmax_t=yes |
| 16490 | else |
| 16491 | echo "$as_me: failed program was:" >&5 |
| 16492 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16493 | |
| 16494 | ac_cv_type_uintmax_t=no |
| 16495 | fi |
| 16496 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16497 | fi |
| 16498 | echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5 |
| 16499 | echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6 |
| 16500 | if test $ac_cv_type_uintmax_t = yes; then |
| 16501 | acx_cv_header_stdint=$i |
| 16502 | else |
| 16503 | continue |
| 16504 | fi |
| 16505 | |
| 16506 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 16507 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 16508 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 16509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16510 | else |
| 16511 | cat >conftest.$ac_ext <<_ACEOF |
| 16512 | /* confdefs.h. */ |
| 16513 | _ACEOF |
| 16514 | cat confdefs.h >>conftest.$ac_ext |
| 16515 | cat >>conftest.$ac_ext <<_ACEOF |
| 16516 | /* end confdefs.h. */ |
| 16517 | #include <sys/types.h> |
| 16518 | #include <$i> |
| 16519 | |
| 16520 | int |
| 16521 | main () |
| 16522 | { |
| 16523 | if ((uintptr_t *) 0) |
| 16524 | return 0; |
| 16525 | if (sizeof (uintptr_t)) |
| 16526 | return 0; |
| 16527 | ; |
| 16528 | return 0; |
| 16529 | } |
| 16530 | _ACEOF |
| 16531 | rm -f conftest.$ac_objext |
| 16532 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16533 | (eval $ac_compile) 2>conftest.er1 |
| 16534 | ac_status=$? |
| 16535 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16536 | rm -f conftest.er1 |
| 16537 | cat conftest.err >&5 |
| 16538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16539 | (exit $ac_status); } && |
| 16540 | { ac_try='test -z "$ac_c_werror_flag" |
| 16541 | || test ! -s conftest.err' |
| 16542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16543 | (eval $ac_try) 2>&5 |
| 16544 | ac_status=$? |
| 16545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16546 | (exit $ac_status); }; } && |
| 16547 | { ac_try='test -s conftest.$ac_objext' |
| 16548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16549 | (eval $ac_try) 2>&5 |
| 16550 | ac_status=$? |
| 16551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16552 | (exit $ac_status); }; }; then |
| 16553 | ac_cv_type_uintptr_t=yes |
| 16554 | else |
| 16555 | echo "$as_me: failed program was:" >&5 |
| 16556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16557 | |
| 16558 | ac_cv_type_uintptr_t=no |
| 16559 | fi |
| 16560 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16561 | fi |
| 16562 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 16563 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 16564 | if test $ac_cv_type_uintptr_t = yes; then |
| 16565 | : |
| 16566 | else |
| 16567 | acx_cv_header_stdint_kind="(mostly complete)" |
| 16568 | fi |
| 16569 | |
| 16570 | echo "$as_me:$LINENO: checking for int_least32_t" >&5 |
| 16571 | echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6 |
| 16572 | if test "${ac_cv_type_int_least32_t+set}" = set; then |
| 16573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16574 | else |
| 16575 | cat >conftest.$ac_ext <<_ACEOF |
| 16576 | /* confdefs.h. */ |
| 16577 | _ACEOF |
| 16578 | cat confdefs.h >>conftest.$ac_ext |
| 16579 | cat >>conftest.$ac_ext <<_ACEOF |
| 16580 | /* end confdefs.h. */ |
| 16581 | #include <sys/types.h> |
| 16582 | #include <$i> |
| 16583 | |
| 16584 | int |
| 16585 | main () |
| 16586 | { |
| 16587 | if ((int_least32_t *) 0) |
| 16588 | return 0; |
| 16589 | if (sizeof (int_least32_t)) |
| 16590 | return 0; |
| 16591 | ; |
| 16592 | return 0; |
| 16593 | } |
| 16594 | _ACEOF |
| 16595 | rm -f conftest.$ac_objext |
| 16596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16597 | (eval $ac_compile) 2>conftest.er1 |
| 16598 | ac_status=$? |
| 16599 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16600 | rm -f conftest.er1 |
| 16601 | cat conftest.err >&5 |
| 16602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16603 | (exit $ac_status); } && |
| 16604 | { ac_try='test -z "$ac_c_werror_flag" |
| 16605 | || test ! -s conftest.err' |
| 16606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16607 | (eval $ac_try) 2>&5 |
| 16608 | ac_status=$? |
| 16609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16610 | (exit $ac_status); }; } && |
| 16611 | { ac_try='test -s conftest.$ac_objext' |
| 16612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16613 | (eval $ac_try) 2>&5 |
| 16614 | ac_status=$? |
| 16615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16616 | (exit $ac_status); }; }; then |
| 16617 | ac_cv_type_int_least32_t=yes |
| 16618 | else |
| 16619 | echo "$as_me: failed program was:" >&5 |
| 16620 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16621 | |
| 16622 | ac_cv_type_int_least32_t=no |
| 16623 | fi |
| 16624 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16625 | fi |
| 16626 | echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5 |
| 16627 | echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6 |
| 16628 | if test $ac_cv_type_int_least32_t = yes; then |
| 16629 | : |
| 16630 | else |
| 16631 | acx_cv_header_stdint_kind="(mostly complete)" |
| 16632 | fi |
| 16633 | |
| 16634 | echo "$as_me:$LINENO: checking for int_fast32_t" >&5 |
| 16635 | echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6 |
| 16636 | if test "${ac_cv_type_int_fast32_t+set}" = set; then |
| 16637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16638 | else |
| 16639 | cat >conftest.$ac_ext <<_ACEOF |
| 16640 | /* confdefs.h. */ |
| 16641 | _ACEOF |
| 16642 | cat confdefs.h >>conftest.$ac_ext |
| 16643 | cat >>conftest.$ac_ext <<_ACEOF |
| 16644 | /* end confdefs.h. */ |
| 16645 | #include <sys/types.h> |
| 16646 | #include <$i> |
| 16647 | |
| 16648 | int |
| 16649 | main () |
| 16650 | { |
| 16651 | if ((int_fast32_t *) 0) |
| 16652 | return 0; |
| 16653 | if (sizeof (int_fast32_t)) |
| 16654 | return 0; |
| 16655 | ; |
| 16656 | return 0; |
| 16657 | } |
| 16658 | _ACEOF |
| 16659 | rm -f conftest.$ac_objext |
| 16660 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16661 | (eval $ac_compile) 2>conftest.er1 |
| 16662 | ac_status=$? |
| 16663 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16664 | rm -f conftest.er1 |
| 16665 | cat conftest.err >&5 |
| 16666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16667 | (exit $ac_status); } && |
| 16668 | { ac_try='test -z "$ac_c_werror_flag" |
| 16669 | || test ! -s conftest.err' |
| 16670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16671 | (eval $ac_try) 2>&5 |
| 16672 | ac_status=$? |
| 16673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16674 | (exit $ac_status); }; } && |
| 16675 | { ac_try='test -s conftest.$ac_objext' |
| 16676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16677 | (eval $ac_try) 2>&5 |
| 16678 | ac_status=$? |
| 16679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16680 | (exit $ac_status); }; }; then |
| 16681 | ac_cv_type_int_fast32_t=yes |
| 16682 | else |
| 16683 | echo "$as_me: failed program was:" >&5 |
| 16684 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16685 | |
| 16686 | ac_cv_type_int_fast32_t=no |
| 16687 | fi |
| 16688 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16689 | fi |
| 16690 | echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5 |
| 16691 | echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6 |
| 16692 | if test $ac_cv_type_int_fast32_t = yes; then |
| 16693 | : |
| 16694 | else |
| 16695 | acx_cv_header_stdint_kind="(mostly complete)" |
| 16696 | fi |
| 16697 | |
| 16698 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 16699 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 |
| 16700 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 16701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16702 | else |
| 16703 | cat >conftest.$ac_ext <<_ACEOF |
| 16704 | /* confdefs.h. */ |
| 16705 | _ACEOF |
| 16706 | cat confdefs.h >>conftest.$ac_ext |
| 16707 | cat >>conftest.$ac_ext <<_ACEOF |
| 16708 | /* end confdefs.h. */ |
| 16709 | #include <sys/types.h> |
| 16710 | #include <$i> |
| 16711 | |
| 16712 | int |
| 16713 | main () |
| 16714 | { |
| 16715 | if ((uint64_t *) 0) |
| 16716 | return 0; |
| 16717 | if (sizeof (uint64_t)) |
| 16718 | return 0; |
| 16719 | ; |
| 16720 | return 0; |
| 16721 | } |
| 16722 | _ACEOF |
| 16723 | rm -f conftest.$ac_objext |
| 16724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16725 | (eval $ac_compile) 2>conftest.er1 |
| 16726 | ac_status=$? |
| 16727 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16728 | rm -f conftest.er1 |
| 16729 | cat conftest.err >&5 |
| 16730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16731 | (exit $ac_status); } && |
| 16732 | { ac_try='test -z "$ac_c_werror_flag" |
| 16733 | || test ! -s conftest.err' |
| 16734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16735 | (eval $ac_try) 2>&5 |
| 16736 | ac_status=$? |
| 16737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16738 | (exit $ac_status); }; } && |
| 16739 | { ac_try='test -s conftest.$ac_objext' |
| 16740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16741 | (eval $ac_try) 2>&5 |
| 16742 | ac_status=$? |
| 16743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16744 | (exit $ac_status); }; }; then |
| 16745 | ac_cv_type_uint64_t=yes |
| 16746 | else |
| 16747 | echo "$as_me: failed program was:" >&5 |
| 16748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16749 | |
| 16750 | ac_cv_type_uint64_t=no |
| 16751 | fi |
| 16752 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16753 | fi |
| 16754 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 16755 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 |
| 16756 | if test $ac_cv_type_uint64_t = yes; then |
| 16757 | : |
| 16758 | else |
| 16759 | acx_cv_header_stdint_kind="(lacks uint64_t)" |
| 16760 | fi |
| 16761 | |
| 16762 | break |
| 16763 | done |
| 16764 | if test "$acx_cv_header_stdint" = stddef.h; then |
| 16765 | acx_cv_header_stdint_kind="(lacks uintmax_t)" |
| 16766 | for i in stdint.h $inttype_headers; do |
| 16767 | unset ac_cv_type_uintptr_t |
| 16768 | unset ac_cv_type_uint32_t |
| 16769 | unset ac_cv_type_uint64_t |
| 16770 | echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6 |
| 16771 | echo "$as_me:$LINENO: checking for uint32_t" >&5 |
| 16772 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 |
| 16773 | if test "${ac_cv_type_uint32_t+set}" = set; then |
| 16774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16775 | else |
| 16776 | cat >conftest.$ac_ext <<_ACEOF |
| 16777 | /* confdefs.h. */ |
| 16778 | _ACEOF |
| 16779 | cat confdefs.h >>conftest.$ac_ext |
| 16780 | cat >>conftest.$ac_ext <<_ACEOF |
| 16781 | /* end confdefs.h. */ |
| 16782 | #include <sys/types.h> |
| 16783 | #include <$i> |
| 16784 | |
| 16785 | int |
| 16786 | main () |
| 16787 | { |
| 16788 | if ((uint32_t *) 0) |
| 16789 | return 0; |
| 16790 | if (sizeof (uint32_t)) |
| 16791 | return 0; |
| 16792 | ; |
| 16793 | return 0; |
| 16794 | } |
| 16795 | _ACEOF |
| 16796 | rm -f conftest.$ac_objext |
| 16797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16798 | (eval $ac_compile) 2>conftest.er1 |
| 16799 | ac_status=$? |
| 16800 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16801 | rm -f conftest.er1 |
| 16802 | cat conftest.err >&5 |
| 16803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16804 | (exit $ac_status); } && |
| 16805 | { ac_try='test -z "$ac_c_werror_flag" |
| 16806 | || test ! -s conftest.err' |
| 16807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16808 | (eval $ac_try) 2>&5 |
| 16809 | ac_status=$? |
| 16810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16811 | (exit $ac_status); }; } && |
| 16812 | { ac_try='test -s conftest.$ac_objext' |
| 16813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16814 | (eval $ac_try) 2>&5 |
| 16815 | ac_status=$? |
| 16816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16817 | (exit $ac_status); }; }; then |
| 16818 | ac_cv_type_uint32_t=yes |
| 16819 | else |
| 16820 | echo "$as_me: failed program was:" >&5 |
| 16821 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16822 | |
| 16823 | ac_cv_type_uint32_t=no |
| 16824 | fi |
| 16825 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16826 | fi |
| 16827 | echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 |
| 16828 | echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 |
| 16829 | if test $ac_cv_type_uint32_t = yes; then |
| 16830 | acx_cv_header_stdint=$i |
| 16831 | else |
| 16832 | continue |
| 16833 | fi |
| 16834 | |
| 16835 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 16836 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 |
| 16837 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 16838 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16839 | else |
| 16840 | cat >conftest.$ac_ext <<_ACEOF |
| 16841 | /* confdefs.h. */ |
| 16842 | _ACEOF |
| 16843 | cat confdefs.h >>conftest.$ac_ext |
| 16844 | cat >>conftest.$ac_ext <<_ACEOF |
| 16845 | /* end confdefs.h. */ |
| 16846 | #include <sys/types.h> |
| 16847 | #include <$i> |
| 16848 | |
| 16849 | int |
| 16850 | main () |
| 16851 | { |
| 16852 | if ((uint64_t *) 0) |
| 16853 | return 0; |
| 16854 | if (sizeof (uint64_t)) |
| 16855 | return 0; |
| 16856 | ; |
| 16857 | return 0; |
| 16858 | } |
| 16859 | _ACEOF |
| 16860 | rm -f conftest.$ac_objext |
| 16861 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16862 | (eval $ac_compile) 2>conftest.er1 |
| 16863 | ac_status=$? |
| 16864 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16865 | rm -f conftest.er1 |
| 16866 | cat conftest.err >&5 |
| 16867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16868 | (exit $ac_status); } && |
| 16869 | { ac_try='test -z "$ac_c_werror_flag" |
| 16870 | || test ! -s conftest.err' |
| 16871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16872 | (eval $ac_try) 2>&5 |
| 16873 | ac_status=$? |
| 16874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16875 | (exit $ac_status); }; } && |
| 16876 | { ac_try='test -s conftest.$ac_objext' |
| 16877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16878 | (eval $ac_try) 2>&5 |
| 16879 | ac_status=$? |
| 16880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16881 | (exit $ac_status); }; }; then |
| 16882 | ac_cv_type_uint64_t=yes |
| 16883 | else |
| 16884 | echo "$as_me: failed program was:" >&5 |
| 16885 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16886 | |
| 16887 | ac_cv_type_uint64_t=no |
| 16888 | fi |
| 16889 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16890 | fi |
| 16891 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 16892 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 |
| 16893 | |
| 16894 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 16895 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 16896 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 16897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16898 | else |
| 16899 | cat >conftest.$ac_ext <<_ACEOF |
| 16900 | /* confdefs.h. */ |
| 16901 | _ACEOF |
| 16902 | cat confdefs.h >>conftest.$ac_ext |
| 16903 | cat >>conftest.$ac_ext <<_ACEOF |
| 16904 | /* end confdefs.h. */ |
| 16905 | #include <sys/types.h> |
| 16906 | #include <$i> |
| 16907 | |
| 16908 | int |
| 16909 | main () |
| 16910 | { |
| 16911 | if ((uintptr_t *) 0) |
| 16912 | return 0; |
| 16913 | if (sizeof (uintptr_t)) |
| 16914 | return 0; |
| 16915 | ; |
| 16916 | return 0; |
| 16917 | } |
| 16918 | _ACEOF |
| 16919 | rm -f conftest.$ac_objext |
| 16920 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16921 | (eval $ac_compile) 2>conftest.er1 |
| 16922 | ac_status=$? |
| 16923 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16924 | rm -f conftest.er1 |
| 16925 | cat conftest.err >&5 |
| 16926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16927 | (exit $ac_status); } && |
| 16928 | { ac_try='test -z "$ac_c_werror_flag" |
| 16929 | || test ! -s conftest.err' |
| 16930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16931 | (eval $ac_try) 2>&5 |
| 16932 | ac_status=$? |
| 16933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16934 | (exit $ac_status); }; } && |
| 16935 | { ac_try='test -s conftest.$ac_objext' |
| 16936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16937 | (eval $ac_try) 2>&5 |
| 16938 | ac_status=$? |
| 16939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16940 | (exit $ac_status); }; }; then |
| 16941 | ac_cv_type_uintptr_t=yes |
| 16942 | else |
| 16943 | echo "$as_me: failed program was:" >&5 |
| 16944 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16945 | |
| 16946 | ac_cv_type_uintptr_t=no |
| 16947 | fi |
| 16948 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16949 | fi |
| 16950 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 16951 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 16952 | |
| 16953 | break |
| 16954 | done |
| 16955 | fi |
| 16956 | if test "$acx_cv_header_stdint" = stddef.h; then |
| 16957 | acx_cv_header_stdint_kind="(u_intXX_t style)" |
| 16958 | for i in sys/types.h $inttype_headers; do |
| 16959 | unset ac_cv_type_u_int32_t |
| 16960 | unset ac_cv_type_u_int64_t |
| 16961 | echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6 |
| 16962 | echo "$as_me:$LINENO: checking for u_int32_t" >&5 |
| 16963 | echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 |
| 16964 | if test "${ac_cv_type_u_int32_t+set}" = set; then |
| 16965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16966 | else |
| 16967 | cat >conftest.$ac_ext <<_ACEOF |
| 16968 | /* confdefs.h. */ |
| 16969 | _ACEOF |
| 16970 | cat confdefs.h >>conftest.$ac_ext |
| 16971 | cat >>conftest.$ac_ext <<_ACEOF |
| 16972 | /* end confdefs.h. */ |
| 16973 | #include <sys/types.h> |
| 16974 | #include <$i> |
| 16975 | |
| 16976 | int |
| 16977 | main () |
| 16978 | { |
| 16979 | if ((u_int32_t *) 0) |
| 16980 | return 0; |
| 16981 | if (sizeof (u_int32_t)) |
| 16982 | return 0; |
| 16983 | ; |
| 16984 | return 0; |
| 16985 | } |
| 16986 | _ACEOF |
| 16987 | rm -f conftest.$ac_objext |
| 16988 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16989 | (eval $ac_compile) 2>conftest.er1 |
| 16990 | ac_status=$? |
| 16991 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16992 | rm -f conftest.er1 |
| 16993 | cat conftest.err >&5 |
| 16994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16995 | (exit $ac_status); } && |
| 16996 | { ac_try='test -z "$ac_c_werror_flag" |
| 16997 | || test ! -s conftest.err' |
| 16998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16999 | (eval $ac_try) 2>&5 |
| 17000 | ac_status=$? |
| 17001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17002 | (exit $ac_status); }; } && |
| 17003 | { ac_try='test -s conftest.$ac_objext' |
| 17004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17005 | (eval $ac_try) 2>&5 |
| 17006 | ac_status=$? |
| 17007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17008 | (exit $ac_status); }; }; then |
| 17009 | ac_cv_type_u_int32_t=yes |
| 17010 | else |
| 17011 | echo "$as_me: failed program was:" >&5 |
| 17012 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17013 | |
| 17014 | ac_cv_type_u_int32_t=no |
| 17015 | fi |
| 17016 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17017 | fi |
| 17018 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 |
| 17019 | echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 |
| 17020 | if test $ac_cv_type_u_int32_t = yes; then |
| 17021 | acx_cv_header_stdint=$i |
| 17022 | else |
| 17023 | continue |
| 17024 | fi |
| 17025 | |
| 17026 | echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 17027 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 |
| 17028 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 17029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17030 | else |
| 17031 | cat >conftest.$ac_ext <<_ACEOF |
| 17032 | /* confdefs.h. */ |
| 17033 | _ACEOF |
| 17034 | cat confdefs.h >>conftest.$ac_ext |
| 17035 | cat >>conftest.$ac_ext <<_ACEOF |
| 17036 | /* end confdefs.h. */ |
| 17037 | #include <sys/types.h> |
| 17038 | #include <$i> |
| 17039 | |
| 17040 | int |
| 17041 | main () |
| 17042 | { |
| 17043 | if ((u_int64_t *) 0) |
| 17044 | return 0; |
| 17045 | if (sizeof (u_int64_t)) |
| 17046 | return 0; |
| 17047 | ; |
| 17048 | return 0; |
| 17049 | } |
| 17050 | _ACEOF |
| 17051 | rm -f conftest.$ac_objext |
| 17052 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17053 | (eval $ac_compile) 2>conftest.er1 |
| 17054 | ac_status=$? |
| 17055 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17056 | rm -f conftest.er1 |
| 17057 | cat conftest.err >&5 |
| 17058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17059 | (exit $ac_status); } && |
| 17060 | { ac_try='test -z "$ac_c_werror_flag" |
| 17061 | || test ! -s conftest.err' |
| 17062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17063 | (eval $ac_try) 2>&5 |
| 17064 | ac_status=$? |
| 17065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17066 | (exit $ac_status); }; } && |
| 17067 | { ac_try='test -s conftest.$ac_objext' |
| 17068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17069 | (eval $ac_try) 2>&5 |
| 17070 | ac_status=$? |
| 17071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17072 | (exit $ac_status); }; }; then |
| 17073 | ac_cv_type_u_int64_t=yes |
| 17074 | else |
| 17075 | echo "$as_me: failed program was:" >&5 |
| 17076 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17077 | |
| 17078 | ac_cv_type_u_int64_t=no |
| 17079 | fi |
| 17080 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17081 | fi |
| 17082 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 17083 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 |
| 17084 | |
| 17085 | break |
| 17086 | done |
| 17087 | fi |
| 17088 | if test "$acx_cv_header_stdint" = stddef.h; then |
| 17089 | acx_cv_header_stdint_kind="(using manual detection)" |
| 17090 | fi |
| 17091 | |
| 17092 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no |
| 17093 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no |
| 17094 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no |
| 17095 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no |
| 17096 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no |
| 17097 | |
| 17098 | # ----------------- Summarize what we found so far |
| 17099 | |
| 17100 | echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5 |
| 17101 | echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6 |
| 17102 | |
| 17103 | case `$as_basename gdb_stdint.h || |
| 17104 | $as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \ |
| 17105 | Xgdb_stdint.h : 'X\(//\)$' \| \ |
| 17106 | Xgdb_stdint.h : 'X\(/\)$' \| \ |
| 17107 | . : '\(.\)' 2>/dev/null || |
| 17108 | echo X/gdb_stdint.h | |
| 17109 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 17110 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 17111 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 17112 | s/.*/./; q'` in |
| 17113 | stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 |
| 17114 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; |
| 17115 | inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 |
| 17116 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; |
| 17117 | *) ;; |
| 17118 | esac |
| 17119 | |
| 17120 | echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 |
| 17121 | echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6 |
| 17122 | |
| 17123 | # ----------------- done included file, check C basic types -------- |
| 17124 | |
| 17125 | # Lacking an uintptr_t? Test size of void * |
| 17126 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in |
| 17127 | stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5 |
| 17128 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 17129 | if test "${ac_cv_type_void_p+set}" = set; then |
| 17130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17131 | else |
| 17132 | cat >conftest.$ac_ext <<_ACEOF |
| 17133 | /* confdefs.h. */ |
| 17134 | _ACEOF |
| 17135 | cat confdefs.h >>conftest.$ac_ext |
| 17136 | cat >>conftest.$ac_ext <<_ACEOF |
| 17137 | /* end confdefs.h. */ |
| 17138 | $ac_includes_default |
| 17139 | int |
| 17140 | main () |
| 17141 | { |
| 17142 | if ((void * *) 0) |
| 17143 | return 0; |
| 17144 | if (sizeof (void *)) |
| 17145 | return 0; |
| 17146 | ; |
| 17147 | return 0; |
| 17148 | } |
| 17149 | _ACEOF |
| 17150 | rm -f conftest.$ac_objext |
| 17151 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17152 | (eval $ac_compile) 2>conftest.er1 |
| 17153 | ac_status=$? |
| 17154 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17155 | rm -f conftest.er1 |
| 17156 | cat conftest.err >&5 |
| 17157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17158 | (exit $ac_status); } && |
| 17159 | { ac_try='test -z "$ac_c_werror_flag" |
| 17160 | || test ! -s conftest.err' |
| 17161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17162 | (eval $ac_try) 2>&5 |
| 17163 | ac_status=$? |
| 17164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17165 | (exit $ac_status); }; } && |
| 17166 | { ac_try='test -s conftest.$ac_objext' |
| 17167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17168 | (eval $ac_try) 2>&5 |
| 17169 | ac_status=$? |
| 17170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17171 | (exit $ac_status); }; }; then |
| 17172 | ac_cv_type_void_p=yes |
| 17173 | else |
| 17174 | echo "$as_me: failed program was:" >&5 |
| 17175 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17176 | |
| 17177 | ac_cv_type_void_p=no |
| 17178 | fi |
| 17179 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17180 | fi |
| 17181 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 17182 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 17183 | |
| 17184 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 17185 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 17186 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 17187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17188 | else |
| 17189 | if test "$ac_cv_type_void_p" = yes; then |
| 17190 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 17191 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 17192 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 17193 | # This bug is HP SR number 8606223364. |
| 17194 | if test "$cross_compiling" = yes; then |
| 17195 | # Depending upon the size, compute the lo and hi bounds. |
| 17196 | cat >conftest.$ac_ext <<_ACEOF |
| 17197 | /* confdefs.h. */ |
| 17198 | _ACEOF |
| 17199 | cat confdefs.h >>conftest.$ac_ext |
| 17200 | cat >>conftest.$ac_ext <<_ACEOF |
| 17201 | /* end confdefs.h. */ |
| 17202 | $ac_includes_default |
| 17203 | int |
| 17204 | main () |
| 17205 | { |
| 17206 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 17207 | test_array [0] = 0 |
| 17208 | |
| 17209 | ; |
| 17210 | return 0; |
| 17211 | } |
| 17212 | _ACEOF |
| 17213 | rm -f conftest.$ac_objext |
| 17214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17215 | (eval $ac_compile) 2>conftest.er1 |
| 17216 | ac_status=$? |
| 17217 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17218 | rm -f conftest.er1 |
| 17219 | cat conftest.err >&5 |
| 17220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17221 | (exit $ac_status); } && |
| 17222 | { ac_try='test -z "$ac_c_werror_flag" |
| 17223 | || test ! -s conftest.err' |
| 17224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17225 | (eval $ac_try) 2>&5 |
| 17226 | ac_status=$? |
| 17227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17228 | (exit $ac_status); }; } && |
| 17229 | { ac_try='test -s conftest.$ac_objext' |
| 17230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17231 | (eval $ac_try) 2>&5 |
| 17232 | ac_status=$? |
| 17233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17234 | (exit $ac_status); }; }; then |
| 17235 | ac_lo=0 ac_mid=0 |
| 17236 | while :; do |
| 17237 | cat >conftest.$ac_ext <<_ACEOF |
| 17238 | /* confdefs.h. */ |
| 17239 | _ACEOF |
| 17240 | cat confdefs.h >>conftest.$ac_ext |
| 17241 | cat >>conftest.$ac_ext <<_ACEOF |
| 17242 | /* end confdefs.h. */ |
| 17243 | $ac_includes_default |
| 17244 | int |
| 17245 | main () |
| 17246 | { |
| 17247 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 17248 | test_array [0] = 0 |
| 17249 | |
| 17250 | ; |
| 17251 | return 0; |
| 17252 | } |
| 17253 | _ACEOF |
| 17254 | rm -f conftest.$ac_objext |
| 17255 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17256 | (eval $ac_compile) 2>conftest.er1 |
| 17257 | ac_status=$? |
| 17258 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17259 | rm -f conftest.er1 |
| 17260 | cat conftest.err >&5 |
| 17261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17262 | (exit $ac_status); } && |
| 17263 | { ac_try='test -z "$ac_c_werror_flag" |
| 17264 | || test ! -s conftest.err' |
| 17265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17266 | (eval $ac_try) 2>&5 |
| 17267 | ac_status=$? |
| 17268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17269 | (exit $ac_status); }; } && |
| 17270 | { ac_try='test -s conftest.$ac_objext' |
| 17271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17272 | (eval $ac_try) 2>&5 |
| 17273 | ac_status=$? |
| 17274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17275 | (exit $ac_status); }; }; then |
| 17276 | ac_hi=$ac_mid; break |
| 17277 | else |
| 17278 | echo "$as_me: failed program was:" >&5 |
| 17279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17280 | |
| 17281 | ac_lo=`expr $ac_mid + 1` |
| 17282 | if test $ac_lo -le $ac_mid; then |
| 17283 | ac_lo= ac_hi= |
| 17284 | break |
| 17285 | fi |
| 17286 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 17287 | fi |
| 17288 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17289 | done |
| 17290 | else |
| 17291 | echo "$as_me: failed program was:" >&5 |
| 17292 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17293 | |
| 17294 | cat >conftest.$ac_ext <<_ACEOF |
| 17295 | /* confdefs.h. */ |
| 17296 | _ACEOF |
| 17297 | cat confdefs.h >>conftest.$ac_ext |
| 17298 | cat >>conftest.$ac_ext <<_ACEOF |
| 17299 | /* end confdefs.h. */ |
| 17300 | $ac_includes_default |
| 17301 | int |
| 17302 | main () |
| 17303 | { |
| 17304 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 17305 | test_array [0] = 0 |
| 17306 | |
| 17307 | ; |
| 17308 | return 0; |
| 17309 | } |
| 17310 | _ACEOF |
| 17311 | rm -f conftest.$ac_objext |
| 17312 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17313 | (eval $ac_compile) 2>conftest.er1 |
| 17314 | ac_status=$? |
| 17315 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17316 | rm -f conftest.er1 |
| 17317 | cat conftest.err >&5 |
| 17318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17319 | (exit $ac_status); } && |
| 17320 | { ac_try='test -z "$ac_c_werror_flag" |
| 17321 | || test ! -s conftest.err' |
| 17322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17323 | (eval $ac_try) 2>&5 |
| 17324 | ac_status=$? |
| 17325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17326 | (exit $ac_status); }; } && |
| 17327 | { ac_try='test -s conftest.$ac_objext' |
| 17328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17329 | (eval $ac_try) 2>&5 |
| 17330 | ac_status=$? |
| 17331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17332 | (exit $ac_status); }; }; then |
| 17333 | ac_hi=-1 ac_mid=-1 |
| 17334 | while :; do |
| 17335 | cat >conftest.$ac_ext <<_ACEOF |
| 17336 | /* confdefs.h. */ |
| 17337 | _ACEOF |
| 17338 | cat confdefs.h >>conftest.$ac_ext |
| 17339 | cat >>conftest.$ac_ext <<_ACEOF |
| 17340 | /* end confdefs.h. */ |
| 17341 | $ac_includes_default |
| 17342 | int |
| 17343 | main () |
| 17344 | { |
| 17345 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 17346 | test_array [0] = 0 |
| 17347 | |
| 17348 | ; |
| 17349 | return 0; |
| 17350 | } |
| 17351 | _ACEOF |
| 17352 | rm -f conftest.$ac_objext |
| 17353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17354 | (eval $ac_compile) 2>conftest.er1 |
| 17355 | ac_status=$? |
| 17356 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17357 | rm -f conftest.er1 |
| 17358 | cat conftest.err >&5 |
| 17359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17360 | (exit $ac_status); } && |
| 17361 | { ac_try='test -z "$ac_c_werror_flag" |
| 17362 | || test ! -s conftest.err' |
| 17363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17364 | (eval $ac_try) 2>&5 |
| 17365 | ac_status=$? |
| 17366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17367 | (exit $ac_status); }; } && |
| 17368 | { ac_try='test -s conftest.$ac_objext' |
| 17369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17370 | (eval $ac_try) 2>&5 |
| 17371 | ac_status=$? |
| 17372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17373 | (exit $ac_status); }; }; then |
| 17374 | ac_lo=$ac_mid; break |
| 17375 | else |
| 17376 | echo "$as_me: failed program was:" >&5 |
| 17377 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17378 | |
| 17379 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 17380 | if test $ac_mid -le $ac_hi; then |
| 17381 | ac_lo= ac_hi= |
| 17382 | break |
| 17383 | fi |
| 17384 | ac_mid=`expr 2 '*' $ac_mid` |
| 17385 | fi |
| 17386 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17387 | done |
| 17388 | else |
| 17389 | echo "$as_me: failed program was:" >&5 |
| 17390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17391 | |
| 17392 | ac_lo= ac_hi= |
| 17393 | fi |
| 17394 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17395 | fi |
| 17396 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17397 | # Binary search between lo and hi bounds. |
| 17398 | while test "x$ac_lo" != "x$ac_hi"; do |
| 17399 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 17400 | cat >conftest.$ac_ext <<_ACEOF |
| 17401 | /* confdefs.h. */ |
| 17402 | _ACEOF |
| 17403 | cat confdefs.h >>conftest.$ac_ext |
| 17404 | cat >>conftest.$ac_ext <<_ACEOF |
| 17405 | /* end confdefs.h. */ |
| 17406 | $ac_includes_default |
| 17407 | int |
| 17408 | main () |
| 17409 | { |
| 17410 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 17411 | test_array [0] = 0 |
| 17412 | |
| 17413 | ; |
| 17414 | return 0; |
| 17415 | } |
| 17416 | _ACEOF |
| 17417 | rm -f conftest.$ac_objext |
| 17418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17419 | (eval $ac_compile) 2>conftest.er1 |
| 17420 | ac_status=$? |
| 17421 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17422 | rm -f conftest.er1 |
| 17423 | cat conftest.err >&5 |
| 17424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17425 | (exit $ac_status); } && |
| 17426 | { ac_try='test -z "$ac_c_werror_flag" |
| 17427 | || test ! -s conftest.err' |
| 17428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17429 | (eval $ac_try) 2>&5 |
| 17430 | ac_status=$? |
| 17431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17432 | (exit $ac_status); }; } && |
| 17433 | { ac_try='test -s conftest.$ac_objext' |
| 17434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17435 | (eval $ac_try) 2>&5 |
| 17436 | ac_status=$? |
| 17437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17438 | (exit $ac_status); }; }; then |
| 17439 | ac_hi=$ac_mid |
| 17440 | else |
| 17441 | echo "$as_me: failed program was:" >&5 |
| 17442 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17443 | |
| 17444 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 17445 | fi |
| 17446 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17447 | done |
| 17448 | case $ac_lo in |
| 17449 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
| 17450 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 17451 | See \`config.log' for more details." >&5 |
| 17452 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 17453 | See \`config.log' for more details." >&2;} |
| 17454 | { (exit 1); exit 1; }; } ;; |
| 17455 | esac |
| 17456 | else |
| 17457 | if test "$cross_compiling" = yes; then |
| 17458 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 17459 | See \`config.log' for more details." >&5 |
| 17460 | echo "$as_me: error: cannot run test program while cross compiling |
| 17461 | See \`config.log' for more details." >&2;} |
| 17462 | { (exit 1); exit 1; }; } |
| 17463 | else |
| 17464 | cat >conftest.$ac_ext <<_ACEOF |
| 17465 | /* confdefs.h. */ |
| 17466 | _ACEOF |
| 17467 | cat confdefs.h >>conftest.$ac_ext |
| 17468 | cat >>conftest.$ac_ext <<_ACEOF |
| 17469 | /* end confdefs.h. */ |
| 17470 | $ac_includes_default |
| 17471 | long longval () { return (long) (sizeof (void *)); } |
| 17472 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
| 17473 | #include <stdio.h> |
| 17474 | #include <stdlib.h> |
| 17475 | int |
| 17476 | main () |
| 17477 | { |
| 17478 | |
| 17479 | FILE *f = fopen ("conftest.val", "w"); |
| 17480 | if (! f) |
| 17481 | exit (1); |
| 17482 | if (((long) (sizeof (void *))) < 0) |
| 17483 | { |
| 17484 | long i = longval (); |
| 17485 | if (i != ((long) (sizeof (void *)))) |
| 17486 | exit (1); |
| 17487 | fprintf (f, "%ld\n", i); |
| 17488 | } |
| 17489 | else |
| 17490 | { |
| 17491 | unsigned long i = ulongval (); |
| 17492 | if (i != ((long) (sizeof (void *)))) |
| 17493 | exit (1); |
| 17494 | fprintf (f, "%lu\n", i); |
| 17495 | } |
| 17496 | exit (ferror (f) || fclose (f) != 0); |
| 17497 | |
| 17498 | ; |
| 17499 | return 0; |
| 17500 | } |
| 17501 | _ACEOF |
| 17502 | rm -f conftest$ac_exeext |
| 17503 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17504 | (eval $ac_link) 2>&5 |
| 17505 | ac_status=$? |
| 17506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17507 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17509 | (eval $ac_try) 2>&5 |
| 17510 | ac_status=$? |
| 17511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17512 | (exit $ac_status); }; }; then |
| 17513 | ac_cv_sizeof_void_p=`cat conftest.val` |
| 17514 | else |
| 17515 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17516 | echo "$as_me: failed program was:" >&5 |
| 17517 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17518 | |
| 17519 | ( exit $ac_status ) |
| 17520 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 17521 | See \`config.log' for more details." >&5 |
| 17522 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 17523 | See \`config.log' for more details." >&2;} |
| 17524 | { (exit 1); exit 1; }; } |
| 17525 | fi |
| 17526 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 17527 | fi |
| 17528 | fi |
| 17529 | rm -f conftest.val |
| 17530 | else |
| 17531 | ac_cv_sizeof_void_p=0 |
| 17532 | fi |
| 17533 | fi |
| 17534 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 17535 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 17536 | cat >>confdefs.h <<_ACEOF |
| 17537 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
| 17538 | _ACEOF |
| 17539 | |
| 17540 | ;; |
| 17541 | esac |
| 17542 | |
| 17543 | # Lacking an uint64_t? Test size of long |
| 17544 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in |
| 17545 | stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5 |
| 17546 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 17547 | if test "${ac_cv_type_long+set}" = set; then |
| 17548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17549 | else |
| 17550 | cat >conftest.$ac_ext <<_ACEOF |
| 17551 | /* confdefs.h. */ |
| 17552 | _ACEOF |
| 17553 | cat confdefs.h >>conftest.$ac_ext |
| 17554 | cat >>conftest.$ac_ext <<_ACEOF |
| 17555 | /* end confdefs.h. */ |
| 17556 | $ac_includes_default |
| 17557 | int |
| 17558 | main () |
| 17559 | { |
| 17560 | if ((long *) 0) |
| 17561 | return 0; |
| 17562 | if (sizeof (long)) |
| 17563 | return 0; |
| 17564 | ; |
| 17565 | return 0; |
| 17566 | } |
| 17567 | _ACEOF |
| 17568 | rm -f conftest.$ac_objext |
| 17569 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17570 | (eval $ac_compile) 2>conftest.er1 |
| 17571 | ac_status=$? |
| 17572 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17573 | rm -f conftest.er1 |
| 17574 | cat conftest.err >&5 |
| 17575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17576 | (exit $ac_status); } && |
| 17577 | { ac_try='test -z "$ac_c_werror_flag" |
| 17578 | || test ! -s conftest.err' |
| 17579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17580 | (eval $ac_try) 2>&5 |
| 17581 | ac_status=$? |
| 17582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17583 | (exit $ac_status); }; } && |
| 17584 | { ac_try='test -s conftest.$ac_objext' |
| 17585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17586 | (eval $ac_try) 2>&5 |
| 17587 | ac_status=$? |
| 17588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17589 | (exit $ac_status); }; }; then |
| 17590 | ac_cv_type_long=yes |
| 17591 | else |
| 17592 | echo "$as_me: failed program was:" >&5 |
| 17593 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17594 | |
| 17595 | ac_cv_type_long=no |
| 17596 | fi |
| 17597 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17598 | fi |
| 17599 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 17600 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 17601 | |
| 17602 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 17603 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 17604 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 17605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17606 | else |
| 17607 | if test "$ac_cv_type_long" = yes; then |
| 17608 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 17609 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 17610 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 17611 | # This bug is HP SR number 8606223364. |
| 17612 | if test "$cross_compiling" = yes; then |
| 17613 | # Depending upon the size, compute the lo and hi bounds. |
| 17614 | cat >conftest.$ac_ext <<_ACEOF |
| 17615 | /* confdefs.h. */ |
| 17616 | _ACEOF |
| 17617 | cat confdefs.h >>conftest.$ac_ext |
| 17618 | cat >>conftest.$ac_ext <<_ACEOF |
| 17619 | /* end confdefs.h. */ |
| 17620 | $ac_includes_default |
| 17621 | int |
| 17622 | main () |
| 17623 | { |
| 17624 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 17625 | test_array [0] = 0 |
| 17626 | |
| 17627 | ; |
| 17628 | return 0; |
| 17629 | } |
| 17630 | _ACEOF |
| 17631 | rm -f conftest.$ac_objext |
| 17632 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17633 | (eval $ac_compile) 2>conftest.er1 |
| 17634 | ac_status=$? |
| 17635 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17636 | rm -f conftest.er1 |
| 17637 | cat conftest.err >&5 |
| 17638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17639 | (exit $ac_status); } && |
| 17640 | { ac_try='test -z "$ac_c_werror_flag" |
| 17641 | || test ! -s conftest.err' |
| 17642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17643 | (eval $ac_try) 2>&5 |
| 17644 | ac_status=$? |
| 17645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17646 | (exit $ac_status); }; } && |
| 17647 | { ac_try='test -s conftest.$ac_objext' |
| 17648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17649 | (eval $ac_try) 2>&5 |
| 17650 | ac_status=$? |
| 17651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17652 | (exit $ac_status); }; }; then |
| 17653 | ac_lo=0 ac_mid=0 |
| 17654 | while :; do |
| 17655 | cat >conftest.$ac_ext <<_ACEOF |
| 17656 | /* confdefs.h. */ |
| 17657 | _ACEOF |
| 17658 | cat confdefs.h >>conftest.$ac_ext |
| 17659 | cat >>conftest.$ac_ext <<_ACEOF |
| 17660 | /* end confdefs.h. */ |
| 17661 | $ac_includes_default |
| 17662 | int |
| 17663 | main () |
| 17664 | { |
| 17665 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 17666 | test_array [0] = 0 |
| 17667 | |
| 17668 | ; |
| 17669 | return 0; |
| 17670 | } |
| 17671 | _ACEOF |
| 17672 | rm -f conftest.$ac_objext |
| 17673 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17674 | (eval $ac_compile) 2>conftest.er1 |
| 17675 | ac_status=$? |
| 17676 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17677 | rm -f conftest.er1 |
| 17678 | cat conftest.err >&5 |
| 17679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17680 | (exit $ac_status); } && |
| 17681 | { ac_try='test -z "$ac_c_werror_flag" |
| 17682 | || test ! -s conftest.err' |
| 17683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17684 | (eval $ac_try) 2>&5 |
| 17685 | ac_status=$? |
| 17686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17687 | (exit $ac_status); }; } && |
| 17688 | { ac_try='test -s conftest.$ac_objext' |
| 17689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17690 | (eval $ac_try) 2>&5 |
| 17691 | ac_status=$? |
| 17692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17693 | (exit $ac_status); }; }; then |
| 17694 | ac_hi=$ac_mid; break |
| 17695 | else |
| 17696 | echo "$as_me: failed program was:" >&5 |
| 17697 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17698 | |
| 17699 | ac_lo=`expr $ac_mid + 1` |
| 17700 | if test $ac_lo -le $ac_mid; then |
| 17701 | ac_lo= ac_hi= |
| 17702 | break |
| 17703 | fi |
| 17704 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 17705 | fi |
| 17706 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17707 | done |
| 17708 | else |
| 17709 | echo "$as_me: failed program was:" >&5 |
| 17710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17711 | |
| 17712 | cat >conftest.$ac_ext <<_ACEOF |
| 17713 | /* confdefs.h. */ |
| 17714 | _ACEOF |
| 17715 | cat confdefs.h >>conftest.$ac_ext |
| 17716 | cat >>conftest.$ac_ext <<_ACEOF |
| 17717 | /* end confdefs.h. */ |
| 17718 | $ac_includes_default |
| 17719 | int |
| 17720 | main () |
| 17721 | { |
| 17722 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 17723 | test_array [0] = 0 |
| 17724 | |
| 17725 | ; |
| 17726 | return 0; |
| 17727 | } |
| 17728 | _ACEOF |
| 17729 | rm -f conftest.$ac_objext |
| 17730 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17731 | (eval $ac_compile) 2>conftest.er1 |
| 17732 | ac_status=$? |
| 17733 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17734 | rm -f conftest.er1 |
| 17735 | cat conftest.err >&5 |
| 17736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17737 | (exit $ac_status); } && |
| 17738 | { ac_try='test -z "$ac_c_werror_flag" |
| 17739 | || test ! -s conftest.err' |
| 17740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17741 | (eval $ac_try) 2>&5 |
| 17742 | ac_status=$? |
| 17743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17744 | (exit $ac_status); }; } && |
| 17745 | { ac_try='test -s conftest.$ac_objext' |
| 17746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17747 | (eval $ac_try) 2>&5 |
| 17748 | ac_status=$? |
| 17749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17750 | (exit $ac_status); }; }; then |
| 17751 | ac_hi=-1 ac_mid=-1 |
| 17752 | while :; do |
| 17753 | cat >conftest.$ac_ext <<_ACEOF |
| 17754 | /* confdefs.h. */ |
| 17755 | _ACEOF |
| 17756 | cat confdefs.h >>conftest.$ac_ext |
| 17757 | cat >>conftest.$ac_ext <<_ACEOF |
| 17758 | /* end confdefs.h. */ |
| 17759 | $ac_includes_default |
| 17760 | int |
| 17761 | main () |
| 17762 | { |
| 17763 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 17764 | test_array [0] = 0 |
| 17765 | |
| 17766 | ; |
| 17767 | return 0; |
| 17768 | } |
| 17769 | _ACEOF |
| 17770 | rm -f conftest.$ac_objext |
| 17771 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17772 | (eval $ac_compile) 2>conftest.er1 |
| 17773 | ac_status=$? |
| 17774 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17775 | rm -f conftest.er1 |
| 17776 | cat conftest.err >&5 |
| 17777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17778 | (exit $ac_status); } && |
| 17779 | { ac_try='test -z "$ac_c_werror_flag" |
| 17780 | || test ! -s conftest.err' |
| 17781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17782 | (eval $ac_try) 2>&5 |
| 17783 | ac_status=$? |
| 17784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17785 | (exit $ac_status); }; } && |
| 17786 | { ac_try='test -s conftest.$ac_objext' |
| 17787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17788 | (eval $ac_try) 2>&5 |
| 17789 | ac_status=$? |
| 17790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17791 | (exit $ac_status); }; }; then |
| 17792 | ac_lo=$ac_mid; break |
| 17793 | else |
| 17794 | echo "$as_me: failed program was:" >&5 |
| 17795 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17796 | |
| 17797 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 17798 | if test $ac_mid -le $ac_hi; then |
| 17799 | ac_lo= ac_hi= |
| 17800 | break |
| 17801 | fi |
| 17802 | ac_mid=`expr 2 '*' $ac_mid` |
| 17803 | fi |
| 17804 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17805 | done |
| 17806 | else |
| 17807 | echo "$as_me: failed program was:" >&5 |
| 17808 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17809 | |
| 17810 | ac_lo= ac_hi= |
| 17811 | fi |
| 17812 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17813 | fi |
| 17814 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17815 | # Binary search between lo and hi bounds. |
| 17816 | while test "x$ac_lo" != "x$ac_hi"; do |
| 17817 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 17818 | cat >conftest.$ac_ext <<_ACEOF |
| 17819 | /* confdefs.h. */ |
| 17820 | _ACEOF |
| 17821 | cat confdefs.h >>conftest.$ac_ext |
| 17822 | cat >>conftest.$ac_ext <<_ACEOF |
| 17823 | /* end confdefs.h. */ |
| 17824 | $ac_includes_default |
| 17825 | int |
| 17826 | main () |
| 17827 | { |
| 17828 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 17829 | test_array [0] = 0 |
| 17830 | |
| 17831 | ; |
| 17832 | return 0; |
| 17833 | } |
| 17834 | _ACEOF |
| 17835 | rm -f conftest.$ac_objext |
| 17836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17837 | (eval $ac_compile) 2>conftest.er1 |
| 17838 | ac_status=$? |
| 17839 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17840 | rm -f conftest.er1 |
| 17841 | cat conftest.err >&5 |
| 17842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17843 | (exit $ac_status); } && |
| 17844 | { ac_try='test -z "$ac_c_werror_flag" |
| 17845 | || test ! -s conftest.err' |
| 17846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17847 | (eval $ac_try) 2>&5 |
| 17848 | ac_status=$? |
| 17849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17850 | (exit $ac_status); }; } && |
| 17851 | { ac_try='test -s conftest.$ac_objext' |
| 17852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17853 | (eval $ac_try) 2>&5 |
| 17854 | ac_status=$? |
| 17855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17856 | (exit $ac_status); }; }; then |
| 17857 | ac_hi=$ac_mid |
| 17858 | else |
| 17859 | echo "$as_me: failed program was:" >&5 |
| 17860 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17861 | |
| 17862 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 17863 | fi |
| 17864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17865 | done |
| 17866 | case $ac_lo in |
| 17867 | ?*) ac_cv_sizeof_long=$ac_lo;; |
| 17868 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 17869 | See \`config.log' for more details." >&5 |
| 17870 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 17871 | See \`config.log' for more details." >&2;} |
| 17872 | { (exit 1); exit 1; }; } ;; |
| 17873 | esac |
| 17874 | else |
| 17875 | if test "$cross_compiling" = yes; then |
| 17876 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 17877 | See \`config.log' for more details." >&5 |
| 17878 | echo "$as_me: error: cannot run test program while cross compiling |
| 17879 | See \`config.log' for more details." >&2;} |
| 17880 | { (exit 1); exit 1; }; } |
| 17881 | else |
| 17882 | cat >conftest.$ac_ext <<_ACEOF |
| 17883 | /* confdefs.h. */ |
| 17884 | _ACEOF |
| 17885 | cat confdefs.h >>conftest.$ac_ext |
| 17886 | cat >>conftest.$ac_ext <<_ACEOF |
| 17887 | /* end confdefs.h. */ |
| 17888 | $ac_includes_default |
| 17889 | long longval () { return (long) (sizeof (long)); } |
| 17890 | unsigned long ulongval () { return (long) (sizeof (long)); } |
| 17891 | #include <stdio.h> |
| 17892 | #include <stdlib.h> |
| 17893 | int |
| 17894 | main () |
| 17895 | { |
| 17896 | |
| 17897 | FILE *f = fopen ("conftest.val", "w"); |
| 17898 | if (! f) |
| 17899 | exit (1); |
| 17900 | if (((long) (sizeof (long))) < 0) |
| 17901 | { |
| 17902 | long i = longval (); |
| 17903 | if (i != ((long) (sizeof (long)))) |
| 17904 | exit (1); |
| 17905 | fprintf (f, "%ld\n", i); |
| 17906 | } |
| 17907 | else |
| 17908 | { |
| 17909 | unsigned long i = ulongval (); |
| 17910 | if (i != ((long) (sizeof (long)))) |
| 17911 | exit (1); |
| 17912 | fprintf (f, "%lu\n", i); |
| 17913 | } |
| 17914 | exit (ferror (f) || fclose (f) != 0); |
| 17915 | |
| 17916 | ; |
| 17917 | return 0; |
| 17918 | } |
| 17919 | _ACEOF |
| 17920 | rm -f conftest$ac_exeext |
| 17921 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17922 | (eval $ac_link) 2>&5 |
| 17923 | ac_status=$? |
| 17924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17925 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17927 | (eval $ac_try) 2>&5 |
| 17928 | ac_status=$? |
| 17929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17930 | (exit $ac_status); }; }; then |
| 17931 | ac_cv_sizeof_long=`cat conftest.val` |
| 17932 | else |
| 17933 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17934 | echo "$as_me: failed program was:" >&5 |
| 17935 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17936 | |
| 17937 | ( exit $ac_status ) |
| 17938 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 17939 | See \`config.log' for more details." >&5 |
| 17940 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 17941 | See \`config.log' for more details." >&2;} |
| 17942 | { (exit 1); exit 1; }; } |
| 17943 | fi |
| 17944 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 17945 | fi |
| 17946 | fi |
| 17947 | rm -f conftest.val |
| 17948 | else |
| 17949 | ac_cv_sizeof_long=0 |
| 17950 | fi |
| 17951 | fi |
| 17952 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 17953 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 17954 | cat >>confdefs.h <<_ACEOF |
| 17955 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 17956 | _ACEOF |
| 17957 | |
| 17958 | ;; |
| 17959 | esac |
| 17960 | |
| 17961 | if test $acx_cv_header_stdint = stddef.h; then |
| 17962 | # Lacking a good header? Test size of everything and deduce all types. |
| 17963 | echo "$as_me:$LINENO: checking for int" >&5 |
| 17964 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 17965 | if test "${ac_cv_type_int+set}" = set; then |
| 17966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17967 | else |
| 17968 | cat >conftest.$ac_ext <<_ACEOF |
| 17969 | /* confdefs.h. */ |
| 17970 | _ACEOF |
| 17971 | cat confdefs.h >>conftest.$ac_ext |
| 17972 | cat >>conftest.$ac_ext <<_ACEOF |
| 17973 | /* end confdefs.h. */ |
| 17974 | $ac_includes_default |
| 17975 | int |
| 17976 | main () |
| 17977 | { |
| 17978 | if ((int *) 0) |
| 17979 | return 0; |
| 17980 | if (sizeof (int)) |
| 17981 | return 0; |
| 17982 | ; |
| 17983 | return 0; |
| 17984 | } |
| 17985 | _ACEOF |
| 17986 | rm -f conftest.$ac_objext |
| 17987 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17988 | (eval $ac_compile) 2>conftest.er1 |
| 17989 | ac_status=$? |
| 17990 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17991 | rm -f conftest.er1 |
| 17992 | cat conftest.err >&5 |
| 17993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17994 | (exit $ac_status); } && |
| 17995 | { ac_try='test -z "$ac_c_werror_flag" |
| 17996 | || test ! -s conftest.err' |
| 17997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17998 | (eval $ac_try) 2>&5 |
| 17999 | ac_status=$? |
| 18000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18001 | (exit $ac_status); }; } && |
| 18002 | { ac_try='test -s conftest.$ac_objext' |
| 18003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18004 | (eval $ac_try) 2>&5 |
| 18005 | ac_status=$? |
| 18006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18007 | (exit $ac_status); }; }; then |
| 18008 | ac_cv_type_int=yes |
| 18009 | else |
| 18010 | echo "$as_me: failed program was:" >&5 |
| 18011 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18012 | |
| 18013 | ac_cv_type_int=no |
| 18014 | fi |
| 18015 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18016 | fi |
| 18017 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 18018 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 18019 | |
| 18020 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 18021 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 18022 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 18023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18024 | else |
| 18025 | if test "$ac_cv_type_int" = yes; then |
| 18026 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 18027 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 18028 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 18029 | # This bug is HP SR number 8606223364. |
| 18030 | if test "$cross_compiling" = yes; then |
| 18031 | # Depending upon the size, compute the lo and hi bounds. |
| 18032 | cat >conftest.$ac_ext <<_ACEOF |
| 18033 | /* confdefs.h. */ |
| 18034 | _ACEOF |
| 18035 | cat confdefs.h >>conftest.$ac_ext |
| 18036 | cat >>conftest.$ac_ext <<_ACEOF |
| 18037 | /* end confdefs.h. */ |
| 18038 | $ac_includes_default |
| 18039 | int |
| 18040 | main () |
| 18041 | { |
| 18042 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 18043 | test_array [0] = 0 |
| 18044 | |
| 18045 | ; |
| 18046 | return 0; |
| 18047 | } |
| 18048 | _ACEOF |
| 18049 | rm -f conftest.$ac_objext |
| 18050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18051 | (eval $ac_compile) 2>conftest.er1 |
| 18052 | ac_status=$? |
| 18053 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18054 | rm -f conftest.er1 |
| 18055 | cat conftest.err >&5 |
| 18056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18057 | (exit $ac_status); } && |
| 18058 | { ac_try='test -z "$ac_c_werror_flag" |
| 18059 | || test ! -s conftest.err' |
| 18060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18061 | (eval $ac_try) 2>&5 |
| 18062 | ac_status=$? |
| 18063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18064 | (exit $ac_status); }; } && |
| 18065 | { ac_try='test -s conftest.$ac_objext' |
| 18066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18067 | (eval $ac_try) 2>&5 |
| 18068 | ac_status=$? |
| 18069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18070 | (exit $ac_status); }; }; then |
| 18071 | ac_lo=0 ac_mid=0 |
| 18072 | while :; do |
| 18073 | cat >conftest.$ac_ext <<_ACEOF |
| 18074 | /* confdefs.h. */ |
| 18075 | _ACEOF |
| 18076 | cat confdefs.h >>conftest.$ac_ext |
| 18077 | cat >>conftest.$ac_ext <<_ACEOF |
| 18078 | /* end confdefs.h. */ |
| 18079 | $ac_includes_default |
| 18080 | int |
| 18081 | main () |
| 18082 | { |
| 18083 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 18084 | test_array [0] = 0 |
| 18085 | |
| 18086 | ; |
| 18087 | return 0; |
| 18088 | } |
| 18089 | _ACEOF |
| 18090 | rm -f conftest.$ac_objext |
| 18091 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18092 | (eval $ac_compile) 2>conftest.er1 |
| 18093 | ac_status=$? |
| 18094 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18095 | rm -f conftest.er1 |
| 18096 | cat conftest.err >&5 |
| 18097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18098 | (exit $ac_status); } && |
| 18099 | { ac_try='test -z "$ac_c_werror_flag" |
| 18100 | || test ! -s conftest.err' |
| 18101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18102 | (eval $ac_try) 2>&5 |
| 18103 | ac_status=$? |
| 18104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18105 | (exit $ac_status); }; } && |
| 18106 | { ac_try='test -s conftest.$ac_objext' |
| 18107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18108 | (eval $ac_try) 2>&5 |
| 18109 | ac_status=$? |
| 18110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18111 | (exit $ac_status); }; }; then |
| 18112 | ac_hi=$ac_mid; break |
| 18113 | else |
| 18114 | echo "$as_me: failed program was:" >&5 |
| 18115 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18116 | |
| 18117 | ac_lo=`expr $ac_mid + 1` |
| 18118 | if test $ac_lo -le $ac_mid; then |
| 18119 | ac_lo= ac_hi= |
| 18120 | break |
| 18121 | fi |
| 18122 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 18123 | fi |
| 18124 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18125 | done |
| 18126 | else |
| 18127 | echo "$as_me: failed program was:" >&5 |
| 18128 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18129 | |
| 18130 | cat >conftest.$ac_ext <<_ACEOF |
| 18131 | /* confdefs.h. */ |
| 18132 | _ACEOF |
| 18133 | cat confdefs.h >>conftest.$ac_ext |
| 18134 | cat >>conftest.$ac_ext <<_ACEOF |
| 18135 | /* end confdefs.h. */ |
| 18136 | $ac_includes_default |
| 18137 | int |
| 18138 | main () |
| 18139 | { |
| 18140 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 18141 | test_array [0] = 0 |
| 18142 | |
| 18143 | ; |
| 18144 | return 0; |
| 18145 | } |
| 18146 | _ACEOF |
| 18147 | rm -f conftest.$ac_objext |
| 18148 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18149 | (eval $ac_compile) 2>conftest.er1 |
| 18150 | ac_status=$? |
| 18151 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18152 | rm -f conftest.er1 |
| 18153 | cat conftest.err >&5 |
| 18154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18155 | (exit $ac_status); } && |
| 18156 | { ac_try='test -z "$ac_c_werror_flag" |
| 18157 | || test ! -s conftest.err' |
| 18158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18159 | (eval $ac_try) 2>&5 |
| 18160 | ac_status=$? |
| 18161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18162 | (exit $ac_status); }; } && |
| 18163 | { ac_try='test -s conftest.$ac_objext' |
| 18164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18165 | (eval $ac_try) 2>&5 |
| 18166 | ac_status=$? |
| 18167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18168 | (exit $ac_status); }; }; then |
| 18169 | ac_hi=-1 ac_mid=-1 |
| 18170 | while :; do |
| 18171 | cat >conftest.$ac_ext <<_ACEOF |
| 18172 | /* confdefs.h. */ |
| 18173 | _ACEOF |
| 18174 | cat confdefs.h >>conftest.$ac_ext |
| 18175 | cat >>conftest.$ac_ext <<_ACEOF |
| 18176 | /* end confdefs.h. */ |
| 18177 | $ac_includes_default |
| 18178 | int |
| 18179 | main () |
| 18180 | { |
| 18181 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 18182 | test_array [0] = 0 |
| 18183 | |
| 18184 | ; |
| 18185 | return 0; |
| 18186 | } |
| 18187 | _ACEOF |
| 18188 | rm -f conftest.$ac_objext |
| 18189 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18190 | (eval $ac_compile) 2>conftest.er1 |
| 18191 | ac_status=$? |
| 18192 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18193 | rm -f conftest.er1 |
| 18194 | cat conftest.err >&5 |
| 18195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18196 | (exit $ac_status); } && |
| 18197 | { ac_try='test -z "$ac_c_werror_flag" |
| 18198 | || test ! -s conftest.err' |
| 18199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18200 | (eval $ac_try) 2>&5 |
| 18201 | ac_status=$? |
| 18202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18203 | (exit $ac_status); }; } && |
| 18204 | { ac_try='test -s conftest.$ac_objext' |
| 18205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18206 | (eval $ac_try) 2>&5 |
| 18207 | ac_status=$? |
| 18208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18209 | (exit $ac_status); }; }; then |
| 18210 | ac_lo=$ac_mid; break |
| 18211 | else |
| 18212 | echo "$as_me: failed program was:" >&5 |
| 18213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18214 | |
| 18215 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 18216 | if test $ac_mid -le $ac_hi; then |
| 18217 | ac_lo= ac_hi= |
| 18218 | break |
| 18219 | fi |
| 18220 | ac_mid=`expr 2 '*' $ac_mid` |
| 18221 | fi |
| 18222 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18223 | done |
| 18224 | else |
| 18225 | echo "$as_me: failed program was:" >&5 |
| 18226 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18227 | |
| 18228 | ac_lo= ac_hi= |
| 18229 | fi |
| 18230 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18231 | fi |
| 18232 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18233 | # Binary search between lo and hi bounds. |
| 18234 | while test "x$ac_lo" != "x$ac_hi"; do |
| 18235 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 18236 | cat >conftest.$ac_ext <<_ACEOF |
| 18237 | /* confdefs.h. */ |
| 18238 | _ACEOF |
| 18239 | cat confdefs.h >>conftest.$ac_ext |
| 18240 | cat >>conftest.$ac_ext <<_ACEOF |
| 18241 | /* end confdefs.h. */ |
| 18242 | $ac_includes_default |
| 18243 | int |
| 18244 | main () |
| 18245 | { |
| 18246 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 18247 | test_array [0] = 0 |
| 18248 | |
| 18249 | ; |
| 18250 | return 0; |
| 18251 | } |
| 18252 | _ACEOF |
| 18253 | rm -f conftest.$ac_objext |
| 18254 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18255 | (eval $ac_compile) 2>conftest.er1 |
| 18256 | ac_status=$? |
| 18257 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18258 | rm -f conftest.er1 |
| 18259 | cat conftest.err >&5 |
| 18260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18261 | (exit $ac_status); } && |
| 18262 | { ac_try='test -z "$ac_c_werror_flag" |
| 18263 | || test ! -s conftest.err' |
| 18264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18265 | (eval $ac_try) 2>&5 |
| 18266 | ac_status=$? |
| 18267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18268 | (exit $ac_status); }; } && |
| 18269 | { ac_try='test -s conftest.$ac_objext' |
| 18270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18271 | (eval $ac_try) 2>&5 |
| 18272 | ac_status=$? |
| 18273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18274 | (exit $ac_status); }; }; then |
| 18275 | ac_hi=$ac_mid |
| 18276 | else |
| 18277 | echo "$as_me: failed program was:" >&5 |
| 18278 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18279 | |
| 18280 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 18281 | fi |
| 18282 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18283 | done |
| 18284 | case $ac_lo in |
| 18285 | ?*) ac_cv_sizeof_int=$ac_lo;; |
| 18286 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 18287 | See \`config.log' for more details." >&5 |
| 18288 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 18289 | See \`config.log' for more details." >&2;} |
| 18290 | { (exit 1); exit 1; }; } ;; |
| 18291 | esac |
| 18292 | else |
| 18293 | if test "$cross_compiling" = yes; then |
| 18294 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 18295 | See \`config.log' for more details." >&5 |
| 18296 | echo "$as_me: error: cannot run test program while cross compiling |
| 18297 | See \`config.log' for more details." >&2;} |
| 18298 | { (exit 1); exit 1; }; } |
| 18299 | else |
| 18300 | cat >conftest.$ac_ext <<_ACEOF |
| 18301 | /* confdefs.h. */ |
| 18302 | _ACEOF |
| 18303 | cat confdefs.h >>conftest.$ac_ext |
| 18304 | cat >>conftest.$ac_ext <<_ACEOF |
| 18305 | /* end confdefs.h. */ |
| 18306 | $ac_includes_default |
| 18307 | long longval () { return (long) (sizeof (int)); } |
| 18308 | unsigned long ulongval () { return (long) (sizeof (int)); } |
| 18309 | #include <stdio.h> |
| 18310 | #include <stdlib.h> |
| 18311 | int |
| 18312 | main () |
| 18313 | { |
| 18314 | |
| 18315 | FILE *f = fopen ("conftest.val", "w"); |
| 18316 | if (! f) |
| 18317 | exit (1); |
| 18318 | if (((long) (sizeof (int))) < 0) |
| 18319 | { |
| 18320 | long i = longval (); |
| 18321 | if (i != ((long) (sizeof (int)))) |
| 18322 | exit (1); |
| 18323 | fprintf (f, "%ld\n", i); |
| 18324 | } |
| 18325 | else |
| 18326 | { |
| 18327 | unsigned long i = ulongval (); |
| 18328 | if (i != ((long) (sizeof (int)))) |
| 18329 | exit (1); |
| 18330 | fprintf (f, "%lu\n", i); |
| 18331 | } |
| 18332 | exit (ferror (f) || fclose (f) != 0); |
| 18333 | |
| 18334 | ; |
| 18335 | return 0; |
| 18336 | } |
| 18337 | _ACEOF |
| 18338 | rm -f conftest$ac_exeext |
| 18339 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18340 | (eval $ac_link) 2>&5 |
| 18341 | ac_status=$? |
| 18342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18343 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18345 | (eval $ac_try) 2>&5 |
| 18346 | ac_status=$? |
| 18347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18348 | (exit $ac_status); }; }; then |
| 18349 | ac_cv_sizeof_int=`cat conftest.val` |
| 18350 | else |
| 18351 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18352 | echo "$as_me: failed program was:" >&5 |
| 18353 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18354 | |
| 18355 | ( exit $ac_status ) |
| 18356 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 18357 | See \`config.log' for more details." >&5 |
| 18358 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 18359 | See \`config.log' for more details." >&2;} |
| 18360 | { (exit 1); exit 1; }; } |
| 18361 | fi |
| 18362 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 18363 | fi |
| 18364 | fi |
| 18365 | rm -f conftest.val |
| 18366 | else |
| 18367 | ac_cv_sizeof_int=0 |
| 18368 | fi |
| 18369 | fi |
| 18370 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 18371 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 18372 | cat >>confdefs.h <<_ACEOF |
| 18373 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 18374 | _ACEOF |
| 18375 | |
| 18376 | |
| 18377 | echo "$as_me:$LINENO: checking for short" >&5 |
| 18378 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 18379 | if test "${ac_cv_type_short+set}" = set; then |
| 18380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18381 | else |
| 18382 | cat >conftest.$ac_ext <<_ACEOF |
| 18383 | /* confdefs.h. */ |
| 18384 | _ACEOF |
| 18385 | cat confdefs.h >>conftest.$ac_ext |
| 18386 | cat >>conftest.$ac_ext <<_ACEOF |
| 18387 | /* end confdefs.h. */ |
| 18388 | $ac_includes_default |
| 18389 | int |
| 18390 | main () |
| 18391 | { |
| 18392 | if ((short *) 0) |
| 18393 | return 0; |
| 18394 | if (sizeof (short)) |
| 18395 | return 0; |
| 18396 | ; |
| 18397 | return 0; |
| 18398 | } |
| 18399 | _ACEOF |
| 18400 | rm -f conftest.$ac_objext |
| 18401 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18402 | (eval $ac_compile) 2>conftest.er1 |
| 18403 | ac_status=$? |
| 18404 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18405 | rm -f conftest.er1 |
| 18406 | cat conftest.err >&5 |
| 18407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18408 | (exit $ac_status); } && |
| 18409 | { ac_try='test -z "$ac_c_werror_flag" |
| 18410 | || test ! -s conftest.err' |
| 18411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18412 | (eval $ac_try) 2>&5 |
| 18413 | ac_status=$? |
| 18414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18415 | (exit $ac_status); }; } && |
| 18416 | { ac_try='test -s conftest.$ac_objext' |
| 18417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18418 | (eval $ac_try) 2>&5 |
| 18419 | ac_status=$? |
| 18420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18421 | (exit $ac_status); }; }; then |
| 18422 | ac_cv_type_short=yes |
| 18423 | else |
| 18424 | echo "$as_me: failed program was:" >&5 |
| 18425 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18426 | |
| 18427 | ac_cv_type_short=no |
| 18428 | fi |
| 18429 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18430 | fi |
| 18431 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 18432 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 18433 | |
| 18434 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 18435 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 18436 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 18437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18438 | else |
| 18439 | if test "$ac_cv_type_short" = yes; then |
| 18440 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 18441 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 18442 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 18443 | # This bug is HP SR number 8606223364. |
| 18444 | if test "$cross_compiling" = yes; then |
| 18445 | # Depending upon the size, compute the lo and hi bounds. |
| 18446 | cat >conftest.$ac_ext <<_ACEOF |
| 18447 | /* confdefs.h. */ |
| 18448 | _ACEOF |
| 18449 | cat confdefs.h >>conftest.$ac_ext |
| 18450 | cat >>conftest.$ac_ext <<_ACEOF |
| 18451 | /* end confdefs.h. */ |
| 18452 | $ac_includes_default |
| 18453 | int |
| 18454 | main () |
| 18455 | { |
| 18456 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 18457 | test_array [0] = 0 |
| 18458 | |
| 18459 | ; |
| 18460 | return 0; |
| 18461 | } |
| 18462 | _ACEOF |
| 18463 | rm -f conftest.$ac_objext |
| 18464 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18465 | (eval $ac_compile) 2>conftest.er1 |
| 18466 | ac_status=$? |
| 18467 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18468 | rm -f conftest.er1 |
| 18469 | cat conftest.err >&5 |
| 18470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18471 | (exit $ac_status); } && |
| 18472 | { ac_try='test -z "$ac_c_werror_flag" |
| 18473 | || test ! -s conftest.err' |
| 18474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18475 | (eval $ac_try) 2>&5 |
| 18476 | ac_status=$? |
| 18477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18478 | (exit $ac_status); }; } && |
| 18479 | { ac_try='test -s conftest.$ac_objext' |
| 18480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18481 | (eval $ac_try) 2>&5 |
| 18482 | ac_status=$? |
| 18483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18484 | (exit $ac_status); }; }; then |
| 18485 | ac_lo=0 ac_mid=0 |
| 18486 | while :; do |
| 18487 | cat >conftest.$ac_ext <<_ACEOF |
| 18488 | /* confdefs.h. */ |
| 18489 | _ACEOF |
| 18490 | cat confdefs.h >>conftest.$ac_ext |
| 18491 | cat >>conftest.$ac_ext <<_ACEOF |
| 18492 | /* end confdefs.h. */ |
| 18493 | $ac_includes_default |
| 18494 | int |
| 18495 | main () |
| 18496 | { |
| 18497 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 18498 | test_array [0] = 0 |
| 18499 | |
| 18500 | ; |
| 18501 | return 0; |
| 18502 | } |
| 18503 | _ACEOF |
| 18504 | rm -f conftest.$ac_objext |
| 18505 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18506 | (eval $ac_compile) 2>conftest.er1 |
| 18507 | ac_status=$? |
| 18508 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18509 | rm -f conftest.er1 |
| 18510 | cat conftest.err >&5 |
| 18511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18512 | (exit $ac_status); } && |
| 18513 | { ac_try='test -z "$ac_c_werror_flag" |
| 18514 | || test ! -s conftest.err' |
| 18515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18516 | (eval $ac_try) 2>&5 |
| 18517 | ac_status=$? |
| 18518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18519 | (exit $ac_status); }; } && |
| 18520 | { ac_try='test -s conftest.$ac_objext' |
| 18521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18522 | (eval $ac_try) 2>&5 |
| 18523 | ac_status=$? |
| 18524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18525 | (exit $ac_status); }; }; then |
| 18526 | ac_hi=$ac_mid; break |
| 18527 | else |
| 18528 | echo "$as_me: failed program was:" >&5 |
| 18529 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18530 | |
| 18531 | ac_lo=`expr $ac_mid + 1` |
| 18532 | if test $ac_lo -le $ac_mid; then |
| 18533 | ac_lo= ac_hi= |
| 18534 | break |
| 18535 | fi |
| 18536 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 18537 | fi |
| 18538 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18539 | done |
| 18540 | else |
| 18541 | echo "$as_me: failed program was:" >&5 |
| 18542 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18543 | |
| 18544 | cat >conftest.$ac_ext <<_ACEOF |
| 18545 | /* confdefs.h. */ |
| 18546 | _ACEOF |
| 18547 | cat confdefs.h >>conftest.$ac_ext |
| 18548 | cat >>conftest.$ac_ext <<_ACEOF |
| 18549 | /* end confdefs.h. */ |
| 18550 | $ac_includes_default |
| 18551 | int |
| 18552 | main () |
| 18553 | { |
| 18554 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 18555 | test_array [0] = 0 |
| 18556 | |
| 18557 | ; |
| 18558 | return 0; |
| 18559 | } |
| 18560 | _ACEOF |
| 18561 | rm -f conftest.$ac_objext |
| 18562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18563 | (eval $ac_compile) 2>conftest.er1 |
| 18564 | ac_status=$? |
| 18565 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18566 | rm -f conftest.er1 |
| 18567 | cat conftest.err >&5 |
| 18568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18569 | (exit $ac_status); } && |
| 18570 | { ac_try='test -z "$ac_c_werror_flag" |
| 18571 | || test ! -s conftest.err' |
| 18572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18573 | (eval $ac_try) 2>&5 |
| 18574 | ac_status=$? |
| 18575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18576 | (exit $ac_status); }; } && |
| 18577 | { ac_try='test -s conftest.$ac_objext' |
| 18578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18579 | (eval $ac_try) 2>&5 |
| 18580 | ac_status=$? |
| 18581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18582 | (exit $ac_status); }; }; then |
| 18583 | ac_hi=-1 ac_mid=-1 |
| 18584 | while :; do |
| 18585 | cat >conftest.$ac_ext <<_ACEOF |
| 18586 | /* confdefs.h. */ |
| 18587 | _ACEOF |
| 18588 | cat confdefs.h >>conftest.$ac_ext |
| 18589 | cat >>conftest.$ac_ext <<_ACEOF |
| 18590 | /* end confdefs.h. */ |
| 18591 | $ac_includes_default |
| 18592 | int |
| 18593 | main () |
| 18594 | { |
| 18595 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 18596 | test_array [0] = 0 |
| 18597 | |
| 18598 | ; |
| 18599 | return 0; |
| 18600 | } |
| 18601 | _ACEOF |
| 18602 | rm -f conftest.$ac_objext |
| 18603 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18604 | (eval $ac_compile) 2>conftest.er1 |
| 18605 | ac_status=$? |
| 18606 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18607 | rm -f conftest.er1 |
| 18608 | cat conftest.err >&5 |
| 18609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18610 | (exit $ac_status); } && |
| 18611 | { ac_try='test -z "$ac_c_werror_flag" |
| 18612 | || test ! -s conftest.err' |
| 18613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18614 | (eval $ac_try) 2>&5 |
| 18615 | ac_status=$? |
| 18616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18617 | (exit $ac_status); }; } && |
| 18618 | { ac_try='test -s conftest.$ac_objext' |
| 18619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18620 | (eval $ac_try) 2>&5 |
| 18621 | ac_status=$? |
| 18622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18623 | (exit $ac_status); }; }; then |
| 18624 | ac_lo=$ac_mid; break |
| 18625 | else |
| 18626 | echo "$as_me: failed program was:" >&5 |
| 18627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18628 | |
| 18629 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 18630 | if test $ac_mid -le $ac_hi; then |
| 18631 | ac_lo= ac_hi= |
| 18632 | break |
| 18633 | fi |
| 18634 | ac_mid=`expr 2 '*' $ac_mid` |
| 18635 | fi |
| 18636 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18637 | done |
| 18638 | else |
| 18639 | echo "$as_me: failed program was:" >&5 |
| 18640 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18641 | |
| 18642 | ac_lo= ac_hi= |
| 18643 | fi |
| 18644 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18645 | fi |
| 18646 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18647 | # Binary search between lo and hi bounds. |
| 18648 | while test "x$ac_lo" != "x$ac_hi"; do |
| 18649 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 18650 | cat >conftest.$ac_ext <<_ACEOF |
| 18651 | /* confdefs.h. */ |
| 18652 | _ACEOF |
| 18653 | cat confdefs.h >>conftest.$ac_ext |
| 18654 | cat >>conftest.$ac_ext <<_ACEOF |
| 18655 | /* end confdefs.h. */ |
| 18656 | $ac_includes_default |
| 18657 | int |
| 18658 | main () |
| 18659 | { |
| 18660 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 18661 | test_array [0] = 0 |
| 18662 | |
| 18663 | ; |
| 18664 | return 0; |
| 18665 | } |
| 18666 | _ACEOF |
| 18667 | rm -f conftest.$ac_objext |
| 18668 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18669 | (eval $ac_compile) 2>conftest.er1 |
| 18670 | ac_status=$? |
| 18671 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18672 | rm -f conftest.er1 |
| 18673 | cat conftest.err >&5 |
| 18674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18675 | (exit $ac_status); } && |
| 18676 | { ac_try='test -z "$ac_c_werror_flag" |
| 18677 | || test ! -s conftest.err' |
| 18678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18679 | (eval $ac_try) 2>&5 |
| 18680 | ac_status=$? |
| 18681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18682 | (exit $ac_status); }; } && |
| 18683 | { ac_try='test -s conftest.$ac_objext' |
| 18684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18685 | (eval $ac_try) 2>&5 |
| 18686 | ac_status=$? |
| 18687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18688 | (exit $ac_status); }; }; then |
| 18689 | ac_hi=$ac_mid |
| 18690 | else |
| 18691 | echo "$as_me: failed program was:" >&5 |
| 18692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18693 | |
| 18694 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 18695 | fi |
| 18696 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18697 | done |
| 18698 | case $ac_lo in |
| 18699 | ?*) ac_cv_sizeof_short=$ac_lo;; |
| 18700 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 18701 | See \`config.log' for more details." >&5 |
| 18702 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 18703 | See \`config.log' for more details." >&2;} |
| 18704 | { (exit 1); exit 1; }; } ;; |
| 18705 | esac |
| 18706 | else |
| 18707 | if test "$cross_compiling" = yes; then |
| 18708 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 18709 | See \`config.log' for more details." >&5 |
| 18710 | echo "$as_me: error: cannot run test program while cross compiling |
| 18711 | See \`config.log' for more details." >&2;} |
| 18712 | { (exit 1); exit 1; }; } |
| 18713 | else |
| 18714 | cat >conftest.$ac_ext <<_ACEOF |
| 18715 | /* confdefs.h. */ |
| 18716 | _ACEOF |
| 18717 | cat confdefs.h >>conftest.$ac_ext |
| 18718 | cat >>conftest.$ac_ext <<_ACEOF |
| 18719 | /* end confdefs.h. */ |
| 18720 | $ac_includes_default |
| 18721 | long longval () { return (long) (sizeof (short)); } |
| 18722 | unsigned long ulongval () { return (long) (sizeof (short)); } |
| 18723 | #include <stdio.h> |
| 18724 | #include <stdlib.h> |
| 18725 | int |
| 18726 | main () |
| 18727 | { |
| 18728 | |
| 18729 | FILE *f = fopen ("conftest.val", "w"); |
| 18730 | if (! f) |
| 18731 | exit (1); |
| 18732 | if (((long) (sizeof (short))) < 0) |
| 18733 | { |
| 18734 | long i = longval (); |
| 18735 | if (i != ((long) (sizeof (short)))) |
| 18736 | exit (1); |
| 18737 | fprintf (f, "%ld\n", i); |
| 18738 | } |
| 18739 | else |
| 18740 | { |
| 18741 | unsigned long i = ulongval (); |
| 18742 | if (i != ((long) (sizeof (short)))) |
| 18743 | exit (1); |
| 18744 | fprintf (f, "%lu\n", i); |
| 18745 | } |
| 18746 | exit (ferror (f) || fclose (f) != 0); |
| 18747 | |
| 18748 | ; |
| 18749 | return 0; |
| 18750 | } |
| 18751 | _ACEOF |
| 18752 | rm -f conftest$ac_exeext |
| 18753 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18754 | (eval $ac_link) 2>&5 |
| 18755 | ac_status=$? |
| 18756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18757 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18759 | (eval $ac_try) 2>&5 |
| 18760 | ac_status=$? |
| 18761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18762 | (exit $ac_status); }; }; then |
| 18763 | ac_cv_sizeof_short=`cat conftest.val` |
| 18764 | else |
| 18765 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18766 | echo "$as_me: failed program was:" >&5 |
| 18767 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18768 | |
| 18769 | ( exit $ac_status ) |
| 18770 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 18771 | See \`config.log' for more details." >&5 |
| 18772 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 18773 | See \`config.log' for more details." >&2;} |
| 18774 | { (exit 1); exit 1; }; } |
| 18775 | fi |
| 18776 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 18777 | fi |
| 18778 | fi |
| 18779 | rm -f conftest.val |
| 18780 | else |
| 18781 | ac_cv_sizeof_short=0 |
| 18782 | fi |
| 18783 | fi |
| 18784 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 18785 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 18786 | cat >>confdefs.h <<_ACEOF |
| 18787 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
| 18788 | _ACEOF |
| 18789 | |
| 18790 | |
| 18791 | echo "$as_me:$LINENO: checking for char" >&5 |
| 18792 | echo $ECHO_N "checking for char... $ECHO_C" >&6 |
| 18793 | if test "${ac_cv_type_char+set}" = set; then |
| 18794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18795 | else |
| 18796 | cat >conftest.$ac_ext <<_ACEOF |
| 18797 | /* confdefs.h. */ |
| 18798 | _ACEOF |
| 18799 | cat confdefs.h >>conftest.$ac_ext |
| 18800 | cat >>conftest.$ac_ext <<_ACEOF |
| 18801 | /* end confdefs.h. */ |
| 18802 | $ac_includes_default |
| 18803 | int |
| 18804 | main () |
| 18805 | { |
| 18806 | if ((char *) 0) |
| 18807 | return 0; |
| 18808 | if (sizeof (char)) |
| 18809 | return 0; |
| 18810 | ; |
| 18811 | return 0; |
| 18812 | } |
| 18813 | _ACEOF |
| 18814 | rm -f conftest.$ac_objext |
| 18815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18816 | (eval $ac_compile) 2>conftest.er1 |
| 18817 | ac_status=$? |
| 18818 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18819 | rm -f conftest.er1 |
| 18820 | cat conftest.err >&5 |
| 18821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18822 | (exit $ac_status); } && |
| 18823 | { ac_try='test -z "$ac_c_werror_flag" |
| 18824 | || test ! -s conftest.err' |
| 18825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18826 | (eval $ac_try) 2>&5 |
| 18827 | ac_status=$? |
| 18828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18829 | (exit $ac_status); }; } && |
| 18830 | { ac_try='test -s conftest.$ac_objext' |
| 18831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18832 | (eval $ac_try) 2>&5 |
| 18833 | ac_status=$? |
| 18834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18835 | (exit $ac_status); }; }; then |
| 18836 | ac_cv_type_char=yes |
| 18837 | else |
| 18838 | echo "$as_me: failed program was:" >&5 |
| 18839 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18840 | |
| 18841 | ac_cv_type_char=no |
| 18842 | fi |
| 18843 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18844 | fi |
| 18845 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
| 18846 | echo "${ECHO_T}$ac_cv_type_char" >&6 |
| 18847 | |
| 18848 | echo "$as_me:$LINENO: checking size of char" >&5 |
| 18849 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 |
| 18850 | if test "${ac_cv_sizeof_char+set}" = set; then |
| 18851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18852 | else |
| 18853 | if test "$ac_cv_type_char" = yes; then |
| 18854 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 18855 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 18856 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 18857 | # This bug is HP SR number 8606223364. |
| 18858 | if test "$cross_compiling" = yes; then |
| 18859 | # Depending upon the size, compute the lo and hi bounds. |
| 18860 | cat >conftest.$ac_ext <<_ACEOF |
| 18861 | /* confdefs.h. */ |
| 18862 | _ACEOF |
| 18863 | cat confdefs.h >>conftest.$ac_ext |
| 18864 | cat >>conftest.$ac_ext <<_ACEOF |
| 18865 | /* end confdefs.h. */ |
| 18866 | $ac_includes_default |
| 18867 | int |
| 18868 | main () |
| 18869 | { |
| 18870 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
| 18871 | test_array [0] = 0 |
| 18872 | |
| 18873 | ; |
| 18874 | return 0; |
| 18875 | } |
| 18876 | _ACEOF |
| 18877 | rm -f conftest.$ac_objext |
| 18878 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18879 | (eval $ac_compile) 2>conftest.er1 |
| 18880 | ac_status=$? |
| 18881 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18882 | rm -f conftest.er1 |
| 18883 | cat conftest.err >&5 |
| 18884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18885 | (exit $ac_status); } && |
| 18886 | { ac_try='test -z "$ac_c_werror_flag" |
| 18887 | || test ! -s conftest.err' |
| 18888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18889 | (eval $ac_try) 2>&5 |
| 18890 | ac_status=$? |
| 18891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18892 | (exit $ac_status); }; } && |
| 18893 | { ac_try='test -s conftest.$ac_objext' |
| 18894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18895 | (eval $ac_try) 2>&5 |
| 18896 | ac_status=$? |
| 18897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18898 | (exit $ac_status); }; }; then |
| 18899 | ac_lo=0 ac_mid=0 |
| 18900 | while :; do |
| 18901 | cat >conftest.$ac_ext <<_ACEOF |
| 18902 | /* confdefs.h. */ |
| 18903 | _ACEOF |
| 18904 | cat confdefs.h >>conftest.$ac_ext |
| 18905 | cat >>conftest.$ac_ext <<_ACEOF |
| 18906 | /* end confdefs.h. */ |
| 18907 | $ac_includes_default |
| 18908 | int |
| 18909 | main () |
| 18910 | { |
| 18911 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 18912 | test_array [0] = 0 |
| 18913 | |
| 18914 | ; |
| 18915 | return 0; |
| 18916 | } |
| 18917 | _ACEOF |
| 18918 | rm -f conftest.$ac_objext |
| 18919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18920 | (eval $ac_compile) 2>conftest.er1 |
| 18921 | ac_status=$? |
| 18922 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18923 | rm -f conftest.er1 |
| 18924 | cat conftest.err >&5 |
| 18925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18926 | (exit $ac_status); } && |
| 18927 | { ac_try='test -z "$ac_c_werror_flag" |
| 18928 | || test ! -s conftest.err' |
| 18929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18930 | (eval $ac_try) 2>&5 |
| 18931 | ac_status=$? |
| 18932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18933 | (exit $ac_status); }; } && |
| 18934 | { ac_try='test -s conftest.$ac_objext' |
| 18935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18936 | (eval $ac_try) 2>&5 |
| 18937 | ac_status=$? |
| 18938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18939 | (exit $ac_status); }; }; then |
| 18940 | ac_hi=$ac_mid; break |
| 18941 | else |
| 18942 | echo "$as_me: failed program was:" >&5 |
| 18943 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18944 | |
| 18945 | ac_lo=`expr $ac_mid + 1` |
| 18946 | if test $ac_lo -le $ac_mid; then |
| 18947 | ac_lo= ac_hi= |
| 18948 | break |
| 18949 | fi |
| 18950 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 18951 | fi |
| 18952 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18953 | done |
| 18954 | else |
| 18955 | echo "$as_me: failed program was:" >&5 |
| 18956 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18957 | |
| 18958 | cat >conftest.$ac_ext <<_ACEOF |
| 18959 | /* confdefs.h. */ |
| 18960 | _ACEOF |
| 18961 | cat confdefs.h >>conftest.$ac_ext |
| 18962 | cat >>conftest.$ac_ext <<_ACEOF |
| 18963 | /* end confdefs.h. */ |
| 18964 | $ac_includes_default |
| 18965 | int |
| 18966 | main () |
| 18967 | { |
| 18968 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
| 18969 | test_array [0] = 0 |
| 18970 | |
| 18971 | ; |
| 18972 | return 0; |
| 18973 | } |
| 18974 | _ACEOF |
| 18975 | rm -f conftest.$ac_objext |
| 18976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18977 | (eval $ac_compile) 2>conftest.er1 |
| 18978 | ac_status=$? |
| 18979 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18980 | rm -f conftest.er1 |
| 18981 | cat conftest.err >&5 |
| 18982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18983 | (exit $ac_status); } && |
| 18984 | { ac_try='test -z "$ac_c_werror_flag" |
| 18985 | || test ! -s conftest.err' |
| 18986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18987 | (eval $ac_try) 2>&5 |
| 18988 | ac_status=$? |
| 18989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18990 | (exit $ac_status); }; } && |
| 18991 | { ac_try='test -s conftest.$ac_objext' |
| 18992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18993 | (eval $ac_try) 2>&5 |
| 18994 | ac_status=$? |
| 18995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18996 | (exit $ac_status); }; }; then |
| 18997 | ac_hi=-1 ac_mid=-1 |
| 18998 | while :; do |
| 18999 | cat >conftest.$ac_ext <<_ACEOF |
| 19000 | /* confdefs.h. */ |
| 19001 | _ACEOF |
| 19002 | cat confdefs.h >>conftest.$ac_ext |
| 19003 | cat >>conftest.$ac_ext <<_ACEOF |
| 19004 | /* end confdefs.h. */ |
| 19005 | $ac_includes_default |
| 19006 | int |
| 19007 | main () |
| 19008 | { |
| 19009 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
| 19010 | test_array [0] = 0 |
| 19011 | |
| 19012 | ; |
| 19013 | return 0; |
| 19014 | } |
| 19015 | _ACEOF |
| 19016 | rm -f conftest.$ac_objext |
| 19017 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19018 | (eval $ac_compile) 2>conftest.er1 |
| 19019 | ac_status=$? |
| 19020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19021 | rm -f conftest.er1 |
| 19022 | cat conftest.err >&5 |
| 19023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19024 | (exit $ac_status); } && |
| 19025 | { ac_try='test -z "$ac_c_werror_flag" |
| 19026 | || test ! -s conftest.err' |
| 19027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19028 | (eval $ac_try) 2>&5 |
| 19029 | ac_status=$? |
| 19030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19031 | (exit $ac_status); }; } && |
| 19032 | { ac_try='test -s conftest.$ac_objext' |
| 19033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19034 | (eval $ac_try) 2>&5 |
| 19035 | ac_status=$? |
| 19036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19037 | (exit $ac_status); }; }; then |
| 19038 | ac_lo=$ac_mid; break |
| 19039 | else |
| 19040 | echo "$as_me: failed program was:" >&5 |
| 19041 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19042 | |
| 19043 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 19044 | if test $ac_mid -le $ac_hi; then |
| 19045 | ac_lo= ac_hi= |
| 19046 | break |
| 19047 | fi |
| 19048 | ac_mid=`expr 2 '*' $ac_mid` |
| 19049 | fi |
| 19050 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19051 | done |
| 19052 | else |
| 19053 | echo "$as_me: failed program was:" >&5 |
| 19054 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19055 | |
| 19056 | ac_lo= ac_hi= |
| 19057 | fi |
| 19058 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19059 | fi |
| 19060 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19061 | # Binary search between lo and hi bounds. |
| 19062 | while test "x$ac_lo" != "x$ac_hi"; do |
| 19063 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 19064 | cat >conftest.$ac_ext <<_ACEOF |
| 19065 | /* confdefs.h. */ |
| 19066 | _ACEOF |
| 19067 | cat confdefs.h >>conftest.$ac_ext |
| 19068 | cat >>conftest.$ac_ext <<_ACEOF |
| 19069 | /* end confdefs.h. */ |
| 19070 | $ac_includes_default |
| 19071 | int |
| 19072 | main () |
| 19073 | { |
| 19074 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 19075 | test_array [0] = 0 |
| 19076 | |
| 19077 | ; |
| 19078 | return 0; |
| 19079 | } |
| 19080 | _ACEOF |
| 19081 | rm -f conftest.$ac_objext |
| 19082 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19083 | (eval $ac_compile) 2>conftest.er1 |
| 19084 | ac_status=$? |
| 19085 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19086 | rm -f conftest.er1 |
| 19087 | cat conftest.err >&5 |
| 19088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19089 | (exit $ac_status); } && |
| 19090 | { ac_try='test -z "$ac_c_werror_flag" |
| 19091 | || test ! -s conftest.err' |
| 19092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19093 | (eval $ac_try) 2>&5 |
| 19094 | ac_status=$? |
| 19095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19096 | (exit $ac_status); }; } && |
| 19097 | { ac_try='test -s conftest.$ac_objext' |
| 19098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19099 | (eval $ac_try) 2>&5 |
| 19100 | ac_status=$? |
| 19101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19102 | (exit $ac_status); }; }; then |
| 19103 | ac_hi=$ac_mid |
| 19104 | else |
| 19105 | echo "$as_me: failed program was:" >&5 |
| 19106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19107 | |
| 19108 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 19109 | fi |
| 19110 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19111 | done |
| 19112 | case $ac_lo in |
| 19113 | ?*) ac_cv_sizeof_char=$ac_lo;; |
| 19114 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
| 19115 | See \`config.log' for more details." >&5 |
| 19116 | echo "$as_me: error: cannot compute sizeof (char), 77 |
| 19117 | See \`config.log' for more details." >&2;} |
| 19118 | { (exit 1); exit 1; }; } ;; |
| 19119 | esac |
| 19120 | else |
| 19121 | if test "$cross_compiling" = yes; then |
| 19122 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 19123 | See \`config.log' for more details." >&5 |
| 19124 | echo "$as_me: error: cannot run test program while cross compiling |
| 19125 | See \`config.log' for more details." >&2;} |
| 19126 | { (exit 1); exit 1; }; } |
| 19127 | else |
| 19128 | cat >conftest.$ac_ext <<_ACEOF |
| 19129 | /* confdefs.h. */ |
| 19130 | _ACEOF |
| 19131 | cat confdefs.h >>conftest.$ac_ext |
| 19132 | cat >>conftest.$ac_ext <<_ACEOF |
| 19133 | /* end confdefs.h. */ |
| 19134 | $ac_includes_default |
| 19135 | long longval () { return (long) (sizeof (char)); } |
| 19136 | unsigned long ulongval () { return (long) (sizeof (char)); } |
| 19137 | #include <stdio.h> |
| 19138 | #include <stdlib.h> |
| 19139 | int |
| 19140 | main () |
| 19141 | { |
| 19142 | |
| 19143 | FILE *f = fopen ("conftest.val", "w"); |
| 19144 | if (! f) |
| 19145 | exit (1); |
| 19146 | if (((long) (sizeof (char))) < 0) |
| 19147 | { |
| 19148 | long i = longval (); |
| 19149 | if (i != ((long) (sizeof (char)))) |
| 19150 | exit (1); |
| 19151 | fprintf (f, "%ld\n", i); |
| 19152 | } |
| 19153 | else |
| 19154 | { |
| 19155 | unsigned long i = ulongval (); |
| 19156 | if (i != ((long) (sizeof (char)))) |
| 19157 | exit (1); |
| 19158 | fprintf (f, "%lu\n", i); |
| 19159 | } |
| 19160 | exit (ferror (f) || fclose (f) != 0); |
| 19161 | |
| 19162 | ; |
| 19163 | return 0; |
| 19164 | } |
| 19165 | _ACEOF |
| 19166 | rm -f conftest$ac_exeext |
| 19167 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19168 | (eval $ac_link) 2>&5 |
| 19169 | ac_status=$? |
| 19170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19171 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19173 | (eval $ac_try) 2>&5 |
| 19174 | ac_status=$? |
| 19175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19176 | (exit $ac_status); }; }; then |
| 19177 | ac_cv_sizeof_char=`cat conftest.val` |
| 19178 | else |
| 19179 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19180 | echo "$as_me: failed program was:" >&5 |
| 19181 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19182 | |
| 19183 | ( exit $ac_status ) |
| 19184 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
| 19185 | See \`config.log' for more details." >&5 |
| 19186 | echo "$as_me: error: cannot compute sizeof (char), 77 |
| 19187 | See \`config.log' for more details." >&2;} |
| 19188 | { (exit 1); exit 1; }; } |
| 19189 | fi |
| 19190 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 19191 | fi |
| 19192 | fi |
| 19193 | rm -f conftest.val |
| 19194 | else |
| 19195 | ac_cv_sizeof_char=0 |
| 19196 | fi |
| 19197 | fi |
| 19198 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
| 19199 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 |
| 19200 | cat >>confdefs.h <<_ACEOF |
| 19201 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
| 19202 | _ACEOF |
| 19203 | |
| 19204 | |
| 19205 | |
| 19206 | echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5 |
| 19207 | echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6 |
| 19208 | case "$ac_cv_sizeof_char" in |
| 19209 | 1) acx_cv_type_int8_t=char ;; |
| 19210 | *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5 |
| 19211 | echo "$as_me: error: no 8-bit type" >&2;} |
| 19212 | { (exit please report a bug); exit please report a bug; }; } |
| 19213 | esac |
| 19214 | echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5 |
| 19215 | echo "${ECHO_T}$acx_cv_type_int8_t" >&6 |
| 19216 | |
| 19217 | echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5 |
| 19218 | echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6 |
| 19219 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in |
| 19220 | 2:*) acx_cv_type_int16_t=int ;; |
| 19221 | *:2) acx_cv_type_int16_t=short ;; |
| 19222 | *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5 |
| 19223 | echo "$as_me: error: no 16-bit type" >&2;} |
| 19224 | { (exit please report a bug); exit please report a bug; }; } |
| 19225 | esac |
| 19226 | echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5 |
| 19227 | echo "${ECHO_T}$acx_cv_type_int16_t" >&6 |
| 19228 | |
| 19229 | echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5 |
| 19230 | echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6 |
| 19231 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in |
| 19232 | 4:*) acx_cv_type_int32_t=int ;; |
| 19233 | *:4) acx_cv_type_int32_t=long ;; |
| 19234 | *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5 |
| 19235 | echo "$as_me: error: no 32-bit type" >&2;} |
| 19236 | { (exit please report a bug); exit please report a bug; }; } |
| 19237 | esac |
| 19238 | echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5 |
| 19239 | echo "${ECHO_T}$acx_cv_type_int32_t" >&6 |
| 19240 | fi |
| 19241 | |
| 19242 | # These tests are here to make the output prettier |
| 19243 | |
| 19244 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then |
| 19245 | case "$ac_cv_sizeof_long" in |
| 19246 | 8) acx_cv_type_int64_t=long ;; |
| 19247 | esac |
| 19248 | echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5 |
| 19249 | echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6 |
| 19250 | echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 |
| 19251 | echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6 |
| 19252 | fi |
| 19253 | |
| 19254 | # Now we can use the above types |
| 19255 | |
| 19256 | if test "$ac_cv_type_uintptr_t" != yes; then |
| 19257 | echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5 |
| 19258 | echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6 |
| 19259 | case $ac_cv_sizeof_void_p in |
| 19260 | 2) acx_cv_type_intptr_t=int16_t ;; |
| 19261 | 4) acx_cv_type_intptr_t=int32_t ;; |
| 19262 | 8) acx_cv_type_intptr_t=int64_t ;; |
| 19263 | *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5 |
| 19264 | echo "$as_me: error: no equivalent for intptr_t" >&2;} |
| 19265 | { (exit please report a bug); exit please report a bug; }; } |
| 19266 | esac |
| 19267 | echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5 |
| 19268 | echo "${ECHO_T}$acx_cv_type_intptr_t" >&6 |
| 19269 | fi |
| 19270 | |
| 19271 | # ----------------- done all checks, emit header ------------- |
| 19272 | ac_config_commands="$ac_config_commands gdb_stdint.h" |
| 19273 | |
| 19274 | |
| 19275 | |
| 19276 | |
| 19277 | # ------------------------- # |
| 19278 | # Checks for declarations. # |
| 19279 | # ------------------------- # |
| 19280 | |
| 19281 | echo "$as_me:$LINENO: checking whether free is declared" >&5 |
| 19282 | echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6 |
| 19283 | if test "${ac_cv_have_decl_free+set}" = set; then |
| 19284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19285 | else |
| 19286 | cat >conftest.$ac_ext <<_ACEOF |
| 19287 | /* confdefs.h. */ |
| 19288 | _ACEOF |
| 19289 | cat confdefs.h >>conftest.$ac_ext |
| 19290 | cat >>conftest.$ac_ext <<_ACEOF |
| 19291 | /* end confdefs.h. */ |
| 19292 | $ac_includes_default |
| 19293 | int |
| 19294 | main () |
| 19295 | { |
| 19296 | #ifndef free |
| 19297 | char *p = (char *) free; |
| 19298 | #endif |
| 19299 | |
| 19300 | ; |
| 19301 | return 0; |
| 19302 | } |
| 19303 | _ACEOF |
| 19304 | rm -f conftest.$ac_objext |
| 19305 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19306 | (eval $ac_compile) 2>conftest.er1 |
| 19307 | ac_status=$? |
| 19308 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19309 | rm -f conftest.er1 |
| 19310 | cat conftest.err >&5 |
| 19311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19312 | (exit $ac_status); } && |
| 19313 | { ac_try='test -z "$ac_c_werror_flag" |
| 19314 | || test ! -s conftest.err' |
| 19315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19316 | (eval $ac_try) 2>&5 |
| 19317 | ac_status=$? |
| 19318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19319 | (exit $ac_status); }; } && |
| 19320 | { ac_try='test -s conftest.$ac_objext' |
| 19321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19322 | (eval $ac_try) 2>&5 |
| 19323 | ac_status=$? |
| 19324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19325 | (exit $ac_status); }; }; then |
| 19326 | ac_cv_have_decl_free=yes |
| 19327 | else |
| 19328 | echo "$as_me: failed program was:" >&5 |
| 19329 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19330 | |
| 19331 | ac_cv_have_decl_free=no |
| 19332 | fi |
| 19333 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19334 | fi |
| 19335 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5 |
| 19336 | echo "${ECHO_T}$ac_cv_have_decl_free" >&6 |
| 19337 | if test $ac_cv_have_decl_free = yes; then |
| 19338 | |
| 19339 | cat >>confdefs.h <<_ACEOF |
| 19340 | #define HAVE_DECL_FREE 1 |
| 19341 | _ACEOF |
| 19342 | |
| 19343 | |
| 19344 | else |
| 19345 | cat >>confdefs.h <<_ACEOF |
| 19346 | #define HAVE_DECL_FREE 0 |
| 19347 | _ACEOF |
| 19348 | |
| 19349 | |
| 19350 | fi |
| 19351 | echo "$as_me:$LINENO: checking whether malloc is declared" >&5 |
| 19352 | echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6 |
| 19353 | if test "${ac_cv_have_decl_malloc+set}" = set; then |
| 19354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19355 | else |
| 19356 | cat >conftest.$ac_ext <<_ACEOF |
| 19357 | /* confdefs.h. */ |
| 19358 | _ACEOF |
| 19359 | cat confdefs.h >>conftest.$ac_ext |
| 19360 | cat >>conftest.$ac_ext <<_ACEOF |
| 19361 | /* end confdefs.h. */ |
| 19362 | $ac_includes_default |
| 19363 | int |
| 19364 | main () |
| 19365 | { |
| 19366 | #ifndef malloc |
| 19367 | char *p = (char *) malloc; |
| 19368 | #endif |
| 19369 | |
| 19370 | ; |
| 19371 | return 0; |
| 19372 | } |
| 19373 | _ACEOF |
| 19374 | rm -f conftest.$ac_objext |
| 19375 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19376 | (eval $ac_compile) 2>conftest.er1 |
| 19377 | ac_status=$? |
| 19378 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19379 | rm -f conftest.er1 |
| 19380 | cat conftest.err >&5 |
| 19381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19382 | (exit $ac_status); } && |
| 19383 | { ac_try='test -z "$ac_c_werror_flag" |
| 19384 | || test ! -s conftest.err' |
| 19385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19386 | (eval $ac_try) 2>&5 |
| 19387 | ac_status=$? |
| 19388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19389 | (exit $ac_status); }; } && |
| 19390 | { ac_try='test -s conftest.$ac_objext' |
| 19391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19392 | (eval $ac_try) 2>&5 |
| 19393 | ac_status=$? |
| 19394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19395 | (exit $ac_status); }; }; then |
| 19396 | ac_cv_have_decl_malloc=yes |
| 19397 | else |
| 19398 | echo "$as_me: failed program was:" >&5 |
| 19399 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19400 | |
| 19401 | ac_cv_have_decl_malloc=no |
| 19402 | fi |
| 19403 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19404 | fi |
| 19405 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5 |
| 19406 | echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6 |
| 19407 | if test $ac_cv_have_decl_malloc = yes; then |
| 19408 | |
| 19409 | cat >>confdefs.h <<_ACEOF |
| 19410 | #define HAVE_DECL_MALLOC 1 |
| 19411 | _ACEOF |
| 19412 | |
| 19413 | |
| 19414 | else |
| 19415 | cat >>confdefs.h <<_ACEOF |
| 19416 | #define HAVE_DECL_MALLOC 0 |
| 19417 | _ACEOF |
| 19418 | |
| 19419 | |
| 19420 | fi |
| 19421 | echo "$as_me:$LINENO: checking whether realloc is declared" >&5 |
| 19422 | echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6 |
| 19423 | if test "${ac_cv_have_decl_realloc+set}" = set; then |
| 19424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19425 | else |
| 19426 | cat >conftest.$ac_ext <<_ACEOF |
| 19427 | /* confdefs.h. */ |
| 19428 | _ACEOF |
| 19429 | cat confdefs.h >>conftest.$ac_ext |
| 19430 | cat >>conftest.$ac_ext <<_ACEOF |
| 19431 | /* end confdefs.h. */ |
| 19432 | $ac_includes_default |
| 19433 | int |
| 19434 | main () |
| 19435 | { |
| 19436 | #ifndef realloc |
| 19437 | char *p = (char *) realloc; |
| 19438 | #endif |
| 19439 | |
| 19440 | ; |
| 19441 | return 0; |
| 19442 | } |
| 19443 | _ACEOF |
| 19444 | rm -f conftest.$ac_objext |
| 19445 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19446 | (eval $ac_compile) 2>conftest.er1 |
| 19447 | ac_status=$? |
| 19448 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19449 | rm -f conftest.er1 |
| 19450 | cat conftest.err >&5 |
| 19451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19452 | (exit $ac_status); } && |
| 19453 | { ac_try='test -z "$ac_c_werror_flag" |
| 19454 | || test ! -s conftest.err' |
| 19455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19456 | (eval $ac_try) 2>&5 |
| 19457 | ac_status=$? |
| 19458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19459 | (exit $ac_status); }; } && |
| 19460 | { ac_try='test -s conftest.$ac_objext' |
| 19461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19462 | (eval $ac_try) 2>&5 |
| 19463 | ac_status=$? |
| 19464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19465 | (exit $ac_status); }; }; then |
| 19466 | ac_cv_have_decl_realloc=yes |
| 19467 | else |
| 19468 | echo "$as_me: failed program was:" >&5 |
| 19469 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19470 | |
| 19471 | ac_cv_have_decl_realloc=no |
| 19472 | fi |
| 19473 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19474 | fi |
| 19475 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5 |
| 19476 | echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6 |
| 19477 | if test $ac_cv_have_decl_realloc = yes; then |
| 19478 | |
| 19479 | cat >>confdefs.h <<_ACEOF |
| 19480 | #define HAVE_DECL_REALLOC 1 |
| 19481 | _ACEOF |
| 19482 | |
| 19483 | |
| 19484 | else |
| 19485 | cat >>confdefs.h <<_ACEOF |
| 19486 | #define HAVE_DECL_REALLOC 0 |
| 19487 | _ACEOF |
| 19488 | |
| 19489 | |
| 19490 | fi |
| 19491 | |
| 19492 | |
| 19493 | echo "$as_me:$LINENO: checking whether strerror is declared" >&5 |
| 19494 | echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6 |
| 19495 | if test "${ac_cv_have_decl_strerror+set}" = set; then |
| 19496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19497 | else |
| 19498 | cat >conftest.$ac_ext <<_ACEOF |
| 19499 | /* confdefs.h. */ |
| 19500 | _ACEOF |
| 19501 | cat confdefs.h >>conftest.$ac_ext |
| 19502 | cat >>conftest.$ac_ext <<_ACEOF |
| 19503 | /* end confdefs.h. */ |
| 19504 | $ac_includes_default |
| 19505 | int |
| 19506 | main () |
| 19507 | { |
| 19508 | #ifndef strerror |
| 19509 | char *p = (char *) strerror; |
| 19510 | #endif |
| 19511 | |
| 19512 | ; |
| 19513 | return 0; |
| 19514 | } |
| 19515 | _ACEOF |
| 19516 | rm -f conftest.$ac_objext |
| 19517 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19518 | (eval $ac_compile) 2>conftest.er1 |
| 19519 | ac_status=$? |
| 19520 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19521 | rm -f conftest.er1 |
| 19522 | cat conftest.err >&5 |
| 19523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19524 | (exit $ac_status); } && |
| 19525 | { ac_try='test -z "$ac_c_werror_flag" |
| 19526 | || test ! -s conftest.err' |
| 19527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19528 | (eval $ac_try) 2>&5 |
| 19529 | ac_status=$? |
| 19530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19531 | (exit $ac_status); }; } && |
| 19532 | { ac_try='test -s conftest.$ac_objext' |
| 19533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19534 | (eval $ac_try) 2>&5 |
| 19535 | ac_status=$? |
| 19536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19537 | (exit $ac_status); }; }; then |
| 19538 | ac_cv_have_decl_strerror=yes |
| 19539 | else |
| 19540 | echo "$as_me: failed program was:" >&5 |
| 19541 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19542 | |
| 19543 | ac_cv_have_decl_strerror=no |
| 19544 | fi |
| 19545 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19546 | fi |
| 19547 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5 |
| 19548 | echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6 |
| 19549 | if test $ac_cv_have_decl_strerror = yes; then |
| 19550 | |
| 19551 | cat >>confdefs.h <<_ACEOF |
| 19552 | #define HAVE_DECL_STRERROR 1 |
| 19553 | _ACEOF |
| 19554 | |
| 19555 | |
| 19556 | else |
| 19557 | cat >>confdefs.h <<_ACEOF |
| 19558 | #define HAVE_DECL_STRERROR 0 |
| 19559 | _ACEOF |
| 19560 | |
| 19561 | |
| 19562 | fi |
| 19563 | echo "$as_me:$LINENO: checking whether strstr is declared" >&5 |
| 19564 | echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6 |
| 19565 | if test "${ac_cv_have_decl_strstr+set}" = set; then |
| 19566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19567 | else |
| 19568 | cat >conftest.$ac_ext <<_ACEOF |
| 19569 | /* confdefs.h. */ |
| 19570 | _ACEOF |
| 19571 | cat confdefs.h >>conftest.$ac_ext |
| 19572 | cat >>conftest.$ac_ext <<_ACEOF |
| 19573 | /* end confdefs.h. */ |
| 19574 | $ac_includes_default |
| 19575 | int |
| 19576 | main () |
| 19577 | { |
| 19578 | #ifndef strstr |
| 19579 | char *p = (char *) strstr; |
| 19580 | #endif |
| 19581 | |
| 19582 | ; |
| 19583 | return 0; |
| 19584 | } |
| 19585 | _ACEOF |
| 19586 | rm -f conftest.$ac_objext |
| 19587 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19588 | (eval $ac_compile) 2>conftest.er1 |
| 19589 | ac_status=$? |
| 19590 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19591 | rm -f conftest.er1 |
| 19592 | cat conftest.err >&5 |
| 19593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19594 | (exit $ac_status); } && |
| 19595 | { ac_try='test -z "$ac_c_werror_flag" |
| 19596 | || test ! -s conftest.err' |
| 19597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19598 | (eval $ac_try) 2>&5 |
| 19599 | ac_status=$? |
| 19600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19601 | (exit $ac_status); }; } && |
| 19602 | { ac_try='test -s conftest.$ac_objext' |
| 19603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19604 | (eval $ac_try) 2>&5 |
| 19605 | ac_status=$? |
| 19606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19607 | (exit $ac_status); }; }; then |
| 19608 | ac_cv_have_decl_strstr=yes |
| 19609 | else |
| 19610 | echo "$as_me: failed program was:" >&5 |
| 19611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19612 | |
| 19613 | ac_cv_have_decl_strstr=no |
| 19614 | fi |
| 19615 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19616 | fi |
| 19617 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5 |
| 19618 | echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6 |
| 19619 | if test $ac_cv_have_decl_strstr = yes; then |
| 19620 | |
| 19621 | cat >>confdefs.h <<_ACEOF |
| 19622 | #define HAVE_DECL_STRSTR 1 |
| 19623 | _ACEOF |
| 19624 | |
| 19625 | |
| 19626 | else |
| 19627 | cat >>confdefs.h <<_ACEOF |
| 19628 | #define HAVE_DECL_STRSTR 0 |
| 19629 | _ACEOF |
| 19630 | |
| 19631 | |
| 19632 | fi |
| 19633 | |
| 19634 | |
| 19635 | echo "$as_me:$LINENO: checking whether getopt is declared" >&5 |
| 19636 | echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6 |
| 19637 | if test "${ac_cv_have_decl_getopt+set}" = set; then |
| 19638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19639 | else |
| 19640 | cat >conftest.$ac_ext <<_ACEOF |
| 19641 | /* confdefs.h. */ |
| 19642 | _ACEOF |
| 19643 | cat confdefs.h >>conftest.$ac_ext |
| 19644 | cat >>conftest.$ac_ext <<_ACEOF |
| 19645 | /* end confdefs.h. */ |
| 19646 | $ac_includes_default |
| 19647 | int |
| 19648 | main () |
| 19649 | { |
| 19650 | #ifndef getopt |
| 19651 | char *p = (char *) getopt; |
| 19652 | #endif |
| 19653 | |
| 19654 | ; |
| 19655 | return 0; |
| 19656 | } |
| 19657 | _ACEOF |
| 19658 | rm -f conftest.$ac_objext |
| 19659 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19660 | (eval $ac_compile) 2>conftest.er1 |
| 19661 | ac_status=$? |
| 19662 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19663 | rm -f conftest.er1 |
| 19664 | cat conftest.err >&5 |
| 19665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19666 | (exit $ac_status); } && |
| 19667 | { ac_try='test -z "$ac_c_werror_flag" |
| 19668 | || test ! -s conftest.err' |
| 19669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19670 | (eval $ac_try) 2>&5 |
| 19671 | ac_status=$? |
| 19672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19673 | (exit $ac_status); }; } && |
| 19674 | { ac_try='test -s conftest.$ac_objext' |
| 19675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19676 | (eval $ac_try) 2>&5 |
| 19677 | ac_status=$? |
| 19678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19679 | (exit $ac_status); }; }; then |
| 19680 | ac_cv_have_decl_getopt=yes |
| 19681 | else |
| 19682 | echo "$as_me: failed program was:" >&5 |
| 19683 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19684 | |
| 19685 | ac_cv_have_decl_getopt=no |
| 19686 | fi |
| 19687 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19688 | fi |
| 19689 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5 |
| 19690 | echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6 |
| 19691 | if test $ac_cv_have_decl_getopt = yes; then |
| 19692 | |
| 19693 | cat >>confdefs.h <<_ACEOF |
| 19694 | #define HAVE_DECL_GETOPT 1 |
| 19695 | _ACEOF |
| 19696 | |
| 19697 | |
| 19698 | else |
| 19699 | cat >>confdefs.h <<_ACEOF |
| 19700 | #define HAVE_DECL_GETOPT 0 |
| 19701 | _ACEOF |
| 19702 | |
| 19703 | |
| 19704 | fi |
| 19705 | echo "$as_me:$LINENO: checking whether snprintf is declared" >&5 |
| 19706 | echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6 |
| 19707 | if test "${ac_cv_have_decl_snprintf+set}" = set; then |
| 19708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19709 | else |
| 19710 | cat >conftest.$ac_ext <<_ACEOF |
| 19711 | /* confdefs.h. */ |
| 19712 | _ACEOF |
| 19713 | cat confdefs.h >>conftest.$ac_ext |
| 19714 | cat >>conftest.$ac_ext <<_ACEOF |
| 19715 | /* end confdefs.h. */ |
| 19716 | $ac_includes_default |
| 19717 | int |
| 19718 | main () |
| 19719 | { |
| 19720 | #ifndef snprintf |
| 19721 | char *p = (char *) snprintf; |
| 19722 | #endif |
| 19723 | |
| 19724 | ; |
| 19725 | return 0; |
| 19726 | } |
| 19727 | _ACEOF |
| 19728 | rm -f conftest.$ac_objext |
| 19729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19730 | (eval $ac_compile) 2>conftest.er1 |
| 19731 | ac_status=$? |
| 19732 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19733 | rm -f conftest.er1 |
| 19734 | cat conftest.err >&5 |
| 19735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19736 | (exit $ac_status); } && |
| 19737 | { ac_try='test -z "$ac_c_werror_flag" |
| 19738 | || test ! -s conftest.err' |
| 19739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19740 | (eval $ac_try) 2>&5 |
| 19741 | ac_status=$? |
| 19742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19743 | (exit $ac_status); }; } && |
| 19744 | { ac_try='test -s conftest.$ac_objext' |
| 19745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19746 | (eval $ac_try) 2>&5 |
| 19747 | ac_status=$? |
| 19748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19749 | (exit $ac_status); }; }; then |
| 19750 | ac_cv_have_decl_snprintf=yes |
| 19751 | else |
| 19752 | echo "$as_me: failed program was:" >&5 |
| 19753 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19754 | |
| 19755 | ac_cv_have_decl_snprintf=no |
| 19756 | fi |
| 19757 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19758 | fi |
| 19759 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5 |
| 19760 | echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6 |
| 19761 | if test $ac_cv_have_decl_snprintf = yes; then |
| 19762 | |
| 19763 | cat >>confdefs.h <<_ACEOF |
| 19764 | #define HAVE_DECL_SNPRINTF 1 |
| 19765 | _ACEOF |
| 19766 | |
| 19767 | |
| 19768 | else |
| 19769 | cat >>confdefs.h <<_ACEOF |
| 19770 | #define HAVE_DECL_SNPRINTF 0 |
| 19771 | _ACEOF |
| 19772 | |
| 19773 | |
| 19774 | fi |
| 19775 | echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5 |
| 19776 | echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6 |
| 19777 | if test "${ac_cv_have_decl_vsnprintf+set}" = set; then |
| 19778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19779 | else |
| 19780 | cat >conftest.$ac_ext <<_ACEOF |
| 19781 | /* confdefs.h. */ |
| 19782 | _ACEOF |
| 19783 | cat confdefs.h >>conftest.$ac_ext |
| 19784 | cat >>conftest.$ac_ext <<_ACEOF |
| 19785 | /* end confdefs.h. */ |
| 19786 | $ac_includes_default |
| 19787 | int |
| 19788 | main () |
| 19789 | { |
| 19790 | #ifndef vsnprintf |
| 19791 | char *p = (char *) vsnprintf; |
| 19792 | #endif |
| 19793 | |
| 19794 | ; |
| 19795 | return 0; |
| 19796 | } |
| 19797 | _ACEOF |
| 19798 | rm -f conftest.$ac_objext |
| 19799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19800 | (eval $ac_compile) 2>conftest.er1 |
| 19801 | ac_status=$? |
| 19802 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19803 | rm -f conftest.er1 |
| 19804 | cat conftest.err >&5 |
| 19805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19806 | (exit $ac_status); } && |
| 19807 | { ac_try='test -z "$ac_c_werror_flag" |
| 19808 | || test ! -s conftest.err' |
| 19809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19810 | (eval $ac_try) 2>&5 |
| 19811 | ac_status=$? |
| 19812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19813 | (exit $ac_status); }; } && |
| 19814 | { ac_try='test -s conftest.$ac_objext' |
| 19815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19816 | (eval $ac_try) 2>&5 |
| 19817 | ac_status=$? |
| 19818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19819 | (exit $ac_status); }; }; then |
| 19820 | ac_cv_have_decl_vsnprintf=yes |
| 19821 | else |
| 19822 | echo "$as_me: failed program was:" >&5 |
| 19823 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19824 | |
| 19825 | ac_cv_have_decl_vsnprintf=no |
| 19826 | fi |
| 19827 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19828 | fi |
| 19829 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5 |
| 19830 | echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6 |
| 19831 | if test $ac_cv_have_decl_vsnprintf = yes; then |
| 19832 | |
| 19833 | cat >>confdefs.h <<_ACEOF |
| 19834 | #define HAVE_DECL_VSNPRINTF 1 |
| 19835 | _ACEOF |
| 19836 | |
| 19837 | |
| 19838 | else |
| 19839 | cat >>confdefs.h <<_ACEOF |
| 19840 | #define HAVE_DECL_VSNPRINTF 0 |
| 19841 | _ACEOF |
| 19842 | |
| 19843 | |
| 19844 | fi |
| 19845 | |
| 19846 | |
| 19847 | |
| 19848 | # ----------------------- # |
| 19849 | # Checks for structures. # |
| 19850 | # ----------------------- # |
| 19851 | |
| 19852 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 19853 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 19854 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 19855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19856 | else |
| 19857 | cat >conftest.$ac_ext <<_ACEOF |
| 19858 | /* confdefs.h. */ |
| 19859 | _ACEOF |
| 19860 | cat confdefs.h >>conftest.$ac_ext |
| 19861 | cat >>conftest.$ac_ext <<_ACEOF |
| 19862 | /* end confdefs.h. */ |
| 19863 | $ac_includes_default |
| 19864 | int |
| 19865 | main () |
| 19866 | { |
| 19867 | static struct stat ac_aggr; |
| 19868 | if (ac_aggr.st_blocks) |
| 19869 | return 0; |
| 19870 | ; |
| 19871 | return 0; |
| 19872 | } |
| 19873 | _ACEOF |
| 19874 | rm -f conftest.$ac_objext |
| 19875 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19876 | (eval $ac_compile) 2>conftest.er1 |
| 19877 | ac_status=$? |
| 19878 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19879 | rm -f conftest.er1 |
| 19880 | cat conftest.err >&5 |
| 19881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19882 | (exit $ac_status); } && |
| 19883 | { ac_try='test -z "$ac_c_werror_flag" |
| 19884 | || test ! -s conftest.err' |
| 19885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19886 | (eval $ac_try) 2>&5 |
| 19887 | ac_status=$? |
| 19888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19889 | (exit $ac_status); }; } && |
| 19890 | { ac_try='test -s conftest.$ac_objext' |
| 19891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19892 | (eval $ac_try) 2>&5 |
| 19893 | ac_status=$? |
| 19894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19895 | (exit $ac_status); }; }; then |
| 19896 | ac_cv_member_struct_stat_st_blocks=yes |
| 19897 | else |
| 19898 | echo "$as_me: failed program was:" >&5 |
| 19899 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19900 | |
| 19901 | cat >conftest.$ac_ext <<_ACEOF |
| 19902 | /* confdefs.h. */ |
| 19903 | _ACEOF |
| 19904 | cat confdefs.h >>conftest.$ac_ext |
| 19905 | cat >>conftest.$ac_ext <<_ACEOF |
| 19906 | /* end confdefs.h. */ |
| 19907 | $ac_includes_default |
| 19908 | int |
| 19909 | main () |
| 19910 | { |
| 19911 | static struct stat ac_aggr; |
| 19912 | if (sizeof ac_aggr.st_blocks) |
| 19913 | return 0; |
| 19914 | ; |
| 19915 | return 0; |
| 19916 | } |
| 19917 | _ACEOF |
| 19918 | rm -f conftest.$ac_objext |
| 19919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19920 | (eval $ac_compile) 2>conftest.er1 |
| 19921 | ac_status=$? |
| 19922 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19923 | rm -f conftest.er1 |
| 19924 | cat conftest.err >&5 |
| 19925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19926 | (exit $ac_status); } && |
| 19927 | { ac_try='test -z "$ac_c_werror_flag" |
| 19928 | || test ! -s conftest.err' |
| 19929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19930 | (eval $ac_try) 2>&5 |
| 19931 | ac_status=$? |
| 19932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19933 | (exit $ac_status); }; } && |
| 19934 | { ac_try='test -s conftest.$ac_objext' |
| 19935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19936 | (eval $ac_try) 2>&5 |
| 19937 | ac_status=$? |
| 19938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19939 | (exit $ac_status); }; }; then |
| 19940 | ac_cv_member_struct_stat_st_blocks=yes |
| 19941 | else |
| 19942 | echo "$as_me: failed program was:" >&5 |
| 19943 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19944 | |
| 19945 | ac_cv_member_struct_stat_st_blocks=no |
| 19946 | fi |
| 19947 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19948 | fi |
| 19949 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19950 | fi |
| 19951 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 19952 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 19953 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
| 19954 | |
| 19955 | cat >>confdefs.h <<_ACEOF |
| 19956 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 19957 | _ACEOF |
| 19958 | |
| 19959 | |
| 19960 | fi |
| 19961 | |
| 19962 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 19963 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 19964 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 19965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19966 | else |
| 19967 | cat >conftest.$ac_ext <<_ACEOF |
| 19968 | /* confdefs.h. */ |
| 19969 | _ACEOF |
| 19970 | cat confdefs.h >>conftest.$ac_ext |
| 19971 | cat >>conftest.$ac_ext <<_ACEOF |
| 19972 | /* end confdefs.h. */ |
| 19973 | $ac_includes_default |
| 19974 | int |
| 19975 | main () |
| 19976 | { |
| 19977 | static struct stat ac_aggr; |
| 19978 | if (ac_aggr.st_blksize) |
| 19979 | return 0; |
| 19980 | ; |
| 19981 | return 0; |
| 19982 | } |
| 19983 | _ACEOF |
| 19984 | rm -f conftest.$ac_objext |
| 19985 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19986 | (eval $ac_compile) 2>conftest.er1 |
| 19987 | ac_status=$? |
| 19988 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19989 | rm -f conftest.er1 |
| 19990 | cat conftest.err >&5 |
| 19991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19992 | (exit $ac_status); } && |
| 19993 | { ac_try='test -z "$ac_c_werror_flag" |
| 19994 | || test ! -s conftest.err' |
| 19995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19996 | (eval $ac_try) 2>&5 |
| 19997 | ac_status=$? |
| 19998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19999 | (exit $ac_status); }; } && |
| 20000 | { ac_try='test -s conftest.$ac_objext' |
| 20001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20002 | (eval $ac_try) 2>&5 |
| 20003 | ac_status=$? |
| 20004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20005 | (exit $ac_status); }; }; then |
| 20006 | ac_cv_member_struct_stat_st_blksize=yes |
| 20007 | else |
| 20008 | echo "$as_me: failed program was:" >&5 |
| 20009 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20010 | |
| 20011 | cat >conftest.$ac_ext <<_ACEOF |
| 20012 | /* confdefs.h. */ |
| 20013 | _ACEOF |
| 20014 | cat confdefs.h >>conftest.$ac_ext |
| 20015 | cat >>conftest.$ac_ext <<_ACEOF |
| 20016 | /* end confdefs.h. */ |
| 20017 | $ac_includes_default |
| 20018 | int |
| 20019 | main () |
| 20020 | { |
| 20021 | static struct stat ac_aggr; |
| 20022 | if (sizeof ac_aggr.st_blksize) |
| 20023 | return 0; |
| 20024 | ; |
| 20025 | return 0; |
| 20026 | } |
| 20027 | _ACEOF |
| 20028 | rm -f conftest.$ac_objext |
| 20029 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20030 | (eval $ac_compile) 2>conftest.er1 |
| 20031 | ac_status=$? |
| 20032 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20033 | rm -f conftest.er1 |
| 20034 | cat conftest.err >&5 |
| 20035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20036 | (exit $ac_status); } && |
| 20037 | { ac_try='test -z "$ac_c_werror_flag" |
| 20038 | || test ! -s conftest.err' |
| 20039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20040 | (eval $ac_try) 2>&5 |
| 20041 | ac_status=$? |
| 20042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20043 | (exit $ac_status); }; } && |
| 20044 | { ac_try='test -s conftest.$ac_objext' |
| 20045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20046 | (eval $ac_try) 2>&5 |
| 20047 | ac_status=$? |
| 20048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20049 | (exit $ac_status); }; }; then |
| 20050 | ac_cv_member_struct_stat_st_blksize=yes |
| 20051 | else |
| 20052 | echo "$as_me: failed program was:" >&5 |
| 20053 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20054 | |
| 20055 | ac_cv_member_struct_stat_st_blksize=no |
| 20056 | fi |
| 20057 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20058 | fi |
| 20059 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20060 | fi |
| 20061 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 20062 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 20063 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
| 20064 | |
| 20065 | cat >>confdefs.h <<_ACEOF |
| 20066 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 20067 | _ACEOF |
| 20068 | |
| 20069 | |
| 20070 | fi |
| 20071 | |
| 20072 | |
| 20073 | # ------------------ # |
| 20074 | # Checks for types. # |
| 20075 | # ------------------ # |
| 20076 | |
| 20077 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 20078 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 20079 | if test "${ac_cv_type_signal+set}" = set; then |
| 20080 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20081 | else |
| 20082 | cat >conftest.$ac_ext <<_ACEOF |
| 20083 | /* confdefs.h. */ |
| 20084 | _ACEOF |
| 20085 | cat confdefs.h >>conftest.$ac_ext |
| 20086 | cat >>conftest.$ac_ext <<_ACEOF |
| 20087 | /* end confdefs.h. */ |
| 20088 | #include <sys/types.h> |
| 20089 | #include <signal.h> |
| 20090 | #ifdef signal |
| 20091 | # undef signal |
| 20092 | #endif |
| 20093 | #ifdef __cplusplus |
| 20094 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 20095 | #else |
| 20096 | void (*signal ()) (); |
| 20097 | #endif |
| 20098 | |
| 20099 | int |
| 20100 | main () |
| 20101 | { |
| 20102 | int i; |
| 20103 | ; |
| 20104 | return 0; |
| 20105 | } |
| 20106 | _ACEOF |
| 20107 | rm -f conftest.$ac_objext |
| 20108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20109 | (eval $ac_compile) 2>conftest.er1 |
| 20110 | ac_status=$? |
| 20111 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20112 | rm -f conftest.er1 |
| 20113 | cat conftest.err >&5 |
| 20114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20115 | (exit $ac_status); } && |
| 20116 | { ac_try='test -z "$ac_c_werror_flag" |
| 20117 | || test ! -s conftest.err' |
| 20118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20119 | (eval $ac_try) 2>&5 |
| 20120 | ac_status=$? |
| 20121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20122 | (exit $ac_status); }; } && |
| 20123 | { ac_try='test -s conftest.$ac_objext' |
| 20124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20125 | (eval $ac_try) 2>&5 |
| 20126 | ac_status=$? |
| 20127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20128 | (exit $ac_status); }; }; then |
| 20129 | ac_cv_type_signal=void |
| 20130 | else |
| 20131 | echo "$as_me: failed program was:" >&5 |
| 20132 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20133 | |
| 20134 | ac_cv_type_signal=int |
| 20135 | fi |
| 20136 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20137 | fi |
| 20138 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 20139 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
| 20140 | |
| 20141 | cat >>confdefs.h <<_ACEOF |
| 20142 | #define RETSIGTYPE $ac_cv_type_signal |
| 20143 | _ACEOF |
| 20144 | |
| 20145 | |
| 20146 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 20147 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 20148 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 20149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20150 | else |
| 20151 | cat >conftest.$ac_ext <<_ACEOF |
| 20152 | /* confdefs.h. */ |
| 20153 | _ACEOF |
| 20154 | cat confdefs.h >>conftest.$ac_ext |
| 20155 | cat >>conftest.$ac_ext <<_ACEOF |
| 20156 | /* end confdefs.h. */ |
| 20157 | #include <sys/types.h> |
| 20158 | #include <sys/socket.h> |
| 20159 | |
| 20160 | |
| 20161 | int |
| 20162 | main () |
| 20163 | { |
| 20164 | if ((socklen_t *) 0) |
| 20165 | return 0; |
| 20166 | if (sizeof (socklen_t)) |
| 20167 | return 0; |
| 20168 | ; |
| 20169 | return 0; |
| 20170 | } |
| 20171 | _ACEOF |
| 20172 | rm -f conftest.$ac_objext |
| 20173 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20174 | (eval $ac_compile) 2>conftest.er1 |
| 20175 | ac_status=$? |
| 20176 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20177 | rm -f conftest.er1 |
| 20178 | cat conftest.err >&5 |
| 20179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20180 | (exit $ac_status); } && |
| 20181 | { ac_try='test -z "$ac_c_werror_flag" |
| 20182 | || test ! -s conftest.err' |
| 20183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20184 | (eval $ac_try) 2>&5 |
| 20185 | ac_status=$? |
| 20186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20187 | (exit $ac_status); }; } && |
| 20188 | { ac_try='test -s conftest.$ac_objext' |
| 20189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20190 | (eval $ac_try) 2>&5 |
| 20191 | ac_status=$? |
| 20192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20193 | (exit $ac_status); }; }; then |
| 20194 | ac_cv_type_socklen_t=yes |
| 20195 | else |
| 20196 | echo "$as_me: failed program was:" >&5 |
| 20197 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20198 | |
| 20199 | ac_cv_type_socklen_t=no |
| 20200 | fi |
| 20201 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20202 | fi |
| 20203 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 20204 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 20205 | if test $ac_cv_type_socklen_t = yes; then |
| 20206 | |
| 20207 | cat >>confdefs.h <<_ACEOF |
| 20208 | #define HAVE_SOCKLEN_T 1 |
| 20209 | _ACEOF |
| 20210 | |
| 20211 | |
| 20212 | fi |
| 20213 | |
| 20214 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 20215 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 20216 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 20217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20218 | else |
| 20219 | cat >conftest.$ac_ext <<_ACEOF |
| 20220 | /* confdefs.h. */ |
| 20221 | _ACEOF |
| 20222 | cat confdefs.h >>conftest.$ac_ext |
| 20223 | cat >>conftest.$ac_ext <<_ACEOF |
| 20224 | /* end confdefs.h. */ |
| 20225 | #include <stdint.h> |
| 20226 | |
| 20227 | int |
| 20228 | main () |
| 20229 | { |
| 20230 | if ((uintptr_t *) 0) |
| 20231 | return 0; |
| 20232 | if (sizeof (uintptr_t)) |
| 20233 | return 0; |
| 20234 | ; |
| 20235 | return 0; |
| 20236 | } |
| 20237 | _ACEOF |
| 20238 | rm -f conftest.$ac_objext |
| 20239 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20240 | (eval $ac_compile) 2>conftest.er1 |
| 20241 | ac_status=$? |
| 20242 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20243 | rm -f conftest.er1 |
| 20244 | cat conftest.err >&5 |
| 20245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20246 | (exit $ac_status); } && |
| 20247 | { ac_try='test -z "$ac_c_werror_flag" |
| 20248 | || test ! -s conftest.err' |
| 20249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20250 | (eval $ac_try) 2>&5 |
| 20251 | ac_status=$? |
| 20252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20253 | (exit $ac_status); }; } && |
| 20254 | { ac_try='test -s conftest.$ac_objext' |
| 20255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20256 | (eval $ac_try) 2>&5 |
| 20257 | ac_status=$? |
| 20258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20259 | (exit $ac_status); }; }; then |
| 20260 | ac_cv_type_uintptr_t=yes |
| 20261 | else |
| 20262 | echo "$as_me: failed program was:" >&5 |
| 20263 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20264 | |
| 20265 | ac_cv_type_uintptr_t=no |
| 20266 | fi |
| 20267 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20268 | fi |
| 20269 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 20270 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 20271 | if test $ac_cv_type_uintptr_t = yes; then |
| 20272 | |
| 20273 | cat >>confdefs.h <<_ACEOF |
| 20274 | #define HAVE_UINTPTR_T 1 |
| 20275 | _ACEOF |
| 20276 | |
| 20277 | |
| 20278 | fi |
| 20279 | |
| 20280 | |
| 20281 | # ------------------------------------- # |
| 20282 | # Checks for compiler characteristics. # |
| 20283 | # ------------------------------------- # |
| 20284 | |
| 20285 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 20286 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 20287 | if test "${ac_cv_c_const+set}" = set; then |
| 20288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20289 | else |
| 20290 | cat >conftest.$ac_ext <<_ACEOF |
| 20291 | /* confdefs.h. */ |
| 20292 | _ACEOF |
| 20293 | cat confdefs.h >>conftest.$ac_ext |
| 20294 | cat >>conftest.$ac_ext <<_ACEOF |
| 20295 | /* end confdefs.h. */ |
| 20296 | |
| 20297 | int |
| 20298 | main () |
| 20299 | { |
| 20300 | /* FIXME: Include the comments suggested by Paul. */ |
| 20301 | #ifndef __cplusplus |
| 20302 | /* Ultrix mips cc rejects this. */ |
| 20303 | typedef int charset[2]; |
| 20304 | const charset x; |
| 20305 | /* SunOS 4.1.1 cc rejects this. */ |
| 20306 | char const *const *ccp; |
| 20307 | char **p; |
| 20308 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 20309 | struct point {int x, y;}; |
| 20310 | static struct point const zero = {0,0}; |
| 20311 | /* AIX XL C 1.02.0.0 rejects this. |
| 20312 | It does not let you subtract one const X* pointer from another in |
| 20313 | an arm of an if-expression whose if-part is not a constant |
| 20314 | expression */ |
| 20315 | const char *g = "string"; |
| 20316 | ccp = &g + (g ? g-g : 0); |
| 20317 | /* HPUX 7.0 cc rejects these. */ |
| 20318 | ++ccp; |
| 20319 | p = (char**) ccp; |
| 20320 | ccp = (char const *const *) p; |
| 20321 | { /* SCO 3.2v4 cc rejects this. */ |
| 20322 | char *t; |
| 20323 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 20324 | |
| 20325 | *t++ = 0; |
| 20326 | } |
| 20327 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 20328 | int x[] = {25, 17}; |
| 20329 | const int *foo = &x[0]; |
| 20330 | ++foo; |
| 20331 | } |
| 20332 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 20333 | typedef const int *iptr; |
| 20334 | iptr p = 0; |
| 20335 | ++p; |
| 20336 | } |
| 20337 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 20338 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 20339 | struct s { int j; const int *ap[3]; }; |
| 20340 | struct s *b; b->j = 5; |
| 20341 | } |
| 20342 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 20343 | const int foo = 10; |
| 20344 | } |
| 20345 | #endif |
| 20346 | |
| 20347 | ; |
| 20348 | return 0; |
| 20349 | } |
| 20350 | _ACEOF |
| 20351 | rm -f conftest.$ac_objext |
| 20352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20353 | (eval $ac_compile) 2>conftest.er1 |
| 20354 | ac_status=$? |
| 20355 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20356 | rm -f conftest.er1 |
| 20357 | cat conftest.err >&5 |
| 20358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20359 | (exit $ac_status); } && |
| 20360 | { ac_try='test -z "$ac_c_werror_flag" |
| 20361 | || test ! -s conftest.err' |
| 20362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20363 | (eval $ac_try) 2>&5 |
| 20364 | ac_status=$? |
| 20365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20366 | (exit $ac_status); }; } && |
| 20367 | { ac_try='test -s conftest.$ac_objext' |
| 20368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20369 | (eval $ac_try) 2>&5 |
| 20370 | ac_status=$? |
| 20371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20372 | (exit $ac_status); }; }; then |
| 20373 | ac_cv_c_const=yes |
| 20374 | else |
| 20375 | echo "$as_me: failed program was:" >&5 |
| 20376 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20377 | |
| 20378 | ac_cv_c_const=no |
| 20379 | fi |
| 20380 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20381 | fi |
| 20382 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 20383 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
| 20384 | if test $ac_cv_c_const = no; then |
| 20385 | |
| 20386 | cat >>confdefs.h <<\_ACEOF |
| 20387 | #define const |
| 20388 | _ACEOF |
| 20389 | |
| 20390 | fi |
| 20391 | |
| 20392 | echo "$as_me:$LINENO: checking for inline" >&5 |
| 20393 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
| 20394 | if test "${ac_cv_c_inline+set}" = set; then |
| 20395 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20396 | else |
| 20397 | ac_cv_c_inline=no |
| 20398 | for ac_kw in inline __inline__ __inline; do |
| 20399 | cat >conftest.$ac_ext <<_ACEOF |
| 20400 | /* confdefs.h. */ |
| 20401 | _ACEOF |
| 20402 | cat confdefs.h >>conftest.$ac_ext |
| 20403 | cat >>conftest.$ac_ext <<_ACEOF |
| 20404 | /* end confdefs.h. */ |
| 20405 | #ifndef __cplusplus |
| 20406 | typedef int foo_t; |
| 20407 | static $ac_kw foo_t static_foo () {return 0; } |
| 20408 | $ac_kw foo_t foo () {return 0; } |
| 20409 | #endif |
| 20410 | |
| 20411 | _ACEOF |
| 20412 | rm -f conftest.$ac_objext |
| 20413 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20414 | (eval $ac_compile) 2>conftest.er1 |
| 20415 | ac_status=$? |
| 20416 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20417 | rm -f conftest.er1 |
| 20418 | cat conftest.err >&5 |
| 20419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20420 | (exit $ac_status); } && |
| 20421 | { ac_try='test -z "$ac_c_werror_flag" |
| 20422 | || test ! -s conftest.err' |
| 20423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20424 | (eval $ac_try) 2>&5 |
| 20425 | ac_status=$? |
| 20426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20427 | (exit $ac_status); }; } && |
| 20428 | { ac_try='test -s conftest.$ac_objext' |
| 20429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20430 | (eval $ac_try) 2>&5 |
| 20431 | ac_status=$? |
| 20432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20433 | (exit $ac_status); }; }; then |
| 20434 | ac_cv_c_inline=$ac_kw; break |
| 20435 | else |
| 20436 | echo "$as_me: failed program was:" >&5 |
| 20437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20438 | |
| 20439 | fi |
| 20440 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20441 | done |
| 20442 | |
| 20443 | fi |
| 20444 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 20445 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
| 20446 | |
| 20447 | |
| 20448 | case $ac_cv_c_inline in |
| 20449 | inline | yes) ;; |
| 20450 | *) |
| 20451 | case $ac_cv_c_inline in |
| 20452 | no) ac_val=;; |
| 20453 | *) ac_val=$ac_cv_c_inline;; |
| 20454 | esac |
| 20455 | cat >>confdefs.h <<_ACEOF |
| 20456 | #ifndef __cplusplus |
| 20457 | #define inline $ac_val |
| 20458 | #endif |
| 20459 | _ACEOF |
| 20460 | ;; |
| 20461 | esac |
| 20462 | |
| 20463 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 20464 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 20465 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 20466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20467 | else |
| 20468 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 20469 | cat >conftest.$ac_ext <<_ACEOF |
| 20470 | /* confdefs.h. */ |
| 20471 | _ACEOF |
| 20472 | cat confdefs.h >>conftest.$ac_ext |
| 20473 | cat >>conftest.$ac_ext <<_ACEOF |
| 20474 | /* end confdefs.h. */ |
| 20475 | #include <sys/types.h> |
| 20476 | #include <sys/param.h> |
| 20477 | |
| 20478 | int |
| 20479 | main () |
| 20480 | { |
| 20481 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 20482 | bogus endian macros |
| 20483 | #endif |
| 20484 | |
| 20485 | ; |
| 20486 | return 0; |
| 20487 | } |
| 20488 | _ACEOF |
| 20489 | rm -f conftest.$ac_objext |
| 20490 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20491 | (eval $ac_compile) 2>conftest.er1 |
| 20492 | ac_status=$? |
| 20493 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20494 | rm -f conftest.er1 |
| 20495 | cat conftest.err >&5 |
| 20496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20497 | (exit $ac_status); } && |
| 20498 | { ac_try='test -z "$ac_c_werror_flag" |
| 20499 | || test ! -s conftest.err' |
| 20500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20501 | (eval $ac_try) 2>&5 |
| 20502 | ac_status=$? |
| 20503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20504 | (exit $ac_status); }; } && |
| 20505 | { ac_try='test -s conftest.$ac_objext' |
| 20506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20507 | (eval $ac_try) 2>&5 |
| 20508 | ac_status=$? |
| 20509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20510 | (exit $ac_status); }; }; then |
| 20511 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 20512 | cat >conftest.$ac_ext <<_ACEOF |
| 20513 | /* confdefs.h. */ |
| 20514 | _ACEOF |
| 20515 | cat confdefs.h >>conftest.$ac_ext |
| 20516 | cat >>conftest.$ac_ext <<_ACEOF |
| 20517 | /* end confdefs.h. */ |
| 20518 | #include <sys/types.h> |
| 20519 | #include <sys/param.h> |
| 20520 | |
| 20521 | int |
| 20522 | main () |
| 20523 | { |
| 20524 | #if BYTE_ORDER != BIG_ENDIAN |
| 20525 | not big endian |
| 20526 | #endif |
| 20527 | |
| 20528 | ; |
| 20529 | return 0; |
| 20530 | } |
| 20531 | _ACEOF |
| 20532 | rm -f conftest.$ac_objext |
| 20533 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20534 | (eval $ac_compile) 2>conftest.er1 |
| 20535 | ac_status=$? |
| 20536 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20537 | rm -f conftest.er1 |
| 20538 | cat conftest.err >&5 |
| 20539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20540 | (exit $ac_status); } && |
| 20541 | { ac_try='test -z "$ac_c_werror_flag" |
| 20542 | || test ! -s conftest.err' |
| 20543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20544 | (eval $ac_try) 2>&5 |
| 20545 | ac_status=$? |
| 20546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20547 | (exit $ac_status); }; } && |
| 20548 | { ac_try='test -s conftest.$ac_objext' |
| 20549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20550 | (eval $ac_try) 2>&5 |
| 20551 | ac_status=$? |
| 20552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20553 | (exit $ac_status); }; }; then |
| 20554 | ac_cv_c_bigendian=yes |
| 20555 | else |
| 20556 | echo "$as_me: failed program was:" >&5 |
| 20557 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20558 | |
| 20559 | ac_cv_c_bigendian=no |
| 20560 | fi |
| 20561 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20562 | else |
| 20563 | echo "$as_me: failed program was:" >&5 |
| 20564 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20565 | |
| 20566 | # It does not; compile a test program. |
| 20567 | if test "$cross_compiling" = yes; then |
| 20568 | # try to guess the endianness by grepping values into an object file |
| 20569 | ac_cv_c_bigendian=unknown |
| 20570 | cat >conftest.$ac_ext <<_ACEOF |
| 20571 | /* confdefs.h. */ |
| 20572 | _ACEOF |
| 20573 | cat confdefs.h >>conftest.$ac_ext |
| 20574 | cat >>conftest.$ac_ext <<_ACEOF |
| 20575 | /* end confdefs.h. */ |
| 20576 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 20577 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 20578 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 20579 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 20580 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 20581 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 20582 | int |
| 20583 | main () |
| 20584 | { |
| 20585 | _ascii (); _ebcdic (); |
| 20586 | ; |
| 20587 | return 0; |
| 20588 | } |
| 20589 | _ACEOF |
| 20590 | rm -f conftest.$ac_objext |
| 20591 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20592 | (eval $ac_compile) 2>conftest.er1 |
| 20593 | ac_status=$? |
| 20594 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20595 | rm -f conftest.er1 |
| 20596 | cat conftest.err >&5 |
| 20597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20598 | (exit $ac_status); } && |
| 20599 | { ac_try='test -z "$ac_c_werror_flag" |
| 20600 | || test ! -s conftest.err' |
| 20601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20602 | (eval $ac_try) 2>&5 |
| 20603 | ac_status=$? |
| 20604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20605 | (exit $ac_status); }; } && |
| 20606 | { ac_try='test -s conftest.$ac_objext' |
| 20607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20608 | (eval $ac_try) 2>&5 |
| 20609 | ac_status=$? |
| 20610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20611 | (exit $ac_status); }; }; then |
| 20612 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 20613 | ac_cv_c_bigendian=yes |
| 20614 | fi |
| 20615 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 20616 | if test "$ac_cv_c_bigendian" = unknown; then |
| 20617 | ac_cv_c_bigendian=no |
| 20618 | else |
| 20619 | # finding both strings is unlikely to happen, but who knows? |
| 20620 | ac_cv_c_bigendian=unknown |
| 20621 | fi |
| 20622 | fi |
| 20623 | else |
| 20624 | echo "$as_me: failed program was:" >&5 |
| 20625 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20626 | |
| 20627 | fi |
| 20628 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20629 | else |
| 20630 | cat >conftest.$ac_ext <<_ACEOF |
| 20631 | /* confdefs.h. */ |
| 20632 | _ACEOF |
| 20633 | cat confdefs.h >>conftest.$ac_ext |
| 20634 | cat >>conftest.$ac_ext <<_ACEOF |
| 20635 | /* end confdefs.h. */ |
| 20636 | int |
| 20637 | main () |
| 20638 | { |
| 20639 | /* Are we little or big endian? From Harbison&Steele. */ |
| 20640 | union |
| 20641 | { |
| 20642 | long l; |
| 20643 | char c[sizeof (long)]; |
| 20644 | } u; |
| 20645 | u.l = 1; |
| 20646 | exit (u.c[sizeof (long) - 1] == 1); |
| 20647 | } |
| 20648 | _ACEOF |
| 20649 | rm -f conftest$ac_exeext |
| 20650 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20651 | (eval $ac_link) 2>&5 |
| 20652 | ac_status=$? |
| 20653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20654 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20656 | (eval $ac_try) 2>&5 |
| 20657 | ac_status=$? |
| 20658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20659 | (exit $ac_status); }; }; then |
| 20660 | ac_cv_c_bigendian=no |
| 20661 | else |
| 20662 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20663 | echo "$as_me: failed program was:" >&5 |
| 20664 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20665 | |
| 20666 | ( exit $ac_status ) |
| 20667 | ac_cv_c_bigendian=yes |
| 20668 | fi |
| 20669 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 20670 | fi |
| 20671 | fi |
| 20672 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20673 | fi |
| 20674 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 20675 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 20676 | case $ac_cv_c_bigendian in |
| 20677 | yes) |
| 20678 | |
| 20679 | cat >>confdefs.h <<\_ACEOF |
| 20680 | #define WORDS_BIGENDIAN 1 |
| 20681 | _ACEOF |
| 20682 | ;; |
| 20683 | no) |
| 20684 | ;; |
| 20685 | *) |
| 20686 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 20687 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 20688 | echo "$as_me: error: unknown endianness |
| 20689 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 20690 | { (exit 1); exit 1; }; } ;; |
| 20691 | esac |
| 20692 | |
| 20693 | |
| 20694 | # ------------------------------ # |
| 20695 | # Checks for library functions. # |
| 20696 | # ------------------------------ # |
| 20697 | |
| 20698 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 20699 | # for constant arguments. Useless! |
| 20700 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 20701 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
| 20702 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 20703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20704 | else |
| 20705 | cat >conftest.$ac_ext <<_ACEOF |
| 20706 | /* confdefs.h. */ |
| 20707 | _ACEOF |
| 20708 | cat confdefs.h >>conftest.$ac_ext |
| 20709 | cat >>conftest.$ac_ext <<_ACEOF |
| 20710 | /* end confdefs.h. */ |
| 20711 | #include <alloca.h> |
| 20712 | int |
| 20713 | main () |
| 20714 | { |
| 20715 | char *p = (char *) alloca (2 * sizeof (int)); |
| 20716 | ; |
| 20717 | return 0; |
| 20718 | } |
| 20719 | _ACEOF |
| 20720 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20721 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20722 | (eval $ac_link) 2>conftest.er1 |
| 20723 | ac_status=$? |
| 20724 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20725 | rm -f conftest.er1 |
| 20726 | cat conftest.err >&5 |
| 20727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20728 | (exit $ac_status); } && |
| 20729 | { ac_try='test -z "$ac_c_werror_flag" |
| 20730 | || test ! -s conftest.err' |
| 20731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20732 | (eval $ac_try) 2>&5 |
| 20733 | ac_status=$? |
| 20734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20735 | (exit $ac_status); }; } && |
| 20736 | { ac_try='test -s conftest$ac_exeext' |
| 20737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20738 | (eval $ac_try) 2>&5 |
| 20739 | ac_status=$? |
| 20740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20741 | (exit $ac_status); }; }; then |
| 20742 | ac_cv_working_alloca_h=yes |
| 20743 | else |
| 20744 | echo "$as_me: failed program was:" >&5 |
| 20745 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20746 | |
| 20747 | ac_cv_working_alloca_h=no |
| 20748 | fi |
| 20749 | rm -f conftest.err conftest.$ac_objext \ |
| 20750 | conftest$ac_exeext conftest.$ac_ext |
| 20751 | fi |
| 20752 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 20753 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
| 20754 | if test $ac_cv_working_alloca_h = yes; then |
| 20755 | |
| 20756 | cat >>confdefs.h <<\_ACEOF |
| 20757 | #define HAVE_ALLOCA_H 1 |
| 20758 | _ACEOF |
| 20759 | |
| 20760 | fi |
| 20761 | |
| 20762 | echo "$as_me:$LINENO: checking for alloca" >&5 |
| 20763 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
| 20764 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 20765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20766 | else |
| 20767 | cat >conftest.$ac_ext <<_ACEOF |
| 20768 | /* confdefs.h. */ |
| 20769 | _ACEOF |
| 20770 | cat confdefs.h >>conftest.$ac_ext |
| 20771 | cat >>conftest.$ac_ext <<_ACEOF |
| 20772 | /* end confdefs.h. */ |
| 20773 | #ifdef __GNUC__ |
| 20774 | # define alloca __builtin_alloca |
| 20775 | #else |
| 20776 | # ifdef _MSC_VER |
| 20777 | # include <malloc.h> |
| 20778 | # define alloca _alloca |
| 20779 | # else |
| 20780 | # if HAVE_ALLOCA_H |
| 20781 | # include <alloca.h> |
| 20782 | # else |
| 20783 | # ifdef _AIX |
| 20784 | #pragma alloca |
| 20785 | # else |
| 20786 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 20787 | char *alloca (); |
| 20788 | # endif |
| 20789 | # endif |
| 20790 | # endif |
| 20791 | # endif |
| 20792 | #endif |
| 20793 | |
| 20794 | int |
| 20795 | main () |
| 20796 | { |
| 20797 | char *p = (char *) alloca (1); |
| 20798 | ; |
| 20799 | return 0; |
| 20800 | } |
| 20801 | _ACEOF |
| 20802 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20803 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20804 | (eval $ac_link) 2>conftest.er1 |
| 20805 | ac_status=$? |
| 20806 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20807 | rm -f conftest.er1 |
| 20808 | cat conftest.err >&5 |
| 20809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20810 | (exit $ac_status); } && |
| 20811 | { ac_try='test -z "$ac_c_werror_flag" |
| 20812 | || test ! -s conftest.err' |
| 20813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20814 | (eval $ac_try) 2>&5 |
| 20815 | ac_status=$? |
| 20816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20817 | (exit $ac_status); }; } && |
| 20818 | { ac_try='test -s conftest$ac_exeext' |
| 20819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20820 | (eval $ac_try) 2>&5 |
| 20821 | ac_status=$? |
| 20822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20823 | (exit $ac_status); }; }; then |
| 20824 | ac_cv_func_alloca_works=yes |
| 20825 | else |
| 20826 | echo "$as_me: failed program was:" >&5 |
| 20827 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20828 | |
| 20829 | ac_cv_func_alloca_works=no |
| 20830 | fi |
| 20831 | rm -f conftest.err conftest.$ac_objext \ |
| 20832 | conftest$ac_exeext conftest.$ac_ext |
| 20833 | fi |
| 20834 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 20835 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
| 20836 | |
| 20837 | if test $ac_cv_func_alloca_works = yes; then |
| 20838 | |
| 20839 | cat >>confdefs.h <<\_ACEOF |
| 20840 | #define HAVE_ALLOCA 1 |
| 20841 | _ACEOF |
| 20842 | |
| 20843 | else |
| 20844 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 20845 | # that cause trouble. Some versions do not even contain alloca or |
| 20846 | # contain a buggy version. If you still want to use their alloca, |
| 20847 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 20848 | |
| 20849 | ALLOCA=alloca.$ac_objext |
| 20850 | |
| 20851 | cat >>confdefs.h <<\_ACEOF |
| 20852 | #define C_ALLOCA 1 |
| 20853 | _ACEOF |
| 20854 | |
| 20855 | |
| 20856 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 20857 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
| 20858 | if test "${ac_cv_os_cray+set}" = set; then |
| 20859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20860 | else |
| 20861 | cat >conftest.$ac_ext <<_ACEOF |
| 20862 | /* confdefs.h. */ |
| 20863 | _ACEOF |
| 20864 | cat confdefs.h >>conftest.$ac_ext |
| 20865 | cat >>conftest.$ac_ext <<_ACEOF |
| 20866 | /* end confdefs.h. */ |
| 20867 | #if defined(CRAY) && ! defined(CRAY2) |
| 20868 | webecray |
| 20869 | #else |
| 20870 | wenotbecray |
| 20871 | #endif |
| 20872 | |
| 20873 | _ACEOF |
| 20874 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 20875 | $EGREP "webecray" >/dev/null 2>&1; then |
| 20876 | ac_cv_os_cray=yes |
| 20877 | else |
| 20878 | ac_cv_os_cray=no |
| 20879 | fi |
| 20880 | rm -f conftest* |
| 20881 | |
| 20882 | fi |
| 20883 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 20884 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
| 20885 | if test $ac_cv_os_cray = yes; then |
| 20886 | for ac_func in _getb67 GETB67 getb67; do |
| 20887 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20888 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20889 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 20890 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 20891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20892 | else |
| 20893 | cat >conftest.$ac_ext <<_ACEOF |
| 20894 | /* confdefs.h. */ |
| 20895 | _ACEOF |
| 20896 | cat confdefs.h >>conftest.$ac_ext |
| 20897 | cat >>conftest.$ac_ext <<_ACEOF |
| 20898 | /* end confdefs.h. */ |
| 20899 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20900 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20901 | #define $ac_func innocuous_$ac_func |
| 20902 | |
| 20903 | /* System header to define __stub macros and hopefully few prototypes, |
| 20904 | which can conflict with char $ac_func (); below. |
| 20905 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20906 | <limits.h> exists even on freestanding compilers. */ |
| 20907 | |
| 20908 | #ifdef __STDC__ |
| 20909 | # include <limits.h> |
| 20910 | #else |
| 20911 | # include <assert.h> |
| 20912 | #endif |
| 20913 | |
| 20914 | #undef $ac_func |
| 20915 | |
| 20916 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 20917 | #ifdef __cplusplus |
| 20918 | extern "C" |
| 20919 | { |
| 20920 | #endif |
| 20921 | /* We use char because int might match the return type of a gcc2 |
| 20922 | builtin and then its argument prototype would still apply. */ |
| 20923 | char $ac_func (); |
| 20924 | /* The GNU C library defines this for functions which it implements |
| 20925 | to always fail with ENOSYS. Some functions are actually named |
| 20926 | something starting with __ and the normal name is an alias. */ |
| 20927 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 20928 | choke me |
| 20929 | #else |
| 20930 | char (*f) () = $ac_func; |
| 20931 | #endif |
| 20932 | #ifdef __cplusplus |
| 20933 | } |
| 20934 | #endif |
| 20935 | |
| 20936 | int |
| 20937 | main () |
| 20938 | { |
| 20939 | return f != $ac_func; |
| 20940 | ; |
| 20941 | return 0; |
| 20942 | } |
| 20943 | _ACEOF |
| 20944 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20945 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20946 | (eval $ac_link) 2>conftest.er1 |
| 20947 | ac_status=$? |
| 20948 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20949 | rm -f conftest.er1 |
| 20950 | cat conftest.err >&5 |
| 20951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20952 | (exit $ac_status); } && |
| 20953 | { ac_try='test -z "$ac_c_werror_flag" |
| 20954 | || test ! -s conftest.err' |
| 20955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20956 | (eval $ac_try) 2>&5 |
| 20957 | ac_status=$? |
| 20958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20959 | (exit $ac_status); }; } && |
| 20960 | { ac_try='test -s conftest$ac_exeext' |
| 20961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20962 | (eval $ac_try) 2>&5 |
| 20963 | ac_status=$? |
| 20964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20965 | (exit $ac_status); }; }; then |
| 20966 | eval "$as_ac_var=yes" |
| 20967 | else |
| 20968 | echo "$as_me: failed program was:" >&5 |
| 20969 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20970 | |
| 20971 | eval "$as_ac_var=no" |
| 20972 | fi |
| 20973 | rm -f conftest.err conftest.$ac_objext \ |
| 20974 | conftest$ac_exeext conftest.$ac_ext |
| 20975 | fi |
| 20976 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 20977 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 20978 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 20979 | |
| 20980 | cat >>confdefs.h <<_ACEOF |
| 20981 | #define CRAY_STACKSEG_END $ac_func |
| 20982 | _ACEOF |
| 20983 | |
| 20984 | break |
| 20985 | fi |
| 20986 | |
| 20987 | done |
| 20988 | fi |
| 20989 | |
| 20990 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 20991 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
| 20992 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 20993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20994 | else |
| 20995 | if test "$cross_compiling" = yes; then |
| 20996 | ac_cv_c_stack_direction=0 |
| 20997 | else |
| 20998 | cat >conftest.$ac_ext <<_ACEOF |
| 20999 | /* confdefs.h. */ |
| 21000 | _ACEOF |
| 21001 | cat confdefs.h >>conftest.$ac_ext |
| 21002 | cat >>conftest.$ac_ext <<_ACEOF |
| 21003 | /* end confdefs.h. */ |
| 21004 | int |
| 21005 | find_stack_direction () |
| 21006 | { |
| 21007 | static char *addr = 0; |
| 21008 | auto char dummy; |
| 21009 | if (addr == 0) |
| 21010 | { |
| 21011 | addr = &dummy; |
| 21012 | return find_stack_direction (); |
| 21013 | } |
| 21014 | else |
| 21015 | return (&dummy > addr) ? 1 : -1; |
| 21016 | } |
| 21017 | |
| 21018 | int |
| 21019 | main () |
| 21020 | { |
| 21021 | exit (find_stack_direction () < 0); |
| 21022 | } |
| 21023 | _ACEOF |
| 21024 | rm -f conftest$ac_exeext |
| 21025 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21026 | (eval $ac_link) 2>&5 |
| 21027 | ac_status=$? |
| 21028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21029 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21031 | (eval $ac_try) 2>&5 |
| 21032 | ac_status=$? |
| 21033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21034 | (exit $ac_status); }; }; then |
| 21035 | ac_cv_c_stack_direction=1 |
| 21036 | else |
| 21037 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21038 | echo "$as_me: failed program was:" >&5 |
| 21039 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21040 | |
| 21041 | ( exit $ac_status ) |
| 21042 | ac_cv_c_stack_direction=-1 |
| 21043 | fi |
| 21044 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 21045 | fi |
| 21046 | fi |
| 21047 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 21048 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
| 21049 | |
| 21050 | cat >>confdefs.h <<_ACEOF |
| 21051 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 21052 | _ACEOF |
| 21053 | |
| 21054 | |
| 21055 | fi |
| 21056 | |
| 21057 | |
| 21058 | |
| 21059 | for ac_header in stdlib.h unistd.h |
| 21060 | do |
| 21061 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 21062 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 21063 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 21064 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 21065 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 21066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21067 | fi |
| 21068 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 21069 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 21070 | else |
| 21071 | # Is the header compilable? |
| 21072 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 21073 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 21074 | cat >conftest.$ac_ext <<_ACEOF |
| 21075 | /* confdefs.h. */ |
| 21076 | _ACEOF |
| 21077 | cat confdefs.h >>conftest.$ac_ext |
| 21078 | cat >>conftest.$ac_ext <<_ACEOF |
| 21079 | /* end confdefs.h. */ |
| 21080 | $ac_includes_default |
| 21081 | #include <$ac_header> |
| 21082 | _ACEOF |
| 21083 | rm -f conftest.$ac_objext |
| 21084 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21085 | (eval $ac_compile) 2>conftest.er1 |
| 21086 | ac_status=$? |
| 21087 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21088 | rm -f conftest.er1 |
| 21089 | cat conftest.err >&5 |
| 21090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21091 | (exit $ac_status); } && |
| 21092 | { ac_try='test -z "$ac_c_werror_flag" |
| 21093 | || test ! -s conftest.err' |
| 21094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21095 | (eval $ac_try) 2>&5 |
| 21096 | ac_status=$? |
| 21097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21098 | (exit $ac_status); }; } && |
| 21099 | { ac_try='test -s conftest.$ac_objext' |
| 21100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21101 | (eval $ac_try) 2>&5 |
| 21102 | ac_status=$? |
| 21103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21104 | (exit $ac_status); }; }; then |
| 21105 | ac_header_compiler=yes |
| 21106 | else |
| 21107 | echo "$as_me: failed program was:" >&5 |
| 21108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21109 | |
| 21110 | ac_header_compiler=no |
| 21111 | fi |
| 21112 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21113 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 21114 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 21115 | |
| 21116 | # Is the header present? |
| 21117 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 21118 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 21119 | cat >conftest.$ac_ext <<_ACEOF |
| 21120 | /* confdefs.h. */ |
| 21121 | _ACEOF |
| 21122 | cat confdefs.h >>conftest.$ac_ext |
| 21123 | cat >>conftest.$ac_ext <<_ACEOF |
| 21124 | /* end confdefs.h. */ |
| 21125 | #include <$ac_header> |
| 21126 | _ACEOF |
| 21127 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 21128 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 21129 | ac_status=$? |
| 21130 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21131 | rm -f conftest.er1 |
| 21132 | cat conftest.err >&5 |
| 21133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21134 | (exit $ac_status); } >/dev/null; then |
| 21135 | if test -s conftest.err; then |
| 21136 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 21137 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 21138 | else |
| 21139 | ac_cpp_err= |
| 21140 | fi |
| 21141 | else |
| 21142 | ac_cpp_err=yes |
| 21143 | fi |
| 21144 | if test -z "$ac_cpp_err"; then |
| 21145 | ac_header_preproc=yes |
| 21146 | else |
| 21147 | echo "$as_me: failed program was:" >&5 |
| 21148 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21149 | |
| 21150 | ac_header_preproc=no |
| 21151 | fi |
| 21152 | rm -f conftest.err conftest.$ac_ext |
| 21153 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 21154 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 21155 | |
| 21156 | # So? What about this header? |
| 21157 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 21158 | yes:no: ) |
| 21159 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 21160 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 21161 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 21162 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 21163 | ac_header_preproc=yes |
| 21164 | ;; |
| 21165 | no:yes:* ) |
| 21166 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 21167 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 21168 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 21169 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 21170 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 21171 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 21172 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 21173 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 21174 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 21175 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 21176 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 21177 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 21178 | ( |
| 21179 | cat <<\_ASBOX |
| 21180 | ## ------------------------------------------ ## |
| 21181 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 21182 | ## ------------------------------------------ ## |
| 21183 | _ASBOX |
| 21184 | ) | |
| 21185 | sed "s/^/$as_me: WARNING: /" >&2 |
| 21186 | ;; |
| 21187 | esac |
| 21188 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 21189 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 21190 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 21191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21192 | else |
| 21193 | eval "$as_ac_Header=\$ac_header_preproc" |
| 21194 | fi |
| 21195 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 21196 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 21197 | |
| 21198 | fi |
| 21199 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 21200 | cat >>confdefs.h <<_ACEOF |
| 21201 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 21202 | _ACEOF |
| 21203 | |
| 21204 | fi |
| 21205 | |
| 21206 | done |
| 21207 | |
| 21208 | |
| 21209 | for ac_func in getpagesize |
| 21210 | do |
| 21211 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 21212 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 21213 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 21214 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 21215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21216 | else |
| 21217 | cat >conftest.$ac_ext <<_ACEOF |
| 21218 | /* confdefs.h. */ |
| 21219 | _ACEOF |
| 21220 | cat confdefs.h >>conftest.$ac_ext |
| 21221 | cat >>conftest.$ac_ext <<_ACEOF |
| 21222 | /* end confdefs.h. */ |
| 21223 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 21224 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 21225 | #define $ac_func innocuous_$ac_func |
| 21226 | |
| 21227 | /* System header to define __stub macros and hopefully few prototypes, |
| 21228 | which can conflict with char $ac_func (); below. |
| 21229 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 21230 | <limits.h> exists even on freestanding compilers. */ |
| 21231 | |
| 21232 | #ifdef __STDC__ |
| 21233 | # include <limits.h> |
| 21234 | #else |
| 21235 | # include <assert.h> |
| 21236 | #endif |
| 21237 | |
| 21238 | #undef $ac_func |
| 21239 | |
| 21240 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 21241 | #ifdef __cplusplus |
| 21242 | extern "C" |
| 21243 | { |
| 21244 | #endif |
| 21245 | /* We use char because int might match the return type of a gcc2 |
| 21246 | builtin and then its argument prototype would still apply. */ |
| 21247 | char $ac_func (); |
| 21248 | /* The GNU C library defines this for functions which it implements |
| 21249 | to always fail with ENOSYS. Some functions are actually named |
| 21250 | something starting with __ and the normal name is an alias. */ |
| 21251 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 21252 | choke me |
| 21253 | #else |
| 21254 | char (*f) () = $ac_func; |
| 21255 | #endif |
| 21256 | #ifdef __cplusplus |
| 21257 | } |
| 21258 | #endif |
| 21259 | |
| 21260 | int |
| 21261 | main () |
| 21262 | { |
| 21263 | return f != $ac_func; |
| 21264 | ; |
| 21265 | return 0; |
| 21266 | } |
| 21267 | _ACEOF |
| 21268 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21269 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21270 | (eval $ac_link) 2>conftest.er1 |
| 21271 | ac_status=$? |
| 21272 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21273 | rm -f conftest.er1 |
| 21274 | cat conftest.err >&5 |
| 21275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21276 | (exit $ac_status); } && |
| 21277 | { ac_try='test -z "$ac_c_werror_flag" |
| 21278 | || test ! -s conftest.err' |
| 21279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21280 | (eval $ac_try) 2>&5 |
| 21281 | ac_status=$? |
| 21282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21283 | (exit $ac_status); }; } && |
| 21284 | { ac_try='test -s conftest$ac_exeext' |
| 21285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21286 | (eval $ac_try) 2>&5 |
| 21287 | ac_status=$? |
| 21288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21289 | (exit $ac_status); }; }; then |
| 21290 | eval "$as_ac_var=yes" |
| 21291 | else |
| 21292 | echo "$as_me: failed program was:" >&5 |
| 21293 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21294 | |
| 21295 | eval "$as_ac_var=no" |
| 21296 | fi |
| 21297 | rm -f conftest.err conftest.$ac_objext \ |
| 21298 | conftest$ac_exeext conftest.$ac_ext |
| 21299 | fi |
| 21300 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 21301 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 21302 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 21303 | cat >>confdefs.h <<_ACEOF |
| 21304 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 21305 | _ACEOF |
| 21306 | |
| 21307 | fi |
| 21308 | done |
| 21309 | |
| 21310 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 21311 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
| 21312 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 21313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21314 | else |
| 21315 | if test "$cross_compiling" = yes; then |
| 21316 | ac_cv_func_mmap_fixed_mapped=no |
| 21317 | else |
| 21318 | cat >conftest.$ac_ext <<_ACEOF |
| 21319 | /* confdefs.h. */ |
| 21320 | _ACEOF |
| 21321 | cat confdefs.h >>conftest.$ac_ext |
| 21322 | cat >>conftest.$ac_ext <<_ACEOF |
| 21323 | /* end confdefs.h. */ |
| 21324 | $ac_includes_default |
| 21325 | /* malloc might have been renamed as rpl_malloc. */ |
| 21326 | #undef malloc |
| 21327 | |
| 21328 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 21329 | Here is a matrix of mmap possibilities: |
| 21330 | mmap private not fixed |
| 21331 | mmap private fixed at somewhere currently unmapped |
| 21332 | mmap private fixed at somewhere already mapped |
| 21333 | mmap shared not fixed |
| 21334 | mmap shared fixed at somewhere currently unmapped |
| 21335 | mmap shared fixed at somewhere already mapped |
| 21336 | For private mappings, we should verify that changes cannot be read() |
| 21337 | back from the file, nor mmap's back from the file at a different |
| 21338 | address. (There have been systems where private was not correctly |
| 21339 | implemented like the infamous i386 svr4.0, and systems where the |
| 21340 | VM page cache was not coherent with the file system buffer cache |
| 21341 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 21342 | For shared mappings, we should conversely verify that changes get |
| 21343 | propagated back to all the places they're supposed to be. |
| 21344 | |
| 21345 | Grep wants private fixed already mapped. |
| 21346 | The main things grep needs to know about mmap are: |
| 21347 | * does it exist and is it safe to write into the mmap'd area |
| 21348 | * how to use it (BSD variants) */ |
| 21349 | |
| 21350 | #include <fcntl.h> |
| 21351 | #include <sys/mman.h> |
| 21352 | |
| 21353 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
| 21354 | char *malloc (); |
| 21355 | #endif |
| 21356 | |
| 21357 | /* This mess was copied from the GNU getpagesize.h. */ |
| 21358 | #if !HAVE_GETPAGESIZE |
| 21359 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 21360 | # if !HAVE_SYS_PARAM_H |
| 21361 | # define HAVE_SYS_PARAM_H 1 |
| 21362 | # endif |
| 21363 | |
| 21364 | # ifdef _SC_PAGESIZE |
| 21365 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 21366 | # else /* no _SC_PAGESIZE */ |
| 21367 | # if HAVE_SYS_PARAM_H |
| 21368 | # include <sys/param.h> |
| 21369 | # ifdef EXEC_PAGESIZE |
| 21370 | # define getpagesize() EXEC_PAGESIZE |
| 21371 | # else /* no EXEC_PAGESIZE */ |
| 21372 | # ifdef NBPG |
| 21373 | # define getpagesize() NBPG * CLSIZE |
| 21374 | # ifndef CLSIZE |
| 21375 | # define CLSIZE 1 |
| 21376 | # endif /* no CLSIZE */ |
| 21377 | # else /* no NBPG */ |
| 21378 | # ifdef NBPC |
| 21379 | # define getpagesize() NBPC |
| 21380 | # else /* no NBPC */ |
| 21381 | # ifdef PAGESIZE |
| 21382 | # define getpagesize() PAGESIZE |
| 21383 | # endif /* PAGESIZE */ |
| 21384 | # endif /* no NBPC */ |
| 21385 | # endif /* no NBPG */ |
| 21386 | # endif /* no EXEC_PAGESIZE */ |
| 21387 | # else /* no HAVE_SYS_PARAM_H */ |
| 21388 | # define getpagesize() 8192 /* punt totally */ |
| 21389 | # endif /* no HAVE_SYS_PARAM_H */ |
| 21390 | # endif /* no _SC_PAGESIZE */ |
| 21391 | |
| 21392 | #endif /* no HAVE_GETPAGESIZE */ |
| 21393 | |
| 21394 | int |
| 21395 | main () |
| 21396 | { |
| 21397 | char *data, *data2, *data3; |
| 21398 | int i, pagesize; |
| 21399 | int fd; |
| 21400 | |
| 21401 | pagesize = getpagesize (); |
| 21402 | |
| 21403 | /* First, make a file with some known garbage in it. */ |
| 21404 | data = (char *) malloc (pagesize); |
| 21405 | if (!data) |
| 21406 | exit (1); |
| 21407 | for (i = 0; i < pagesize; ++i) |
| 21408 | *(data + i) = rand (); |
| 21409 | umask (0); |
| 21410 | fd = creat ("conftest.mmap", 0600); |
| 21411 | if (fd < 0) |
| 21412 | exit (1); |
| 21413 | if (write (fd, data, pagesize) != pagesize) |
| 21414 | exit (1); |
| 21415 | close (fd); |
| 21416 | |
| 21417 | /* Next, try to mmap the file at a fixed address which already has |
| 21418 | something else allocated at it. If we can, also make sure that |
| 21419 | we see the same garbage. */ |
| 21420 | fd = open ("conftest.mmap", O_RDWR); |
| 21421 | if (fd < 0) |
| 21422 | exit (1); |
| 21423 | data2 = (char *) malloc (2 * pagesize); |
| 21424 | if (!data2) |
| 21425 | exit (1); |
| 21426 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); |
| 21427 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 21428 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
| 21429 | exit (1); |
| 21430 | for (i = 0; i < pagesize; ++i) |
| 21431 | if (*(data + i) != *(data2 + i)) |
| 21432 | exit (1); |
| 21433 | |
| 21434 | /* Finally, make sure that changes to the mapped area do not |
| 21435 | percolate back to the file as seen by read(). (This is a bug on |
| 21436 | some variants of i386 svr4.0.) */ |
| 21437 | for (i = 0; i < pagesize; ++i) |
| 21438 | *(data2 + i) = *(data2 + i) + 1; |
| 21439 | data3 = (char *) malloc (pagesize); |
| 21440 | if (!data3) |
| 21441 | exit (1); |
| 21442 | if (read (fd, data3, pagesize) != pagesize) |
| 21443 | exit (1); |
| 21444 | for (i = 0; i < pagesize; ++i) |
| 21445 | if (*(data + i) != *(data3 + i)) |
| 21446 | exit (1); |
| 21447 | close (fd); |
| 21448 | exit (0); |
| 21449 | } |
| 21450 | _ACEOF |
| 21451 | rm -f conftest$ac_exeext |
| 21452 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21453 | (eval $ac_link) 2>&5 |
| 21454 | ac_status=$? |
| 21455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21456 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21458 | (eval $ac_try) 2>&5 |
| 21459 | ac_status=$? |
| 21460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21461 | (exit $ac_status); }; }; then |
| 21462 | ac_cv_func_mmap_fixed_mapped=yes |
| 21463 | else |
| 21464 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21465 | echo "$as_me: failed program was:" >&5 |
| 21466 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21467 | |
| 21468 | ( exit $ac_status ) |
| 21469 | ac_cv_func_mmap_fixed_mapped=no |
| 21470 | fi |
| 21471 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 21472 | fi |
| 21473 | fi |
| 21474 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 21475 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
| 21476 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 21477 | |
| 21478 | cat >>confdefs.h <<\_ACEOF |
| 21479 | #define HAVE_MMAP 1 |
| 21480 | _ACEOF |
| 21481 | |
| 21482 | fi |
| 21483 | rm -f conftest.mmap |
| 21484 | |
| 21485 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 21486 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 21487 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 21488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21489 | else |
| 21490 | cat >conftest.$ac_ext <<_ACEOF |
| 21491 | /* confdefs.h. */ |
| 21492 | _ACEOF |
| 21493 | cat confdefs.h >>conftest.$ac_ext |
| 21494 | cat >>conftest.$ac_ext <<_ACEOF |
| 21495 | /* end confdefs.h. */ |
| 21496 | $ac_includes_default |
| 21497 | int |
| 21498 | main () |
| 21499 | { |
| 21500 | if ((pid_t *) 0) |
| 21501 | return 0; |
| 21502 | if (sizeof (pid_t)) |
| 21503 | return 0; |
| 21504 | ; |
| 21505 | return 0; |
| 21506 | } |
| 21507 | _ACEOF |
| 21508 | rm -f conftest.$ac_objext |
| 21509 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21510 | (eval $ac_compile) 2>conftest.er1 |
| 21511 | ac_status=$? |
| 21512 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21513 | rm -f conftest.er1 |
| 21514 | cat conftest.err >&5 |
| 21515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21516 | (exit $ac_status); } && |
| 21517 | { ac_try='test -z "$ac_c_werror_flag" |
| 21518 | || test ! -s conftest.err' |
| 21519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21520 | (eval $ac_try) 2>&5 |
| 21521 | ac_status=$? |
| 21522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21523 | (exit $ac_status); }; } && |
| 21524 | { ac_try='test -s conftest.$ac_objext' |
| 21525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21526 | (eval $ac_try) 2>&5 |
| 21527 | ac_status=$? |
| 21528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21529 | (exit $ac_status); }; }; then |
| 21530 | ac_cv_type_pid_t=yes |
| 21531 | else |
| 21532 | echo "$as_me: failed program was:" >&5 |
| 21533 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21534 | |
| 21535 | ac_cv_type_pid_t=no |
| 21536 | fi |
| 21537 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21538 | fi |
| 21539 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 21540 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 21541 | if test $ac_cv_type_pid_t = yes; then |
| 21542 | : |
| 21543 | else |
| 21544 | |
| 21545 | cat >>confdefs.h <<_ACEOF |
| 21546 | #define pid_t int |
| 21547 | _ACEOF |
| 21548 | |
| 21549 | fi |
| 21550 | |
| 21551 | |
| 21552 | |
| 21553 | for ac_header in unistd.h vfork.h |
| 21554 | do |
| 21555 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 21556 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 21557 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 21558 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 21559 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 21560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21561 | fi |
| 21562 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 21563 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 21564 | else |
| 21565 | # Is the header compilable? |
| 21566 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 21567 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 21568 | cat >conftest.$ac_ext <<_ACEOF |
| 21569 | /* confdefs.h. */ |
| 21570 | _ACEOF |
| 21571 | cat confdefs.h >>conftest.$ac_ext |
| 21572 | cat >>conftest.$ac_ext <<_ACEOF |
| 21573 | /* end confdefs.h. */ |
| 21574 | $ac_includes_default |
| 21575 | #include <$ac_header> |
| 21576 | _ACEOF |
| 21577 | rm -f conftest.$ac_objext |
| 21578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21579 | (eval $ac_compile) 2>conftest.er1 |
| 21580 | ac_status=$? |
| 21581 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21582 | rm -f conftest.er1 |
| 21583 | cat conftest.err >&5 |
| 21584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21585 | (exit $ac_status); } && |
| 21586 | { ac_try='test -z "$ac_c_werror_flag" |
| 21587 | || test ! -s conftest.err' |
| 21588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21589 | (eval $ac_try) 2>&5 |
| 21590 | ac_status=$? |
| 21591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21592 | (exit $ac_status); }; } && |
| 21593 | { ac_try='test -s conftest.$ac_objext' |
| 21594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21595 | (eval $ac_try) 2>&5 |
| 21596 | ac_status=$? |
| 21597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21598 | (exit $ac_status); }; }; then |
| 21599 | ac_header_compiler=yes |
| 21600 | else |
| 21601 | echo "$as_me: failed program was:" >&5 |
| 21602 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21603 | |
| 21604 | ac_header_compiler=no |
| 21605 | fi |
| 21606 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21607 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 21608 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 21609 | |
| 21610 | # Is the header present? |
| 21611 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 21612 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 21613 | cat >conftest.$ac_ext <<_ACEOF |
| 21614 | /* confdefs.h. */ |
| 21615 | _ACEOF |
| 21616 | cat confdefs.h >>conftest.$ac_ext |
| 21617 | cat >>conftest.$ac_ext <<_ACEOF |
| 21618 | /* end confdefs.h. */ |
| 21619 | #include <$ac_header> |
| 21620 | _ACEOF |
| 21621 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 21622 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 21623 | ac_status=$? |
| 21624 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21625 | rm -f conftest.er1 |
| 21626 | cat conftest.err >&5 |
| 21627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21628 | (exit $ac_status); } >/dev/null; then |
| 21629 | if test -s conftest.err; then |
| 21630 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 21631 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 21632 | else |
| 21633 | ac_cpp_err= |
| 21634 | fi |
| 21635 | else |
| 21636 | ac_cpp_err=yes |
| 21637 | fi |
| 21638 | if test -z "$ac_cpp_err"; then |
| 21639 | ac_header_preproc=yes |
| 21640 | else |
| 21641 | echo "$as_me: failed program was:" >&5 |
| 21642 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21643 | |
| 21644 | ac_header_preproc=no |
| 21645 | fi |
| 21646 | rm -f conftest.err conftest.$ac_ext |
| 21647 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 21648 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 21649 | |
| 21650 | # So? What about this header? |
| 21651 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 21652 | yes:no: ) |
| 21653 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 21654 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 21655 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 21656 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 21657 | ac_header_preproc=yes |
| 21658 | ;; |
| 21659 | no:yes:* ) |
| 21660 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 21661 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 21662 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 21663 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 21664 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 21665 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 21666 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 21667 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 21668 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 21669 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 21670 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 21671 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 21672 | ( |
| 21673 | cat <<\_ASBOX |
| 21674 | ## ------------------------------------------ ## |
| 21675 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 21676 | ## ------------------------------------------ ## |
| 21677 | _ASBOX |
| 21678 | ) | |
| 21679 | sed "s/^/$as_me: WARNING: /" >&2 |
| 21680 | ;; |
| 21681 | esac |
| 21682 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 21683 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 21684 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 21685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21686 | else |
| 21687 | eval "$as_ac_Header=\$ac_header_preproc" |
| 21688 | fi |
| 21689 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 21690 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 21691 | |
| 21692 | fi |
| 21693 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 21694 | cat >>confdefs.h <<_ACEOF |
| 21695 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 21696 | _ACEOF |
| 21697 | |
| 21698 | fi |
| 21699 | |
| 21700 | done |
| 21701 | |
| 21702 | |
| 21703 | |
| 21704 | for ac_func in fork vfork |
| 21705 | do |
| 21706 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 21707 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 21708 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 21709 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 21710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21711 | else |
| 21712 | cat >conftest.$ac_ext <<_ACEOF |
| 21713 | /* confdefs.h. */ |
| 21714 | _ACEOF |
| 21715 | cat confdefs.h >>conftest.$ac_ext |
| 21716 | cat >>conftest.$ac_ext <<_ACEOF |
| 21717 | /* end confdefs.h. */ |
| 21718 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 21719 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 21720 | #define $ac_func innocuous_$ac_func |
| 21721 | |
| 21722 | /* System header to define __stub macros and hopefully few prototypes, |
| 21723 | which can conflict with char $ac_func (); below. |
| 21724 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 21725 | <limits.h> exists even on freestanding compilers. */ |
| 21726 | |
| 21727 | #ifdef __STDC__ |
| 21728 | # include <limits.h> |
| 21729 | #else |
| 21730 | # include <assert.h> |
| 21731 | #endif |
| 21732 | |
| 21733 | #undef $ac_func |
| 21734 | |
| 21735 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 21736 | #ifdef __cplusplus |
| 21737 | extern "C" |
| 21738 | { |
| 21739 | #endif |
| 21740 | /* We use char because int might match the return type of a gcc2 |
| 21741 | builtin and then its argument prototype would still apply. */ |
| 21742 | char $ac_func (); |
| 21743 | /* The GNU C library defines this for functions which it implements |
| 21744 | to always fail with ENOSYS. Some functions are actually named |
| 21745 | something starting with __ and the normal name is an alias. */ |
| 21746 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 21747 | choke me |
| 21748 | #else |
| 21749 | char (*f) () = $ac_func; |
| 21750 | #endif |
| 21751 | #ifdef __cplusplus |
| 21752 | } |
| 21753 | #endif |
| 21754 | |
| 21755 | int |
| 21756 | main () |
| 21757 | { |
| 21758 | return f != $ac_func; |
| 21759 | ; |
| 21760 | return 0; |
| 21761 | } |
| 21762 | _ACEOF |
| 21763 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21764 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21765 | (eval $ac_link) 2>conftest.er1 |
| 21766 | ac_status=$? |
| 21767 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21768 | rm -f conftest.er1 |
| 21769 | cat conftest.err >&5 |
| 21770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21771 | (exit $ac_status); } && |
| 21772 | { ac_try='test -z "$ac_c_werror_flag" |
| 21773 | || test ! -s conftest.err' |
| 21774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21775 | (eval $ac_try) 2>&5 |
| 21776 | ac_status=$? |
| 21777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21778 | (exit $ac_status); }; } && |
| 21779 | { ac_try='test -s conftest$ac_exeext' |
| 21780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21781 | (eval $ac_try) 2>&5 |
| 21782 | ac_status=$? |
| 21783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21784 | (exit $ac_status); }; }; then |
| 21785 | eval "$as_ac_var=yes" |
| 21786 | else |
| 21787 | echo "$as_me: failed program was:" >&5 |
| 21788 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21789 | |
| 21790 | eval "$as_ac_var=no" |
| 21791 | fi |
| 21792 | rm -f conftest.err conftest.$ac_objext \ |
| 21793 | conftest$ac_exeext conftest.$ac_ext |
| 21794 | fi |
| 21795 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 21796 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 21797 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 21798 | cat >>confdefs.h <<_ACEOF |
| 21799 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 21800 | _ACEOF |
| 21801 | |
| 21802 | fi |
| 21803 | done |
| 21804 | |
| 21805 | if test "x$ac_cv_func_fork" = xyes; then |
| 21806 | echo "$as_me:$LINENO: checking for working fork" >&5 |
| 21807 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 |
| 21808 | if test "${ac_cv_func_fork_works+set}" = set; then |
| 21809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21810 | else |
| 21811 | if test "$cross_compiling" = yes; then |
| 21812 | ac_cv_func_fork_works=cross |
| 21813 | else |
| 21814 | cat >conftest.$ac_ext <<_ACEOF |
| 21815 | /* By Ruediger Kuhlmann. */ |
| 21816 | #include <sys/types.h> |
| 21817 | #if HAVE_UNISTD_H |
| 21818 | # include <unistd.h> |
| 21819 | #endif |
| 21820 | /* Some systems only have a dummy stub for fork() */ |
| 21821 | int main () |
| 21822 | { |
| 21823 | if (fork() < 0) |
| 21824 | exit (1); |
| 21825 | exit (0); |
| 21826 | } |
| 21827 | _ACEOF |
| 21828 | rm -f conftest$ac_exeext |
| 21829 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21830 | (eval $ac_link) 2>&5 |
| 21831 | ac_status=$? |
| 21832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21833 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21835 | (eval $ac_try) 2>&5 |
| 21836 | ac_status=$? |
| 21837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21838 | (exit $ac_status); }; }; then |
| 21839 | ac_cv_func_fork_works=yes |
| 21840 | else |
| 21841 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21842 | echo "$as_me: failed program was:" >&5 |
| 21843 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21844 | |
| 21845 | ( exit $ac_status ) |
| 21846 | ac_cv_func_fork_works=no |
| 21847 | fi |
| 21848 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 21849 | fi |
| 21850 | fi |
| 21851 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
| 21852 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 |
| 21853 | |
| 21854 | else |
| 21855 | ac_cv_func_fork_works=$ac_cv_func_fork |
| 21856 | fi |
| 21857 | if test "x$ac_cv_func_fork_works" = xcross; then |
| 21858 | case $host in |
| 21859 | *-*-amigaos* | *-*-msdosdjgpp*) |
| 21860 | # Override, as these systems have only a dummy fork() stub |
| 21861 | ac_cv_func_fork_works=no |
| 21862 | ;; |
| 21863 | *) |
| 21864 | ac_cv_func_fork_works=yes |
| 21865 | ;; |
| 21866 | esac |
| 21867 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
| 21868 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} |
| 21869 | fi |
| 21870 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
| 21871 | if test "x$ac_cv_func_vfork" = xyes; then |
| 21872 | echo "$as_me:$LINENO: checking for working vfork" >&5 |
| 21873 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 |
| 21874 | if test "${ac_cv_func_vfork_works+set}" = set; then |
| 21875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21876 | else |
| 21877 | if test "$cross_compiling" = yes; then |
| 21878 | ac_cv_func_vfork_works=cross |
| 21879 | else |
| 21880 | cat >conftest.$ac_ext <<_ACEOF |
| 21881 | /* confdefs.h. */ |
| 21882 | _ACEOF |
| 21883 | cat confdefs.h >>conftest.$ac_ext |
| 21884 | cat >>conftest.$ac_ext <<_ACEOF |
| 21885 | /* end confdefs.h. */ |
| 21886 | /* Thanks to Paul Eggert for this test. */ |
| 21887 | #include <stdio.h> |
| 21888 | #include <stdlib.h> |
| 21889 | #include <sys/types.h> |
| 21890 | #include <sys/stat.h> |
| 21891 | #include <sys/wait.h> |
| 21892 | #if HAVE_UNISTD_H |
| 21893 | # include <unistd.h> |
| 21894 | #endif |
| 21895 | #if HAVE_VFORK_H |
| 21896 | # include <vfork.h> |
| 21897 | #endif |
| 21898 | /* On some sparc systems, changes by the child to local and incoming |
| 21899 | argument registers are propagated back to the parent. The compiler |
| 21900 | is told about this with #include <vfork.h>, but some compilers |
| 21901 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a |
| 21902 | static variable whose address is put into a register that is |
| 21903 | clobbered by the vfork. */ |
| 21904 | static void |
| 21905 | #ifdef __cplusplus |
| 21906 | sparc_address_test (int arg) |
| 21907 | # else |
| 21908 | sparc_address_test (arg) int arg; |
| 21909 | #endif |
| 21910 | { |
| 21911 | static pid_t child; |
| 21912 | if (!child) { |
| 21913 | child = vfork (); |
| 21914 | if (child < 0) { |
| 21915 | perror ("vfork"); |
| 21916 | _exit(2); |
| 21917 | } |
| 21918 | if (!child) { |
| 21919 | arg = getpid(); |
| 21920 | write(-1, "", 0); |
| 21921 | _exit (arg); |
| 21922 | } |
| 21923 | } |
| 21924 | } |
| 21925 | |
| 21926 | int |
| 21927 | main () |
| 21928 | { |
| 21929 | pid_t parent = getpid (); |
| 21930 | pid_t child; |
| 21931 | |
| 21932 | sparc_address_test (0); |
| 21933 | |
| 21934 | child = vfork (); |
| 21935 | |
| 21936 | if (child == 0) { |
| 21937 | /* Here is another test for sparc vfork register problems. This |
| 21938 | test uses lots of local variables, at least as many local |
| 21939 | variables as main has allocated so far including compiler |
| 21940 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris |
| 21941 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should |
| 21942 | reuse the register of parent for one of the local variables, |
| 21943 | since it will think that parent can't possibly be used any more |
| 21944 | in this routine. Assigning to the local variable will thus |
| 21945 | munge parent in the parent process. */ |
| 21946 | pid_t |
| 21947 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), |
| 21948 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); |
| 21949 | /* Convince the compiler that p..p7 are live; otherwise, it might |
| 21950 | use the same hardware register for all 8 local variables. */ |
| 21951 | if (p != p1 || p != p2 || p != p3 || p != p4 |
| 21952 | || p != p5 || p != p6 || p != p7) |
| 21953 | _exit(1); |
| 21954 | |
| 21955 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
| 21956 | from child file descriptors. If the child closes a descriptor |
| 21957 | before it execs or exits, this munges the parent's descriptor |
| 21958 | as well. Test for this by closing stdout in the child. */ |
| 21959 | _exit(close(fileno(stdout)) != 0); |
| 21960 | } else { |
| 21961 | int status; |
| 21962 | struct stat st; |
| 21963 | |
| 21964 | while (wait(&status) != child) |
| 21965 | ; |
| 21966 | exit( |
| 21967 | /* Was there some problem with vforking? */ |
| 21968 | child < 0 |
| 21969 | |
| 21970 | /* Did the child fail? (This shouldn't happen.) */ |
| 21971 | || status |
| 21972 | |
| 21973 | /* Did the vfork/compiler bug occur? */ |
| 21974 | || parent != getpid() |
| 21975 | |
| 21976 | /* Did the file descriptor bug occur? */ |
| 21977 | || fstat(fileno(stdout), &st) != 0 |
| 21978 | ); |
| 21979 | } |
| 21980 | } |
| 21981 | _ACEOF |
| 21982 | rm -f conftest$ac_exeext |
| 21983 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21984 | (eval $ac_link) 2>&5 |
| 21985 | ac_status=$? |
| 21986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21987 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21989 | (eval $ac_try) 2>&5 |
| 21990 | ac_status=$? |
| 21991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21992 | (exit $ac_status); }; }; then |
| 21993 | ac_cv_func_vfork_works=yes |
| 21994 | else |
| 21995 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21996 | echo "$as_me: failed program was:" >&5 |
| 21997 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21998 | |
| 21999 | ( exit $ac_status ) |
| 22000 | ac_cv_func_vfork_works=no |
| 22001 | fi |
| 22002 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 22003 | fi |
| 22004 | fi |
| 22005 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
| 22006 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 |
| 22007 | |
| 22008 | fi; |
| 22009 | if test "x$ac_cv_func_fork_works" = xcross; then |
| 22010 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
| 22011 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
| 22012 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} |
| 22013 | fi |
| 22014 | |
| 22015 | if test "x$ac_cv_func_vfork_works" = xyes; then |
| 22016 | |
| 22017 | cat >>confdefs.h <<\_ACEOF |
| 22018 | #define HAVE_WORKING_VFORK 1 |
| 22019 | _ACEOF |
| 22020 | |
| 22021 | else |
| 22022 | |
| 22023 | cat >>confdefs.h <<\_ACEOF |
| 22024 | #define vfork fork |
| 22025 | _ACEOF |
| 22026 | |
| 22027 | fi |
| 22028 | if test "x$ac_cv_func_fork_works" = xyes; then |
| 22029 | |
| 22030 | cat >>confdefs.h <<\_ACEOF |
| 22031 | #define HAVE_WORKING_FORK 1 |
| 22032 | _ACEOF |
| 22033 | |
| 22034 | fi |
| 22035 | |
| 22036 | |
| 22037 | |
| 22038 | for ac_func in canonicalize_file_name realpath |
| 22039 | do |
| 22040 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 22041 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 22042 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 22043 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 22044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22045 | else |
| 22046 | cat >conftest.$ac_ext <<_ACEOF |
| 22047 | /* confdefs.h. */ |
| 22048 | _ACEOF |
| 22049 | cat confdefs.h >>conftest.$ac_ext |
| 22050 | cat >>conftest.$ac_ext <<_ACEOF |
| 22051 | /* end confdefs.h. */ |
| 22052 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 22053 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22054 | #define $ac_func innocuous_$ac_func |
| 22055 | |
| 22056 | /* System header to define __stub macros and hopefully few prototypes, |
| 22057 | which can conflict with char $ac_func (); below. |
| 22058 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22059 | <limits.h> exists even on freestanding compilers. */ |
| 22060 | |
| 22061 | #ifdef __STDC__ |
| 22062 | # include <limits.h> |
| 22063 | #else |
| 22064 | # include <assert.h> |
| 22065 | #endif |
| 22066 | |
| 22067 | #undef $ac_func |
| 22068 | |
| 22069 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 22070 | #ifdef __cplusplus |
| 22071 | extern "C" |
| 22072 | { |
| 22073 | #endif |
| 22074 | /* We use char because int might match the return type of a gcc2 |
| 22075 | builtin and then its argument prototype would still apply. */ |
| 22076 | char $ac_func (); |
| 22077 | /* The GNU C library defines this for functions which it implements |
| 22078 | to always fail with ENOSYS. Some functions are actually named |
| 22079 | something starting with __ and the normal name is an alias. */ |
| 22080 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 22081 | choke me |
| 22082 | #else |
| 22083 | char (*f) () = $ac_func; |
| 22084 | #endif |
| 22085 | #ifdef __cplusplus |
| 22086 | } |
| 22087 | #endif |
| 22088 | |
| 22089 | int |
| 22090 | main () |
| 22091 | { |
| 22092 | return f != $ac_func; |
| 22093 | ; |
| 22094 | return 0; |
| 22095 | } |
| 22096 | _ACEOF |
| 22097 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22098 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 22099 | (eval $ac_link) 2>conftest.er1 |
| 22100 | ac_status=$? |
| 22101 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22102 | rm -f conftest.er1 |
| 22103 | cat conftest.err >&5 |
| 22104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22105 | (exit $ac_status); } && |
| 22106 | { ac_try='test -z "$ac_c_werror_flag" |
| 22107 | || test ! -s conftest.err' |
| 22108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22109 | (eval $ac_try) 2>&5 |
| 22110 | ac_status=$? |
| 22111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22112 | (exit $ac_status); }; } && |
| 22113 | { ac_try='test -s conftest$ac_exeext' |
| 22114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22115 | (eval $ac_try) 2>&5 |
| 22116 | ac_status=$? |
| 22117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22118 | (exit $ac_status); }; }; then |
| 22119 | eval "$as_ac_var=yes" |
| 22120 | else |
| 22121 | echo "$as_me: failed program was:" >&5 |
| 22122 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22123 | |
| 22124 | eval "$as_ac_var=no" |
| 22125 | fi |
| 22126 | rm -f conftest.err conftest.$ac_objext \ |
| 22127 | conftest$ac_exeext conftest.$ac_ext |
| 22128 | fi |
| 22129 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 22130 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 22131 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 22132 | cat >>confdefs.h <<_ACEOF |
| 22133 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 22134 | _ACEOF |
| 22135 | |
| 22136 | fi |
| 22137 | done |
| 22138 | |
| 22139 | |
| 22140 | for ac_func in getrusage |
| 22141 | do |
| 22142 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 22143 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 22144 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 22145 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 22146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22147 | else |
| 22148 | cat >conftest.$ac_ext <<_ACEOF |
| 22149 | /* confdefs.h. */ |
| 22150 | _ACEOF |
| 22151 | cat confdefs.h >>conftest.$ac_ext |
| 22152 | cat >>conftest.$ac_ext <<_ACEOF |
| 22153 | /* end confdefs.h. */ |
| 22154 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 22155 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22156 | #define $ac_func innocuous_$ac_func |
| 22157 | |
| 22158 | /* System header to define __stub macros and hopefully few prototypes, |
| 22159 | which can conflict with char $ac_func (); below. |
| 22160 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22161 | <limits.h> exists even on freestanding compilers. */ |
| 22162 | |
| 22163 | #ifdef __STDC__ |
| 22164 | # include <limits.h> |
| 22165 | #else |
| 22166 | # include <assert.h> |
| 22167 | #endif |
| 22168 | |
| 22169 | #undef $ac_func |
| 22170 | |
| 22171 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 22172 | #ifdef __cplusplus |
| 22173 | extern "C" |
| 22174 | { |
| 22175 | #endif |
| 22176 | /* We use char because int might match the return type of a gcc2 |
| 22177 | builtin and then its argument prototype would still apply. */ |
| 22178 | char $ac_func (); |
| 22179 | /* The GNU C library defines this for functions which it implements |
| 22180 | to always fail with ENOSYS. Some functions are actually named |
| 22181 | something starting with __ and the normal name is an alias. */ |
| 22182 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 22183 | choke me |
| 22184 | #else |
| 22185 | char (*f) () = $ac_func; |
| 22186 | #endif |
| 22187 | #ifdef __cplusplus |
| 22188 | } |
| 22189 | #endif |
| 22190 | |
| 22191 | int |
| 22192 | main () |
| 22193 | { |
| 22194 | return f != $ac_func; |
| 22195 | ; |
| 22196 | return 0; |
| 22197 | } |
| 22198 | _ACEOF |
| 22199 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22200 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 22201 | (eval $ac_link) 2>conftest.er1 |
| 22202 | ac_status=$? |
| 22203 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22204 | rm -f conftest.er1 |
| 22205 | cat conftest.err >&5 |
| 22206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22207 | (exit $ac_status); } && |
| 22208 | { ac_try='test -z "$ac_c_werror_flag" |
| 22209 | || test ! -s conftest.err' |
| 22210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22211 | (eval $ac_try) 2>&5 |
| 22212 | ac_status=$? |
| 22213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22214 | (exit $ac_status); }; } && |
| 22215 | { ac_try='test -s conftest$ac_exeext' |
| 22216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22217 | (eval $ac_try) 2>&5 |
| 22218 | ac_status=$? |
| 22219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22220 | (exit $ac_status); }; }; then |
| 22221 | eval "$as_ac_var=yes" |
| 22222 | else |
| 22223 | echo "$as_me: failed program was:" >&5 |
| 22224 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22225 | |
| 22226 | eval "$as_ac_var=no" |
| 22227 | fi |
| 22228 | rm -f conftest.err conftest.$ac_objext \ |
| 22229 | conftest$ac_exeext conftest.$ac_ext |
| 22230 | fi |
| 22231 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 22232 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 22233 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 22234 | cat >>confdefs.h <<_ACEOF |
| 22235 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 22236 | _ACEOF |
| 22237 | |
| 22238 | fi |
| 22239 | done |
| 22240 | |
| 22241 | |
| 22242 | |
| 22243 | for ac_func in getuid getgid |
| 22244 | do |
| 22245 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 22246 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 22247 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 22248 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 22249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22250 | else |
| 22251 | cat >conftest.$ac_ext <<_ACEOF |
| 22252 | /* confdefs.h. */ |
| 22253 | _ACEOF |
| 22254 | cat confdefs.h >>conftest.$ac_ext |
| 22255 | cat >>conftest.$ac_ext <<_ACEOF |
| 22256 | /* end confdefs.h. */ |
| 22257 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 22258 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22259 | #define $ac_func innocuous_$ac_func |
| 22260 | |
| 22261 | /* System header to define __stub macros and hopefully few prototypes, |
| 22262 | which can conflict with char $ac_func (); below. |
| 22263 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22264 | <limits.h> exists even on freestanding compilers. */ |
| 22265 | |
| 22266 | #ifdef __STDC__ |
| 22267 | # include <limits.h> |
| 22268 | #else |
| 22269 | # include <assert.h> |
| 22270 | #endif |
| 22271 | |
| 22272 | #undef $ac_func |
| 22273 | |
| 22274 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 22275 | #ifdef __cplusplus |
| 22276 | extern "C" |
| 22277 | { |
| 22278 | #endif |
| 22279 | /* We use char because int might match the return type of a gcc2 |
| 22280 | builtin and then its argument prototype would still apply. */ |
| 22281 | char $ac_func (); |
| 22282 | /* The GNU C library defines this for functions which it implements |
| 22283 | to always fail with ENOSYS. Some functions are actually named |
| 22284 | something starting with __ and the normal name is an alias. */ |
| 22285 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 22286 | choke me |
| 22287 | #else |
| 22288 | char (*f) () = $ac_func; |
| 22289 | #endif |
| 22290 | #ifdef __cplusplus |
| 22291 | } |
| 22292 | #endif |
| 22293 | |
| 22294 | int |
| 22295 | main () |
| 22296 | { |
| 22297 | return f != $ac_func; |
| 22298 | ; |
| 22299 | return 0; |
| 22300 | } |
| 22301 | _ACEOF |
| 22302 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22303 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 22304 | (eval $ac_link) 2>conftest.er1 |
| 22305 | ac_status=$? |
| 22306 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22307 | rm -f conftest.er1 |
| 22308 | cat conftest.err >&5 |
| 22309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22310 | (exit $ac_status); } && |
| 22311 | { ac_try='test -z "$ac_c_werror_flag" |
| 22312 | || test ! -s conftest.err' |
| 22313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22314 | (eval $ac_try) 2>&5 |
| 22315 | ac_status=$? |
| 22316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22317 | (exit $ac_status); }; } && |
| 22318 | { ac_try='test -s conftest$ac_exeext' |
| 22319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22320 | (eval $ac_try) 2>&5 |
| 22321 | ac_status=$? |
| 22322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22323 | (exit $ac_status); }; }; then |
| 22324 | eval "$as_ac_var=yes" |
| 22325 | else |
| 22326 | echo "$as_me: failed program was:" >&5 |
| 22327 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22328 | |
| 22329 | eval "$as_ac_var=no" |
| 22330 | fi |
| 22331 | rm -f conftest.err conftest.$ac_objext \ |
| 22332 | conftest$ac_exeext conftest.$ac_ext |
| 22333 | fi |
| 22334 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 22335 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 22336 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 22337 | cat >>confdefs.h <<_ACEOF |
| 22338 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 22339 | _ACEOF |
| 22340 | |
| 22341 | fi |
| 22342 | done |
| 22343 | |
| 22344 | |
| 22345 | for ac_func in poll |
| 22346 | do |
| 22347 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 22348 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 22349 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 22350 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 22351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22352 | else |
| 22353 | cat >conftest.$ac_ext <<_ACEOF |
| 22354 | /* confdefs.h. */ |
| 22355 | _ACEOF |
| 22356 | cat confdefs.h >>conftest.$ac_ext |
| 22357 | cat >>conftest.$ac_ext <<_ACEOF |
| 22358 | /* end confdefs.h. */ |
| 22359 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 22360 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22361 | #define $ac_func innocuous_$ac_func |
| 22362 | |
| 22363 | /* System header to define __stub macros and hopefully few prototypes, |
| 22364 | which can conflict with char $ac_func (); below. |
| 22365 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22366 | <limits.h> exists even on freestanding compilers. */ |
| 22367 | |
| 22368 | #ifdef __STDC__ |
| 22369 | # include <limits.h> |
| 22370 | #else |
| 22371 | # include <assert.h> |
| 22372 | #endif |
| 22373 | |
| 22374 | #undef $ac_func |
| 22375 | |
| 22376 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 22377 | #ifdef __cplusplus |
| 22378 | extern "C" |
| 22379 | { |
| 22380 | #endif |
| 22381 | /* We use char because int might match the return type of a gcc2 |
| 22382 | builtin and then its argument prototype would still apply. */ |
| 22383 | char $ac_func (); |
| 22384 | /* The GNU C library defines this for functions which it implements |
| 22385 | to always fail with ENOSYS. Some functions are actually named |
| 22386 | something starting with __ and the normal name is an alias. */ |
| 22387 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 22388 | choke me |
| 22389 | #else |
| 22390 | char (*f) () = $ac_func; |
| 22391 | #endif |
| 22392 | #ifdef __cplusplus |
| 22393 | } |
| 22394 | #endif |
| 22395 | |
| 22396 | int |
| 22397 | main () |
| 22398 | { |
| 22399 | return f != $ac_func; |
| 22400 | ; |
| 22401 | return 0; |
| 22402 | } |
| 22403 | _ACEOF |
| 22404 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22405 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 22406 | (eval $ac_link) 2>conftest.er1 |
| 22407 | ac_status=$? |
| 22408 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22409 | rm -f conftest.er1 |
| 22410 | cat conftest.err >&5 |
| 22411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22412 | (exit $ac_status); } && |
| 22413 | { ac_try='test -z "$ac_c_werror_flag" |
| 22414 | || test ! -s conftest.err' |
| 22415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22416 | (eval $ac_try) 2>&5 |
| 22417 | ac_status=$? |
| 22418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22419 | (exit $ac_status); }; } && |
| 22420 | { ac_try='test -s conftest$ac_exeext' |
| 22421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22422 | (eval $ac_try) 2>&5 |
| 22423 | ac_status=$? |
| 22424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22425 | (exit $ac_status); }; }; then |
| 22426 | eval "$as_ac_var=yes" |
| 22427 | else |
| 22428 | echo "$as_me: failed program was:" >&5 |
| 22429 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22430 | |
| 22431 | eval "$as_ac_var=no" |
| 22432 | fi |
| 22433 | rm -f conftest.err conftest.$ac_objext \ |
| 22434 | conftest$ac_exeext conftest.$ac_ext |
| 22435 | fi |
| 22436 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 22437 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 22438 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 22439 | cat >>confdefs.h <<_ACEOF |
| 22440 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 22441 | _ACEOF |
| 22442 | |
| 22443 | fi |
| 22444 | done |
| 22445 | |
| 22446 | |
| 22447 | for ac_func in pread64 |
| 22448 | do |
| 22449 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 22450 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 22451 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 22452 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 22453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22454 | else |
| 22455 | cat >conftest.$ac_ext <<_ACEOF |
| 22456 | /* confdefs.h. */ |
| 22457 | _ACEOF |
| 22458 | cat confdefs.h >>conftest.$ac_ext |
| 22459 | cat >>conftest.$ac_ext <<_ACEOF |
| 22460 | /* end confdefs.h. */ |
| 22461 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 22462 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22463 | #define $ac_func innocuous_$ac_func |
| 22464 | |
| 22465 | /* System header to define __stub macros and hopefully few prototypes, |
| 22466 | which can conflict with char $ac_func (); below. |
| 22467 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22468 | <limits.h> exists even on freestanding compilers. */ |
| 22469 | |
| 22470 | #ifdef __STDC__ |
| 22471 | # include <limits.h> |
| 22472 | #else |
| 22473 | # include <assert.h> |
| 22474 | #endif |
| 22475 | |
| 22476 | #undef $ac_func |
| 22477 | |
| 22478 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 22479 | #ifdef __cplusplus |
| 22480 | extern "C" |
| 22481 | { |
| 22482 | #endif |
| 22483 | /* We use char because int might match the return type of a gcc2 |
| 22484 | builtin and then its argument prototype would still apply. */ |
| 22485 | char $ac_func (); |
| 22486 | /* The GNU C library defines this for functions which it implements |
| 22487 | to always fail with ENOSYS. Some functions are actually named |
| 22488 | something starting with __ and the normal name is an alias. */ |
| 22489 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 22490 | choke me |
| 22491 | #else |
| 22492 | char (*f) () = $ac_func; |
| 22493 | #endif |
| 22494 | #ifdef __cplusplus |
| 22495 | } |
| 22496 | #endif |
| 22497 | |
| 22498 | int |
| 22499 | main () |
| 22500 | { |
| 22501 | return f != $ac_func; |
| 22502 | ; |
| 22503 | return 0; |
| 22504 | } |
| 22505 | _ACEOF |
| 22506 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22507 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 22508 | (eval $ac_link) 2>conftest.er1 |
| 22509 | ac_status=$? |
| 22510 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22511 | rm -f conftest.er1 |
| 22512 | cat conftest.err >&5 |
| 22513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22514 | (exit $ac_status); } && |
| 22515 | { ac_try='test -z "$ac_c_werror_flag" |
| 22516 | || test ! -s conftest.err' |
| 22517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22518 | (eval $ac_try) 2>&5 |
| 22519 | ac_status=$? |
| 22520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22521 | (exit $ac_status); }; } && |
| 22522 | { ac_try='test -s conftest$ac_exeext' |
| 22523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22524 | (eval $ac_try) 2>&5 |
| 22525 | ac_status=$? |
| 22526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22527 | (exit $ac_status); }; }; then |
| 22528 | eval "$as_ac_var=yes" |
| 22529 | else |
| 22530 | echo "$as_me: failed program was:" >&5 |
| 22531 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22532 | |
| 22533 | eval "$as_ac_var=no" |
| 22534 | fi |
| 22535 | rm -f conftest.err conftest.$ac_objext \ |
| 22536 | conftest$ac_exeext conftest.$ac_ext |
| 22537 | fi |
| 22538 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 22539 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 22540 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 22541 | cat >>confdefs.h <<_ACEOF |
| 22542 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 22543 | _ACEOF |
| 22544 | |
| 22545 | fi |
| 22546 | done |
| 22547 | |
| 22548 | |
| 22549 | for ac_func in sbrk |
| 22550 | do |
| 22551 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 22552 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 22553 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 22554 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 22555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22556 | else |
| 22557 | cat >conftest.$ac_ext <<_ACEOF |
| 22558 | /* confdefs.h. */ |
| 22559 | _ACEOF |
| 22560 | cat confdefs.h >>conftest.$ac_ext |
| 22561 | cat >>conftest.$ac_ext <<_ACEOF |
| 22562 | /* end confdefs.h. */ |
| 22563 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 22564 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22565 | #define $ac_func innocuous_$ac_func |
| 22566 | |
| 22567 | /* System header to define __stub macros and hopefully few prototypes, |
| 22568 | which can conflict with char $ac_func (); below. |
| 22569 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22570 | <limits.h> exists even on freestanding compilers. */ |
| 22571 | |
| 22572 | #ifdef __STDC__ |
| 22573 | # include <limits.h> |
| 22574 | #else |
| 22575 | # include <assert.h> |
| 22576 | #endif |
| 22577 | |
| 22578 | #undef $ac_func |
| 22579 | |
| 22580 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 22581 | #ifdef __cplusplus |
| 22582 | extern "C" |
| 22583 | { |
| 22584 | #endif |
| 22585 | /* We use char because int might match the return type of a gcc2 |
| 22586 | builtin and then its argument prototype would still apply. */ |
| 22587 | char $ac_func (); |
| 22588 | /* The GNU C library defines this for functions which it implements |
| 22589 | to always fail with ENOSYS. Some functions are actually named |
| 22590 | something starting with __ and the normal name is an alias. */ |
| 22591 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 22592 | choke me |
| 22593 | #else |
| 22594 | char (*f) () = $ac_func; |
| 22595 | #endif |
| 22596 | #ifdef __cplusplus |
| 22597 | } |
| 22598 | #endif |
| 22599 | |
| 22600 | int |
| 22601 | main () |
| 22602 | { |
| 22603 | return f != $ac_func; |
| 22604 | ; |
| 22605 | return 0; |
| 22606 | } |
| 22607 | _ACEOF |
| 22608 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22609 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 22610 | (eval $ac_link) 2>conftest.er1 |
| 22611 | ac_status=$? |
| 22612 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22613 | rm -f conftest.er1 |
| 22614 | cat conftest.err >&5 |
| 22615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22616 | (exit $ac_status); } && |
| 22617 | { ac_try='test -z "$ac_c_werror_flag" |
| 22618 | || test ! -s conftest.err' |
| 22619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22620 | (eval $ac_try) 2>&5 |
| 22621 | ac_status=$? |
| 22622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22623 | (exit $ac_status); }; } && |
| 22624 | { ac_try='test -s conftest$ac_exeext' |
| 22625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22626 | (eval $ac_try) 2>&5 |
| 22627 | ac_status=$? |
| 22628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22629 | (exit $ac_status); }; }; then |
| 22630 | eval "$as_ac_var=yes" |
| 22631 | else |
| 22632 | echo "$as_me: failed program was:" >&5 |
| 22633 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22634 | |
| 22635 | eval "$as_ac_var=no" |
| 22636 | fi |
| 22637 | rm -f conftest.err conftest.$ac_objext \ |
| 22638 | conftest$ac_exeext conftest.$ac_ext |
| 22639 | fi |
| 22640 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 22641 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 22642 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 22643 | cat >>confdefs.h <<_ACEOF |
| 22644 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 22645 | _ACEOF |
| 22646 | |
| 22647 | fi |
| 22648 | done |
| 22649 | |
| 22650 | |
| 22651 | |
| 22652 | |
| 22653 | for ac_func in setpgid setpgrp setsid |
| 22654 | do |
| 22655 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 22656 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 22657 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 22658 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 22659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22660 | else |
| 22661 | cat >conftest.$ac_ext <<_ACEOF |
| 22662 | /* confdefs.h. */ |
| 22663 | _ACEOF |
| 22664 | cat confdefs.h >>conftest.$ac_ext |
| 22665 | cat >>conftest.$ac_ext <<_ACEOF |
| 22666 | /* end confdefs.h. */ |
| 22667 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 22668 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22669 | #define $ac_func innocuous_$ac_func |
| 22670 | |
| 22671 | /* System header to define __stub macros and hopefully few prototypes, |
| 22672 | which can conflict with char $ac_func (); below. |
| 22673 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22674 | <limits.h> exists even on freestanding compilers. */ |
| 22675 | |
| 22676 | #ifdef __STDC__ |
| 22677 | # include <limits.h> |
| 22678 | #else |
| 22679 | # include <assert.h> |
| 22680 | #endif |
| 22681 | |
| 22682 | #undef $ac_func |
| 22683 | |
| 22684 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 22685 | #ifdef __cplusplus |
| 22686 | extern "C" |
| 22687 | { |
| 22688 | #endif |
| 22689 | /* We use char because int might match the return type of a gcc2 |
| 22690 | builtin and then its argument prototype would still apply. */ |
| 22691 | char $ac_func (); |
| 22692 | /* The GNU C library defines this for functions which it implements |
| 22693 | to always fail with ENOSYS. Some functions are actually named |
| 22694 | something starting with __ and the normal name is an alias. */ |
| 22695 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 22696 | choke me |
| 22697 | #else |
| 22698 | char (*f) () = $ac_func; |
| 22699 | #endif |
| 22700 | #ifdef __cplusplus |
| 22701 | } |
| 22702 | #endif |
| 22703 | |
| 22704 | int |
| 22705 | main () |
| 22706 | { |
| 22707 | return f != $ac_func; |
| 22708 | ; |
| 22709 | return 0; |
| 22710 | } |
| 22711 | _ACEOF |
| 22712 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22713 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 22714 | (eval $ac_link) 2>conftest.er1 |
| 22715 | ac_status=$? |
| 22716 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22717 | rm -f conftest.er1 |
| 22718 | cat conftest.err >&5 |
| 22719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22720 | (exit $ac_status); } && |
| 22721 | { ac_try='test -z "$ac_c_werror_flag" |
| 22722 | || test ! -s conftest.err' |
| 22723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22724 | (eval $ac_try) 2>&5 |
| 22725 | ac_status=$? |
| 22726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22727 | (exit $ac_status); }; } && |
| 22728 | { ac_try='test -s conftest$ac_exeext' |
| 22729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22730 | (eval $ac_try) 2>&5 |
| 22731 | ac_status=$? |
| 22732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22733 | (exit $ac_status); }; }; then |
| 22734 | eval "$as_ac_var=yes" |
| 22735 | else |
| 22736 | echo "$as_me: failed program was:" >&5 |
| 22737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22738 | |
| 22739 | eval "$as_ac_var=no" |
| 22740 | fi |
| 22741 | rm -f conftest.err conftest.$ac_objext \ |
| 22742 | conftest$ac_exeext conftest.$ac_ext |
| 22743 | fi |
| 22744 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 22745 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 22746 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 22747 | cat >>confdefs.h <<_ACEOF |
| 22748 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 22749 | _ACEOF |
| 22750 | |
| 22751 | fi |
| 22752 | done |
| 22753 | |
| 22754 | |
| 22755 | |
| 22756 | |
| 22757 | for ac_func in sigaction sigprocmask sigsetmask |
| 22758 | do |
| 22759 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 22760 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 22761 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 22762 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 22763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22764 | else |
| 22765 | cat >conftest.$ac_ext <<_ACEOF |
| 22766 | /* confdefs.h. */ |
| 22767 | _ACEOF |
| 22768 | cat confdefs.h >>conftest.$ac_ext |
| 22769 | cat >>conftest.$ac_ext <<_ACEOF |
| 22770 | /* end confdefs.h. */ |
| 22771 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 22772 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22773 | #define $ac_func innocuous_$ac_func |
| 22774 | |
| 22775 | /* System header to define __stub macros and hopefully few prototypes, |
| 22776 | which can conflict with char $ac_func (); below. |
| 22777 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22778 | <limits.h> exists even on freestanding compilers. */ |
| 22779 | |
| 22780 | #ifdef __STDC__ |
| 22781 | # include <limits.h> |
| 22782 | #else |
| 22783 | # include <assert.h> |
| 22784 | #endif |
| 22785 | |
| 22786 | #undef $ac_func |
| 22787 | |
| 22788 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 22789 | #ifdef __cplusplus |
| 22790 | extern "C" |
| 22791 | { |
| 22792 | #endif |
| 22793 | /* We use char because int might match the return type of a gcc2 |
| 22794 | builtin and then its argument prototype would still apply. */ |
| 22795 | char $ac_func (); |
| 22796 | /* The GNU C library defines this for functions which it implements |
| 22797 | to always fail with ENOSYS. Some functions are actually named |
| 22798 | something starting with __ and the normal name is an alias. */ |
| 22799 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 22800 | choke me |
| 22801 | #else |
| 22802 | char (*f) () = $ac_func; |
| 22803 | #endif |
| 22804 | #ifdef __cplusplus |
| 22805 | } |
| 22806 | #endif |
| 22807 | |
| 22808 | int |
| 22809 | main () |
| 22810 | { |
| 22811 | return f != $ac_func; |
| 22812 | ; |
| 22813 | return 0; |
| 22814 | } |
| 22815 | _ACEOF |
| 22816 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22817 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 22818 | (eval $ac_link) 2>conftest.er1 |
| 22819 | ac_status=$? |
| 22820 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22821 | rm -f conftest.er1 |
| 22822 | cat conftest.err >&5 |
| 22823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22824 | (exit $ac_status); } && |
| 22825 | { ac_try='test -z "$ac_c_werror_flag" |
| 22826 | || test ! -s conftest.err' |
| 22827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22828 | (eval $ac_try) 2>&5 |
| 22829 | ac_status=$? |
| 22830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22831 | (exit $ac_status); }; } && |
| 22832 | { ac_try='test -s conftest$ac_exeext' |
| 22833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22834 | (eval $ac_try) 2>&5 |
| 22835 | ac_status=$? |
| 22836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22837 | (exit $ac_status); }; }; then |
| 22838 | eval "$as_ac_var=yes" |
| 22839 | else |
| 22840 | echo "$as_me: failed program was:" >&5 |
| 22841 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22842 | |
| 22843 | eval "$as_ac_var=no" |
| 22844 | fi |
| 22845 | rm -f conftest.err conftest.$ac_objext \ |
| 22846 | conftest$ac_exeext conftest.$ac_ext |
| 22847 | fi |
| 22848 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 22849 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 22850 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 22851 | cat >>confdefs.h <<_ACEOF |
| 22852 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 22853 | _ACEOF |
| 22854 | |
| 22855 | fi |
| 22856 | done |
| 22857 | |
| 22858 | |
| 22859 | for ac_func in socketpair |
| 22860 | do |
| 22861 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 22862 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 22863 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 22864 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 22865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22866 | else |
| 22867 | cat >conftest.$ac_ext <<_ACEOF |
| 22868 | /* confdefs.h. */ |
| 22869 | _ACEOF |
| 22870 | cat confdefs.h >>conftest.$ac_ext |
| 22871 | cat >>conftest.$ac_ext <<_ACEOF |
| 22872 | /* end confdefs.h. */ |
| 22873 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 22874 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22875 | #define $ac_func innocuous_$ac_func |
| 22876 | |
| 22877 | /* System header to define __stub macros and hopefully few prototypes, |
| 22878 | which can conflict with char $ac_func (); below. |
| 22879 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22880 | <limits.h> exists even on freestanding compilers. */ |
| 22881 | |
| 22882 | #ifdef __STDC__ |
| 22883 | # include <limits.h> |
| 22884 | #else |
| 22885 | # include <assert.h> |
| 22886 | #endif |
| 22887 | |
| 22888 | #undef $ac_func |
| 22889 | |
| 22890 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 22891 | #ifdef __cplusplus |
| 22892 | extern "C" |
| 22893 | { |
| 22894 | #endif |
| 22895 | /* We use char because int might match the return type of a gcc2 |
| 22896 | builtin and then its argument prototype would still apply. */ |
| 22897 | char $ac_func (); |
| 22898 | /* The GNU C library defines this for functions which it implements |
| 22899 | to always fail with ENOSYS. Some functions are actually named |
| 22900 | something starting with __ and the normal name is an alias. */ |
| 22901 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 22902 | choke me |
| 22903 | #else |
| 22904 | char (*f) () = $ac_func; |
| 22905 | #endif |
| 22906 | #ifdef __cplusplus |
| 22907 | } |
| 22908 | #endif |
| 22909 | |
| 22910 | int |
| 22911 | main () |
| 22912 | { |
| 22913 | return f != $ac_func; |
| 22914 | ; |
| 22915 | return 0; |
| 22916 | } |
| 22917 | _ACEOF |
| 22918 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22919 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 22920 | (eval $ac_link) 2>conftest.er1 |
| 22921 | ac_status=$? |
| 22922 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22923 | rm -f conftest.er1 |
| 22924 | cat conftest.err >&5 |
| 22925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22926 | (exit $ac_status); } && |
| 22927 | { ac_try='test -z "$ac_c_werror_flag" |
| 22928 | || test ! -s conftest.err' |
| 22929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22930 | (eval $ac_try) 2>&5 |
| 22931 | ac_status=$? |
| 22932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22933 | (exit $ac_status); }; } && |
| 22934 | { ac_try='test -s conftest$ac_exeext' |
| 22935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22936 | (eval $ac_try) 2>&5 |
| 22937 | ac_status=$? |
| 22938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22939 | (exit $ac_status); }; }; then |
| 22940 | eval "$as_ac_var=yes" |
| 22941 | else |
| 22942 | echo "$as_me: failed program was:" >&5 |
| 22943 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22944 | |
| 22945 | eval "$as_ac_var=no" |
| 22946 | fi |
| 22947 | rm -f conftest.err conftest.$ac_objext \ |
| 22948 | conftest$ac_exeext conftest.$ac_ext |
| 22949 | fi |
| 22950 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 22951 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 22952 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 22953 | cat >>confdefs.h <<_ACEOF |
| 22954 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 22955 | _ACEOF |
| 22956 | |
| 22957 | fi |
| 22958 | done |
| 22959 | |
| 22960 | |
| 22961 | for ac_func in syscall |
| 22962 | do |
| 22963 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 22964 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 22965 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 22966 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 22967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22968 | else |
| 22969 | cat >conftest.$ac_ext <<_ACEOF |
| 22970 | /* confdefs.h. */ |
| 22971 | _ACEOF |
| 22972 | cat confdefs.h >>conftest.$ac_ext |
| 22973 | cat >>conftest.$ac_ext <<_ACEOF |
| 22974 | /* end confdefs.h. */ |
| 22975 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 22976 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22977 | #define $ac_func innocuous_$ac_func |
| 22978 | |
| 22979 | /* System header to define __stub macros and hopefully few prototypes, |
| 22980 | which can conflict with char $ac_func (); below. |
| 22981 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22982 | <limits.h> exists even on freestanding compilers. */ |
| 22983 | |
| 22984 | #ifdef __STDC__ |
| 22985 | # include <limits.h> |
| 22986 | #else |
| 22987 | # include <assert.h> |
| 22988 | #endif |
| 22989 | |
| 22990 | #undef $ac_func |
| 22991 | |
| 22992 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 22993 | #ifdef __cplusplus |
| 22994 | extern "C" |
| 22995 | { |
| 22996 | #endif |
| 22997 | /* We use char because int might match the return type of a gcc2 |
| 22998 | builtin and then its argument prototype would still apply. */ |
| 22999 | char $ac_func (); |
| 23000 | /* The GNU C library defines this for functions which it implements |
| 23001 | to always fail with ENOSYS. Some functions are actually named |
| 23002 | something starting with __ and the normal name is an alias. */ |
| 23003 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 23004 | choke me |
| 23005 | #else |
| 23006 | char (*f) () = $ac_func; |
| 23007 | #endif |
| 23008 | #ifdef __cplusplus |
| 23009 | } |
| 23010 | #endif |
| 23011 | |
| 23012 | int |
| 23013 | main () |
| 23014 | { |
| 23015 | return f != $ac_func; |
| 23016 | ; |
| 23017 | return 0; |
| 23018 | } |
| 23019 | _ACEOF |
| 23020 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23021 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 23022 | (eval $ac_link) 2>conftest.er1 |
| 23023 | ac_status=$? |
| 23024 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23025 | rm -f conftest.er1 |
| 23026 | cat conftest.err >&5 |
| 23027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23028 | (exit $ac_status); } && |
| 23029 | { ac_try='test -z "$ac_c_werror_flag" |
| 23030 | || test ! -s conftest.err' |
| 23031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23032 | (eval $ac_try) 2>&5 |
| 23033 | ac_status=$? |
| 23034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23035 | (exit $ac_status); }; } && |
| 23036 | { ac_try='test -s conftest$ac_exeext' |
| 23037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23038 | (eval $ac_try) 2>&5 |
| 23039 | ac_status=$? |
| 23040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23041 | (exit $ac_status); }; }; then |
| 23042 | eval "$as_ac_var=yes" |
| 23043 | else |
| 23044 | echo "$as_me: failed program was:" >&5 |
| 23045 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23046 | |
| 23047 | eval "$as_ac_var=no" |
| 23048 | fi |
| 23049 | rm -f conftest.err conftest.$ac_objext \ |
| 23050 | conftest$ac_exeext conftest.$ac_ext |
| 23051 | fi |
| 23052 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 23053 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 23054 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 23055 | cat >>confdefs.h <<_ACEOF |
| 23056 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 23057 | _ACEOF |
| 23058 | |
| 23059 | fi |
| 23060 | done |
| 23061 | |
| 23062 | |
| 23063 | for ac_func in ttrace |
| 23064 | do |
| 23065 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 23066 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 23067 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 23068 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 23069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23070 | else |
| 23071 | cat >conftest.$ac_ext <<_ACEOF |
| 23072 | /* confdefs.h. */ |
| 23073 | _ACEOF |
| 23074 | cat confdefs.h >>conftest.$ac_ext |
| 23075 | cat >>conftest.$ac_ext <<_ACEOF |
| 23076 | /* end confdefs.h. */ |
| 23077 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 23078 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23079 | #define $ac_func innocuous_$ac_func |
| 23080 | |
| 23081 | /* System header to define __stub macros and hopefully few prototypes, |
| 23082 | which can conflict with char $ac_func (); below. |
| 23083 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 23084 | <limits.h> exists even on freestanding compilers. */ |
| 23085 | |
| 23086 | #ifdef __STDC__ |
| 23087 | # include <limits.h> |
| 23088 | #else |
| 23089 | # include <assert.h> |
| 23090 | #endif |
| 23091 | |
| 23092 | #undef $ac_func |
| 23093 | |
| 23094 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 23095 | #ifdef __cplusplus |
| 23096 | extern "C" |
| 23097 | { |
| 23098 | #endif |
| 23099 | /* We use char because int might match the return type of a gcc2 |
| 23100 | builtin and then its argument prototype would still apply. */ |
| 23101 | char $ac_func (); |
| 23102 | /* The GNU C library defines this for functions which it implements |
| 23103 | to always fail with ENOSYS. Some functions are actually named |
| 23104 | something starting with __ and the normal name is an alias. */ |
| 23105 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 23106 | choke me |
| 23107 | #else |
| 23108 | char (*f) () = $ac_func; |
| 23109 | #endif |
| 23110 | #ifdef __cplusplus |
| 23111 | } |
| 23112 | #endif |
| 23113 | |
| 23114 | int |
| 23115 | main () |
| 23116 | { |
| 23117 | return f != $ac_func; |
| 23118 | ; |
| 23119 | return 0; |
| 23120 | } |
| 23121 | _ACEOF |
| 23122 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23123 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 23124 | (eval $ac_link) 2>conftest.er1 |
| 23125 | ac_status=$? |
| 23126 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23127 | rm -f conftest.er1 |
| 23128 | cat conftest.err >&5 |
| 23129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23130 | (exit $ac_status); } && |
| 23131 | { ac_try='test -z "$ac_c_werror_flag" |
| 23132 | || test ! -s conftest.err' |
| 23133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23134 | (eval $ac_try) 2>&5 |
| 23135 | ac_status=$? |
| 23136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23137 | (exit $ac_status); }; } && |
| 23138 | { ac_try='test -s conftest$ac_exeext' |
| 23139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23140 | (eval $ac_try) 2>&5 |
| 23141 | ac_status=$? |
| 23142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23143 | (exit $ac_status); }; }; then |
| 23144 | eval "$as_ac_var=yes" |
| 23145 | else |
| 23146 | echo "$as_me: failed program was:" >&5 |
| 23147 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23148 | |
| 23149 | eval "$as_ac_var=no" |
| 23150 | fi |
| 23151 | rm -f conftest.err conftest.$ac_objext \ |
| 23152 | conftest$ac_exeext conftest.$ac_ext |
| 23153 | fi |
| 23154 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 23155 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 23156 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 23157 | cat >>confdefs.h <<_ACEOF |
| 23158 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 23159 | _ACEOF |
| 23160 | |
| 23161 | fi |
| 23162 | done |
| 23163 | |
| 23164 | |
| 23165 | for ac_func in wborder |
| 23166 | do |
| 23167 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 23168 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 23169 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 23170 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 23171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23172 | else |
| 23173 | cat >conftest.$ac_ext <<_ACEOF |
| 23174 | /* confdefs.h. */ |
| 23175 | _ACEOF |
| 23176 | cat confdefs.h >>conftest.$ac_ext |
| 23177 | cat >>conftest.$ac_ext <<_ACEOF |
| 23178 | /* end confdefs.h. */ |
| 23179 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 23180 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23181 | #define $ac_func innocuous_$ac_func |
| 23182 | |
| 23183 | /* System header to define __stub macros and hopefully few prototypes, |
| 23184 | which can conflict with char $ac_func (); below. |
| 23185 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 23186 | <limits.h> exists even on freestanding compilers. */ |
| 23187 | |
| 23188 | #ifdef __STDC__ |
| 23189 | # include <limits.h> |
| 23190 | #else |
| 23191 | # include <assert.h> |
| 23192 | #endif |
| 23193 | |
| 23194 | #undef $ac_func |
| 23195 | |
| 23196 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 23197 | #ifdef __cplusplus |
| 23198 | extern "C" |
| 23199 | { |
| 23200 | #endif |
| 23201 | /* We use char because int might match the return type of a gcc2 |
| 23202 | builtin and then its argument prototype would still apply. */ |
| 23203 | char $ac_func (); |
| 23204 | /* The GNU C library defines this for functions which it implements |
| 23205 | to always fail with ENOSYS. Some functions are actually named |
| 23206 | something starting with __ and the normal name is an alias. */ |
| 23207 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 23208 | choke me |
| 23209 | #else |
| 23210 | char (*f) () = $ac_func; |
| 23211 | #endif |
| 23212 | #ifdef __cplusplus |
| 23213 | } |
| 23214 | #endif |
| 23215 | |
| 23216 | int |
| 23217 | main () |
| 23218 | { |
| 23219 | return f != $ac_func; |
| 23220 | ; |
| 23221 | return 0; |
| 23222 | } |
| 23223 | _ACEOF |
| 23224 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23225 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 23226 | (eval $ac_link) 2>conftest.er1 |
| 23227 | ac_status=$? |
| 23228 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23229 | rm -f conftest.er1 |
| 23230 | cat conftest.err >&5 |
| 23231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23232 | (exit $ac_status); } && |
| 23233 | { ac_try='test -z "$ac_c_werror_flag" |
| 23234 | || test ! -s conftest.err' |
| 23235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23236 | (eval $ac_try) 2>&5 |
| 23237 | ac_status=$? |
| 23238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23239 | (exit $ac_status); }; } && |
| 23240 | { ac_try='test -s conftest$ac_exeext' |
| 23241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23242 | (eval $ac_try) 2>&5 |
| 23243 | ac_status=$? |
| 23244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23245 | (exit $ac_status); }; }; then |
| 23246 | eval "$as_ac_var=yes" |
| 23247 | else |
| 23248 | echo "$as_me: failed program was:" >&5 |
| 23249 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23250 | |
| 23251 | eval "$as_ac_var=no" |
| 23252 | fi |
| 23253 | rm -f conftest.err conftest.$ac_objext \ |
| 23254 | conftest$ac_exeext conftest.$ac_ext |
| 23255 | fi |
| 23256 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 23257 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 23258 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 23259 | cat >>confdefs.h <<_ACEOF |
| 23260 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 23261 | _ACEOF |
| 23262 | |
| 23263 | fi |
| 23264 | done |
| 23265 | |
| 23266 | |
| 23267 | # Check the return and argument types of ptrace. No canned test for |
| 23268 | # this, so roll our own. |
| 23269 | gdb_ptrace_headers=' |
| 23270 | #if HAVE_SYS_TYPES_H |
| 23271 | # include <sys/types.h> |
| 23272 | #endif |
| 23273 | #if HAVE_SYS_PTRACE_H |
| 23274 | # include <sys/ptrace.h> |
| 23275 | #endif |
| 23276 | #if HAVE_UNISTD_H |
| 23277 | # include <unistd.h> |
| 23278 | #endif |
| 23279 | ' |
| 23280 | # There is no point in checking if we don't have a prototype. |
| 23281 | echo "$as_me:$LINENO: checking whether ptrace is declared" >&5 |
| 23282 | echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6 |
| 23283 | if test "${ac_cv_have_decl_ptrace+set}" = set; then |
| 23284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23285 | else |
| 23286 | cat >conftest.$ac_ext <<_ACEOF |
| 23287 | /* confdefs.h. */ |
| 23288 | _ACEOF |
| 23289 | cat confdefs.h >>conftest.$ac_ext |
| 23290 | cat >>conftest.$ac_ext <<_ACEOF |
| 23291 | /* end confdefs.h. */ |
| 23292 | $gdb_ptrace_headers |
| 23293 | |
| 23294 | int |
| 23295 | main () |
| 23296 | { |
| 23297 | #ifndef ptrace |
| 23298 | char *p = (char *) ptrace; |
| 23299 | #endif |
| 23300 | |
| 23301 | ; |
| 23302 | return 0; |
| 23303 | } |
| 23304 | _ACEOF |
| 23305 | rm -f conftest.$ac_objext |
| 23306 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 23307 | (eval $ac_compile) 2>conftest.er1 |
| 23308 | ac_status=$? |
| 23309 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23310 | rm -f conftest.er1 |
| 23311 | cat conftest.err >&5 |
| 23312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23313 | (exit $ac_status); } && |
| 23314 | { ac_try='test -z "$ac_c_werror_flag" |
| 23315 | || test ! -s conftest.err' |
| 23316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23317 | (eval $ac_try) 2>&5 |
| 23318 | ac_status=$? |
| 23319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23320 | (exit $ac_status); }; } && |
| 23321 | { ac_try='test -s conftest.$ac_objext' |
| 23322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23323 | (eval $ac_try) 2>&5 |
| 23324 | ac_status=$? |
| 23325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23326 | (exit $ac_status); }; }; then |
| 23327 | ac_cv_have_decl_ptrace=yes |
| 23328 | else |
| 23329 | echo "$as_me: failed program was:" >&5 |
| 23330 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23331 | |
| 23332 | ac_cv_have_decl_ptrace=no |
| 23333 | fi |
| 23334 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23335 | fi |
| 23336 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5 |
| 23337 | echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6 |
| 23338 | if test $ac_cv_have_decl_ptrace = yes; then |
| 23339 | |
| 23340 | cat >>confdefs.h <<_ACEOF |
| 23341 | #define HAVE_DECL_PTRACE 1 |
| 23342 | _ACEOF |
| 23343 | |
| 23344 | |
| 23345 | else |
| 23346 | cat >>confdefs.h <<_ACEOF |
| 23347 | #define HAVE_DECL_PTRACE 0 |
| 23348 | _ACEOF |
| 23349 | |
| 23350 | |
| 23351 | : ${gdb_cv_func_ptrace_ret='int'} |
| 23352 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} |
| 23353 | |
| 23354 | fi |
| 23355 | |
| 23356 | |
| 23357 | # Check return type. |
| 23358 | echo "$as_me:$LINENO: checking return type of ptrace" >&5 |
| 23359 | echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6 |
| 23360 | if test "${gdb_cv_func_ptrace_ret+set}" = set; then |
| 23361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23362 | else |
| 23363 | cat >conftest.$ac_ext <<_ACEOF |
| 23364 | /* confdefs.h. */ |
| 23365 | _ACEOF |
| 23366 | cat confdefs.h >>conftest.$ac_ext |
| 23367 | cat >>conftest.$ac_ext <<_ACEOF |
| 23368 | /* end confdefs.h. */ |
| 23369 | $gdb_ptrace_headers |
| 23370 | int |
| 23371 | main () |
| 23372 | { |
| 23373 | extern int ptrace (); |
| 23374 | ; |
| 23375 | return 0; |
| 23376 | } |
| 23377 | _ACEOF |
| 23378 | rm -f conftest.$ac_objext |
| 23379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 23380 | (eval $ac_compile) 2>conftest.er1 |
| 23381 | ac_status=$? |
| 23382 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23383 | rm -f conftest.er1 |
| 23384 | cat conftest.err >&5 |
| 23385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23386 | (exit $ac_status); } && |
| 23387 | { ac_try='test -z "$ac_c_werror_flag" |
| 23388 | || test ! -s conftest.err' |
| 23389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23390 | (eval $ac_try) 2>&5 |
| 23391 | ac_status=$? |
| 23392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23393 | (exit $ac_status); }; } && |
| 23394 | { ac_try='test -s conftest.$ac_objext' |
| 23395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23396 | (eval $ac_try) 2>&5 |
| 23397 | ac_status=$? |
| 23398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23399 | (exit $ac_status); }; }; then |
| 23400 | gdb_cv_func_ptrace_ret='int' |
| 23401 | else |
| 23402 | echo "$as_me: failed program was:" >&5 |
| 23403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23404 | |
| 23405 | gdb_cv_func_ptrace_ret='long' |
| 23406 | fi |
| 23407 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23408 | fi |
| 23409 | echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5 |
| 23410 | echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6 |
| 23411 | |
| 23412 | cat >>confdefs.h <<_ACEOF |
| 23413 | #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret |
| 23414 | _ACEOF |
| 23415 | |
| 23416 | # Check argument types. |
| 23417 | echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5 |
| 23418 | echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6 |
| 23419 | if test "${gdb_cv_func_ptrace_args+set}" = set; then |
| 23420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23421 | else |
| 23422 | |
| 23423 | for gdb_arg1 in 'int' 'long'; do |
| 23424 | for gdb_arg2 in 'pid_t' 'int' 'long'; do |
| 23425 | for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do |
| 23426 | for gdb_arg4 in 'int' 'long'; do |
| 23427 | cat >conftest.$ac_ext <<_ACEOF |
| 23428 | /* confdefs.h. */ |
| 23429 | _ACEOF |
| 23430 | cat confdefs.h >>conftest.$ac_ext |
| 23431 | cat >>conftest.$ac_ext <<_ACEOF |
| 23432 | /* end confdefs.h. */ |
| 23433 | $gdb_ptrace_headers |
| 23434 | int |
| 23435 | main () |
| 23436 | { |
| 23437 | |
| 23438 | extern $gdb_cv_func_ptrace_ret |
| 23439 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4); |
| 23440 | |
| 23441 | ; |
| 23442 | return 0; |
| 23443 | } |
| 23444 | _ACEOF |
| 23445 | rm -f conftest.$ac_objext |
| 23446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 23447 | (eval $ac_compile) 2>conftest.er1 |
| 23448 | ac_status=$? |
| 23449 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23450 | rm -f conftest.er1 |
| 23451 | cat conftest.err >&5 |
| 23452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23453 | (exit $ac_status); } && |
| 23454 | { ac_try='test -z "$ac_c_werror_flag" |
| 23455 | || test ! -s conftest.err' |
| 23456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23457 | (eval $ac_try) 2>&5 |
| 23458 | ac_status=$? |
| 23459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23460 | (exit $ac_status); }; } && |
| 23461 | { ac_try='test -s conftest.$ac_objext' |
| 23462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23463 | (eval $ac_try) 2>&5 |
| 23464 | ac_status=$? |
| 23465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23466 | (exit $ac_status); }; }; then |
| 23467 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4"; |
| 23468 | break 4; |
| 23469 | else |
| 23470 | echo "$as_me: failed program was:" >&5 |
| 23471 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23472 | |
| 23473 | fi |
| 23474 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23475 | for gdb_arg5 in 'int *' 'int' 'long'; do |
| 23476 | cat >conftest.$ac_ext <<_ACEOF |
| 23477 | /* confdefs.h. */ |
| 23478 | _ACEOF |
| 23479 | cat confdefs.h >>conftest.$ac_ext |
| 23480 | cat >>conftest.$ac_ext <<_ACEOF |
| 23481 | /* end confdefs.h. */ |
| 23482 | $gdb_ptrace_headers |
| 23483 | int |
| 23484 | main () |
| 23485 | { |
| 23486 | |
| 23487 | extern $gdb_cv_func_ptrace_ret |
| 23488 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5); |
| 23489 | |
| 23490 | ; |
| 23491 | return 0; |
| 23492 | } |
| 23493 | _ACEOF |
| 23494 | rm -f conftest.$ac_objext |
| 23495 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 23496 | (eval $ac_compile) 2>conftest.er1 |
| 23497 | ac_status=$? |
| 23498 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23499 | rm -f conftest.er1 |
| 23500 | cat conftest.err >&5 |
| 23501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23502 | (exit $ac_status); } && |
| 23503 | { ac_try='test -z "$ac_c_werror_flag" |
| 23504 | || test ! -s conftest.err' |
| 23505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23506 | (eval $ac_try) 2>&5 |
| 23507 | ac_status=$? |
| 23508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23509 | (exit $ac_status); }; } && |
| 23510 | { ac_try='test -s conftest.$ac_objext' |
| 23511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23512 | (eval $ac_try) 2>&5 |
| 23513 | ac_status=$? |
| 23514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23515 | (exit $ac_status); }; }; then |
| 23516 | |
| 23517 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5"; |
| 23518 | break 5; |
| 23519 | else |
| 23520 | echo "$as_me: failed program was:" >&5 |
| 23521 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23522 | |
| 23523 | fi |
| 23524 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23525 | done |
| 23526 | done |
| 23527 | done |
| 23528 | done |
| 23529 | done |
| 23530 | # Provide a safe default value. |
| 23531 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} |
| 23532 | |
| 23533 | fi |
| 23534 | echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5 |
| 23535 | echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6 |
| 23536 | ac_save_IFS=$IFS; IFS=',' |
| 23537 | set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'` |
| 23538 | IFS=$ac_save_IFS |
| 23539 | shift |
| 23540 | |
| 23541 | cat >>confdefs.h <<_ACEOF |
| 23542 | #define PTRACE_TYPE_ARG3 $3 |
| 23543 | _ACEOF |
| 23544 | |
| 23545 | if test -n "$5"; then |
| 23546 | |
| 23547 | cat >>confdefs.h <<_ACEOF |
| 23548 | #define PTRACE_TYPE_ARG5 $5 |
| 23549 | _ACEOF |
| 23550 | |
| 23551 | fi |
| 23552 | |
| 23553 | if test "$cross_compiling" = no; then |
| 23554 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
| 23555 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 |
| 23556 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
| 23557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23558 | else |
| 23559 | if test "$cross_compiling" = yes; then |
| 23560 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 |
| 23561 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} |
| 23562 | { (exit 1); exit 1; }; } |
| 23563 | else |
| 23564 | cat >conftest.$ac_ext <<_ACEOF |
| 23565 | /* confdefs.h. */ |
| 23566 | _ACEOF |
| 23567 | cat confdefs.h >>conftest.$ac_ext |
| 23568 | cat >>conftest.$ac_ext <<_ACEOF |
| 23569 | /* end confdefs.h. */ |
| 23570 | #if HAVE_UNISTD_H |
| 23571 | # include <unistd.h> |
| 23572 | #endif |
| 23573 | |
| 23574 | int |
| 23575 | main () |
| 23576 | { |
| 23577 | /* If this system has a BSD-style setpgrp which takes arguments, |
| 23578 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case |
| 23579 | exit successfully. */ |
| 23580 | exit (setpgrp (1,1) == -1 ? 0 : 1); |
| 23581 | ; |
| 23582 | return 0; |
| 23583 | } |
| 23584 | _ACEOF |
| 23585 | rm -f conftest$ac_exeext |
| 23586 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 23587 | (eval $ac_link) 2>&5 |
| 23588 | ac_status=$? |
| 23589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23590 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23592 | (eval $ac_try) 2>&5 |
| 23593 | ac_status=$? |
| 23594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23595 | (exit $ac_status); }; }; then |
| 23596 | ac_cv_func_setpgrp_void=no |
| 23597 | else |
| 23598 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23599 | echo "$as_me: failed program was:" >&5 |
| 23600 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23601 | |
| 23602 | ( exit $ac_status ) |
| 23603 | ac_cv_func_setpgrp_void=yes |
| 23604 | fi |
| 23605 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23606 | fi |
| 23607 | fi |
| 23608 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
| 23609 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 |
| 23610 | if test $ac_cv_func_setpgrp_void = yes; then |
| 23611 | |
| 23612 | cat >>confdefs.h <<\_ACEOF |
| 23613 | #define SETPGRP_VOID 1 |
| 23614 | _ACEOF |
| 23615 | |
| 23616 | fi |
| 23617 | |
| 23618 | else |
| 23619 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
| 23620 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 |
| 23621 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
| 23622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23623 | else |
| 23624 | cat >conftest.$ac_ext <<_ACEOF |
| 23625 | /* confdefs.h. */ |
| 23626 | _ACEOF |
| 23627 | cat confdefs.h >>conftest.$ac_ext |
| 23628 | cat >>conftest.$ac_ext <<_ACEOF |
| 23629 | /* end confdefs.h. */ |
| 23630 | |
| 23631 | #include <unistd.h> |
| 23632 | |
| 23633 | int |
| 23634 | main () |
| 23635 | { |
| 23636 | |
| 23637 | if (setpgrp(1,1) == -1) |
| 23638 | exit (0); |
| 23639 | else |
| 23640 | exit (1); |
| 23641 | |
| 23642 | ; |
| 23643 | return 0; |
| 23644 | } |
| 23645 | _ACEOF |
| 23646 | rm -f conftest.$ac_objext |
| 23647 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 23648 | (eval $ac_compile) 2>conftest.er1 |
| 23649 | ac_status=$? |
| 23650 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23651 | rm -f conftest.er1 |
| 23652 | cat conftest.err >&5 |
| 23653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23654 | (exit $ac_status); } && |
| 23655 | { ac_try='test -z "$ac_c_werror_flag" |
| 23656 | || test ! -s conftest.err' |
| 23657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23658 | (eval $ac_try) 2>&5 |
| 23659 | ac_status=$? |
| 23660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23661 | (exit $ac_status); }; } && |
| 23662 | { ac_try='test -s conftest.$ac_objext' |
| 23663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23664 | (eval $ac_try) 2>&5 |
| 23665 | ac_status=$? |
| 23666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23667 | (exit $ac_status); }; }; then |
| 23668 | ac_cv_func_setpgrp_void=no |
| 23669 | else |
| 23670 | echo "$as_me: failed program was:" >&5 |
| 23671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23672 | |
| 23673 | ac_cv_func_setpgrp_void=yes |
| 23674 | fi |
| 23675 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23676 | fi |
| 23677 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
| 23678 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 |
| 23679 | if test $ac_cv_func_setpgrp_void = yes; then |
| 23680 | cat >>confdefs.h <<\_ACEOF |
| 23681 | #define SETPGRP_VOID 1 |
| 23682 | _ACEOF |
| 23683 | |
| 23684 | fi |
| 23685 | fi |
| 23686 | |
| 23687 | # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do |
| 23688 | # since sigsetjmp might only be defined as a macro. |
| 23689 | echo "$as_me:$LINENO: checking for sigsetjmp" >&5 |
| 23690 | echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6 |
| 23691 | if test "${gdb_cv_func_sigsetjmp+set}" = set; then |
| 23692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23693 | else |
| 23694 | cat >conftest.$ac_ext <<_ACEOF |
| 23695 | /* confdefs.h. */ |
| 23696 | _ACEOF |
| 23697 | cat confdefs.h >>conftest.$ac_ext |
| 23698 | cat >>conftest.$ac_ext <<_ACEOF |
| 23699 | /* end confdefs.h. */ |
| 23700 | |
| 23701 | #include <setjmp.h> |
| 23702 | |
| 23703 | int |
| 23704 | main () |
| 23705 | { |
| 23706 | sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); |
| 23707 | ; |
| 23708 | return 0; |
| 23709 | } |
| 23710 | _ACEOF |
| 23711 | rm -f conftest.$ac_objext |
| 23712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 23713 | (eval $ac_compile) 2>conftest.er1 |
| 23714 | ac_status=$? |
| 23715 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23716 | rm -f conftest.er1 |
| 23717 | cat conftest.err >&5 |
| 23718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23719 | (exit $ac_status); } && |
| 23720 | { ac_try='test -z "$ac_c_werror_flag" |
| 23721 | || test ! -s conftest.err' |
| 23722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23723 | (eval $ac_try) 2>&5 |
| 23724 | ac_status=$? |
| 23725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23726 | (exit $ac_status); }; } && |
| 23727 | { ac_try='test -s conftest.$ac_objext' |
| 23728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23729 | (eval $ac_try) 2>&5 |
| 23730 | ac_status=$? |
| 23731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23732 | (exit $ac_status); }; }; then |
| 23733 | gdb_cv_func_sigsetjmp=yes |
| 23734 | else |
| 23735 | echo "$as_me: failed program was:" >&5 |
| 23736 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23737 | |
| 23738 | gdb_cv_func_sigsetjmp=no |
| 23739 | fi |
| 23740 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23741 | fi |
| 23742 | echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5 |
| 23743 | echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6 |
| 23744 | if test $gdb_cv_func_sigsetjmp = yes; then |
| 23745 | |
| 23746 | cat >>confdefs.h <<\_ACEOF |
| 23747 | #define HAVE_SIGSETJMP 1 |
| 23748 | _ACEOF |
| 23749 | |
| 23750 | fi |
| 23751 | |
| 23752 | # Assume we'll default to using the included libiberty regex. |
| 23753 | gdb_use_included_regex=yes |
| 23754 | |
| 23755 | # However, if the system regex is GNU regex, then default to *not* |
| 23756 | # using the included regex. |
| 23757 | echo "$as_me:$LINENO: checking for GNU regex" >&5 |
| 23758 | echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6 |
| 23759 | if test "${gdb_cv_have_gnu_regex+set}" = set; then |
| 23760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23761 | else |
| 23762 | cat >conftest.$ac_ext <<_ACEOF |
| 23763 | /* confdefs.h. */ |
| 23764 | _ACEOF |
| 23765 | cat confdefs.h >>conftest.$ac_ext |
| 23766 | cat >>conftest.$ac_ext <<_ACEOF |
| 23767 | /* end confdefs.h. */ |
| 23768 | #include <gnu-versions.h> |
| 23769 | int |
| 23770 | main () |
| 23771 | { |
| 23772 | #define REGEX_INTERFACE_VERSION 1 |
| 23773 | #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION |
| 23774 | # error "Version mismatch" |
| 23775 | #endif |
| 23776 | ; |
| 23777 | return 0; |
| 23778 | } |
| 23779 | _ACEOF |
| 23780 | rm -f conftest.$ac_objext |
| 23781 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 23782 | (eval $ac_compile) 2>conftest.er1 |
| 23783 | ac_status=$? |
| 23784 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23785 | rm -f conftest.er1 |
| 23786 | cat conftest.err >&5 |
| 23787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23788 | (exit $ac_status); } && |
| 23789 | { ac_try='test -z "$ac_c_werror_flag" |
| 23790 | || test ! -s conftest.err' |
| 23791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23792 | (eval $ac_try) 2>&5 |
| 23793 | ac_status=$? |
| 23794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23795 | (exit $ac_status); }; } && |
| 23796 | { ac_try='test -s conftest.$ac_objext' |
| 23797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23798 | (eval $ac_try) 2>&5 |
| 23799 | ac_status=$? |
| 23800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23801 | (exit $ac_status); }; }; then |
| 23802 | gdb_cv_have_gnu_regex=yes |
| 23803 | else |
| 23804 | echo "$as_me: failed program was:" >&5 |
| 23805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23806 | |
| 23807 | gdb_cv_have_gnu_regex=no |
| 23808 | fi |
| 23809 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23810 | fi |
| 23811 | echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5 |
| 23812 | echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6 |
| 23813 | if test $gdb_cv_have_gnu_regex = yes; then |
| 23814 | gdb_use_included_regex=no |
| 23815 | fi |
| 23816 | |
| 23817 | |
| 23818 | # Check whether --with-included-regex or --without-included-regex was given. |
| 23819 | if test "${with_included_regex+set}" = set; then |
| 23820 | withval="$with_included_regex" |
| 23821 | gdb_with_regex=$withval |
| 23822 | else |
| 23823 | gdb_with_regex=$gdb_use_included_regex |
| 23824 | fi; |
| 23825 | if test "$gdb_with_regex" = yes; then |
| 23826 | |
| 23827 | cat >>confdefs.h <<\_ACEOF |
| 23828 | #define USE_INCLUDED_REGEX 1 |
| 23829 | _ACEOF |
| 23830 | |
| 23831 | fi |
| 23832 | |
| 23833 | # Check if <sys/proc.h> defines `struct thread' with a td_pcb member. |
| 23834 | echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5 |
| 23835 | echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6 |
| 23836 | if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then |
| 23837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23838 | else |
| 23839 | cat >conftest.$ac_ext <<_ACEOF |
| 23840 | /* confdefs.h. */ |
| 23841 | _ACEOF |
| 23842 | cat confdefs.h >>conftest.$ac_ext |
| 23843 | cat >>conftest.$ac_ext <<_ACEOF |
| 23844 | /* end confdefs.h. */ |
| 23845 | #include <sys/param.h> |
| 23846 | #include <sys/proc.h> |
| 23847 | |
| 23848 | |
| 23849 | int |
| 23850 | main () |
| 23851 | { |
| 23852 | static struct thread ac_aggr; |
| 23853 | if (ac_aggr.td_pcb) |
| 23854 | return 0; |
| 23855 | ; |
| 23856 | return 0; |
| 23857 | } |
| 23858 | _ACEOF |
| 23859 | rm -f conftest.$ac_objext |
| 23860 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 23861 | (eval $ac_compile) 2>conftest.er1 |
| 23862 | ac_status=$? |
| 23863 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23864 | rm -f conftest.er1 |
| 23865 | cat conftest.err >&5 |
| 23866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23867 | (exit $ac_status); } && |
| 23868 | { ac_try='test -z "$ac_c_werror_flag" |
| 23869 | || test ! -s conftest.err' |
| 23870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23871 | (eval $ac_try) 2>&5 |
| 23872 | ac_status=$? |
| 23873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23874 | (exit $ac_status); }; } && |
| 23875 | { ac_try='test -s conftest.$ac_objext' |
| 23876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23877 | (eval $ac_try) 2>&5 |
| 23878 | ac_status=$? |
| 23879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23880 | (exit $ac_status); }; }; then |
| 23881 | ac_cv_member_struct_thread_td_pcb=yes |
| 23882 | else |
| 23883 | echo "$as_me: failed program was:" >&5 |
| 23884 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23885 | |
| 23886 | cat >conftest.$ac_ext <<_ACEOF |
| 23887 | /* confdefs.h. */ |
| 23888 | _ACEOF |
| 23889 | cat confdefs.h >>conftest.$ac_ext |
| 23890 | cat >>conftest.$ac_ext <<_ACEOF |
| 23891 | /* end confdefs.h. */ |
| 23892 | #include <sys/param.h> |
| 23893 | #include <sys/proc.h> |
| 23894 | |
| 23895 | |
| 23896 | int |
| 23897 | main () |
| 23898 | { |
| 23899 | static struct thread ac_aggr; |
| 23900 | if (sizeof ac_aggr.td_pcb) |
| 23901 | return 0; |
| 23902 | ; |
| 23903 | return 0; |
| 23904 | } |
| 23905 | _ACEOF |
| 23906 | rm -f conftest.$ac_objext |
| 23907 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 23908 | (eval $ac_compile) 2>conftest.er1 |
| 23909 | ac_status=$? |
| 23910 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23911 | rm -f conftest.er1 |
| 23912 | cat conftest.err >&5 |
| 23913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23914 | (exit $ac_status); } && |
| 23915 | { ac_try='test -z "$ac_c_werror_flag" |
| 23916 | || test ! -s conftest.err' |
| 23917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23918 | (eval $ac_try) 2>&5 |
| 23919 | ac_status=$? |
| 23920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23921 | (exit $ac_status); }; } && |
| 23922 | { ac_try='test -s conftest.$ac_objext' |
| 23923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23924 | (eval $ac_try) 2>&5 |
| 23925 | ac_status=$? |
| 23926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23927 | (exit $ac_status); }; }; then |
| 23928 | ac_cv_member_struct_thread_td_pcb=yes |
| 23929 | else |
| 23930 | echo "$as_me: failed program was:" >&5 |
| 23931 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23932 | |
| 23933 | ac_cv_member_struct_thread_td_pcb=no |
| 23934 | fi |
| 23935 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23936 | fi |
| 23937 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23938 | fi |
| 23939 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5 |
| 23940 | echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6 |
| 23941 | if test $ac_cv_member_struct_thread_td_pcb = yes; then |
| 23942 | |
| 23943 | cat >>confdefs.h <<_ACEOF |
| 23944 | #define HAVE_STRUCT_THREAD_TD_PCB 1 |
| 23945 | _ACEOF |
| 23946 | |
| 23947 | |
| 23948 | fi |
| 23949 | |
| 23950 | |
| 23951 | # See if <sys/lwp.h> defines `struct lwp`. |
| 23952 | echo "$as_me:$LINENO: checking for struct lwp" >&5 |
| 23953 | echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6 |
| 23954 | if test "${gdb_cv_struct_lwp+set}" = set; then |
| 23955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23956 | else |
| 23957 | cat >conftest.$ac_ext <<_ACEOF |
| 23958 | /* confdefs.h. */ |
| 23959 | _ACEOF |
| 23960 | cat confdefs.h >>conftest.$ac_ext |
| 23961 | cat >>conftest.$ac_ext <<_ACEOF |
| 23962 | /* end confdefs.h. */ |
| 23963 | #include <sys/param.h> |
| 23964 | #include <sys/lwp.h> |
| 23965 | int |
| 23966 | main () |
| 23967 | { |
| 23968 | struct lwp l; |
| 23969 | ; |
| 23970 | return 0; |
| 23971 | } |
| 23972 | _ACEOF |
| 23973 | rm -f conftest.$ac_objext |
| 23974 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 23975 | (eval $ac_compile) 2>conftest.er1 |
| 23976 | ac_status=$? |
| 23977 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23978 | rm -f conftest.er1 |
| 23979 | cat conftest.err >&5 |
| 23980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23981 | (exit $ac_status); } && |
| 23982 | { ac_try='test -z "$ac_c_werror_flag" |
| 23983 | || test ! -s conftest.err' |
| 23984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23985 | (eval $ac_try) 2>&5 |
| 23986 | ac_status=$? |
| 23987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23988 | (exit $ac_status); }; } && |
| 23989 | { ac_try='test -s conftest.$ac_objext' |
| 23990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23991 | (eval $ac_try) 2>&5 |
| 23992 | ac_status=$? |
| 23993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23994 | (exit $ac_status); }; }; then |
| 23995 | gdb_cv_struct_lwp=yes |
| 23996 | else |
| 23997 | echo "$as_me: failed program was:" >&5 |
| 23998 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23999 | |
| 24000 | gdb_cv_struct_lwp=no |
| 24001 | fi |
| 24002 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24003 | fi |
| 24004 | echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5 |
| 24005 | echo "${ECHO_T}$gdb_cv_struct_lwp" >&6 |
| 24006 | if test $gdb_cv_struct_lwp = yes; then |
| 24007 | |
| 24008 | cat >>confdefs.h <<\_ACEOF |
| 24009 | #define HAVE_STRUCT_LWP 1 |
| 24010 | _ACEOF |
| 24011 | |
| 24012 | fi |
| 24013 | |
| 24014 | # See if <machine/reg.h> degines `struct reg'. |
| 24015 | echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5 |
| 24016 | echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6 |
| 24017 | if test "${gdb_cv_struct_reg+set}" = set; then |
| 24018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24019 | else |
| 24020 | cat >conftest.$ac_ext <<_ACEOF |
| 24021 | /* confdefs.h. */ |
| 24022 | _ACEOF |
| 24023 | cat confdefs.h >>conftest.$ac_ext |
| 24024 | cat >>conftest.$ac_ext <<_ACEOF |
| 24025 | /* end confdefs.h. */ |
| 24026 | #include <sys/types.h> |
| 24027 | #include <machine/reg.h> |
| 24028 | int |
| 24029 | main () |
| 24030 | { |
| 24031 | struct reg r; |
| 24032 | ; |
| 24033 | return 0; |
| 24034 | } |
| 24035 | _ACEOF |
| 24036 | rm -f conftest.$ac_objext |
| 24037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 24038 | (eval $ac_compile) 2>conftest.er1 |
| 24039 | ac_status=$? |
| 24040 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24041 | rm -f conftest.er1 |
| 24042 | cat conftest.err >&5 |
| 24043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24044 | (exit $ac_status); } && |
| 24045 | { ac_try='test -z "$ac_c_werror_flag" |
| 24046 | || test ! -s conftest.err' |
| 24047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24048 | (eval $ac_try) 2>&5 |
| 24049 | ac_status=$? |
| 24050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24051 | (exit $ac_status); }; } && |
| 24052 | { ac_try='test -s conftest.$ac_objext' |
| 24053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24054 | (eval $ac_try) 2>&5 |
| 24055 | ac_status=$? |
| 24056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24057 | (exit $ac_status); }; }; then |
| 24058 | gdb_cv_struct_reg=yes |
| 24059 | else |
| 24060 | echo "$as_me: failed program was:" >&5 |
| 24061 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24062 | |
| 24063 | gdb_cv_struct_reg=no |
| 24064 | fi |
| 24065 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24066 | fi |
| 24067 | echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5 |
| 24068 | echo "${ECHO_T}$gdb_cv_struct_reg" >&6 |
| 24069 | if test $gdb_cv_struct_reg = yes; then |
| 24070 | |
| 24071 | cat >>confdefs.h <<\_ACEOF |
| 24072 | #define HAVE_STRUCT_REG 1 |
| 24073 | _ACEOF |
| 24074 | |
| 24075 | fi |
| 24076 | |
| 24077 | # See if <machine/reg.h> supports the %fs and %gs i386 segment registers. |
| 24078 | # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'. |
| 24079 | echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5 |
| 24080 | echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6 |
| 24081 | if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then |
| 24082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24083 | else |
| 24084 | cat >conftest.$ac_ext <<_ACEOF |
| 24085 | /* confdefs.h. */ |
| 24086 | _ACEOF |
| 24087 | cat confdefs.h >>conftest.$ac_ext |
| 24088 | cat >>conftest.$ac_ext <<_ACEOF |
| 24089 | /* end confdefs.h. */ |
| 24090 | #include <machine/reg.h> |
| 24091 | |
| 24092 | int |
| 24093 | main () |
| 24094 | { |
| 24095 | static struct reg ac_aggr; |
| 24096 | if (ac_aggr.r_fs) |
| 24097 | return 0; |
| 24098 | ; |
| 24099 | return 0; |
| 24100 | } |
| 24101 | _ACEOF |
| 24102 | rm -f conftest.$ac_objext |
| 24103 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 24104 | (eval $ac_compile) 2>conftest.er1 |
| 24105 | ac_status=$? |
| 24106 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24107 | rm -f conftest.er1 |
| 24108 | cat conftest.err >&5 |
| 24109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24110 | (exit $ac_status); } && |
| 24111 | { ac_try='test -z "$ac_c_werror_flag" |
| 24112 | || test ! -s conftest.err' |
| 24113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24114 | (eval $ac_try) 2>&5 |
| 24115 | ac_status=$? |
| 24116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24117 | (exit $ac_status); }; } && |
| 24118 | { ac_try='test -s conftest.$ac_objext' |
| 24119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24120 | (eval $ac_try) 2>&5 |
| 24121 | ac_status=$? |
| 24122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24123 | (exit $ac_status); }; }; then |
| 24124 | ac_cv_member_struct_reg_r_fs=yes |
| 24125 | else |
| 24126 | echo "$as_me: failed program was:" >&5 |
| 24127 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24128 | |
| 24129 | cat >conftest.$ac_ext <<_ACEOF |
| 24130 | /* confdefs.h. */ |
| 24131 | _ACEOF |
| 24132 | cat confdefs.h >>conftest.$ac_ext |
| 24133 | cat >>conftest.$ac_ext <<_ACEOF |
| 24134 | /* end confdefs.h. */ |
| 24135 | #include <machine/reg.h> |
| 24136 | |
| 24137 | int |
| 24138 | main () |
| 24139 | { |
| 24140 | static struct reg ac_aggr; |
| 24141 | if (sizeof ac_aggr.r_fs) |
| 24142 | return 0; |
| 24143 | ; |
| 24144 | return 0; |
| 24145 | } |
| 24146 | _ACEOF |
| 24147 | rm -f conftest.$ac_objext |
| 24148 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 24149 | (eval $ac_compile) 2>conftest.er1 |
| 24150 | ac_status=$? |
| 24151 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24152 | rm -f conftest.er1 |
| 24153 | cat conftest.err >&5 |
| 24154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24155 | (exit $ac_status); } && |
| 24156 | { ac_try='test -z "$ac_c_werror_flag" |
| 24157 | || test ! -s conftest.err' |
| 24158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24159 | (eval $ac_try) 2>&5 |
| 24160 | ac_status=$? |
| 24161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24162 | (exit $ac_status); }; } && |
| 24163 | { ac_try='test -s conftest.$ac_objext' |
| 24164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24165 | (eval $ac_try) 2>&5 |
| 24166 | ac_status=$? |
| 24167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24168 | (exit $ac_status); }; }; then |
| 24169 | ac_cv_member_struct_reg_r_fs=yes |
| 24170 | else |
| 24171 | echo "$as_me: failed program was:" >&5 |
| 24172 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24173 | |
| 24174 | ac_cv_member_struct_reg_r_fs=no |
| 24175 | fi |
| 24176 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24177 | fi |
| 24178 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24179 | fi |
| 24180 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5 |
| 24181 | echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6 |
| 24182 | if test $ac_cv_member_struct_reg_r_fs = yes; then |
| 24183 | |
| 24184 | cat >>confdefs.h <<_ACEOF |
| 24185 | #define HAVE_STRUCT_REG_R_FS 1 |
| 24186 | _ACEOF |
| 24187 | |
| 24188 | |
| 24189 | fi |
| 24190 | echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5 |
| 24191 | echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6 |
| 24192 | if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then |
| 24193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24194 | else |
| 24195 | cat >conftest.$ac_ext <<_ACEOF |
| 24196 | /* confdefs.h. */ |
| 24197 | _ACEOF |
| 24198 | cat confdefs.h >>conftest.$ac_ext |
| 24199 | cat >>conftest.$ac_ext <<_ACEOF |
| 24200 | /* end confdefs.h. */ |
| 24201 | #include <machine/reg.h> |
| 24202 | |
| 24203 | int |
| 24204 | main () |
| 24205 | { |
| 24206 | static struct reg ac_aggr; |
| 24207 | if (ac_aggr.r_gs) |
| 24208 | return 0; |
| 24209 | ; |
| 24210 | return 0; |
| 24211 | } |
| 24212 | _ACEOF |
| 24213 | rm -f conftest.$ac_objext |
| 24214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 24215 | (eval $ac_compile) 2>conftest.er1 |
| 24216 | ac_status=$? |
| 24217 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24218 | rm -f conftest.er1 |
| 24219 | cat conftest.err >&5 |
| 24220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24221 | (exit $ac_status); } && |
| 24222 | { ac_try='test -z "$ac_c_werror_flag" |
| 24223 | || test ! -s conftest.err' |
| 24224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24225 | (eval $ac_try) 2>&5 |
| 24226 | ac_status=$? |
| 24227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24228 | (exit $ac_status); }; } && |
| 24229 | { ac_try='test -s conftest.$ac_objext' |
| 24230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24231 | (eval $ac_try) 2>&5 |
| 24232 | ac_status=$? |
| 24233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24234 | (exit $ac_status); }; }; then |
| 24235 | ac_cv_member_struct_reg_r_gs=yes |
| 24236 | else |
| 24237 | echo "$as_me: failed program was:" >&5 |
| 24238 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24239 | |
| 24240 | cat >conftest.$ac_ext <<_ACEOF |
| 24241 | /* confdefs.h. */ |
| 24242 | _ACEOF |
| 24243 | cat confdefs.h >>conftest.$ac_ext |
| 24244 | cat >>conftest.$ac_ext <<_ACEOF |
| 24245 | /* end confdefs.h. */ |
| 24246 | #include <machine/reg.h> |
| 24247 | |
| 24248 | int |
| 24249 | main () |
| 24250 | { |
| 24251 | static struct reg ac_aggr; |
| 24252 | if (sizeof ac_aggr.r_gs) |
| 24253 | return 0; |
| 24254 | ; |
| 24255 | return 0; |
| 24256 | } |
| 24257 | _ACEOF |
| 24258 | rm -f conftest.$ac_objext |
| 24259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 24260 | (eval $ac_compile) 2>conftest.er1 |
| 24261 | ac_status=$? |
| 24262 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24263 | rm -f conftest.er1 |
| 24264 | cat conftest.err >&5 |
| 24265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24266 | (exit $ac_status); } && |
| 24267 | { ac_try='test -z "$ac_c_werror_flag" |
| 24268 | || test ! -s conftest.err' |
| 24269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24270 | (eval $ac_try) 2>&5 |
| 24271 | ac_status=$? |
| 24272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24273 | (exit $ac_status); }; } && |
| 24274 | { ac_try='test -s conftest.$ac_objext' |
| 24275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24276 | (eval $ac_try) 2>&5 |
| 24277 | ac_status=$? |
| 24278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24279 | (exit $ac_status); }; }; then |
| 24280 | ac_cv_member_struct_reg_r_gs=yes |
| 24281 | else |
| 24282 | echo "$as_me: failed program was:" >&5 |
| 24283 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24284 | |
| 24285 | ac_cv_member_struct_reg_r_gs=no |
| 24286 | fi |
| 24287 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24288 | fi |
| 24289 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24290 | fi |
| 24291 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5 |
| 24292 | echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6 |
| 24293 | if test $ac_cv_member_struct_reg_r_gs = yes; then |
| 24294 | |
| 24295 | cat >>confdefs.h <<_ACEOF |
| 24296 | #define HAVE_STRUCT_REG_R_GS 1 |
| 24297 | _ACEOF |
| 24298 | |
| 24299 | |
| 24300 | fi |
| 24301 | |
| 24302 | |
| 24303 | # See if <sys/ptrace.h> provides the PTRACE_GETREGS request. |
| 24304 | echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5 |
| 24305 | echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6 |
| 24306 | if test "${gdb_cv_have_ptrace_getregs+set}" = set; then |
| 24307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24308 | else |
| 24309 | cat >conftest.$ac_ext <<_ACEOF |
| 24310 | /* confdefs.h. */ |
| 24311 | _ACEOF |
| 24312 | cat confdefs.h >>conftest.$ac_ext |
| 24313 | cat >>conftest.$ac_ext <<_ACEOF |
| 24314 | /* end confdefs.h. */ |
| 24315 | #include <sys/ptrace.h> |
| 24316 | int |
| 24317 | main () |
| 24318 | { |
| 24319 | PTRACE_GETREGS; |
| 24320 | ; |
| 24321 | return 0; |
| 24322 | } |
| 24323 | _ACEOF |
| 24324 | rm -f conftest.$ac_objext |
| 24325 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 24326 | (eval $ac_compile) 2>conftest.er1 |
| 24327 | ac_status=$? |
| 24328 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24329 | rm -f conftest.er1 |
| 24330 | cat conftest.err >&5 |
| 24331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24332 | (exit $ac_status); } && |
| 24333 | { ac_try='test -z "$ac_c_werror_flag" |
| 24334 | || test ! -s conftest.err' |
| 24335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24336 | (eval $ac_try) 2>&5 |
| 24337 | ac_status=$? |
| 24338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24339 | (exit $ac_status); }; } && |
| 24340 | { ac_try='test -s conftest.$ac_objext' |
| 24341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24342 | (eval $ac_try) 2>&5 |
| 24343 | ac_status=$? |
| 24344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24345 | (exit $ac_status); }; }; then |
| 24346 | gdb_cv_have_ptrace_getregs=yes |
| 24347 | else |
| 24348 | echo "$as_me: failed program was:" >&5 |
| 24349 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24350 | |
| 24351 | gdb_cv_have_ptrace_getregs=no |
| 24352 | fi |
| 24353 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24354 | fi |
| 24355 | |
| 24356 | echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5 |
| 24357 | echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6 |
| 24358 | if test $gdb_cv_have_ptrace_getregs = yes; then |
| 24359 | |
| 24360 | cat >>confdefs.h <<\_ACEOF |
| 24361 | #define HAVE_PTRACE_GETREGS 1 |
| 24362 | _ACEOF |
| 24363 | |
| 24364 | fi |
| 24365 | |
| 24366 | # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request. |
| 24367 | echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5 |
| 24368 | echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6 |
| 24369 | if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then |
| 24370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24371 | else |
| 24372 | cat >conftest.$ac_ext <<_ACEOF |
| 24373 | /* confdefs.h. */ |
| 24374 | _ACEOF |
| 24375 | cat confdefs.h >>conftest.$ac_ext |
| 24376 | cat >>conftest.$ac_ext <<_ACEOF |
| 24377 | /* end confdefs.h. */ |
| 24378 | #include <sys/ptrace.h> |
| 24379 | int |
| 24380 | main () |
| 24381 | { |
| 24382 | PTRACE_GETFPXREGS; |
| 24383 | ; |
| 24384 | return 0; |
| 24385 | } |
| 24386 | _ACEOF |
| 24387 | rm -f conftest.$ac_objext |
| 24388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 24389 | (eval $ac_compile) 2>conftest.er1 |
| 24390 | ac_status=$? |
| 24391 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24392 | rm -f conftest.er1 |
| 24393 | cat conftest.err >&5 |
| 24394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24395 | (exit $ac_status); } && |
| 24396 | { ac_try='test -z "$ac_c_werror_flag" |
| 24397 | || test ! -s conftest.err' |
| 24398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24399 | (eval $ac_try) 2>&5 |
| 24400 | ac_status=$? |
| 24401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24402 | (exit $ac_status); }; } && |
| 24403 | { ac_try='test -s conftest.$ac_objext' |
| 24404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24405 | (eval $ac_try) 2>&5 |
| 24406 | ac_status=$? |
| 24407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24408 | (exit $ac_status); }; }; then |
| 24409 | gdb_cv_have_ptrace_getfpxregs=yes |
| 24410 | else |
| 24411 | echo "$as_me: failed program was:" >&5 |
| 24412 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24413 | |
| 24414 | gdb_cv_have_ptrace_getfpxregs=no |
| 24415 | fi |
| 24416 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24417 | fi |
| 24418 | |
| 24419 | echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5 |
| 24420 | echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6 |
| 24421 | if test $gdb_cv_have_ptrace_getfpxregs = yes; then |
| 24422 | |
| 24423 | cat >>confdefs.h <<\_ACEOF |
| 24424 | #define HAVE_PTRACE_GETFPXREGS 1 |
| 24425 | _ACEOF |
| 24426 | |
| 24427 | fi |
| 24428 | |
| 24429 | # See if <sys/ptrace.h> provides the PT_GETDBREGS request. |
| 24430 | echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5 |
| 24431 | echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6 |
| 24432 | if test "${gdb_cv_have_pt_getdbregs+set}" = set; then |
| 24433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24434 | else |
| 24435 | cat >conftest.$ac_ext <<_ACEOF |
| 24436 | /* confdefs.h. */ |
| 24437 | _ACEOF |
| 24438 | cat confdefs.h >>conftest.$ac_ext |
| 24439 | cat >>conftest.$ac_ext <<_ACEOF |
| 24440 | /* end confdefs.h. */ |
| 24441 | #include <sys/types.h> |
| 24442 | #include <sys/ptrace.h> |
| 24443 | int |
| 24444 | main () |
| 24445 | { |
| 24446 | PT_GETDBREGS; |
| 24447 | ; |
| 24448 | return 0; |
| 24449 | } |
| 24450 | _ACEOF |
| 24451 | rm -f conftest.$ac_objext |
| 24452 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 24453 | (eval $ac_compile) 2>conftest.er1 |
| 24454 | ac_status=$? |
| 24455 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24456 | rm -f conftest.er1 |
| 24457 | cat conftest.err >&5 |
| 24458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24459 | (exit $ac_status); } && |
| 24460 | { ac_try='test -z "$ac_c_werror_flag" |
| 24461 | || test ! -s conftest.err' |
| 24462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24463 | (eval $ac_try) 2>&5 |
| 24464 | ac_status=$? |
| 24465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24466 | (exit $ac_status); }; } && |
| 24467 | { ac_try='test -s conftest.$ac_objext' |
| 24468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24469 | (eval $ac_try) 2>&5 |
| 24470 | ac_status=$? |
| 24471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24472 | (exit $ac_status); }; }; then |
| 24473 | gdb_cv_have_pt_getdbregs=yes |
| 24474 | else |
| 24475 | echo "$as_me: failed program was:" >&5 |
| 24476 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24477 | |
| 24478 | gdb_cv_have_pt_getdbregs=no |
| 24479 | fi |
| 24480 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24481 | fi |
| 24482 | |
| 24483 | echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5 |
| 24484 | echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6 |
| 24485 | if test $gdb_cv_have_pt_getdbregs = yes; then |
| 24486 | |
| 24487 | cat >>confdefs.h <<\_ACEOF |
| 24488 | #define HAVE_PT_GETDBREGS 1 |
| 24489 | _ACEOF |
| 24490 | |
| 24491 | fi |
| 24492 | |
| 24493 | # See if <sys/ptrace.h> provides the PT_GETXMMREGS request. |
| 24494 | echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5 |
| 24495 | echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6 |
| 24496 | if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then |
| 24497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24498 | else |
| 24499 | cat >conftest.$ac_ext <<_ACEOF |
| 24500 | /* confdefs.h. */ |
| 24501 | _ACEOF |
| 24502 | cat confdefs.h >>conftest.$ac_ext |
| 24503 | cat >>conftest.$ac_ext <<_ACEOF |
| 24504 | /* end confdefs.h. */ |
| 24505 | #include <sys/types.h> |
| 24506 | #include <sys/ptrace.h> |
| 24507 | int |
| 24508 | main () |
| 24509 | { |
| 24510 | PT_GETXMMREGS; |
| 24511 | ; |
| 24512 | return 0; |
| 24513 | } |
| 24514 | _ACEOF |
| 24515 | rm -f conftest.$ac_objext |
| 24516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 24517 | (eval $ac_compile) 2>conftest.er1 |
| 24518 | ac_status=$? |
| 24519 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24520 | rm -f conftest.er1 |
| 24521 | cat conftest.err >&5 |
| 24522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24523 | (exit $ac_status); } && |
| 24524 | { ac_try='test -z "$ac_c_werror_flag" |
| 24525 | || test ! -s conftest.err' |
| 24526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24527 | (eval $ac_try) 2>&5 |
| 24528 | ac_status=$? |
| 24529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24530 | (exit $ac_status); }; } && |
| 24531 | { ac_try='test -s conftest.$ac_objext' |
| 24532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24533 | (eval $ac_try) 2>&5 |
| 24534 | ac_status=$? |
| 24535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24536 | (exit $ac_status); }; }; then |
| 24537 | gdb_cv_have_pt_getxmmregs=yes |
| 24538 | else |
| 24539 | echo "$as_me: failed program was:" >&5 |
| 24540 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24541 | |
| 24542 | gdb_cv_have_pt_getxmmregs=no |
| 24543 | fi |
| 24544 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24545 | fi |
| 24546 | |
| 24547 | echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5 |
| 24548 | echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6 |
| 24549 | if test $gdb_cv_have_pt_getxmmregs = yes; then |
| 24550 | |
| 24551 | cat >>confdefs.h <<\_ACEOF |
| 24552 | #define HAVE_PT_GETXMMREGS 1 |
| 24553 | _ACEOF |
| 24554 | |
| 24555 | fi |
| 24556 | |
| 24557 | # Detect which type of /proc is in use, such as for Unixware or Solaris. |
| 24558 | |
| 24559 | if test "${target}" = "${host}"; then |
| 24560 | case "${host}" in |
| 24561 | *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* ) |
| 24562 | |
| 24563 | cat >>confdefs.h <<\_ACEOF |
| 24564 | #define NEW_PROC_API 1 |
| 24565 | _ACEOF |
| 24566 | |
| 24567 | ;; |
| 24568 | *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*) |
| 24569 | |
| 24570 | cat >>confdefs.h <<\_ACEOF |
| 24571 | #define NEW_PROC_API 1 |
| 24572 | _ACEOF |
| 24573 | |
| 24574 | ;; |
| 24575 | mips-sgi-irix5*) |
| 24576 | # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5. |
| 24577 | |
| 24578 | cat >>confdefs.h <<\_ACEOF |
| 24579 | #define _KMEMUSER 1 |
| 24580 | _ACEOF |
| 24581 | |
| 24582 | ;; |
| 24583 | esac |
| 24584 | fi |
| 24585 | |
| 24586 | if test "$ac_cv_header_sys_procfs_h" = yes; then |
| 24587 | echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5 |
| 24588 | echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6 |
| 24589 | if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then |
| 24590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24591 | else |
| 24592 | cat >conftest.$ac_ext <<_ACEOF |
| 24593 | /* confdefs.h. */ |
| 24594 | _ACEOF |
| 24595 | cat confdefs.h >>conftest.$ac_ext |
| 24596 | cat >>conftest.$ac_ext <<_ACEOF |
| 24597 | /* end confdefs.h. */ |
| 24598 | |
| 24599 | #define _SYSCALL32 |
| 24600 | #include <sys/procfs.h> |
| 24601 | int |
| 24602 | main () |
| 24603 | { |
| 24604 | pstatus_t avar |
| 24605 | ; |
| 24606 | return 0; |
| 24607 | } |
| 24608 | _ACEOF |
| 24609 | rm -f conftest.$ac_objext |
| 24610 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 24611 | (eval $ac_compile) 2>conftest.er1 |
| 24612 | ac_status=$? |
| 24613 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24614 | rm -f conftest.er1 |
| 24615 | cat conftest.err >&5 |
| 24616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24617 | (exit $ac_status); } && |
| 24618 | { ac_try='test -z "$ac_c_werror_flag" |
| 24619 | || test ! -s conftest.err' |
| 24620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24621 | (eval $ac_try) 2>&5 |
| 24622 | ac_status=$? |
| 24623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24624 | (exit $ac_status); }; } && |
| 24625 | { ac_try='test -s conftest.$ac_objext' |
| 24626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24627 | (eval $ac_try) 2>&5 |
| 24628 | ac_status=$? |
| 24629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24630 | (exit $ac_status); }; }; then |
| 24631 | bfd_cv_have_sys_procfs_type_pstatus_t=yes |
| 24632 | else |
| 24633 | echo "$as_me: failed program was:" >&5 |
| 24634 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24635 | |
| 24636 | bfd_cv_have_sys_procfs_type_pstatus_t=no |
| 24637 | |
| 24638 | fi |
| 24639 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24640 | fi |
| 24641 | |
| 24642 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then |
| 24643 | |
| 24644 | cat >>confdefs.h <<\_ACEOF |
| 24645 | #define HAVE_PSTATUS_T 1 |
| 24646 | _ACEOF |
| 24647 | |
| 24648 | fi |
| 24649 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5 |
| 24650 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6 |
| 24651 | |
| 24652 | echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5 |
| 24653 | echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6 |
| 24654 | if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then |
| 24655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24656 | else |
| 24657 | cat >conftest.$ac_ext <<_ACEOF |
| 24658 | /* confdefs.h. */ |
| 24659 | _ACEOF |
| 24660 | cat confdefs.h >>conftest.$ac_ext |
| 24661 | cat >>conftest.$ac_ext <<_ACEOF |
| 24662 | /* end confdefs.h. */ |
| 24663 | |
| 24664 | #define _SYSCALL32 |
| 24665 | #include <sys/procfs.h> |
| 24666 | int |
| 24667 | main () |
| 24668 | { |
| 24669 | prrun_t avar |
| 24670 | ; |
| 24671 | return 0; |
| 24672 | } |
| 24673 | _ACEOF |
| 24674 | rm -f conftest.$ac_objext |
| 24675 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 24676 | (eval $ac_compile) 2>conftest.er1 |
| 24677 | ac_status=$? |
| 24678 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24679 | rm -f conftest.er1 |
| 24680 | cat conftest.err >&5 |
| 24681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24682 | (exit $ac_status); } && |
| 24683 | { ac_try='test -z "$ac_c_werror_flag" |
| 24684 | || test ! -s conftest.err' |
| 24685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24686 | (eval $ac_try) 2>&5 |
| 24687 | ac_status=$? |
| 24688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24689 | (exit $ac_status); }; } && |
| 24690 | { ac_try='test -s conftest.$ac_objext' |
| 24691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24692 | (eval $ac_try) 2>&5 |
| 24693 | ac_status=$? |
| 24694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24695 | (exit $ac_status); }; }; then |
| 24696 | bfd_cv_have_sys_procfs_type_prrun_t=yes |
| 24697 | else |
| 24698 | echo "$as_me: failed program was:" >&5 |
| 24699 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24700 | |
| 24701 | bfd_cv_have_sys_procfs_type_prrun_t=no |
| 24702 | |
| 24703 | fi |
| 24704 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24705 | fi |
| 24706 | |
| 24707 | if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then |
| 24708 | |
| 24709 | cat >>confdefs.h <<\_ACEOF |
| 24710 | #define HAVE_PRRUN_T 1 |
| 24711 | _ACEOF |
| 24712 | |
| 24713 | fi |
| 24714 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5 |
| 24715 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6 |
| 24716 | |
| 24717 | echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5 |
| 24718 | echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6 |
| 24719 | if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then |
| 24720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24721 | else |
| 24722 | cat >conftest.$ac_ext <<_ACEOF |
| 24723 | /* confdefs.h. */ |
| 24724 | _ACEOF |
| 24725 | cat confdefs.h >>conftest.$ac_ext |
| 24726 | cat >>conftest.$ac_ext <<_ACEOF |
| 24727 | /* end confdefs.h. */ |
| 24728 | |
| 24729 | #define _SYSCALL32 |
| 24730 | #include <sys/procfs.h> |
| 24731 | int |
| 24732 | main () |
| 24733 | { |
| 24734 | gregset_t avar |
| 24735 | ; |
| 24736 | return 0; |
| 24737 | } |
| 24738 | _ACEOF |
| 24739 | rm -f conftest.$ac_objext |
| 24740 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 24741 | (eval $ac_compile) 2>conftest.er1 |
| 24742 | ac_status=$? |
| 24743 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24744 | rm -f conftest.er1 |
| 24745 | cat conftest.err >&5 |
| 24746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24747 | (exit $ac_status); } && |
| 24748 | { ac_try='test -z "$ac_c_werror_flag" |
| 24749 | || test ! -s conftest.err' |
| 24750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24751 | (eval $ac_try) 2>&5 |
| 24752 | ac_status=$? |
| 24753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24754 | (exit $ac_status); }; } && |
| 24755 | { ac_try='test -s conftest.$ac_objext' |
| 24756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24757 | (eval $ac_try) 2>&5 |
| 24758 | ac_status=$? |
| 24759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24760 | (exit $ac_status); }; }; then |
| 24761 | bfd_cv_have_sys_procfs_type_gregset_t=yes |
| 24762 | else |
| 24763 | echo "$as_me: failed program was:" >&5 |
| 24764 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24765 | |
| 24766 | bfd_cv_have_sys_procfs_type_gregset_t=no |
| 24767 | |
| 24768 | fi |
| 24769 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24770 | fi |
| 24771 | |
| 24772 | if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then |
| 24773 | |
| 24774 | cat >>confdefs.h <<\_ACEOF |
| 24775 | #define HAVE_GREGSET_T 1 |
| 24776 | _ACEOF |
| 24777 | |
| 24778 | fi |
| 24779 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5 |
| 24780 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6 |
| 24781 | |
| 24782 | echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5 |
| 24783 | echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6 |
| 24784 | if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then |
| 24785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24786 | else |
| 24787 | cat >conftest.$ac_ext <<_ACEOF |
| 24788 | /* confdefs.h. */ |
| 24789 | _ACEOF |
| 24790 | cat confdefs.h >>conftest.$ac_ext |
| 24791 | cat >>conftest.$ac_ext <<_ACEOF |
| 24792 | /* end confdefs.h. */ |
| 24793 | |
| 24794 | #define _SYSCALL32 |
| 24795 | #include <sys/procfs.h> |
| 24796 | int |
| 24797 | main () |
| 24798 | { |
| 24799 | fpregset_t avar |
| 24800 | ; |
| 24801 | return 0; |
| 24802 | } |
| 24803 | _ACEOF |
| 24804 | rm -f conftest.$ac_objext |
| 24805 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 24806 | (eval $ac_compile) 2>conftest.er1 |
| 24807 | ac_status=$? |
| 24808 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24809 | rm -f conftest.er1 |
| 24810 | cat conftest.err >&5 |
| 24811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24812 | (exit $ac_status); } && |
| 24813 | { ac_try='test -z "$ac_c_werror_flag" |
| 24814 | || test ! -s conftest.err' |
| 24815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24816 | (eval $ac_try) 2>&5 |
| 24817 | ac_status=$? |
| 24818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24819 | (exit $ac_status); }; } && |
| 24820 | { ac_try='test -s conftest.$ac_objext' |
| 24821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24822 | (eval $ac_try) 2>&5 |
| 24823 | ac_status=$? |
| 24824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24825 | (exit $ac_status); }; }; then |
| 24826 | bfd_cv_have_sys_procfs_type_fpregset_t=yes |
| 24827 | else |
| 24828 | echo "$as_me: failed program was:" >&5 |
| 24829 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24830 | |
| 24831 | bfd_cv_have_sys_procfs_type_fpregset_t=no |
| 24832 | |
| 24833 | fi |
| 24834 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24835 | fi |
| 24836 | |
| 24837 | if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then |
| 24838 | |
| 24839 | cat >>confdefs.h <<\_ACEOF |
| 24840 | #define HAVE_FPREGSET_T 1 |
| 24841 | _ACEOF |
| 24842 | |
| 24843 | fi |
| 24844 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5 |
| 24845 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6 |
| 24846 | |
| 24847 | echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5 |
| 24848 | echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6 |
| 24849 | if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then |
| 24850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24851 | else |
| 24852 | cat >conftest.$ac_ext <<_ACEOF |
| 24853 | /* confdefs.h. */ |
| 24854 | _ACEOF |
| 24855 | cat confdefs.h >>conftest.$ac_ext |
| 24856 | cat >>conftest.$ac_ext <<_ACEOF |
| 24857 | /* end confdefs.h. */ |
| 24858 | |
| 24859 | #define _SYSCALL32 |
| 24860 | #include <sys/procfs.h> |
| 24861 | int |
| 24862 | main () |
| 24863 | { |
| 24864 | prgregset_t avar |
| 24865 | ; |
| 24866 | return 0; |
| 24867 | } |
| 24868 | _ACEOF |
| 24869 | rm -f conftest.$ac_objext |
| 24870 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 24871 | (eval $ac_compile) 2>conftest.er1 |
| 24872 | ac_status=$? |
| 24873 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24874 | rm -f conftest.er1 |
| 24875 | cat conftest.err >&5 |
| 24876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24877 | (exit $ac_status); } && |
| 24878 | { ac_try='test -z "$ac_c_werror_flag" |
| 24879 | || test ! -s conftest.err' |
| 24880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24881 | (eval $ac_try) 2>&5 |
| 24882 | ac_status=$? |
| 24883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24884 | (exit $ac_status); }; } && |
| 24885 | { ac_try='test -s conftest.$ac_objext' |
| 24886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24887 | (eval $ac_try) 2>&5 |
| 24888 | ac_status=$? |
| 24889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24890 | (exit $ac_status); }; }; then |
| 24891 | bfd_cv_have_sys_procfs_type_prgregset_t=yes |
| 24892 | else |
| 24893 | echo "$as_me: failed program was:" >&5 |
| 24894 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24895 | |
| 24896 | bfd_cv_have_sys_procfs_type_prgregset_t=no |
| 24897 | |
| 24898 | fi |
| 24899 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24900 | fi |
| 24901 | |
| 24902 | if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then |
| 24903 | |
| 24904 | cat >>confdefs.h <<\_ACEOF |
| 24905 | #define HAVE_PRGREGSET_T 1 |
| 24906 | _ACEOF |
| 24907 | |
| 24908 | fi |
| 24909 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5 |
| 24910 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6 |
| 24911 | |
| 24912 | echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5 |
| 24913 | echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6 |
| 24914 | if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then |
| 24915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24916 | else |
| 24917 | cat >conftest.$ac_ext <<_ACEOF |
| 24918 | /* confdefs.h. */ |
| 24919 | _ACEOF |
| 24920 | cat confdefs.h >>conftest.$ac_ext |
| 24921 | cat >>conftest.$ac_ext <<_ACEOF |
| 24922 | /* end confdefs.h. */ |
| 24923 | |
| 24924 | #define _SYSCALL32 |
| 24925 | #include <sys/procfs.h> |
| 24926 | int |
| 24927 | main () |
| 24928 | { |
| 24929 | prfpregset_t avar |
| 24930 | ; |
| 24931 | return 0; |
| 24932 | } |
| 24933 | _ACEOF |
| 24934 | rm -f conftest.$ac_objext |
| 24935 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 24936 | (eval $ac_compile) 2>conftest.er1 |
| 24937 | ac_status=$? |
| 24938 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24939 | rm -f conftest.er1 |
| 24940 | cat conftest.err >&5 |
| 24941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24942 | (exit $ac_status); } && |
| 24943 | { ac_try='test -z "$ac_c_werror_flag" |
| 24944 | || test ! -s conftest.err' |
| 24945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24946 | (eval $ac_try) 2>&5 |
| 24947 | ac_status=$? |
| 24948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24949 | (exit $ac_status); }; } && |
| 24950 | { ac_try='test -s conftest.$ac_objext' |
| 24951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24952 | (eval $ac_try) 2>&5 |
| 24953 | ac_status=$? |
| 24954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24955 | (exit $ac_status); }; }; then |
| 24956 | bfd_cv_have_sys_procfs_type_prfpregset_t=yes |
| 24957 | else |
| 24958 | echo "$as_me: failed program was:" >&5 |
| 24959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24960 | |
| 24961 | bfd_cv_have_sys_procfs_type_prfpregset_t=no |
| 24962 | |
| 24963 | fi |
| 24964 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24965 | fi |
| 24966 | |
| 24967 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
| 24968 | |
| 24969 | cat >>confdefs.h <<\_ACEOF |
| 24970 | #define HAVE_PRFPREGSET_T 1 |
| 24971 | _ACEOF |
| 24972 | |
| 24973 | fi |
| 24974 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5 |
| 24975 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6 |
| 24976 | |
| 24977 | echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5 |
| 24978 | echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6 |
| 24979 | if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then |
| 24980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24981 | else |
| 24982 | cat >conftest.$ac_ext <<_ACEOF |
| 24983 | /* confdefs.h. */ |
| 24984 | _ACEOF |
| 24985 | cat confdefs.h >>conftest.$ac_ext |
| 24986 | cat >>conftest.$ac_ext <<_ACEOF |
| 24987 | /* end confdefs.h. */ |
| 24988 | |
| 24989 | #define _SYSCALL32 |
| 24990 | #include <sys/procfs.h> |
| 24991 | int |
| 24992 | main () |
| 24993 | { |
| 24994 | prgregset32_t avar |
| 24995 | ; |
| 24996 | return 0; |
| 24997 | } |
| 24998 | _ACEOF |
| 24999 | rm -f conftest.$ac_objext |
| 25000 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 25001 | (eval $ac_compile) 2>conftest.er1 |
| 25002 | ac_status=$? |
| 25003 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25004 | rm -f conftest.er1 |
| 25005 | cat conftest.err >&5 |
| 25006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25007 | (exit $ac_status); } && |
| 25008 | { ac_try='test -z "$ac_c_werror_flag" |
| 25009 | || test ! -s conftest.err' |
| 25010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25011 | (eval $ac_try) 2>&5 |
| 25012 | ac_status=$? |
| 25013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25014 | (exit $ac_status); }; } && |
| 25015 | { ac_try='test -s conftest.$ac_objext' |
| 25016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25017 | (eval $ac_try) 2>&5 |
| 25018 | ac_status=$? |
| 25019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25020 | (exit $ac_status); }; }; then |
| 25021 | bfd_cv_have_sys_procfs_type_prgregset32_t=yes |
| 25022 | else |
| 25023 | echo "$as_me: failed program was:" >&5 |
| 25024 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25025 | |
| 25026 | bfd_cv_have_sys_procfs_type_prgregset32_t=no |
| 25027 | |
| 25028 | fi |
| 25029 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25030 | fi |
| 25031 | |
| 25032 | if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then |
| 25033 | |
| 25034 | cat >>confdefs.h <<\_ACEOF |
| 25035 | #define HAVE_PRGREGSET32_T 1 |
| 25036 | _ACEOF |
| 25037 | |
| 25038 | fi |
| 25039 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5 |
| 25040 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6 |
| 25041 | |
| 25042 | echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5 |
| 25043 | echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6 |
| 25044 | if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then |
| 25045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25046 | else |
| 25047 | cat >conftest.$ac_ext <<_ACEOF |
| 25048 | /* confdefs.h. */ |
| 25049 | _ACEOF |
| 25050 | cat confdefs.h >>conftest.$ac_ext |
| 25051 | cat >>conftest.$ac_ext <<_ACEOF |
| 25052 | /* end confdefs.h. */ |
| 25053 | |
| 25054 | #define _SYSCALL32 |
| 25055 | #include <sys/procfs.h> |
| 25056 | int |
| 25057 | main () |
| 25058 | { |
| 25059 | prfpregset32_t avar |
| 25060 | ; |
| 25061 | return 0; |
| 25062 | } |
| 25063 | _ACEOF |
| 25064 | rm -f conftest.$ac_objext |
| 25065 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 25066 | (eval $ac_compile) 2>conftest.er1 |
| 25067 | ac_status=$? |
| 25068 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25069 | rm -f conftest.er1 |
| 25070 | cat conftest.err >&5 |
| 25071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25072 | (exit $ac_status); } && |
| 25073 | { ac_try='test -z "$ac_c_werror_flag" |
| 25074 | || test ! -s conftest.err' |
| 25075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25076 | (eval $ac_try) 2>&5 |
| 25077 | ac_status=$? |
| 25078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25079 | (exit $ac_status); }; } && |
| 25080 | { ac_try='test -s conftest.$ac_objext' |
| 25081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25082 | (eval $ac_try) 2>&5 |
| 25083 | ac_status=$? |
| 25084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25085 | (exit $ac_status); }; }; then |
| 25086 | bfd_cv_have_sys_procfs_type_prfpregset32_t=yes |
| 25087 | else |
| 25088 | echo "$as_me: failed program was:" >&5 |
| 25089 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25090 | |
| 25091 | bfd_cv_have_sys_procfs_type_prfpregset32_t=no |
| 25092 | |
| 25093 | fi |
| 25094 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25095 | fi |
| 25096 | |
| 25097 | if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then |
| 25098 | |
| 25099 | cat >>confdefs.h <<\_ACEOF |
| 25100 | #define HAVE_PRFPREGSET32_T 1 |
| 25101 | _ACEOF |
| 25102 | |
| 25103 | fi |
| 25104 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5 |
| 25105 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6 |
| 25106 | |
| 25107 | echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5 |
| 25108 | echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6 |
| 25109 | if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then |
| 25110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25111 | else |
| 25112 | cat >conftest.$ac_ext <<_ACEOF |
| 25113 | /* confdefs.h. */ |
| 25114 | _ACEOF |
| 25115 | cat confdefs.h >>conftest.$ac_ext |
| 25116 | cat >>conftest.$ac_ext <<_ACEOF |
| 25117 | /* end confdefs.h. */ |
| 25118 | |
| 25119 | #define _SYSCALL32 |
| 25120 | #include <sys/procfs.h> |
| 25121 | int |
| 25122 | main () |
| 25123 | { |
| 25124 | lwpid_t avar |
| 25125 | ; |
| 25126 | return 0; |
| 25127 | } |
| 25128 | _ACEOF |
| 25129 | rm -f conftest.$ac_objext |
| 25130 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 25131 | (eval $ac_compile) 2>conftest.er1 |
| 25132 | ac_status=$? |
| 25133 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25134 | rm -f conftest.er1 |
| 25135 | cat conftest.err >&5 |
| 25136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25137 | (exit $ac_status); } && |
| 25138 | { ac_try='test -z "$ac_c_werror_flag" |
| 25139 | || test ! -s conftest.err' |
| 25140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25141 | (eval $ac_try) 2>&5 |
| 25142 | ac_status=$? |
| 25143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25144 | (exit $ac_status); }; } && |
| 25145 | { ac_try='test -s conftest.$ac_objext' |
| 25146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25147 | (eval $ac_try) 2>&5 |
| 25148 | ac_status=$? |
| 25149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25150 | (exit $ac_status); }; }; then |
| 25151 | bfd_cv_have_sys_procfs_type_lwpid_t=yes |
| 25152 | else |
| 25153 | echo "$as_me: failed program was:" >&5 |
| 25154 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25155 | |
| 25156 | bfd_cv_have_sys_procfs_type_lwpid_t=no |
| 25157 | |
| 25158 | fi |
| 25159 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25160 | fi |
| 25161 | |
| 25162 | if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then |
| 25163 | |
| 25164 | cat >>confdefs.h <<\_ACEOF |
| 25165 | #define HAVE_LWPID_T 1 |
| 25166 | _ACEOF |
| 25167 | |
| 25168 | fi |
| 25169 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5 |
| 25170 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6 |
| 25171 | |
| 25172 | echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5 |
| 25173 | echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6 |
| 25174 | if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then |
| 25175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25176 | else |
| 25177 | cat >conftest.$ac_ext <<_ACEOF |
| 25178 | /* confdefs.h. */ |
| 25179 | _ACEOF |
| 25180 | cat confdefs.h >>conftest.$ac_ext |
| 25181 | cat >>conftest.$ac_ext <<_ACEOF |
| 25182 | /* end confdefs.h. */ |
| 25183 | |
| 25184 | #define _SYSCALL32 |
| 25185 | #include <sys/procfs.h> |
| 25186 | int |
| 25187 | main () |
| 25188 | { |
| 25189 | psaddr_t avar |
| 25190 | ; |
| 25191 | return 0; |
| 25192 | } |
| 25193 | _ACEOF |
| 25194 | rm -f conftest.$ac_objext |
| 25195 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 25196 | (eval $ac_compile) 2>conftest.er1 |
| 25197 | ac_status=$? |
| 25198 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25199 | rm -f conftest.er1 |
| 25200 | cat conftest.err >&5 |
| 25201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25202 | (exit $ac_status); } && |
| 25203 | { ac_try='test -z "$ac_c_werror_flag" |
| 25204 | || test ! -s conftest.err' |
| 25205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25206 | (eval $ac_try) 2>&5 |
| 25207 | ac_status=$? |
| 25208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25209 | (exit $ac_status); }; } && |
| 25210 | { ac_try='test -s conftest.$ac_objext' |
| 25211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25212 | (eval $ac_try) 2>&5 |
| 25213 | ac_status=$? |
| 25214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25215 | (exit $ac_status); }; }; then |
| 25216 | bfd_cv_have_sys_procfs_type_psaddr_t=yes |
| 25217 | else |
| 25218 | echo "$as_me: failed program was:" >&5 |
| 25219 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25220 | |
| 25221 | bfd_cv_have_sys_procfs_type_psaddr_t=no |
| 25222 | |
| 25223 | fi |
| 25224 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25225 | fi |
| 25226 | |
| 25227 | if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then |
| 25228 | |
| 25229 | cat >>confdefs.h <<\_ACEOF |
| 25230 | #define HAVE_PSADDR_T 1 |
| 25231 | _ACEOF |
| 25232 | |
| 25233 | fi |
| 25234 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5 |
| 25235 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6 |
| 25236 | |
| 25237 | echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5 |
| 25238 | echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6 |
| 25239 | if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then |
| 25240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25241 | else |
| 25242 | cat >conftest.$ac_ext <<_ACEOF |
| 25243 | /* confdefs.h. */ |
| 25244 | _ACEOF |
| 25245 | cat confdefs.h >>conftest.$ac_ext |
| 25246 | cat >>conftest.$ac_ext <<_ACEOF |
| 25247 | /* end confdefs.h. */ |
| 25248 | |
| 25249 | #define _SYSCALL32 |
| 25250 | #include <sys/procfs.h> |
| 25251 | int |
| 25252 | main () |
| 25253 | { |
| 25254 | prsysent_t avar |
| 25255 | ; |
| 25256 | return 0; |
| 25257 | } |
| 25258 | _ACEOF |
| 25259 | rm -f conftest.$ac_objext |
| 25260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 25261 | (eval $ac_compile) 2>conftest.er1 |
| 25262 | ac_status=$? |
| 25263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25264 | rm -f conftest.er1 |
| 25265 | cat conftest.err >&5 |
| 25266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25267 | (exit $ac_status); } && |
| 25268 | { ac_try='test -z "$ac_c_werror_flag" |
| 25269 | || test ! -s conftest.err' |
| 25270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25271 | (eval $ac_try) 2>&5 |
| 25272 | ac_status=$? |
| 25273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25274 | (exit $ac_status); }; } && |
| 25275 | { ac_try='test -s conftest.$ac_objext' |
| 25276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25277 | (eval $ac_try) 2>&5 |
| 25278 | ac_status=$? |
| 25279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25280 | (exit $ac_status); }; }; then |
| 25281 | bfd_cv_have_sys_procfs_type_prsysent_t=yes |
| 25282 | else |
| 25283 | echo "$as_me: failed program was:" >&5 |
| 25284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25285 | |
| 25286 | bfd_cv_have_sys_procfs_type_prsysent_t=no |
| 25287 | |
| 25288 | fi |
| 25289 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25290 | fi |
| 25291 | |
| 25292 | if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then |
| 25293 | |
| 25294 | cat >>confdefs.h <<\_ACEOF |
| 25295 | #define HAVE_PRSYSENT_T 1 |
| 25296 | _ACEOF |
| 25297 | |
| 25298 | fi |
| 25299 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5 |
| 25300 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6 |
| 25301 | |
| 25302 | echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5 |
| 25303 | echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6 |
| 25304 | if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then |
| 25305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25306 | else |
| 25307 | cat >conftest.$ac_ext <<_ACEOF |
| 25308 | /* confdefs.h. */ |
| 25309 | _ACEOF |
| 25310 | cat confdefs.h >>conftest.$ac_ext |
| 25311 | cat >>conftest.$ac_ext <<_ACEOF |
| 25312 | /* end confdefs.h. */ |
| 25313 | |
| 25314 | #define _SYSCALL32 |
| 25315 | #include <sys/procfs.h> |
| 25316 | int |
| 25317 | main () |
| 25318 | { |
| 25319 | pr_sigset_t avar |
| 25320 | ; |
| 25321 | return 0; |
| 25322 | } |
| 25323 | _ACEOF |
| 25324 | rm -f conftest.$ac_objext |
| 25325 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 25326 | (eval $ac_compile) 2>conftest.er1 |
| 25327 | ac_status=$? |
| 25328 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25329 | rm -f conftest.er1 |
| 25330 | cat conftest.err >&5 |
| 25331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25332 | (exit $ac_status); } && |
| 25333 | { ac_try='test -z "$ac_c_werror_flag" |
| 25334 | || test ! -s conftest.err' |
| 25335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25336 | (eval $ac_try) 2>&5 |
| 25337 | ac_status=$? |
| 25338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25339 | (exit $ac_status); }; } && |
| 25340 | { ac_try='test -s conftest.$ac_objext' |
| 25341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25342 | (eval $ac_try) 2>&5 |
| 25343 | ac_status=$? |
| 25344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25345 | (exit $ac_status); }; }; then |
| 25346 | bfd_cv_have_sys_procfs_type_pr_sigset_t=yes |
| 25347 | else |
| 25348 | echo "$as_me: failed program was:" >&5 |
| 25349 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25350 | |
| 25351 | bfd_cv_have_sys_procfs_type_pr_sigset_t=no |
| 25352 | |
| 25353 | fi |
| 25354 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25355 | fi |
| 25356 | |
| 25357 | if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then |
| 25358 | |
| 25359 | cat >>confdefs.h <<\_ACEOF |
| 25360 | #define HAVE_PR_SIGSET_T 1 |
| 25361 | _ACEOF |
| 25362 | |
| 25363 | fi |
| 25364 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5 |
| 25365 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6 |
| 25366 | |
| 25367 | echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5 |
| 25368 | echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6 |
| 25369 | if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then |
| 25370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25371 | else |
| 25372 | cat >conftest.$ac_ext <<_ACEOF |
| 25373 | /* confdefs.h. */ |
| 25374 | _ACEOF |
| 25375 | cat confdefs.h >>conftest.$ac_ext |
| 25376 | cat >>conftest.$ac_ext <<_ACEOF |
| 25377 | /* end confdefs.h. */ |
| 25378 | |
| 25379 | #define _SYSCALL32 |
| 25380 | #include <sys/procfs.h> |
| 25381 | int |
| 25382 | main () |
| 25383 | { |
| 25384 | pr_sigaction64_t avar |
| 25385 | ; |
| 25386 | return 0; |
| 25387 | } |
| 25388 | _ACEOF |
| 25389 | rm -f conftest.$ac_objext |
| 25390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 25391 | (eval $ac_compile) 2>conftest.er1 |
| 25392 | ac_status=$? |
| 25393 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25394 | rm -f conftest.er1 |
| 25395 | cat conftest.err >&5 |
| 25396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25397 | (exit $ac_status); } && |
| 25398 | { ac_try='test -z "$ac_c_werror_flag" |
| 25399 | || test ! -s conftest.err' |
| 25400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25401 | (eval $ac_try) 2>&5 |
| 25402 | ac_status=$? |
| 25403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25404 | (exit $ac_status); }; } && |
| 25405 | { ac_try='test -s conftest.$ac_objext' |
| 25406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25407 | (eval $ac_try) 2>&5 |
| 25408 | ac_status=$? |
| 25409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25410 | (exit $ac_status); }; }; then |
| 25411 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes |
| 25412 | else |
| 25413 | echo "$as_me: failed program was:" >&5 |
| 25414 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25415 | |
| 25416 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no |
| 25417 | |
| 25418 | fi |
| 25419 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25420 | fi |
| 25421 | |
| 25422 | if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then |
| 25423 | |
| 25424 | cat >>confdefs.h <<\_ACEOF |
| 25425 | #define HAVE_PR_SIGACTION64_T 1 |
| 25426 | _ACEOF |
| 25427 | |
| 25428 | fi |
| 25429 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5 |
| 25430 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6 |
| 25431 | |
| 25432 | echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5 |
| 25433 | echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6 |
| 25434 | if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then |
| 25435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25436 | else |
| 25437 | cat >conftest.$ac_ext <<_ACEOF |
| 25438 | /* confdefs.h. */ |
| 25439 | _ACEOF |
| 25440 | cat confdefs.h >>conftest.$ac_ext |
| 25441 | cat >>conftest.$ac_ext <<_ACEOF |
| 25442 | /* end confdefs.h. */ |
| 25443 | |
| 25444 | #define _SYSCALL32 |
| 25445 | #include <sys/procfs.h> |
| 25446 | int |
| 25447 | main () |
| 25448 | { |
| 25449 | pr_siginfo64_t avar |
| 25450 | ; |
| 25451 | return 0; |
| 25452 | } |
| 25453 | _ACEOF |
| 25454 | rm -f conftest.$ac_objext |
| 25455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 25456 | (eval $ac_compile) 2>conftest.er1 |
| 25457 | ac_status=$? |
| 25458 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25459 | rm -f conftest.er1 |
| 25460 | cat conftest.err >&5 |
| 25461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25462 | (exit $ac_status); } && |
| 25463 | { ac_try='test -z "$ac_c_werror_flag" |
| 25464 | || test ! -s conftest.err' |
| 25465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25466 | (eval $ac_try) 2>&5 |
| 25467 | ac_status=$? |
| 25468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25469 | (exit $ac_status); }; } && |
| 25470 | { ac_try='test -s conftest.$ac_objext' |
| 25471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25472 | (eval $ac_try) 2>&5 |
| 25473 | ac_status=$? |
| 25474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25475 | (exit $ac_status); }; }; then |
| 25476 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes |
| 25477 | else |
| 25478 | echo "$as_me: failed program was:" >&5 |
| 25479 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25480 | |
| 25481 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no |
| 25482 | |
| 25483 | fi |
| 25484 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25485 | fi |
| 25486 | |
| 25487 | if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then |
| 25488 | |
| 25489 | cat >>confdefs.h <<\_ACEOF |
| 25490 | #define HAVE_PR_SIGINFO64_T 1 |
| 25491 | _ACEOF |
| 25492 | |
| 25493 | fi |
| 25494 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5 |
| 25495 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6 |
| 25496 | |
| 25497 | |
| 25498 | |
| 25499 | |
| 25500 | |
| 25501 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
| 25502 | echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5 |
| 25503 | echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6 |
| 25504 | if test "${gdb_cv_prfpregset_t_broken+set}" = set; then |
| 25505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25506 | else |
| 25507 | if test "$cross_compiling" = yes; then |
| 25508 | gdb_cv_prfpregset_t_broken=yes |
| 25509 | else |
| 25510 | cat >conftest.$ac_ext <<_ACEOF |
| 25511 | /* confdefs.h. */ |
| 25512 | _ACEOF |
| 25513 | cat confdefs.h >>conftest.$ac_ext |
| 25514 | cat >>conftest.$ac_ext <<_ACEOF |
| 25515 | /* end confdefs.h. */ |
| 25516 | #include <sys/procfs.h> |
| 25517 | int main () |
| 25518 | { |
| 25519 | if (sizeof (prfpregset_t) == sizeof (void *)) |
| 25520 | return 1; |
| 25521 | return 0; |
| 25522 | } |
| 25523 | _ACEOF |
| 25524 | rm -f conftest$ac_exeext |
| 25525 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 25526 | (eval $ac_link) 2>&5 |
| 25527 | ac_status=$? |
| 25528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25529 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 25530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25531 | (eval $ac_try) 2>&5 |
| 25532 | ac_status=$? |
| 25533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25534 | (exit $ac_status); }; }; then |
| 25535 | gdb_cv_prfpregset_t_broken=no |
| 25536 | else |
| 25537 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25538 | echo "$as_me: failed program was:" >&5 |
| 25539 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25540 | |
| 25541 | ( exit $ac_status ) |
| 25542 | gdb_cv_prfpregset_t_broken=yes |
| 25543 | fi |
| 25544 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 25545 | fi |
| 25546 | fi |
| 25547 | |
| 25548 | echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5 |
| 25549 | echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6 |
| 25550 | if test $gdb_cv_prfpregset_t_broken = yes; then |
| 25551 | |
| 25552 | cat >>confdefs.h <<\_ACEOF |
| 25553 | #define PRFPREGSET_T_BROKEN 1 |
| 25554 | _ACEOF |
| 25555 | |
| 25556 | fi |
| 25557 | fi |
| 25558 | |
| 25559 | |
| 25560 | echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5 |
| 25561 | echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6 |
| 25562 | if test "${gdb_cv_have_procfs_piocset+set}" = set; then |
| 25563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25564 | else |
| 25565 | cat >conftest.$ac_ext <<_ACEOF |
| 25566 | /* confdefs.h. */ |
| 25567 | _ACEOF |
| 25568 | cat confdefs.h >>conftest.$ac_ext |
| 25569 | cat >>conftest.$ac_ext <<_ACEOF |
| 25570 | /* end confdefs.h. */ |
| 25571 | #include <unistd.h> |
| 25572 | #include <sys/types.h> |
| 25573 | #include <sys/procfs.h> |
| 25574 | |
| 25575 | int |
| 25576 | main () |
| 25577 | { |
| 25578 | |
| 25579 | int dummy;; |
| 25580 | dummy = ioctl(0, PIOCSET, &dummy); |
| 25581 | |
| 25582 | ; |
| 25583 | return 0; |
| 25584 | } |
| 25585 | _ACEOF |
| 25586 | rm -f conftest.$ac_objext |
| 25587 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 25588 | (eval $ac_compile) 2>conftest.er1 |
| 25589 | ac_status=$? |
| 25590 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25591 | rm -f conftest.er1 |
| 25592 | cat conftest.err >&5 |
| 25593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25594 | (exit $ac_status); } && |
| 25595 | { ac_try='test -z "$ac_c_werror_flag" |
| 25596 | || test ! -s conftest.err' |
| 25597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25598 | (eval $ac_try) 2>&5 |
| 25599 | ac_status=$? |
| 25600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25601 | (exit $ac_status); }; } && |
| 25602 | { ac_try='test -s conftest.$ac_objext' |
| 25603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25604 | (eval $ac_try) 2>&5 |
| 25605 | ac_status=$? |
| 25606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25607 | (exit $ac_status); }; }; then |
| 25608 | gdb_cv_have_procfs_piocset=yes |
| 25609 | else |
| 25610 | echo "$as_me: failed program was:" >&5 |
| 25611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25612 | |
| 25613 | gdb_cv_have_procfs_piocset=no |
| 25614 | fi |
| 25615 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25616 | fi |
| 25617 | |
| 25618 | echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5 |
| 25619 | echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6 |
| 25620 | if test $gdb_cv_have_procfs_piocset = yes; then |
| 25621 | |
| 25622 | cat >>confdefs.h <<\_ACEOF |
| 25623 | #define HAVE_PROCFS_PIOCSET 1 |
| 25624 | _ACEOF |
| 25625 | |
| 25626 | fi |
| 25627 | fi |
| 25628 | |
| 25629 | if test ${host} = ${target} ; then |
| 25630 | |
| 25631 | echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5 |
| 25632 | echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6 |
| 25633 | if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then |
| 25634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25635 | else |
| 25636 | cat >conftest.$ac_ext <<_ACEOF |
| 25637 | /* confdefs.h. */ |
| 25638 | _ACEOF |
| 25639 | cat confdefs.h >>conftest.$ac_ext |
| 25640 | cat >>conftest.$ac_ext <<_ACEOF |
| 25641 | /* end confdefs.h. */ |
| 25642 | #include <link.h> |
| 25643 | int |
| 25644 | main () |
| 25645 | { |
| 25646 | struct link_map lm; (void) lm.l_addr; |
| 25647 | ; |
| 25648 | return 0; |
| 25649 | } |
| 25650 | _ACEOF |
| 25651 | rm -f conftest.$ac_objext |
| 25652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 25653 | (eval $ac_compile) 2>conftest.er1 |
| 25654 | ac_status=$? |
| 25655 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25656 | rm -f conftest.er1 |
| 25657 | cat conftest.err >&5 |
| 25658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25659 | (exit $ac_status); } && |
| 25660 | { ac_try='test -z "$ac_c_werror_flag" |
| 25661 | || test ! -s conftest.err' |
| 25662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25663 | (eval $ac_try) 2>&5 |
| 25664 | ac_status=$? |
| 25665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25666 | (exit $ac_status); }; } && |
| 25667 | { ac_try='test -s conftest.$ac_objext' |
| 25668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25669 | (eval $ac_try) 2>&5 |
| 25670 | ac_status=$? |
| 25671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25672 | (exit $ac_status); }; }; then |
| 25673 | gdb_cv_have_struct_link_map_with_l_members=yes |
| 25674 | else |
| 25675 | echo "$as_me: failed program was:" >&5 |
| 25676 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25677 | |
| 25678 | gdb_cv_have_struct_link_map_with_l_members=no |
| 25679 | fi |
| 25680 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25681 | fi |
| 25682 | |
| 25683 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5 |
| 25684 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6 |
| 25685 | if test $gdb_cv_have_struct_link_map_with_l_members = yes; then |
| 25686 | |
| 25687 | cat >>confdefs.h <<\_ACEOF |
| 25688 | #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1 |
| 25689 | _ACEOF |
| 25690 | |
| 25691 | fi |
| 25692 | |
| 25693 | |
| 25694 | echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5 |
| 25695 | echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6 |
| 25696 | if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then |
| 25697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25698 | else |
| 25699 | cat >conftest.$ac_ext <<_ACEOF |
| 25700 | /* confdefs.h. */ |
| 25701 | _ACEOF |
| 25702 | cat confdefs.h >>conftest.$ac_ext |
| 25703 | cat >>conftest.$ac_ext <<_ACEOF |
| 25704 | /* end confdefs.h. */ |
| 25705 | #include <sys/types.h> |
| 25706 | #include <link.h> |
| 25707 | int |
| 25708 | main () |
| 25709 | { |
| 25710 | struct link_map lm; (void) lm.lm_addr; |
| 25711 | ; |
| 25712 | return 0; |
| 25713 | } |
| 25714 | _ACEOF |
| 25715 | rm -f conftest.$ac_objext |
| 25716 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 25717 | (eval $ac_compile) 2>conftest.er1 |
| 25718 | ac_status=$? |
| 25719 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25720 | rm -f conftest.er1 |
| 25721 | cat conftest.err >&5 |
| 25722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25723 | (exit $ac_status); } && |
| 25724 | { ac_try='test -z "$ac_c_werror_flag" |
| 25725 | || test ! -s conftest.err' |
| 25726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25727 | (eval $ac_try) 2>&5 |
| 25728 | ac_status=$? |
| 25729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25730 | (exit $ac_status); }; } && |
| 25731 | { ac_try='test -s conftest.$ac_objext' |
| 25732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25733 | (eval $ac_try) 2>&5 |
| 25734 | ac_status=$? |
| 25735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25736 | (exit $ac_status); }; }; then |
| 25737 | gdb_cv_have_struct_link_map_with_lm_members=yes |
| 25738 | else |
| 25739 | echo "$as_me: failed program was:" >&5 |
| 25740 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25741 | |
| 25742 | gdb_cv_have_struct_link_map_with_lm_members=no |
| 25743 | fi |
| 25744 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25745 | fi |
| 25746 | |
| 25747 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5 |
| 25748 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6 |
| 25749 | if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then |
| 25750 | |
| 25751 | cat >>confdefs.h <<\_ACEOF |
| 25752 | #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1 |
| 25753 | _ACEOF |
| 25754 | |
| 25755 | fi |
| 25756 | |
| 25757 | |
| 25758 | echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5 |
| 25759 | echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6 |
| 25760 | if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then |
| 25761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25762 | else |
| 25763 | cat >conftest.$ac_ext <<_ACEOF |
| 25764 | /* confdefs.h. */ |
| 25765 | _ACEOF |
| 25766 | cat confdefs.h >>conftest.$ac_ext |
| 25767 | cat >>conftest.$ac_ext <<_ACEOF |
| 25768 | /* end confdefs.h. */ |
| 25769 | #include <sys/types.h> |
| 25770 | #ifdef HAVE_NLIST_H |
| 25771 | #include <nlist.h> |
| 25772 | #endif |
| 25773 | #include <link.h> |
| 25774 | int |
| 25775 | main () |
| 25776 | { |
| 25777 | struct so_map lm; (void) lm.som_addr; |
| 25778 | ; |
| 25779 | return 0; |
| 25780 | } |
| 25781 | _ACEOF |
| 25782 | rm -f conftest.$ac_objext |
| 25783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 25784 | (eval $ac_compile) 2>conftest.er1 |
| 25785 | ac_status=$? |
| 25786 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25787 | rm -f conftest.er1 |
| 25788 | cat conftest.err >&5 |
| 25789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25790 | (exit $ac_status); } && |
| 25791 | { ac_try='test -z "$ac_c_werror_flag" |
| 25792 | || test ! -s conftest.err' |
| 25793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25794 | (eval $ac_try) 2>&5 |
| 25795 | ac_status=$? |
| 25796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25797 | (exit $ac_status); }; } && |
| 25798 | { ac_try='test -s conftest.$ac_objext' |
| 25799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25800 | (eval $ac_try) 2>&5 |
| 25801 | ac_status=$? |
| 25802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25803 | (exit $ac_status); }; }; then |
| 25804 | gdb_cv_have_struct_so_map_with_som_members=yes |
| 25805 | else |
| 25806 | echo "$as_me: failed program was:" >&5 |
| 25807 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25808 | |
| 25809 | gdb_cv_have_struct_so_map_with_som_members=no |
| 25810 | fi |
| 25811 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25812 | fi |
| 25813 | |
| 25814 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5 |
| 25815 | echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6 |
| 25816 | if test $gdb_cv_have_struct_so_map_with_som_members = yes; then |
| 25817 | |
| 25818 | cat >>confdefs.h <<\_ACEOF |
| 25819 | #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1 |
| 25820 | _ACEOF |
| 25821 | |
| 25822 | fi |
| 25823 | |
| 25824 | |
| 25825 | echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5 |
| 25826 | echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6 |
| 25827 | if test "${gdb_cv_have_struct_link_map32+set}" = set; then |
| 25828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25829 | else |
| 25830 | cat >conftest.$ac_ext <<_ACEOF |
| 25831 | /* confdefs.h. */ |
| 25832 | _ACEOF |
| 25833 | cat confdefs.h >>conftest.$ac_ext |
| 25834 | cat >>conftest.$ac_ext <<_ACEOF |
| 25835 | /* end confdefs.h. */ |
| 25836 | #define _SYSCALL32 |
| 25837 | #include <sys/link.h> |
| 25838 | int |
| 25839 | main () |
| 25840 | { |
| 25841 | struct link_map32 l; |
| 25842 | ; |
| 25843 | return 0; |
| 25844 | } |
| 25845 | _ACEOF |
| 25846 | rm -f conftest.$ac_objext |
| 25847 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 25848 | (eval $ac_compile) 2>conftest.er1 |
| 25849 | ac_status=$? |
| 25850 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25851 | rm -f conftest.er1 |
| 25852 | cat conftest.err >&5 |
| 25853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25854 | (exit $ac_status); } && |
| 25855 | { ac_try='test -z "$ac_c_werror_flag" |
| 25856 | || test ! -s conftest.err' |
| 25857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25858 | (eval $ac_try) 2>&5 |
| 25859 | ac_status=$? |
| 25860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25861 | (exit $ac_status); }; } && |
| 25862 | { ac_try='test -s conftest.$ac_objext' |
| 25863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25864 | (eval $ac_try) 2>&5 |
| 25865 | ac_status=$? |
| 25866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25867 | (exit $ac_status); }; }; then |
| 25868 | gdb_cv_have_struct_link_map32=yes |
| 25869 | else |
| 25870 | echo "$as_me: failed program was:" >&5 |
| 25871 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25872 | |
| 25873 | gdb_cv_have_struct_link_map32=no |
| 25874 | fi |
| 25875 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25876 | fi |
| 25877 | |
| 25878 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5 |
| 25879 | echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6 |
| 25880 | if test $gdb_cv_have_struct_link_map32 = yes; then |
| 25881 | |
| 25882 | cat >>confdefs.h <<\_ACEOF |
| 25883 | #define HAVE_STRUCT_LINK_MAP32 1 |
| 25884 | _ACEOF |
| 25885 | |
| 25886 | |
| 25887 | cat >>confdefs.h <<\_ACEOF |
| 25888 | #define _SYSCALL32 1 |
| 25889 | _ACEOF |
| 25890 | |
| 25891 | fi |
| 25892 | fi |
| 25893 | |
| 25894 | # Check if the compiler supports the `long long' type. |
| 25895 | |
| 25896 | echo "$as_me:$LINENO: checking for long long support in compiler" >&5 |
| 25897 | echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6 |
| 25898 | if test "${gdb_cv_c_long_long+set}" = set; then |
| 25899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25900 | else |
| 25901 | cat >conftest.$ac_ext <<_ACEOF |
| 25902 | /* confdefs.h. */ |
| 25903 | _ACEOF |
| 25904 | cat confdefs.h >>conftest.$ac_ext |
| 25905 | cat >>conftest.$ac_ext <<_ACEOF |
| 25906 | /* end confdefs.h. */ |
| 25907 | extern long long foo; |
| 25908 | int |
| 25909 | main () |
| 25910 | { |
| 25911 | switch (foo & 2) { case 0: return 1; } |
| 25912 | ; |
| 25913 | return 0; |
| 25914 | } |
| 25915 | _ACEOF |
| 25916 | rm -f conftest.$ac_objext |
| 25917 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 25918 | (eval $ac_compile) 2>conftest.er1 |
| 25919 | ac_status=$? |
| 25920 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25921 | rm -f conftest.er1 |
| 25922 | cat conftest.err >&5 |
| 25923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25924 | (exit $ac_status); } && |
| 25925 | { ac_try='test -z "$ac_c_werror_flag" |
| 25926 | || test ! -s conftest.err' |
| 25927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25928 | (eval $ac_try) 2>&5 |
| 25929 | ac_status=$? |
| 25930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25931 | (exit $ac_status); }; } && |
| 25932 | { ac_try='test -s conftest.$ac_objext' |
| 25933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25934 | (eval $ac_try) 2>&5 |
| 25935 | ac_status=$? |
| 25936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25937 | (exit $ac_status); }; }; then |
| 25938 | gdb_cv_c_long_long=yes |
| 25939 | else |
| 25940 | echo "$as_me: failed program was:" >&5 |
| 25941 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25942 | |
| 25943 | gdb_cv_c_long_long=no |
| 25944 | fi |
| 25945 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25946 | fi |
| 25947 | echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5 |
| 25948 | echo "${ECHO_T}$gdb_cv_c_long_long" >&6 |
| 25949 | if test $gdb_cv_c_long_long = yes; then |
| 25950 | |
| 25951 | cat >>confdefs.h <<\_ACEOF |
| 25952 | #define CC_HAS_LONG_LONG 1 |
| 25953 | _ACEOF |
| 25954 | |
| 25955 | fi |
| 25956 | |
| 25957 | # Check if the compiler and runtime support printing long longs. |
| 25958 | |
| 25959 | echo "$as_me:$LINENO: checking for long long support in printf" >&5 |
| 25960 | echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6 |
| 25961 | if test "${gdb_cv_printf_has_long_long+set}" = set; then |
| 25962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25963 | else |
| 25964 | if test "$cross_compiling" = yes; then |
| 25965 | gdb_cv_printf_has_long_long=no |
| 25966 | else |
| 25967 | cat >conftest.$ac_ext <<_ACEOF |
| 25968 | /* confdefs.h. */ |
| 25969 | _ACEOF |
| 25970 | cat confdefs.h >>conftest.$ac_ext |
| 25971 | cat >>conftest.$ac_ext <<_ACEOF |
| 25972 | /* end confdefs.h. */ |
| 25973 | $ac_includes_default |
| 25974 | int |
| 25975 | main () |
| 25976 | { |
| 25977 | char buf[32]; |
| 25978 | long long l = 0; |
| 25979 | l = (l << 16) + 0x0123; |
| 25980 | l = (l << 16) + 0x4567; |
| 25981 | l = (l << 16) + 0x89ab; |
| 25982 | l = (l << 16) + 0xcdef; |
| 25983 | sprintf (buf, "0x%016llx", l); |
| 25984 | return (strcmp ("0x0123456789abcdef", buf)); |
| 25985 | ; |
| 25986 | return 0; |
| 25987 | } |
| 25988 | _ACEOF |
| 25989 | rm -f conftest$ac_exeext |
| 25990 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 25991 | (eval $ac_link) 2>&5 |
| 25992 | ac_status=$? |
| 25993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25994 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 25995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25996 | (eval $ac_try) 2>&5 |
| 25997 | ac_status=$? |
| 25998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25999 | (exit $ac_status); }; }; then |
| 26000 | gdb_cv_printf_has_long_long=yes |
| 26001 | else |
| 26002 | echo "$as_me: program exited with status $ac_status" >&5 |
| 26003 | echo "$as_me: failed program was:" >&5 |
| 26004 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26005 | |
| 26006 | ( exit $ac_status ) |
| 26007 | gdb_cv_printf_has_long_long=no |
| 26008 | fi |
| 26009 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 26010 | fi |
| 26011 | fi |
| 26012 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5 |
| 26013 | echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6 |
| 26014 | if test $gdb_cv_printf_has_long_long = yes; then |
| 26015 | |
| 26016 | cat >>confdefs.h <<\_ACEOF |
| 26017 | #define PRINTF_HAS_LONG_LONG 1 |
| 26018 | _ACEOF |
| 26019 | |
| 26020 | fi |
| 26021 | |
| 26022 | # Check if the compiler and runtime support printing decfloats. |
| 26023 | |
| 26024 | echo "$as_me:$LINENO: checking for decfloat support in printf" >&5 |
| 26025 | echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6 |
| 26026 | if test "${gdb_cv_printf_has_decfloat+set}" = set; then |
| 26027 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26028 | else |
| 26029 | if test "$cross_compiling" = yes; then |
| 26030 | gdb_cv_printf_has_decfloat=no |
| 26031 | else |
| 26032 | cat >conftest.$ac_ext <<_ACEOF |
| 26033 | /* confdefs.h. */ |
| 26034 | _ACEOF |
| 26035 | cat confdefs.h >>conftest.$ac_ext |
| 26036 | cat >>conftest.$ac_ext <<_ACEOF |
| 26037 | /* end confdefs.h. */ |
| 26038 | $ac_includes_default |
| 26039 | int |
| 26040 | main () |
| 26041 | { |
| 26042 | char buf[64]; |
| 26043 | _Decimal32 d32 = 1.2345df; |
| 26044 | _Decimal64 d64 = 1.2345dd; |
| 26045 | _Decimal128 d128 = 1.2345dl; |
| 26046 | sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128); |
| 26047 | return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf)); |
| 26048 | ; |
| 26049 | return 0; |
| 26050 | } |
| 26051 | _ACEOF |
| 26052 | rm -f conftest$ac_exeext |
| 26053 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 26054 | (eval $ac_link) 2>&5 |
| 26055 | ac_status=$? |
| 26056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26057 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 26058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26059 | (eval $ac_try) 2>&5 |
| 26060 | ac_status=$? |
| 26061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26062 | (exit $ac_status); }; }; then |
| 26063 | gdb_cv_printf_has_decfloat=yes |
| 26064 | else |
| 26065 | echo "$as_me: program exited with status $ac_status" >&5 |
| 26066 | echo "$as_me: failed program was:" >&5 |
| 26067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26068 | |
| 26069 | ( exit $ac_status ) |
| 26070 | gdb_cv_printf_has_decfloat=no |
| 26071 | fi |
| 26072 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 26073 | fi |
| 26074 | fi |
| 26075 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5 |
| 26076 | echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6 |
| 26077 | if test $gdb_cv_printf_has_decfloat = yes; then |
| 26078 | |
| 26079 | cat >>confdefs.h <<\_ACEOF |
| 26080 | #define PRINTF_HAS_DECFLOAT 1 |
| 26081 | _ACEOF |
| 26082 | |
| 26083 | fi |
| 26084 | |
| 26085 | # Check if the compiler supports the `long double' type. We can't use |
| 26086 | # AC_C_LONG_DOUBLE because that one does additional checks on the |
| 26087 | # constants defined in <float.h> that fail on some systems, |
| 26088 | # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6. |
| 26089 | |
| 26090 | echo "$as_me:$LINENO: checking for long double support in compiler" >&5 |
| 26091 | echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6 |
| 26092 | if test "${gdb_cv_c_long_double+set}" = set; then |
| 26093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26094 | else |
| 26095 | cat >conftest.$ac_ext <<_ACEOF |
| 26096 | /* confdefs.h. */ |
| 26097 | _ACEOF |
| 26098 | cat confdefs.h >>conftest.$ac_ext |
| 26099 | cat >>conftest.$ac_ext <<_ACEOF |
| 26100 | /* end confdefs.h. */ |
| 26101 | long double foo; |
| 26102 | _ACEOF |
| 26103 | rm -f conftest.$ac_objext |
| 26104 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 26105 | (eval $ac_compile) 2>conftest.er1 |
| 26106 | ac_status=$? |
| 26107 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26108 | rm -f conftest.er1 |
| 26109 | cat conftest.err >&5 |
| 26110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26111 | (exit $ac_status); } && |
| 26112 | { ac_try='test -z "$ac_c_werror_flag" |
| 26113 | || test ! -s conftest.err' |
| 26114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26115 | (eval $ac_try) 2>&5 |
| 26116 | ac_status=$? |
| 26117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26118 | (exit $ac_status); }; } && |
| 26119 | { ac_try='test -s conftest.$ac_objext' |
| 26120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26121 | (eval $ac_try) 2>&5 |
| 26122 | ac_status=$? |
| 26123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26124 | (exit $ac_status); }; }; then |
| 26125 | gdb_cv_c_long_double=yes |
| 26126 | else |
| 26127 | echo "$as_me: failed program was:" >&5 |
| 26128 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26129 | |
| 26130 | gdb_cv_c_long_double=no |
| 26131 | fi |
| 26132 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26133 | fi |
| 26134 | echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5 |
| 26135 | echo "${ECHO_T}$gdb_cv_c_long_double" >&6 |
| 26136 | if test $gdb_cv_c_long_double = yes; then |
| 26137 | |
| 26138 | cat >>confdefs.h <<\_ACEOF |
| 26139 | #define HAVE_LONG_DOUBLE 1 |
| 26140 | _ACEOF |
| 26141 | |
| 26142 | fi |
| 26143 | |
| 26144 | # Check if the compiler and runtime support printing long doubles. |
| 26145 | |
| 26146 | echo "$as_me:$LINENO: checking for long double support in printf" >&5 |
| 26147 | echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6 |
| 26148 | if test "${gdb_cv_printf_has_long_double+set}" = set; then |
| 26149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26150 | else |
| 26151 | if test "$cross_compiling" = yes; then |
| 26152 | gdb_cv_printf_has_long_double=no |
| 26153 | else |
| 26154 | cat >conftest.$ac_ext <<_ACEOF |
| 26155 | /* confdefs.h. */ |
| 26156 | _ACEOF |
| 26157 | cat confdefs.h >>conftest.$ac_ext |
| 26158 | cat >>conftest.$ac_ext <<_ACEOF |
| 26159 | /* end confdefs.h. */ |
| 26160 | $ac_includes_default |
| 26161 | int |
| 26162 | main () |
| 26163 | { |
| 26164 | char buf[16]; |
| 26165 | long double f = 3.141592653; |
| 26166 | sprintf (buf, "%Lg", f); |
| 26167 | return (strncmp ("3.14159", buf, 7)); |
| 26168 | ; |
| 26169 | return 0; |
| 26170 | } |
| 26171 | _ACEOF |
| 26172 | rm -f conftest$ac_exeext |
| 26173 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 26174 | (eval $ac_link) 2>&5 |
| 26175 | ac_status=$? |
| 26176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26177 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 26178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26179 | (eval $ac_try) 2>&5 |
| 26180 | ac_status=$? |
| 26181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26182 | (exit $ac_status); }; }; then |
| 26183 | gdb_cv_printf_has_long_double=yes |
| 26184 | else |
| 26185 | echo "$as_me: program exited with status $ac_status" >&5 |
| 26186 | echo "$as_me: failed program was:" >&5 |
| 26187 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26188 | |
| 26189 | ( exit $ac_status ) |
| 26190 | gdb_cv_printf_has_long_double=no |
| 26191 | fi |
| 26192 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 26193 | fi |
| 26194 | fi |
| 26195 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5 |
| 26196 | echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6 |
| 26197 | if test $gdb_cv_printf_has_long_double = yes; then |
| 26198 | |
| 26199 | cat >>confdefs.h <<\_ACEOF |
| 26200 | #define PRINTF_HAS_LONG_DOUBLE 1 |
| 26201 | _ACEOF |
| 26202 | |
| 26203 | fi |
| 26204 | |
| 26205 | # Check if the compiler and runtime support scanning long doubles. |
| 26206 | |
| 26207 | echo "$as_me:$LINENO: checking for long double support in scanf" >&5 |
| 26208 | echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6 |
| 26209 | if test "${gdb_cv_scanf_has_long_double+set}" = set; then |
| 26210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26211 | else |
| 26212 | if test "$cross_compiling" = yes; then |
| 26213 | gdb_cv_scanf_has_long_double=no |
| 26214 | else |
| 26215 | cat >conftest.$ac_ext <<_ACEOF |
| 26216 | /* confdefs.h. */ |
| 26217 | _ACEOF |
| 26218 | cat confdefs.h >>conftest.$ac_ext |
| 26219 | cat >>conftest.$ac_ext <<_ACEOF |
| 26220 | /* end confdefs.h. */ |
| 26221 | #include <stdio.h> |
| 26222 | int |
| 26223 | main () |
| 26224 | { |
| 26225 | char *buf = "3.141592653"; |
| 26226 | long double f = 0; |
| 26227 | sscanf (buf, "%Lg", &f); |
| 26228 | return !(f > 3.14159 && f < 3.14160); |
| 26229 | ; |
| 26230 | return 0; |
| 26231 | } |
| 26232 | _ACEOF |
| 26233 | rm -f conftest$ac_exeext |
| 26234 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 26235 | (eval $ac_link) 2>&5 |
| 26236 | ac_status=$? |
| 26237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26238 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 26239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26240 | (eval $ac_try) 2>&5 |
| 26241 | ac_status=$? |
| 26242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26243 | (exit $ac_status); }; }; then |
| 26244 | gdb_cv_scanf_has_long_double=yes |
| 26245 | else |
| 26246 | echo "$as_me: program exited with status $ac_status" >&5 |
| 26247 | echo "$as_me: failed program was:" >&5 |
| 26248 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26249 | |
| 26250 | ( exit $ac_status ) |
| 26251 | gdb_cv_scanf_has_long_double=no |
| 26252 | fi |
| 26253 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 26254 | fi |
| 26255 | fi |
| 26256 | echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5 |
| 26257 | echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6 |
| 26258 | if test $gdb_cv_scanf_has_long_double = yes; then |
| 26259 | |
| 26260 | cat >>confdefs.h <<\_ACEOF |
| 26261 | #define SCANF_HAS_LONG_DOUBLE 1 |
| 26262 | _ACEOF |
| 26263 | |
| 26264 | fi |
| 26265 | |
| 26266 | case ${host_os} in |
| 26267 | aix*) |
| 26268 | echo "$as_me:$LINENO: checking for -bbigtoc option" >&5 |
| 26269 | echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6 |
| 26270 | if test "${gdb_cv_bigtoc+set}" = set; then |
| 26271 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26272 | else |
| 26273 | |
| 26274 | SAVE_LDFLAGS=$LDFLAGS |
| 26275 | |
| 26276 | case $GCC in |
| 26277 | yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; |
| 26278 | *) gdb_cv_bigtoc=-bbigtoc ;; |
| 26279 | esac |
| 26280 | |
| 26281 | LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc |
| 26282 | cat >conftest.$ac_ext <<_ACEOF |
| 26283 | /* confdefs.h. */ |
| 26284 | _ACEOF |
| 26285 | cat confdefs.h >>conftest.$ac_ext |
| 26286 | cat >>conftest.$ac_ext <<_ACEOF |
| 26287 | /* end confdefs.h. */ |
| 26288 | |
| 26289 | int |
| 26290 | main () |
| 26291 | { |
| 26292 | int i; |
| 26293 | ; |
| 26294 | return 0; |
| 26295 | } |
| 26296 | _ACEOF |
| 26297 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 26298 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 26299 | (eval $ac_link) 2>conftest.er1 |
| 26300 | ac_status=$? |
| 26301 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26302 | rm -f conftest.er1 |
| 26303 | cat conftest.err >&5 |
| 26304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26305 | (exit $ac_status); } && |
| 26306 | { ac_try='test -z "$ac_c_werror_flag" |
| 26307 | || test ! -s conftest.err' |
| 26308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26309 | (eval $ac_try) 2>&5 |
| 26310 | ac_status=$? |
| 26311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26312 | (exit $ac_status); }; } && |
| 26313 | { ac_try='test -s conftest$ac_exeext' |
| 26314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26315 | (eval $ac_try) 2>&5 |
| 26316 | ac_status=$? |
| 26317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26318 | (exit $ac_status); }; }; then |
| 26319 | : |
| 26320 | else |
| 26321 | echo "$as_me: failed program was:" >&5 |
| 26322 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26323 | |
| 26324 | gdb_cv_bigtoc= |
| 26325 | fi |
| 26326 | rm -f conftest.err conftest.$ac_objext \ |
| 26327 | conftest$ac_exeext conftest.$ac_ext |
| 26328 | LDFLAGS="${SAVE_LDFLAGS}" |
| 26329 | |
| 26330 | fi |
| 26331 | echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5 |
| 26332 | echo "${ECHO_T}$gdb_cv_bigtoc" >&6 |
| 26333 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}" |
| 26334 | ;; |
| 26335 | esac |
| 26336 | |
| 26337 | |
| 26338 | |
| 26339 | if test ${build} = ${host} -a ${host} = ${target} ; then |
| 26340 | case ${host_os} in |
| 26341 | hpux*) |
| 26342 | echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5 |
| 26343 | echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6 |
| 26344 | if test -f /usr/include/dce/cma_config.h ; then |
| 26345 | if test "$GCC" = "yes" ; then |
| 26346 | echo "$as_me:$LINENO: result: yes" >&5 |
| 26347 | echo "${ECHO_T}yes" >&6 |
| 26348 | |
| 26349 | cat >>confdefs.h <<\_ACEOF |
| 26350 | #define HAVE_HPUX_THREAD_SUPPORT 1 |
| 26351 | _ACEOF |
| 26352 | |
| 26353 | CONFIG_OBS="${CONFIG_OBS} hpux-thread.o" |
| 26354 | CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c" |
| 26355 | else |
| 26356 | echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5 |
| 26357 | echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6 |
| 26358 | fi |
| 26359 | else |
| 26360 | echo "$as_me:$LINENO: result: no" >&5 |
| 26361 | echo "${ECHO_T}no" >&6 |
| 26362 | fi |
| 26363 | ;; |
| 26364 | solaris*) |
| 26365 | # See if thread_db library is around for Solaris thread debugging. |
| 26366 | # Note that we must explicitly test for version 1 of the library |
| 26367 | # because version 0 (present on Solaris 2.4 or earlier) doesn't have |
| 26368 | # the same API. |
| 26369 | echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5 |
| 26370 | echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6 |
| 26371 | if test -f /usr/lib/libthread_db.so.1 ; then |
| 26372 | echo "$as_me:$LINENO: result: yes" >&5 |
| 26373 | echo "${ECHO_T}yes" >&6 |
| 26374 | |
| 26375 | cat >>confdefs.h <<\_ACEOF |
| 26376 | #define HAVE_THREAD_DB_LIB 1 |
| 26377 | _ACEOF |
| 26378 | |
| 26379 | CONFIG_OBS="${CONFIG_OBS} sol-thread.o" |
| 26380 | CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c" |
| 26381 | |
| 26382 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 26383 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 26384 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 26385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26386 | else |
| 26387 | ac_check_lib_save_LIBS=$LIBS |
| 26388 | LIBS="-ldl $LIBS" |
| 26389 | cat >conftest.$ac_ext <<_ACEOF |
| 26390 | /* confdefs.h. */ |
| 26391 | _ACEOF |
| 26392 | cat confdefs.h >>conftest.$ac_ext |
| 26393 | cat >>conftest.$ac_ext <<_ACEOF |
| 26394 | /* end confdefs.h. */ |
| 26395 | |
| 26396 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 26397 | #ifdef __cplusplus |
| 26398 | extern "C" |
| 26399 | #endif |
| 26400 | /* We use char because int might match the return type of a gcc2 |
| 26401 | builtin and then its argument prototype would still apply. */ |
| 26402 | char dlopen (); |
| 26403 | int |
| 26404 | main () |
| 26405 | { |
| 26406 | dlopen (); |
| 26407 | ; |
| 26408 | return 0; |
| 26409 | } |
| 26410 | _ACEOF |
| 26411 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 26412 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 26413 | (eval $ac_link) 2>conftest.er1 |
| 26414 | ac_status=$? |
| 26415 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26416 | rm -f conftest.er1 |
| 26417 | cat conftest.err >&5 |
| 26418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26419 | (exit $ac_status); } && |
| 26420 | { ac_try='test -z "$ac_c_werror_flag" |
| 26421 | || test ! -s conftest.err' |
| 26422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26423 | (eval $ac_try) 2>&5 |
| 26424 | ac_status=$? |
| 26425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26426 | (exit $ac_status); }; } && |
| 26427 | { ac_try='test -s conftest$ac_exeext' |
| 26428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26429 | (eval $ac_try) 2>&5 |
| 26430 | ac_status=$? |
| 26431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26432 | (exit $ac_status); }; }; then |
| 26433 | ac_cv_lib_dl_dlopen=yes |
| 26434 | else |
| 26435 | echo "$as_me: failed program was:" >&5 |
| 26436 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26437 | |
| 26438 | ac_cv_lib_dl_dlopen=no |
| 26439 | fi |
| 26440 | rm -f conftest.err conftest.$ac_objext \ |
| 26441 | conftest$ac_exeext conftest.$ac_ext |
| 26442 | LIBS=$ac_check_lib_save_LIBS |
| 26443 | fi |
| 26444 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 26445 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 26446 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 26447 | cat >>confdefs.h <<_ACEOF |
| 26448 | #define HAVE_LIBDL 1 |
| 26449 | _ACEOF |
| 26450 | |
| 26451 | LIBS="-ldl $LIBS" |
| 26452 | |
| 26453 | fi |
| 26454 | |
| 26455 | if test "$GCC" = "yes" ; then |
| 26456 | # The GNU linker requires the -export-dynamic option to make |
| 26457 | # all symbols visible in the dynamic symbol table. |
| 26458 | hold_ldflags=$LDFLAGS |
| 26459 | echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5 |
| 26460 | echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6 |
| 26461 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" |
| 26462 | cat >conftest.$ac_ext <<_ACEOF |
| 26463 | /* confdefs.h. */ |
| 26464 | _ACEOF |
| 26465 | cat confdefs.h >>conftest.$ac_ext |
| 26466 | cat >>conftest.$ac_ext <<_ACEOF |
| 26467 | /* end confdefs.h. */ |
| 26468 | |
| 26469 | int |
| 26470 | main () |
| 26471 | { |
| 26472 | int i; |
| 26473 | ; |
| 26474 | return 0; |
| 26475 | } |
| 26476 | _ACEOF |
| 26477 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 26478 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 26479 | (eval $ac_link) 2>conftest.er1 |
| 26480 | ac_status=$? |
| 26481 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26482 | rm -f conftest.er1 |
| 26483 | cat conftest.err >&5 |
| 26484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26485 | (exit $ac_status); } && |
| 26486 | { ac_try='test -z "$ac_c_werror_flag" |
| 26487 | || test ! -s conftest.err' |
| 26488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26489 | (eval $ac_try) 2>&5 |
| 26490 | ac_status=$? |
| 26491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26492 | (exit $ac_status); }; } && |
| 26493 | { ac_try='test -s conftest$ac_exeext' |
| 26494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26495 | (eval $ac_try) 2>&5 |
| 26496 | ac_status=$? |
| 26497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26498 | (exit $ac_status); }; }; then |
| 26499 | found=yes |
| 26500 | else |
| 26501 | echo "$as_me: failed program was:" >&5 |
| 26502 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26503 | |
| 26504 | found=no |
| 26505 | fi |
| 26506 | rm -f conftest.err conftest.$ac_objext \ |
| 26507 | conftest$ac_exeext conftest.$ac_ext |
| 26508 | LDFLAGS=$hold_ldflags |
| 26509 | echo "$as_me:$LINENO: result: $found" >&5 |
| 26510 | echo "${ECHO_T}$found" >&6 |
| 26511 | if test $found = yes; then |
| 26512 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic" |
| 26513 | fi |
| 26514 | fi |
| 26515 | # Sun randomly tweaked the prototypes in <proc_service.h> |
| 26516 | # at one point. |
| 26517 | echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5 |
| 26518 | echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6 |
| 26519 | if test "${gdb_cv_proc_service_is_old+set}" = set; then |
| 26520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26521 | else |
| 26522 | |
| 26523 | cat >conftest.$ac_ext <<_ACEOF |
| 26524 | /* confdefs.h. */ |
| 26525 | _ACEOF |
| 26526 | cat confdefs.h >>conftest.$ac_ext |
| 26527 | cat >>conftest.$ac_ext <<_ACEOF |
| 26528 | /* end confdefs.h. */ |
| 26529 | |
| 26530 | #include <proc_service.h> |
| 26531 | ps_err_e ps_pdwrite |
| 26532 | (struct ps_prochandle*, psaddr_t, const void*, size_t); |
| 26533 | |
| 26534 | int |
| 26535 | main () |
| 26536 | { |
| 26537 | |
| 26538 | ; |
| 26539 | return 0; |
| 26540 | } |
| 26541 | _ACEOF |
| 26542 | rm -f conftest.$ac_objext |
| 26543 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 26544 | (eval $ac_compile) 2>conftest.er1 |
| 26545 | ac_status=$? |
| 26546 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26547 | rm -f conftest.er1 |
| 26548 | cat conftest.err >&5 |
| 26549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26550 | (exit $ac_status); } && |
| 26551 | { ac_try='test -z "$ac_c_werror_flag" |
| 26552 | || test ! -s conftest.err' |
| 26553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26554 | (eval $ac_try) 2>&5 |
| 26555 | ac_status=$? |
| 26556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26557 | (exit $ac_status); }; } && |
| 26558 | { ac_try='test -s conftest.$ac_objext' |
| 26559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26560 | (eval $ac_try) 2>&5 |
| 26561 | ac_status=$? |
| 26562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26563 | (exit $ac_status); }; }; then |
| 26564 | gdb_cv_proc_service_is_old=no |
| 26565 | else |
| 26566 | echo "$as_me: failed program was:" >&5 |
| 26567 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26568 | |
| 26569 | gdb_cv_proc_service_is_old=yes |
| 26570 | fi |
| 26571 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26572 | |
| 26573 | fi |
| 26574 | |
| 26575 | echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5 |
| 26576 | echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6 |
| 26577 | if test $gdb_cv_proc_service_is_old = yes; then |
| 26578 | |
| 26579 | cat >>confdefs.h <<\_ACEOF |
| 26580 | #define PROC_SERVICE_IS_OLD 1 |
| 26581 | _ACEOF |
| 26582 | |
| 26583 | fi |
| 26584 | else |
| 26585 | echo "$as_me:$LINENO: result: no" >&5 |
| 26586 | echo "${ECHO_T}no" >&6 |
| 26587 | fi |
| 26588 | ;; |
| 26589 | aix*) |
| 26590 | echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5 |
| 26591 | echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6 |
| 26592 | if test "${gdb_cv_have_aix_thread_debug+set}" = set; then |
| 26593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26594 | else |
| 26595 | cat >conftest.$ac_ext <<_ACEOF |
| 26596 | /* confdefs.h. */ |
| 26597 | _ACEOF |
| 26598 | cat confdefs.h >>conftest.$ac_ext |
| 26599 | cat >>conftest.$ac_ext <<_ACEOF |
| 26600 | /* end confdefs.h. */ |
| 26601 | #include <sys/pthdebug.h> |
| 26602 | int |
| 26603 | main () |
| 26604 | { |
| 26605 | #ifndef PTHDB_VERSION_3 |
| 26606 | #error |
| 26607 | #endif |
| 26608 | ; |
| 26609 | return 0; |
| 26610 | } |
| 26611 | _ACEOF |
| 26612 | rm -f conftest.$ac_objext |
| 26613 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 26614 | (eval $ac_compile) 2>conftest.er1 |
| 26615 | ac_status=$? |
| 26616 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26617 | rm -f conftest.er1 |
| 26618 | cat conftest.err >&5 |
| 26619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26620 | (exit $ac_status); } && |
| 26621 | { ac_try='test -z "$ac_c_werror_flag" |
| 26622 | || test ! -s conftest.err' |
| 26623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26624 | (eval $ac_try) 2>&5 |
| 26625 | ac_status=$? |
| 26626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26627 | (exit $ac_status); }; } && |
| 26628 | { ac_try='test -s conftest.$ac_objext' |
| 26629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26630 | (eval $ac_try) 2>&5 |
| 26631 | ac_status=$? |
| 26632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26633 | (exit $ac_status); }; }; then |
| 26634 | gdb_cv_have_aix_thread_debug=yes |
| 26635 | else |
| 26636 | echo "$as_me: failed program was:" >&5 |
| 26637 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26638 | |
| 26639 | gdb_cv_have_aix_thread_debug=no |
| 26640 | fi |
| 26641 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26642 | fi |
| 26643 | |
| 26644 | echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5 |
| 26645 | echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6 |
| 26646 | if test $gdb_cv_have_aix_thread_debug = yes; then |
| 26647 | CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c" |
| 26648 | CONFIG_OBS="${CONFIG_OBS} aix-thread.o" |
| 26649 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug" |
| 26650 | fi |
| 26651 | ;; |
| 26652 | esac |
| 26653 | |
| 26654 | fi |
| 26655 | |
| 26656 | if test "x$ac_cv_header_thread_db_h" = "xyes"; then |
| 26657 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5 |
| 26658 | echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6 |
| 26659 | if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then |
| 26660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26661 | else |
| 26662 | cat >conftest.$ac_ext <<_ACEOF |
| 26663 | /* confdefs.h. */ |
| 26664 | _ACEOF |
| 26665 | cat confdefs.h >>conftest.$ac_ext |
| 26666 | cat >>conftest.$ac_ext <<_ACEOF |
| 26667 | /* end confdefs.h. */ |
| 26668 | #include <thread_db.h> |
| 26669 | int |
| 26670 | main () |
| 26671 | { |
| 26672 | int i = TD_NOTALLOC; |
| 26673 | ; |
| 26674 | return 0; |
| 26675 | } |
| 26676 | _ACEOF |
| 26677 | rm -f conftest.$ac_objext |
| 26678 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 26679 | (eval $ac_compile) 2>conftest.er1 |
| 26680 | ac_status=$? |
| 26681 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26682 | rm -f conftest.er1 |
| 26683 | cat conftest.err >&5 |
| 26684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26685 | (exit $ac_status); } && |
| 26686 | { ac_try='test -z "$ac_c_werror_flag" |
| 26687 | || test ! -s conftest.err' |
| 26688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26689 | (eval $ac_try) 2>&5 |
| 26690 | ac_status=$? |
| 26691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26692 | (exit $ac_status); }; } && |
| 26693 | { ac_try='test -s conftest.$ac_objext' |
| 26694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26695 | (eval $ac_try) 2>&5 |
| 26696 | ac_status=$? |
| 26697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26698 | (exit $ac_status); }; }; then |
| 26699 | gdb_cv_thread_db_h_has_td_notalloc=yes |
| 26700 | else |
| 26701 | echo "$as_me: failed program was:" >&5 |
| 26702 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26703 | |
| 26704 | gdb_cv_thread_db_h_has_td_notalloc=no |
| 26705 | |
| 26706 | fi |
| 26707 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26708 | |
| 26709 | fi |
| 26710 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5 |
| 26711 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6 |
| 26712 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5 |
| 26713 | echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6 |
| 26714 | if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then |
| 26715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26716 | else |
| 26717 | cat >conftest.$ac_ext <<_ACEOF |
| 26718 | /* confdefs.h. */ |
| 26719 | _ACEOF |
| 26720 | cat confdefs.h >>conftest.$ac_ext |
| 26721 | cat >>conftest.$ac_ext <<_ACEOF |
| 26722 | /* end confdefs.h. */ |
| 26723 | #include <thread_db.h> |
| 26724 | int |
| 26725 | main () |
| 26726 | { |
| 26727 | int i = TD_VERSION; |
| 26728 | ; |
| 26729 | return 0; |
| 26730 | } |
| 26731 | _ACEOF |
| 26732 | rm -f conftest.$ac_objext |
| 26733 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 26734 | (eval $ac_compile) 2>conftest.er1 |
| 26735 | ac_status=$? |
| 26736 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26737 | rm -f conftest.er1 |
| 26738 | cat conftest.err >&5 |
| 26739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26740 | (exit $ac_status); } && |
| 26741 | { ac_try='test -z "$ac_c_werror_flag" |
| 26742 | || test ! -s conftest.err' |
| 26743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26744 | (eval $ac_try) 2>&5 |
| 26745 | ac_status=$? |
| 26746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26747 | (exit $ac_status); }; } && |
| 26748 | { ac_try='test -s conftest.$ac_objext' |
| 26749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26750 | (eval $ac_try) 2>&5 |
| 26751 | ac_status=$? |
| 26752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26753 | (exit $ac_status); }; }; then |
| 26754 | gdb_cv_thread_db_h_has_td_version=yes |
| 26755 | else |
| 26756 | echo "$as_me: failed program was:" >&5 |
| 26757 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26758 | |
| 26759 | gdb_cv_thread_db_h_has_td_version=no |
| 26760 | |
| 26761 | fi |
| 26762 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26763 | |
| 26764 | fi |
| 26765 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5 |
| 26766 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6 |
| 26767 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5 |
| 26768 | echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6 |
| 26769 | if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then |
| 26770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26771 | else |
| 26772 | cat >conftest.$ac_ext <<_ACEOF |
| 26773 | /* confdefs.h. */ |
| 26774 | _ACEOF |
| 26775 | cat confdefs.h >>conftest.$ac_ext |
| 26776 | cat >>conftest.$ac_ext <<_ACEOF |
| 26777 | /* end confdefs.h. */ |
| 26778 | #include <thread_db.h> |
| 26779 | int |
| 26780 | main () |
| 26781 | { |
| 26782 | int i = TD_NOTLS; |
| 26783 | ; |
| 26784 | return 0; |
| 26785 | } |
| 26786 | _ACEOF |
| 26787 | rm -f conftest.$ac_objext |
| 26788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 26789 | (eval $ac_compile) 2>conftest.er1 |
| 26790 | ac_status=$? |
| 26791 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26792 | rm -f conftest.er1 |
| 26793 | cat conftest.err >&5 |
| 26794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26795 | (exit $ac_status); } && |
| 26796 | { ac_try='test -z "$ac_c_werror_flag" |
| 26797 | || test ! -s conftest.err' |
| 26798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26799 | (eval $ac_try) 2>&5 |
| 26800 | ac_status=$? |
| 26801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26802 | (exit $ac_status); }; } && |
| 26803 | { ac_try='test -s conftest.$ac_objext' |
| 26804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26805 | (eval $ac_try) 2>&5 |
| 26806 | ac_status=$? |
| 26807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26808 | (exit $ac_status); }; }; then |
| 26809 | gdb_cv_thread_db_h_has_td_notls=yes |
| 26810 | else |
| 26811 | echo "$as_me: failed program was:" >&5 |
| 26812 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26813 | |
| 26814 | gdb_cv_thread_db_h_has_td_notls=no |
| 26815 | |
| 26816 | fi |
| 26817 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26818 | |
| 26819 | fi |
| 26820 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5 |
| 26821 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6 |
| 26822 | fi |
| 26823 | if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then |
| 26824 | |
| 26825 | cat >>confdefs.h <<\_ACEOF |
| 26826 | #define THREAD_DB_HAS_TD_NOTALLOC 1 |
| 26827 | _ACEOF |
| 26828 | |
| 26829 | fi |
| 26830 | if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then |
| 26831 | |
| 26832 | cat >>confdefs.h <<\_ACEOF |
| 26833 | #define THREAD_DB_HAS_TD_VERSION 1 |
| 26834 | _ACEOF |
| 26835 | |
| 26836 | fi |
| 26837 | if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then |
| 26838 | |
| 26839 | cat >>confdefs.h <<\_ACEOF |
| 26840 | #define THREAD_DB_HAS_TD_NOTLS 1 |
| 26841 | _ACEOF |
| 26842 | |
| 26843 | fi |
| 26844 | |
| 26845 | if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then |
| 26846 | echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5 |
| 26847 | echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6 |
| 26848 | if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then |
| 26849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26850 | else |
| 26851 | cat >conftest.$ac_ext <<_ACEOF |
| 26852 | /* confdefs.h. */ |
| 26853 | _ACEOF |
| 26854 | cat confdefs.h >>conftest.$ac_ext |
| 26855 | cat >>conftest.$ac_ext <<_ACEOF |
| 26856 | /* end confdefs.h. */ |
| 26857 | #include <sys/syscall.h> |
| 26858 | int |
| 26859 | main () |
| 26860 | { |
| 26861 | int i = __NR_tkill; |
| 26862 | ; |
| 26863 | return 0; |
| 26864 | } |
| 26865 | _ACEOF |
| 26866 | rm -f conftest.$ac_objext |
| 26867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 26868 | (eval $ac_compile) 2>conftest.er1 |
| 26869 | ac_status=$? |
| 26870 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26871 | rm -f conftest.er1 |
| 26872 | cat conftest.err >&5 |
| 26873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26874 | (exit $ac_status); } && |
| 26875 | { ac_try='test -z "$ac_c_werror_flag" |
| 26876 | || test ! -s conftest.err' |
| 26877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26878 | (eval $ac_try) 2>&5 |
| 26879 | ac_status=$? |
| 26880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26881 | (exit $ac_status); }; } && |
| 26882 | { ac_try='test -s conftest.$ac_objext' |
| 26883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26884 | (eval $ac_try) 2>&5 |
| 26885 | ac_status=$? |
| 26886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26887 | (exit $ac_status); }; }; then |
| 26888 | gdb_cv_sys_syscall_h_has_tkill=yes |
| 26889 | else |
| 26890 | echo "$as_me: failed program was:" >&5 |
| 26891 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26892 | |
| 26893 | gdb_cv_sys_syscall_h_has_tkill=no |
| 26894 | |
| 26895 | fi |
| 26896 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26897 | |
| 26898 | fi |
| 26899 | echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5 |
| 26900 | echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6 |
| 26901 | fi |
| 26902 | if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then |
| 26903 | |
| 26904 | cat >>confdefs.h <<\_ACEOF |
| 26905 | #define HAVE_TKILL_SYSCALL 1 |
| 26906 | _ACEOF |
| 26907 | |
| 26908 | fi |
| 26909 | |
| 26910 | |
| 26911 | |
| 26912 | # Check whether --with-sysroot or --without-sysroot was given. |
| 26913 | if test "${with_sysroot+set}" = set; then |
| 26914 | withval="$with_sysroot" |
| 26915 | |
| 26916 | case ${with_sysroot} in |
| 26917 | yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; |
| 26918 | *) TARGET_SYSTEM_ROOT=$with_sysroot ;; |
| 26919 | esac |
| 26920 | |
| 26921 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' |
| 26922 | |
| 26923 | if test "x$prefix" = xNONE; then |
| 26924 | test_prefix=/usr/local |
| 26925 | else |
| 26926 | test_prefix=$prefix |
| 26927 | fi |
| 26928 | if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then |
| 26929 | test_exec_prefix=$test_prefix |
| 26930 | else |
| 26931 | test_exec_prefix=$exec_prefix |
| 26932 | fi |
| 26933 | case ${TARGET_SYSTEM_ROOT} in |
| 26934 | "${test_prefix}"|"${test_prefix}/"*|\ |
| 26935 | "${test_exec_prefix}"|"${test_exec_prefix}/"*|\ |
| 26936 | '${prefix}'|'${prefix}/'*|\ |
| 26937 | '${exec_prefix}'|'${exec_prefix}/'*) |
| 26938 | t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" |
| 26939 | TARGET_SYSTEM_ROOT_DEFINE="$t" |
| 26940 | ;; |
| 26941 | esac |
| 26942 | |
| 26943 | else |
| 26944 | |
| 26945 | TARGET_SYSTEM_ROOT= |
| 26946 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"' |
| 26947 | |
| 26948 | fi; |
| 26949 | |
| 26950 | |
| 26951 | |
| 26952 | # Check whether --enable-werror or --disable-werror was given. |
| 26953 | if test "${enable_werror+set}" = set; then |
| 26954 | enableval="$enable_werror" |
| 26955 | case "${enableval}" in |
| 26956 | yes | y) ERROR_ON_WARNING="yes" ;; |
| 26957 | no | n) ERROR_ON_WARNING="no" ;; |
| 26958 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 |
| 26959 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} |
| 26960 | { (exit 1); exit 1; }; } ;; |
| 26961 | esac |
| 26962 | fi; |
| 26963 | |
| 26964 | # Enable -Werror by default when using gcc |
| 26965 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then |
| 26966 | ERROR_ON_WARNING=yes |
| 26967 | fi |
| 26968 | |
| 26969 | WERROR_CFLAGS="" |
| 26970 | if test "${ERROR_ON_WARNING}" = yes ; then |
| 26971 | WERROR_CFLAGS="-Werror" |
| 26972 | fi |
| 26973 | |
| 26974 | # The entries after -Wno-pointer-sign are disabled warnings which may |
| 26975 | # be enabled in the future, which can not currently be used to build |
| 26976 | # GDB. |
| 26977 | # NOTE: If you change this list, remember to update |
| 26978 | # gdb/doc/gdbint.texinfo. |
| 26979 | build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ |
| 26980 | -Wformat-nonliteral -Wno-pointer-sign \ |
| 26981 | -Wno-unused -Wno-switch -Wno-char-subscripts" |
| 26982 | |
| 26983 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
| 26984 | if test "${enable_build_warnings+set}" = set; then |
| 26985 | enableval="$enable_build_warnings" |
| 26986 | case "${enableval}" in |
| 26987 | yes) ;; |
| 26988 | no) build_warnings="-w";; |
| 26989 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
| 26990 | build_warnings="${build_warnings} ${t}";; |
| 26991 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
| 26992 | build_warnings="${t} ${build_warnings}";; |
| 26993 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; |
| 26994 | esac |
| 26995 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then |
| 26996 | echo "Setting compiler warning flags = $build_warnings" 6>&1 |
| 26997 | fi |
| 26998 | fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given. |
| 26999 | if test "${enable_gdb_build_warnings+set}" = set; then |
| 27000 | enableval="$enable_gdb_build_warnings" |
| 27001 | case "${enableval}" in |
| 27002 | yes) ;; |
| 27003 | no) build_warnings="-w";; |
| 27004 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
| 27005 | build_warnings="${build_warnings} ${t}";; |
| 27006 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
| 27007 | build_warnings="${t} ${build_warnings}";; |
| 27008 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; |
| 27009 | esac |
| 27010 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then |
| 27011 | echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 |
| 27012 | fi |
| 27013 | fi; WARN_CFLAGS="" |
| 27014 | if test "x${build_warnings}" != x -a "x$GCC" = xyes |
| 27015 | then |
| 27016 | echo "$as_me:$LINENO: checking compiler warning flags" >&5 |
| 27017 | echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6 |
| 27018 | # Separate out the -Werror flag as some files just cannot be |
| 27019 | # compiled with it enabled. |
| 27020 | for w in ${build_warnings}; do |
| 27021 | case $w in |
| 27022 | -Werr*) WERROR_CFLAGS=-Werror ;; |
| 27023 | *) # Check that GCC accepts it |
| 27024 | saved_CFLAGS="$CFLAGS" |
| 27025 | CFLAGS="$CFLAGS $w" |
| 27026 | cat >conftest.$ac_ext <<_ACEOF |
| 27027 | /* confdefs.h. */ |
| 27028 | _ACEOF |
| 27029 | cat confdefs.h >>conftest.$ac_ext |
| 27030 | cat >>conftest.$ac_ext <<_ACEOF |
| 27031 | /* end confdefs.h. */ |
| 27032 | |
| 27033 | int |
| 27034 | main () |
| 27035 | { |
| 27036 | |
| 27037 | ; |
| 27038 | return 0; |
| 27039 | } |
| 27040 | _ACEOF |
| 27041 | rm -f conftest.$ac_objext |
| 27042 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 27043 | (eval $ac_compile) 2>conftest.er1 |
| 27044 | ac_status=$? |
| 27045 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27046 | rm -f conftest.er1 |
| 27047 | cat conftest.err >&5 |
| 27048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27049 | (exit $ac_status); } && |
| 27050 | { ac_try='test -z "$ac_c_werror_flag" |
| 27051 | || test ! -s conftest.err' |
| 27052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27053 | (eval $ac_try) 2>&5 |
| 27054 | ac_status=$? |
| 27055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27056 | (exit $ac_status); }; } && |
| 27057 | { ac_try='test -s conftest.$ac_objext' |
| 27058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27059 | (eval $ac_try) 2>&5 |
| 27060 | ac_status=$? |
| 27061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27062 | (exit $ac_status); }; }; then |
| 27063 | WARN_CFLAGS="${WARN_CFLAGS} $w" |
| 27064 | else |
| 27065 | echo "$as_me: failed program was:" >&5 |
| 27066 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27067 | |
| 27068 | fi |
| 27069 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27070 | CFLAGS="$saved_CFLAGS" |
| 27071 | esac |
| 27072 | done |
| 27073 | echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5 |
| 27074 | echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6 |
| 27075 | fi |
| 27076 | |
| 27077 | |
| 27078 | |
| 27079 | # In the Cygwin environment, we need some additional flags. |
| 27080 | echo "$as_me:$LINENO: checking for cygwin" >&5 |
| 27081 | echo $ECHO_N "checking for cygwin... $ECHO_C" >&6 |
| 27082 | if test "${gdb_cv_os_cygwin+set}" = set; then |
| 27083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27084 | else |
| 27085 | cat >conftest.$ac_ext <<_ACEOF |
| 27086 | /* confdefs.h. */ |
| 27087 | _ACEOF |
| 27088 | cat confdefs.h >>conftest.$ac_ext |
| 27089 | cat >>conftest.$ac_ext <<_ACEOF |
| 27090 | /* end confdefs.h. */ |
| 27091 | |
| 27092 | #if defined (__CYGWIN__) || defined (__CYGWIN32__) |
| 27093 | lose |
| 27094 | #endif |
| 27095 | _ACEOF |
| 27096 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 27097 | $EGREP "lose" >/dev/null 2>&1; then |
| 27098 | gdb_cv_os_cygwin=yes |
| 27099 | else |
| 27100 | gdb_cv_os_cygwin=no |
| 27101 | fi |
| 27102 | rm -f conftest* |
| 27103 | |
| 27104 | fi |
| 27105 | echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5 |
| 27106 | echo "${ECHO_T}$gdb_cv_os_cygwin" >&6 |
| 27107 | |
| 27108 | |
| 27109 | SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o" |
| 27110 | case ${host} in |
| 27111 | *go32* ) SER_HARDWIRE=ser-go32.o ;; |
| 27112 | *djgpp* ) SER_HARDWIRE=ser-go32.o ;; |
| 27113 | *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;; |
| 27114 | esac |
| 27115 | |
| 27116 | |
| 27117 | # libreadline needs libuser32.a in a cygwin environment |
| 27118 | WIN32LIBS= |
| 27119 | if test x$gdb_cv_os_cygwin = xyes; then |
| 27120 | WIN32LIBS="-luser32" |
| 27121 | case "${target}" in |
| 27122 | *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp" |
| 27123 | ;; |
| 27124 | esac |
| 27125 | fi |
| 27126 | |
| 27127 | # The ser-tcp.c module requires sockets. |
| 27128 | case ${host} in |
| 27129 | *mingw32*) |
| 27130 | |
| 27131 | cat >>confdefs.h <<\_ACEOF |
| 27132 | #define USE_WIN32API 1 |
| 27133 | _ACEOF |
| 27134 | |
| 27135 | WIN32LIBS="$WIN32LIBS -lws2_32" |
| 27136 | ;; |
| 27137 | esac |
| 27138 | |
| 27139 | |
| 27140 | # Add ELF support to GDB, but only if BFD includes ELF support. |
| 27141 | OLD_CFLAGS=$CFLAGS |
| 27142 | OLD_LDFLAGS=$LDFLAGS |
| 27143 | OLD_LIBS=$LIBS |
| 27144 | CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd" |
| 27145 | LDFLAGS="$LDFLAGS -L../bfd -L../libiberty" |
| 27146 | intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'` |
| 27147 | LIBS="$LIBS -lbfd -liberty $intl" |
| 27148 | echo "$as_me:$LINENO: checking for ELF support in BFD" >&5 |
| 27149 | echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6 |
| 27150 | if test "${gdb_cv_var_elf+set}" = set; then |
| 27151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27152 | else |
| 27153 | cat >conftest.$ac_ext <<_ACEOF |
| 27154 | /* confdefs.h. */ |
| 27155 | _ACEOF |
| 27156 | cat confdefs.h >>conftest.$ac_ext |
| 27157 | cat >>conftest.$ac_ext <<_ACEOF |
| 27158 | /* end confdefs.h. */ |
| 27159 | #include <stdlib.h> |
| 27160 | #include "bfd.h" |
| 27161 | #include "elf-bfd.h" |
| 27162 | |
| 27163 | int |
| 27164 | main () |
| 27165 | { |
| 27166 | bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd); |
| 27167 | ; |
| 27168 | return 0; |
| 27169 | } |
| 27170 | _ACEOF |
| 27171 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27172 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 27173 | (eval $ac_link) 2>conftest.er1 |
| 27174 | ac_status=$? |
| 27175 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27176 | rm -f conftest.er1 |
| 27177 | cat conftest.err >&5 |
| 27178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27179 | (exit $ac_status); } && |
| 27180 | { ac_try='test -z "$ac_c_werror_flag" |
| 27181 | || test ! -s conftest.err' |
| 27182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27183 | (eval $ac_try) 2>&5 |
| 27184 | ac_status=$? |
| 27185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27186 | (exit $ac_status); }; } && |
| 27187 | { ac_try='test -s conftest$ac_exeext' |
| 27188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27189 | (eval $ac_try) 2>&5 |
| 27190 | ac_status=$? |
| 27191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27192 | (exit $ac_status); }; }; then |
| 27193 | gdb_cv_var_elf=yes |
| 27194 | else |
| 27195 | echo "$as_me: failed program was:" >&5 |
| 27196 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27197 | |
| 27198 | gdb_cv_var_elf=no |
| 27199 | fi |
| 27200 | rm -f conftest.err conftest.$ac_objext \ |
| 27201 | conftest$ac_exeext conftest.$ac_ext |
| 27202 | fi |
| 27203 | echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5 |
| 27204 | echo "${ECHO_T}$gdb_cv_var_elf" >&6 |
| 27205 | if test $gdb_cv_var_elf = yes; then |
| 27206 | CONFIG_OBS="$CONFIG_OBS elfread.o" |
| 27207 | |
| 27208 | cat >>confdefs.h <<\_ACEOF |
| 27209 | #define HAVE_ELF 1 |
| 27210 | _ACEOF |
| 27211 | |
| 27212 | fi |
| 27213 | CFLAGS=$OLD_CFLAGS |
| 27214 | LDFLAGS=$OLD_LDFLAGS |
| 27215 | LIBS=$OLD_LIBS |
| 27216 | |
| 27217 | # Add any host-specific objects to GDB. |
| 27218 | CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}" |
| 27219 | |
| 27220 | LIBGUI="../libgui/src/libgui.a" |
| 27221 | GUI_CFLAGS_X="-I${srcdir}/../libgui/src" |
| 27222 | |
| 27223 | |
| 27224 | |
| 27225 | WIN32LDAPP= |
| 27226 | |
| 27227 | |
| 27228 | |
| 27229 | case "${host}" in |
| 27230 | *-*-cygwin* | *-*-mingw* ) |
| 27231 | configdir="win" |
| 27232 | ;; |
| 27233 | *) |
| 27234 | configdir="unix" |
| 27235 | ;; |
| 27236 | esac |
| 27237 | |
| 27238 | GDBTKLIBS= |
| 27239 | if test "${enable_gdbtk}" = "yes"; then |
| 27240 | |
| 27241 | # Gdbtk must have an absolute path to srcdir in order to run |
| 27242 | # properly when not installed. |
| 27243 | here=`pwd` |
| 27244 | cd ${srcdir} |
| 27245 | GDBTK_SRC_DIR=`pwd` |
| 27246 | cd $here |
| 27247 | |
| 27248 | |
| 27249 | # |
| 27250 | # Ok, lets find the tcl configuration |
| 27251 | # First, look for one uninstalled. |
| 27252 | # the alternative search directory is invoked by --with-tclconfig |
| 27253 | # |
| 27254 | |
| 27255 | if test x"${no_tcl}" = x ; then |
| 27256 | # we reset no_tcl in case something fails here |
| 27257 | no_tcl=true |
| 27258 | |
| 27259 | # Check whether --with-tclconfig or --without-tclconfig was given. |
| 27260 | if test "${with_tclconfig+set}" = set; then |
| 27261 | withval="$with_tclconfig" |
| 27262 | with_tclconfig=${withval} |
| 27263 | fi; |
| 27264 | echo "$as_me:$LINENO: checking for Tcl configuration" >&5 |
| 27265 | echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6 |
| 27266 | if test "${ac_cv_c_tclconfig+set}" = set; then |
| 27267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27268 | else |
| 27269 | |
| 27270 | |
| 27271 | # First check to see if --with-tclconfig was specified. |
| 27272 | if test x"${with_tclconfig}" != x ; then |
| 27273 | if test -f "${with_tclconfig}/tclConfig.sh" ; then |
| 27274 | ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` |
| 27275 | else |
| 27276 | { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 |
| 27277 | echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} |
| 27278 | { (exit 1); exit 1; }; } |
| 27279 | fi |
| 27280 | fi |
| 27281 | |
| 27282 | # then check for a private Tcl installation |
| 27283 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 27284 | for i in \ |
| 27285 | ../tcl \ |
| 27286 | `ls -dr ../tcl[7-9]* 2>/dev/null` \ |
| 27287 | ../../tcl \ |
| 27288 | `ls -dr ../../tcl[7-9]* 2>/dev/null` \ |
| 27289 | ../../../tcl \ |
| 27290 | `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do |
| 27291 | if test -f "$i/${configdir}/tclConfig.sh" ; then |
| 27292 | ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)` |
| 27293 | break |
| 27294 | fi |
| 27295 | done |
| 27296 | fi |
| 27297 | # check in a few common install locations |
| 27298 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 27299 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do |
| 27300 | if test -f "$i/tclConfig.sh" ; then |
| 27301 | ac_cv_c_tclconfig=`(cd $i; pwd)` |
| 27302 | break |
| 27303 | fi |
| 27304 | done |
| 27305 | fi |
| 27306 | # check in a few other private locations |
| 27307 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 27308 | for i in \ |
| 27309 | ${srcdir}/../tcl \ |
| 27310 | `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do |
| 27311 | if test -f "$i/${configdir}/tclConfig.sh" ; then |
| 27312 | ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)` |
| 27313 | break |
| 27314 | fi |
| 27315 | done |
| 27316 | fi |
| 27317 | |
| 27318 | fi |
| 27319 | |
| 27320 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 27321 | TCLCONFIG="# no Tcl configs found" |
| 27322 | { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 |
| 27323 | echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} |
| 27324 | else |
| 27325 | no_tcl= |
| 27326 | TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh |
| 27327 | echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5 |
| 27328 | echo "${ECHO_T}found $TCLCONFIG" >&6 |
| 27329 | fi |
| 27330 | fi |
| 27331 | |
| 27332 | if test -z "${no_tcl}"; then |
| 27333 | |
| 27334 | . $TCLCONFIG |
| 27335 | |
| 27336 | |
| 27337 | |
| 27338 | |
| 27339 | |
| 27340 | |
| 27341 | |
| 27342 | |
| 27343 | |
| 27344 | |
| 27345 | |
| 27346 | |
| 27347 | |
| 27348 | |
| 27349 | |
| 27350 | |
| 27351 | |
| 27352 | |
| 27353 | |
| 27354 | |
| 27355 | |
| 27356 | |
| 27357 | |
| 27358 | |
| 27359 | |
| 27360 | |
| 27361 | |
| 27362 | # |
| 27363 | # Ok, lets find the tk configuration |
| 27364 | # First, look for one uninstalled. |
| 27365 | # the alternative search directory is invoked by --with-tkconfig |
| 27366 | # |
| 27367 | |
| 27368 | if test x"${no_tk}" = x ; then |
| 27369 | # we reset no_tk in case something fails here |
| 27370 | no_tk=true |
| 27371 | |
| 27372 | # Check whether --with-tkconfig or --without-tkconfig was given. |
| 27373 | if test "${with_tkconfig+set}" = set; then |
| 27374 | withval="$with_tkconfig" |
| 27375 | with_tkconfig=${withval} |
| 27376 | fi; |
| 27377 | echo "$as_me:$LINENO: checking for Tk configuration" >&5 |
| 27378 | echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6 |
| 27379 | if test "${ac_cv_c_tkconfig+set}" = set; then |
| 27380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27381 | else |
| 27382 | |
| 27383 | |
| 27384 | # First check to see if --with-tkconfig was specified. |
| 27385 | if test x"${with_tkconfig}" != x ; then |
| 27386 | if test -f "${with_tkconfig}/tkConfig.sh" ; then |
| 27387 | ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)` |
| 27388 | else |
| 27389 | { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5 |
| 27390 | echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;} |
| 27391 | { (exit 1); exit 1; }; } |
| 27392 | fi |
| 27393 | fi |
| 27394 | |
| 27395 | # then check for a private Tk library |
| 27396 | if test x"${ac_cv_c_tkconfig}" = x ; then |
| 27397 | for i in \ |
| 27398 | ../tk \ |
| 27399 | `ls -dr ../tk[4-9]* 2>/dev/null` \ |
| 27400 | ../../tk \ |
| 27401 | `ls -dr ../../tk[4-9]* 2>/dev/null` \ |
| 27402 | ../../../tk \ |
| 27403 | `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do |
| 27404 | if test -f "$i/${configdir}/tkConfig.sh" ; then |
| 27405 | ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)` |
| 27406 | break |
| 27407 | fi |
| 27408 | done |
| 27409 | fi |
| 27410 | # check in a few common install locations |
| 27411 | if test x"${ac_cv_c_tkconfig}" = x ; then |
| 27412 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do |
| 27413 | if test -f "$i/tkConfig.sh" ; then |
| 27414 | ac_cv_c_tkconfig=`(cd $i; pwd)` |
| 27415 | break |
| 27416 | fi |
| 27417 | done |
| 27418 | fi |
| 27419 | # check in a few other private locations |
| 27420 | if test x"${ac_cv_c_tkconfig}" = x ; then |
| 27421 | for i in \ |
| 27422 | ${srcdir}/../tk \ |
| 27423 | `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do |
| 27424 | if test -f "$i/${configdir}/tkConfig.sh" ; then |
| 27425 | ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)` |
| 27426 | break |
| 27427 | fi |
| 27428 | done |
| 27429 | fi |
| 27430 | |
| 27431 | fi |
| 27432 | |
| 27433 | if test x"${ac_cv_c_tkconfig}" = x ; then |
| 27434 | TKCONFIG="# no Tk configs found" |
| 27435 | { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5 |
| 27436 | echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;} |
| 27437 | else |
| 27438 | no_tk= |
| 27439 | TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh |
| 27440 | echo "$as_me:$LINENO: result: found $TKCONFIG" >&5 |
| 27441 | echo "${ECHO_T}found $TKCONFIG" >&6 |
| 27442 | fi |
| 27443 | fi |
| 27444 | |
| 27445 | |
| 27446 | |
| 27447 | # now look for Tcl library stuff |
| 27448 | |
| 27449 | tcldir="../tcl/${configdir}/" |
| 27450 | |
| 27451 | TCL_DEPS="${tcldir}${TCL_LIB_FILE}" |
| 27452 | |
| 27453 | # If $no_tk is nonempty, then we can't do Tk, and there is no |
| 27454 | # point to doing Tcl. |
| 27455 | if test -z "${no_tk}"; then |
| 27456 | |
| 27457 | if test -f "$TKCONFIG" ; then |
| 27458 | . $TKCONFIG |
| 27459 | fi |
| 27460 | |
| 27461 | |
| 27462 | |
| 27463 | |
| 27464 | |
| 27465 | |
| 27466 | |
| 27467 | |
| 27468 | |
| 27469 | |
| 27470 | |
| 27471 | |
| 27472 | |
| 27473 | |
| 27474 | # |
| 27475 | # Ok, lets find the tcl source trees so we can use the headers |
| 27476 | # Warning: transition of version 9 to 10 will break this algorithm |
| 27477 | # because 10 sorts before 9. We also look for just tcl. We have to |
| 27478 | # be careful that we don't match stuff like tclX by accident. |
| 27479 | # the alternative search directory is involked by --with-tclinclude |
| 27480 | # |
| 27481 | |
| 27482 | no_tcl=true |
| 27483 | echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5 |
| 27484 | echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6 |
| 27485 | |
| 27486 | # Check whether --with-tclinclude or --without-tclinclude was given. |
| 27487 | if test "${with_tclinclude+set}" = set; then |
| 27488 | withval="$with_tclinclude" |
| 27489 | with_tclinclude=${withval} |
| 27490 | fi; |
| 27491 | if test "${ac_cv_c_tclh+set}" = set; then |
| 27492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27493 | else |
| 27494 | |
| 27495 | # first check to see if --with-tclinclude was specified |
| 27496 | if test x"${with_tclinclude}" != x ; then |
| 27497 | if test -f ${with_tclinclude}/tclInt.h ; then |
| 27498 | ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)` |
| 27499 | elif test -f ${with_tclinclude}/generic/tclInt.h ; then |
| 27500 | ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)` |
| 27501 | else |
| 27502 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5 |
| 27503 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;} |
| 27504 | { (exit 1); exit 1; }; } |
| 27505 | fi |
| 27506 | fi |
| 27507 | |
| 27508 | # next check if it came with Tcl configuration file |
| 27509 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 27510 | if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then |
| 27511 | ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)` |
| 27512 | fi |
| 27513 | fi |
| 27514 | |
| 27515 | # next check in private source directory |
| 27516 | # |
| 27517 | # since ls returns lowest version numbers first, reverse its output |
| 27518 | if test x"${ac_cv_c_tclh}" = x ; then |
| 27519 | for i in \ |
| 27520 | ${srcdir}/../tcl \ |
| 27521 | `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \ |
| 27522 | ${srcdir}/../../tcl \ |
| 27523 | `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \ |
| 27524 | ${srcdir}/../../../tcl \ |
| 27525 | `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do |
| 27526 | if test -f $i/generic/tclInt.h ; then |
| 27527 | ac_cv_c_tclh=`(cd $i/generic; pwd)` |
| 27528 | break |
| 27529 | fi |
| 27530 | done |
| 27531 | fi |
| 27532 | # finally check in a few common install locations |
| 27533 | # |
| 27534 | # since ls returns lowest version numbers first, reverse its output |
| 27535 | if test x"${ac_cv_c_tclh}" = x ; then |
| 27536 | for i in \ |
| 27537 | `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \ |
| 27538 | `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \ |
| 27539 | /usr/local/src/tcl \ |
| 27540 | /usr/local/lib/tcl \ |
| 27541 | ${prefix}/include ; do |
| 27542 | if test -f $i/generic/tclInt.h ; then |
| 27543 | ac_cv_c_tclh=`(cd $i/generic; pwd)` |
| 27544 | break |
| 27545 | fi |
| 27546 | done |
| 27547 | fi |
| 27548 | # see if one is installed |
| 27549 | if test x"${ac_cv_c_tclh}" = x ; then |
| 27550 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
| 27551 | echo "$as_me:$LINENO: checking for tclInt.h" >&5 |
| 27552 | echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6 |
| 27553 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
| 27554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27555 | fi |
| 27556 | echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5 |
| 27557 | echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6 |
| 27558 | else |
| 27559 | # Is the header compilable? |
| 27560 | echo "$as_me:$LINENO: checking tclInt.h usability" >&5 |
| 27561 | echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6 |
| 27562 | cat >conftest.$ac_ext <<_ACEOF |
| 27563 | /* confdefs.h. */ |
| 27564 | _ACEOF |
| 27565 | cat confdefs.h >>conftest.$ac_ext |
| 27566 | cat >>conftest.$ac_ext <<_ACEOF |
| 27567 | /* end confdefs.h. */ |
| 27568 | $ac_includes_default |
| 27569 | #include <tclInt.h> |
| 27570 | _ACEOF |
| 27571 | rm -f conftest.$ac_objext |
| 27572 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 27573 | (eval $ac_compile) 2>conftest.er1 |
| 27574 | ac_status=$? |
| 27575 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27576 | rm -f conftest.er1 |
| 27577 | cat conftest.err >&5 |
| 27578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27579 | (exit $ac_status); } && |
| 27580 | { ac_try='test -z "$ac_c_werror_flag" |
| 27581 | || test ! -s conftest.err' |
| 27582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27583 | (eval $ac_try) 2>&5 |
| 27584 | ac_status=$? |
| 27585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27586 | (exit $ac_status); }; } && |
| 27587 | { ac_try='test -s conftest.$ac_objext' |
| 27588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27589 | (eval $ac_try) 2>&5 |
| 27590 | ac_status=$? |
| 27591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27592 | (exit $ac_status); }; }; then |
| 27593 | ac_header_compiler=yes |
| 27594 | else |
| 27595 | echo "$as_me: failed program was:" >&5 |
| 27596 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27597 | |
| 27598 | ac_header_compiler=no |
| 27599 | fi |
| 27600 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27601 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 27602 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 27603 | |
| 27604 | # Is the header present? |
| 27605 | echo "$as_me:$LINENO: checking tclInt.h presence" >&5 |
| 27606 | echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6 |
| 27607 | cat >conftest.$ac_ext <<_ACEOF |
| 27608 | /* confdefs.h. */ |
| 27609 | _ACEOF |
| 27610 | cat confdefs.h >>conftest.$ac_ext |
| 27611 | cat >>conftest.$ac_ext <<_ACEOF |
| 27612 | /* end confdefs.h. */ |
| 27613 | #include <tclInt.h> |
| 27614 | _ACEOF |
| 27615 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 27616 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 27617 | ac_status=$? |
| 27618 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27619 | rm -f conftest.er1 |
| 27620 | cat conftest.err >&5 |
| 27621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27622 | (exit $ac_status); } >/dev/null; then |
| 27623 | if test -s conftest.err; then |
| 27624 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 27625 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 27626 | else |
| 27627 | ac_cpp_err= |
| 27628 | fi |
| 27629 | else |
| 27630 | ac_cpp_err=yes |
| 27631 | fi |
| 27632 | if test -z "$ac_cpp_err"; then |
| 27633 | ac_header_preproc=yes |
| 27634 | else |
| 27635 | echo "$as_me: failed program was:" >&5 |
| 27636 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27637 | |
| 27638 | ac_header_preproc=no |
| 27639 | fi |
| 27640 | rm -f conftest.err conftest.$ac_ext |
| 27641 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 27642 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 27643 | |
| 27644 | # So? What about this header? |
| 27645 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 27646 | yes:no: ) |
| 27647 | { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 27648 | echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 27649 | { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5 |
| 27650 | echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;} |
| 27651 | ac_header_preproc=yes |
| 27652 | ;; |
| 27653 | no:yes:* ) |
| 27654 | { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5 |
| 27655 | echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;} |
| 27656 | { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5 |
| 27657 | echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;} |
| 27658 | { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5 |
| 27659 | echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;} |
| 27660 | { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 27661 | echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 27662 | { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5 |
| 27663 | echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;} |
| 27664 | { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5 |
| 27665 | echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;} |
| 27666 | ( |
| 27667 | cat <<\_ASBOX |
| 27668 | ## ------------------------------------------ ## |
| 27669 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 27670 | ## ------------------------------------------ ## |
| 27671 | _ASBOX |
| 27672 | ) | |
| 27673 | sed "s/^/$as_me: WARNING: /" >&2 |
| 27674 | ;; |
| 27675 | esac |
| 27676 | echo "$as_me:$LINENO: checking for tclInt.h" >&5 |
| 27677 | echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6 |
| 27678 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
| 27679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27680 | else |
| 27681 | ac_cv_header_tclInt_h=$ac_header_preproc |
| 27682 | fi |
| 27683 | echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5 |
| 27684 | echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6 |
| 27685 | |
| 27686 | fi |
| 27687 | if test $ac_cv_header_tclInt_h = yes; then |
| 27688 | ac_cv_c_tclh=installed |
| 27689 | else |
| 27690 | ac_cv_c_tclh="" |
| 27691 | fi |
| 27692 | |
| 27693 | |
| 27694 | fi |
| 27695 | |
| 27696 | fi |
| 27697 | |
| 27698 | if test x"${ac_cv_c_tclh}" = x ; then |
| 27699 | TCLHDIR="# no Tcl private headers found" |
| 27700 | { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5 |
| 27701 | echo "$as_me: error: Can't find Tcl private headers" >&2;} |
| 27702 | { (exit 1); exit 1; }; } |
| 27703 | fi |
| 27704 | if test x"${ac_cv_c_tclh}" != x ; then |
| 27705 | no_tcl="" |
| 27706 | if test x"${ac_cv_c_tclh}" = x"installed" ; then |
| 27707 | echo "$as_me:$LINENO: result: is installed" >&5 |
| 27708 | echo "${ECHO_T}is installed" >&6 |
| 27709 | TCLHDIR="" |
| 27710 | else |
| 27711 | echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5 |
| 27712 | echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6 |
| 27713 | # this hack is cause the TCLHDIR won't print if there is a "-I" in it. |
| 27714 | TCLHDIR="-I${ac_cv_c_tclh}" |
| 27715 | fi |
| 27716 | fi |
| 27717 | |
| 27718 | |
| 27719 | |
| 27720 | |
| 27721 | # |
| 27722 | # Ok, lets find the tk source trees so we can use the headers |
| 27723 | # If the directory (presumably symlink) named "tk" exists, use that one |
| 27724 | # in preference to any others. Same logic is used when choosing library |
| 27725 | # and again with Tcl. The search order is the best place to look first, then in |
| 27726 | # decreasing significance. The loop breaks if the trigger file is found. |
| 27727 | # Note the gross little conversion here of srcdir by cd'ing to the found |
| 27728 | # directory. This converts the path from a relative to an absolute, so |
| 27729 | # recursive cache variables for the path will work right. We check all |
| 27730 | # the possible paths in one loop rather than many seperate loops to speed |
| 27731 | # things up. |
| 27732 | # the alternative search directory is involked by --with-tkinclude |
| 27733 | # |
| 27734 | no_tk=true |
| 27735 | echo "$as_me:$LINENO: checking for Tk private headers" >&5 |
| 27736 | echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6 |
| 27737 | |
| 27738 | # Check whether --with-tkinclude or --without-tkinclude was given. |
| 27739 | if test "${with_tkinclude+set}" = set; then |
| 27740 | withval="$with_tkinclude" |
| 27741 | with_tkinclude=${withval} |
| 27742 | fi; |
| 27743 | if test "${ac_cv_c_tkh+set}" = set; then |
| 27744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27745 | else |
| 27746 | |
| 27747 | # first check to see if --with-tkinclude was specified |
| 27748 | if test x"${with_tkinclude}" != x ; then |
| 27749 | if test -f ${with_tkinclude}/tk.h ; then |
| 27750 | ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)` |
| 27751 | elif test -f ${with_tkinclude}/generic/tk.h ; then |
| 27752 | ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)` |
| 27753 | else |
| 27754 | { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5 |
| 27755 | echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;} |
| 27756 | { (exit 1); exit 1; }; } |
| 27757 | fi |
| 27758 | fi |
| 27759 | |
| 27760 | # next check if it came with Tk configuration file |
| 27761 | if test x"${ac_cv_c_tkconfig}" = x ; then |
| 27762 | if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then |
| 27763 | ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)` |
| 27764 | fi |
| 27765 | fi |
| 27766 | |
| 27767 | # next check in private source directory |
| 27768 | # |
| 27769 | # since ls returns lowest version numbers first, reverse its output |
| 27770 | if test x"${ac_cv_c_tkh}" = x ; then |
| 27771 | for i in \ |
| 27772 | ${srcdir}/../tk \ |
| 27773 | `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \ |
| 27774 | ${srcdir}/../../tk \ |
| 27775 | `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \ |
| 27776 | ${srcdir}/../../../tk \ |
| 27777 | `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do |
| 27778 | if test -f $i/generic/tk.h ; then |
| 27779 | ac_cv_c_tkh=`(cd $i/generic; pwd)` |
| 27780 | break |
| 27781 | fi |
| 27782 | done |
| 27783 | fi |
| 27784 | # finally check in a few common install locations |
| 27785 | # |
| 27786 | # since ls returns lowest version numbers first, reverse its output |
| 27787 | if test x"${ac_cv_c_tkh}" = x ; then |
| 27788 | for i in \ |
| 27789 | `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \ |
| 27790 | `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \ |
| 27791 | /usr/local/src/tk \ |
| 27792 | /usr/local/lib/tk \ |
| 27793 | ${prefix}/include ; do |
| 27794 | if test -f $i/generic/tk.h ; then |
| 27795 | ac_cv_c_tkh=`(cd $i/generic; pwd)` |
| 27796 | break |
| 27797 | fi |
| 27798 | done |
| 27799 | fi |
| 27800 | # see if one is installed |
| 27801 | if test x"${ac_cv_c_tkh}" = x ; then |
| 27802 | if test "${ac_cv_header_tk_h+set}" = set; then |
| 27803 | echo "$as_me:$LINENO: checking for tk.h" >&5 |
| 27804 | echo $ECHO_N "checking for tk.h... $ECHO_C" >&6 |
| 27805 | if test "${ac_cv_header_tk_h+set}" = set; then |
| 27806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27807 | fi |
| 27808 | echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5 |
| 27809 | echo "${ECHO_T}$ac_cv_header_tk_h" >&6 |
| 27810 | else |
| 27811 | # Is the header compilable? |
| 27812 | echo "$as_me:$LINENO: checking tk.h usability" >&5 |
| 27813 | echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6 |
| 27814 | cat >conftest.$ac_ext <<_ACEOF |
| 27815 | /* confdefs.h. */ |
| 27816 | _ACEOF |
| 27817 | cat confdefs.h >>conftest.$ac_ext |
| 27818 | cat >>conftest.$ac_ext <<_ACEOF |
| 27819 | /* end confdefs.h. */ |
| 27820 | $ac_includes_default |
| 27821 | #include <tk.h> |
| 27822 | _ACEOF |
| 27823 | rm -f conftest.$ac_objext |
| 27824 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 27825 | (eval $ac_compile) 2>conftest.er1 |
| 27826 | ac_status=$? |
| 27827 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27828 | rm -f conftest.er1 |
| 27829 | cat conftest.err >&5 |
| 27830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27831 | (exit $ac_status); } && |
| 27832 | { ac_try='test -z "$ac_c_werror_flag" |
| 27833 | || test ! -s conftest.err' |
| 27834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27835 | (eval $ac_try) 2>&5 |
| 27836 | ac_status=$? |
| 27837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27838 | (exit $ac_status); }; } && |
| 27839 | { ac_try='test -s conftest.$ac_objext' |
| 27840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27841 | (eval $ac_try) 2>&5 |
| 27842 | ac_status=$? |
| 27843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27844 | (exit $ac_status); }; }; then |
| 27845 | ac_header_compiler=yes |
| 27846 | else |
| 27847 | echo "$as_me: failed program was:" >&5 |
| 27848 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27849 | |
| 27850 | ac_header_compiler=no |
| 27851 | fi |
| 27852 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27853 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 27854 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 27855 | |
| 27856 | # Is the header present? |
| 27857 | echo "$as_me:$LINENO: checking tk.h presence" >&5 |
| 27858 | echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6 |
| 27859 | cat >conftest.$ac_ext <<_ACEOF |
| 27860 | /* confdefs.h. */ |
| 27861 | _ACEOF |
| 27862 | cat confdefs.h >>conftest.$ac_ext |
| 27863 | cat >>conftest.$ac_ext <<_ACEOF |
| 27864 | /* end confdefs.h. */ |
| 27865 | #include <tk.h> |
| 27866 | _ACEOF |
| 27867 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 27868 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 27869 | ac_status=$? |
| 27870 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27871 | rm -f conftest.er1 |
| 27872 | cat conftest.err >&5 |
| 27873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27874 | (exit $ac_status); } >/dev/null; then |
| 27875 | if test -s conftest.err; then |
| 27876 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 27877 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 27878 | else |
| 27879 | ac_cpp_err= |
| 27880 | fi |
| 27881 | else |
| 27882 | ac_cpp_err=yes |
| 27883 | fi |
| 27884 | if test -z "$ac_cpp_err"; then |
| 27885 | ac_header_preproc=yes |
| 27886 | else |
| 27887 | echo "$as_me: failed program was:" >&5 |
| 27888 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27889 | |
| 27890 | ac_header_preproc=no |
| 27891 | fi |
| 27892 | rm -f conftest.err conftest.$ac_ext |
| 27893 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 27894 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 27895 | |
| 27896 | # So? What about this header? |
| 27897 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 27898 | yes:no: ) |
| 27899 | { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 27900 | echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 27901 | { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5 |
| 27902 | echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;} |
| 27903 | ac_header_preproc=yes |
| 27904 | ;; |
| 27905 | no:yes:* ) |
| 27906 | { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5 |
| 27907 | echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;} |
| 27908 | { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5 |
| 27909 | echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;} |
| 27910 | { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5 |
| 27911 | echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;} |
| 27912 | { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 27913 | echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 27914 | { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5 |
| 27915 | echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;} |
| 27916 | { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5 |
| 27917 | echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;} |
| 27918 | ( |
| 27919 | cat <<\_ASBOX |
| 27920 | ## ------------------------------------------ ## |
| 27921 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 27922 | ## ------------------------------------------ ## |
| 27923 | _ASBOX |
| 27924 | ) | |
| 27925 | sed "s/^/$as_me: WARNING: /" >&2 |
| 27926 | ;; |
| 27927 | esac |
| 27928 | echo "$as_me:$LINENO: checking for tk.h" >&5 |
| 27929 | echo $ECHO_N "checking for tk.h... $ECHO_C" >&6 |
| 27930 | if test "${ac_cv_header_tk_h+set}" = set; then |
| 27931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27932 | else |
| 27933 | ac_cv_header_tk_h=$ac_header_preproc |
| 27934 | fi |
| 27935 | echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5 |
| 27936 | echo "${ECHO_T}$ac_cv_header_tk_h" >&6 |
| 27937 | |
| 27938 | fi |
| 27939 | if test $ac_cv_header_tk_h = yes; then |
| 27940 | ac_cv_c_tkh=installed |
| 27941 | else |
| 27942 | ac_cv_c_tkh="" |
| 27943 | fi |
| 27944 | |
| 27945 | |
| 27946 | fi |
| 27947 | |
| 27948 | fi |
| 27949 | |
| 27950 | if test x"${ac_cv_c_tkh}" != x ; then |
| 27951 | no_tk="" |
| 27952 | if test x"${ac_cv_c_tkh}" = x"installed" ; then |
| 27953 | echo "$as_me:$LINENO: result: is installed" >&5 |
| 27954 | echo "${ECHO_T}is installed" >&6 |
| 27955 | TKHDIR="" |
| 27956 | else |
| 27957 | echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5 |
| 27958 | echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6 |
| 27959 | # this hack is cause the TKHDIR won't print if there is a "-I" in it. |
| 27960 | TKHDIR="-I${ac_cv_c_tkh}" |
| 27961 | fi |
| 27962 | else |
| 27963 | TKHDIR="# no Tk directory found" |
| 27964 | { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5 |
| 27965 | echo "$as_me: WARNING: Can't find Tk private headers" >&2;} |
| 27966 | no_tk=true |
| 27967 | fi |
| 27968 | |
| 27969 | |
| 27970 | |
| 27971 | |
| 27972 | echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5 |
| 27973 | echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6 |
| 27974 | if test x"${ac_cv_c_itclh}" = x ; then |
| 27975 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do |
| 27976 | if test -f $i/generic/itcl.h ; then |
| 27977 | ac_cv_c_itclh=`(cd $i/generic; pwd)` |
| 27978 | break |
| 27979 | fi |
| 27980 | done |
| 27981 | fi |
| 27982 | if test x"${ac_cv_c_itclh}" = x ; then |
| 27983 | ITCLHDIR="# no Itcl private headers found" |
| 27984 | { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5 |
| 27985 | echo "$as_me: error: Can't find Itcl private headers" >&2;} |
| 27986 | { (exit 1); exit 1; }; } |
| 27987 | fi |
| 27988 | if test x"${ac_cv_c_itclh}" != x ; then |
| 27989 | ITCLHDIR="-I${ac_cv_c_itclh}" |
| 27990 | fi |
| 27991 | # should always be here |
| 27992 | # ITCLLIB="../itcl/itcl/unix/libitcl.a" |
| 27993 | |
| 27994 | #AC_SUBST(ITCLLIB) |
| 27995 | |
| 27996 | |
| 27997 | echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5 |
| 27998 | echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6 |
| 27999 | if test x"${ac_cv_c_itkh}" = x ; then |
| 28000 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do |
| 28001 | if test -f $i/generic/itk.h ; then |
| 28002 | ac_cv_c_itkh=`(cd $i/generic; pwd)` |
| 28003 | break |
| 28004 | fi |
| 28005 | done |
| 28006 | fi |
| 28007 | if test x"${ac_cv_c_itkh}" = x ; then |
| 28008 | ITKHDIR="# no Itk private headers found" |
| 28009 | { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5 |
| 28010 | echo "$as_me: error: Can't find Itk private headers" >&2;} |
| 28011 | { (exit 1); exit 1; }; } |
| 28012 | fi |
| 28013 | if test x"${ac_cv_c_itkh}" != x ; then |
| 28014 | ITKHDIR="-I${ac_cv_c_itkh}" |
| 28015 | fi |
| 28016 | # should always be here |
| 28017 | # ITKLIB="../itcl/itk/unix/libitk.a" |
| 28018 | |
| 28019 | #AC_SUBST(ITKLIB) |
| 28020 | |
| 28021 | |
| 28022 | |
| 28023 | # now look for Tk library stuff |
| 28024 | |
| 28025 | tkdir="../tk/${configdir}/" |
| 28026 | |
| 28027 | TK_DEPS="${tkdir}${TK_LIB_FILE}" |
| 28028 | |
| 28029 | # now look for Itcl library stuff |
| 28030 | |
| 28031 | |
| 28032 | # |
| 28033 | # Ok, lets find the itcl configuration |
| 28034 | # First, look for one uninstalled. |
| 28035 | # the alternative search directory is invoked by --with-itclconfig |
| 28036 | # |
| 28037 | |
| 28038 | if test x"${no_itcl}" = x ; then |
| 28039 | # we reset no_itcl in case something fails here |
| 28040 | no_itcl=true |
| 28041 | |
| 28042 | # Check whether --with-itclconfig or --without-itclconfig was given. |
| 28043 | if test "${with_itclconfig+set}" = set; then |
| 28044 | withval="$with_itclconfig" |
| 28045 | with_itclconfig=${withval} |
| 28046 | fi; |
| 28047 | echo "$as_me:$LINENO: checking for Itcl configuration" >&5 |
| 28048 | echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6 |
| 28049 | if test "${ac_cv_c_itclconfig+set}" = set; then |
| 28050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28051 | else |
| 28052 | |
| 28053 | |
| 28054 | # First check to see if --with-itclconfig was specified. |
| 28055 | if test x"${with_itclconfig}" != x ; then |
| 28056 | if test -f "${with_itclconfig}/itclConfig.sh" ; then |
| 28057 | ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)` |
| 28058 | else |
| 28059 | { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5 |
| 28060 | echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;} |
| 28061 | { (exit 1); exit 1; }; } |
| 28062 | fi |
| 28063 | fi |
| 28064 | |
| 28065 | # then check for a private Itcl library |
| 28066 | if test x"${ac_cv_c_itclconfig}" = x ; then |
| 28067 | for i in \ |
| 28068 | ../itcl/itcl \ |
| 28069 | `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \ |
| 28070 | ../../itcl \ |
| 28071 | `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \ |
| 28072 | ../../../itcl \ |
| 28073 | `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do |
| 28074 | if test -f "$i/itclConfig.sh" ; then |
| 28075 | ac_cv_c_itclconfig=`(cd $i; pwd)` |
| 28076 | break |
| 28077 | fi |
| 28078 | done |
| 28079 | fi |
| 28080 | # check in a few common install locations |
| 28081 | if test x"${ac_cv_c_itclconfig}" = x ; then |
| 28082 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do |
| 28083 | if test -f "$i/itclConfig.sh" ; then |
| 28084 | ac_cv_c_itclconfig=`(cd $i; pwd)` |
| 28085 | break |
| 28086 | fi |
| 28087 | done |
| 28088 | fi |
| 28089 | # check in a few other private locations |
| 28090 | if test x"${ac_cv_c_itclconfig}" = x ; then |
| 28091 | for i in \ |
| 28092 | ${srcdir}/../itcl/itcl \ |
| 28093 | `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do |
| 28094 | if test -f "$i/itclConfig.sh" ; then |
| 28095 | ac_cv_c_itclconfig=`(cd $i; pwd)` |
| 28096 | break |
| 28097 | fi |
| 28098 | done |
| 28099 | fi |
| 28100 | |
| 28101 | fi |
| 28102 | |
| 28103 | if test x"${ac_cv_c_itclconfig}" = x ; then |
| 28104 | ITCLCONFIG="# no Itcl configs found" |
| 28105 | { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5 |
| 28106 | echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;} |
| 28107 | else |
| 28108 | no_itcl= |
| 28109 | ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh |
| 28110 | echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5 |
| 28111 | echo "${ECHO_T}found $ITCLCONFIG" >&6 |
| 28112 | fi |
| 28113 | fi |
| 28114 | |
| 28115 | if test -z "${no_itcl}"; then |
| 28116 | |
| 28117 | if test -f "$ITCLCONFIG" ; then |
| 28118 | . $ITCLCONFIG |
| 28119 | fi |
| 28120 | |
| 28121 | |
| 28122 | |
| 28123 | |
| 28124 | |
| 28125 | |
| 28126 | |
| 28127 | |
| 28128 | |
| 28129 | |
| 28130 | |
| 28131 | |
| 28132 | ITCLLIB="${ITCL_BUILD_LIB_SPEC}" |
| 28133 | ITCL_DEPS="${ITCL_LIB_FULL_PATH}" |
| 28134 | fi |
| 28135 | |
| 28136 | |
| 28137 | # now look for Itk library stuff |
| 28138 | |
| 28139 | # |
| 28140 | # Ok, lets find the itk configuration |
| 28141 | # First, look for one uninstalled. |
| 28142 | # the alternative search directory is invoked by --with-itkconfig |
| 28143 | # |
| 28144 | |
| 28145 | if test x"${no_itk}" = x ; then |
| 28146 | # we reset no_itk in case something fails here |
| 28147 | no_itk=true |
| 28148 | |
| 28149 | # Check whether --with-itkconfig or --without-itkconfig was given. |
| 28150 | if test "${with_itkconfig+set}" = set; then |
| 28151 | withval="$with_itkconfig" |
| 28152 | with_itkconfig=${withval} |
| 28153 | fi; |
| 28154 | echo "$as_me:$LINENO: checking for Itk configuration" >&5 |
| 28155 | echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6 |
| 28156 | if test "${ac_cv_c_itkconfig+set}" = set; then |
| 28157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28158 | else |
| 28159 | |
| 28160 | |
| 28161 | # First check to see if --with-itkconfig was specified. |
| 28162 | if test x"${with_itkconfig}" != x ; then |
| 28163 | if test -f "${with_itkconfig}/itkConfig.sh" ; then |
| 28164 | ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)` |
| 28165 | else |
| 28166 | { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5 |
| 28167 | echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;} |
| 28168 | { (exit 1); exit 1; }; } |
| 28169 | fi |
| 28170 | fi |
| 28171 | |
| 28172 | # then check for a private Itk library |
| 28173 | if test x"${ac_cv_c_itkconfig}" = x ; then |
| 28174 | for i in \ |
| 28175 | ../itcl/itk \ |
| 28176 | `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \ |
| 28177 | ../../itk \ |
| 28178 | `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \ |
| 28179 | ../../../itk \ |
| 28180 | `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do |
| 28181 | if test -f "$i/itkConfig.sh" ; then |
| 28182 | ac_cv_c_itkconfig=`(cd $i; pwd)` |
| 28183 | break |
| 28184 | fi |
| 28185 | done |
| 28186 | fi |
| 28187 | # check in a few common install locations |
| 28188 | if test x"${ac_cv_c_itkconfig}" = x ; then |
| 28189 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do |
| 28190 | if test -f "$i/itkConfig.sh" ; then |
| 28191 | ac_cv_c_itkconfig=`(cd $i; pwd)` |
| 28192 | break |
| 28193 | fi |
| 28194 | done |
| 28195 | fi |
| 28196 | # check in a few other private locations |
| 28197 | if test x"${ac_cv_c_itkconfig}" = x ; then |
| 28198 | for i in \ |
| 28199 | ${srcdir}/../itcl/itk \ |
| 28200 | `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do |
| 28201 | if test -f "$i/itkConfig.sh" ; then |
| 28202 | ac_cv_c_itkconfig=`(cd $i; pwd)` |
| 28203 | break |
| 28204 | fi |
| 28205 | done |
| 28206 | fi |
| 28207 | |
| 28208 | fi |
| 28209 | |
| 28210 | if test x"${ac_cv_c_itkconfig}" = x ; then |
| 28211 | ITKCONFIG="# no Itk configs found" |
| 28212 | { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5 |
| 28213 | echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;} |
| 28214 | else |
| 28215 | no_itk= |
| 28216 | ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh |
| 28217 | echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5 |
| 28218 | echo "${ECHO_T}found $ITKCONFIG" >&6 |
| 28219 | fi |
| 28220 | fi |
| 28221 | |
| 28222 | |
| 28223 | if test -z "${no_itcl}"; then |
| 28224 | |
| 28225 | if test -f "$ITKCONFIG" ; then |
| 28226 | . $ITKCONFIG |
| 28227 | fi |
| 28228 | |
| 28229 | |
| 28230 | |
| 28231 | |
| 28232 | |
| 28233 | |
| 28234 | |
| 28235 | |
| 28236 | |
| 28237 | |
| 28238 | |
| 28239 | |
| 28240 | ITKLIB="${ITK_BUILD_LIB_SPEC}" |
| 28241 | ITK_DEPS="${ITK_LIB_FULL_PATH}" |
| 28242 | fi |
| 28243 | |
| 28244 | ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)" |
| 28245 | |
| 28246 | # Include some libraries that Tcl and Tk want. |
| 28247 | TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)' |
| 28248 | # Yes, the ordering seems wrong here. But it isn't. |
| 28249 | # TK_LIBS is the list of libraries that need to be linked |
| 28250 | # after Tcl/Tk. Note that this isn't put into LIBS. If it |
| 28251 | # were in LIBS then any link tests after this point would |
| 28252 | # try to include things like `$(LIBGUI)', which wouldn't work. |
| 28253 | GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}" |
| 28254 | |
| 28255 | CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)" |
| 28256 | CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)" |
| 28257 | CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)" |
| 28258 | CONFIG_ALL="${CONFIG_ALL} all-gdbtk" |
| 28259 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk" |
| 28260 | CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk" |
| 28261 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk" |
| 28262 | |
| 28263 | if test x$gdb_cv_os_cygwin = xyes; then |
| 28264 | WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32" |
| 28265 | WIN32LDAPP="-Wl,--subsystem,console" |
| 28266 | CONFIG_OBS="${CONFIG_OBS} gdbres.o" |
| 28267 | fi |
| 28268 | fi |
| 28269 | fi |
| 28270 | |
| 28271 | |
| 28272 | |
| 28273 | subdirs="$subdirs gdbtk" |
| 28274 | |
| 28275 | fi |
| 28276 | |
| 28277 | |
| 28278 | |
| 28279 | |
| 28280 | |
| 28281 | |
| 28282 | |
| 28283 | |
| 28284 | |
| 28285 | |
| 28286 | |
| 28287 | |
| 28288 | |
| 28289 | |
| 28290 | echo "$as_me:$LINENO: checking for X" >&5 |
| 28291 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
| 28292 | |
| 28293 | |
| 28294 | # Check whether --with-x or --without-x was given. |
| 28295 | if test "${with_x+set}" = set; then |
| 28296 | withval="$with_x" |
| 28297 | |
| 28298 | fi; |
| 28299 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 28300 | if test "x$with_x" = xno; then |
| 28301 | # The user explicitly disabled X. |
| 28302 | have_x=disabled |
| 28303 | else |
| 28304 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
| 28305 | # Both variables are already set. |
| 28306 | have_x=yes |
| 28307 | else |
| 28308 | if test "${ac_cv_have_x+set}" = set; then |
| 28309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28310 | else |
| 28311 | # One or both of the vars are not set, and there is no cached value. |
| 28312 | ac_x_includes=no ac_x_libraries=no |
| 28313 | rm -fr conftest.dir |
| 28314 | if mkdir conftest.dir; then |
| 28315 | cd conftest.dir |
| 28316 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
| 28317 | cat >Imakefile <<'_ACEOF' |
| 28318 | acfindx: |
| 28319 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
| 28320 | _ACEOF |
| 28321 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 28322 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 28323 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 28324 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 28325 | for ac_extension in a so sl; do |
| 28326 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
| 28327 | test -f $ac_im_libdir/libX11.$ac_extension; then |
| 28328 | ac_im_usrlibdir=$ac_im_libdir; break |
| 28329 | fi |
| 28330 | done |
| 28331 | # Screen out bogus values from the imake configuration. They are |
| 28332 | # bogus both because they are the default anyway, and because |
| 28333 | # using them would break gcc on systems where it needs fixed includes. |
| 28334 | case $ac_im_incroot in |
| 28335 | /usr/include) ;; |
| 28336 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
| 28337 | esac |
| 28338 | case $ac_im_usrlibdir in |
| 28339 | /usr/lib | /lib) ;; |
| 28340 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
| 28341 | esac |
| 28342 | fi |
| 28343 | cd .. |
| 28344 | rm -fr conftest.dir |
| 28345 | fi |
| 28346 | |
| 28347 | # Standard set of common directories for X headers. |
| 28348 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 28349 | ac_x_header_dirs=' |
| 28350 | /usr/X11/include |
| 28351 | /usr/X11R6/include |
| 28352 | /usr/X11R5/include |
| 28353 | /usr/X11R4/include |
| 28354 | |
| 28355 | /usr/include/X11 |
| 28356 | /usr/include/X11R6 |
| 28357 | /usr/include/X11R5 |
| 28358 | /usr/include/X11R4 |
| 28359 | |
| 28360 | /usr/local/X11/include |
| 28361 | /usr/local/X11R6/include |
| 28362 | /usr/local/X11R5/include |
| 28363 | /usr/local/X11R4/include |
| 28364 | |
| 28365 | /usr/local/include/X11 |
| 28366 | /usr/local/include/X11R6 |
| 28367 | /usr/local/include/X11R5 |
| 28368 | /usr/local/include/X11R4 |
| 28369 | |
| 28370 | /usr/X386/include |
| 28371 | /usr/x386/include |
| 28372 | /usr/XFree86/include/X11 |
| 28373 | |
| 28374 | /usr/include |
| 28375 | /usr/local/include |
| 28376 | /usr/unsupported/include |
| 28377 | /usr/athena/include |
| 28378 | /usr/local/x11r5/include |
| 28379 | /usr/lpp/Xamples/include |
| 28380 | |
| 28381 | /usr/openwin/include |
| 28382 | /usr/openwin/share/include' |
| 28383 | |
| 28384 | if test "$ac_x_includes" = no; then |
| 28385 | # Guess where to find include files, by looking for Intrinsic.h. |
| 28386 | # First, try using that file with no special directory specified. |
| 28387 | cat >conftest.$ac_ext <<_ACEOF |
| 28388 | /* confdefs.h. */ |
| 28389 | _ACEOF |
| 28390 | cat confdefs.h >>conftest.$ac_ext |
| 28391 | cat >>conftest.$ac_ext <<_ACEOF |
| 28392 | /* end confdefs.h. */ |
| 28393 | #include <X11/Intrinsic.h> |
| 28394 | _ACEOF |
| 28395 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 28396 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 28397 | ac_status=$? |
| 28398 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28399 | rm -f conftest.er1 |
| 28400 | cat conftest.err >&5 |
| 28401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28402 | (exit $ac_status); } >/dev/null; then |
| 28403 | if test -s conftest.err; then |
| 28404 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 28405 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 28406 | else |
| 28407 | ac_cpp_err= |
| 28408 | fi |
| 28409 | else |
| 28410 | ac_cpp_err=yes |
| 28411 | fi |
| 28412 | if test -z "$ac_cpp_err"; then |
| 28413 | # We can compile using X headers with no special include directory. |
| 28414 | ac_x_includes= |
| 28415 | else |
| 28416 | echo "$as_me: failed program was:" >&5 |
| 28417 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28418 | |
| 28419 | for ac_dir in $ac_x_header_dirs; do |
| 28420 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
| 28421 | ac_x_includes=$ac_dir |
| 28422 | break |
| 28423 | fi |
| 28424 | done |
| 28425 | fi |
| 28426 | rm -f conftest.err conftest.$ac_ext |
| 28427 | fi # $ac_x_includes = no |
| 28428 | |
| 28429 | if test "$ac_x_libraries" = no; then |
| 28430 | # Check for the libraries. |
| 28431 | # See if we find them without any special options. |
| 28432 | # Don't add to $LIBS permanently. |
| 28433 | ac_save_LIBS=$LIBS |
| 28434 | LIBS="-lXt $LIBS" |
| 28435 | cat >conftest.$ac_ext <<_ACEOF |
| 28436 | /* confdefs.h. */ |
| 28437 | _ACEOF |
| 28438 | cat confdefs.h >>conftest.$ac_ext |
| 28439 | cat >>conftest.$ac_ext <<_ACEOF |
| 28440 | /* end confdefs.h. */ |
| 28441 | #include <X11/Intrinsic.h> |
| 28442 | int |
| 28443 | main () |
| 28444 | { |
| 28445 | XtMalloc (0) |
| 28446 | ; |
| 28447 | return 0; |
| 28448 | } |
| 28449 | _ACEOF |
| 28450 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28451 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 28452 | (eval $ac_link) 2>conftest.er1 |
| 28453 | ac_status=$? |
| 28454 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28455 | rm -f conftest.er1 |
| 28456 | cat conftest.err >&5 |
| 28457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28458 | (exit $ac_status); } && |
| 28459 | { ac_try='test -z "$ac_c_werror_flag" |
| 28460 | || test ! -s conftest.err' |
| 28461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28462 | (eval $ac_try) 2>&5 |
| 28463 | ac_status=$? |
| 28464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28465 | (exit $ac_status); }; } && |
| 28466 | { ac_try='test -s conftest$ac_exeext' |
| 28467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28468 | (eval $ac_try) 2>&5 |
| 28469 | ac_status=$? |
| 28470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28471 | (exit $ac_status); }; }; then |
| 28472 | LIBS=$ac_save_LIBS |
| 28473 | # We can link X programs with no special library path. |
| 28474 | ac_x_libraries= |
| 28475 | else |
| 28476 | echo "$as_me: failed program was:" >&5 |
| 28477 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28478 | |
| 28479 | LIBS=$ac_save_LIBS |
| 28480 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
| 28481 | do |
| 28482 | # Don't even attempt the hair of trying to link an X program! |
| 28483 | for ac_extension in a so sl; do |
| 28484 | if test -r $ac_dir/libXt.$ac_extension; then |
| 28485 | ac_x_libraries=$ac_dir |
| 28486 | break 2 |
| 28487 | fi |
| 28488 | done |
| 28489 | done |
| 28490 | fi |
| 28491 | rm -f conftest.err conftest.$ac_objext \ |
| 28492 | conftest$ac_exeext conftest.$ac_ext |
| 28493 | fi # $ac_x_libraries = no |
| 28494 | |
| 28495 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
| 28496 | # Didn't find X anywhere. Cache the known absence of X. |
| 28497 | ac_cv_have_x="have_x=no" |
| 28498 | else |
| 28499 | # Record where we found X for the cache. |
| 28500 | ac_cv_have_x="have_x=yes \ |
| 28501 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
| 28502 | fi |
| 28503 | fi |
| 28504 | |
| 28505 | fi |
| 28506 | eval "$ac_cv_have_x" |
| 28507 | fi # $with_x != no |
| 28508 | |
| 28509 | if test "$have_x" != yes; then |
| 28510 | echo "$as_me:$LINENO: result: $have_x" >&5 |
| 28511 | echo "${ECHO_T}$have_x" >&6 |
| 28512 | no_x=yes |
| 28513 | else |
| 28514 | # If each of the values was on the command line, it overrides each guess. |
| 28515 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 28516 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 28517 | # Update the cache value to reflect the command line values. |
| 28518 | ac_cv_have_x="have_x=yes \ |
| 28519 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
| 28520 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
| 28521 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
| 28522 | fi |
| 28523 | |
| 28524 | |
| 28525 | # Check whether we should enable the TUI, but only do so if we really |
| 28526 | # can. |
| 28527 | if test x"$enable_tui" = xyes; then |
| 28528 | if test -d $srcdir/tui; then |
| 28529 | if test "$ac_cv_search_waddstr" != no; then |
| 28530 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)" |
| 28531 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)" |
| 28532 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)" |
| 28533 | CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)" |
| 28534 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)" |
| 28535 | CONFIG_ALL="${CONFIG_ALL} all-tui" |
| 28536 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui" |
| 28537 | CONFIG_INSTALL="${CONFIG_INSTALL} install-tui" |
| 28538 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui" |
| 28539 | else |
| 28540 | { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5 |
| 28541 | echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;} |
| 28542 | fi |
| 28543 | fi |
| 28544 | fi |
| 28545 | |
| 28546 | # Unlike the sim directory, whether a simulator is linked is controlled by |
| 28547 | # presence of a gdb_sim definition in the target configure.tgt entry. |
| 28548 | # This code just checks for a few cases where we'd like to ignore those |
| 28549 | # definitions, even when they're present in the '.mt' file. These cases |
| 28550 | # are when --disable-sim is specified, or if the simulator directory is |
| 28551 | # not part of the source tree. |
| 28552 | # |
| 28553 | # Check whether --enable-sim or --disable-sim was given. |
| 28554 | if test "${enable_sim+set}" = set; then |
| 28555 | enableval="$enable_sim" |
| 28556 | echo "enable_sim = $enable_sim"; |
| 28557 | echo "enableval = ${enableval}"; |
| 28558 | case "${enableval}" in |
| 28559 | yes) ignore_sim=false ;; |
| 28560 | no) ignore_sim=true ;; |
| 28561 | *) ignore_sim=false ;; |
| 28562 | esac |
| 28563 | else |
| 28564 | ignore_sim=false |
| 28565 | fi; |
| 28566 | |
| 28567 | if test ! -d "${srcdir}/../sim"; then |
| 28568 | ignore_sim=true |
| 28569 | fi |
| 28570 | |
| 28571 | SIM= |
| 28572 | SIM_OBS= |
| 28573 | if test "${ignore_sim}" = "false"; then |
| 28574 | if test x"${gdb_sim}" != x ; then |
| 28575 | SIM="${gdb_sim}" |
| 28576 | SIM_OBS="remote-sim.o" |
| 28577 | |
| 28578 | cat >>confdefs.h <<\_ACEOF |
| 28579 | #define WITH_SIM 1 |
| 28580 | _ACEOF |
| 28581 | |
| 28582 | fi |
| 28583 | fi |
| 28584 | |
| 28585 | |
| 28586 | |
| 28587 | |
| 28588 | |
| 28589 | |
| 28590 | |
| 28591 | |
| 28592 | |
| 28593 | |
| 28594 | |
| 28595 | |
| 28596 | |
| 28597 | |
| 28598 | # List of host floatformats. |
| 28599 | |
| 28600 | cat >>confdefs.h <<_ACEOF |
| 28601 | #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format |
| 28602 | _ACEOF |
| 28603 | |
| 28604 | |
| 28605 | cat >>confdefs.h <<_ACEOF |
| 28606 | #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format |
| 28607 | _ACEOF |
| 28608 | |
| 28609 | |
| 28610 | cat >>confdefs.h <<_ACEOF |
| 28611 | #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format |
| 28612 | _ACEOF |
| 28613 | |
| 28614 | |
| 28615 | # target_subdir is used by the testsuite to find the target libraries. |
| 28616 | target_subdir= |
| 28617 | if test "${host}" != "${target}"; then |
| 28618 | target_subdir="${target_alias}/" |
| 28619 | fi |
| 28620 | |
| 28621 | |
| 28622 | frags= |
| 28623 | if test "${gdb_native}" = "yes"; then |
| 28624 | host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh |
| 28625 | if test ! -f ${host_makefile_frag}; then |
| 28626 | { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5 |
| 28627 | echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;} |
| 28628 | { (exit 1); exit 1; }; } |
| 28629 | fi |
| 28630 | frags="$frags $host_makefile_frag" |
| 28631 | else |
| 28632 | host_makefile_frag=/dev/null |
| 28633 | fi |
| 28634 | |
| 28635 | |
| 28636 | |
| 28637 | |
| 28638 | if test "${gdb_native}" = "yes"; then |
| 28639 | # We pick this up from the host configuration file (.mh) because we |
| 28640 | # do not have a native configuration Makefile fragment. |
| 28641 | nativefile=`sed -n ' |
| 28642 | s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p |
| 28643 | ' ${host_makefile_frag}` |
| 28644 | fi |
| 28645 | |
| 28646 | |
| 28647 | if test x"${gdb_osabi}" != x ; then |
| 28648 | |
| 28649 | cat >>confdefs.h <<_ACEOF |
| 28650 | #define GDB_OSABI_DEFAULT $gdb_osabi |
| 28651 | _ACEOF |
| 28652 | |
| 28653 | fi |
| 28654 | |
| 28655 | # Enable multi-ice-gdb-server. |
| 28656 | # Check whether --enable-multi-ice or --disable-multi-ice was given. |
| 28657 | if test "${enable_multi_ice+set}" = set; then |
| 28658 | enableval="$enable_multi_ice" |
| 28659 | case $enableval in |
| 28660 | yes | no) |
| 28661 | ;; |
| 28662 | *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5 |
| 28663 | echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;} |
| 28664 | { (exit 1); exit 1; }; } ;; |
| 28665 | esac |
| 28666 | fi; |
| 28667 | if test "x$enable_multi_ice" = xyes; then |
| 28668 | |
| 28669 | |
| 28670 | subdirs="$subdirs multi-ice" |
| 28671 | |
| 28672 | fi |
| 28673 | |
| 28674 | # We only build gdbserver automatically in a native configuration. |
| 28675 | if test "$gdb_native" = "yes"; then |
| 28676 | echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5 |
| 28677 | echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6 |
| 28678 | if test "x$build_gdbserver" = xyes; then |
| 28679 | echo "$as_me:$LINENO: result: yes" >&5 |
| 28680 | echo "${ECHO_T}yes" >&6 |
| 28681 | |
| 28682 | |
| 28683 | subdirs="$subdirs gdbserver" |
| 28684 | |
| 28685 | else |
| 28686 | echo "$as_me:$LINENO: result: no" >&5 |
| 28687 | echo "${ECHO_T}no" >&6 |
| 28688 | fi |
| 28689 | fi |
| 28690 | |
| 28691 | # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link |
| 28692 | # to an empty version. |
| 28693 | |
| 28694 | files= |
| 28695 | links= |
| 28696 | |
| 28697 | rm -f nm.h |
| 28698 | nm_h="" |
| 28699 | if test "${nativefile}" != ""; then |
| 28700 | nm_h=nm.h |
| 28701 | case "${nativefile}" in |
| 28702 | nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;; |
| 28703 | * ) GDB_NM_FILE="${nativefile}" |
| 28704 | esac |
| 28705 | files="${files} ${GDB_NM_FILE}" |
| 28706 | links="${links} nm.h" |
| 28707 | |
| 28708 | cat >>confdefs.h <<_ACEOF |
| 28709 | #define GDB_NM_FILE "${GDB_NM_FILE}" |
| 28710 | _ACEOF |
| 28711 | |
| 28712 | fi |
| 28713 | |
| 28714 | |
| 28715 | ac_sources="$files" |
| 28716 | ac_dests="$links" |
| 28717 | while test -n "$ac_sources"; do |
| 28718 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* |
| 28719 | set $ac_sources; ac_source=$1; shift; ac_sources=$* |
| 28720 | ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source" |
| 28721 | done |
| 28722 | ac_config_links="$ac_config_links $ac_config_links_1" |
| 28723 | |
| 28724 | |
| 28725 | |
| 28726 | |
| 28727 | |
| 28728 | |
| 28729 | cat >>confdefs.h <<\_ACEOF |
| 28730 | #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1" |
| 28731 | _ACEOF |
| 28732 | |
| 28733 | |
| 28734 | |
| 28735 | |
| 28736 | |
| 28737 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
| 28738 | if test "${with_libiconv_prefix+set}" = set; then |
| 28739 | withval="$with_libiconv_prefix" |
| 28740 | |
| 28741 | for dir in `echo "$withval" | tr : ' '`; do |
| 28742 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi |
| 28743 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi |
| 28744 | done |
| 28745 | |
| 28746 | fi; |
| 28747 | |
| 28748 | echo "$as_me:$LINENO: checking for iconv" >&5 |
| 28749 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 |
| 28750 | if test "${am_cv_func_iconv+set}" = set; then |
| 28751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28752 | else |
| 28753 | |
| 28754 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 28755 | am_cv_lib_iconv=no |
| 28756 | cat >conftest.$ac_ext <<_ACEOF |
| 28757 | /* confdefs.h. */ |
| 28758 | _ACEOF |
| 28759 | cat confdefs.h >>conftest.$ac_ext |
| 28760 | cat >>conftest.$ac_ext <<_ACEOF |
| 28761 | /* end confdefs.h. */ |
| 28762 | #include <stdlib.h> |
| 28763 | #include <iconv.h> |
| 28764 | int |
| 28765 | main () |
| 28766 | { |
| 28767 | iconv_t cd = iconv_open("",""); |
| 28768 | iconv(cd,NULL,NULL,NULL,NULL); |
| 28769 | iconv_close(cd); |
| 28770 | ; |
| 28771 | return 0; |
| 28772 | } |
| 28773 | _ACEOF |
| 28774 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28775 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 28776 | (eval $ac_link) 2>conftest.er1 |
| 28777 | ac_status=$? |
| 28778 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28779 | rm -f conftest.er1 |
| 28780 | cat conftest.err >&5 |
| 28781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28782 | (exit $ac_status); } && |
| 28783 | { ac_try='test -z "$ac_c_werror_flag" |
| 28784 | || test ! -s conftest.err' |
| 28785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28786 | (eval $ac_try) 2>&5 |
| 28787 | ac_status=$? |
| 28788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28789 | (exit $ac_status); }; } && |
| 28790 | { ac_try='test -s conftest$ac_exeext' |
| 28791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28792 | (eval $ac_try) 2>&5 |
| 28793 | ac_status=$? |
| 28794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28795 | (exit $ac_status); }; }; then |
| 28796 | am_cv_func_iconv=yes |
| 28797 | else |
| 28798 | echo "$as_me: failed program was:" >&5 |
| 28799 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28800 | |
| 28801 | fi |
| 28802 | rm -f conftest.err conftest.$ac_objext \ |
| 28803 | conftest$ac_exeext conftest.$ac_ext |
| 28804 | if test "$am_cv_func_iconv" != yes; then |
| 28805 | am_save_LIBS="$LIBS" |
| 28806 | LIBS="$LIBS -liconv" |
| 28807 | cat >conftest.$ac_ext <<_ACEOF |
| 28808 | /* confdefs.h. */ |
| 28809 | _ACEOF |
| 28810 | cat confdefs.h >>conftest.$ac_ext |
| 28811 | cat >>conftest.$ac_ext <<_ACEOF |
| 28812 | /* end confdefs.h. */ |
| 28813 | #include <stdlib.h> |
| 28814 | #include <iconv.h> |
| 28815 | int |
| 28816 | main () |
| 28817 | { |
| 28818 | iconv_t cd = iconv_open("",""); |
| 28819 | iconv(cd,NULL,NULL,NULL,NULL); |
| 28820 | iconv_close(cd); |
| 28821 | ; |
| 28822 | return 0; |
| 28823 | } |
| 28824 | _ACEOF |
| 28825 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28826 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 28827 | (eval $ac_link) 2>conftest.er1 |
| 28828 | ac_status=$? |
| 28829 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28830 | rm -f conftest.er1 |
| 28831 | cat conftest.err >&5 |
| 28832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28833 | (exit $ac_status); } && |
| 28834 | { ac_try='test -z "$ac_c_werror_flag" |
| 28835 | || test ! -s conftest.err' |
| 28836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28837 | (eval $ac_try) 2>&5 |
| 28838 | ac_status=$? |
| 28839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28840 | (exit $ac_status); }; } && |
| 28841 | { ac_try='test -s conftest$ac_exeext' |
| 28842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28843 | (eval $ac_try) 2>&5 |
| 28844 | ac_status=$? |
| 28845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28846 | (exit $ac_status); }; }; then |
| 28847 | am_cv_lib_iconv=yes |
| 28848 | am_cv_func_iconv=yes |
| 28849 | else |
| 28850 | echo "$as_me: failed program was:" >&5 |
| 28851 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28852 | |
| 28853 | fi |
| 28854 | rm -f conftest.err conftest.$ac_objext \ |
| 28855 | conftest$ac_exeext conftest.$ac_ext |
| 28856 | LIBS="$am_save_LIBS" |
| 28857 | fi |
| 28858 | |
| 28859 | fi |
| 28860 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
| 28861 | echo "${ECHO_T}$am_cv_func_iconv" >&6 |
| 28862 | if test "$am_cv_func_iconv" = yes; then |
| 28863 | |
| 28864 | cat >>confdefs.h <<\_ACEOF |
| 28865 | #define HAVE_ICONV 1 |
| 28866 | _ACEOF |
| 28867 | |
| 28868 | echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
| 28869 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 |
| 28870 | if test "${am_cv_proto_iconv+set}" = set; then |
| 28871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28872 | else |
| 28873 | |
| 28874 | cat >conftest.$ac_ext <<_ACEOF |
| 28875 | /* confdefs.h. */ |
| 28876 | _ACEOF |
| 28877 | cat confdefs.h >>conftest.$ac_ext |
| 28878 | cat >>conftest.$ac_ext <<_ACEOF |
| 28879 | /* end confdefs.h. */ |
| 28880 | |
| 28881 | #include <stdlib.h> |
| 28882 | #include <iconv.h> |
| 28883 | extern |
| 28884 | #ifdef __cplusplus |
| 28885 | "C" |
| 28886 | #endif |
| 28887 | #if defined(__STDC__) || defined(__cplusplus) |
| 28888 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 28889 | #else |
| 28890 | size_t iconv(); |
| 28891 | #endif |
| 28892 | |
| 28893 | int |
| 28894 | main () |
| 28895 | { |
| 28896 | |
| 28897 | ; |
| 28898 | return 0; |
| 28899 | } |
| 28900 | _ACEOF |
| 28901 | rm -f conftest.$ac_objext |
| 28902 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 28903 | (eval $ac_compile) 2>conftest.er1 |
| 28904 | ac_status=$? |
| 28905 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28906 | rm -f conftest.er1 |
| 28907 | cat conftest.err >&5 |
| 28908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28909 | (exit $ac_status); } && |
| 28910 | { ac_try='test -z "$ac_c_werror_flag" |
| 28911 | || test ! -s conftest.err' |
| 28912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28913 | (eval $ac_try) 2>&5 |
| 28914 | ac_status=$? |
| 28915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28916 | (exit $ac_status); }; } && |
| 28917 | { ac_try='test -s conftest.$ac_objext' |
| 28918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28919 | (eval $ac_try) 2>&5 |
| 28920 | ac_status=$? |
| 28921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28922 | (exit $ac_status); }; }; then |
| 28923 | am_cv_proto_iconv_arg1="" |
| 28924 | else |
| 28925 | echo "$as_me: failed program was:" >&5 |
| 28926 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28927 | |
| 28928 | am_cv_proto_iconv_arg1="const" |
| 28929 | fi |
| 28930 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28931 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" |
| 28932 | fi |
| 28933 | |
| 28934 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
| 28935 | echo "$as_me:$LINENO: result: ${ac_t:- |
| 28936 | }$am_cv_proto_iconv" >&5 |
| 28937 | echo "${ECHO_T}${ac_t:- |
| 28938 | }$am_cv_proto_iconv" >&6 |
| 28939 | |
| 28940 | cat >>confdefs.h <<_ACEOF |
| 28941 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
| 28942 | _ACEOF |
| 28943 | |
| 28944 | fi |
| 28945 | LIBICONV= |
| 28946 | if test "$am_cv_lib_iconv" = yes; then |
| 28947 | LIBICONV="-liconv" |
| 28948 | fi |
| 28949 | |
| 28950 | |
| 28951 | |
| 28952 | ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile" |
| 28953 | ac_config_commands="$ac_config_commands default" |
| 28954 | cat >confcache <<\_ACEOF |
| 28955 | # This file is a shell script that caches the results of configure |
| 28956 | # tests run on this system so they can be shared between configure |
| 28957 | # scripts and configure runs, see configure's option --config-cache. |
| 28958 | # It is not useful on other systems. If it contains results you don't |
| 28959 | # want to keep, you may remove or edit it. |
| 28960 | # |
| 28961 | # config.status only pays attention to the cache file if you give it |
| 28962 | # the --recheck option to rerun configure. |
| 28963 | # |
| 28964 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 28965 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 28966 | # following values. |
| 28967 | |
| 28968 | _ACEOF |
| 28969 | |
| 28970 | # The following way of writing the cache mishandles newlines in values, |
| 28971 | # but we know of no workaround that is simple, portable, and efficient. |
| 28972 | # So, don't put newlines in cache variables' values. |
| 28973 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 28974 | # and sets the high bit in the cache file unless we assign to the vars. |
| 28975 | { |
| 28976 | (set) 2>&1 | |
| 28977 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 28978 | *ac_space=\ *) |
| 28979 | # `set' does not quote correctly, so add quotes (double-quote |
| 28980 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 28981 | sed -n \ |
| 28982 | "s/'/'\\\\''/g; |
| 28983 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 28984 | ;; |
| 28985 | *) |
| 28986 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 28987 | sed -n \ |
| 28988 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 28989 | ;; |
| 28990 | esac; |
| 28991 | } | |
| 28992 | sed ' |
| 28993 | t clear |
| 28994 | : clear |
| 28995 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 28996 | t end |
| 28997 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 28998 | : end' >>confcache |
| 28999 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
| 29000 | if test -w $cache_file; then |
| 29001 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 29002 | cat confcache >$cache_file |
| 29003 | else |
| 29004 | echo "not updating unwritable cache $cache_file" |
| 29005 | fi |
| 29006 | fi |
| 29007 | rm -f confcache |
| 29008 | |
| 29009 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 29010 | # Let make expand exec_prefix. |
| 29011 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 29012 | |
| 29013 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 29014 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 29015 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 29016 | # (actually we leave an empty line to preserve line numbers). |
| 29017 | if test "x$srcdir" = x.; then |
| 29018 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 29019 | s/:*\$(srcdir):*/:/; |
| 29020 | s/:*\${srcdir}:*/:/; |
| 29021 | s/:*@srcdir@:*/:/; |
| 29022 | s/^\([^=]*=[ ]*\):*/\1/; |
| 29023 | s/:*$//; |
| 29024 | s/^[^=]*=[ ]*$//; |
| 29025 | }' |
| 29026 | fi |
| 29027 | |
| 29028 | DEFS=-DHAVE_CONFIG_H |
| 29029 | |
| 29030 | ac_libobjs= |
| 29031 | ac_ltlibobjs= |
| 29032 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 29033 | # 1. Remove the extension, and $U if already installed. |
| 29034 | ac_i=`echo "$ac_i" | |
| 29035 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 29036 | # 2. Add them. |
| 29037 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 29038 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 29039 | done |
| 29040 | LIBOBJS=$ac_libobjs |
| 29041 | |
| 29042 | LTLIBOBJS=$ac_ltlibobjs |
| 29043 | |
| 29044 | |
| 29045 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 29046 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 29047 | Usually this means the macro was only invoked conditionally." >&5 |
| 29048 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 29049 | Usually this means the macro was only invoked conditionally." >&2;} |
| 29050 | { (exit 1); exit 1; }; } |
| 29051 | fi |
| 29052 | if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then |
| 29053 | { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined. |
| 29054 | Usually this means the macro was only invoked conditionally." >&5 |
| 29055 | echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined. |
| 29056 | Usually this means the macro was only invoked conditionally." >&2;} |
| 29057 | { (exit 1); exit 1; }; } |
| 29058 | fi |
| 29059 | |
| 29060 | gl_libobjs= |
| 29061 | gl_ltlibobjs= |
| 29062 | if test -n "$gl_LIBOBJS"; then |
| 29063 | # Remove the extension. |
| 29064 | sed_drop_objext='s/\.o$//;s/\.obj$//' |
| 29065 | for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do |
| 29066 | gl_libobjs="$gl_libobjs $i.$ac_objext" |
| 29067 | gl_ltlibobjs="$gl_ltlibobjs $i.lo" |
| 29068 | done |
| 29069 | fi |
| 29070 | gl_LIBOBJS=$gl_libobjs |
| 29071 | |
| 29072 | gl_LTLIBOBJS=$gl_ltlibobjs |
| 29073 | |
| 29074 | |
| 29075 | |
| 29076 | gltests_libobjs= |
| 29077 | gltests_ltlibobjs= |
| 29078 | if test -n "$gltests_LIBOBJS"; then |
| 29079 | # Remove the extension. |
| 29080 | sed_drop_objext='s/\.o$//;s/\.obj$//' |
| 29081 | for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do |
| 29082 | gltests_libobjs="$gltests_libobjs $i.$ac_objext" |
| 29083 | gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" |
| 29084 | done |
| 29085 | fi |
| 29086 | gltests_LIBOBJS=$gltests_libobjs |
| 29087 | |
| 29088 | gltests_LTLIBOBJS=$gltests_ltlibobjs |
| 29089 | |
| 29090 | |
| 29091 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 29092 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
| 29093 | Usually this means the macro was only invoked conditionally." >&5 |
| 29094 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
| 29095 | Usually this means the macro was only invoked conditionally." >&2;} |
| 29096 | { (exit 1); exit 1; }; } |
| 29097 | fi |
| 29098 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 29099 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
| 29100 | Usually this means the macro was only invoked conditionally." >&5 |
| 29101 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
| 29102 | Usually this means the macro was only invoked conditionally." >&2;} |
| 29103 | { (exit 1); exit 1; }; } |
| 29104 | fi |
| 29105 | |
| 29106 | : ${CONFIG_STATUS=./config.status} |
| 29107 | ac_clean_files_save=$ac_clean_files |
| 29108 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 29109 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 29110 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 29111 | cat >$CONFIG_STATUS <<_ACEOF |
| 29112 | #! $SHELL |
| 29113 | # Generated by $as_me. |
| 29114 | # Run this file to recreate the current configuration. |
| 29115 | # Compiler output produced by configure, useful for debugging |
| 29116 | # configure, is in config.log if it exists. |
| 29117 | |
| 29118 | debug=false |
| 29119 | ac_cs_recheck=false |
| 29120 | ac_cs_silent=false |
| 29121 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 29122 | _ACEOF |
| 29123 | |
| 29124 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 29125 | ## --------------------- ## |
| 29126 | ## M4sh Initialization. ## |
| 29127 | ## --------------------- ## |
| 29128 | |
| 29129 | # Be Bourne compatible |
| 29130 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 29131 | emulate sh |
| 29132 | NULLCMD=: |
| 29133 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 29134 | # is contrary to our usage. Disable this feature. |
| 29135 | alias -g '${1+"$@"}'='"$@"' |
| 29136 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 29137 | set -o posix |
| 29138 | fi |
| 29139 | DUALCASE=1; export DUALCASE # for MKS sh |
| 29140 | |
| 29141 | # Support unset when possible. |
| 29142 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 29143 | as_unset=unset |
| 29144 | else |
| 29145 | as_unset=false |
| 29146 | fi |
| 29147 | |
| 29148 | |
| 29149 | # Work around bugs in pre-3.0 UWIN ksh. |
| 29150 | $as_unset ENV MAIL MAILPATH |
| 29151 | PS1='$ ' |
| 29152 | PS2='> ' |
| 29153 | PS4='+ ' |
| 29154 | |
| 29155 | # NLS nuisances. |
| 29156 | for as_var in \ |
| 29157 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 29158 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 29159 | LC_TELEPHONE LC_TIME |
| 29160 | do |
| 29161 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 29162 | eval $as_var=C; export $as_var |
| 29163 | else |
| 29164 | $as_unset $as_var |
| 29165 | fi |
| 29166 | done |
| 29167 | |
| 29168 | # Required to use basename. |
| 29169 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 29170 | as_expr=expr |
| 29171 | else |
| 29172 | as_expr=false |
| 29173 | fi |
| 29174 | |
| 29175 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 29176 | as_basename=basename |
| 29177 | else |
| 29178 | as_basename=false |
| 29179 | fi |
| 29180 | |
| 29181 | |
| 29182 | # Name of the executable. |
| 29183 | as_me=`$as_basename "$0" || |
| 29184 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 29185 | X"$0" : 'X\(//\)$' \| \ |
| 29186 | X"$0" : 'X\(/\)$' \| \ |
| 29187 | . : '\(.\)' 2>/dev/null || |
| 29188 | echo X/"$0" | |
| 29189 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 29190 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 29191 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 29192 | s/.*/./; q'` |
| 29193 | |
| 29194 | |
| 29195 | # PATH needs CR, and LINENO needs CR and PATH. |
| 29196 | # Avoid depending upon Character Ranges. |
| 29197 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 29198 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 29199 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 29200 | as_cr_digits='0123456789' |
| 29201 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 29202 | |
| 29203 | # The user is always right. |
| 29204 | if test "${PATH_SEPARATOR+set}" != set; then |
| 29205 | echo "#! /bin/sh" >conf$$.sh |
| 29206 | echo "exit 0" >>conf$$.sh |
| 29207 | chmod +x conf$$.sh |
| 29208 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 29209 | PATH_SEPARATOR=';' |
| 29210 | else |
| 29211 | PATH_SEPARATOR=: |
| 29212 | fi |
| 29213 | rm -f conf$$.sh |
| 29214 | fi |
| 29215 | |
| 29216 | |
| 29217 | as_lineno_1=$LINENO |
| 29218 | as_lineno_2=$LINENO |
| 29219 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 29220 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 29221 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 29222 | # Find who we are. Look in the path if we contain no path at all |
| 29223 | # relative or not. |
| 29224 | case $0 in |
| 29225 | *[\\/]* ) as_myself=$0 ;; |
| 29226 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29227 | for as_dir in $PATH |
| 29228 | do |
| 29229 | IFS=$as_save_IFS |
| 29230 | test -z "$as_dir" && as_dir=. |
| 29231 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 29232 | done |
| 29233 | |
| 29234 | ;; |
| 29235 | esac |
| 29236 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 29237 | # in which case we are not to be found in the path. |
| 29238 | if test "x$as_myself" = x; then |
| 29239 | as_myself=$0 |
| 29240 | fi |
| 29241 | if test ! -f "$as_myself"; then |
| 29242 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 29243 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 29244 | { (exit 1); exit 1; }; } |
| 29245 | fi |
| 29246 | case $CONFIG_SHELL in |
| 29247 | '') |
| 29248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29249 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 29250 | do |
| 29251 | IFS=$as_save_IFS |
| 29252 | test -z "$as_dir" && as_dir=. |
| 29253 | for as_base in sh bash ksh sh5; do |
| 29254 | case $as_dir in |
| 29255 | /*) |
| 29256 | if ("$as_dir/$as_base" -c ' |
| 29257 | as_lineno_1=$LINENO |
| 29258 | as_lineno_2=$LINENO |
| 29259 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 29260 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 29261 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 29262 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 29263 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 29264 | CONFIG_SHELL=$as_dir/$as_base |
| 29265 | export CONFIG_SHELL |
| 29266 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 29267 | fi;; |
| 29268 | esac |
| 29269 | done |
| 29270 | done |
| 29271 | ;; |
| 29272 | esac |
| 29273 | |
| 29274 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 29275 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 29276 | # line-number line before each line; the second 'sed' does the real |
| 29277 | # work. The second script uses 'N' to pair each line-number line |
| 29278 | # with the numbered line, and appends trailing '-' during |
| 29279 | # substitution so that $LINENO is not a special case at line end. |
| 29280 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 29281 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 29282 | sed '=' <$as_myself | |
| 29283 | sed ' |
| 29284 | N |
| 29285 | s,$,-, |
| 29286 | : loop |
| 29287 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 29288 | t loop |
| 29289 | s,-$,, |
| 29290 | s,^['$as_cr_digits']*\n,, |
| 29291 | ' >$as_me.lineno && |
| 29292 | chmod +x $as_me.lineno || |
| 29293 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 29294 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 29295 | { (exit 1); exit 1; }; } |
| 29296 | |
| 29297 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 29298 | # (the dirname of $[0] is not the place where we might find the |
| 29299 | # original and so on. Autoconf is especially sensible to this). |
| 29300 | . ./$as_me.lineno |
| 29301 | # Exit status is that of the last command. |
| 29302 | exit |
| 29303 | } |
| 29304 | |
| 29305 | |
| 29306 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 29307 | *c*,-n*) ECHO_N= ECHO_C=' |
| 29308 | ' ECHO_T=' ' ;; |
| 29309 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 29310 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 29311 | esac |
| 29312 | |
| 29313 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 29314 | as_expr=expr |
| 29315 | else |
| 29316 | as_expr=false |
| 29317 | fi |
| 29318 | |
| 29319 | rm -f conf$$ conf$$.exe conf$$.file |
| 29320 | echo >conf$$.file |
| 29321 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 29322 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 29323 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 29324 | if test -f conf$$.exe; then |
| 29325 | # Don't use ln at all; we don't have any links |
| 29326 | as_ln_s='cp -p' |
| 29327 | else |
| 29328 | as_ln_s='ln -s' |
| 29329 | fi |
| 29330 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 29331 | as_ln_s=ln |
| 29332 | else |
| 29333 | as_ln_s='cp -p' |
| 29334 | fi |
| 29335 | rm -f conf$$ conf$$.exe conf$$.file |
| 29336 | |
| 29337 | if mkdir -p . 2>/dev/null; then |
| 29338 | as_mkdir_p=: |
| 29339 | else |
| 29340 | test -d ./-p && rmdir ./-p |
| 29341 | as_mkdir_p=false |
| 29342 | fi |
| 29343 | |
| 29344 | as_executable_p="test -f" |
| 29345 | |
| 29346 | # Sed expression to map a string onto a valid CPP name. |
| 29347 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 29348 | |
| 29349 | # Sed expression to map a string onto a valid variable name. |
| 29350 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 29351 | |
| 29352 | |
| 29353 | # IFS |
| 29354 | # We need space, tab and new line, in precisely that order. |
| 29355 | as_nl=' |
| 29356 | ' |
| 29357 | IFS=" $as_nl" |
| 29358 | |
| 29359 | # CDPATH. |
| 29360 | $as_unset CDPATH |
| 29361 | |
| 29362 | exec 6>&1 |
| 29363 | |
| 29364 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 29365 | # report actual input values of CONFIG_FILES etc. instead of their |
| 29366 | # values after options handling. Logging --version etc. is OK. |
| 29367 | exec 5>>config.log |
| 29368 | { |
| 29369 | echo |
| 29370 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 29371 | ## Running $as_me. ## |
| 29372 | _ASBOX |
| 29373 | } >&5 |
| 29374 | cat >&5 <<_CSEOF |
| 29375 | |
| 29376 | This file was extended by $as_me, which was |
| 29377 | generated by GNU Autoconf 2.59. Invocation command line was |
| 29378 | |
| 29379 | CONFIG_FILES = $CONFIG_FILES |
| 29380 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 29381 | CONFIG_LINKS = $CONFIG_LINKS |
| 29382 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 29383 | $ $0 $@ |
| 29384 | |
| 29385 | _CSEOF |
| 29386 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 29387 | echo >&5 |
| 29388 | _ACEOF |
| 29389 | |
| 29390 | # Files that config.status was made for. |
| 29391 | if test -n "$ac_config_files"; then |
| 29392 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 29393 | fi |
| 29394 | |
| 29395 | if test -n "$ac_config_headers"; then |
| 29396 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 29397 | fi |
| 29398 | |
| 29399 | if test -n "$ac_config_links"; then |
| 29400 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 29401 | fi |
| 29402 | |
| 29403 | if test -n "$ac_config_commands"; then |
| 29404 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 29405 | fi |
| 29406 | |
| 29407 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 29408 | |
| 29409 | ac_cs_usage="\ |
| 29410 | \`$as_me' instantiates files from templates according to the |
| 29411 | current configuration. |
| 29412 | |
| 29413 | Usage: $0 [OPTIONS] [FILE]... |
| 29414 | |
| 29415 | -h, --help print this help, then exit |
| 29416 | -V, --version print version number, then exit |
| 29417 | -q, --quiet do not print progress messages |
| 29418 | -d, --debug don't remove temporary files |
| 29419 | --recheck update $as_me by reconfiguring in the same conditions |
| 29420 | --file=FILE[:TEMPLATE] |
| 29421 | instantiate the configuration file FILE |
| 29422 | --header=FILE[:TEMPLATE] |
| 29423 | instantiate the configuration header FILE |
| 29424 | |
| 29425 | Configuration files: |
| 29426 | $config_files |
| 29427 | |
| 29428 | Configuration headers: |
| 29429 | $config_headers |
| 29430 | |
| 29431 | Configuration links: |
| 29432 | $config_links |
| 29433 | |
| 29434 | Configuration commands: |
| 29435 | $config_commands |
| 29436 | |
| 29437 | Report bugs to <bug-autoconf@gnu.org>." |
| 29438 | _ACEOF |
| 29439 | |
| 29440 | cat >>$CONFIG_STATUS <<_ACEOF |
| 29441 | ac_cs_version="\\ |
| 29442 | config.status |
| 29443 | configured by $0, generated by GNU Autoconf 2.59, |
| 29444 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 29445 | |
| 29446 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 29447 | This config.status script is free software; the Free Software Foundation |
| 29448 | gives unlimited permission to copy, distribute and modify it." |
| 29449 | srcdir=$srcdir |
| 29450 | INSTALL="$INSTALL" |
| 29451 | _ACEOF |
| 29452 | |
| 29453 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 29454 | # If no file are specified by the user, then we need to provide default |
| 29455 | # value. By we need to know if files were specified by the user. |
| 29456 | ac_need_defaults=: |
| 29457 | while test $# != 0 |
| 29458 | do |
| 29459 | case $1 in |
| 29460 | --*=*) |
| 29461 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 29462 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 29463 | ac_shift=: |
| 29464 | ;; |
| 29465 | -*) |
| 29466 | ac_option=$1 |
| 29467 | ac_optarg=$2 |
| 29468 | ac_shift=shift |
| 29469 | ;; |
| 29470 | *) # This is not an option, so the user has probably given explicit |
| 29471 | # arguments. |
| 29472 | ac_option=$1 |
| 29473 | ac_need_defaults=false;; |
| 29474 | esac |
| 29475 | |
| 29476 | case $ac_option in |
| 29477 | # Handling of the options. |
| 29478 | _ACEOF |
| 29479 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 29480 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 29481 | ac_cs_recheck=: ;; |
| 29482 | --version | --vers* | -V ) |
| 29483 | echo "$ac_cs_version"; exit 0 ;; |
| 29484 | --he | --h) |
| 29485 | # Conflict between --help and --header |
| 29486 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 29487 | Try \`$0 --help' for more information." >&5 |
| 29488 | echo "$as_me: error: ambiguous option: $1 |
| 29489 | Try \`$0 --help' for more information." >&2;} |
| 29490 | { (exit 1); exit 1; }; };; |
| 29491 | --help | --hel | -h ) |
| 29492 | echo "$ac_cs_usage"; exit 0 ;; |
| 29493 | --debug | --d* | -d ) |
| 29494 | debug=: ;; |
| 29495 | --file | --fil | --fi | --f ) |
| 29496 | $ac_shift |
| 29497 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 29498 | ac_need_defaults=false;; |
| 29499 | --header | --heade | --head | --hea ) |
| 29500 | $ac_shift |
| 29501 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 29502 | ac_need_defaults=false;; |
| 29503 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 29504 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 29505 | ac_cs_silent=: ;; |
| 29506 | |
| 29507 | # This is an error. |
| 29508 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 29509 | Try \`$0 --help' for more information." >&5 |
| 29510 | echo "$as_me: error: unrecognized option: $1 |
| 29511 | Try \`$0 --help' for more information." >&2;} |
| 29512 | { (exit 1); exit 1; }; } ;; |
| 29513 | |
| 29514 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 29515 | |
| 29516 | esac |
| 29517 | shift |
| 29518 | done |
| 29519 | |
| 29520 | ac_configure_extra_args= |
| 29521 | |
| 29522 | if $ac_cs_silent; then |
| 29523 | exec 6>/dev/null |
| 29524 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 29525 | fi |
| 29526 | |
| 29527 | _ACEOF |
| 29528 | cat >>$CONFIG_STATUS <<_ACEOF |
| 29529 | if \$ac_cs_recheck; then |
| 29530 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 29531 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 29532 | fi |
| 29533 | |
| 29534 | _ACEOF |
| 29535 | |
| 29536 | cat >>$CONFIG_STATUS <<_ACEOF |
| 29537 | # |
| 29538 | # INIT-COMMANDS section. |
| 29539 | # |
| 29540 | |
| 29541 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 29542 | |
| 29543 | GCC="$GCC" |
| 29544 | CC="$CC" |
| 29545 | acx_cv_header_stdint="$acx_cv_header_stdint" |
| 29546 | acx_cv_type_int8_t="$acx_cv_type_int8_t" |
| 29547 | acx_cv_type_int16_t="$acx_cv_type_int16_t" |
| 29548 | acx_cv_type_int32_t="$acx_cv_type_int32_t" |
| 29549 | acx_cv_type_int64_t="$acx_cv_type_int64_t" |
| 29550 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" |
| 29551 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" |
| 29552 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" |
| 29553 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" |
| 29554 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" |
| 29555 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" |
| 29556 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" |
| 29557 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" |
| 29558 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" |
| 29559 | |
| 29560 | |
| 29561 | gdb_host_cpu=$gdb_host_cpu |
| 29562 | nativefile=$nativefile |
| 29563 | |
| 29564 | |
| 29565 | _ACEOF |
| 29566 | |
| 29567 | |
| 29568 | |
| 29569 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 29570 | for ac_config_target in $ac_config_targets |
| 29571 | do |
| 29572 | case "$ac_config_target" in |
| 29573 | # Handling of arguments. |
| 29574 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 29575 | ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;; |
| 29576 | "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;; |
| 29577 | "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;; |
| 29578 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 29579 | "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;; |
| 29580 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
| 29581 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; |
| 29582 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 29583 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 29584 | { (exit 1); exit 1; }; };; |
| 29585 | esac |
| 29586 | done |
| 29587 | |
| 29588 | # If the user did not use the arguments to specify the items to instantiate, |
| 29589 | # then the envvar interface is used. Set only those that are not. |
| 29590 | # We use the long form for the default assignment because of an extremely |
| 29591 | # bizarre bug on SunOS 4.1.3. |
| 29592 | if $ac_need_defaults; then |
| 29593 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 29594 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 29595 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links |
| 29596 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 29597 | fi |
| 29598 | |
| 29599 | # Have a temporary directory for convenience. Make it in the build tree |
| 29600 | # simply because there is no reason to put it here, and in addition, |
| 29601 | # creating and moving files from /tmp can sometimes cause problems. |
| 29602 | # Create a temporary directory, and hook for its removal unless debugging. |
| 29603 | $debug || |
| 29604 | { |
| 29605 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 29606 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 29607 | } |
| 29608 | |
| 29609 | # Create a (secure) tmp directory for tmp files. |
| 29610 | |
| 29611 | { |
| 29612 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| 29613 | test -n "$tmp" && test -d "$tmp" |
| 29614 | } || |
| 29615 | { |
| 29616 | tmp=./confstat$$-$RANDOM |
| 29617 | (umask 077 && mkdir $tmp) |
| 29618 | } || |
| 29619 | { |
| 29620 | echo "$me: cannot create a temporary directory in ." >&2 |
| 29621 | { (exit 1); exit 1; } |
| 29622 | } |
| 29623 | |
| 29624 | _ACEOF |
| 29625 | |
| 29626 | cat >>$CONFIG_STATUS <<_ACEOF |
| 29627 | |
| 29628 | # |
| 29629 | # CONFIG_FILES section. |
| 29630 | # |
| 29631 | |
| 29632 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 29633 | # This happens for instance when ./config.status config.h |
| 29634 | if test -n "\$CONFIG_FILES"; then |
| 29635 | # Protect against being on the right side of a sed subst in config.status. |
| 29636 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 29637 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 29638 | s,@SHELL@,$SHELL,;t t |
| 29639 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 29640 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 29641 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 29642 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 29643 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 29644 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 29645 | s,@exec_prefix@,$exec_prefix,;t t |
| 29646 | s,@prefix@,$prefix,;t t |
| 29647 | s,@program_transform_name@,$program_transform_name,;t t |
| 29648 | s,@bindir@,$bindir,;t t |
| 29649 | s,@sbindir@,$sbindir,;t t |
| 29650 | s,@libexecdir@,$libexecdir,;t t |
| 29651 | s,@datadir@,$datadir,;t t |
| 29652 | s,@sysconfdir@,$sysconfdir,;t t |
| 29653 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 29654 | s,@localstatedir@,$localstatedir,;t t |
| 29655 | s,@libdir@,$libdir,;t t |
| 29656 | s,@includedir@,$includedir,;t t |
| 29657 | s,@oldincludedir@,$oldincludedir,;t t |
| 29658 | s,@infodir@,$infodir,;t t |
| 29659 | s,@mandir@,$mandir,;t t |
| 29660 | s,@build_alias@,$build_alias,;t t |
| 29661 | s,@host_alias@,$host_alias,;t t |
| 29662 | s,@target_alias@,$target_alias,;t t |
| 29663 | s,@DEFS@,$DEFS,;t t |
| 29664 | s,@ECHO_C@,$ECHO_C,;t t |
| 29665 | s,@ECHO_N@,$ECHO_N,;t t |
| 29666 | s,@ECHO_T@,$ECHO_T,;t t |
| 29667 | s,@LIBS@,$LIBS,;t t |
| 29668 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
| 29669 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t |
| 29670 | s,@MAINT@,$MAINT,;t t |
| 29671 | s,@CC@,$CC,;t t |
| 29672 | s,@CFLAGS@,$CFLAGS,;t t |
| 29673 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 29674 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 29675 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 29676 | s,@EXEEXT@,$EXEEXT,;t t |
| 29677 | s,@OBJEXT@,$OBJEXT,;t t |
| 29678 | s,@CPP@,$CPP,;t t |
| 29679 | s,@EGREP@,$EGREP,;t t |
| 29680 | s,@RANLIB@,$RANLIB,;t t |
| 29681 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 29682 | s,@build@,$build,;t t |
| 29683 | s,@build_cpu@,$build_cpu,;t t |
| 29684 | s,@build_vendor@,$build_vendor,;t t |
| 29685 | s,@build_os@,$build_os,;t t |
| 29686 | s,@host@,$host,;t t |
| 29687 | s,@host_cpu@,$host_cpu,;t t |
| 29688 | s,@host_vendor@,$host_vendor,;t t |
| 29689 | s,@host_os@,$host_os,;t t |
| 29690 | s,@target@,$target,;t t |
| 29691 | s,@target_cpu@,$target_cpu,;t t |
| 29692 | s,@target_vendor@,$target_vendor,;t t |
| 29693 | s,@target_os@,$target_os,;t t |
| 29694 | s,@USE_NLS@,$USE_NLS,;t t |
| 29695 | s,@LIBINTL@,$LIBINTL,;t t |
| 29696 | s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t |
| 29697 | s,@INCINTL@,$INCINTL,;t t |
| 29698 | s,@XGETTEXT@,$XGETTEXT,;t t |
| 29699 | s,@GMSGFMT@,$GMSGFMT,;t t |
| 29700 | s,@POSUB@,$POSUB,;t t |
| 29701 | s,@CATALOGS@,$CATALOGS,;t t |
| 29702 | s,@DATADIRNAME@,$DATADIRNAME,;t t |
| 29703 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t |
| 29704 | s,@GENCAT@,$GENCAT,;t t |
| 29705 | s,@CATOBJEXT@,$CATOBJEXT,;t t |
| 29706 | s,@localedir@,$localedir,;t t |
| 29707 | s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t |
| 29708 | s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t |
| 29709 | s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t |
| 29710 | s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t |
| 29711 | s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t |
| 29712 | s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t |
| 29713 | s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t |
| 29714 | s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t |
| 29715 | s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t |
| 29716 | s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t |
| 29717 | s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t |
| 29718 | s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t |
| 29719 | s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t |
| 29720 | s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t |
| 29721 | s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t |
| 29722 | s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t |
| 29723 | s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t |
| 29724 | s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t |
| 29725 | s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t |
| 29726 | s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t |
| 29727 | s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t |
| 29728 | s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t |
| 29729 | s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t |
| 29730 | s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t |
| 29731 | s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t |
| 29732 | s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t |
| 29733 | s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t |
| 29734 | s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t |
| 29735 | s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t |
| 29736 | s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t |
| 29737 | s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t |
| 29738 | s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t |
| 29739 | s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t |
| 29740 | s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t |
| 29741 | s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t |
| 29742 | s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t |
| 29743 | s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t |
| 29744 | s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t |
| 29745 | s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t |
| 29746 | s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t |
| 29747 | s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t |
| 29748 | s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t |
| 29749 | s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t |
| 29750 | s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t |
| 29751 | s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t |
| 29752 | s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t |
| 29753 | s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t |
| 29754 | s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t |
| 29755 | s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t |
| 29756 | s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t |
| 29757 | s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t |
| 29758 | s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t |
| 29759 | s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t |
| 29760 | s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t |
| 29761 | s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t |
| 29762 | s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t |
| 29763 | s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t |
| 29764 | s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t |
| 29765 | s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t |
| 29766 | s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t |
| 29767 | s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t |
| 29768 | s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t |
| 29769 | s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t |
| 29770 | s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t |
| 29771 | s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t |
| 29772 | s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t |
| 29773 | s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t |
| 29774 | s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t |
| 29775 | s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t |
| 29776 | s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t |
| 29777 | s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t |
| 29778 | s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t |
| 29779 | s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t |
| 29780 | s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t |
| 29781 | s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t |
| 29782 | s,@STDINT_H@,$STDINT_H,;t t |
| 29783 | s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t |
| 29784 | s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t |
| 29785 | s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t |
| 29786 | s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t |
| 29787 | s,@WCHAR_H@,$WCHAR_H,;t t |
| 29788 | s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t |
| 29789 | s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t |
| 29790 | s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t |
| 29791 | s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t |
| 29792 | s,@PACKAGE@,$PACKAGE,;t t |
| 29793 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 29794 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 29795 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 29796 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
| 29797 | s,@VERSION@,$VERSION,;t t |
| 29798 | s,@ACLOCAL@,$ACLOCAL,;t t |
| 29799 | s,@AUTOCONF@,$AUTOCONF,;t t |
| 29800 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
| 29801 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
| 29802 | s,@MAKEINFO@,$MAKEINFO,;t t |
| 29803 | s,@install_sh@,$install_sh,;t t |
| 29804 | s,@STRIP@,$STRIP,;t t |
| 29805 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 29806 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
| 29807 | s,@mkdir_p@,$mkdir_p,;t t |
| 29808 | s,@AWK@,$AWK,;t t |
| 29809 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 29810 | s,@am__leading_dot@,$am__leading_dot,;t t |
| 29811 | s,@AMTAR@,$AMTAR,;t t |
| 29812 | s,@am__tar@,$am__tar,;t t |
| 29813 | s,@am__untar@,$am__untar,;t t |
| 29814 | s,@DEPDIR@,$DEPDIR,;t t |
| 29815 | s,@am__include@,$am__include,;t t |
| 29816 | s,@am__quote@,$am__quote,;t t |
| 29817 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
| 29818 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
| 29819 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
| 29820 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
| 29821 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
| 29822 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
| 29823 | s,@subdirs@,$subdirs,;t t |
| 29824 | s,@TARGET_OBS@,$TARGET_OBS,;t t |
| 29825 | s,@LN_S@,$LN_S,;t t |
| 29826 | s,@YACC@,$YACC,;t t |
| 29827 | s,@AR@,$AR,;t t |
| 29828 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
| 29829 | s,@DLLTOOL@,$DLLTOOL,;t t |
| 29830 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t |
| 29831 | s,@WINDRES@,$WINDRES,;t t |
| 29832 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t |
| 29833 | s,@MIG@,$MIG,;t t |
| 29834 | s,@ac_ct_MIG@,$ac_ct_MIG,;t t |
| 29835 | s,@READLINE@,$READLINE,;t t |
| 29836 | s,@READLINE_DEPS@,$READLINE_DEPS,;t t |
| 29837 | s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t |
| 29838 | s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t |
| 29839 | s,@LIBEXPAT@,$LIBEXPAT,;t t |
| 29840 | s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t |
| 29841 | s,@ALLOCA@,$ALLOCA,;t t |
| 29842 | s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t |
| 29843 | s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t |
| 29844 | s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t |
| 29845 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t |
| 29846 | s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t |
| 29847 | s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t |
| 29848 | s,@WIN32LIBS@,$WIN32LIBS,;t t |
| 29849 | s,@LIBGUI@,$LIBGUI,;t t |
| 29850 | s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t |
| 29851 | s,@WIN32LDAPP@,$WIN32LDAPP,;t t |
| 29852 | s,@TCL_VERSION@,$TCL_VERSION,;t t |
| 29853 | s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t |
| 29854 | s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t |
| 29855 | s,@TCL_CC@,$TCL_CC,;t t |
| 29856 | s,@TCL_DEFS@,$TCL_DEFS,;t t |
| 29857 | s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t |
| 29858 | s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t |
| 29859 | s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t |
| 29860 | s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t |
| 29861 | s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t |
| 29862 | s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t |
| 29863 | s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t |
| 29864 | s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t |
| 29865 | s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t |
| 29866 | s,@TCL_RANLIB@,$TCL_RANLIB,;t t |
| 29867 | s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t |
| 29868 | s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t |
| 29869 | s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t |
| 29870 | s,@TK_VERSION@,$TK_VERSION,;t t |
| 29871 | s,@TK_DEFS@,$TK_DEFS,;t t |
| 29872 | s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t |
| 29873 | s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t |
| 29874 | s,@TK_XLIBSW@,$TK_XLIBSW,;t t |
| 29875 | s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t |
| 29876 | s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t |
| 29877 | s,@TCLHDIR@,$TCLHDIR,;t t |
| 29878 | s,@TKHDIR@,$TKHDIR,;t t |
| 29879 | s,@ITCLHDIR@,$ITCLHDIR,;t t |
| 29880 | s,@ITKHDIR@,$ITKHDIR,;t t |
| 29881 | s,@ITCL_VERSION@,$ITCL_VERSION,;t t |
| 29882 | s,@ITCL_DEFS@,$ITCL_DEFS,;t t |
| 29883 | s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t |
| 29884 | s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t |
| 29885 | s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t |
| 29886 | s,@ITK_VERSION@,$ITK_VERSION,;t t |
| 29887 | s,@ITK_DEFS@,$ITK_DEFS,;t t |
| 29888 | s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t |
| 29889 | s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t |
| 29890 | s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t |
| 29891 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
| 29892 | s,@X_LDFLAGS@,$X_LDFLAGS,;t t |
| 29893 | s,@X_LIBS@,$X_LIBS,;t t |
| 29894 | s,@TCL_DEPS@,$TCL_DEPS,;t t |
| 29895 | s,@TK_DEPS@,$TK_DEPS,;t t |
| 29896 | s,@ITCLLIB@,$ITCLLIB,;t t |
| 29897 | s,@ITCL_DEPS@,$ITCL_DEPS,;t t |
| 29898 | s,@ITKLIB@,$ITKLIB,;t t |
| 29899 | s,@ITK_DEPS@,$ITK_DEPS,;t t |
| 29900 | s,@GDBTKLIBS@,$GDBTKLIBS,;t t |
| 29901 | s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t |
| 29902 | s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t |
| 29903 | s,@SIM@,$SIM,;t t |
| 29904 | s,@SIM_OBS@,$SIM_OBS,;t t |
| 29905 | s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t |
| 29906 | s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t |
| 29907 | s,@CONFIG_OBS@,$CONFIG_OBS,;t t |
| 29908 | s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t |
| 29909 | s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t |
| 29910 | s,@CONFIG_ALL@,$CONFIG_ALL,;t t |
| 29911 | s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t |
| 29912 | s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t |
| 29913 | s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t |
| 29914 | s,@target_subdir@,$target_subdir,;t t |
| 29915 | s,@frags@,$frags,;t t |
| 29916 | s,@nm_h@,$nm_h,;t t |
| 29917 | s,@LIBICONV@,$LIBICONV,;t t |
| 29918 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 29919 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 29920 | s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t |
| 29921 | s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t |
| 29922 | s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t |
| 29923 | s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t |
| 29924 | /@host_makefile_frag@/r $host_makefile_frag |
| 29925 | s,@host_makefile_frag@,,;t t |
| 29926 | CEOF |
| 29927 | |
| 29928 | _ACEOF |
| 29929 | |
| 29930 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 29931 | # Split the substitutions into bite-sized pieces for seds with |
| 29932 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 29933 | ac_max_sed_lines=48 |
| 29934 | ac_sed_frag=1 # Number of current file. |
| 29935 | ac_beg=1 # First line for current file. |
| 29936 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 29937 | ac_more_lines=: |
| 29938 | ac_sed_cmds= |
| 29939 | while $ac_more_lines; do |
| 29940 | if test $ac_beg -gt 1; then |
| 29941 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 29942 | else |
| 29943 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 29944 | fi |
| 29945 | if test ! -s $tmp/subs.frag; then |
| 29946 | ac_more_lines=false |
| 29947 | else |
| 29948 | # The purpose of the label and of the branching condition is to |
| 29949 | # speed up the sed processing (if there are no `@' at all, there |
| 29950 | # is no need to browse any of the substitutions). |
| 29951 | # These are the two extra sed commands mentioned above. |
| 29952 | (echo ':t |
| 29953 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 29954 | if test -z "$ac_sed_cmds"; then |
| 29955 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 29956 | else |
| 29957 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 29958 | fi |
| 29959 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 29960 | ac_beg=$ac_end |
| 29961 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 29962 | fi |
| 29963 | done |
| 29964 | if test -z "$ac_sed_cmds"; then |
| 29965 | ac_sed_cmds=cat |
| 29966 | fi |
| 29967 | fi # test -n "$CONFIG_FILES" |
| 29968 | |
| 29969 | _ACEOF |
| 29970 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 29971 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 29972 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 29973 | case $ac_file in |
| 29974 | - | *:- | *:-:* ) # input from stdin |
| 29975 | cat >$tmp/stdin |
| 29976 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 29977 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 29978 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 29979 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 29980 | * ) ac_file_in=$ac_file.in ;; |
| 29981 | esac |
| 29982 | |
| 29983 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 29984 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 29985 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 29986 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 29987 | X"$ac_file" : 'X\(//\)$' \| \ |
| 29988 | X"$ac_file" : 'X\(/\)' \| \ |
| 29989 | . : '\(.\)' 2>/dev/null || |
| 29990 | echo X"$ac_file" | |
| 29991 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 29992 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 29993 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 29994 | /^X\(\/\).*/{ s//\1/; q; } |
| 29995 | s/.*/./; q'` |
| 29996 | { if $as_mkdir_p; then |
| 29997 | mkdir -p "$ac_dir" |
| 29998 | else |
| 29999 | as_dir="$ac_dir" |
| 30000 | as_dirs= |
| 30001 | while test ! -d "$as_dir"; do |
| 30002 | as_dirs="$as_dir $as_dirs" |
| 30003 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 30004 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 30005 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 30006 | X"$as_dir" : 'X\(//\)$' \| \ |
| 30007 | X"$as_dir" : 'X\(/\)' \| \ |
| 30008 | . : '\(.\)' 2>/dev/null || |
| 30009 | echo X"$as_dir" | |
| 30010 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 30011 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 30012 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 30013 | /^X\(\/\).*/{ s//\1/; q; } |
| 30014 | s/.*/./; q'` |
| 30015 | done |
| 30016 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 30017 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 30018 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 30019 | { (exit 1); exit 1; }; }; } |
| 30020 | |
| 30021 | ac_builddir=. |
| 30022 | |
| 30023 | if test "$ac_dir" != .; then |
| 30024 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 30025 | # A "../" for each directory in $ac_dir_suffix. |
| 30026 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 30027 | else |
| 30028 | ac_dir_suffix= ac_top_builddir= |
| 30029 | fi |
| 30030 | |
| 30031 | case $srcdir in |
| 30032 | .) # No --srcdir option. We are building in place. |
| 30033 | ac_srcdir=. |
| 30034 | if test -z "$ac_top_builddir"; then |
| 30035 | ac_top_srcdir=. |
| 30036 | else |
| 30037 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 30038 | fi ;; |
| 30039 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 30040 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 30041 | ac_top_srcdir=$srcdir ;; |
| 30042 | *) # Relative path. |
| 30043 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 30044 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 30045 | esac |
| 30046 | |
| 30047 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 30048 | # the directories may not exist. |
| 30049 | case `pwd` in |
| 30050 | .) ac_abs_builddir="$ac_dir";; |
| 30051 | *) |
| 30052 | case "$ac_dir" in |
| 30053 | .) ac_abs_builddir=`pwd`;; |
| 30054 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 30055 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 30056 | esac;; |
| 30057 | esac |
| 30058 | case $ac_abs_builddir in |
| 30059 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 30060 | *) |
| 30061 | case ${ac_top_builddir}. in |
| 30062 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 30063 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 30064 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 30065 | esac;; |
| 30066 | esac |
| 30067 | case $ac_abs_builddir in |
| 30068 | .) ac_abs_srcdir=$ac_srcdir;; |
| 30069 | *) |
| 30070 | case $ac_srcdir in |
| 30071 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 30072 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 30073 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 30074 | esac;; |
| 30075 | esac |
| 30076 | case $ac_abs_builddir in |
| 30077 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 30078 | *) |
| 30079 | case $ac_top_srcdir in |
| 30080 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 30081 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 30082 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 30083 | esac;; |
| 30084 | esac |
| 30085 | |
| 30086 | |
| 30087 | case $INSTALL in |
| 30088 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 30089 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 30090 | esac |
| 30091 | |
| 30092 | if test x"$ac_file" != x-; then |
| 30093 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 30094 | echo "$as_me: creating $ac_file" >&6;} |
| 30095 | rm -f "$ac_file" |
| 30096 | fi |
| 30097 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 30098 | # use $as_me), people would be surprised to read: |
| 30099 | # /* config.h. Generated by config.status. */ |
| 30100 | if test x"$ac_file" = x-; then |
| 30101 | configure_input= |
| 30102 | else |
| 30103 | configure_input="$ac_file. " |
| 30104 | fi |
| 30105 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 30106 | sed 's,.*/,,'` by configure." |
| 30107 | |
| 30108 | # First look for the input files in the build tree, otherwise in the |
| 30109 | # src tree. |
| 30110 | ac_file_inputs=`IFS=: |
| 30111 | for f in $ac_file_in; do |
| 30112 | case $f in |
| 30113 | -) echo $tmp/stdin ;; |
| 30114 | [\\/$]*) |
| 30115 | # Absolute (can't be DOS-style, as IFS=:) |
| 30116 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 30117 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 30118 | { (exit 1); exit 1; }; } |
| 30119 | echo "$f";; |
| 30120 | *) # Relative |
| 30121 | if test -f "$f"; then |
| 30122 | # Build tree |
| 30123 | echo "$f" |
| 30124 | elif test -f "$srcdir/$f"; then |
| 30125 | # Source tree |
| 30126 | echo "$srcdir/$f" |
| 30127 | else |
| 30128 | # /dev/null tree |
| 30129 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 30130 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 30131 | { (exit 1); exit 1; }; } |
| 30132 | fi;; |
| 30133 | esac |
| 30134 | done` || { (exit 1); exit 1; } |
| 30135 | _ACEOF |
| 30136 | cat >>$CONFIG_STATUS <<_ACEOF |
| 30137 | sed "$ac_vpsub |
| 30138 | $extrasub |
| 30139 | _ACEOF |
| 30140 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 30141 | :t |
| 30142 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 30143 | s,@configure_input@,$configure_input,;t t |
| 30144 | s,@srcdir@,$ac_srcdir,;t t |
| 30145 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 30146 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 30147 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 30148 | s,@builddir@,$ac_builddir,;t t |
| 30149 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 30150 | s,@top_builddir@,$ac_top_builddir,;t t |
| 30151 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 30152 | s,@INSTALL@,$ac_INSTALL,;t t |
| 30153 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 30154 | rm -f $tmp/stdin |
| 30155 | if test x"$ac_file" != x-; then |
| 30156 | mv $tmp/out $ac_file |
| 30157 | else |
| 30158 | cat $tmp/out |
| 30159 | rm -f $tmp/out |
| 30160 | fi |
| 30161 | |
| 30162 | done |
| 30163 | _ACEOF |
| 30164 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 30165 | |
| 30166 | # |
| 30167 | # CONFIG_HEADER section. |
| 30168 | # |
| 30169 | |
| 30170 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 30171 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 30172 | # |
| 30173 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 30174 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 30175 | ac_dB='[ ].*$,\1#\2' |
| 30176 | ac_dC=' ' |
| 30177 | ac_dD=',;t' |
| 30178 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 30179 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 30180 | ac_uB='$,\1#\2define\3' |
| 30181 | ac_uC=' ' |
| 30182 | ac_uD=',;t' |
| 30183 | |
| 30184 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 30185 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 30186 | case $ac_file in |
| 30187 | - | *:- | *:-:* ) # input from stdin |
| 30188 | cat >$tmp/stdin |
| 30189 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 30190 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 30191 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 30192 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 30193 | * ) ac_file_in=$ac_file.in ;; |
| 30194 | esac |
| 30195 | |
| 30196 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 30197 | echo "$as_me: creating $ac_file" >&6;} |
| 30198 | |
| 30199 | # First look for the input files in the build tree, otherwise in the |
| 30200 | # src tree. |
| 30201 | ac_file_inputs=`IFS=: |
| 30202 | for f in $ac_file_in; do |
| 30203 | case $f in |
| 30204 | -) echo $tmp/stdin ;; |
| 30205 | [\\/$]*) |
| 30206 | # Absolute (can't be DOS-style, as IFS=:) |
| 30207 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 30208 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 30209 | { (exit 1); exit 1; }; } |
| 30210 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 30211 | echo "$f";; |
| 30212 | *) # Relative |
| 30213 | if test -f "$f"; then |
| 30214 | # Build tree |
| 30215 | echo "$f" |
| 30216 | elif test -f "$srcdir/$f"; then |
| 30217 | # Source tree |
| 30218 | echo "$srcdir/$f" |
| 30219 | else |
| 30220 | # /dev/null tree |
| 30221 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 30222 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 30223 | { (exit 1); exit 1; }; } |
| 30224 | fi;; |
| 30225 | esac |
| 30226 | done` || { (exit 1); exit 1; } |
| 30227 | # Remove the trailing spaces. |
| 30228 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| 30229 | |
| 30230 | _ACEOF |
| 30231 | |
| 30232 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 30233 | # `conftest.undefs', that substitutes the proper values into |
| 30234 | # config.h.in to produce config.h. The first handles `#define' |
| 30235 | # templates, and the second `#undef' templates. |
| 30236 | # And first: Protect against being on the right side of a sed subst in |
| 30237 | # config.status. Protect against being in an unquoted here document |
| 30238 | # in config.status. |
| 30239 | rm -f conftest.defines conftest.undefs |
| 30240 | # Using a here document instead of a string reduces the quoting nightmare. |
| 30241 | # Putting comments in sed scripts is not portable. |
| 30242 | # |
| 30243 | # `end' is used to avoid that the second main sed command (meant for |
| 30244 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 30245 | # See the Autoconf documentation for `clear'. |
| 30246 | cat >confdef2sed.sed <<\_ACEOF |
| 30247 | s/[\\&,]/\\&/g |
| 30248 | s,[\\$`],\\&,g |
| 30249 | t clear |
| 30250 | : clear |
| 30251 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 30252 | t end |
| 30253 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 30254 | : end |
| 30255 | _ACEOF |
| 30256 | # If some macros were called several times there might be several times |
| 30257 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 30258 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 30259 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 30260 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 30261 | rm -f confdef2sed.sed |
| 30262 | |
| 30263 | # This sed command replaces #undef with comments. This is necessary, for |
| 30264 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 30265 | # on some systems where configure will not decide to define it. |
| 30266 | cat >>conftest.undefs <<\_ACEOF |
| 30267 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 30268 | _ACEOF |
| 30269 | |
| 30270 | # Break up conftest.defines because some shells have a limit on the size |
| 30271 | # of here documents, and old seds have small limits too (100 cmds). |
| 30272 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 30273 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 30274 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 30275 | echo ' :' >>$CONFIG_STATUS |
| 30276 | rm -f conftest.tail |
| 30277 | while grep . conftest.defines >/dev/null |
| 30278 | do |
| 30279 | # Write a limited-size here document to $tmp/defines.sed. |
| 30280 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 30281 | # Speed up: don't consider the non `#define' lines. |
| 30282 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 30283 | # Work around the forget-to-reset-the-flag bug. |
| 30284 | echo 't clr' >>$CONFIG_STATUS |
| 30285 | echo ': clr' >>$CONFIG_STATUS |
| 30286 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 30287 | echo 'CEOF |
| 30288 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 30289 | rm -f $tmp/in |
| 30290 | mv $tmp/out $tmp/in |
| 30291 | ' >>$CONFIG_STATUS |
| 30292 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 30293 | rm -f conftest.defines |
| 30294 | mv conftest.tail conftest.defines |
| 30295 | done |
| 30296 | rm -f conftest.defines |
| 30297 | echo ' fi # grep' >>$CONFIG_STATUS |
| 30298 | echo >>$CONFIG_STATUS |
| 30299 | |
| 30300 | # Break up conftest.undefs because some shells have a limit on the size |
| 30301 | # of here documents, and old seds have small limits too (100 cmds). |
| 30302 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 30303 | rm -f conftest.tail |
| 30304 | while grep . conftest.undefs >/dev/null |
| 30305 | do |
| 30306 | # Write a limited-size here document to $tmp/undefs.sed. |
| 30307 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 30308 | # Speed up: don't consider the non `#undef' |
| 30309 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 30310 | # Work around the forget-to-reset-the-flag bug. |
| 30311 | echo 't clr' >>$CONFIG_STATUS |
| 30312 | echo ': clr' >>$CONFIG_STATUS |
| 30313 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 30314 | echo 'CEOF |
| 30315 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 30316 | rm -f $tmp/in |
| 30317 | mv $tmp/out $tmp/in |
| 30318 | ' >>$CONFIG_STATUS |
| 30319 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 30320 | rm -f conftest.undefs |
| 30321 | mv conftest.tail conftest.undefs |
| 30322 | done |
| 30323 | rm -f conftest.undefs |
| 30324 | |
| 30325 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 30326 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 30327 | # use $as_me), people would be surprised to read: |
| 30328 | # /* config.h. Generated by config.status. */ |
| 30329 | if test x"$ac_file" = x-; then |
| 30330 | echo "/* Generated by configure. */" >$tmp/config.h |
| 30331 | else |
| 30332 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 30333 | fi |
| 30334 | cat $tmp/in >>$tmp/config.h |
| 30335 | rm -f $tmp/in |
| 30336 | if test x"$ac_file" != x-; then |
| 30337 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
| 30338 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 30339 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 30340 | else |
| 30341 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 30342 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 30343 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 30344 | X"$ac_file" : 'X\(//\)$' \| \ |
| 30345 | X"$ac_file" : 'X\(/\)' \| \ |
| 30346 | . : '\(.\)' 2>/dev/null || |
| 30347 | echo X"$ac_file" | |
| 30348 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 30349 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 30350 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 30351 | /^X\(\/\).*/{ s//\1/; q; } |
| 30352 | s/.*/./; q'` |
| 30353 | { if $as_mkdir_p; then |
| 30354 | mkdir -p "$ac_dir" |
| 30355 | else |
| 30356 | as_dir="$ac_dir" |
| 30357 | as_dirs= |
| 30358 | while test ! -d "$as_dir"; do |
| 30359 | as_dirs="$as_dir $as_dirs" |
| 30360 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 30361 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 30362 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 30363 | X"$as_dir" : 'X\(//\)$' \| \ |
| 30364 | X"$as_dir" : 'X\(/\)' \| \ |
| 30365 | . : '\(.\)' 2>/dev/null || |
| 30366 | echo X"$as_dir" | |
| 30367 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 30368 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 30369 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 30370 | /^X\(\/\).*/{ s//\1/; q; } |
| 30371 | s/.*/./; q'` |
| 30372 | done |
| 30373 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 30374 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 30375 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 30376 | { (exit 1); exit 1; }; }; } |
| 30377 | |
| 30378 | rm -f $ac_file |
| 30379 | mv $tmp/config.h $ac_file |
| 30380 | fi |
| 30381 | else |
| 30382 | cat $tmp/config.h |
| 30383 | rm -f $tmp/config.h |
| 30384 | fi |
| 30385 | # Compute $ac_file's index in $config_headers. |
| 30386 | _am_stamp_count=1 |
| 30387 | for _am_header in $config_headers :; do |
| 30388 | case $_am_header in |
| 30389 | $ac_file | $ac_file:* ) |
| 30390 | break ;; |
| 30391 | * ) |
| 30392 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 30393 | esac |
| 30394 | done |
| 30395 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
| 30396 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 30397 | X$ac_file : 'X\(//\)[^/]' \| \ |
| 30398 | X$ac_file : 'X\(//\)$' \| \ |
| 30399 | X$ac_file : 'X\(/\)' \| \ |
| 30400 | . : '\(.\)' 2>/dev/null || |
| 30401 | echo X$ac_file | |
| 30402 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 30403 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 30404 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 30405 | /^X\(\/\).*/{ s//\1/; q; } |
| 30406 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 30407 | done |
| 30408 | _ACEOF |
| 30409 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 30410 | |
| 30411 | # |
| 30412 | # CONFIG_LINKS section. |
| 30413 | # |
| 30414 | |
| 30415 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue |
| 30416 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 30417 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 30418 | |
| 30419 | { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 |
| 30420 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} |
| 30421 | |
| 30422 | if test ! -r $srcdir/$ac_source; then |
| 30423 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
| 30424 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} |
| 30425 | { (exit 1); exit 1; }; } |
| 30426 | fi |
| 30427 | rm -f $ac_dest |
| 30428 | |
| 30429 | # Make relative symlinks. |
| 30430 | ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 30431 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 30432 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 30433 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 30434 | X"$ac_dest" : 'X\(/\)' \| \ |
| 30435 | . : '\(.\)' 2>/dev/null || |
| 30436 | echo X"$ac_dest" | |
| 30437 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 30438 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 30439 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 30440 | /^X\(\/\).*/{ s//\1/; q; } |
| 30441 | s/.*/./; q'` |
| 30442 | { if $as_mkdir_p; then |
| 30443 | mkdir -p "$ac_dest_dir" |
| 30444 | else |
| 30445 | as_dir="$ac_dest_dir" |
| 30446 | as_dirs= |
| 30447 | while test ! -d "$as_dir"; do |
| 30448 | as_dirs="$as_dir $as_dirs" |
| 30449 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 30450 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 30451 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 30452 | X"$as_dir" : 'X\(//\)$' \| \ |
| 30453 | X"$as_dir" : 'X\(/\)' \| \ |
| 30454 | . : '\(.\)' 2>/dev/null || |
| 30455 | echo X"$as_dir" | |
| 30456 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 30457 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 30458 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 30459 | /^X\(\/\).*/{ s//\1/; q; } |
| 30460 | s/.*/./; q'` |
| 30461 | done |
| 30462 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 30463 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 |
| 30464 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} |
| 30465 | { (exit 1); exit 1; }; }; } |
| 30466 | |
| 30467 | ac_builddir=. |
| 30468 | |
| 30469 | if test "$ac_dest_dir" != .; then |
| 30470 | ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` |
| 30471 | # A "../" for each directory in $ac_dir_suffix. |
| 30472 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 30473 | else |
| 30474 | ac_dir_suffix= ac_top_builddir= |
| 30475 | fi |
| 30476 | |
| 30477 | case $srcdir in |
| 30478 | .) # No --srcdir option. We are building in place. |
| 30479 | ac_srcdir=. |
| 30480 | if test -z "$ac_top_builddir"; then |
| 30481 | ac_top_srcdir=. |
| 30482 | else |
| 30483 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 30484 | fi ;; |
| 30485 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 30486 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 30487 | ac_top_srcdir=$srcdir ;; |
| 30488 | *) # Relative path. |
| 30489 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 30490 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 30491 | esac |
| 30492 | |
| 30493 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 30494 | # the directories may not exist. |
| 30495 | case `pwd` in |
| 30496 | .) ac_abs_builddir="$ac_dest_dir";; |
| 30497 | *) |
| 30498 | case "$ac_dest_dir" in |
| 30499 | .) ac_abs_builddir=`pwd`;; |
| 30500 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; |
| 30501 | *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; |
| 30502 | esac;; |
| 30503 | esac |
| 30504 | case $ac_abs_builddir in |
| 30505 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 30506 | *) |
| 30507 | case ${ac_top_builddir}. in |
| 30508 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 30509 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 30510 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 30511 | esac;; |
| 30512 | esac |
| 30513 | case $ac_abs_builddir in |
| 30514 | .) ac_abs_srcdir=$ac_srcdir;; |
| 30515 | *) |
| 30516 | case $ac_srcdir in |
| 30517 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 30518 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 30519 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 30520 | esac;; |
| 30521 | esac |
| 30522 | case $ac_abs_builddir in |
| 30523 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 30524 | *) |
| 30525 | case $ac_top_srcdir in |
| 30526 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 30527 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 30528 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 30529 | esac;; |
| 30530 | esac |
| 30531 | |
| 30532 | |
| 30533 | case $srcdir in |
| 30534 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; |
| 30535 | *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; |
| 30536 | esac |
| 30537 | |
| 30538 | # Try a symlink, then a hard link, then a copy. |
| 30539 | ln -s $ac_rel_source $ac_dest 2>/dev/null || |
| 30540 | ln $srcdir/$ac_source $ac_dest 2>/dev/null || |
| 30541 | cp -p $srcdir/$ac_source $ac_dest || |
| 30542 | { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 |
| 30543 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} |
| 30544 | { (exit 1); exit 1; }; } |
| 30545 | done |
| 30546 | _ACEOF |
| 30547 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 30548 | |
| 30549 | # |
| 30550 | # CONFIG_COMMANDS section. |
| 30551 | # |
| 30552 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 30553 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 30554 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 30555 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 30556 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 30557 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 30558 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 30559 | X"$ac_dest" : 'X\(/\)' \| \ |
| 30560 | . : '\(.\)' 2>/dev/null || |
| 30561 | echo X"$ac_dest" | |
| 30562 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 30563 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 30564 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 30565 | /^X\(\/\).*/{ s//\1/; q; } |
| 30566 | s/.*/./; q'` |
| 30567 | { if $as_mkdir_p; then |
| 30568 | mkdir -p "$ac_dir" |
| 30569 | else |
| 30570 | as_dir="$ac_dir" |
| 30571 | as_dirs= |
| 30572 | while test ! -d "$as_dir"; do |
| 30573 | as_dirs="$as_dir $as_dirs" |
| 30574 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 30575 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 30576 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 30577 | X"$as_dir" : 'X\(//\)$' \| \ |
| 30578 | X"$as_dir" : 'X\(/\)' \| \ |
| 30579 | . : '\(.\)' 2>/dev/null || |
| 30580 | echo X"$as_dir" | |
| 30581 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 30582 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 30583 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 30584 | /^X\(\/\).*/{ s//\1/; q; } |
| 30585 | s/.*/./; q'` |
| 30586 | done |
| 30587 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 30588 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 30589 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 30590 | { (exit 1); exit 1; }; }; } |
| 30591 | |
| 30592 | ac_builddir=. |
| 30593 | |
| 30594 | if test "$ac_dir" != .; then |
| 30595 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 30596 | # A "../" for each directory in $ac_dir_suffix. |
| 30597 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 30598 | else |
| 30599 | ac_dir_suffix= ac_top_builddir= |
| 30600 | fi |
| 30601 | |
| 30602 | case $srcdir in |
| 30603 | .) # No --srcdir option. We are building in place. |
| 30604 | ac_srcdir=. |
| 30605 | if test -z "$ac_top_builddir"; then |
| 30606 | ac_top_srcdir=. |
| 30607 | else |
| 30608 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 30609 | fi ;; |
| 30610 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 30611 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 30612 | ac_top_srcdir=$srcdir ;; |
| 30613 | *) # Relative path. |
| 30614 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 30615 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 30616 | esac |
| 30617 | |
| 30618 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 30619 | # the directories may not exist. |
| 30620 | case `pwd` in |
| 30621 | .) ac_abs_builddir="$ac_dir";; |
| 30622 | *) |
| 30623 | case "$ac_dir" in |
| 30624 | .) ac_abs_builddir=`pwd`;; |
| 30625 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 30626 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 30627 | esac;; |
| 30628 | esac |
| 30629 | case $ac_abs_builddir in |
| 30630 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 30631 | *) |
| 30632 | case ${ac_top_builddir}. in |
| 30633 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 30634 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 30635 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 30636 | esac;; |
| 30637 | esac |
| 30638 | case $ac_abs_builddir in |
| 30639 | .) ac_abs_srcdir=$ac_srcdir;; |
| 30640 | *) |
| 30641 | case $ac_srcdir in |
| 30642 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 30643 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 30644 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 30645 | esac;; |
| 30646 | esac |
| 30647 | case $ac_abs_builddir in |
| 30648 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 30649 | *) |
| 30650 | case $ac_top_srcdir in |
| 30651 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 30652 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 30653 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 30654 | esac;; |
| 30655 | esac |
| 30656 | |
| 30657 | |
| 30658 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 30659 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 30660 | case $ac_dest in |
| 30661 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
| 30662 | # Strip MF so we end up with the name of the file. |
| 30663 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 30664 | # Check whether this is an Automake generated Makefile or not. |
| 30665 | # We used to match only the files named `Makefile.in', but |
| 30666 | # some people rename them; so instead we look at the file content. |
| 30667 | # Grep'ing the first line is not enough: some people post-process |
| 30668 | # each Makefile.in and add a new line on top of each file to say so. |
| 30669 | # So let's grep whole file. |
| 30670 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
| 30671 | dirpart=`(dirname "$mf") 2>/dev/null || |
| 30672 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 30673 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 30674 | X"$mf" : 'X\(//\)$' \| \ |
| 30675 | X"$mf" : 'X\(/\)' \| \ |
| 30676 | . : '\(.\)' 2>/dev/null || |
| 30677 | echo X"$mf" | |
| 30678 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 30679 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 30680 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 30681 | /^X\(\/\).*/{ s//\1/; q; } |
| 30682 | s/.*/./; q'` |
| 30683 | else |
| 30684 | continue |
| 30685 | fi |
| 30686 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 30687 | # from the Makefile without running `make'. |
| 30688 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 30689 | test -z "$DEPDIR" && continue |
| 30690 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 30691 | test -z "am__include" && continue |
| 30692 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 30693 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 30694 | U=`sed -n 's/^U = //p' < "$mf"` |
| 30695 | # Find all dependency output files, they are included files with |
| 30696 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 30697 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 30698 | # expansion. |
| 30699 | for file in `sed -n " |
| 30700 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 30701 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 30702 | # Make sure the directory exists. |
| 30703 | test -f "$dirpart/$file" && continue |
| 30704 | fdir=`(dirname "$file") 2>/dev/null || |
| 30705 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 30706 | X"$file" : 'X\(//\)[^/]' \| \ |
| 30707 | X"$file" : 'X\(//\)$' \| \ |
| 30708 | X"$file" : 'X\(/\)' \| \ |
| 30709 | . : '\(.\)' 2>/dev/null || |
| 30710 | echo X"$file" | |
| 30711 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 30712 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 30713 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 30714 | /^X\(\/\).*/{ s//\1/; q; } |
| 30715 | s/.*/./; q'` |
| 30716 | { if $as_mkdir_p; then |
| 30717 | mkdir -p $dirpart/$fdir |
| 30718 | else |
| 30719 | as_dir=$dirpart/$fdir |
| 30720 | as_dirs= |
| 30721 | while test ! -d "$as_dir"; do |
| 30722 | as_dirs="$as_dir $as_dirs" |
| 30723 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 30724 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 30725 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 30726 | X"$as_dir" : 'X\(//\)$' \| \ |
| 30727 | X"$as_dir" : 'X\(/\)' \| \ |
| 30728 | . : '\(.\)' 2>/dev/null || |
| 30729 | echo X"$as_dir" | |
| 30730 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 30731 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 30732 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 30733 | /^X\(\/\).*/{ s//\1/; q; } |
| 30734 | s/.*/./; q'` |
| 30735 | done |
| 30736 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 30737 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
| 30738 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
| 30739 | { (exit 1); exit 1; }; }; } |
| 30740 | |
| 30741 | # echo "creating $dirpart/$file" |
| 30742 | echo '# dummy' > "$dirpart/$file" |
| 30743 | done |
| 30744 | done |
| 30745 | ;; |
| 30746 | gdb_stdint.h ) |
| 30747 | if test "$GCC" = yes; then |
| 30748 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h |
| 30749 | else |
| 30750 | echo "/* generated for $CC */" > tmp-stdint.h |
| 30751 | fi |
| 30752 | |
| 30753 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 30754 | |
| 30755 | #ifndef GCC_GENERATED_STDINT_H |
| 30756 | #define GCC_GENERATED_STDINT_H 1 |
| 30757 | |
| 30758 | #include <sys/types.h> |
| 30759 | EOF |
| 30760 | |
| 30761 | if test "$acx_cv_header_stdint" != stdint.h; then |
| 30762 | echo "#include <stddef.h>" >> tmp-stdint.h |
| 30763 | fi |
| 30764 | if test "$acx_cv_header_stdint" != stddef.h; then |
| 30765 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h |
| 30766 | fi |
| 30767 | |
| 30768 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 30769 | /* glibc uses these symbols as guards to prevent redefinitions. */ |
| 30770 | #ifdef __int8_t_defined |
| 30771 | #define _INT8_T |
| 30772 | #define _INT16_T |
| 30773 | #define _INT32_T |
| 30774 | #endif |
| 30775 | #ifdef __uint32_t_defined |
| 30776 | #define _UINT32_T |
| 30777 | #endif |
| 30778 | |
| 30779 | EOF |
| 30780 | |
| 30781 | # ----------------- done header, emit basic int types ------------- |
| 30782 | if test "$acx_cv_header_stdint" = stddef.h; then |
| 30783 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 30784 | |
| 30785 | #ifndef _UINT8_T |
| 30786 | #define _UINT8_T |
| 30787 | #ifndef __uint8_t_defined |
| 30788 | #define __uint8_t_defined |
| 30789 | typedef unsigned $acx_cv_type_int8_t uint8_t; |
| 30790 | #endif |
| 30791 | #endif |
| 30792 | |
| 30793 | #ifndef _UINT16_T |
| 30794 | #define _UINT16_T |
| 30795 | #ifndef __uint16_t_defined |
| 30796 | #define __uint16_t_defined |
| 30797 | typedef unsigned $acx_cv_type_int16_t uint16_t; |
| 30798 | #endif |
| 30799 | #endif |
| 30800 | |
| 30801 | #ifndef _UINT32_T |
| 30802 | #define _UINT32_T |
| 30803 | #ifndef __uint32_t_defined |
| 30804 | #define __uint32_t_defined |
| 30805 | typedef unsigned $acx_cv_type_int32_t uint32_t; |
| 30806 | #endif |
| 30807 | #endif |
| 30808 | |
| 30809 | #ifndef _INT8_T |
| 30810 | #define _INT8_T |
| 30811 | #ifndef __int8_t_defined |
| 30812 | #define __int8_t_defined |
| 30813 | typedef $acx_cv_type_int8_t int8_t; |
| 30814 | #endif |
| 30815 | #endif |
| 30816 | |
| 30817 | #ifndef _INT16_T |
| 30818 | #define _INT16_T |
| 30819 | #ifndef __int16_t_defined |
| 30820 | #define __int16_t_defined |
| 30821 | typedef $acx_cv_type_int16_t int16_t; |
| 30822 | #endif |
| 30823 | #endif |
| 30824 | |
| 30825 | #ifndef _INT32_T |
| 30826 | #define _INT32_T |
| 30827 | #ifndef __int32_t_defined |
| 30828 | #define __int32_t_defined |
| 30829 | typedef $acx_cv_type_int32_t int32_t; |
| 30830 | #endif |
| 30831 | #endif |
| 30832 | EOF |
| 30833 | elif test "$ac_cv_type_u_int32_t" = yes; then |
| 30834 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 30835 | |
| 30836 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ |
| 30837 | #ifndef _INT8_T |
| 30838 | #define _INT8_T |
| 30839 | #endif |
| 30840 | #ifndef _INT16_T |
| 30841 | #define _INT16_T |
| 30842 | #endif |
| 30843 | #ifndef _INT32_T |
| 30844 | #define _INT32_T |
| 30845 | #endif |
| 30846 | |
| 30847 | #ifndef _UINT8_T |
| 30848 | #define _UINT8_T |
| 30849 | #ifndef __uint8_t_defined |
| 30850 | #define __uint8_t_defined |
| 30851 | typedef u_int8_t uint8_t; |
| 30852 | #endif |
| 30853 | #endif |
| 30854 | |
| 30855 | #ifndef _UINT16_T |
| 30856 | #define _UINT16_T |
| 30857 | #ifndef __uint16_t_defined |
| 30858 | #define __uint16_t_defined |
| 30859 | typedef u_int16_t uint16_t; |
| 30860 | #endif |
| 30861 | #endif |
| 30862 | |
| 30863 | #ifndef _UINT32_T |
| 30864 | #define _UINT32_T |
| 30865 | #ifndef __uint32_t_defined |
| 30866 | #define __uint32_t_defined |
| 30867 | typedef u_int32_t uint32_t; |
| 30868 | #endif |
| 30869 | #endif |
| 30870 | EOF |
| 30871 | else |
| 30872 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 30873 | |
| 30874 | /* Some systems have guard macros to prevent redefinitions, define them. */ |
| 30875 | #ifndef _INT8_T |
| 30876 | #define _INT8_T |
| 30877 | #endif |
| 30878 | #ifndef _INT16_T |
| 30879 | #define _INT16_T |
| 30880 | #endif |
| 30881 | #ifndef _INT32_T |
| 30882 | #define _INT32_T |
| 30883 | #endif |
| 30884 | #ifndef _UINT8_T |
| 30885 | #define _UINT8_T |
| 30886 | #endif |
| 30887 | #ifndef _UINT16_T |
| 30888 | #define _UINT16_T |
| 30889 | #endif |
| 30890 | #ifndef _UINT32_T |
| 30891 | #define _UINT32_T |
| 30892 | #endif |
| 30893 | EOF |
| 30894 | fi |
| 30895 | |
| 30896 | # ------------- done basic int types, emit int64_t types ------------ |
| 30897 | if test "$ac_cv_type_uint64_t" = yes; then |
| 30898 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 30899 | |
| 30900 | /* system headers have good uint64_t and int64_t */ |
| 30901 | #ifndef _INT64_T |
| 30902 | #define _INT64_T |
| 30903 | #endif |
| 30904 | #ifndef _UINT64_T |
| 30905 | #define _UINT64_T |
| 30906 | #endif |
| 30907 | EOF |
| 30908 | elif test "$ac_cv_type_u_int64_t" = yes; then |
| 30909 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 30910 | |
| 30911 | /* system headers have an u_int64_t (and int64_t) */ |
| 30912 | #ifndef _INT64_T |
| 30913 | #define _INT64_T |
| 30914 | #endif |
| 30915 | #ifndef _UINT64_T |
| 30916 | #define _UINT64_T |
| 30917 | #ifndef __uint64_t_defined |
| 30918 | #define __uint64_t_defined |
| 30919 | typedef u_int64_t uint64_t; |
| 30920 | #endif |
| 30921 | #endif |
| 30922 | EOF |
| 30923 | elif test -n "$acx_cv_type_int64_t"; then |
| 30924 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 30925 | |
| 30926 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ |
| 30927 | #ifndef _INT64_T |
| 30928 | #define _INT64_T |
| 30929 | typedef $acx_cv_type_int64_t int64_t; |
| 30930 | #endif |
| 30931 | #ifndef _UINT64_T |
| 30932 | #define _UINT64_T |
| 30933 | #ifndef __uint64_t_defined |
| 30934 | #define __uint64_t_defined |
| 30935 | typedef unsigned $acx_cv_type_int64_t uint64_t; |
| 30936 | #endif |
| 30937 | #endif |
| 30938 | EOF |
| 30939 | else |
| 30940 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 30941 | |
| 30942 | /* some common heuristics for int64_t, using compiler-specific tests */ |
| 30943 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L |
| 30944 | #ifndef _INT64_T |
| 30945 | #define _INT64_T |
| 30946 | #ifndef __int64_t_defined |
| 30947 | typedef long long int64_t; |
| 30948 | #endif |
| 30949 | #endif |
| 30950 | #ifndef _UINT64_T |
| 30951 | #define _UINT64_T |
| 30952 | typedef unsigned long long uint64_t; |
| 30953 | #endif |
| 30954 | |
| 30955 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 |
| 30956 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and |
| 30957 | does not implement __extension__. But that compiler doesn't define |
| 30958 | __GNUC_MINOR__. */ |
| 30959 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) |
| 30960 | # define __extension__ |
| 30961 | # endif |
| 30962 | |
| 30963 | # ifndef _INT64_T |
| 30964 | # define _INT64_T |
| 30965 | __extension__ typedef long long int64_t; |
| 30966 | # endif |
| 30967 | # ifndef _UINT64_T |
| 30968 | # define _UINT64_T |
| 30969 | __extension__ typedef unsigned long long uint64_t; |
| 30970 | # endif |
| 30971 | |
| 30972 | #elif !defined __STRICT_ANSI__ |
| 30973 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ |
| 30974 | |
| 30975 | # ifndef _INT64_T |
| 30976 | # define _INT64_T |
| 30977 | typedef __int64 int64_t; |
| 30978 | # endif |
| 30979 | # ifndef _UINT64_T |
| 30980 | # define _UINT64_T |
| 30981 | typedef unsigned __int64 uint64_t; |
| 30982 | # endif |
| 30983 | # endif /* compiler */ |
| 30984 | |
| 30985 | #endif /* ANSI version */ |
| 30986 | EOF |
| 30987 | fi |
| 30988 | |
| 30989 | # ------------- done int64_t types, emit intptr types ------------ |
| 30990 | if test "$ac_cv_type_uintptr_t" != yes; then |
| 30991 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 30992 | |
| 30993 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ |
| 30994 | #ifndef __uintptr_t_defined |
| 30995 | typedef u$acx_cv_type_intptr_t uintptr_t; |
| 30996 | #endif |
| 30997 | #ifndef __intptr_t_defined |
| 30998 | typedef $acx_cv_type_intptr_t intptr_t; |
| 30999 | #endif |
| 31000 | EOF |
| 31001 | fi |
| 31002 | |
| 31003 | # ------------- done intptr types, emit int_least types ------------ |
| 31004 | if test "$ac_cv_type_int_least32_t" != yes; then |
| 31005 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 31006 | |
| 31007 | /* Define int_least types */ |
| 31008 | typedef int8_t int_least8_t; |
| 31009 | typedef int16_t int_least16_t; |
| 31010 | typedef int32_t int_least32_t; |
| 31011 | #ifdef _INT64_T |
| 31012 | typedef int64_t int_least64_t; |
| 31013 | #endif |
| 31014 | |
| 31015 | typedef uint8_t uint_least8_t; |
| 31016 | typedef uint16_t uint_least16_t; |
| 31017 | typedef uint32_t uint_least32_t; |
| 31018 | #ifdef _UINT64_T |
| 31019 | typedef uint64_t uint_least64_t; |
| 31020 | #endif |
| 31021 | EOF |
| 31022 | fi |
| 31023 | |
| 31024 | # ------------- done intptr types, emit int_fast types ------------ |
| 31025 | if test "$ac_cv_type_int_fast32_t" != yes; then |
| 31026 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 31027 | |
| 31028 | /* Define int_fast types. short is often slow */ |
| 31029 | typedef int8_t int_fast8_t; |
| 31030 | typedef int int_fast16_t; |
| 31031 | typedef int32_t int_fast32_t; |
| 31032 | #ifdef _INT64_T |
| 31033 | typedef int64_t int_fast64_t; |
| 31034 | #endif |
| 31035 | |
| 31036 | typedef uint8_t uint_fast8_t; |
| 31037 | typedef unsigned int uint_fast16_t; |
| 31038 | typedef uint32_t uint_fast32_t; |
| 31039 | #ifdef _UINT64_T |
| 31040 | typedef uint64_t uint_fast64_t; |
| 31041 | #endif |
| 31042 | EOF |
| 31043 | fi |
| 31044 | |
| 31045 | if test "$ac_cv_type_uintmax_t" != yes; then |
| 31046 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 31047 | |
| 31048 | /* Define intmax based on what we found */ |
| 31049 | #ifdef _INT64_T |
| 31050 | typedef int64_t intmax_t; |
| 31051 | #else |
| 31052 | typedef long intmax_t; |
| 31053 | #endif |
| 31054 | #ifdef _UINT64_T |
| 31055 | typedef uint64_t uintmax_t; |
| 31056 | #else |
| 31057 | typedef unsigned long uintmax_t; |
| 31058 | #endif |
| 31059 | EOF |
| 31060 | fi |
| 31061 | |
| 31062 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 31063 | |
| 31064 | #endif /* GCC_GENERATED_STDINT_H */ |
| 31065 | EOF |
| 31066 | |
| 31067 | if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then |
| 31068 | rm -f tmp-stdint.h |
| 31069 | else |
| 31070 | mv -f tmp-stdint.h gdb_stdint.h |
| 31071 | fi |
| 31072 | |
| 31073 | ;; |
| 31074 | default ) |
| 31075 | |
| 31076 | sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp |
| 31077 | mv -f Makefile.tmp Makefile |
| 31078 | |
| 31079 | |
| 31080 | case x$CONFIG_HEADERS in |
| 31081 | xconfig.h:config.in) |
| 31082 | echo > stamp-h ;; |
| 31083 | esac |
| 31084 | ;; |
| 31085 | esac |
| 31086 | done |
| 31087 | _ACEOF |
| 31088 | |
| 31089 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 31090 | |
| 31091 | { (exit 0); exit 0; } |
| 31092 | _ACEOF |
| 31093 | chmod +x $CONFIG_STATUS |
| 31094 | ac_clean_files=$ac_clean_files_save |
| 31095 | |
| 31096 | |
| 31097 | # configure is writing to config.log, and then calls config.status. |
| 31098 | # config.status does its own redirection, appending to config.log. |
| 31099 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 31100 | # by configure, so config.status won't be able to write to it; its |
| 31101 | # output is simply discarded. So we exec the FD to /dev/null, |
| 31102 | # effectively closing config.log, so it can be properly (re)opened and |
| 31103 | # appended to by config.status. When coming back to configure, we |
| 31104 | # need to make the FD available again. |
| 31105 | if test "$no_create" != yes; then |
| 31106 | ac_cs_success=: |
| 31107 | ac_config_status_args= |
| 31108 | test "$silent" = yes && |
| 31109 | ac_config_status_args="$ac_config_status_args --quiet" |
| 31110 | exec 5>/dev/null |
| 31111 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 31112 | exec 5>>config.log |
| 31113 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 31114 | # would make configure fail if this is the last instruction. |
| 31115 | $ac_cs_success || { (exit 1); exit 1; } |
| 31116 | fi |
| 31117 | |
| 31118 | # |
| 31119 | # CONFIG_SUBDIRS section. |
| 31120 | # |
| 31121 | if test "$no_recursion" != yes; then |
| 31122 | |
| 31123 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
| 31124 | ac_sub_configure_args= |
| 31125 | ac_prev= |
| 31126 | for ac_arg in $ac_configure_args; do |
| 31127 | if test -n "$ac_prev"; then |
| 31128 | ac_prev= |
| 31129 | continue |
| 31130 | fi |
| 31131 | case $ac_arg in |
| 31132 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 31133 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 31134 | ac_prev=cache_file ;; |
| 31135 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 31136 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 31137 | | --c=*) |
| 31138 | ;; |
| 31139 | --config-cache | -C) |
| 31140 | ;; |
| 31141 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 31142 | ac_prev=srcdir ;; |
| 31143 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 31144 | ;; |
| 31145 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 31146 | ac_prev=prefix ;; |
| 31147 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 31148 | ;; |
| 31149 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
| 31150 | esac |
| 31151 | done |
| 31152 | |
| 31153 | # Always prepend --prefix to ensure using the same prefix |
| 31154 | # in subdir configurations. |
| 31155 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" |
| 31156 | |
| 31157 | ac_popdir=`pwd` |
| 31158 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 31159 | |
| 31160 | # Do not complain, so a configure script can configure whichever |
| 31161 | # parts of a large source tree are present. |
| 31162 | test -d $srcdir/$ac_dir || continue |
| 31163 | |
| 31164 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 |
| 31165 | echo "$as_me: configuring in $ac_dir" >&6;} |
| 31166 | { if $as_mkdir_p; then |
| 31167 | mkdir -p "$ac_dir" |
| 31168 | else |
| 31169 | as_dir="$ac_dir" |
| 31170 | as_dirs= |
| 31171 | while test ! -d "$as_dir"; do |
| 31172 | as_dirs="$as_dir $as_dirs" |
| 31173 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 31174 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 31175 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 31176 | X"$as_dir" : 'X\(//\)$' \| \ |
| 31177 | X"$as_dir" : 'X\(/\)' \| \ |
| 31178 | . : '\(.\)' 2>/dev/null || |
| 31179 | echo X"$as_dir" | |
| 31180 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 31181 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 31182 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 31183 | /^X\(\/\).*/{ s//\1/; q; } |
| 31184 | s/.*/./; q'` |
| 31185 | done |
| 31186 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 31187 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 31188 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 31189 | { (exit 1); exit 1; }; }; } |
| 31190 | |
| 31191 | ac_builddir=. |
| 31192 | |
| 31193 | if test "$ac_dir" != .; then |
| 31194 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 31195 | # A "../" for each directory in $ac_dir_suffix. |
| 31196 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 31197 | else |
| 31198 | ac_dir_suffix= ac_top_builddir= |
| 31199 | fi |
| 31200 | |
| 31201 | case $srcdir in |
| 31202 | .) # No --srcdir option. We are building in place. |
| 31203 | ac_srcdir=. |
| 31204 | if test -z "$ac_top_builddir"; then |
| 31205 | ac_top_srcdir=. |
| 31206 | else |
| 31207 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 31208 | fi ;; |
| 31209 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 31210 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 31211 | ac_top_srcdir=$srcdir ;; |
| 31212 | *) # Relative path. |
| 31213 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 31214 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 31215 | esac |
| 31216 | |
| 31217 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 31218 | # the directories may not exist. |
| 31219 | case `pwd` in |
| 31220 | .) ac_abs_builddir="$ac_dir";; |
| 31221 | *) |
| 31222 | case "$ac_dir" in |
| 31223 | .) ac_abs_builddir=`pwd`;; |
| 31224 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 31225 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 31226 | esac;; |
| 31227 | esac |
| 31228 | case $ac_abs_builddir in |
| 31229 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 31230 | *) |
| 31231 | case ${ac_top_builddir}. in |
| 31232 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 31233 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 31234 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 31235 | esac;; |
| 31236 | esac |
| 31237 | case $ac_abs_builddir in |
| 31238 | .) ac_abs_srcdir=$ac_srcdir;; |
| 31239 | *) |
| 31240 | case $ac_srcdir in |
| 31241 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 31242 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 31243 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 31244 | esac;; |
| 31245 | esac |
| 31246 | case $ac_abs_builddir in |
| 31247 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 31248 | *) |
| 31249 | case $ac_top_srcdir in |
| 31250 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 31251 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 31252 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 31253 | esac;; |
| 31254 | esac |
| 31255 | |
| 31256 | |
| 31257 | cd $ac_dir |
| 31258 | |
| 31259 | # Check for guested configure; otherwise get Cygnus style configure. |
| 31260 | if test -f $ac_srcdir/configure.gnu; then |
| 31261 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" |
| 31262 | elif test -f $ac_srcdir/configure; then |
| 31263 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" |
| 31264 | elif test -f $ac_srcdir/configure.in; then |
| 31265 | ac_sub_configure=$ac_configure |
| 31266 | else |
| 31267 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 31268 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
| 31269 | ac_sub_configure= |
| 31270 | fi |
| 31271 | |
| 31272 | # The recursion is here. |
| 31273 | if test -n "$ac_sub_configure"; then |
| 31274 | # Make the cache file name correct relative to the subdirectory. |
| 31275 | case $cache_file in |
| 31276 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
| 31277 | *) # Relative path. |
| 31278 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
| 31279 | esac |
| 31280 | |
| 31281 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 31282 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
| 31283 | # The eval makes quoting arguments work. |
| 31284 | eval $ac_sub_configure $ac_sub_configure_args \ |
| 31285 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
| 31286 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
| 31287 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 31288 | { (exit 1); exit 1; }; } |
| 31289 | fi |
| 31290 | |
| 31291 | cd $ac_popdir |
| 31292 | done |
| 31293 | fi |
| 31294 | |
| 31295 | |
| 31296 | exit 0 |