Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3 | # Generated by GNU Autoconf 2.59. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4 | # |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 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 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 22 | DUALCASE=1; export DUALCASE # for MKS sh |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 23 | |
| 24 | # Support unset when possible. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 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 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 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 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 221 | test -d ./-p && rmdir ./-p |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 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. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 229 | |
| 230 | # Sed expression to map a string onto a valid variable name. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 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="srtp" |
| 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 | 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 RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT RNG_OBJS CPP EGREP LIBOBJS build build_cpu build_vendor build_os host host_cpu host_vendor host_os EXE GDOI_OBJS LTLIBOBJS' |
| 313 | ac_subst_files='' |
| 314 | |
| 315 | # Initialize some variables set by options. |
| 316 | ac_init_help= |
| 317 | ac_init_version=false |
| 318 | # The variables have the same names as the options, with |
| 319 | # dashes changed to underlines. |
| 320 | cache_file=/dev/null |
| 321 | exec_prefix=NONE |
| 322 | no_create= |
| 323 | no_recursion= |
| 324 | prefix=NONE |
| 325 | program_prefix=NONE |
| 326 | program_suffix=NONE |
| 327 | program_transform_name=s,x,x, |
| 328 | silent= |
| 329 | site= |
| 330 | srcdir= |
| 331 | verbose= |
| 332 | x_includes=NONE |
| 333 | x_libraries=NONE |
| 334 | |
| 335 | # Installation directory options. |
| 336 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 337 | # and all the variables that are supposed to be based on exec_prefix |
| 338 | # by default will actually change. |
| 339 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 340 | bindir='${exec_prefix}/bin' |
| 341 | sbindir='${exec_prefix}/sbin' |
| 342 | libexecdir='${exec_prefix}/libexec' |
| 343 | datadir='${prefix}/share' |
| 344 | sysconfdir='${prefix}/etc' |
| 345 | sharedstatedir='${prefix}/com' |
| 346 | localstatedir='${prefix}/var' |
| 347 | libdir='${exec_prefix}/lib' |
| 348 | includedir='${prefix}/include' |
| 349 | oldincludedir='/usr/include' |
| 350 | infodir='${prefix}/info' |
| 351 | mandir='${prefix}/man' |
| 352 | |
| 353 | ac_prev= |
| 354 | for ac_option |
| 355 | do |
| 356 | # If the previous option needs an argument, assign it. |
| 357 | if test -n "$ac_prev"; then |
| 358 | eval "$ac_prev=\$ac_option" |
| 359 | ac_prev= |
| 360 | continue |
| 361 | fi |
| 362 | |
| 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 364 | |
| 365 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 366 | |
| 367 | case $ac_option in |
| 368 | |
| 369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 370 | ac_prev=bindir ;; |
| 371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 372 | bindir=$ac_optarg ;; |
| 373 | |
| 374 | -build | --build | --buil | --bui | --bu) |
| 375 | ac_prev=build_alias ;; |
| 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 377 | build_alias=$ac_optarg ;; |
| 378 | |
| 379 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 381 | ac_prev=cache_file ;; |
| 382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 384 | cache_file=$ac_optarg ;; |
| 385 | |
| 386 | --config-cache | -C) |
| 387 | cache_file=config.cache ;; |
| 388 | |
| 389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 390 | ac_prev=datadir ;; |
| 391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 392 | | --da=*) |
| 393 | datadir=$ac_optarg ;; |
| 394 | |
| 395 | -disable-* | --disable-*) |
| 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 397 | # Reject names that are not valid shell variable names. |
| 398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 400 | { (exit 1); exit 1; }; } |
| 401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 402 | eval "enable_$ac_feature=no" ;; |
| 403 | |
| 404 | -enable-* | --enable-*) |
| 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 406 | # Reject names that are not valid shell variable names. |
| 407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 409 | { (exit 1); exit 1; }; } |
| 410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 411 | case $ac_option in |
| 412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 413 | *) ac_optarg=yes ;; |
| 414 | esac |
| 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 416 | |
| 417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 419 | | --exec | --exe | --ex) |
| 420 | ac_prev=exec_prefix ;; |
| 421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 423 | | --exec=* | --exe=* | --ex=*) |
| 424 | exec_prefix=$ac_optarg ;; |
| 425 | |
| 426 | -gas | --gas | --ga | --g) |
| 427 | # Obsolete; use --with-gas. |
| 428 | with_gas=yes ;; |
| 429 | |
| 430 | -help | --help | --hel | --he | -h) |
| 431 | ac_init_help=long ;; |
| 432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 433 | ac_init_help=recursive ;; |
| 434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 435 | ac_init_help=short ;; |
| 436 | |
| 437 | -host | --host | --hos | --ho) |
| 438 | ac_prev=host_alias ;; |
| 439 | -host=* | --host=* | --hos=* | --ho=*) |
| 440 | host_alias=$ac_optarg ;; |
| 441 | |
| 442 | -includedir | --includedir | --includedi | --included | --include \ |
| 443 | | --includ | --inclu | --incl | --inc) |
| 444 | ac_prev=includedir ;; |
| 445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 446 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 447 | includedir=$ac_optarg ;; |
| 448 | |
| 449 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 450 | ac_prev=infodir ;; |
| 451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 452 | infodir=$ac_optarg ;; |
| 453 | |
| 454 | -libdir | --libdir | --libdi | --libd) |
| 455 | ac_prev=libdir ;; |
| 456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 457 | libdir=$ac_optarg ;; |
| 458 | |
| 459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 460 | | --libexe | --libex | --libe) |
| 461 | ac_prev=libexecdir ;; |
| 462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 463 | | --libexe=* | --libex=* | --libe=*) |
| 464 | libexecdir=$ac_optarg ;; |
| 465 | |
| 466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 467 | | --localstate | --localstat | --localsta | --localst \ |
| 468 | | --locals | --local | --loca | --loc | --lo) |
| 469 | ac_prev=localstatedir ;; |
| 470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 473 | localstatedir=$ac_optarg ;; |
| 474 | |
| 475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 476 | ac_prev=mandir ;; |
| 477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 478 | mandir=$ac_optarg ;; |
| 479 | |
| 480 | -nfp | --nfp | --nf) |
| 481 | # Obsolete; use --without-fp. |
| 482 | with_fp=no ;; |
| 483 | |
| 484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 485 | | --no-cr | --no-c | -n) |
| 486 | no_create=yes ;; |
| 487 | |
| 488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 490 | no_recursion=yes ;; |
| 491 | |
| 492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 494 | | --oldin | --oldi | --old | --ol | --o) |
| 495 | ac_prev=oldincludedir ;; |
| 496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 499 | oldincludedir=$ac_optarg ;; |
| 500 | |
| 501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 502 | ac_prev=prefix ;; |
| 503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 504 | prefix=$ac_optarg ;; |
| 505 | |
| 506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 507 | | --program-pre | --program-pr | --program-p) |
| 508 | ac_prev=program_prefix ;; |
| 509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 511 | program_prefix=$ac_optarg ;; |
| 512 | |
| 513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 514 | | --program-suf | --program-su | --program-s) |
| 515 | ac_prev=program_suffix ;; |
| 516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 518 | program_suffix=$ac_optarg ;; |
| 519 | |
| 520 | -program-transform-name | --program-transform-name \ |
| 521 | | --program-transform-nam | --program-transform-na \ |
| 522 | | --program-transform-n | --program-transform- \ |
| 523 | | --program-transform | --program-transfor \ |
| 524 | | --program-transfo | --program-transf \ |
| 525 | | --program-trans | --program-tran \ |
| 526 | | --progr-tra | --program-tr | --program-t) |
| 527 | ac_prev=program_transform_name ;; |
| 528 | -program-transform-name=* | --program-transform-name=* \ |
| 529 | | --program-transform-nam=* | --program-transform-na=* \ |
| 530 | | --program-transform-n=* | --program-transform-=* \ |
| 531 | | --program-transform=* | --program-transfor=* \ |
| 532 | | --program-transfo=* | --program-transf=* \ |
| 533 | | --program-trans=* | --program-tran=* \ |
| 534 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 535 | program_transform_name=$ac_optarg ;; |
| 536 | |
| 537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 538 | | -silent | --silent | --silen | --sile | --sil) |
| 539 | silent=yes ;; |
| 540 | |
| 541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 542 | ac_prev=sbindir ;; |
| 543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 544 | | --sbi=* | --sb=*) |
| 545 | sbindir=$ac_optarg ;; |
| 546 | |
| 547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 549 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 550 | | --sha | --sh) |
| 551 | ac_prev=sharedstatedir ;; |
| 552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 555 | | --sha=* | --sh=*) |
| 556 | sharedstatedir=$ac_optarg ;; |
| 557 | |
| 558 | -site | --site | --sit) |
| 559 | ac_prev=site ;; |
| 560 | -site=* | --site=* | --sit=*) |
| 561 | site=$ac_optarg ;; |
| 562 | |
| 563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 564 | ac_prev=srcdir ;; |
| 565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 566 | srcdir=$ac_optarg ;; |
| 567 | |
| 568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 569 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 570 | ac_prev=sysconfdir ;; |
| 571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 573 | sysconfdir=$ac_optarg ;; |
| 574 | |
| 575 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 576 | ac_prev=target_alias ;; |
| 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 578 | target_alias=$ac_optarg ;; |
| 579 | |
| 580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 581 | verbose=yes ;; |
| 582 | |
| 583 | -version | --version | --versio | --versi | --vers | -V) |
| 584 | ac_init_version=: ;; |
| 585 | |
| 586 | -with-* | --with-*) |
| 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 588 | # Reject names that are not valid shell variable names. |
| 589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 591 | { (exit 1); exit 1; }; } |
| 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 593 | case $ac_option in |
| 594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 595 | *) ac_optarg=yes ;; |
| 596 | esac |
| 597 | eval "with_$ac_package='$ac_optarg'" ;; |
| 598 | |
| 599 | -without-* | --without-*) |
| 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 601 | # Reject names that are not valid shell variable names. |
| 602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 604 | { (exit 1); exit 1; }; } |
| 605 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 606 | eval "with_$ac_package=no" ;; |
| 607 | |
| 608 | --x) |
| 609 | # Obsolete; use --with-x. |
| 610 | with_x=yes ;; |
| 611 | |
| 612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 613 | | --x-incl | --x-inc | --x-in | --x-i) |
| 614 | ac_prev=x_includes ;; |
| 615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 617 | x_includes=$ac_optarg ;; |
| 618 | |
| 619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 621 | ac_prev=x_libraries ;; |
| 622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 624 | x_libraries=$ac_optarg ;; |
| 625 | |
| 626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 627 | Try \`$0 --help' for more information." >&2 |
| 628 | { (exit 1); exit 1; }; } |
| 629 | ;; |
| 630 | |
| 631 | *=*) |
| 632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 633 | # Reject names that are not valid shell variable names. |
| 634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 636 | { (exit 1); exit 1; }; } |
| 637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 638 | eval "$ac_envvar='$ac_optarg'" |
| 639 | export $ac_envvar ;; |
| 640 | |
| 641 | *) |
| 642 | # FIXME: should be removed in autoconf 3.0. |
| 643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 647 | ;; |
| 648 | |
| 649 | esac |
| 650 | done |
| 651 | |
| 652 | if test -n "$ac_prev"; then |
| 653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 654 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 655 | { (exit 1); exit 1; }; } |
| 656 | fi |
| 657 | |
| 658 | # Be sure to have absolute paths. |
| 659 | for ac_var in exec_prefix prefix |
| 660 | do |
| 661 | eval ac_val=$`echo $ac_var` |
| 662 | case $ac_val in |
| 663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 665 | { (exit 1); exit 1; }; };; |
| 666 | esac |
| 667 | done |
| 668 | |
| 669 | # Be sure to have absolute paths. |
| 670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 671 | localstatedir libdir includedir oldincludedir infodir mandir |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 672 | do |
| 673 | eval ac_val=$`echo $ac_var` |
| 674 | case $ac_val in |
| 675 | [\\/$]* | ?:[\\/]* ) ;; |
| 676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 677 | { (exit 1); exit 1; }; };; |
| 678 | esac |
| 679 | done |
| 680 | |
| 681 | # There might be people who depend on the old broken behavior: `$host' |
| 682 | # used to hold the argument of --host etc. |
| 683 | # FIXME: To remove some day. |
| 684 | build=$build_alias |
| 685 | host=$host_alias |
| 686 | target=$target_alias |
| 687 | |
| 688 | # FIXME: To remove some day. |
| 689 | if test "x$host_alias" != x; then |
| 690 | if test "x$build_alias" = x; then |
| 691 | cross_compiling=maybe |
| 692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 693 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 694 | elif test "x$build_alias" != "x$host_alias"; then |
| 695 | cross_compiling=yes |
| 696 | fi |
| 697 | fi |
| 698 | |
| 699 | ac_tool_prefix= |
| 700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 701 | |
| 702 | test "$silent" = yes && exec 6>/dev/null |
| 703 | |
| 704 | |
| 705 | # Find the source files, if location was not specified. |
| 706 | if test -z "$srcdir"; then |
| 707 | ac_srcdir_defaulted=yes |
| 708 | # Try the directory containing this script, then its parent. |
| 709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 711 | X"$0" : 'X\(//\)[^/]' \| \ |
| 712 | X"$0" : 'X\(//\)$' \| \ |
| 713 | X"$0" : 'X\(/\)' \| \ |
| 714 | . : '\(.\)' 2>/dev/null || |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 715 | echo X"$0" | |
| 716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 718 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 719 | /^X\(\/\).*/{ s//\1/; q; } |
| 720 | s/.*/./; q'` |
| 721 | srcdir=$ac_confdir |
| 722 | if test ! -r $srcdir/$ac_unique_file; then |
| 723 | srcdir=.. |
| 724 | fi |
| 725 | else |
| 726 | ac_srcdir_defaulted=no |
| 727 | fi |
| 728 | if test ! -r $srcdir/$ac_unique_file; then |
| 729 | if test "$ac_srcdir_defaulted" = yes; then |
| 730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 731 | { (exit 1); exit 1; }; } |
| 732 | else |
| 733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 734 | { (exit 1); exit 1; }; } |
| 735 | fi |
| 736 | fi |
| 737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 739 | { (exit 1); exit 1; }; } |
| 740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 741 | ac_env_build_alias_set=${build_alias+set} |
| 742 | ac_env_build_alias_value=$build_alias |
| 743 | ac_cv_env_build_alias_set=${build_alias+set} |
| 744 | ac_cv_env_build_alias_value=$build_alias |
| 745 | ac_env_host_alias_set=${host_alias+set} |
| 746 | ac_env_host_alias_value=$host_alias |
| 747 | ac_cv_env_host_alias_set=${host_alias+set} |
| 748 | ac_cv_env_host_alias_value=$host_alias |
| 749 | ac_env_target_alias_set=${target_alias+set} |
| 750 | ac_env_target_alias_value=$target_alias |
| 751 | ac_cv_env_target_alias_set=${target_alias+set} |
| 752 | ac_cv_env_target_alias_value=$target_alias |
| 753 | ac_env_CC_set=${CC+set} |
| 754 | ac_env_CC_value=$CC |
| 755 | ac_cv_env_CC_set=${CC+set} |
| 756 | ac_cv_env_CC_value=$CC |
| 757 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 758 | ac_env_CFLAGS_value=$CFLAGS |
| 759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 760 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 761 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 762 | ac_env_LDFLAGS_value=$LDFLAGS |
| 763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 764 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 766 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 769 | ac_env_CPP_set=${CPP+set} |
| 770 | ac_env_CPP_value=$CPP |
| 771 | ac_cv_env_CPP_set=${CPP+set} |
| 772 | ac_cv_env_CPP_value=$CPP |
| 773 | |
| 774 | # |
| 775 | # Report the --help message. |
| 776 | # |
| 777 | if test "$ac_init_help" = "long"; then |
| 778 | # Omit some internal or obsolete options to make the list less imposing. |
| 779 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 780 | cat <<_ACEOF |
| 781 | \`configure' configures this package to adapt to many kinds of systems. |
| 782 | |
| 783 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 784 | |
| 785 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 786 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 787 | |
| 788 | Defaults for the options are specified in brackets. |
| 789 | |
| 790 | Configuration: |
| 791 | -h, --help display this help and exit |
| 792 | --help=short display options specific to this package |
| 793 | --help=recursive display the short help of all the included packages |
| 794 | -V, --version display version information and exit |
| 795 | -q, --quiet, --silent do not print \`checking...' messages |
| 796 | --cache-file=FILE cache test results in FILE [disabled] |
| 797 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 798 | -n, --no-create do not create output files |
| 799 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 800 | |
| 801 | _ACEOF |
| 802 | |
| 803 | cat <<_ACEOF |
| 804 | Installation directories: |
| 805 | --prefix=PREFIX install architecture-independent files in PREFIX |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 806 | [$ac_default_prefix] |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 807 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 808 | [PREFIX] |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 809 | |
| 810 | By default, \`make install' will install all the files in |
| 811 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 812 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 813 | for instance \`--prefix=\$HOME'. |
| 814 | |
| 815 | For better control, use the options below. |
| 816 | |
| 817 | Fine tuning of the installation directories: |
| 818 | --bindir=DIR user executables [EPREFIX/bin] |
| 819 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 820 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 821 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 822 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 823 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 824 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 825 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 826 | --includedir=DIR C header files [PREFIX/include] |
| 827 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 828 | --infodir=DIR info documentation [PREFIX/info] |
| 829 | --mandir=DIR man documentation [PREFIX/man] |
| 830 | _ACEOF |
| 831 | |
| 832 | cat <<\_ACEOF |
| 833 | |
| 834 | System types: |
| 835 | --build=BUILD configure for building on BUILD [guessed] |
| 836 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 837 | _ACEOF |
| 838 | fi |
| 839 | |
| 840 | if test -n "$ac_init_help"; then |
| 841 | |
| 842 | cat <<\_ACEOF |
| 843 | |
| 844 | Optional Features: |
| 845 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 846 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 847 | debug (compile in dynamic debugging system) |
| 848 | generic-aesicm (compile in changes for ismacryp) |
| 849 | syslog (use syslog for error reporting) |
| 850 | stdout (use stdout for error reporting) |
| 851 | console (use /dev/console for error reporting) |
| 852 | gdoi (GDOI key management) |
| 853 | |
| 854 | Some influential environment variables: |
| 855 | CC C compiler command |
| 856 | CFLAGS C compiler flags |
| 857 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 858 | nonstandard directory <lib dir> |
| 859 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 860 | headers in a nonstandard directory <include dir> |
| 861 | CPP C preprocessor |
| 862 | |
| 863 | Use these variables to override the choices made by `configure' or to help |
| 864 | it to find libraries and programs with nonstandard names/locations. |
| 865 | |
| 866 | _ACEOF |
| 867 | fi |
| 868 | |
| 869 | if test "$ac_init_help" = "recursive"; then |
| 870 | # If there are subdirs, report their specific --help. |
| 871 | ac_popdir=`pwd` |
| 872 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 873 | test -d $ac_dir || continue |
| 874 | ac_builddir=. |
| 875 | |
| 876 | if test "$ac_dir" != .; then |
| 877 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 878 | # A "../" for each directory in $ac_dir_suffix. |
| 879 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 880 | else |
| 881 | ac_dir_suffix= ac_top_builddir= |
| 882 | fi |
| 883 | |
| 884 | case $srcdir in |
| 885 | .) # No --srcdir option. We are building in place. |
| 886 | ac_srcdir=. |
| 887 | if test -z "$ac_top_builddir"; then |
| 888 | ac_top_srcdir=. |
| 889 | else |
| 890 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 891 | fi ;; |
| 892 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 893 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 894 | ac_top_srcdir=$srcdir ;; |
| 895 | *) # Relative path. |
| 896 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 897 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 898 | esac |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 899 | |
| 900 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 901 | # the directories may not exist. |
| 902 | case `pwd` in |
| 903 | .) ac_abs_builddir="$ac_dir";; |
| 904 | *) |
| 905 | case "$ac_dir" in |
| 906 | .) ac_abs_builddir=`pwd`;; |
| 907 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 908 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 909 | esac;; |
| 910 | esac |
| 911 | case $ac_abs_builddir in |
| 912 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 913 | *) |
| 914 | case ${ac_top_builddir}. in |
| 915 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 916 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 917 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 918 | esac;; |
| 919 | esac |
| 920 | case $ac_abs_builddir in |
| 921 | .) ac_abs_srcdir=$ac_srcdir;; |
| 922 | *) |
| 923 | case $ac_srcdir in |
| 924 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 925 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 926 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 927 | esac;; |
| 928 | esac |
| 929 | case $ac_abs_builddir in |
| 930 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 931 | *) |
| 932 | case $ac_top_srcdir in |
| 933 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 934 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 935 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 936 | esac;; |
| 937 | esac |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 938 | |
| 939 | cd $ac_dir |
| 940 | # Check for guested configure; otherwise get Cygnus style configure. |
| 941 | if test -f $ac_srcdir/configure.gnu; then |
| 942 | echo |
| 943 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 944 | elif test -f $ac_srcdir/configure; then |
| 945 | echo |
| 946 | $SHELL $ac_srcdir/configure --help=recursive |
| 947 | elif test -f $ac_srcdir/configure.ac || |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 948 | test -f $ac_srcdir/configure.in; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 949 | echo |
| 950 | $ac_configure --help |
| 951 | else |
| 952 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 953 | fi |
| 954 | cd $ac_popdir |
| 955 | done |
| 956 | fi |
| 957 | |
| 958 | test -n "$ac_init_help" && exit 0 |
| 959 | if $ac_init_version; then |
| 960 | cat <<\_ACEOF |
| 961 | |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 962 | Copyright (C) 2003 Free Software Foundation, Inc. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 963 | This configure script is free software; the Free Software Foundation |
| 964 | gives unlimited permission to copy, distribute and modify it. |
| 965 | _ACEOF |
| 966 | exit 0 |
| 967 | fi |
| 968 | exec 5>config.log |
| 969 | cat >&5 <<_ACEOF |
| 970 | This file contains any messages produced by compilers while |
| 971 | running configure, to aid debugging if configure makes a mistake. |
| 972 | |
| 973 | It was created by $as_me, which was |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 974 | generated by GNU Autoconf 2.59. Invocation command line was |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 975 | |
| 976 | $ $0 $@ |
| 977 | |
| 978 | _ACEOF |
| 979 | { |
| 980 | cat <<_ASUNAME |
| 981 | ## --------- ## |
| 982 | ## Platform. ## |
| 983 | ## --------- ## |
| 984 | |
| 985 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 986 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 987 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 988 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 989 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 990 | |
| 991 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 992 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 993 | |
| 994 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 995 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 996 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 997 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 998 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 999 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1000 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1001 | |
| 1002 | _ASUNAME |
| 1003 | |
| 1004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1005 | for as_dir in $PATH |
| 1006 | do |
| 1007 | IFS=$as_save_IFS |
| 1008 | test -z "$as_dir" && as_dir=. |
| 1009 | echo "PATH: $as_dir" |
| 1010 | done |
| 1011 | |
| 1012 | } >&5 |
| 1013 | |
| 1014 | cat >&5 <<_ACEOF |
| 1015 | |
| 1016 | |
| 1017 | ## ----------- ## |
| 1018 | ## Core tests. ## |
| 1019 | ## ----------- ## |
| 1020 | |
| 1021 | _ACEOF |
| 1022 | |
| 1023 | |
| 1024 | # Keep a trace of the command line. |
| 1025 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1026 | # Strip out --silent because we don't want to record it for future runs. |
| 1027 | # Also quote any args containing shell meta-characters. |
| 1028 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1029 | ac_configure_args= |
| 1030 | ac_configure_args0= |
| 1031 | ac_configure_args1= |
| 1032 | ac_sep= |
| 1033 | ac_must_keep_next=false |
| 1034 | for ac_pass in 1 2 |
| 1035 | do |
| 1036 | for ac_arg |
| 1037 | do |
| 1038 | case $ac_arg in |
| 1039 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1040 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1041 | | -silent | --silent | --silen | --sile | --sil) |
| 1042 | continue ;; |
| 1043 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1044 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1045 | esac |
| 1046 | case $ac_pass in |
| 1047 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1048 | 2) |
| 1049 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1050 | if test $ac_must_keep_next = true; then |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 1051 | ac_must_keep_next=false # Got value, back to normal. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1052 | else |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 1053 | case $ac_arg in |
| 1054 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1055 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1056 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1057 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1058 | case "$ac_configure_args0 " in |
| 1059 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1060 | esac |
| 1061 | ;; |
| 1062 | -* ) ac_must_keep_next=true ;; |
| 1063 | esac |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1064 | fi |
| 1065 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1066 | # Get rid of the leading space. |
| 1067 | ac_sep=" " |
| 1068 | ;; |
| 1069 | esac |
| 1070 | done |
| 1071 | done |
| 1072 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1073 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1074 | |
| 1075 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1076 | # config.log. We remove comments because anyway the quotes in there |
| 1077 | # would cause problems or look ugly. |
| 1078 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1079 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1080 | trap 'exit_status=$? |
| 1081 | # Save into config.log some information that might help in debugging. |
| 1082 | { |
| 1083 | echo |
| 1084 | |
| 1085 | cat <<\_ASBOX |
| 1086 | ## ---------------- ## |
| 1087 | ## Cache variables. ## |
| 1088 | ## ---------------- ## |
| 1089 | _ASBOX |
| 1090 | echo |
| 1091 | # The following way of writing the cache mishandles newlines in values, |
| 1092 | { |
| 1093 | (set) 2>&1 | |
| 1094 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1095 | *ac_space=\ *) |
| 1096 | sed -n \ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 1097 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1098 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1099 | ;; |
| 1100 | *) |
| 1101 | sed -n \ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 1102 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1103 | ;; |
| 1104 | esac; |
| 1105 | } |
| 1106 | echo |
| 1107 | |
| 1108 | cat <<\_ASBOX |
| 1109 | ## ----------------- ## |
| 1110 | ## Output variables. ## |
| 1111 | ## ----------------- ## |
| 1112 | _ASBOX |
| 1113 | echo |
| 1114 | for ac_var in $ac_subst_vars |
| 1115 | do |
| 1116 | eval ac_val=$`echo $ac_var` |
| 1117 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1118 | done | sort |
| 1119 | echo |
| 1120 | |
| 1121 | if test -n "$ac_subst_files"; then |
| 1122 | cat <<\_ASBOX |
| 1123 | ## ------------- ## |
| 1124 | ## Output files. ## |
| 1125 | ## ------------- ## |
| 1126 | _ASBOX |
| 1127 | echo |
| 1128 | for ac_var in $ac_subst_files |
| 1129 | do |
| 1130 | eval ac_val=$`echo $ac_var` |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 1131 | echo "$ac_var='"'"'$ac_val'"'"'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1132 | done | sort |
| 1133 | echo |
| 1134 | fi |
| 1135 | |
| 1136 | if test -s confdefs.h; then |
| 1137 | cat <<\_ASBOX |
| 1138 | ## ----------- ## |
| 1139 | ## confdefs.h. ## |
| 1140 | ## ----------- ## |
| 1141 | _ASBOX |
| 1142 | echo |
| 1143 | sed "/^$/d" confdefs.h | sort |
| 1144 | echo |
| 1145 | fi |
| 1146 | test "$ac_signal" != 0 && |
| 1147 | echo "$as_me: caught signal $ac_signal" |
| 1148 | echo "$as_me: exit $exit_status" |
| 1149 | } >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 1150 | rm -f core *.core && |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1151 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1152 | exit $exit_status |
| 1153 | ' 0 |
| 1154 | for ac_signal in 1 2 13 15; do |
| 1155 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1156 | done |
| 1157 | ac_signal=0 |
| 1158 | |
| 1159 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1160 | rm -rf conftest* confdefs.h |
| 1161 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1162 | echo >confdefs.h |
| 1163 | |
| 1164 | # Predefined preprocessor variables. |
| 1165 | |
| 1166 | cat >>confdefs.h <<_ACEOF |
| 1167 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1168 | _ACEOF |
| 1169 | |
| 1170 | |
| 1171 | cat >>confdefs.h <<_ACEOF |
| 1172 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1173 | _ACEOF |
| 1174 | |
| 1175 | |
| 1176 | cat >>confdefs.h <<_ACEOF |
| 1177 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1178 | _ACEOF |
| 1179 | |
| 1180 | |
| 1181 | cat >>confdefs.h <<_ACEOF |
| 1182 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1183 | _ACEOF |
| 1184 | |
| 1185 | |
| 1186 | cat >>confdefs.h <<_ACEOF |
| 1187 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1188 | _ACEOF |
| 1189 | |
| 1190 | |
| 1191 | # Let the site file select an alternate cache file if it wants to. |
| 1192 | # Prefer explicitly selected file to automatically selected ones. |
| 1193 | if test -z "$CONFIG_SITE"; then |
| 1194 | if test "x$prefix" != xNONE; then |
| 1195 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1196 | else |
| 1197 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1198 | fi |
| 1199 | fi |
| 1200 | for ac_site_file in $CONFIG_SITE; do |
| 1201 | if test -r "$ac_site_file"; then |
| 1202 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1203 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1204 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1205 | . "$ac_site_file" |
| 1206 | fi |
| 1207 | done |
| 1208 | |
| 1209 | if test -r "$cache_file"; then |
| 1210 | # Some versions of bash will fail to source /dev/null (special |
| 1211 | # files actually), so we avoid doing that. |
| 1212 | if test -f "$cache_file"; then |
| 1213 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1214 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1215 | case $cache_file in |
| 1216 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1217 | *) . ./$cache_file;; |
| 1218 | esac |
| 1219 | fi |
| 1220 | else |
| 1221 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1222 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1223 | >$cache_file |
| 1224 | fi |
| 1225 | |
| 1226 | # Check that the precious variables saved in the cache have kept the same |
| 1227 | # value. |
| 1228 | ac_cache_corrupted=false |
| 1229 | for ac_var in `(set) 2>&1 | |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 1230 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1231 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1232 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1233 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1234 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1235 | case $ac_old_set,$ac_new_set in |
| 1236 | set,) |
| 1237 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1238 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1239 | ac_cache_corrupted=: ;; |
| 1240 | ,set) |
| 1241 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1242 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1243 | ac_cache_corrupted=: ;; |
| 1244 | ,);; |
| 1245 | *) |
| 1246 | if test "x$ac_old_val" != "x$ac_new_val"; then |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 1247 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1248 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 1249 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1250 | echo "$as_me: former value: $ac_old_val" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 1251 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1252 | echo "$as_me: current value: $ac_new_val" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 1253 | ac_cache_corrupted=: |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1254 | fi;; |
| 1255 | esac |
| 1256 | # Pass precious variables to config.status. |
| 1257 | if test "$ac_new_set" = set; then |
| 1258 | case $ac_new_val in |
| 1259 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1260 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1261 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1262 | esac |
| 1263 | case " $ac_configure_args " in |
| 1264 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1265 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1266 | esac |
| 1267 | fi |
| 1268 | done |
| 1269 | if $ac_cache_corrupted; then |
| 1270 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1271 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1272 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1273 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1274 | { (exit 1); exit 1; }; } |
| 1275 | fi |
| 1276 | |
| 1277 | ac_ext=c |
| 1278 | ac_cpp='$CPP $CPPFLAGS' |
| 1279 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1280 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1281 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1282 | |
| 1283 | |
| 1284 | |
| 1285 | |
| 1286 | |
| 1287 | |
| 1288 | |
| 1289 | |
| 1290 | |
| 1291 | |
| 1292 | |
| 1293 | |
| 1294 | |
| 1295 | |
| 1296 | |
| 1297 | |
| 1298 | |
| 1299 | |
| 1300 | |
| 1301 | |
| 1302 | if test -n "$ac_tool_prefix"; then |
| 1303 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 1304 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 1305 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1306 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1307 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 1308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1309 | else |
| 1310 | if test -n "$RANLIB"; then |
| 1311 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1312 | else |
| 1313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1314 | for as_dir in $PATH |
| 1315 | do |
| 1316 | IFS=$as_save_IFS |
| 1317 | test -z "$as_dir" && as_dir=. |
| 1318 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1319 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1320 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 1321 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1322 | break 2 |
| 1323 | fi |
| 1324 | done |
| 1325 | done |
| 1326 | |
| 1327 | fi |
| 1328 | fi |
| 1329 | RANLIB=$ac_cv_prog_RANLIB |
| 1330 | if test -n "$RANLIB"; then |
| 1331 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 1332 | echo "${ECHO_T}$RANLIB" >&6 |
| 1333 | else |
| 1334 | echo "$as_me:$LINENO: result: no" >&5 |
| 1335 | echo "${ECHO_T}no" >&6 |
| 1336 | fi |
| 1337 | |
| 1338 | fi |
| 1339 | if test -z "$ac_cv_prog_RANLIB"; then |
| 1340 | ac_ct_RANLIB=$RANLIB |
| 1341 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1342 | set dummy ranlib; ac_word=$2 |
| 1343 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1344 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1345 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 1346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1347 | else |
| 1348 | if test -n "$ac_ct_RANLIB"; then |
| 1349 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 1350 | else |
| 1351 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1352 | for as_dir in $PATH |
| 1353 | do |
| 1354 | IFS=$as_save_IFS |
| 1355 | test -z "$as_dir" && as_dir=. |
| 1356 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1357 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1358 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 1359 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1360 | break 2 |
| 1361 | fi |
| 1362 | done |
| 1363 | done |
| 1364 | |
| 1365 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 1366 | fi |
| 1367 | fi |
| 1368 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 1369 | if test -n "$ac_ct_RANLIB"; then |
| 1370 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 1371 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 1372 | else |
| 1373 | echo "$as_me:$LINENO: result: no" >&5 |
| 1374 | echo "${ECHO_T}no" >&6 |
| 1375 | fi |
| 1376 | |
| 1377 | RANLIB=$ac_ct_RANLIB |
| 1378 | else |
| 1379 | RANLIB="$ac_cv_prog_RANLIB" |
| 1380 | fi |
| 1381 | |
| 1382 | ac_ext=c |
| 1383 | ac_cpp='$CPP $CPPFLAGS' |
| 1384 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1385 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1386 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1387 | if test -n "$ac_tool_prefix"; then |
| 1388 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1389 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1390 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1391 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1392 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1394 | else |
| 1395 | if test -n "$CC"; then |
| 1396 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1397 | else |
| 1398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1399 | for as_dir in $PATH |
| 1400 | do |
| 1401 | IFS=$as_save_IFS |
| 1402 | test -z "$as_dir" && as_dir=. |
| 1403 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1404 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1405 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1406 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1407 | break 2 |
| 1408 | fi |
| 1409 | done |
| 1410 | done |
| 1411 | |
| 1412 | fi |
| 1413 | fi |
| 1414 | CC=$ac_cv_prog_CC |
| 1415 | if test -n "$CC"; then |
| 1416 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1417 | echo "${ECHO_T}$CC" >&6 |
| 1418 | else |
| 1419 | echo "$as_me:$LINENO: result: no" >&5 |
| 1420 | echo "${ECHO_T}no" >&6 |
| 1421 | fi |
| 1422 | |
| 1423 | fi |
| 1424 | if test -z "$ac_cv_prog_CC"; then |
| 1425 | ac_ct_CC=$CC |
| 1426 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1427 | set dummy gcc; ac_word=$2 |
| 1428 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1429 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1430 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1432 | else |
| 1433 | if test -n "$ac_ct_CC"; then |
| 1434 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1435 | else |
| 1436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1437 | for as_dir in $PATH |
| 1438 | do |
| 1439 | IFS=$as_save_IFS |
| 1440 | test -z "$as_dir" && as_dir=. |
| 1441 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1442 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1443 | ac_cv_prog_ac_ct_CC="gcc" |
| 1444 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1445 | break 2 |
| 1446 | fi |
| 1447 | done |
| 1448 | done |
| 1449 | |
| 1450 | fi |
| 1451 | fi |
| 1452 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1453 | if test -n "$ac_ct_CC"; then |
| 1454 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1455 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1456 | else |
| 1457 | echo "$as_me:$LINENO: result: no" >&5 |
| 1458 | echo "${ECHO_T}no" >&6 |
| 1459 | fi |
| 1460 | |
| 1461 | CC=$ac_ct_CC |
| 1462 | else |
| 1463 | CC="$ac_cv_prog_CC" |
| 1464 | fi |
| 1465 | |
| 1466 | if test -z "$CC"; then |
| 1467 | if test -n "$ac_tool_prefix"; then |
| 1468 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1469 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1470 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1471 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1472 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1474 | else |
| 1475 | if test -n "$CC"; then |
| 1476 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1477 | else |
| 1478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1479 | for as_dir in $PATH |
| 1480 | do |
| 1481 | IFS=$as_save_IFS |
| 1482 | test -z "$as_dir" && as_dir=. |
| 1483 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1484 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1485 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1486 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1487 | break 2 |
| 1488 | fi |
| 1489 | done |
| 1490 | done |
| 1491 | |
| 1492 | fi |
| 1493 | fi |
| 1494 | CC=$ac_cv_prog_CC |
| 1495 | if test -n "$CC"; then |
| 1496 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1497 | echo "${ECHO_T}$CC" >&6 |
| 1498 | else |
| 1499 | echo "$as_me:$LINENO: result: no" >&5 |
| 1500 | echo "${ECHO_T}no" >&6 |
| 1501 | fi |
| 1502 | |
| 1503 | fi |
| 1504 | if test -z "$ac_cv_prog_CC"; then |
| 1505 | ac_ct_CC=$CC |
| 1506 | # Extract the first word of "cc", so it can be a program name with args. |
| 1507 | set dummy cc; ac_word=$2 |
| 1508 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1509 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1510 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1512 | else |
| 1513 | if test -n "$ac_ct_CC"; then |
| 1514 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1515 | else |
| 1516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1517 | for as_dir in $PATH |
| 1518 | do |
| 1519 | IFS=$as_save_IFS |
| 1520 | test -z "$as_dir" && as_dir=. |
| 1521 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1522 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1523 | ac_cv_prog_ac_ct_CC="cc" |
| 1524 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1525 | break 2 |
| 1526 | fi |
| 1527 | done |
| 1528 | done |
| 1529 | |
| 1530 | fi |
| 1531 | fi |
| 1532 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1533 | if test -n "$ac_ct_CC"; then |
| 1534 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1535 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1536 | else |
| 1537 | echo "$as_me:$LINENO: result: no" >&5 |
| 1538 | echo "${ECHO_T}no" >&6 |
| 1539 | fi |
| 1540 | |
| 1541 | CC=$ac_ct_CC |
| 1542 | else |
| 1543 | CC="$ac_cv_prog_CC" |
| 1544 | fi |
| 1545 | |
| 1546 | fi |
| 1547 | if test -z "$CC"; then |
| 1548 | # Extract the first word of "cc", so it can be a program name with args. |
| 1549 | set dummy cc; ac_word=$2 |
| 1550 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1551 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1552 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1554 | else |
| 1555 | if test -n "$CC"; then |
| 1556 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1557 | else |
| 1558 | ac_prog_rejected=no |
| 1559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1560 | for as_dir in $PATH |
| 1561 | do |
| 1562 | IFS=$as_save_IFS |
| 1563 | test -z "$as_dir" && as_dir=. |
| 1564 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1565 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1566 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1567 | ac_prog_rejected=yes |
| 1568 | continue |
| 1569 | fi |
| 1570 | ac_cv_prog_CC="cc" |
| 1571 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1572 | break 2 |
| 1573 | fi |
| 1574 | done |
| 1575 | done |
| 1576 | |
| 1577 | if test $ac_prog_rejected = yes; then |
| 1578 | # We found a bogon in the path, so make sure we never use it. |
| 1579 | set dummy $ac_cv_prog_CC |
| 1580 | shift |
| 1581 | if test $# != 0; then |
| 1582 | # We chose a different compiler from the bogus one. |
| 1583 | # However, it has the same basename, so the bogon will be chosen |
| 1584 | # first if we set CC to just the basename; use the full file name. |
| 1585 | shift |
| 1586 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 1587 | fi |
| 1588 | fi |
| 1589 | fi |
| 1590 | fi |
| 1591 | CC=$ac_cv_prog_CC |
| 1592 | if test -n "$CC"; then |
| 1593 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1594 | echo "${ECHO_T}$CC" >&6 |
| 1595 | else |
| 1596 | echo "$as_me:$LINENO: result: no" >&5 |
| 1597 | echo "${ECHO_T}no" >&6 |
| 1598 | fi |
| 1599 | |
| 1600 | fi |
| 1601 | if test -z "$CC"; then |
| 1602 | if test -n "$ac_tool_prefix"; then |
| 1603 | for ac_prog in cl |
| 1604 | do |
| 1605 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1606 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1607 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1608 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1609 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1611 | else |
| 1612 | if test -n "$CC"; then |
| 1613 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1614 | else |
| 1615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1616 | for as_dir in $PATH |
| 1617 | do |
| 1618 | IFS=$as_save_IFS |
| 1619 | test -z "$as_dir" && as_dir=. |
| 1620 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1621 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1622 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1623 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1624 | break 2 |
| 1625 | fi |
| 1626 | done |
| 1627 | done |
| 1628 | |
| 1629 | fi |
| 1630 | fi |
| 1631 | CC=$ac_cv_prog_CC |
| 1632 | if test -n "$CC"; then |
| 1633 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1634 | echo "${ECHO_T}$CC" >&6 |
| 1635 | else |
| 1636 | echo "$as_me:$LINENO: result: no" >&5 |
| 1637 | echo "${ECHO_T}no" >&6 |
| 1638 | fi |
| 1639 | |
| 1640 | test -n "$CC" && break |
| 1641 | done |
| 1642 | fi |
| 1643 | if test -z "$CC"; then |
| 1644 | ac_ct_CC=$CC |
| 1645 | for ac_prog in cl |
| 1646 | do |
| 1647 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1648 | set dummy $ac_prog; ac_word=$2 |
| 1649 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1650 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1651 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1653 | else |
| 1654 | if test -n "$ac_ct_CC"; then |
| 1655 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1656 | else |
| 1657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1658 | for as_dir in $PATH |
| 1659 | do |
| 1660 | IFS=$as_save_IFS |
| 1661 | test -z "$as_dir" && as_dir=. |
| 1662 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1663 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1664 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1665 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1666 | break 2 |
| 1667 | fi |
| 1668 | done |
| 1669 | done |
| 1670 | |
| 1671 | fi |
| 1672 | fi |
| 1673 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1674 | if test -n "$ac_ct_CC"; then |
| 1675 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1676 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1677 | else |
| 1678 | echo "$as_me:$LINENO: result: no" >&5 |
| 1679 | echo "${ECHO_T}no" >&6 |
| 1680 | fi |
| 1681 | |
| 1682 | test -n "$ac_ct_CC" && break |
| 1683 | done |
| 1684 | |
| 1685 | CC=$ac_ct_CC |
| 1686 | fi |
| 1687 | |
| 1688 | fi |
| 1689 | |
| 1690 | |
| 1691 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1692 | See \`config.log' for more details." >&5 |
| 1693 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1694 | See \`config.log' for more details." >&2;} |
| 1695 | { (exit 1); exit 1; }; } |
| 1696 | |
| 1697 | # Provide some information about the compiler. |
| 1698 | echo "$as_me:$LINENO:" \ |
| 1699 | "checking for C compiler version" >&5 |
| 1700 | ac_compiler=`set X $ac_compile; echo $2` |
| 1701 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1702 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1703 | ac_status=$? |
| 1704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1705 | (exit $ac_status); } |
| 1706 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1707 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1708 | ac_status=$? |
| 1709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1710 | (exit $ac_status); } |
| 1711 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1712 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1713 | ac_status=$? |
| 1714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1715 | (exit $ac_status); } |
| 1716 | |
| 1717 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1718 | /* confdefs.h. */ |
| 1719 | _ACEOF |
| 1720 | cat confdefs.h >>conftest.$ac_ext |
| 1721 | cat >>conftest.$ac_ext <<_ACEOF |
| 1722 | /* end confdefs.h. */ |
| 1723 | |
| 1724 | int |
| 1725 | main () |
| 1726 | { |
| 1727 | |
| 1728 | ; |
| 1729 | return 0; |
| 1730 | } |
| 1731 | _ACEOF |
| 1732 | ac_clean_files_save=$ac_clean_files |
| 1733 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 1734 | # Try to create an executable without -o first, disregard a.out. |
| 1735 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1736 | # of exeext. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 1737 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 1738 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1739 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1740 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1741 | (eval $ac_link_default) 2>&5 |
| 1742 | ac_status=$? |
| 1743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1744 | (exit $ac_status); }; then |
| 1745 | # Find the output, starting from the most likely. This scheme is |
| 1746 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1747 | # resort. |
| 1748 | |
| 1749 | # Be careful to initialize this variable, since it used to be cached. |
| 1750 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1751 | ac_cv_exeext= |
| 1752 | # b.out is created by i960 compilers. |
| 1753 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1754 | do |
| 1755 | test -f "$ac_file" || continue |
| 1756 | case $ac_file in |
| 1757 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 1758 | ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1759 | conftest.$ac_ext ) |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 1760 | # This is the source file. |
| 1761 | ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1762 | [ab].out ) |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 1763 | # We found the default executable, but exeext='' is most |
| 1764 | # certainly right. |
| 1765 | break;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1766 | *.* ) |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 1767 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1768 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1769 | # but it would be cool to find out if it's true. Does anybody |
| 1770 | # maintain Libtool? --akim. |
| 1771 | export ac_cv_exeext |
| 1772 | break;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1773 | * ) |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 1774 | break;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1775 | esac |
| 1776 | done |
| 1777 | else |
| 1778 | echo "$as_me: failed program was:" >&5 |
| 1779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1780 | |
| 1781 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 1782 | See \`config.log' for more details." >&5 |
| 1783 | echo "$as_me: error: C compiler cannot create executables |
| 1784 | See \`config.log' for more details." >&2;} |
| 1785 | { (exit 77); exit 77; }; } |
| 1786 | fi |
| 1787 | |
| 1788 | ac_exeext=$ac_cv_exeext |
| 1789 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1790 | echo "${ECHO_T}$ac_file" >&6 |
| 1791 | |
| 1792 | # Check the compiler produces executables we can run. If not, either |
| 1793 | # the compiler is broken, or we cross compile. |
| 1794 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 1795 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1796 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1797 | # If not cross compiling, check that we can run a simple program. |
| 1798 | if test "$cross_compiling" != yes; then |
| 1799 | if { ac_try='./$ac_file' |
| 1800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1801 | (eval $ac_try) 2>&5 |
| 1802 | ac_status=$? |
| 1803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1804 | (exit $ac_status); }; }; then |
| 1805 | cross_compiling=no |
| 1806 | else |
| 1807 | if test "$cross_compiling" = maybe; then |
| 1808 | cross_compiling=yes |
| 1809 | else |
| 1810 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 1811 | If you meant to cross compile, use \`--host'. |
| 1812 | See \`config.log' for more details." >&5 |
| 1813 | echo "$as_me: error: cannot run C compiled programs. |
| 1814 | If you meant to cross compile, use \`--host'. |
| 1815 | See \`config.log' for more details." >&2;} |
| 1816 | { (exit 1); exit 1; }; } |
| 1817 | fi |
| 1818 | fi |
| 1819 | fi |
| 1820 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1821 | echo "${ECHO_T}yes" >&6 |
| 1822 | |
| 1823 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 1824 | ac_clean_files=$ac_clean_files_save |
| 1825 | # Check the compiler produces executables we can run. If not, either |
| 1826 | # the compiler is broken, or we cross compile. |
| 1827 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1828 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1829 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1830 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1831 | |
| 1832 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1833 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1834 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1835 | (eval $ac_link) 2>&5 |
| 1836 | ac_status=$? |
| 1837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1838 | (exit $ac_status); }; then |
| 1839 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1840 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1841 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1842 | # `rm'. |
| 1843 | for ac_file in conftest.exe conftest conftest.*; do |
| 1844 | test -f "$ac_file" || continue |
| 1845 | case $ac_file in |
| 1846 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 1847 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 1848 | export ac_cv_exeext |
| 1849 | break;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1850 | * ) break;; |
| 1851 | esac |
| 1852 | done |
| 1853 | else |
| 1854 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1855 | See \`config.log' for more details." >&5 |
| 1856 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1857 | See \`config.log' for more details." >&2;} |
| 1858 | { (exit 1); exit 1; }; } |
| 1859 | fi |
| 1860 | |
| 1861 | rm -f conftest$ac_cv_exeext |
| 1862 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1863 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1864 | |
| 1865 | rm -f conftest.$ac_ext |
| 1866 | EXEEXT=$ac_cv_exeext |
| 1867 | ac_exeext=$EXEEXT |
| 1868 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1869 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 1870 | if test "${ac_cv_objext+set}" = set; then |
| 1871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1872 | else |
| 1873 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1874 | /* confdefs.h. */ |
| 1875 | _ACEOF |
| 1876 | cat confdefs.h >>conftest.$ac_ext |
| 1877 | cat >>conftest.$ac_ext <<_ACEOF |
| 1878 | /* end confdefs.h. */ |
| 1879 | |
| 1880 | int |
| 1881 | main () |
| 1882 | { |
| 1883 | |
| 1884 | ; |
| 1885 | return 0; |
| 1886 | } |
| 1887 | _ACEOF |
| 1888 | rm -f conftest.o conftest.obj |
| 1889 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1890 | (eval $ac_compile) 2>&5 |
| 1891 | ac_status=$? |
| 1892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1893 | (exit $ac_status); }; then |
| 1894 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 1895 | case $ac_file in |
| 1896 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 1897 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1898 | break;; |
| 1899 | esac |
| 1900 | done |
| 1901 | else |
| 1902 | echo "$as_me: failed program was:" >&5 |
| 1903 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1904 | |
| 1905 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 1906 | See \`config.log' for more details." >&5 |
| 1907 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 1908 | See \`config.log' for more details." >&2;} |
| 1909 | { (exit 1); exit 1; }; } |
| 1910 | fi |
| 1911 | |
| 1912 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 1913 | fi |
| 1914 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 1915 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 1916 | OBJEXT=$ac_cv_objext |
| 1917 | ac_objext=$OBJEXT |
| 1918 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 1919 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 1920 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 1921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1922 | else |
| 1923 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1924 | /* confdefs.h. */ |
| 1925 | _ACEOF |
| 1926 | cat confdefs.h >>conftest.$ac_ext |
| 1927 | cat >>conftest.$ac_ext <<_ACEOF |
| 1928 | /* end confdefs.h. */ |
| 1929 | |
| 1930 | int |
| 1931 | main () |
| 1932 | { |
| 1933 | #ifndef __GNUC__ |
| 1934 | choke me |
| 1935 | #endif |
| 1936 | |
| 1937 | ; |
| 1938 | return 0; |
| 1939 | } |
| 1940 | _ACEOF |
| 1941 | rm -f conftest.$ac_objext |
| 1942 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 1943 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1944 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 1945 | grep -v '^ *+' conftest.er1 >conftest.err |
| 1946 | rm -f conftest.er1 |
| 1947 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1949 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 1950 | { ac_try='test -z "$ac_c_werror_flag" |
| 1951 | || test ! -s conftest.err' |
| 1952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1953 | (eval $ac_try) 2>&5 |
| 1954 | ac_status=$? |
| 1955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1956 | (exit $ac_status); }; } && |
| 1957 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1959 | (eval $ac_try) 2>&5 |
| 1960 | ac_status=$? |
| 1961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1962 | (exit $ac_status); }; }; then |
| 1963 | ac_compiler_gnu=yes |
| 1964 | else |
| 1965 | echo "$as_me: failed program was:" >&5 |
| 1966 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1967 | |
| 1968 | ac_compiler_gnu=no |
| 1969 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 1970 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1971 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 1972 | |
| 1973 | fi |
| 1974 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 1975 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 1976 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 1977 | ac_test_CFLAGS=${CFLAGS+set} |
| 1978 | ac_save_CFLAGS=$CFLAGS |
| 1979 | CFLAGS="-g" |
| 1980 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 1981 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 1982 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 1983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1984 | else |
| 1985 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1986 | /* confdefs.h. */ |
| 1987 | _ACEOF |
| 1988 | cat confdefs.h >>conftest.$ac_ext |
| 1989 | cat >>conftest.$ac_ext <<_ACEOF |
| 1990 | /* end confdefs.h. */ |
| 1991 | |
| 1992 | int |
| 1993 | main () |
| 1994 | { |
| 1995 | |
| 1996 | ; |
| 1997 | return 0; |
| 1998 | } |
| 1999 | _ACEOF |
| 2000 | rm -f conftest.$ac_objext |
| 2001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2002 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2003 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2004 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2005 | rm -f conftest.er1 |
| 2006 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2008 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2009 | { ac_try='test -z "$ac_c_werror_flag" |
| 2010 | || test ! -s conftest.err' |
| 2011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2012 | (eval $ac_try) 2>&5 |
| 2013 | ac_status=$? |
| 2014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2015 | (exit $ac_status); }; } && |
| 2016 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2018 | (eval $ac_try) 2>&5 |
| 2019 | ac_status=$? |
| 2020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2021 | (exit $ac_status); }; }; then |
| 2022 | ac_cv_prog_cc_g=yes |
| 2023 | else |
| 2024 | echo "$as_me: failed program was:" >&5 |
| 2025 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2026 | |
| 2027 | ac_cv_prog_cc_g=no |
| 2028 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2029 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2030 | fi |
| 2031 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2032 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2033 | if test "$ac_test_CFLAGS" = set; then |
| 2034 | CFLAGS=$ac_save_CFLAGS |
| 2035 | elif test $ac_cv_prog_cc_g = yes; then |
| 2036 | if test "$GCC" = yes; then |
| 2037 | CFLAGS="-g -O2" |
| 2038 | else |
| 2039 | CFLAGS="-g" |
| 2040 | fi |
| 2041 | else |
| 2042 | if test "$GCC" = yes; then |
| 2043 | CFLAGS="-O2" |
| 2044 | else |
| 2045 | CFLAGS= |
| 2046 | fi |
| 2047 | fi |
| 2048 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2049 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2050 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2052 | else |
| 2053 | ac_cv_prog_cc_stdc=no |
| 2054 | ac_save_CC=$CC |
| 2055 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2056 | /* confdefs.h. */ |
| 2057 | _ACEOF |
| 2058 | cat confdefs.h >>conftest.$ac_ext |
| 2059 | cat >>conftest.$ac_ext <<_ACEOF |
| 2060 | /* end confdefs.h. */ |
| 2061 | #include <stdarg.h> |
| 2062 | #include <stdio.h> |
| 2063 | #include <sys/types.h> |
| 2064 | #include <sys/stat.h> |
| 2065 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2066 | struct buf { int x; }; |
| 2067 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2068 | static char *e (p, i) |
| 2069 | char **p; |
| 2070 | int i; |
| 2071 | { |
| 2072 | return p[i]; |
| 2073 | } |
| 2074 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2075 | { |
| 2076 | char *s; |
| 2077 | va_list v; |
| 2078 | va_start (v,p); |
| 2079 | s = g (p, va_arg (v,int)); |
| 2080 | va_end (v); |
| 2081 | return s; |
| 2082 | } |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2083 | |
| 2084 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2085 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2086 | These don't provoke an error unfortunately, instead are silently treated |
| 2087 | as 'x'. The following induces an error, until -std1 is added to get |
| 2088 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2089 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2090 | that's true only with -std1. */ |
| 2091 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2092 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2093 | int test (int i, double x); |
| 2094 | struct s1 {int (*f) (int a);}; |
| 2095 | struct s2 {int (*f) (double a);}; |
| 2096 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2097 | int argc; |
| 2098 | char **argv; |
| 2099 | int |
| 2100 | main () |
| 2101 | { |
| 2102 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2103 | ; |
| 2104 | return 0; |
| 2105 | } |
| 2106 | _ACEOF |
| 2107 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2108 | # breaks some systems' header files. |
| 2109 | # AIX -qlanglvl=ansi |
| 2110 | # Ultrix and OSF/1 -std1 |
| 2111 | # HP-UX 10.20 and later -Ae |
| 2112 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2113 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2114 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2115 | do |
| 2116 | CC="$ac_save_CC $ac_arg" |
| 2117 | rm -f conftest.$ac_objext |
| 2118 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2119 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2120 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2121 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2122 | rm -f conftest.er1 |
| 2123 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2125 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2126 | { ac_try='test -z "$ac_c_werror_flag" |
| 2127 | || test ! -s conftest.err' |
| 2128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2129 | (eval $ac_try) 2>&5 |
| 2130 | ac_status=$? |
| 2131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2132 | (exit $ac_status); }; } && |
| 2133 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2135 | (eval $ac_try) 2>&5 |
| 2136 | ac_status=$? |
| 2137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2138 | (exit $ac_status); }; }; then |
| 2139 | ac_cv_prog_cc_stdc=$ac_arg |
| 2140 | break |
| 2141 | else |
| 2142 | echo "$as_me: failed program was:" >&5 |
| 2143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2144 | |
| 2145 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2146 | rm -f conftest.err conftest.$ac_objext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2147 | done |
| 2148 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2149 | CC=$ac_save_CC |
| 2150 | |
| 2151 | fi |
| 2152 | |
| 2153 | case "x$ac_cv_prog_cc_stdc" in |
| 2154 | x|xno) |
| 2155 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2156 | echo "${ECHO_T}none needed" >&6 ;; |
| 2157 | *) |
| 2158 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2159 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2160 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2161 | esac |
| 2162 | |
| 2163 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2164 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2165 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2166 | # the declaration of exit, since it's the most demanding environment. |
| 2167 | cat >conftest.$ac_ext <<_ACEOF |
| 2168 | #ifndef __cplusplus |
| 2169 | choke me |
| 2170 | #endif |
| 2171 | _ACEOF |
| 2172 | rm -f conftest.$ac_objext |
| 2173 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2174 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2175 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2176 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2177 | rm -f conftest.er1 |
| 2178 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2180 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2181 | { ac_try='test -z "$ac_c_werror_flag" |
| 2182 | || test ! -s conftest.err' |
| 2183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2184 | (eval $ac_try) 2>&5 |
| 2185 | ac_status=$? |
| 2186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2187 | (exit $ac_status); }; } && |
| 2188 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2190 | (eval $ac_try) 2>&5 |
| 2191 | ac_status=$? |
| 2192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2193 | (exit $ac_status); }; }; then |
| 2194 | for ac_declaration in \ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2195 | '' \ |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2196 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2197 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2198 | 'extern "C" void exit (int) throw ();' \ |
| 2199 | 'extern "C" void exit (int);' \ |
| 2200 | 'void exit (int);' |
| 2201 | do |
| 2202 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2203 | /* confdefs.h. */ |
| 2204 | _ACEOF |
| 2205 | cat confdefs.h >>conftest.$ac_ext |
| 2206 | cat >>conftest.$ac_ext <<_ACEOF |
| 2207 | /* end confdefs.h. */ |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2208 | $ac_declaration |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2209 | #include <stdlib.h> |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2210 | int |
| 2211 | main () |
| 2212 | { |
| 2213 | exit (42); |
| 2214 | ; |
| 2215 | return 0; |
| 2216 | } |
| 2217 | _ACEOF |
| 2218 | rm -f conftest.$ac_objext |
| 2219 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2220 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2221 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2222 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2223 | rm -f conftest.er1 |
| 2224 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2226 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2227 | { ac_try='test -z "$ac_c_werror_flag" |
| 2228 | || test ! -s conftest.err' |
| 2229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2230 | (eval $ac_try) 2>&5 |
| 2231 | ac_status=$? |
| 2232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2233 | (exit $ac_status); }; } && |
| 2234 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2236 | (eval $ac_try) 2>&5 |
| 2237 | ac_status=$? |
| 2238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2239 | (exit $ac_status); }; }; then |
| 2240 | : |
| 2241 | else |
| 2242 | echo "$as_me: failed program was:" >&5 |
| 2243 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2244 | |
| 2245 | continue |
| 2246 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2247 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2248 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2249 | /* confdefs.h. */ |
| 2250 | _ACEOF |
| 2251 | cat confdefs.h >>conftest.$ac_ext |
| 2252 | cat >>conftest.$ac_ext <<_ACEOF |
| 2253 | /* end confdefs.h. */ |
| 2254 | $ac_declaration |
| 2255 | int |
| 2256 | main () |
| 2257 | { |
| 2258 | exit (42); |
| 2259 | ; |
| 2260 | return 0; |
| 2261 | } |
| 2262 | _ACEOF |
| 2263 | rm -f conftest.$ac_objext |
| 2264 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2265 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2266 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2267 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2268 | rm -f conftest.er1 |
| 2269 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2271 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2272 | { ac_try='test -z "$ac_c_werror_flag" |
| 2273 | || test ! -s conftest.err' |
| 2274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2275 | (eval $ac_try) 2>&5 |
| 2276 | ac_status=$? |
| 2277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2278 | (exit $ac_status); }; } && |
| 2279 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2281 | (eval $ac_try) 2>&5 |
| 2282 | ac_status=$? |
| 2283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2284 | (exit $ac_status); }; }; then |
| 2285 | break |
| 2286 | else |
| 2287 | echo "$as_me: failed program was:" >&5 |
| 2288 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2289 | |
| 2290 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2291 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2292 | done |
| 2293 | rm -f conftest* |
| 2294 | if test -n "$ac_declaration"; then |
| 2295 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2296 | echo $ac_declaration >>confdefs.h |
| 2297 | echo '#endif' >>confdefs.h |
| 2298 | fi |
| 2299 | |
| 2300 | else |
| 2301 | echo "$as_me: failed program was:" >&5 |
| 2302 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2303 | |
| 2304 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2305 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2306 | ac_ext=c |
| 2307 | ac_cpp='$CPP $CPPFLAGS' |
| 2308 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2309 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2310 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2311 | |
| 2312 | |
| 2313 | |
| 2314 | |
| 2315 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 2316 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 2317 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 2318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2319 | else |
| 2320 | ac_check_lib_save_LIBS=$LIBS |
| 2321 | LIBS="-lsocket $LIBS" |
| 2322 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2323 | /* confdefs.h. */ |
| 2324 | _ACEOF |
| 2325 | cat confdefs.h >>conftest.$ac_ext |
| 2326 | cat >>conftest.$ac_ext <<_ACEOF |
| 2327 | /* end confdefs.h. */ |
| 2328 | |
| 2329 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2330 | #ifdef __cplusplus |
| 2331 | extern "C" |
| 2332 | #endif |
| 2333 | /* We use char because int might match the return type of a gcc2 |
| 2334 | builtin and then its argument prototype would still apply. */ |
| 2335 | char socket (); |
| 2336 | int |
| 2337 | main () |
| 2338 | { |
| 2339 | socket (); |
| 2340 | ; |
| 2341 | return 0; |
| 2342 | } |
| 2343 | _ACEOF |
| 2344 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2345 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2346 | (eval $ac_link) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2347 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2348 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2349 | rm -f conftest.er1 |
| 2350 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2352 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2353 | { ac_try='test -z "$ac_c_werror_flag" |
| 2354 | || test ! -s conftest.err' |
| 2355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2356 | (eval $ac_try) 2>&5 |
| 2357 | ac_status=$? |
| 2358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2359 | (exit $ac_status); }; } && |
| 2360 | { ac_try='test -s conftest$ac_exeext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2362 | (eval $ac_try) 2>&5 |
| 2363 | ac_status=$? |
| 2364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2365 | (exit $ac_status); }; }; then |
| 2366 | ac_cv_lib_socket_socket=yes |
| 2367 | else |
| 2368 | echo "$as_me: failed program was:" >&5 |
| 2369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2370 | |
| 2371 | ac_cv_lib_socket_socket=no |
| 2372 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2373 | rm -f conftest.err conftest.$ac_objext \ |
| 2374 | conftest$ac_exeext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2375 | LIBS=$ac_check_lib_save_LIBS |
| 2376 | fi |
| 2377 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 2378 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 2379 | if test $ac_cv_lib_socket_socket = yes; then |
| 2380 | cat >>confdefs.h <<_ACEOF |
| 2381 | #define HAVE_LIBSOCKET 1 |
| 2382 | _ACEOF |
| 2383 | |
| 2384 | LIBS="-lsocket $LIBS" |
| 2385 | |
| 2386 | fi |
| 2387 | |
| 2388 | |
| 2389 | echo "$as_me:$LINENO: checking for srtp_init in -lsrtp" >&5 |
| 2390 | echo $ECHO_N "checking for srtp_init in -lsrtp... $ECHO_C" >&6 |
| 2391 | if test "${ac_cv_lib_srtp_srtp_init+set}" = set; then |
| 2392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2393 | else |
| 2394 | ac_check_lib_save_LIBS=$LIBS |
| 2395 | LIBS="-lsrtp $LIBS" |
| 2396 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2397 | /* confdefs.h. */ |
| 2398 | _ACEOF |
| 2399 | cat confdefs.h >>conftest.$ac_ext |
| 2400 | cat >>conftest.$ac_ext <<_ACEOF |
| 2401 | /* end confdefs.h. */ |
| 2402 | |
| 2403 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2404 | #ifdef __cplusplus |
| 2405 | extern "C" |
| 2406 | #endif |
| 2407 | /* We use char because int might match the return type of a gcc2 |
| 2408 | builtin and then its argument prototype would still apply. */ |
| 2409 | char srtp_init (); |
| 2410 | int |
| 2411 | main () |
| 2412 | { |
| 2413 | srtp_init (); |
| 2414 | ; |
| 2415 | return 0; |
| 2416 | } |
| 2417 | _ACEOF |
| 2418 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2419 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2420 | (eval $ac_link) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2421 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2422 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2423 | rm -f conftest.er1 |
| 2424 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2426 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2427 | { ac_try='test -z "$ac_c_werror_flag" |
| 2428 | || test ! -s conftest.err' |
| 2429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2430 | (eval $ac_try) 2>&5 |
| 2431 | ac_status=$? |
| 2432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2433 | (exit $ac_status); }; } && |
| 2434 | { ac_try='test -s conftest$ac_exeext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2436 | (eval $ac_try) 2>&5 |
| 2437 | ac_status=$? |
| 2438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2439 | (exit $ac_status); }; }; then |
| 2440 | ac_cv_lib_srtp_srtp_init=yes |
| 2441 | else |
| 2442 | echo "$as_me: failed program was:" >&5 |
| 2443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2444 | |
| 2445 | ac_cv_lib_srtp_srtp_init=no |
| 2446 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2447 | rm -f conftest.err conftest.$ac_objext \ |
| 2448 | conftest$ac_exeext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2449 | LIBS=$ac_check_lib_save_LIBS |
| 2450 | fi |
| 2451 | echo "$as_me:$LINENO: result: $ac_cv_lib_srtp_srtp_init" >&5 |
| 2452 | echo "${ECHO_T}$ac_cv_lib_srtp_srtp_init" >&6 |
| 2453 | if test $ac_cv_lib_srtp_srtp_init = yes; then |
| 2454 | cat >>confdefs.h <<_ACEOF |
| 2455 | #define HAVE_LIBSRTP 1 |
| 2456 | _ACEOF |
| 2457 | |
| 2458 | LIBS="-lsrtp $LIBS" |
| 2459 | |
| 2460 | fi |
| 2461 | |
| 2462 | |
| 2463 | |
| 2464 | echo "$as_me:$LINENO: checking for /dev/urandom" >&5 |
| 2465 | echo $ECHO_N "checking for /dev/urandom... $ECHO_C" >&6 |
| 2466 | if test "${ac_cv_file__dev_urandom+set}" = set; then |
| 2467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2468 | else |
| 2469 | test "$cross_compiling" = yes && |
| 2470 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
| 2471 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
| 2472 | { (exit 1); exit 1; }; } |
| 2473 | if test -r "/dev/urandom"; then |
| 2474 | ac_cv_file__dev_urandom=yes |
| 2475 | else |
| 2476 | ac_cv_file__dev_urandom=no |
| 2477 | fi |
| 2478 | fi |
| 2479 | echo "$as_me:$LINENO: result: $ac_cv_file__dev_urandom" >&5 |
| 2480 | echo "${ECHO_T}$ac_cv_file__dev_urandom" >&6 |
| 2481 | if test $ac_cv_file__dev_urandom = yes; then |
| 2482 | DEV_URANDOM=1 |
| 2483 | else |
| 2484 | DEV_URANDOM=0 |
| 2485 | fi |
| 2486 | |
| 2487 | if test $DEV_URANDOM = 1; then |
| 2488 | cat >>confdefs.h <<\_ACEOF |
| 2489 | #define DEV_URANDOM 1 |
| 2490 | _ACEOF |
| 2491 | |
| 2492 | RNG_OBJS=crypto/rng/rand_source.c |
| 2493 | |
| 2494 | fi |
| 2495 | |
| 2496 | |
| 2497 | ac_ext=c |
| 2498 | ac_cpp='$CPP $CPPFLAGS' |
| 2499 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2500 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2501 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2502 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2503 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 2504 | # On Suns, sometimes $CPP names a directory. |
| 2505 | if test -n "$CPP" && test -d "$CPP"; then |
| 2506 | CPP= |
| 2507 | fi |
| 2508 | if test -z "$CPP"; then |
| 2509 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2511 | else |
| 2512 | # Double quotes because CPP needs to be expanded |
| 2513 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2514 | do |
| 2515 | ac_preproc_ok=false |
| 2516 | for ac_c_preproc_warn_flag in '' yes |
| 2517 | do |
| 2518 | # Use a header file that comes with gcc, so configuring glibc |
| 2519 | # with a fresh cross-compiler works. |
| 2520 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2521 | # <limits.h> exists even on freestanding compilers. |
| 2522 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2523 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2524 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2525 | /* confdefs.h. */ |
| 2526 | _ACEOF |
| 2527 | cat confdefs.h >>conftest.$ac_ext |
| 2528 | cat >>conftest.$ac_ext <<_ACEOF |
| 2529 | /* end confdefs.h. */ |
| 2530 | #ifdef __STDC__ |
| 2531 | # include <limits.h> |
| 2532 | #else |
| 2533 | # include <assert.h> |
| 2534 | #endif |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2535 | Syntax error |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2536 | _ACEOF |
| 2537 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2538 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2539 | ac_status=$? |
| 2540 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2541 | rm -f conftest.er1 |
| 2542 | cat conftest.err >&5 |
| 2543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2544 | (exit $ac_status); } >/dev/null; then |
| 2545 | if test -s conftest.err; then |
| 2546 | ac_cpp_err=$ac_c_preproc_warn_flag |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2547 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2548 | else |
| 2549 | ac_cpp_err= |
| 2550 | fi |
| 2551 | else |
| 2552 | ac_cpp_err=yes |
| 2553 | fi |
| 2554 | if test -z "$ac_cpp_err"; then |
| 2555 | : |
| 2556 | else |
| 2557 | echo "$as_me: failed program was:" >&5 |
| 2558 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2559 | |
| 2560 | # Broken: fails on valid input. |
| 2561 | continue |
| 2562 | fi |
| 2563 | rm -f conftest.err conftest.$ac_ext |
| 2564 | |
| 2565 | # OK, works on sane cases. Now check whether non-existent headers |
| 2566 | # can be detected and how. |
| 2567 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2568 | /* confdefs.h. */ |
| 2569 | _ACEOF |
| 2570 | cat confdefs.h >>conftest.$ac_ext |
| 2571 | cat >>conftest.$ac_ext <<_ACEOF |
| 2572 | /* end confdefs.h. */ |
| 2573 | #include <ac_nonexistent.h> |
| 2574 | _ACEOF |
| 2575 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2576 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2577 | ac_status=$? |
| 2578 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2579 | rm -f conftest.er1 |
| 2580 | cat conftest.err >&5 |
| 2581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2582 | (exit $ac_status); } >/dev/null; then |
| 2583 | if test -s conftest.err; then |
| 2584 | ac_cpp_err=$ac_c_preproc_warn_flag |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2585 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2586 | else |
| 2587 | ac_cpp_err= |
| 2588 | fi |
| 2589 | else |
| 2590 | ac_cpp_err=yes |
| 2591 | fi |
| 2592 | if test -z "$ac_cpp_err"; then |
| 2593 | # Broken: success on invalid input. |
| 2594 | continue |
| 2595 | else |
| 2596 | echo "$as_me: failed program was:" >&5 |
| 2597 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2598 | |
| 2599 | # Passes both tests. |
| 2600 | ac_preproc_ok=: |
| 2601 | break |
| 2602 | fi |
| 2603 | rm -f conftest.err conftest.$ac_ext |
| 2604 | |
| 2605 | done |
| 2606 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2607 | rm -f conftest.err conftest.$ac_ext |
| 2608 | if $ac_preproc_ok; then |
| 2609 | break |
| 2610 | fi |
| 2611 | |
| 2612 | done |
| 2613 | ac_cv_prog_CPP=$CPP |
| 2614 | |
| 2615 | fi |
| 2616 | CPP=$ac_cv_prog_CPP |
| 2617 | else |
| 2618 | ac_cv_prog_CPP=$CPP |
| 2619 | fi |
| 2620 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2621 | echo "${ECHO_T}$CPP" >&6 |
| 2622 | ac_preproc_ok=false |
| 2623 | for ac_c_preproc_warn_flag in '' yes |
| 2624 | do |
| 2625 | # Use a header file that comes with gcc, so configuring glibc |
| 2626 | # with a fresh cross-compiler works. |
| 2627 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2628 | # <limits.h> exists even on freestanding compilers. |
| 2629 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2630 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2631 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2632 | /* confdefs.h. */ |
| 2633 | _ACEOF |
| 2634 | cat confdefs.h >>conftest.$ac_ext |
| 2635 | cat >>conftest.$ac_ext <<_ACEOF |
| 2636 | /* end confdefs.h. */ |
| 2637 | #ifdef __STDC__ |
| 2638 | # include <limits.h> |
| 2639 | #else |
| 2640 | # include <assert.h> |
| 2641 | #endif |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2642 | Syntax error |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2643 | _ACEOF |
| 2644 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2645 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2646 | ac_status=$? |
| 2647 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2648 | rm -f conftest.er1 |
| 2649 | cat conftest.err >&5 |
| 2650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2651 | (exit $ac_status); } >/dev/null; then |
| 2652 | if test -s conftest.err; then |
| 2653 | ac_cpp_err=$ac_c_preproc_warn_flag |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2654 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2655 | else |
| 2656 | ac_cpp_err= |
| 2657 | fi |
| 2658 | else |
| 2659 | ac_cpp_err=yes |
| 2660 | fi |
| 2661 | if test -z "$ac_cpp_err"; then |
| 2662 | : |
| 2663 | else |
| 2664 | echo "$as_me: failed program was:" >&5 |
| 2665 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2666 | |
| 2667 | # Broken: fails on valid input. |
| 2668 | continue |
| 2669 | fi |
| 2670 | rm -f conftest.err conftest.$ac_ext |
| 2671 | |
| 2672 | # OK, works on sane cases. Now check whether non-existent headers |
| 2673 | # can be detected and how. |
| 2674 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2675 | /* confdefs.h. */ |
| 2676 | _ACEOF |
| 2677 | cat confdefs.h >>conftest.$ac_ext |
| 2678 | cat >>conftest.$ac_ext <<_ACEOF |
| 2679 | /* end confdefs.h. */ |
| 2680 | #include <ac_nonexistent.h> |
| 2681 | _ACEOF |
| 2682 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2683 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2684 | ac_status=$? |
| 2685 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2686 | rm -f conftest.er1 |
| 2687 | cat conftest.err >&5 |
| 2688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2689 | (exit $ac_status); } >/dev/null; then |
| 2690 | if test -s conftest.err; then |
| 2691 | ac_cpp_err=$ac_c_preproc_warn_flag |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2692 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2693 | else |
| 2694 | ac_cpp_err= |
| 2695 | fi |
| 2696 | else |
| 2697 | ac_cpp_err=yes |
| 2698 | fi |
| 2699 | if test -z "$ac_cpp_err"; then |
| 2700 | # Broken: success on invalid input. |
| 2701 | continue |
| 2702 | else |
| 2703 | echo "$as_me: failed program was:" >&5 |
| 2704 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2705 | |
| 2706 | # Passes both tests. |
| 2707 | ac_preproc_ok=: |
| 2708 | break |
| 2709 | fi |
| 2710 | rm -f conftest.err conftest.$ac_ext |
| 2711 | |
| 2712 | done |
| 2713 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2714 | rm -f conftest.err conftest.$ac_ext |
| 2715 | if $ac_preproc_ok; then |
| 2716 | : |
| 2717 | else |
| 2718 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 2719 | See \`config.log' for more details." >&5 |
| 2720 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 2721 | See \`config.log' for more details." >&2;} |
| 2722 | { (exit 1); exit 1; }; } |
| 2723 | fi |
| 2724 | |
| 2725 | ac_ext=c |
| 2726 | ac_cpp='$CPP $CPPFLAGS' |
| 2727 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2728 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2729 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2730 | |
| 2731 | |
| 2732 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 2733 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 2734 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 2735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2736 | else |
| 2737 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 2738 | then ac_cv_prog_egrep='grep -E' |
| 2739 | else ac_cv_prog_egrep='egrep' |
| 2740 | fi |
| 2741 | fi |
| 2742 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 2743 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 2744 | EGREP=$ac_cv_prog_egrep |
| 2745 | |
| 2746 | |
| 2747 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 2748 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 2749 | if test "${ac_cv_header_stdc+set}" = set; then |
| 2750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2751 | else |
| 2752 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2753 | /* confdefs.h. */ |
| 2754 | _ACEOF |
| 2755 | cat confdefs.h >>conftest.$ac_ext |
| 2756 | cat >>conftest.$ac_ext <<_ACEOF |
| 2757 | /* end confdefs.h. */ |
| 2758 | #include <stdlib.h> |
| 2759 | #include <stdarg.h> |
| 2760 | #include <string.h> |
| 2761 | #include <float.h> |
| 2762 | |
| 2763 | int |
| 2764 | main () |
| 2765 | { |
| 2766 | |
| 2767 | ; |
| 2768 | return 0; |
| 2769 | } |
| 2770 | _ACEOF |
| 2771 | rm -f conftest.$ac_objext |
| 2772 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2773 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2774 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2775 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2776 | rm -f conftest.er1 |
| 2777 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2779 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2780 | { ac_try='test -z "$ac_c_werror_flag" |
| 2781 | || test ! -s conftest.err' |
| 2782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2783 | (eval $ac_try) 2>&5 |
| 2784 | ac_status=$? |
| 2785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2786 | (exit $ac_status); }; } && |
| 2787 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2789 | (eval $ac_try) 2>&5 |
| 2790 | ac_status=$? |
| 2791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2792 | (exit $ac_status); }; }; then |
| 2793 | ac_cv_header_stdc=yes |
| 2794 | else |
| 2795 | echo "$as_me: failed program was:" >&5 |
| 2796 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2797 | |
| 2798 | ac_cv_header_stdc=no |
| 2799 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2800 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2801 | |
| 2802 | if test $ac_cv_header_stdc = yes; then |
| 2803 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 2804 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2805 | /* confdefs.h. */ |
| 2806 | _ACEOF |
| 2807 | cat confdefs.h >>conftest.$ac_ext |
| 2808 | cat >>conftest.$ac_ext <<_ACEOF |
| 2809 | /* end confdefs.h. */ |
| 2810 | #include <string.h> |
| 2811 | |
| 2812 | _ACEOF |
| 2813 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2814 | $EGREP "memchr" >/dev/null 2>&1; then |
| 2815 | : |
| 2816 | else |
| 2817 | ac_cv_header_stdc=no |
| 2818 | fi |
| 2819 | rm -f conftest* |
| 2820 | |
| 2821 | fi |
| 2822 | |
| 2823 | if test $ac_cv_header_stdc = yes; then |
| 2824 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 2825 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2826 | /* confdefs.h. */ |
| 2827 | _ACEOF |
| 2828 | cat confdefs.h >>conftest.$ac_ext |
| 2829 | cat >>conftest.$ac_ext <<_ACEOF |
| 2830 | /* end confdefs.h. */ |
| 2831 | #include <stdlib.h> |
| 2832 | |
| 2833 | _ACEOF |
| 2834 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2835 | $EGREP "free" >/dev/null 2>&1; then |
| 2836 | : |
| 2837 | else |
| 2838 | ac_cv_header_stdc=no |
| 2839 | fi |
| 2840 | rm -f conftest* |
| 2841 | |
| 2842 | fi |
| 2843 | |
| 2844 | if test $ac_cv_header_stdc = yes; then |
| 2845 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 2846 | if test "$cross_compiling" = yes; then |
| 2847 | : |
| 2848 | else |
| 2849 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2850 | /* confdefs.h. */ |
| 2851 | _ACEOF |
| 2852 | cat confdefs.h >>conftest.$ac_ext |
| 2853 | cat >>conftest.$ac_ext <<_ACEOF |
| 2854 | /* end confdefs.h. */ |
| 2855 | #include <ctype.h> |
| 2856 | #if ((' ' & 0x0FF) == 0x020) |
| 2857 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2858 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 2859 | #else |
| 2860 | # define ISLOWER(c) \ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2861 | (('a' <= (c) && (c) <= 'i') \ |
| 2862 | || ('j' <= (c) && (c) <= 'r') \ |
| 2863 | || ('s' <= (c) && (c) <= 'z')) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2864 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 2865 | #endif |
| 2866 | |
| 2867 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 2868 | int |
| 2869 | main () |
| 2870 | { |
| 2871 | int i; |
| 2872 | for (i = 0; i < 256; i++) |
| 2873 | if (XOR (islower (i), ISLOWER (i)) |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2874 | || toupper (i) != TOUPPER (i)) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2875 | exit(2); |
| 2876 | exit (0); |
| 2877 | } |
| 2878 | _ACEOF |
| 2879 | rm -f conftest$ac_exeext |
| 2880 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2881 | (eval $ac_link) 2>&5 |
| 2882 | ac_status=$? |
| 2883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2884 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 2885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2886 | (eval $ac_try) 2>&5 |
| 2887 | ac_status=$? |
| 2888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2889 | (exit $ac_status); }; }; then |
| 2890 | : |
| 2891 | else |
| 2892 | echo "$as_me: program exited with status $ac_status" >&5 |
| 2893 | echo "$as_me: failed program was:" >&5 |
| 2894 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2895 | |
| 2896 | ( exit $ac_status ) |
| 2897 | ac_cv_header_stdc=no |
| 2898 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2899 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2900 | fi |
| 2901 | fi |
| 2902 | fi |
| 2903 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 2904 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 2905 | if test $ac_cv_header_stdc = yes; then |
| 2906 | |
| 2907 | cat >>confdefs.h <<\_ACEOF |
| 2908 | #define STDC_HEADERS 1 |
| 2909 | _ACEOF |
| 2910 | |
| 2911 | fi |
| 2912 | |
| 2913 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 2914 | |
| 2915 | |
| 2916 | |
| 2917 | |
| 2918 | |
| 2919 | |
| 2920 | |
| 2921 | |
| 2922 | |
| 2923 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2924 | inttypes.h stdint.h unistd.h |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2925 | do |
| 2926 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 2927 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 2928 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 2929 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 2930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2931 | else |
| 2932 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2933 | /* confdefs.h. */ |
| 2934 | _ACEOF |
| 2935 | cat confdefs.h >>conftest.$ac_ext |
| 2936 | cat >>conftest.$ac_ext <<_ACEOF |
| 2937 | /* end confdefs.h. */ |
| 2938 | $ac_includes_default |
| 2939 | |
| 2940 | #include <$ac_header> |
| 2941 | _ACEOF |
| 2942 | rm -f conftest.$ac_objext |
| 2943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2944 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2945 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2946 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2947 | rm -f conftest.er1 |
| 2948 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2950 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2951 | { ac_try='test -z "$ac_c_werror_flag" |
| 2952 | || test ! -s conftest.err' |
| 2953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2954 | (eval $ac_try) 2>&5 |
| 2955 | ac_status=$? |
| 2956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2957 | (exit $ac_status); }; } && |
| 2958 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2960 | (eval $ac_try) 2>&5 |
| 2961 | ac_status=$? |
| 2962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2963 | (exit $ac_status); }; }; then |
| 2964 | eval "$as_ac_Header=yes" |
| 2965 | else |
| 2966 | echo "$as_me: failed program was:" >&5 |
| 2967 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2968 | |
| 2969 | eval "$as_ac_Header=no" |
| 2970 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 2971 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2972 | fi |
| 2973 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 2974 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 2975 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 2976 | cat >>confdefs.h <<_ACEOF |
| 2977 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 2978 | _ACEOF |
| 2979 | |
| 2980 | fi |
| 2981 | |
| 2982 | done |
| 2983 | |
| 2984 | |
| 2985 | |
| 2986 | for ac_header in stdlib.h |
| 2987 | do |
| 2988 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 2989 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 2990 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 2991 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 2992 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 2993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2994 | fi |
| 2995 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 2996 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 2997 | else |
| 2998 | # Is the header compilable? |
| 2999 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3000 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3001 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3002 | /* confdefs.h. */ |
| 3003 | _ACEOF |
| 3004 | cat confdefs.h >>conftest.$ac_ext |
| 3005 | cat >>conftest.$ac_ext <<_ACEOF |
| 3006 | /* end confdefs.h. */ |
| 3007 | $ac_includes_default |
| 3008 | #include <$ac_header> |
| 3009 | _ACEOF |
| 3010 | rm -f conftest.$ac_objext |
| 3011 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3012 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3013 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3014 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3015 | rm -f conftest.er1 |
| 3016 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3018 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3019 | { ac_try='test -z "$ac_c_werror_flag" |
| 3020 | || test ! -s conftest.err' |
| 3021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3022 | (eval $ac_try) 2>&5 |
| 3023 | ac_status=$? |
| 3024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3025 | (exit $ac_status); }; } && |
| 3026 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3028 | (eval $ac_try) 2>&5 |
| 3029 | ac_status=$? |
| 3030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3031 | (exit $ac_status); }; }; then |
| 3032 | ac_header_compiler=yes |
| 3033 | else |
| 3034 | echo "$as_me: failed program was:" >&5 |
| 3035 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3036 | |
| 3037 | ac_header_compiler=no |
| 3038 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3039 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3040 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3041 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3042 | |
| 3043 | # Is the header present? |
| 3044 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3045 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3046 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3047 | /* confdefs.h. */ |
| 3048 | _ACEOF |
| 3049 | cat confdefs.h >>conftest.$ac_ext |
| 3050 | cat >>conftest.$ac_ext <<_ACEOF |
| 3051 | /* end confdefs.h. */ |
| 3052 | #include <$ac_header> |
| 3053 | _ACEOF |
| 3054 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3055 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3056 | ac_status=$? |
| 3057 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3058 | rm -f conftest.er1 |
| 3059 | cat conftest.err >&5 |
| 3060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3061 | (exit $ac_status); } >/dev/null; then |
| 3062 | if test -s conftest.err; then |
| 3063 | ac_cpp_err=$ac_c_preproc_warn_flag |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3064 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3065 | else |
| 3066 | ac_cpp_err= |
| 3067 | fi |
| 3068 | else |
| 3069 | ac_cpp_err=yes |
| 3070 | fi |
| 3071 | if test -z "$ac_cpp_err"; then |
| 3072 | ac_header_preproc=yes |
| 3073 | else |
| 3074 | echo "$as_me: failed program was:" >&5 |
| 3075 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3076 | |
| 3077 | ac_header_preproc=no |
| 3078 | fi |
| 3079 | rm -f conftest.err conftest.$ac_ext |
| 3080 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3081 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3082 | |
| 3083 | # So? What about this header? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3084 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3085 | yes:no: ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3086 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3087 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3088 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 3089 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 3090 | ac_header_preproc=yes |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3091 | ;; |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3092 | no:yes:* ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3093 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 3094 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3095 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3096 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3097 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 3098 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 3099 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 3100 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3101 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3102 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3103 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 3104 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3105 | ( |
| 3106 | cat <<\_ASBOX |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3107 | ## ------------------------------------------ ## |
| 3108 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 3109 | ## ------------------------------------------ ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3110 | _ASBOX |
| 3111 | ) | |
| 3112 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3113 | ;; |
| 3114 | esac |
| 3115 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3116 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3117 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3119 | else |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3120 | eval "$as_ac_Header=\$ac_header_preproc" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3121 | fi |
| 3122 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3123 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3124 | |
| 3125 | fi |
| 3126 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3127 | cat >>confdefs.h <<_ACEOF |
| 3128 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3129 | _ACEOF |
| 3130 | |
| 3131 | fi |
| 3132 | |
| 3133 | done |
| 3134 | |
| 3135 | |
| 3136 | for ac_header in unistd.h |
| 3137 | do |
| 3138 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3139 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3140 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3141 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3142 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3144 | fi |
| 3145 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3146 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3147 | else |
| 3148 | # Is the header compilable? |
| 3149 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3150 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3151 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3152 | /* confdefs.h. */ |
| 3153 | _ACEOF |
| 3154 | cat confdefs.h >>conftest.$ac_ext |
| 3155 | cat >>conftest.$ac_ext <<_ACEOF |
| 3156 | /* end confdefs.h. */ |
| 3157 | $ac_includes_default |
| 3158 | #include <$ac_header> |
| 3159 | _ACEOF |
| 3160 | rm -f conftest.$ac_objext |
| 3161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3162 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3163 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3164 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3165 | rm -f conftest.er1 |
| 3166 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3168 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3169 | { ac_try='test -z "$ac_c_werror_flag" |
| 3170 | || test ! -s conftest.err' |
| 3171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3172 | (eval $ac_try) 2>&5 |
| 3173 | ac_status=$? |
| 3174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3175 | (exit $ac_status); }; } && |
| 3176 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3178 | (eval $ac_try) 2>&5 |
| 3179 | ac_status=$? |
| 3180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3181 | (exit $ac_status); }; }; then |
| 3182 | ac_header_compiler=yes |
| 3183 | else |
| 3184 | echo "$as_me: failed program was:" >&5 |
| 3185 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3186 | |
| 3187 | ac_header_compiler=no |
| 3188 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3189 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3190 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3191 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3192 | |
| 3193 | # Is the header present? |
| 3194 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3195 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3196 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3197 | /* confdefs.h. */ |
| 3198 | _ACEOF |
| 3199 | cat confdefs.h >>conftest.$ac_ext |
| 3200 | cat >>conftest.$ac_ext <<_ACEOF |
| 3201 | /* end confdefs.h. */ |
| 3202 | #include <$ac_header> |
| 3203 | _ACEOF |
| 3204 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3205 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3206 | ac_status=$? |
| 3207 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3208 | rm -f conftest.er1 |
| 3209 | cat conftest.err >&5 |
| 3210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3211 | (exit $ac_status); } >/dev/null; then |
| 3212 | if test -s conftest.err; then |
| 3213 | ac_cpp_err=$ac_c_preproc_warn_flag |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3214 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3215 | else |
| 3216 | ac_cpp_err= |
| 3217 | fi |
| 3218 | else |
| 3219 | ac_cpp_err=yes |
| 3220 | fi |
| 3221 | if test -z "$ac_cpp_err"; then |
| 3222 | ac_header_preproc=yes |
| 3223 | else |
| 3224 | echo "$as_me: failed program was:" >&5 |
| 3225 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3226 | |
| 3227 | ac_header_preproc=no |
| 3228 | fi |
| 3229 | rm -f conftest.err conftest.$ac_ext |
| 3230 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3231 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3232 | |
| 3233 | # So? What about this header? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3234 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3235 | yes:no: ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3236 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3237 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3238 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 3239 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 3240 | ac_header_preproc=yes |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3241 | ;; |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3242 | no:yes:* ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3243 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 3244 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3245 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3246 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3247 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 3248 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 3249 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 3250 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3251 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3252 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3253 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 3254 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3255 | ( |
| 3256 | cat <<\_ASBOX |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3257 | ## ------------------------------------------ ## |
| 3258 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 3259 | ## ------------------------------------------ ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3260 | _ASBOX |
| 3261 | ) | |
| 3262 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3263 | ;; |
| 3264 | esac |
| 3265 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3266 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3267 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3269 | else |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3270 | eval "$as_ac_Header=\$ac_header_preproc" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3271 | fi |
| 3272 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3273 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3274 | |
| 3275 | fi |
| 3276 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3277 | cat >>confdefs.h <<_ACEOF |
| 3278 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3279 | _ACEOF |
| 3280 | |
| 3281 | fi |
| 3282 | |
| 3283 | done |
| 3284 | |
| 3285 | |
| 3286 | for ac_header in stdint.h |
| 3287 | do |
| 3288 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3289 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3290 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3291 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3292 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3294 | fi |
| 3295 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3296 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3297 | else |
| 3298 | # Is the header compilable? |
| 3299 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3300 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3301 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3302 | /* confdefs.h. */ |
| 3303 | _ACEOF |
| 3304 | cat confdefs.h >>conftest.$ac_ext |
| 3305 | cat >>conftest.$ac_ext <<_ACEOF |
| 3306 | /* end confdefs.h. */ |
| 3307 | $ac_includes_default |
| 3308 | #include <$ac_header> |
| 3309 | _ACEOF |
| 3310 | rm -f conftest.$ac_objext |
| 3311 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3312 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3313 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3314 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3315 | rm -f conftest.er1 |
| 3316 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3318 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3319 | { ac_try='test -z "$ac_c_werror_flag" |
| 3320 | || test ! -s conftest.err' |
| 3321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3322 | (eval $ac_try) 2>&5 |
| 3323 | ac_status=$? |
| 3324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3325 | (exit $ac_status); }; } && |
| 3326 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3328 | (eval $ac_try) 2>&5 |
| 3329 | ac_status=$? |
| 3330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3331 | (exit $ac_status); }; }; then |
| 3332 | ac_header_compiler=yes |
| 3333 | else |
| 3334 | echo "$as_me: failed program was:" >&5 |
| 3335 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3336 | |
| 3337 | ac_header_compiler=no |
| 3338 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3339 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3340 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3341 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3342 | |
| 3343 | # Is the header present? |
| 3344 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3345 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3346 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3347 | /* confdefs.h. */ |
| 3348 | _ACEOF |
| 3349 | cat confdefs.h >>conftest.$ac_ext |
| 3350 | cat >>conftest.$ac_ext <<_ACEOF |
| 3351 | /* end confdefs.h. */ |
| 3352 | #include <$ac_header> |
| 3353 | _ACEOF |
| 3354 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3355 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3356 | ac_status=$? |
| 3357 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3358 | rm -f conftest.er1 |
| 3359 | cat conftest.err >&5 |
| 3360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3361 | (exit $ac_status); } >/dev/null; then |
| 3362 | if test -s conftest.err; then |
| 3363 | ac_cpp_err=$ac_c_preproc_warn_flag |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3364 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3365 | else |
| 3366 | ac_cpp_err= |
| 3367 | fi |
| 3368 | else |
| 3369 | ac_cpp_err=yes |
| 3370 | fi |
| 3371 | if test -z "$ac_cpp_err"; then |
| 3372 | ac_header_preproc=yes |
| 3373 | else |
| 3374 | echo "$as_me: failed program was:" >&5 |
| 3375 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3376 | |
| 3377 | ac_header_preproc=no |
| 3378 | fi |
| 3379 | rm -f conftest.err conftest.$ac_ext |
| 3380 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3381 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3382 | |
| 3383 | # So? What about this header? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3384 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3385 | yes:no: ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3386 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3387 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3388 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 3389 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 3390 | ac_header_preproc=yes |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3391 | ;; |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3392 | no:yes:* ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3393 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 3394 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3395 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3396 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3397 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 3398 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 3399 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 3400 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3401 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3402 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3403 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 3404 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3405 | ( |
| 3406 | cat <<\_ASBOX |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3407 | ## ------------------------------------------ ## |
| 3408 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 3409 | ## ------------------------------------------ ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3410 | _ASBOX |
| 3411 | ) | |
| 3412 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3413 | ;; |
| 3414 | esac |
| 3415 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3416 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3417 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3419 | else |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3420 | eval "$as_ac_Header=\$ac_header_preproc" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3421 | fi |
| 3422 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3423 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3424 | |
| 3425 | fi |
| 3426 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3427 | cat >>confdefs.h <<_ACEOF |
| 3428 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3429 | _ACEOF |
| 3430 | |
| 3431 | fi |
| 3432 | |
| 3433 | done |
| 3434 | |
| 3435 | |
| 3436 | for ac_header in sys/uio.h |
| 3437 | do |
| 3438 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3439 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3440 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3441 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3442 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3444 | fi |
| 3445 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3446 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3447 | else |
| 3448 | # Is the header compilable? |
| 3449 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3450 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3451 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3452 | /* confdefs.h. */ |
| 3453 | _ACEOF |
| 3454 | cat confdefs.h >>conftest.$ac_ext |
| 3455 | cat >>conftest.$ac_ext <<_ACEOF |
| 3456 | /* end confdefs.h. */ |
| 3457 | $ac_includes_default |
| 3458 | #include <$ac_header> |
| 3459 | _ACEOF |
| 3460 | rm -f conftest.$ac_objext |
| 3461 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3462 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3463 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3464 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3465 | rm -f conftest.er1 |
| 3466 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3468 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3469 | { ac_try='test -z "$ac_c_werror_flag" |
| 3470 | || test ! -s conftest.err' |
| 3471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3472 | (eval $ac_try) 2>&5 |
| 3473 | ac_status=$? |
| 3474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3475 | (exit $ac_status); }; } && |
| 3476 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3478 | (eval $ac_try) 2>&5 |
| 3479 | ac_status=$? |
| 3480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3481 | (exit $ac_status); }; }; then |
| 3482 | ac_header_compiler=yes |
| 3483 | else |
| 3484 | echo "$as_me: failed program was:" >&5 |
| 3485 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3486 | |
| 3487 | ac_header_compiler=no |
| 3488 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3489 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3490 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3491 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3492 | |
| 3493 | # Is the header present? |
| 3494 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3495 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3496 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3497 | /* confdefs.h. */ |
| 3498 | _ACEOF |
| 3499 | cat confdefs.h >>conftest.$ac_ext |
| 3500 | cat >>conftest.$ac_ext <<_ACEOF |
| 3501 | /* end confdefs.h. */ |
| 3502 | #include <$ac_header> |
| 3503 | _ACEOF |
| 3504 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3505 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3506 | ac_status=$? |
| 3507 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3508 | rm -f conftest.er1 |
| 3509 | cat conftest.err >&5 |
| 3510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3511 | (exit $ac_status); } >/dev/null; then |
| 3512 | if test -s conftest.err; then |
| 3513 | ac_cpp_err=$ac_c_preproc_warn_flag |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3514 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3515 | else |
| 3516 | ac_cpp_err= |
| 3517 | fi |
| 3518 | else |
| 3519 | ac_cpp_err=yes |
| 3520 | fi |
| 3521 | if test -z "$ac_cpp_err"; then |
| 3522 | ac_header_preproc=yes |
| 3523 | else |
| 3524 | echo "$as_me: failed program was:" >&5 |
| 3525 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3526 | |
| 3527 | ac_header_preproc=no |
| 3528 | fi |
| 3529 | rm -f conftest.err conftest.$ac_ext |
| 3530 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3531 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3532 | |
| 3533 | # So? What about this header? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3534 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3535 | yes:no: ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3536 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3537 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3538 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 3539 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 3540 | ac_header_preproc=yes |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3541 | ;; |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3542 | no:yes:* ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3543 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 3544 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3545 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3546 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3547 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 3548 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 3549 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 3550 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3551 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3552 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3553 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 3554 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3555 | ( |
| 3556 | cat <<\_ASBOX |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3557 | ## ------------------------------------------ ## |
| 3558 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 3559 | ## ------------------------------------------ ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3560 | _ASBOX |
| 3561 | ) | |
| 3562 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3563 | ;; |
| 3564 | esac |
| 3565 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3566 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3567 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3569 | else |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3570 | eval "$as_ac_Header=\$ac_header_preproc" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3571 | fi |
| 3572 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3573 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3574 | |
| 3575 | fi |
| 3576 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3577 | cat >>confdefs.h <<_ACEOF |
| 3578 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3579 | _ACEOF |
| 3580 | |
| 3581 | fi |
| 3582 | |
| 3583 | done |
| 3584 | |
| 3585 | |
| 3586 | for ac_header in machine/types.h |
| 3587 | do |
| 3588 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3589 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3590 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3591 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3592 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3594 | fi |
| 3595 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3596 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3597 | else |
| 3598 | # Is the header compilable? |
| 3599 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3600 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3601 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3602 | /* confdefs.h. */ |
| 3603 | _ACEOF |
| 3604 | cat confdefs.h >>conftest.$ac_ext |
| 3605 | cat >>conftest.$ac_ext <<_ACEOF |
| 3606 | /* end confdefs.h. */ |
| 3607 | $ac_includes_default |
| 3608 | #include <$ac_header> |
| 3609 | _ACEOF |
| 3610 | rm -f conftest.$ac_objext |
| 3611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3612 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3613 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3614 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3615 | rm -f conftest.er1 |
| 3616 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3618 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3619 | { ac_try='test -z "$ac_c_werror_flag" |
| 3620 | || test ! -s conftest.err' |
| 3621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3622 | (eval $ac_try) 2>&5 |
| 3623 | ac_status=$? |
| 3624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3625 | (exit $ac_status); }; } && |
| 3626 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3628 | (eval $ac_try) 2>&5 |
| 3629 | ac_status=$? |
| 3630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3631 | (exit $ac_status); }; }; then |
| 3632 | ac_header_compiler=yes |
| 3633 | else |
| 3634 | echo "$as_me: failed program was:" >&5 |
| 3635 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3636 | |
| 3637 | ac_header_compiler=no |
| 3638 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3639 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3640 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3641 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3642 | |
| 3643 | # Is the header present? |
| 3644 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3645 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3646 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3647 | /* confdefs.h. */ |
| 3648 | _ACEOF |
| 3649 | cat confdefs.h >>conftest.$ac_ext |
| 3650 | cat >>conftest.$ac_ext <<_ACEOF |
| 3651 | /* end confdefs.h. */ |
| 3652 | #include <$ac_header> |
| 3653 | _ACEOF |
| 3654 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3655 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3656 | ac_status=$? |
| 3657 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3658 | rm -f conftest.er1 |
| 3659 | cat conftest.err >&5 |
| 3660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3661 | (exit $ac_status); } >/dev/null; then |
| 3662 | if test -s conftest.err; then |
| 3663 | ac_cpp_err=$ac_c_preproc_warn_flag |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3664 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3665 | else |
| 3666 | ac_cpp_err= |
| 3667 | fi |
| 3668 | else |
| 3669 | ac_cpp_err=yes |
| 3670 | fi |
| 3671 | if test -z "$ac_cpp_err"; then |
| 3672 | ac_header_preproc=yes |
| 3673 | else |
| 3674 | echo "$as_me: failed program was:" >&5 |
| 3675 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3676 | |
| 3677 | ac_header_preproc=no |
| 3678 | fi |
| 3679 | rm -f conftest.err conftest.$ac_ext |
| 3680 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3681 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3682 | |
| 3683 | # So? What about this header? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3684 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3685 | yes:no: ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3686 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3687 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3688 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 3689 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 3690 | ac_header_preproc=yes |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3691 | ;; |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3692 | no:yes:* ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3693 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 3694 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3695 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3696 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3697 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 3698 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 3699 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 3700 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3701 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3702 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3703 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 3704 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3705 | ( |
| 3706 | cat <<\_ASBOX |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3707 | ## ------------------------------------------ ## |
| 3708 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 3709 | ## ------------------------------------------ ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3710 | _ASBOX |
| 3711 | ) | |
| 3712 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3713 | ;; |
| 3714 | esac |
| 3715 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3716 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3717 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3719 | else |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3720 | eval "$as_ac_Header=\$ac_header_preproc" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3721 | fi |
| 3722 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3723 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3724 | |
| 3725 | fi |
| 3726 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3727 | cat >>confdefs.h <<_ACEOF |
| 3728 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3729 | _ACEOF |
| 3730 | |
| 3731 | fi |
| 3732 | |
| 3733 | done |
| 3734 | |
| 3735 | |
| 3736 | for ac_header in sys/int_types.h |
| 3737 | do |
| 3738 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3739 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3740 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3741 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3742 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3743 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3744 | fi |
| 3745 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3746 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3747 | else |
| 3748 | # Is the header compilable? |
| 3749 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3750 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3751 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3752 | /* confdefs.h. */ |
| 3753 | _ACEOF |
| 3754 | cat confdefs.h >>conftest.$ac_ext |
| 3755 | cat >>conftest.$ac_ext <<_ACEOF |
| 3756 | /* end confdefs.h. */ |
| 3757 | $ac_includes_default |
| 3758 | #include <$ac_header> |
| 3759 | _ACEOF |
| 3760 | rm -f conftest.$ac_objext |
| 3761 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3762 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3763 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3764 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3765 | rm -f conftest.er1 |
| 3766 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3768 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3769 | { ac_try='test -z "$ac_c_werror_flag" |
| 3770 | || test ! -s conftest.err' |
| 3771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3772 | (eval $ac_try) 2>&5 |
| 3773 | ac_status=$? |
| 3774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3775 | (exit $ac_status); }; } && |
| 3776 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3778 | (eval $ac_try) 2>&5 |
| 3779 | ac_status=$? |
| 3780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3781 | (exit $ac_status); }; }; then |
| 3782 | ac_header_compiler=yes |
| 3783 | else |
| 3784 | echo "$as_me: failed program was:" >&5 |
| 3785 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3786 | |
| 3787 | ac_header_compiler=no |
| 3788 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3789 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3790 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3791 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3792 | |
| 3793 | # Is the header present? |
| 3794 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3795 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3796 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3797 | /* confdefs.h. */ |
| 3798 | _ACEOF |
| 3799 | cat confdefs.h >>conftest.$ac_ext |
| 3800 | cat >>conftest.$ac_ext <<_ACEOF |
| 3801 | /* end confdefs.h. */ |
| 3802 | #include <$ac_header> |
| 3803 | _ACEOF |
| 3804 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3805 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3806 | ac_status=$? |
| 3807 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3808 | rm -f conftest.er1 |
| 3809 | cat conftest.err >&5 |
| 3810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3811 | (exit $ac_status); } >/dev/null; then |
| 3812 | if test -s conftest.err; then |
| 3813 | ac_cpp_err=$ac_c_preproc_warn_flag |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3814 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3815 | else |
| 3816 | ac_cpp_err= |
| 3817 | fi |
| 3818 | else |
| 3819 | ac_cpp_err=yes |
| 3820 | fi |
| 3821 | if test -z "$ac_cpp_err"; then |
| 3822 | ac_header_preproc=yes |
| 3823 | else |
| 3824 | echo "$as_me: failed program was:" >&5 |
| 3825 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3826 | |
| 3827 | ac_header_preproc=no |
| 3828 | fi |
| 3829 | rm -f conftest.err conftest.$ac_ext |
| 3830 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3831 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3832 | |
| 3833 | # So? What about this header? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3834 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3835 | yes:no: ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3836 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3837 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3838 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 3839 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 3840 | ac_header_preproc=yes |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3841 | ;; |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3842 | no:yes:* ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3843 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 3844 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3845 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3846 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3847 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 3848 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 3849 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 3850 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3851 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3852 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3853 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 3854 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3855 | ( |
| 3856 | cat <<\_ASBOX |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3857 | ## ------------------------------------------ ## |
| 3858 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 3859 | ## ------------------------------------------ ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3860 | _ASBOX |
| 3861 | ) | |
| 3862 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3863 | ;; |
| 3864 | esac |
| 3865 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3866 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3867 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3869 | else |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3870 | eval "$as_ac_Header=\$ac_header_preproc" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3871 | fi |
| 3872 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3873 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3874 | |
| 3875 | fi |
| 3876 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3877 | cat >>confdefs.h <<_ACEOF |
| 3878 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3879 | _ACEOF |
| 3880 | |
| 3881 | fi |
| 3882 | |
| 3883 | done |
| 3884 | |
| 3885 | |
| 3886 | |
| 3887 | for ac_header in syslog.h |
| 3888 | do |
| 3889 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3890 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3891 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3892 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3893 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3895 | fi |
| 3896 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3897 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3898 | else |
| 3899 | # Is the header compilable? |
| 3900 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3901 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3902 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3903 | /* confdefs.h. */ |
| 3904 | _ACEOF |
| 3905 | cat confdefs.h >>conftest.$ac_ext |
| 3906 | cat >>conftest.$ac_ext <<_ACEOF |
| 3907 | /* end confdefs.h. */ |
| 3908 | $ac_includes_default |
| 3909 | #include <$ac_header> |
| 3910 | _ACEOF |
| 3911 | rm -f conftest.$ac_objext |
| 3912 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3913 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3914 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3915 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3916 | rm -f conftest.er1 |
| 3917 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3919 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3920 | { ac_try='test -z "$ac_c_werror_flag" |
| 3921 | || test ! -s conftest.err' |
| 3922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3923 | (eval $ac_try) 2>&5 |
| 3924 | ac_status=$? |
| 3925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3926 | (exit $ac_status); }; } && |
| 3927 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3929 | (eval $ac_try) 2>&5 |
| 3930 | ac_status=$? |
| 3931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3932 | (exit $ac_status); }; }; then |
| 3933 | ac_header_compiler=yes |
| 3934 | else |
| 3935 | echo "$as_me: failed program was:" >&5 |
| 3936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3937 | |
| 3938 | ac_header_compiler=no |
| 3939 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3940 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3941 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3942 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3943 | |
| 3944 | # Is the header present? |
| 3945 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3946 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3947 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3948 | /* confdefs.h. */ |
| 3949 | _ACEOF |
| 3950 | cat confdefs.h >>conftest.$ac_ext |
| 3951 | cat >>conftest.$ac_ext <<_ACEOF |
| 3952 | /* end confdefs.h. */ |
| 3953 | #include <$ac_header> |
| 3954 | _ACEOF |
| 3955 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3956 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3957 | ac_status=$? |
| 3958 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3959 | rm -f conftest.er1 |
| 3960 | cat conftest.err >&5 |
| 3961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3962 | (exit $ac_status); } >/dev/null; then |
| 3963 | if test -s conftest.err; then |
| 3964 | ac_cpp_err=$ac_c_preproc_warn_flag |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3965 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3966 | else |
| 3967 | ac_cpp_err= |
| 3968 | fi |
| 3969 | else |
| 3970 | ac_cpp_err=yes |
| 3971 | fi |
| 3972 | if test -z "$ac_cpp_err"; then |
| 3973 | ac_header_preproc=yes |
| 3974 | else |
| 3975 | echo "$as_me: failed program was:" >&5 |
| 3976 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3977 | |
| 3978 | ac_header_preproc=no |
| 3979 | fi |
| 3980 | rm -f conftest.err conftest.$ac_ext |
| 3981 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3982 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3983 | |
| 3984 | # So? What about this header? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3985 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3986 | yes:no: ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3987 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3988 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3989 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 3990 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 3991 | ac_header_preproc=yes |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3992 | ;; |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3993 | no:yes:* ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3994 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 3995 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 3996 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3997 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3998 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 3999 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 4000 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 4001 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4002 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4003 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4004 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 4005 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4006 | ( |
| 4007 | cat <<\_ASBOX |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4008 | ## ------------------------------------------ ## |
| 4009 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 4010 | ## ------------------------------------------ ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4011 | _ASBOX |
| 4012 | ) | |
| 4013 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4014 | ;; |
| 4015 | esac |
| 4016 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4017 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4018 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4020 | else |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4021 | eval "$as_ac_Header=\$ac_header_preproc" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4022 | fi |
| 4023 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4024 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4025 | |
| 4026 | fi |
| 4027 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4028 | cat >>confdefs.h <<_ACEOF |
| 4029 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4030 | _ACEOF |
| 4031 | |
| 4032 | fi |
| 4033 | |
| 4034 | done |
| 4035 | |
| 4036 | |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4037 | echo "$as_me:$LINENO: checking for int8" >&5 |
| 4038 | echo $ECHO_N "checking for int8... $ECHO_C" >&6 |
| 4039 | if test "${ac_cv_type_int8+set}" = set; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4041 | else |
| 4042 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4043 | /* confdefs.h. */ |
| 4044 | _ACEOF |
| 4045 | cat confdefs.h >>conftest.$ac_ext |
| 4046 | cat >>conftest.$ac_ext <<_ACEOF |
| 4047 | /* end confdefs.h. */ |
| 4048 | $ac_includes_default |
| 4049 | int |
| 4050 | main () |
| 4051 | { |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4052 | if ((int8 *) 0) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4053 | return 0; |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4054 | if (sizeof (int8)) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4055 | return 0; |
| 4056 | ; |
| 4057 | return 0; |
| 4058 | } |
| 4059 | _ACEOF |
| 4060 | rm -f conftest.$ac_objext |
| 4061 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4062 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4063 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4064 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4065 | rm -f conftest.er1 |
| 4066 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4068 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4069 | { ac_try='test -z "$ac_c_werror_flag" |
| 4070 | || test ! -s conftest.err' |
| 4071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4072 | (eval $ac_try) 2>&5 |
| 4073 | ac_status=$? |
| 4074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4075 | (exit $ac_status); }; } && |
| 4076 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4078 | (eval $ac_try) 2>&5 |
| 4079 | ac_status=$? |
| 4080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4081 | (exit $ac_status); }; }; then |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4082 | ac_cv_type_int8=yes |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4083 | else |
| 4084 | echo "$as_me: failed program was:" >&5 |
| 4085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4086 | |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4087 | ac_cv_type_int8=no |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4088 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4089 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4090 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4091 | echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5 |
| 4092 | echo "${ECHO_T}$ac_cv_type_int8" >&6 |
| 4093 | if test $ac_cv_type_int8 = yes; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4094 | |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4095 | cat >>confdefs.h <<_ACEOF |
| 4096 | #define HAVE_INT8 1 |
| 4097 | _ACEOF |
| 4098 | |
| 4099 | |
| 4100 | fi |
| 4101 | echo "$as_me:$LINENO: checking for uint8" >&5 |
| 4102 | echo $ECHO_N "checking for uint8... $ECHO_C" >&6 |
| 4103 | if test "${ac_cv_type_uint8+set}" = set; then |
| 4104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4105 | else |
| 4106 | cat >conftest.$ac_ext <<_ACEOF |
| 4107 | /* confdefs.h. */ |
| 4108 | _ACEOF |
| 4109 | cat confdefs.h >>conftest.$ac_ext |
| 4110 | cat >>conftest.$ac_ext <<_ACEOF |
| 4111 | /* end confdefs.h. */ |
| 4112 | $ac_includes_default |
| 4113 | int |
| 4114 | main () |
| 4115 | { |
| 4116 | if ((uint8 *) 0) |
| 4117 | return 0; |
| 4118 | if (sizeof (uint8)) |
| 4119 | return 0; |
| 4120 | ; |
| 4121 | return 0; |
| 4122 | } |
| 4123 | _ACEOF |
| 4124 | rm -f conftest.$ac_objext |
| 4125 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4126 | (eval $ac_compile) 2>conftest.er1 |
| 4127 | ac_status=$? |
| 4128 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4129 | rm -f conftest.er1 |
| 4130 | cat conftest.err >&5 |
| 4131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4132 | (exit $ac_status); } && |
| 4133 | { ac_try='test -z "$ac_c_werror_flag" |
| 4134 | || test ! -s conftest.err' |
| 4135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4136 | (eval $ac_try) 2>&5 |
| 4137 | ac_status=$? |
| 4138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4139 | (exit $ac_status); }; } && |
| 4140 | { ac_try='test -s conftest.$ac_objext' |
| 4141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4142 | (eval $ac_try) 2>&5 |
| 4143 | ac_status=$? |
| 4144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4145 | (exit $ac_status); }; }; then |
| 4146 | ac_cv_type_uint8=yes |
| 4147 | else |
| 4148 | echo "$as_me: failed program was:" >&5 |
| 4149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4150 | |
| 4151 | ac_cv_type_uint8=no |
| 4152 | fi |
| 4153 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4154 | fi |
| 4155 | echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5 |
| 4156 | echo "${ECHO_T}$ac_cv_type_uint8" >&6 |
| 4157 | if test $ac_cv_type_uint8 = yes; then |
| 4158 | |
| 4159 | cat >>confdefs.h <<_ACEOF |
| 4160 | #define HAVE_UINT8 1 |
| 4161 | _ACEOF |
| 4162 | |
| 4163 | |
| 4164 | fi |
| 4165 | echo "$as_me:$LINENO: checking for int16" >&5 |
| 4166 | echo $ECHO_N "checking for int16... $ECHO_C" >&6 |
| 4167 | if test "${ac_cv_type_int16+set}" = set; then |
| 4168 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4169 | else |
| 4170 | cat >conftest.$ac_ext <<_ACEOF |
| 4171 | /* confdefs.h. */ |
| 4172 | _ACEOF |
| 4173 | cat confdefs.h >>conftest.$ac_ext |
| 4174 | cat >>conftest.$ac_ext <<_ACEOF |
| 4175 | /* end confdefs.h. */ |
| 4176 | $ac_includes_default |
| 4177 | int |
| 4178 | main () |
| 4179 | { |
| 4180 | if ((int16 *) 0) |
| 4181 | return 0; |
| 4182 | if (sizeof (int16)) |
| 4183 | return 0; |
| 4184 | ; |
| 4185 | return 0; |
| 4186 | } |
| 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_cv_type_int16=yes |
| 4211 | else |
| 4212 | echo "$as_me: failed program was:" >&5 |
| 4213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4214 | |
| 4215 | ac_cv_type_int16=no |
| 4216 | fi |
| 4217 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4218 | fi |
| 4219 | echo "$as_me:$LINENO: result: $ac_cv_type_int16" >&5 |
| 4220 | echo "${ECHO_T}$ac_cv_type_int16" >&6 |
| 4221 | if test $ac_cv_type_int16 = yes; then |
| 4222 | |
| 4223 | cat >>confdefs.h <<_ACEOF |
| 4224 | #define HAVE_INT16 1 |
| 4225 | _ACEOF |
| 4226 | |
| 4227 | |
| 4228 | fi |
| 4229 | echo "$as_me:$LINENO: checking for uint16" >&5 |
| 4230 | echo $ECHO_N "checking for uint16... $ECHO_C" >&6 |
| 4231 | if test "${ac_cv_type_uint16+set}" = set; then |
| 4232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4233 | else |
| 4234 | cat >conftest.$ac_ext <<_ACEOF |
| 4235 | /* confdefs.h. */ |
| 4236 | _ACEOF |
| 4237 | cat confdefs.h >>conftest.$ac_ext |
| 4238 | cat >>conftest.$ac_ext <<_ACEOF |
| 4239 | /* end confdefs.h. */ |
| 4240 | $ac_includes_default |
| 4241 | int |
| 4242 | main () |
| 4243 | { |
| 4244 | if ((uint16 *) 0) |
| 4245 | return 0; |
| 4246 | if (sizeof (uint16)) |
| 4247 | return 0; |
| 4248 | ; |
| 4249 | return 0; |
| 4250 | } |
| 4251 | _ACEOF |
| 4252 | rm -f conftest.$ac_objext |
| 4253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4254 | (eval $ac_compile) 2>conftest.er1 |
| 4255 | ac_status=$? |
| 4256 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4257 | rm -f conftest.er1 |
| 4258 | cat conftest.err >&5 |
| 4259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4260 | (exit $ac_status); } && |
| 4261 | { ac_try='test -z "$ac_c_werror_flag" |
| 4262 | || test ! -s conftest.err' |
| 4263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4264 | (eval $ac_try) 2>&5 |
| 4265 | ac_status=$? |
| 4266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4267 | (exit $ac_status); }; } && |
| 4268 | { ac_try='test -s conftest.$ac_objext' |
| 4269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4270 | (eval $ac_try) 2>&5 |
| 4271 | ac_status=$? |
| 4272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4273 | (exit $ac_status); }; }; then |
| 4274 | ac_cv_type_uint16=yes |
| 4275 | else |
| 4276 | echo "$as_me: failed program was:" >&5 |
| 4277 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4278 | |
| 4279 | ac_cv_type_uint16=no |
| 4280 | fi |
| 4281 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4282 | fi |
| 4283 | echo "$as_me:$LINENO: result: $ac_cv_type_uint16" >&5 |
| 4284 | echo "${ECHO_T}$ac_cv_type_uint16" >&6 |
| 4285 | if test $ac_cv_type_uint16 = yes; then |
| 4286 | |
| 4287 | cat >>confdefs.h <<_ACEOF |
| 4288 | #define HAVE_UINT16 1 |
| 4289 | _ACEOF |
| 4290 | |
| 4291 | |
| 4292 | fi |
| 4293 | echo "$as_me:$LINENO: checking for int32" >&5 |
| 4294 | echo $ECHO_N "checking for int32... $ECHO_C" >&6 |
| 4295 | if test "${ac_cv_type_int32+set}" = set; then |
| 4296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4297 | else |
| 4298 | cat >conftest.$ac_ext <<_ACEOF |
| 4299 | /* confdefs.h. */ |
| 4300 | _ACEOF |
| 4301 | cat confdefs.h >>conftest.$ac_ext |
| 4302 | cat >>conftest.$ac_ext <<_ACEOF |
| 4303 | /* end confdefs.h. */ |
| 4304 | $ac_includes_default |
| 4305 | int |
| 4306 | main () |
| 4307 | { |
| 4308 | if ((int32 *) 0) |
| 4309 | return 0; |
| 4310 | if (sizeof (int32)) |
| 4311 | return 0; |
| 4312 | ; |
| 4313 | return 0; |
| 4314 | } |
| 4315 | _ACEOF |
| 4316 | rm -f conftest.$ac_objext |
| 4317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4318 | (eval $ac_compile) 2>conftest.er1 |
| 4319 | ac_status=$? |
| 4320 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4321 | rm -f conftest.er1 |
| 4322 | cat conftest.err >&5 |
| 4323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4324 | (exit $ac_status); } && |
| 4325 | { ac_try='test -z "$ac_c_werror_flag" |
| 4326 | || test ! -s conftest.err' |
| 4327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4328 | (eval $ac_try) 2>&5 |
| 4329 | ac_status=$? |
| 4330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4331 | (exit $ac_status); }; } && |
| 4332 | { ac_try='test -s conftest.$ac_objext' |
| 4333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4334 | (eval $ac_try) 2>&5 |
| 4335 | ac_status=$? |
| 4336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4337 | (exit $ac_status); }; }; then |
| 4338 | ac_cv_type_int32=yes |
| 4339 | else |
| 4340 | echo "$as_me: failed program was:" >&5 |
| 4341 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4342 | |
| 4343 | ac_cv_type_int32=no |
| 4344 | fi |
| 4345 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4346 | fi |
| 4347 | echo "$as_me:$LINENO: result: $ac_cv_type_int32" >&5 |
| 4348 | echo "${ECHO_T}$ac_cv_type_int32" >&6 |
| 4349 | if test $ac_cv_type_int32 = yes; then |
| 4350 | |
| 4351 | cat >>confdefs.h <<_ACEOF |
| 4352 | #define HAVE_INT32 1 |
| 4353 | _ACEOF |
| 4354 | |
| 4355 | |
| 4356 | fi |
| 4357 | echo "$as_me:$LINENO: checking for uint32" >&5 |
| 4358 | echo $ECHO_N "checking for uint32... $ECHO_C" >&6 |
| 4359 | if test "${ac_cv_type_uint32+set}" = set; then |
| 4360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4361 | else |
| 4362 | cat >conftest.$ac_ext <<_ACEOF |
| 4363 | /* confdefs.h. */ |
| 4364 | _ACEOF |
| 4365 | cat confdefs.h >>conftest.$ac_ext |
| 4366 | cat >>conftest.$ac_ext <<_ACEOF |
| 4367 | /* end confdefs.h. */ |
| 4368 | $ac_includes_default |
| 4369 | int |
| 4370 | main () |
| 4371 | { |
| 4372 | if ((uint32 *) 0) |
| 4373 | return 0; |
| 4374 | if (sizeof (uint32)) |
| 4375 | return 0; |
| 4376 | ; |
| 4377 | return 0; |
| 4378 | } |
| 4379 | _ACEOF |
| 4380 | rm -f conftest.$ac_objext |
| 4381 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4382 | (eval $ac_compile) 2>conftest.er1 |
| 4383 | ac_status=$? |
| 4384 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4385 | rm -f conftest.er1 |
| 4386 | cat conftest.err >&5 |
| 4387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4388 | (exit $ac_status); } && |
| 4389 | { ac_try='test -z "$ac_c_werror_flag" |
| 4390 | || test ! -s conftest.err' |
| 4391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4392 | (eval $ac_try) 2>&5 |
| 4393 | ac_status=$? |
| 4394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4395 | (exit $ac_status); }; } && |
| 4396 | { ac_try='test -s conftest.$ac_objext' |
| 4397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4398 | (eval $ac_try) 2>&5 |
| 4399 | ac_status=$? |
| 4400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4401 | (exit $ac_status); }; }; then |
| 4402 | ac_cv_type_uint32=yes |
| 4403 | else |
| 4404 | echo "$as_me: failed program was:" >&5 |
| 4405 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4406 | |
| 4407 | ac_cv_type_uint32=no |
| 4408 | fi |
| 4409 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4410 | fi |
| 4411 | echo "$as_me:$LINENO: result: $ac_cv_type_uint32" >&5 |
| 4412 | echo "${ECHO_T}$ac_cv_type_uint32" >&6 |
| 4413 | if test $ac_cv_type_uint32 = yes; then |
| 4414 | |
| 4415 | cat >>confdefs.h <<_ACEOF |
| 4416 | #define HAVE_UINT32 1 |
| 4417 | _ACEOF |
| 4418 | |
| 4419 | |
| 4420 | fi |
| 4421 | echo "$as_me:$LINENO: checking for unit64" >&5 |
| 4422 | echo $ECHO_N "checking for unit64... $ECHO_C" >&6 |
| 4423 | if test "${ac_cv_type_unit64+set}" = set; then |
| 4424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4425 | else |
| 4426 | cat >conftest.$ac_ext <<_ACEOF |
| 4427 | /* confdefs.h. */ |
| 4428 | _ACEOF |
| 4429 | cat confdefs.h >>conftest.$ac_ext |
| 4430 | cat >>conftest.$ac_ext <<_ACEOF |
| 4431 | /* end confdefs.h. */ |
| 4432 | $ac_includes_default |
| 4433 | int |
| 4434 | main () |
| 4435 | { |
| 4436 | if ((unit64 *) 0) |
| 4437 | return 0; |
| 4438 | if (sizeof (unit64)) |
| 4439 | return 0; |
| 4440 | ; |
| 4441 | return 0; |
| 4442 | } |
| 4443 | _ACEOF |
| 4444 | rm -f conftest.$ac_objext |
| 4445 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4446 | (eval $ac_compile) 2>conftest.er1 |
| 4447 | ac_status=$? |
| 4448 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4449 | rm -f conftest.er1 |
| 4450 | cat conftest.err >&5 |
| 4451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4452 | (exit $ac_status); } && |
| 4453 | { ac_try='test -z "$ac_c_werror_flag" |
| 4454 | || test ! -s conftest.err' |
| 4455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4456 | (eval $ac_try) 2>&5 |
| 4457 | ac_status=$? |
| 4458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4459 | (exit $ac_status); }; } && |
| 4460 | { ac_try='test -s conftest.$ac_objext' |
| 4461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4462 | (eval $ac_try) 2>&5 |
| 4463 | ac_status=$? |
| 4464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4465 | (exit $ac_status); }; }; then |
| 4466 | ac_cv_type_unit64=yes |
| 4467 | else |
| 4468 | echo "$as_me: failed program was:" >&5 |
| 4469 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4470 | |
| 4471 | ac_cv_type_unit64=no |
| 4472 | fi |
| 4473 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4474 | fi |
| 4475 | echo "$as_me:$LINENO: result: $ac_cv_type_unit64" >&5 |
| 4476 | echo "${ECHO_T}$ac_cv_type_unit64" >&6 |
| 4477 | if test $ac_cv_type_unit64 = yes; then |
| 4478 | |
| 4479 | cat >>confdefs.h <<_ACEOF |
| 4480 | #define HAVE_UNIT64 1 |
| 4481 | _ACEOF |
| 4482 | |
| 4483 | |
| 4484 | fi |
| 4485 | |
| 4486 | |
| 4487 | echo "$as_me:$LINENO: checking for unsigned long long" >&5 |
| 4488 | echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6 |
| 4489 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then |
| 4490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4491 | else |
| 4492 | cat >conftest.$ac_ext <<_ACEOF |
| 4493 | /* confdefs.h. */ |
| 4494 | _ACEOF |
| 4495 | cat confdefs.h >>conftest.$ac_ext |
| 4496 | cat >>conftest.$ac_ext <<_ACEOF |
| 4497 | /* end confdefs.h. */ |
| 4498 | $ac_includes_default |
| 4499 | int |
| 4500 | main () |
| 4501 | { |
| 4502 | if ((unsigned long long *) 0) |
| 4503 | return 0; |
| 4504 | if (sizeof (unsigned long long)) |
| 4505 | return 0; |
| 4506 | ; |
| 4507 | return 0; |
| 4508 | } |
| 4509 | _ACEOF |
| 4510 | rm -f conftest.$ac_objext |
| 4511 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4512 | (eval $ac_compile) 2>conftest.er1 |
| 4513 | ac_status=$? |
| 4514 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4515 | rm -f conftest.er1 |
| 4516 | cat conftest.err >&5 |
| 4517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4518 | (exit $ac_status); } && |
| 4519 | { ac_try='test -z "$ac_c_werror_flag" |
| 4520 | || test ! -s conftest.err' |
| 4521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4522 | (eval $ac_try) 2>&5 |
| 4523 | ac_status=$? |
| 4524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4525 | (exit $ac_status); }; } && |
| 4526 | { ac_try='test -s conftest.$ac_objext' |
| 4527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4528 | (eval $ac_try) 2>&5 |
| 4529 | ac_status=$? |
| 4530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4531 | (exit $ac_status); }; }; then |
| 4532 | ac_cv_type_unsigned_long_long=yes |
| 4533 | else |
| 4534 | echo "$as_me: failed program was:" >&5 |
| 4535 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4536 | |
| 4537 | ac_cv_type_unsigned_long_long=no |
| 4538 | fi |
| 4539 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4540 | fi |
| 4541 | echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 |
| 4542 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6 |
| 4543 | if test $ac_cv_type_unsigned_long_long = yes; then |
| 4544 | HAVE_U_LONG_LONG=1 |
| 4545 | else |
| 4546 | HAVE_U_LONG_LONG=0 |
| 4547 | fi |
| 4548 | |
| 4549 | |
| 4550 | if test $HAVE_U_LONG_LONG = 1; then |
| 4551 | cat >>confdefs.h <<\_ACEOF |
| 4552 | #define HAVE_U_LONG_LONG 1 |
| 4553 | _ACEOF |
| 4554 | |
| 4555 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4556 | |
| 4557 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 4558 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 4559 | if test "${ac_cv_c_const+set}" = set; then |
| 4560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4561 | else |
| 4562 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4563 | /* confdefs.h. */ |
| 4564 | _ACEOF |
| 4565 | cat confdefs.h >>conftest.$ac_ext |
| 4566 | cat >>conftest.$ac_ext <<_ACEOF |
| 4567 | /* end confdefs.h. */ |
| 4568 | |
| 4569 | int |
| 4570 | main () |
| 4571 | { |
| 4572 | /* FIXME: Include the comments suggested by Paul. */ |
| 4573 | #ifndef __cplusplus |
| 4574 | /* Ultrix mips cc rejects this. */ |
| 4575 | typedef int charset[2]; |
| 4576 | const charset x; |
| 4577 | /* SunOS 4.1.1 cc rejects this. */ |
| 4578 | char const *const *ccp; |
| 4579 | char **p; |
| 4580 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 4581 | struct point {int x, y;}; |
| 4582 | static struct point const zero = {0,0}; |
| 4583 | /* AIX XL C 1.02.0.0 rejects this. |
| 4584 | It does not let you subtract one const X* pointer from another in |
| 4585 | an arm of an if-expression whose if-part is not a constant |
| 4586 | expression */ |
| 4587 | const char *g = "string"; |
| 4588 | ccp = &g + (g ? g-g : 0); |
| 4589 | /* HPUX 7.0 cc rejects these. */ |
| 4590 | ++ccp; |
| 4591 | p = (char**) ccp; |
| 4592 | ccp = (char const *const *) p; |
| 4593 | { /* SCO 3.2v4 cc rejects this. */ |
| 4594 | char *t; |
| 4595 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 4596 | |
| 4597 | *t++ = 0; |
| 4598 | } |
| 4599 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 4600 | int x[] = {25, 17}; |
| 4601 | const int *foo = &x[0]; |
| 4602 | ++foo; |
| 4603 | } |
| 4604 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 4605 | typedef const int *iptr; |
| 4606 | iptr p = 0; |
| 4607 | ++p; |
| 4608 | } |
| 4609 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 4610 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 4611 | struct s { int j; const int *ap[3]; }; |
| 4612 | struct s *b; b->j = 5; |
| 4613 | } |
| 4614 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 4615 | const int foo = 10; |
| 4616 | } |
| 4617 | #endif |
| 4618 | |
| 4619 | ; |
| 4620 | return 0; |
| 4621 | } |
| 4622 | _ACEOF |
| 4623 | rm -f conftest.$ac_objext |
| 4624 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4625 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4626 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4627 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4628 | rm -f conftest.er1 |
| 4629 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4631 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4632 | { ac_try='test -z "$ac_c_werror_flag" |
| 4633 | || test ! -s conftest.err' |
| 4634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4635 | (eval $ac_try) 2>&5 |
| 4636 | ac_status=$? |
| 4637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4638 | (exit $ac_status); }; } && |
| 4639 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4641 | (eval $ac_try) 2>&5 |
| 4642 | ac_status=$? |
| 4643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4644 | (exit $ac_status); }; }; then |
| 4645 | ac_cv_c_const=yes |
| 4646 | else |
| 4647 | echo "$as_me: failed program was:" >&5 |
| 4648 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4649 | |
| 4650 | ac_cv_c_const=no |
| 4651 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4652 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4653 | fi |
| 4654 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 4655 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
| 4656 | if test $ac_cv_c_const = no; then |
| 4657 | |
| 4658 | cat >>confdefs.h <<\_ACEOF |
| 4659 | #define const |
| 4660 | _ACEOF |
| 4661 | |
| 4662 | fi |
| 4663 | |
| 4664 | echo "$as_me:$LINENO: checking for inline" >&5 |
| 4665 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
| 4666 | if test "${ac_cv_c_inline+set}" = set; then |
| 4667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4668 | else |
| 4669 | ac_cv_c_inline=no |
| 4670 | for ac_kw in inline __inline__ __inline; do |
| 4671 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4672 | /* confdefs.h. */ |
| 4673 | _ACEOF |
| 4674 | cat confdefs.h >>conftest.$ac_ext |
| 4675 | cat >>conftest.$ac_ext <<_ACEOF |
| 4676 | /* end confdefs.h. */ |
| 4677 | #ifndef __cplusplus |
| 4678 | typedef int foo_t; |
| 4679 | static $ac_kw foo_t static_foo () {return 0; } |
| 4680 | $ac_kw foo_t foo () {return 0; } |
| 4681 | #endif |
| 4682 | |
| 4683 | _ACEOF |
| 4684 | rm -f conftest.$ac_objext |
| 4685 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4686 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4687 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4688 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4689 | rm -f conftest.er1 |
| 4690 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4692 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4693 | { ac_try='test -z "$ac_c_werror_flag" |
| 4694 | || test ! -s conftest.err' |
| 4695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4696 | (eval $ac_try) 2>&5 |
| 4697 | ac_status=$? |
| 4698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4699 | (exit $ac_status); }; } && |
| 4700 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4702 | (eval $ac_try) 2>&5 |
| 4703 | ac_status=$? |
| 4704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4705 | (exit $ac_status); }; }; then |
| 4706 | ac_cv_c_inline=$ac_kw; break |
| 4707 | else |
| 4708 | echo "$as_me: failed program was:" >&5 |
| 4709 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4710 | |
| 4711 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4712 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4713 | done |
| 4714 | |
| 4715 | fi |
| 4716 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 4717 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4718 | |
| 4719 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4720 | case $ac_cv_c_inline in |
| 4721 | inline | yes) ;; |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4722 | *) |
| 4723 | case $ac_cv_c_inline in |
| 4724 | no) ac_val=;; |
| 4725 | *) ac_val=$ac_cv_c_inline;; |
| 4726 | esac |
| 4727 | cat >>confdefs.h <<_ACEOF |
| 4728 | #ifndef __cplusplus |
| 4729 | #define inline $ac_val |
| 4730 | #endif |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4731 | _ACEOF |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4732 | ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4733 | esac |
| 4734 | |
| 4735 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 4736 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 4737 | if test "${ac_cv_type_size_t+set}" = set; then |
| 4738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4739 | else |
| 4740 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4741 | /* confdefs.h. */ |
| 4742 | _ACEOF |
| 4743 | cat confdefs.h >>conftest.$ac_ext |
| 4744 | cat >>conftest.$ac_ext <<_ACEOF |
| 4745 | /* end confdefs.h. */ |
| 4746 | $ac_includes_default |
| 4747 | int |
| 4748 | main () |
| 4749 | { |
| 4750 | if ((size_t *) 0) |
| 4751 | return 0; |
| 4752 | if (sizeof (size_t)) |
| 4753 | return 0; |
| 4754 | ; |
| 4755 | return 0; |
| 4756 | } |
| 4757 | _ACEOF |
| 4758 | rm -f conftest.$ac_objext |
| 4759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4760 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4761 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4762 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4763 | rm -f conftest.er1 |
| 4764 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4766 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4767 | { ac_try='test -z "$ac_c_werror_flag" |
| 4768 | || test ! -s conftest.err' |
| 4769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4770 | (eval $ac_try) 2>&5 |
| 4771 | ac_status=$? |
| 4772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4773 | (exit $ac_status); }; } && |
| 4774 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4776 | (eval $ac_try) 2>&5 |
| 4777 | ac_status=$? |
| 4778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4779 | (exit $ac_status); }; }; then |
| 4780 | ac_cv_type_size_t=yes |
| 4781 | else |
| 4782 | echo "$as_me: failed program was:" >&5 |
| 4783 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4784 | |
| 4785 | ac_cv_type_size_t=no |
| 4786 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4787 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4788 | fi |
| 4789 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 4790 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 4791 | if test $ac_cv_type_size_t = yes; then |
| 4792 | : |
| 4793 | else |
| 4794 | |
| 4795 | cat >>confdefs.h <<_ACEOF |
| 4796 | #define size_t unsigned |
| 4797 | _ACEOF |
| 4798 | |
| 4799 | fi |
| 4800 | |
| 4801 | |
| 4802 | echo "$as_me:$LINENO: checking for working memcmp" >&5 |
| 4803 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 |
| 4804 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
| 4805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4806 | else |
| 4807 | if test "$cross_compiling" = yes; then |
| 4808 | ac_cv_func_memcmp_working=no |
| 4809 | else |
| 4810 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4811 | /* confdefs.h. */ |
| 4812 | _ACEOF |
| 4813 | cat confdefs.h >>conftest.$ac_ext |
| 4814 | cat >>conftest.$ac_ext <<_ACEOF |
| 4815 | /* end confdefs.h. */ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4816 | $ac_includes_default |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4817 | int |
| 4818 | main () |
| 4819 | { |
| 4820 | |
| 4821 | /* Some versions of memcmp are not 8-bit clean. */ |
| 4822 | char c0 = 0x40, c1 = 0x80, c2 = 0x81; |
| 4823 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
| 4824 | exit (1); |
| 4825 | |
| 4826 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
| 4827 | or more and with at least one buffer not starting on a 4-byte boundary. |
| 4828 | William Lewis provided this test program. */ |
| 4829 | { |
| 4830 | char foo[21]; |
| 4831 | char bar[21]; |
| 4832 | int i; |
| 4833 | for (i = 0; i < 4; i++) |
| 4834 | { |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4835 | char *a = foo + i; |
| 4836 | char *b = bar + i; |
| 4837 | strcpy (a, "--------01111111"); |
| 4838 | strcpy (b, "--------10000000"); |
| 4839 | if (memcmp (a, b, 16) >= 0) |
| 4840 | exit (1); |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4841 | } |
| 4842 | exit (0); |
| 4843 | } |
| 4844 | |
| 4845 | ; |
| 4846 | return 0; |
| 4847 | } |
| 4848 | _ACEOF |
| 4849 | rm -f conftest$ac_exeext |
| 4850 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4851 | (eval $ac_link) 2>&5 |
| 4852 | ac_status=$? |
| 4853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4854 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4856 | (eval $ac_try) 2>&5 |
| 4857 | ac_status=$? |
| 4858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4859 | (exit $ac_status); }; }; then |
| 4860 | ac_cv_func_memcmp_working=yes |
| 4861 | else |
| 4862 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4863 | echo "$as_me: failed program was:" >&5 |
| 4864 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4865 | |
| 4866 | ( exit $ac_status ) |
| 4867 | ac_cv_func_memcmp_working=no |
| 4868 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4869 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4870 | fi |
| 4871 | fi |
| 4872 | echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
| 4873 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4874 | test $ac_cv_func_memcmp_working = no && case $LIBOBJS in |
| 4875 | "memcmp.$ac_objext" | \ |
| 4876 | *" memcmp.$ac_objext" | \ |
| 4877 | "memcmp.$ac_objext "* | \ |
| 4878 | *" memcmp.$ac_objext "* ) ;; |
| 4879 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;; |
| 4880 | esac |
| 4881 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4882 | |
| 4883 | |
| 4884 | |
| 4885 | |
| 4886 | for ac_func in socket strerror inet_aton |
| 4887 | do |
| 4888 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 4889 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 4890 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 4891 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 4892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4893 | else |
| 4894 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4895 | /* confdefs.h. */ |
| 4896 | _ACEOF |
| 4897 | cat confdefs.h >>conftest.$ac_ext |
| 4898 | cat >>conftest.$ac_ext <<_ACEOF |
| 4899 | /* end confdefs.h. */ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4900 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 4901 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4902 | #define $ac_func innocuous_$ac_func |
| 4903 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4904 | /* System header to define __stub macros and hopefully few prototypes, |
| 4905 | which can conflict with char $ac_func (); below. |
| 4906 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4907 | <limits.h> exists even on freestanding compilers. */ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4908 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4909 | #ifdef __STDC__ |
| 4910 | # include <limits.h> |
| 4911 | #else |
| 4912 | # include <assert.h> |
| 4913 | #endif |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4914 | |
| 4915 | #undef $ac_func |
| 4916 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4917 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4918 | #ifdef __cplusplus |
| 4919 | extern "C" |
| 4920 | { |
| 4921 | #endif |
| 4922 | /* We use char because int might match the return type of a gcc2 |
| 4923 | builtin and then its argument prototype would still apply. */ |
| 4924 | char $ac_func (); |
| 4925 | /* The GNU C library defines this for functions which it implements |
| 4926 | to always fail with ENOSYS. Some functions are actually named |
| 4927 | something starting with __ and the normal name is an alias. */ |
| 4928 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4929 | choke me |
| 4930 | #else |
| 4931 | char (*f) () = $ac_func; |
| 4932 | #endif |
| 4933 | #ifdef __cplusplus |
| 4934 | } |
| 4935 | #endif |
| 4936 | |
| 4937 | int |
| 4938 | main () |
| 4939 | { |
| 4940 | return f != $ac_func; |
| 4941 | ; |
| 4942 | return 0; |
| 4943 | } |
| 4944 | _ACEOF |
| 4945 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4946 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4947 | (eval $ac_link) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4948 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4949 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4950 | rm -f conftest.er1 |
| 4951 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4953 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4954 | { ac_try='test -z "$ac_c_werror_flag" |
| 4955 | || test ! -s conftest.err' |
| 4956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4957 | (eval $ac_try) 2>&5 |
| 4958 | ac_status=$? |
| 4959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4960 | (exit $ac_status); }; } && |
| 4961 | { ac_try='test -s conftest$ac_exeext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4963 | (eval $ac_try) 2>&5 |
| 4964 | ac_status=$? |
| 4965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4966 | (exit $ac_status); }; }; then |
| 4967 | eval "$as_ac_var=yes" |
| 4968 | else |
| 4969 | echo "$as_me: failed program was:" >&5 |
| 4970 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4971 | |
| 4972 | eval "$as_ac_var=no" |
| 4973 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 4974 | rm -f conftest.err conftest.$ac_objext \ |
| 4975 | conftest$ac_exeext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4976 | fi |
| 4977 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 4978 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 4979 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 4980 | cat >>confdefs.h <<_ACEOF |
| 4981 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 4982 | _ACEOF |
| 4983 | |
| 4984 | fi |
| 4985 | done |
| 4986 | |
| 4987 | |
| 4988 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4989 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 4990 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4992 | else |
| 4993 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4994 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4995 | /* confdefs.h. */ |
| 4996 | _ACEOF |
| 4997 | cat confdefs.h >>conftest.$ac_ext |
| 4998 | cat >>conftest.$ac_ext <<_ACEOF |
| 4999 | /* end confdefs.h. */ |
| 5000 | #include <sys/types.h> |
| 5001 | #include <sys/param.h> |
| 5002 | |
| 5003 | int |
| 5004 | main () |
| 5005 | { |
| 5006 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 5007 | bogus endian macros |
| 5008 | #endif |
| 5009 | |
| 5010 | ; |
| 5011 | return 0; |
| 5012 | } |
| 5013 | _ACEOF |
| 5014 | rm -f conftest.$ac_objext |
| 5015 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 5016 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5017 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 5018 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5019 | rm -f conftest.er1 |
| 5020 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5022 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 5023 | { ac_try='test -z "$ac_c_werror_flag" |
| 5024 | || test ! -s conftest.err' |
| 5025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5026 | (eval $ac_try) 2>&5 |
| 5027 | ac_status=$? |
| 5028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5029 | (exit $ac_status); }; } && |
| 5030 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5032 | (eval $ac_try) 2>&5 |
| 5033 | ac_status=$? |
| 5034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5035 | (exit $ac_status); }; }; then |
| 5036 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 5037 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5038 | /* confdefs.h. */ |
| 5039 | _ACEOF |
| 5040 | cat confdefs.h >>conftest.$ac_ext |
| 5041 | cat >>conftest.$ac_ext <<_ACEOF |
| 5042 | /* end confdefs.h. */ |
| 5043 | #include <sys/types.h> |
| 5044 | #include <sys/param.h> |
| 5045 | |
| 5046 | int |
| 5047 | main () |
| 5048 | { |
| 5049 | #if BYTE_ORDER != BIG_ENDIAN |
| 5050 | not big endian |
| 5051 | #endif |
| 5052 | |
| 5053 | ; |
| 5054 | return 0; |
| 5055 | } |
| 5056 | _ACEOF |
| 5057 | rm -f conftest.$ac_objext |
| 5058 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 5059 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5060 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 5061 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5062 | rm -f conftest.er1 |
| 5063 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5065 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 5066 | { ac_try='test -z "$ac_c_werror_flag" |
| 5067 | || test ! -s conftest.err' |
| 5068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5069 | (eval $ac_try) 2>&5 |
| 5070 | ac_status=$? |
| 5071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5072 | (exit $ac_status); }; } && |
| 5073 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5075 | (eval $ac_try) 2>&5 |
| 5076 | ac_status=$? |
| 5077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5078 | (exit $ac_status); }; }; then |
| 5079 | ac_cv_c_bigendian=yes |
| 5080 | else |
| 5081 | echo "$as_me: failed program was:" >&5 |
| 5082 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5083 | |
| 5084 | ac_cv_c_bigendian=no |
| 5085 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 5086 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5087 | else |
| 5088 | echo "$as_me: failed program was:" >&5 |
| 5089 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5090 | |
| 5091 | # It does not; compile a test program. |
| 5092 | if test "$cross_compiling" = yes; then |
| 5093 | # try to guess the endianness by grepping values into an object file |
| 5094 | ac_cv_c_bigendian=unknown |
| 5095 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5096 | /* confdefs.h. */ |
| 5097 | _ACEOF |
| 5098 | cat confdefs.h >>conftest.$ac_ext |
| 5099 | cat >>conftest.$ac_ext <<_ACEOF |
| 5100 | /* end confdefs.h. */ |
| 5101 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 5102 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 5103 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 5104 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 5105 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 5106 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 5107 | int |
| 5108 | main () |
| 5109 | { |
| 5110 | _ascii (); _ebcdic (); |
| 5111 | ; |
| 5112 | return 0; |
| 5113 | } |
| 5114 | _ACEOF |
| 5115 | rm -f conftest.$ac_objext |
| 5116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 5117 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5118 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 5119 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5120 | rm -f conftest.er1 |
| 5121 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5123 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 5124 | { ac_try='test -z "$ac_c_werror_flag" |
| 5125 | || test ! -s conftest.err' |
| 5126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5127 | (eval $ac_try) 2>&5 |
| 5128 | ac_status=$? |
| 5129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5130 | (exit $ac_status); }; } && |
| 5131 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5133 | (eval $ac_try) 2>&5 |
| 5134 | ac_status=$? |
| 5135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5136 | (exit $ac_status); }; }; then |
| 5137 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 5138 | ac_cv_c_bigendian=yes |
| 5139 | fi |
| 5140 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 5141 | if test "$ac_cv_c_bigendian" = unknown; then |
| 5142 | ac_cv_c_bigendian=no |
| 5143 | else |
| 5144 | # finding both strings is unlikely to happen, but who knows? |
| 5145 | ac_cv_c_bigendian=unknown |
| 5146 | fi |
| 5147 | fi |
| 5148 | else |
| 5149 | echo "$as_me: failed program was:" >&5 |
| 5150 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5151 | |
| 5152 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 5153 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5154 | else |
| 5155 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5156 | /* confdefs.h. */ |
| 5157 | _ACEOF |
| 5158 | cat confdefs.h >>conftest.$ac_ext |
| 5159 | cat >>conftest.$ac_ext <<_ACEOF |
| 5160 | /* end confdefs.h. */ |
| 5161 | int |
| 5162 | main () |
| 5163 | { |
| 5164 | /* Are we little or big endian? From Harbison&Steele. */ |
| 5165 | union |
| 5166 | { |
| 5167 | long l; |
| 5168 | char c[sizeof (long)]; |
| 5169 | } u; |
| 5170 | u.l = 1; |
| 5171 | exit (u.c[sizeof (long) - 1] == 1); |
| 5172 | } |
| 5173 | _ACEOF |
| 5174 | rm -f conftest$ac_exeext |
| 5175 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5176 | (eval $ac_link) 2>&5 |
| 5177 | ac_status=$? |
| 5178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5179 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5181 | (eval $ac_try) 2>&5 |
| 5182 | ac_status=$? |
| 5183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5184 | (exit $ac_status); }; }; then |
| 5185 | ac_cv_c_bigendian=no |
| 5186 | else |
| 5187 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5188 | echo "$as_me: failed program was:" >&5 |
| 5189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5190 | |
| 5191 | ( exit $ac_status ) |
| 5192 | ac_cv_c_bigendian=yes |
| 5193 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 5194 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5195 | fi |
| 5196 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 5197 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5198 | fi |
| 5199 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 5200 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 5201 | case $ac_cv_c_bigendian in |
| 5202 | yes) |
| 5203 | |
| 5204 | cat >>confdefs.h <<\_ACEOF |
| 5205 | #define WORDS_BIGENDIAN 1 |
| 5206 | _ACEOF |
| 5207 | ;; |
| 5208 | no) |
| 5209 | ;; |
| 5210 | *) |
| 5211 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 5212 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 5213 | echo "$as_me: error: unknown endianness |
| 5214 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 5215 | { (exit 1); exit 1; }; } ;; |
| 5216 | esac |
| 5217 | |
| 5218 | |
| 5219 | ac_aux_dir= |
| 5220 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 5221 | if test -f $ac_dir/install-sh; then |
| 5222 | ac_aux_dir=$ac_dir |
| 5223 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 5224 | break |
| 5225 | elif test -f $ac_dir/install.sh; then |
| 5226 | ac_aux_dir=$ac_dir |
| 5227 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 5228 | break |
| 5229 | elif test -f $ac_dir/shtool; then |
| 5230 | ac_aux_dir=$ac_dir |
| 5231 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 5232 | break |
| 5233 | fi |
| 5234 | done |
| 5235 | if test -z "$ac_aux_dir"; then |
| 5236 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 5237 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 5238 | { (exit 1); exit 1; }; } |
| 5239 | fi |
| 5240 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 5241 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 5242 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 5243 | |
| 5244 | # Make sure we can run config.sub. |
| 5245 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 5246 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 5247 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 5248 | { (exit 1); exit 1; }; } |
| 5249 | |
| 5250 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 5251 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 5252 | if test "${ac_cv_build+set}" = set; then |
| 5253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5254 | else |
| 5255 | ac_cv_build_alias=$build_alias |
| 5256 | test -z "$ac_cv_build_alias" && |
| 5257 | ac_cv_build_alias=`$ac_config_guess` |
| 5258 | test -z "$ac_cv_build_alias" && |
| 5259 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 5260 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 5261 | { (exit 1); exit 1; }; } |
| 5262 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 5263 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 5264 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 5265 | { (exit 1); exit 1; }; } |
| 5266 | |
| 5267 | fi |
| 5268 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 5269 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 5270 | build=$ac_cv_build |
| 5271 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 5272 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 5273 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 5274 | |
| 5275 | |
| 5276 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 5277 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 5278 | if test "${ac_cv_host+set}" = set; then |
| 5279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5280 | else |
| 5281 | ac_cv_host_alias=$host_alias |
| 5282 | test -z "$ac_cv_host_alias" && |
| 5283 | ac_cv_host_alias=$ac_cv_build_alias |
| 5284 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 5285 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 5286 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 5287 | { (exit 1); exit 1; }; } |
| 5288 | |
| 5289 | fi |
| 5290 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 5291 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 5292 | host=$ac_cv_host |
| 5293 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 5294 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 5295 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 5296 | |
| 5297 | |
| 5298 | |
| 5299 | if test $host_cpu = x86; then |
| 5300 | echo "x86 cpu found" # should use inline assembly |
| 5301 | fi |
| 5302 | |
| 5303 | case $host_cpu in |
| 5304 | i*86 ) |
| 5305 | cat >>confdefs.h <<\_ACEOF |
| 5306 | #define CPU_CISC 1 |
| 5307 | _ACEOF |
| 5308 | ;; |
| 5309 | * ) |
| 5310 | cat >>confdefs.h <<\_ACEOF |
| 5311 | #define CPU_RISC 1 |
| 5312 | _ACEOF |
| 5313 | ;; |
| 5314 | esac |
| 5315 | |
| 5316 | |
| 5317 | case $host_os in |
| 5318 | *cygwin* ) |
| 5319 | cat >>confdefs.h <<\_ACEOF |
| 5320 | #define HAVE_MS_TYPES 1 |
| 5321 | _ACEOF |
| 5322 | |
| 5323 | EXE=.exe;; |
| 5324 | * ) EXE="";; |
| 5325 | esac |
| 5326 | |
| 5327 | # define executable suffix; this is needed for `make clean' |
| 5328 | |
| 5329 | # Check whether --enable-debug or --disable-debug was given. |
| 5330 | if test "${enable_debug+set}" = set; then |
| 5331 | enableval="$enable_debug" |
| 5332 | USE_DEBUG=0 |
| 5333 | else |
| 5334 | USE_DEBUG=1 |
| 5335 | fi; |
| 5336 | |
| 5337 | if test $USE_DEBUG = 1; then |
| 5338 | cat >>confdefs.h <<\_ACEOF |
| 5339 | #define ENABLE_DEBUGGING 1 |
| 5340 | _ACEOF |
| 5341 | |
| 5342 | fi |
| 5343 | |
| 5344 | # Check whether --enable-generic-aesicm or --disable-generic-aesicm was given. |
| 5345 | if test "${enable_generic_aesicm+set}" = set; then |
| 5346 | enableval="$enable_generic_aesicm" |
| 5347 | GENERIC_AESICM=0 |
| 5348 | else |
| 5349 | GENERIC_AESICM=1 |
| 5350 | fi; |
| 5351 | |
| 5352 | if test $GENERIC_AESICM = 1; then |
| 5353 | cat >>confdefs.h <<\_ACEOF |
| 5354 | #define GENERIC_AESICM 1 |
| 5355 | _ACEOF |
| 5356 | |
| 5357 | fi |
| 5358 | |
| 5359 | # Check whether --enable-syslog or --disable-syslog was given. |
| 5360 | if test "${enable_syslog+set}" = set; then |
| 5361 | enableval="$enable_syslog" |
| 5362 | USE_SYSLOG=1 |
| 5363 | else |
| 5364 | USE_SYSLOG=0 |
| 5365 | fi; |
| 5366 | |
| 5367 | if test $USE_SYSLOG = 1; then |
| 5368 | cat >>confdefs.h <<\_ACEOF |
| 5369 | #define USE_SYSLOG 1 |
| 5370 | _ACEOF |
| 5371 | |
| 5372 | fi |
| 5373 | |
| 5374 | # Check whether --enable-stdout or --disable-stdout was given. |
| 5375 | if test "${enable_stdout+set}" = set; then |
| 5376 | enableval="$enable_stdout" |
| 5377 | ERR_STDOUT=0 |
| 5378 | else |
| 5379 | ERR_STDOUT=1 |
| 5380 | fi; |
| 5381 | |
| 5382 | if test $ERR_STDOUT = 1; then |
| 5383 | cat >>confdefs.h <<\_ACEOF |
| 5384 | #define ERR_REPORTING_STDOUT 1 |
| 5385 | _ACEOF |
| 5386 | |
| 5387 | fi |
| 5388 | |
| 5389 | # Check whether --enable-console or --disable-console was given. |
| 5390 | if test "${enable_console+set}" = set; then |
| 5391 | enableval="$enable_console" |
| 5392 | ERR_FILE=1 |
| 5393 | else |
| 5394 | ERR_FILE=0 |
| 5395 | fi; |
| 5396 | |
| 5397 | if test $ERR_FILE = 1; then |
| 5398 | cat >>confdefs.h <<\_ACEOF |
| 5399 | #define ERR_REPORTING_FILE "/dev/console" |
| 5400 | _ACEOF |
| 5401 | |
| 5402 | fi |
| 5403 | # Check whether --enable-gdoi or --disable-gdoi was given. |
| 5404 | if test "${enable_gdoi+set}" = set; then |
| 5405 | enableval="$enable_gdoi" |
| 5406 | GDOI=1 |
| 5407 | else |
| 5408 | GDOI=0 |
| 5409 | fi; |
| 5410 | |
| 5411 | if test $GDOI = 1; then |
| 5412 | echo "$as_me:$LINENO: checking for GDOI key management" >&5 |
| 5413 | echo $ECHO_N "checking for GDOI key management... $ECHO_C" >&6 |
| 5414 | echo "$as_me:$LINENO: result: ?" >&5 |
| 5415 | echo "${ECHO_T}?" >&6 |
| 5416 | cat >>confdefs.h <<\_ACEOF |
| 5417 | #define SRTP_GDOI 1 |
| 5418 | _ACEOF |
| 5419 | |
| 5420 | GDOI_OBJS=gdoi/srtp+gdoi.o |
| 5421 | |
| 5422 | fi |
| 5423 | |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 5424 | ac_config_headers="$ac_config_headers crypto/include/config.h:config_in.h" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5425 | |
| 5426 | |
| 5427 | ac_config_files="$ac_config_files Makefile" |
| 5428 | cat >confcache <<\_ACEOF |
| 5429 | # This file is a shell script that caches the results of configure |
| 5430 | # tests run on this system so they can be shared between configure |
| 5431 | # scripts and configure runs, see configure's option --config-cache. |
| 5432 | # It is not useful on other systems. If it contains results you don't |
| 5433 | # want to keep, you may remove or edit it. |
| 5434 | # |
| 5435 | # config.status only pays attention to the cache file if you give it |
| 5436 | # the --recheck option to rerun configure. |
| 5437 | # |
| 5438 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 5439 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 5440 | # following values. |
| 5441 | |
| 5442 | _ACEOF |
| 5443 | |
| 5444 | # The following way of writing the cache mishandles newlines in values, |
| 5445 | # but we know of no workaround that is simple, portable, and efficient. |
| 5446 | # So, don't put newlines in cache variables' values. |
| 5447 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 5448 | # and sets the high bit in the cache file unless we assign to the vars. |
| 5449 | { |
| 5450 | (set) 2>&1 | |
| 5451 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 5452 | *ac_space=\ *) |
| 5453 | # `set' does not quote correctly, so add quotes (double-quote |
| 5454 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 5455 | sed -n \ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 5456 | "s/'/'\\\\''/g; |
| 5457 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5458 | ;; |
| 5459 | *) |
| 5460 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 5461 | sed -n \ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 5462 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5463 | ;; |
| 5464 | esac; |
| 5465 | } | |
| 5466 | sed ' |
| 5467 | t clear |
| 5468 | : clear |
| 5469 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 5470 | t end |
| 5471 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 5472 | : end' >>confcache |
| 5473 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
| 5474 | if test -w $cache_file; then |
| 5475 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 5476 | cat confcache >$cache_file |
| 5477 | else |
| 5478 | echo "not updating unwritable cache $cache_file" |
| 5479 | fi |
| 5480 | fi |
| 5481 | rm -f confcache |
| 5482 | |
| 5483 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 5484 | # Let make expand exec_prefix. |
| 5485 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 5486 | |
| 5487 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 5488 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 5489 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 5490 | # (actually we leave an empty line to preserve line numbers). |
| 5491 | if test "x$srcdir" = x.; then |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 5492 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5493 | s/:*\$(srcdir):*/:/; |
| 5494 | s/:*\${srcdir}:*/:/; |
| 5495 | s/:*@srcdir@:*/:/; |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 5496 | s/^\([^=]*=[ ]*\):*/\1/; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5497 | s/:*$//; |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 5498 | s/^[^=]*=[ ]*$//; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5499 | }' |
| 5500 | fi |
| 5501 | |
| 5502 | DEFS=-DHAVE_CONFIG_H |
| 5503 | |
| 5504 | ac_libobjs= |
| 5505 | ac_ltlibobjs= |
| 5506 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 5507 | # 1. Remove the extension, and $U if already installed. |
| 5508 | ac_i=`echo "$ac_i" | |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 5509 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5510 | # 2. Add them. |
| 5511 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 5512 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 5513 | done |
| 5514 | LIBOBJS=$ac_libobjs |
| 5515 | |
| 5516 | LTLIBOBJS=$ac_ltlibobjs |
| 5517 | |
| 5518 | |
| 5519 | |
| 5520 | : ${CONFIG_STATUS=./config.status} |
| 5521 | ac_clean_files_save=$ac_clean_files |
| 5522 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 5523 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 5524 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 5525 | cat >$CONFIG_STATUS <<_ACEOF |
| 5526 | #! $SHELL |
| 5527 | # Generated by $as_me. |
| 5528 | # Run this file to recreate the current configuration. |
| 5529 | # Compiler output produced by configure, useful for debugging |
| 5530 | # configure, is in config.log if it exists. |
| 5531 | |
| 5532 | debug=false |
| 5533 | ac_cs_recheck=false |
| 5534 | ac_cs_silent=false |
| 5535 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 5536 | _ACEOF |
| 5537 | |
| 5538 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 5539 | ## --------------------- ## |
| 5540 | ## M4sh Initialization. ## |
| 5541 | ## --------------------- ## |
| 5542 | |
| 5543 | # Be Bourne compatible |
| 5544 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 5545 | emulate sh |
| 5546 | NULLCMD=: |
| 5547 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 5548 | # is contrary to our usage. Disable this feature. |
| 5549 | alias -g '${1+"$@"}'='"$@"' |
| 5550 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 5551 | set -o posix |
| 5552 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 5553 | DUALCASE=1; export DUALCASE # for MKS sh |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5554 | |
| 5555 | # Support unset when possible. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 5556 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5557 | as_unset=unset |
| 5558 | else |
| 5559 | as_unset=false |
| 5560 | fi |
| 5561 | |
| 5562 | |
| 5563 | # Work around bugs in pre-3.0 UWIN ksh. |
| 5564 | $as_unset ENV MAIL MAILPATH |
| 5565 | PS1='$ ' |
| 5566 | PS2='> ' |
| 5567 | PS4='+ ' |
| 5568 | |
| 5569 | # NLS nuisances. |
| 5570 | for as_var in \ |
| 5571 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 5572 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 5573 | LC_TELEPHONE LC_TIME |
| 5574 | do |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 5575 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5576 | eval $as_var=C; export $as_var |
| 5577 | else |
| 5578 | $as_unset $as_var |
| 5579 | fi |
| 5580 | done |
| 5581 | |
| 5582 | # Required to use basename. |
| 5583 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 5584 | as_expr=expr |
| 5585 | else |
| 5586 | as_expr=false |
| 5587 | fi |
| 5588 | |
| 5589 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 5590 | as_basename=basename |
| 5591 | else |
| 5592 | as_basename=false |
| 5593 | fi |
| 5594 | |
| 5595 | |
| 5596 | # Name of the executable. |
| 5597 | as_me=`$as_basename "$0" || |
| 5598 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 5599 | X"$0" : 'X\(//\)$' \| \ |
| 5600 | X"$0" : 'X\(/\)$' \| \ |
| 5601 | . : '\(.\)' 2>/dev/null || |
| 5602 | echo X/"$0" | |
| 5603 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 5604 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 5605 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 5606 | s/.*/./; q'` |
| 5607 | |
| 5608 | |
| 5609 | # PATH needs CR, and LINENO needs CR and PATH. |
| 5610 | # Avoid depending upon Character Ranges. |
| 5611 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 5612 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 5613 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 5614 | as_cr_digits='0123456789' |
| 5615 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 5616 | |
| 5617 | # The user is always right. |
| 5618 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5619 | echo "#! /bin/sh" >conf$$.sh |
| 5620 | echo "exit 0" >>conf$$.sh |
| 5621 | chmod +x conf$$.sh |
| 5622 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5623 | PATH_SEPARATOR=';' |
| 5624 | else |
| 5625 | PATH_SEPARATOR=: |
| 5626 | fi |
| 5627 | rm -f conf$$.sh |
| 5628 | fi |
| 5629 | |
| 5630 | |
| 5631 | as_lineno_1=$LINENO |
| 5632 | as_lineno_2=$LINENO |
| 5633 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 5634 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 5635 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 5636 | # Find who we are. Look in the path if we contain no path at all |
| 5637 | # relative or not. |
| 5638 | case $0 in |
| 5639 | *[\\/]* ) as_myself=$0 ;; |
| 5640 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5641 | for as_dir in $PATH |
| 5642 | do |
| 5643 | IFS=$as_save_IFS |
| 5644 | test -z "$as_dir" && as_dir=. |
| 5645 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 5646 | done |
| 5647 | |
| 5648 | ;; |
| 5649 | esac |
| 5650 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 5651 | # in which case we are not to be found in the path. |
| 5652 | if test "x$as_myself" = x; then |
| 5653 | as_myself=$0 |
| 5654 | fi |
| 5655 | if test ! -f "$as_myself"; then |
| 5656 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 5657 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 5658 | { (exit 1); exit 1; }; } |
| 5659 | fi |
| 5660 | case $CONFIG_SHELL in |
| 5661 | '') |
| 5662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5663 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 5664 | do |
| 5665 | IFS=$as_save_IFS |
| 5666 | test -z "$as_dir" && as_dir=. |
| 5667 | for as_base in sh bash ksh sh5; do |
| 5668 | case $as_dir in |
| 5669 | /*) |
| 5670 | if ("$as_dir/$as_base" -c ' |
| 5671 | as_lineno_1=$LINENO |
| 5672 | as_lineno_2=$LINENO |
| 5673 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 5674 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 5675 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 5676 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 5677 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 5678 | CONFIG_SHELL=$as_dir/$as_base |
| 5679 | export CONFIG_SHELL |
| 5680 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 5681 | fi;; |
| 5682 | esac |
| 5683 | done |
| 5684 | done |
| 5685 | ;; |
| 5686 | esac |
| 5687 | |
| 5688 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 5689 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 5690 | # line-number line before each line; the second 'sed' does the real |
| 5691 | # work. The second script uses 'N' to pair each line-number line |
| 5692 | # with the numbered line, and appends trailing '-' during |
| 5693 | # substitution so that $LINENO is not a special case at line end. |
| 5694 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 5695 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 5696 | sed '=' <$as_myself | |
| 5697 | sed ' |
| 5698 | N |
| 5699 | s,$,-, |
| 5700 | : loop |
| 5701 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 5702 | t loop |
| 5703 | s,-$,, |
| 5704 | s,^['$as_cr_digits']*\n,, |
| 5705 | ' >$as_me.lineno && |
| 5706 | chmod +x $as_me.lineno || |
| 5707 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 5708 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 5709 | { (exit 1); exit 1; }; } |
| 5710 | |
| 5711 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 5712 | # (the dirname of $[0] is not the place where we might find the |
| 5713 | # original and so on. Autoconf is especially sensible to this). |
| 5714 | . ./$as_me.lineno |
| 5715 | # Exit status is that of the last command. |
| 5716 | exit |
| 5717 | } |
| 5718 | |
| 5719 | |
| 5720 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 5721 | *c*,-n*) ECHO_N= ECHO_C=' |
| 5722 | ' ECHO_T=' ' ;; |
| 5723 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 5724 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 5725 | esac |
| 5726 | |
| 5727 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 5728 | as_expr=expr |
| 5729 | else |
| 5730 | as_expr=false |
| 5731 | fi |
| 5732 | |
| 5733 | rm -f conf$$ conf$$.exe conf$$.file |
| 5734 | echo >conf$$.file |
| 5735 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 5736 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 5737 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 5738 | if test -f conf$$.exe; then |
| 5739 | # Don't use ln at all; we don't have any links |
| 5740 | as_ln_s='cp -p' |
| 5741 | else |
| 5742 | as_ln_s='ln -s' |
| 5743 | fi |
| 5744 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 5745 | as_ln_s=ln |
| 5746 | else |
| 5747 | as_ln_s='cp -p' |
| 5748 | fi |
| 5749 | rm -f conf$$ conf$$.exe conf$$.file |
| 5750 | |
| 5751 | if mkdir -p . 2>/dev/null; then |
| 5752 | as_mkdir_p=: |
| 5753 | else |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 5754 | test -d ./-p && rmdir ./-p |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5755 | as_mkdir_p=false |
| 5756 | fi |
| 5757 | |
| 5758 | as_executable_p="test -f" |
| 5759 | |
| 5760 | # Sed expression to map a string onto a valid CPP name. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 5761 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5762 | |
| 5763 | # Sed expression to map a string onto a valid variable name. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 5764 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5765 | |
| 5766 | |
| 5767 | # IFS |
| 5768 | # We need space, tab and new line, in precisely that order. |
| 5769 | as_nl=' |
| 5770 | ' |
| 5771 | IFS=" $as_nl" |
| 5772 | |
| 5773 | # CDPATH. |
| 5774 | $as_unset CDPATH |
| 5775 | |
| 5776 | exec 6>&1 |
| 5777 | |
| 5778 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 5779 | # report actual input values of CONFIG_FILES etc. instead of their |
| 5780 | # values after options handling. Logging --version etc. is OK. |
| 5781 | exec 5>>config.log |
| 5782 | { |
| 5783 | echo |
| 5784 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 5785 | ## Running $as_me. ## |
| 5786 | _ASBOX |
| 5787 | } >&5 |
| 5788 | cat >&5 <<_CSEOF |
| 5789 | |
| 5790 | This file was extended by $as_me, which was |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 5791 | generated by GNU Autoconf 2.59. Invocation command line was |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5792 | |
| 5793 | CONFIG_FILES = $CONFIG_FILES |
| 5794 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 5795 | CONFIG_LINKS = $CONFIG_LINKS |
| 5796 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 5797 | $ $0 $@ |
| 5798 | |
| 5799 | _CSEOF |
| 5800 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 5801 | echo >&5 |
| 5802 | _ACEOF |
| 5803 | |
| 5804 | # Files that config.status was made for. |
| 5805 | if test -n "$ac_config_files"; then |
| 5806 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 5807 | fi |
| 5808 | |
| 5809 | if test -n "$ac_config_headers"; then |
| 5810 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 5811 | fi |
| 5812 | |
| 5813 | if test -n "$ac_config_links"; then |
| 5814 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 5815 | fi |
| 5816 | |
| 5817 | if test -n "$ac_config_commands"; then |
| 5818 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 5819 | fi |
| 5820 | |
| 5821 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 5822 | |
| 5823 | ac_cs_usage="\ |
| 5824 | \`$as_me' instantiates files from templates according to the |
| 5825 | current configuration. |
| 5826 | |
| 5827 | Usage: $0 [OPTIONS] [FILE]... |
| 5828 | |
| 5829 | -h, --help print this help, then exit |
| 5830 | -V, --version print version number, then exit |
| 5831 | -q, --quiet do not print progress messages |
| 5832 | -d, --debug don't remove temporary files |
| 5833 | --recheck update $as_me by reconfiguring in the same conditions |
| 5834 | --file=FILE[:TEMPLATE] |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 5835 | instantiate the configuration file FILE |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5836 | --header=FILE[:TEMPLATE] |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 5837 | instantiate the configuration header FILE |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5838 | |
| 5839 | Configuration files: |
| 5840 | $config_files |
| 5841 | |
| 5842 | Configuration headers: |
| 5843 | $config_headers |
| 5844 | |
| 5845 | Report bugs to <bug-autoconf@gnu.org>." |
| 5846 | _ACEOF |
| 5847 | |
| 5848 | cat >>$CONFIG_STATUS <<_ACEOF |
| 5849 | ac_cs_version="\\ |
| 5850 | config.status |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 5851 | configured by $0, generated by GNU Autoconf 2.59, |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5852 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 5853 | |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 5854 | Copyright (C) 2003 Free Software Foundation, Inc. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5855 | This config.status script is free software; the Free Software Foundation |
| 5856 | gives unlimited permission to copy, distribute and modify it." |
| 5857 | srcdir=$srcdir |
| 5858 | _ACEOF |
| 5859 | |
| 5860 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 5861 | # If no file are specified by the user, then we need to provide default |
| 5862 | # value. By we need to know if files were specified by the user. |
| 5863 | ac_need_defaults=: |
| 5864 | while test $# != 0 |
| 5865 | do |
| 5866 | case $1 in |
| 5867 | --*=*) |
| 5868 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 5869 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 5870 | ac_shift=: |
| 5871 | ;; |
| 5872 | -*) |
| 5873 | ac_option=$1 |
| 5874 | ac_optarg=$2 |
| 5875 | ac_shift=shift |
| 5876 | ;; |
| 5877 | *) # This is not an option, so the user has probably given explicit |
| 5878 | # arguments. |
| 5879 | ac_option=$1 |
| 5880 | ac_need_defaults=false;; |
| 5881 | esac |
| 5882 | |
| 5883 | case $ac_option in |
| 5884 | # Handling of the options. |
| 5885 | _ACEOF |
| 5886 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 5887 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 5888 | ac_cs_recheck=: ;; |
| 5889 | --version | --vers* | -V ) |
| 5890 | echo "$ac_cs_version"; exit 0 ;; |
| 5891 | --he | --h) |
| 5892 | # Conflict between --help and --header |
| 5893 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 5894 | Try \`$0 --help' for more information." >&5 |
| 5895 | echo "$as_me: error: ambiguous option: $1 |
| 5896 | Try \`$0 --help' for more information." >&2;} |
| 5897 | { (exit 1); exit 1; }; };; |
| 5898 | --help | --hel | -h ) |
| 5899 | echo "$ac_cs_usage"; exit 0 ;; |
| 5900 | --debug | --d* | -d ) |
| 5901 | debug=: ;; |
| 5902 | --file | --fil | --fi | --f ) |
| 5903 | $ac_shift |
| 5904 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 5905 | ac_need_defaults=false;; |
| 5906 | --header | --heade | --head | --hea ) |
| 5907 | $ac_shift |
| 5908 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 5909 | ac_need_defaults=false;; |
| 5910 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 5911 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 5912 | ac_cs_silent=: ;; |
| 5913 | |
| 5914 | # This is an error. |
| 5915 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 5916 | Try \`$0 --help' for more information." >&5 |
| 5917 | echo "$as_me: error: unrecognized option: $1 |
| 5918 | Try \`$0 --help' for more information." >&2;} |
| 5919 | { (exit 1); exit 1; }; } ;; |
| 5920 | |
| 5921 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 5922 | |
| 5923 | esac |
| 5924 | shift |
| 5925 | done |
| 5926 | |
| 5927 | ac_configure_extra_args= |
| 5928 | |
| 5929 | if $ac_cs_silent; then |
| 5930 | exec 6>/dev/null |
| 5931 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 5932 | fi |
| 5933 | |
| 5934 | _ACEOF |
| 5935 | cat >>$CONFIG_STATUS <<_ACEOF |
| 5936 | if \$ac_cs_recheck; then |
| 5937 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 5938 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 5939 | fi |
| 5940 | |
| 5941 | _ACEOF |
| 5942 | |
| 5943 | |
| 5944 | |
| 5945 | |
| 5946 | |
| 5947 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 5948 | for ac_config_target in $ac_config_targets |
| 5949 | do |
| 5950 | case "$ac_config_target" in |
| 5951 | # Handling of arguments. |
| 5952 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 5953 | "crypto/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS crypto/include/config.h:config_in.h" ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5954 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 5955 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 5956 | { (exit 1); exit 1; }; };; |
| 5957 | esac |
| 5958 | done |
| 5959 | |
| 5960 | # If the user did not use the arguments to specify the items to instantiate, |
| 5961 | # then the envvar interface is used. Set only those that are not. |
| 5962 | # We use the long form for the default assignment because of an extremely |
| 5963 | # bizarre bug on SunOS 4.1.3. |
| 5964 | if $ac_need_defaults; then |
| 5965 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 5966 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 5967 | fi |
| 5968 | |
| 5969 | # Have a temporary directory for convenience. Make it in the build tree |
| 5970 | # simply because there is no reason to put it here, and in addition, |
| 5971 | # creating and moving files from /tmp can sometimes cause problems. |
| 5972 | # Create a temporary directory, and hook for its removal unless debugging. |
| 5973 | $debug || |
| 5974 | { |
| 5975 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 5976 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 5977 | } |
| 5978 | |
| 5979 | # Create a (secure) tmp directory for tmp files. |
| 5980 | |
| 5981 | { |
| 5982 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| 5983 | test -n "$tmp" && test -d "$tmp" |
| 5984 | } || |
| 5985 | { |
| 5986 | tmp=./confstat$$-$RANDOM |
| 5987 | (umask 077 && mkdir $tmp) |
| 5988 | } || |
| 5989 | { |
| 5990 | echo "$me: cannot create a temporary directory in ." >&2 |
| 5991 | { (exit 1); exit 1; } |
| 5992 | } |
| 5993 | |
| 5994 | _ACEOF |
| 5995 | |
| 5996 | cat >>$CONFIG_STATUS <<_ACEOF |
| 5997 | |
| 5998 | # |
| 5999 | # CONFIG_FILES section. |
| 6000 | # |
| 6001 | |
| 6002 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 6003 | # This happens for instance when ./config.status config.h |
| 6004 | if test -n "\$CONFIG_FILES"; then |
| 6005 | # Protect against being on the right side of a sed subst in config.status. |
| 6006 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 6007 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 6008 | s,@SHELL@,$SHELL,;t t |
| 6009 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 6010 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 6011 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 6012 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 6013 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 6014 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 6015 | s,@exec_prefix@,$exec_prefix,;t t |
| 6016 | s,@prefix@,$prefix,;t t |
| 6017 | s,@program_transform_name@,$program_transform_name,;t t |
| 6018 | s,@bindir@,$bindir,;t t |
| 6019 | s,@sbindir@,$sbindir,;t t |
| 6020 | s,@libexecdir@,$libexecdir,;t t |
| 6021 | s,@datadir@,$datadir,;t t |
| 6022 | s,@sysconfdir@,$sysconfdir,;t t |
| 6023 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 6024 | s,@localstatedir@,$localstatedir,;t t |
| 6025 | s,@libdir@,$libdir,;t t |
| 6026 | s,@includedir@,$includedir,;t t |
| 6027 | s,@oldincludedir@,$oldincludedir,;t t |
| 6028 | s,@infodir@,$infodir,;t t |
| 6029 | s,@mandir@,$mandir,;t t |
| 6030 | s,@build_alias@,$build_alias,;t t |
| 6031 | s,@host_alias@,$host_alias,;t t |
| 6032 | s,@target_alias@,$target_alias,;t t |
| 6033 | s,@DEFS@,$DEFS,;t t |
| 6034 | s,@ECHO_C@,$ECHO_C,;t t |
| 6035 | s,@ECHO_N@,$ECHO_N,;t t |
| 6036 | s,@ECHO_T@,$ECHO_T,;t t |
| 6037 | s,@LIBS@,$LIBS,;t t |
| 6038 | s,@RANLIB@,$RANLIB,;t t |
| 6039 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 6040 | s,@CC@,$CC,;t t |
| 6041 | s,@CFLAGS@,$CFLAGS,;t t |
| 6042 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 6043 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 6044 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 6045 | s,@EXEEXT@,$EXEEXT,;t t |
| 6046 | s,@OBJEXT@,$OBJEXT,;t t |
| 6047 | s,@RNG_OBJS@,$RNG_OBJS,;t t |
| 6048 | s,@CPP@,$CPP,;t t |
| 6049 | s,@EGREP@,$EGREP,;t t |
| 6050 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 6051 | s,@build@,$build,;t t |
| 6052 | s,@build_cpu@,$build_cpu,;t t |
| 6053 | s,@build_vendor@,$build_vendor,;t t |
| 6054 | s,@build_os@,$build_os,;t t |
| 6055 | s,@host@,$host,;t t |
| 6056 | s,@host_cpu@,$host_cpu,;t t |
| 6057 | s,@host_vendor@,$host_vendor,;t t |
| 6058 | s,@host_os@,$host_os,;t t |
| 6059 | s,@EXE@,$EXE,;t t |
| 6060 | s,@GDOI_OBJS@,$GDOI_OBJS,;t t |
| 6061 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 6062 | CEOF |
| 6063 | |
| 6064 | _ACEOF |
| 6065 | |
| 6066 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 6067 | # Split the substitutions into bite-sized pieces for seds with |
| 6068 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 6069 | ac_max_sed_lines=48 |
| 6070 | ac_sed_frag=1 # Number of current file. |
| 6071 | ac_beg=1 # First line for current file. |
| 6072 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 6073 | ac_more_lines=: |
| 6074 | ac_sed_cmds= |
| 6075 | while $ac_more_lines; do |
| 6076 | if test $ac_beg -gt 1; then |
| 6077 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 6078 | else |
| 6079 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 6080 | fi |
| 6081 | if test ! -s $tmp/subs.frag; then |
| 6082 | ac_more_lines=false |
| 6083 | else |
| 6084 | # The purpose of the label and of the branching condition is to |
| 6085 | # speed up the sed processing (if there are no `@' at all, there |
| 6086 | # is no need to browse any of the substitutions). |
| 6087 | # These are the two extra sed commands mentioned above. |
| 6088 | (echo ':t |
| 6089 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 6090 | if test -z "$ac_sed_cmds"; then |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 6091 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6092 | else |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 6093 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6094 | fi |
| 6095 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 6096 | ac_beg=$ac_end |
| 6097 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 6098 | fi |
| 6099 | done |
| 6100 | if test -z "$ac_sed_cmds"; then |
| 6101 | ac_sed_cmds=cat |
| 6102 | fi |
| 6103 | fi # test -n "$CONFIG_FILES" |
| 6104 | |
| 6105 | _ACEOF |
| 6106 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 6107 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 6108 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 6109 | case $ac_file in |
| 6110 | - | *:- | *:-:* ) # input from stdin |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 6111 | cat >$tmp/stdin |
| 6112 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 6113 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6114 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 6115 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6116 | * ) ac_file_in=$ac_file.in ;; |
| 6117 | esac |
| 6118 | |
| 6119 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 6120 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 6121 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 6122 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 6123 | X"$ac_file" : 'X\(//\)$' \| \ |
| 6124 | X"$ac_file" : 'X\(/\)' \| \ |
| 6125 | . : '\(.\)' 2>/dev/null || |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6126 | echo X"$ac_file" | |
| 6127 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 6128 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 6129 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 6130 | /^X\(\/\).*/{ s//\1/; q; } |
| 6131 | s/.*/./; q'` |
| 6132 | { if $as_mkdir_p; then |
| 6133 | mkdir -p "$ac_dir" |
| 6134 | else |
| 6135 | as_dir="$ac_dir" |
| 6136 | as_dirs= |
| 6137 | while test ! -d "$as_dir"; do |
| 6138 | as_dirs="$as_dir $as_dirs" |
| 6139 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 6140 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 6141 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 6142 | X"$as_dir" : 'X\(//\)$' \| \ |
| 6143 | X"$as_dir" : 'X\(/\)' \| \ |
| 6144 | . : '\(.\)' 2>/dev/null || |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6145 | echo X"$as_dir" | |
| 6146 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 6147 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 6148 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 6149 | /^X\(\/\).*/{ s//\1/; q; } |
| 6150 | s/.*/./; q'` |
| 6151 | done |
| 6152 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 6153 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 6154 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 6155 | { (exit 1); exit 1; }; }; } |
| 6156 | |
| 6157 | ac_builddir=. |
| 6158 | |
| 6159 | if test "$ac_dir" != .; then |
| 6160 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 6161 | # A "../" for each directory in $ac_dir_suffix. |
| 6162 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 6163 | else |
| 6164 | ac_dir_suffix= ac_top_builddir= |
| 6165 | fi |
| 6166 | |
| 6167 | case $srcdir in |
| 6168 | .) # No --srcdir option. We are building in place. |
| 6169 | ac_srcdir=. |
| 6170 | if test -z "$ac_top_builddir"; then |
| 6171 | ac_top_srcdir=. |
| 6172 | else |
| 6173 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 6174 | fi ;; |
| 6175 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 6176 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 6177 | ac_top_srcdir=$srcdir ;; |
| 6178 | *) # Relative path. |
| 6179 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 6180 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 6181 | esac |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 6182 | |
| 6183 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 6184 | # the directories may not exist. |
| 6185 | case `pwd` in |
| 6186 | .) ac_abs_builddir="$ac_dir";; |
| 6187 | *) |
| 6188 | case "$ac_dir" in |
| 6189 | .) ac_abs_builddir=`pwd`;; |
| 6190 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 6191 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 6192 | esac;; |
| 6193 | esac |
| 6194 | case $ac_abs_builddir in |
| 6195 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 6196 | *) |
| 6197 | case ${ac_top_builddir}. in |
| 6198 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 6199 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 6200 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 6201 | esac;; |
| 6202 | esac |
| 6203 | case $ac_abs_builddir in |
| 6204 | .) ac_abs_srcdir=$ac_srcdir;; |
| 6205 | *) |
| 6206 | case $ac_srcdir in |
| 6207 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 6208 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 6209 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 6210 | esac;; |
| 6211 | esac |
| 6212 | case $ac_abs_builddir in |
| 6213 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 6214 | *) |
| 6215 | case $ac_top_srcdir in |
| 6216 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 6217 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 6218 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 6219 | esac;; |
| 6220 | esac |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6221 | |
| 6222 | |
| 6223 | |
| 6224 | if test x"$ac_file" != x-; then |
| 6225 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 6226 | echo "$as_me: creating $ac_file" >&6;} |
| 6227 | rm -f "$ac_file" |
| 6228 | fi |
| 6229 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 6230 | # use $as_me), people would be surprised to read: |
| 6231 | # /* config.h. Generated by config.status. */ |
| 6232 | if test x"$ac_file" = x-; then |
| 6233 | configure_input= |
| 6234 | else |
| 6235 | configure_input="$ac_file. " |
| 6236 | fi |
| 6237 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 6238 | sed 's,.*/,,'` by configure." |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6239 | |
| 6240 | # First look for the input files in the build tree, otherwise in the |
| 6241 | # src tree. |
| 6242 | ac_file_inputs=`IFS=: |
| 6243 | for f in $ac_file_in; do |
| 6244 | case $f in |
| 6245 | -) echo $tmp/stdin ;; |
| 6246 | [\\/$]*) |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 6247 | # Absolute (can't be DOS-style, as IFS=:) |
| 6248 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6249 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 6250 | { (exit 1); exit 1; }; } |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 6251 | echo "$f";; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6252 | *) # Relative |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 6253 | if test -f "$f"; then |
| 6254 | # Build tree |
| 6255 | echo "$f" |
| 6256 | elif test -f "$srcdir/$f"; then |
| 6257 | # Source tree |
| 6258 | echo "$srcdir/$f" |
| 6259 | else |
| 6260 | # /dev/null tree |
| 6261 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6262 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 6263 | { (exit 1); exit 1; }; } |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 6264 | fi;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6265 | esac |
| 6266 | done` || { (exit 1); exit 1; } |
| 6267 | _ACEOF |
| 6268 | cat >>$CONFIG_STATUS <<_ACEOF |
| 6269 | sed "$ac_vpsub |
| 6270 | $extrasub |
| 6271 | _ACEOF |
| 6272 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 6273 | :t |
| 6274 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 6275 | s,@configure_input@,$configure_input,;t t |
| 6276 | s,@srcdir@,$ac_srcdir,;t t |
| 6277 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 6278 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 6279 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 6280 | s,@builddir@,$ac_builddir,;t t |
| 6281 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 6282 | s,@top_builddir@,$ac_top_builddir,;t t |
| 6283 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 6284 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 6285 | rm -f $tmp/stdin |
| 6286 | if test x"$ac_file" != x-; then |
| 6287 | mv $tmp/out $ac_file |
| 6288 | else |
| 6289 | cat $tmp/out |
| 6290 | rm -f $tmp/out |
| 6291 | fi |
| 6292 | |
| 6293 | done |
| 6294 | _ACEOF |
| 6295 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 6296 | |
| 6297 | # |
| 6298 | # CONFIG_HEADER section. |
| 6299 | # |
| 6300 | |
| 6301 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 6302 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 6303 | # |
| 6304 | # ac_d sets the value in "#define NAME VALUE" lines. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 6305 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 6306 | ac_dB='[ ].*$,\1#\2' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6307 | ac_dC=' ' |
| 6308 | ac_dD=',;t' |
| 6309 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 6310 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6311 | ac_uB='$,\1#\2define\3' |
| 6312 | ac_uC=' ' |
| 6313 | ac_uD=',;t' |
| 6314 | |
| 6315 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 6316 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 6317 | case $ac_file in |
| 6318 | - | *:- | *:-:* ) # input from stdin |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 6319 | cat >$tmp/stdin |
| 6320 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 6321 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6322 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 6323 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6324 | * ) ac_file_in=$ac_file.in ;; |
| 6325 | esac |
| 6326 | |
| 6327 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 6328 | echo "$as_me: creating $ac_file" >&6;} |
| 6329 | |
| 6330 | # First look for the input files in the build tree, otherwise in the |
| 6331 | # src tree. |
| 6332 | ac_file_inputs=`IFS=: |
| 6333 | for f in $ac_file_in; do |
| 6334 | case $f in |
| 6335 | -) echo $tmp/stdin ;; |
| 6336 | [\\/$]*) |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 6337 | # Absolute (can't be DOS-style, as IFS=:) |
| 6338 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6339 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 6340 | { (exit 1); exit 1; }; } |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 6341 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 6342 | echo "$f";; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6343 | *) # Relative |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 6344 | if test -f "$f"; then |
| 6345 | # Build tree |
| 6346 | echo "$f" |
| 6347 | elif test -f "$srcdir/$f"; then |
| 6348 | # Source tree |
| 6349 | echo "$srcdir/$f" |
| 6350 | else |
| 6351 | # /dev/null tree |
| 6352 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6353 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 6354 | { (exit 1); exit 1; }; } |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 6355 | fi;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6356 | esac |
| 6357 | done` || { (exit 1); exit 1; } |
| 6358 | # Remove the trailing spaces. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 6359 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6360 | |
| 6361 | _ACEOF |
| 6362 | |
| 6363 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 6364 | # `conftest.undefs', that substitutes the proper values into |
| 6365 | # config.h.in to produce config.h. The first handles `#define' |
| 6366 | # templates, and the second `#undef' templates. |
| 6367 | # And first: Protect against being on the right side of a sed subst in |
| 6368 | # config.status. Protect against being in an unquoted here document |
| 6369 | # in config.status. |
| 6370 | rm -f conftest.defines conftest.undefs |
| 6371 | # Using a here document instead of a string reduces the quoting nightmare. |
| 6372 | # Putting comments in sed scripts is not portable. |
| 6373 | # |
| 6374 | # `end' is used to avoid that the second main sed command (meant for |
| 6375 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 6376 | # See the Autoconf documentation for `clear'. |
| 6377 | cat >confdef2sed.sed <<\_ACEOF |
| 6378 | s/[\\&,]/\\&/g |
| 6379 | s,[\\$`],\\&,g |
| 6380 | t clear |
| 6381 | : clear |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 6382 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6383 | t end |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 6384 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6385 | : end |
| 6386 | _ACEOF |
| 6387 | # If some macros were called several times there might be several times |
| 6388 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 6389 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 6390 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 6391 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 6392 | rm -f confdef2sed.sed |
| 6393 | |
| 6394 | # This sed command replaces #undef with comments. This is necessary, for |
| 6395 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 6396 | # on some systems where configure will not decide to define it. |
| 6397 | cat >>conftest.undefs <<\_ACEOF |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 6398 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6399 | _ACEOF |
| 6400 | |
| 6401 | # Break up conftest.defines because some shells have a limit on the size |
| 6402 | # of here documents, and old seds have small limits too (100 cmds). |
| 6403 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 6404 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6405 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 6406 | echo ' :' >>$CONFIG_STATUS |
| 6407 | rm -f conftest.tail |
| 6408 | while grep . conftest.defines >/dev/null |
| 6409 | do |
| 6410 | # Write a limited-size here document to $tmp/defines.sed. |
| 6411 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 6412 | # Speed up: don't consider the non `#define' lines. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 6413 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6414 | # Work around the forget-to-reset-the-flag bug. |
| 6415 | echo 't clr' >>$CONFIG_STATUS |
| 6416 | echo ': clr' >>$CONFIG_STATUS |
| 6417 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 6418 | echo 'CEOF |
| 6419 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 6420 | rm -f $tmp/in |
| 6421 | mv $tmp/out $tmp/in |
| 6422 | ' >>$CONFIG_STATUS |
| 6423 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 6424 | rm -f conftest.defines |
| 6425 | mv conftest.tail conftest.defines |
| 6426 | done |
| 6427 | rm -f conftest.defines |
| 6428 | echo ' fi # grep' >>$CONFIG_STATUS |
| 6429 | echo >>$CONFIG_STATUS |
| 6430 | |
| 6431 | # Break up conftest.undefs because some shells have a limit on the size |
| 6432 | # of here documents, and old seds have small limits too (100 cmds). |
| 6433 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 6434 | rm -f conftest.tail |
| 6435 | while grep . conftest.undefs >/dev/null |
| 6436 | do |
| 6437 | # Write a limited-size here document to $tmp/undefs.sed. |
| 6438 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 6439 | # Speed up: don't consider the non `#undef' |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 6440 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6441 | # Work around the forget-to-reset-the-flag bug. |
| 6442 | echo 't clr' >>$CONFIG_STATUS |
| 6443 | echo ': clr' >>$CONFIG_STATUS |
| 6444 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 6445 | echo 'CEOF |
| 6446 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 6447 | rm -f $tmp/in |
| 6448 | mv $tmp/out $tmp/in |
| 6449 | ' >>$CONFIG_STATUS |
| 6450 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 6451 | rm -f conftest.undefs |
| 6452 | mv conftest.tail conftest.undefs |
| 6453 | done |
| 6454 | rm -f conftest.undefs |
| 6455 | |
| 6456 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 6457 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 6458 | # use $as_me), people would be surprised to read: |
| 6459 | # /* config.h. Generated by config.status. */ |
| 6460 | if test x"$ac_file" = x-; then |
| 6461 | echo "/* Generated by configure. */" >$tmp/config.h |
| 6462 | else |
| 6463 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 6464 | fi |
| 6465 | cat $tmp/in >>$tmp/config.h |
| 6466 | rm -f $tmp/in |
| 6467 | if test x"$ac_file" != x-; then |
| 6468 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
| 6469 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 6470 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 6471 | else |
| 6472 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 6473 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 6474 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 6475 | X"$ac_file" : 'X\(//\)$' \| \ |
| 6476 | X"$ac_file" : 'X\(/\)' \| \ |
| 6477 | . : '\(.\)' 2>/dev/null || |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6478 | echo X"$ac_file" | |
| 6479 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 6480 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 6481 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 6482 | /^X\(\/\).*/{ s//\1/; q; } |
| 6483 | s/.*/./; q'` |
| 6484 | { if $as_mkdir_p; then |
| 6485 | mkdir -p "$ac_dir" |
| 6486 | else |
| 6487 | as_dir="$ac_dir" |
| 6488 | as_dirs= |
| 6489 | while test ! -d "$as_dir"; do |
| 6490 | as_dirs="$as_dir $as_dirs" |
| 6491 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 6492 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame^] | 6493 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 6494 | X"$as_dir" : 'X\(//\)$' \| \ |
| 6495 | X"$as_dir" : 'X\(/\)' \| \ |
| 6496 | . : '\(.\)' 2>/dev/null || |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6497 | echo X"$as_dir" | |
| 6498 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 6499 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 6500 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 6501 | /^X\(\/\).*/{ s//\1/; q; } |
| 6502 | s/.*/./; q'` |
| 6503 | done |
| 6504 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 6505 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 6506 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 6507 | { (exit 1); exit 1; }; }; } |
| 6508 | |
| 6509 | rm -f $ac_file |
| 6510 | mv $tmp/config.h $ac_file |
| 6511 | fi |
| 6512 | else |
| 6513 | cat $tmp/config.h |
| 6514 | rm -f $tmp/config.h |
| 6515 | fi |
| 6516 | done |
| 6517 | _ACEOF |
| 6518 | |
| 6519 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 6520 | |
| 6521 | { (exit 0); exit 0; } |
| 6522 | _ACEOF |
| 6523 | chmod +x $CONFIG_STATUS |
| 6524 | ac_clean_files=$ac_clean_files_save |
| 6525 | |
| 6526 | |
| 6527 | # configure is writing to config.log, and then calls config.status. |
| 6528 | # config.status does its own redirection, appending to config.log. |
| 6529 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 6530 | # by configure, so config.status won't be able to write to it; its |
| 6531 | # output is simply discarded. So we exec the FD to /dev/null, |
| 6532 | # effectively closing config.log, so it can be properly (re)opened and |
| 6533 | # appended to by config.status. When coming back to configure, we |
| 6534 | # need to make the FD available again. |
| 6535 | if test "$no_create" != yes; then |
| 6536 | ac_cs_success=: |
| 6537 | ac_config_status_args= |
| 6538 | test "$silent" = yes && |
| 6539 | ac_config_status_args="$ac_config_status_args --quiet" |
| 6540 | exec 5>/dev/null |
| 6541 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 6542 | exec 5>>config.log |
| 6543 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 6544 | # would make configure fail if this is the last instruction. |
| 6545 | $ac_cs_success || { (exit 1); exit 1; } |
| 6546 | fi |
| 6547 | |
| 6548 | |
| 6549 | |