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