|
|
1.1 root 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.1.1.6 ! root 3: # Generated by GNU Autoconf 2.61 for hatari 1.0.0.
1.1 root 4: #
1.1.1.6 ! root 5: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
! 6: # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1.1 root 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:
1.1.1.6 ! root 13: # Be more Bourne compatible
! 14: DUALCASE=1; export DUALCASE # for MKS sh
1.1 root 15: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16: emulate sh
17: NULLCMD=:
1.1.1.3 root 18: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19: # is contrary to our usage. Disable this feature.
20: alias -g '${1+"$@"}'='"$@"'
1.1.1.6 ! root 21: setopt NO_GLOB_SUBST
! 22: else
! 23: case `(set -o) 2>/dev/null` in
! 24: *posix*) set -o posix ;;
! 25: esac
! 26:
! 27: fi
! 28:
! 29:
! 30:
! 31:
! 32: # PATH needs CR
! 33: # Avoid depending upon Character Ranges.
! 34: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
! 35: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
! 36: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
! 37: as_cr_digits='0123456789'
! 38: as_cr_alnum=$as_cr_Letters$as_cr_digits
! 39:
! 40: # The user is always right.
! 41: if test "${PATH_SEPARATOR+set}" != set; then
! 42: echo "#! /bin/sh" >conf$$.sh
! 43: echo "exit 0" >>conf$$.sh
! 44: chmod +x conf$$.sh
! 45: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
! 46: PATH_SEPARATOR=';'
! 47: else
! 48: PATH_SEPARATOR=:
! 49: fi
! 50: rm -f conf$$.sh
1.1 root 51: fi
52:
53: # Support unset when possible.
1.1.1.3 root 54: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.1 root 55: as_unset=unset
56: else
57: as_unset=false
58: fi
59:
1.1.1.3 root 60:
1.1.1.6 ! root 61: # IFS
! 62: # We need space, tab and new line, in precisely that order. Quoting is
! 63: # there to prevent editors from complaining about space-tab.
! 64: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
! 65: # splitting by setting IFS to empty value.)
! 66: as_nl='
! 67: '
! 68: IFS=" "" $as_nl"
! 69:
! 70: # Find who we are. Look in the path if we contain no directory separator.
! 71: case $0 in
! 72: *[\\/]* ) as_myself=$0 ;;
! 73: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 74: for as_dir in $PATH
! 75: do
! 76: IFS=$as_save_IFS
! 77: test -z "$as_dir" && as_dir=.
! 78: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
! 79: done
! 80: IFS=$as_save_IFS
! 81:
! 82: ;;
! 83: esac
! 84: # We did not find ourselves, most probably we were run as `sh COMMAND'
! 85: # in which case we are not to be found in the path.
! 86: if test "x$as_myself" = x; then
! 87: as_myself=$0
! 88: fi
! 89: if test ! -f "$as_myself"; then
! 90: echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
! 91: { (exit 1); exit 1; }
! 92: fi
! 93:
1.1.1.3 root 94: # Work around bugs in pre-3.0 UWIN ksh.
1.1.1.6 ! root 95: for as_var in ENV MAIL MAILPATH
! 96: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
! 97: done
1.1.1.3 root 98: PS1='$ '
99: PS2='> '
100: PS4='+ '
101:
102: # NLS nuisances.
103: for as_var in \
104: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106: LC_TELEPHONE LC_TIME
107: do
108: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109: eval $as_var=C; export $as_var
110: else
1.1.1.6 ! root 111: ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
1.1.1.3 root 112: fi
113: done
114:
115: # Required to use basename.
1.1.1.6 ! root 116: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 117: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1.1.3 root 118: as_expr=expr
119: else
120: as_expr=false
121: fi
122:
1.1.1.6 ! root 123: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.1.1.3 root 124: as_basename=basename
125: else
126: as_basename=false
127: fi
1.1 root 128:
129:
130: # Name of the executable.
1.1.1.6 ! root 131: as_me=`$as_basename -- "$0" ||
1.1 root 132: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133: X"$0" : 'X\(//\)$' \| \
1.1.1.6 ! root 134: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.1 root 135: echo X/"$0" |
1.1.1.6 ! root 136: sed '/^.*\/\([^/][^/]*\)\/*$/{
! 137: s//\1/
! 138: q
! 139: }
! 140: /^X\/\(\/\/\)$/{
! 141: s//\1/
! 142: q
! 143: }
! 144: /^X\/\(\/\).*/{
! 145: s//\1/
! 146: q
! 147: }
! 148: s/.*/./; q'`
1.1 root 149:
1.1.1.6 ! root 150: # CDPATH.
! 151: $as_unset CDPATH
1.1.1.3 root 152:
1.1 root 153:
1.1.1.6 ! root 154: if test "x$CONFIG_SHELL" = x; then
! 155: if (eval ":") 2>/dev/null; then
! 156: as_have_required=yes
! 157: else
! 158: as_have_required=no
! 159: fi
! 160:
! 161: if test $as_have_required = yes && (eval ":
! 162: (as_func_return () {
! 163: (exit \$1)
! 164: }
! 165: as_func_success () {
! 166: as_func_return 0
! 167: }
! 168: as_func_failure () {
! 169: as_func_return 1
! 170: }
! 171: as_func_ret_success () {
! 172: return 0
! 173: }
! 174: as_func_ret_failure () {
! 175: return 1
! 176: }
! 177:
! 178: exitcode=0
! 179: if as_func_success; then
! 180: :
! 181: else
! 182: exitcode=1
! 183: echo as_func_success failed.
1.1 root 184: fi
185:
1.1.1.6 ! root 186: if as_func_failure; then
! 187: exitcode=1
! 188: echo as_func_failure succeeded.
! 189: fi
1.1 root 190:
1.1.1.6 ! root 191: if as_func_ret_success; then
! 192: :
! 193: else
! 194: exitcode=1
! 195: echo as_func_ret_success failed.
! 196: fi
1.1 root 197:
1.1.1.6 ! root 198: if as_func_ret_failure; then
! 199: exitcode=1
! 200: echo as_func_ret_failure succeeded.
! 201: fi
! 202:
! 203: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
! 204: :
! 205: else
! 206: exitcode=1
! 207: echo positional parameters were not saved.
! 208: fi
! 209:
! 210: test \$exitcode = 0) || { (exit 1); exit 1; }
! 211:
! 212: (
! 213: as_lineno_1=\$LINENO
! 214: as_lineno_2=\$LINENO
! 215: test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
! 216: test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
! 217: ") 2> /dev/null; then
! 218: :
! 219: else
! 220: as_candidate_shells=
1.1 root 221: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223: do
224: IFS=$as_save_IFS
225: test -z "$as_dir" && as_dir=.
1.1.1.6 ! root 226: case $as_dir in
1.1 root 227: /*)
1.1.1.6 ! root 228: for as_base in sh bash ksh sh5; do
! 229: as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
! 230: done;;
! 231: esac
! 232: done
! 233: IFS=$as_save_IFS
! 234:
! 235:
! 236: for as_shell in $as_candidate_shells $SHELL; do
! 237: # Try only shells that exist, to save several forks.
! 238: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
! 239: { ("$as_shell") 2> /dev/null <<\_ASEOF
! 240: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
! 241: emulate sh
! 242: NULLCMD=:
! 243: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
! 244: # is contrary to our usage. Disable this feature.
! 245: alias -g '${1+"$@"}'='"$@"'
! 246: setopt NO_GLOB_SUBST
! 247: else
! 248: case `(set -o) 2>/dev/null` in
! 249: *posix*) set -o posix ;;
! 250: esac
! 251:
! 252: fi
! 253:
! 254:
! 255: :
! 256: _ASEOF
! 257: }; then
! 258: CONFIG_SHELL=$as_shell
! 259: as_have_required=yes
! 260: if { "$as_shell" 2> /dev/null <<\_ASEOF
! 261: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
! 262: emulate sh
! 263: NULLCMD=:
! 264: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
! 265: # is contrary to our usage. Disable this feature.
! 266: alias -g '${1+"$@"}'='"$@"'
! 267: setopt NO_GLOB_SUBST
! 268: else
! 269: case `(set -o) 2>/dev/null` in
! 270: *posix*) set -o posix ;;
! 271: esac
! 272:
! 273: fi
! 274:
! 275:
! 276: :
! 277: (as_func_return () {
! 278: (exit $1)
! 279: }
! 280: as_func_success () {
! 281: as_func_return 0
! 282: }
! 283: as_func_failure () {
! 284: as_func_return 1
! 285: }
! 286: as_func_ret_success () {
! 287: return 0
! 288: }
! 289: as_func_ret_failure () {
! 290: return 1
! 291: }
! 292:
! 293: exitcode=0
! 294: if as_func_success; then
! 295: :
! 296: else
! 297: exitcode=1
! 298: echo as_func_success failed.
! 299: fi
! 300:
! 301: if as_func_failure; then
! 302: exitcode=1
! 303: echo as_func_failure succeeded.
! 304: fi
! 305:
! 306: if as_func_ret_success; then
! 307: :
! 308: else
! 309: exitcode=1
! 310: echo as_func_ret_success failed.
! 311: fi
! 312:
! 313: if as_func_ret_failure; then
! 314: exitcode=1
! 315: echo as_func_ret_failure succeeded.
! 316: fi
! 317:
! 318: if ( set x; as_func_ret_success y && test x = "$1" ); then
! 319: :
! 320: else
! 321: exitcode=1
! 322: echo positional parameters were not saved.
! 323: fi
! 324:
! 325: test $exitcode = 0) || { (exit 1); exit 1; }
! 326:
! 327: (
1.1 root 328: as_lineno_1=$LINENO
329: as_lineno_2=$LINENO
330: test "x$as_lineno_1" != "x$as_lineno_2" &&
1.1.1.6 ! root 331: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
! 332:
! 333: _ASEOF
! 334: }; then
! 335: break
! 336: fi
! 337:
! 338: fi
! 339:
! 340: done
! 341:
! 342: if test "x$CONFIG_SHELL" != x; then
! 343: for as_var in BASH_ENV ENV
! 344: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
! 345: done
! 346: export CONFIG_SHELL
! 347: exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
! 348: fi
! 349:
! 350:
! 351: if test $as_have_required = no; then
! 352: echo This script requires a shell more modern than all the
! 353: echo shells that I found on your system. Please install a
! 354: echo modern shell, or manually run the script under such a
! 355: echo shell if you do have one.
! 356: { (exit 1); exit 1; }
! 357: fi
! 358:
! 359:
! 360: fi
! 361:
! 362: fi
! 363:
! 364:
! 365:
! 366: (eval "as_func_return () {
! 367: (exit \$1)
! 368: }
! 369: as_func_success () {
! 370: as_func_return 0
! 371: }
! 372: as_func_failure () {
! 373: as_func_return 1
! 374: }
! 375: as_func_ret_success () {
! 376: return 0
! 377: }
! 378: as_func_ret_failure () {
! 379: return 1
! 380: }
! 381:
! 382: exitcode=0
! 383: if as_func_success; then
! 384: :
! 385: else
! 386: exitcode=1
! 387: echo as_func_success failed.
! 388: fi
! 389:
! 390: if as_func_failure; then
! 391: exitcode=1
! 392: echo as_func_failure succeeded.
! 393: fi
! 394:
! 395: if as_func_ret_success; then
! 396: :
! 397: else
! 398: exitcode=1
! 399: echo as_func_ret_success failed.
! 400: fi
! 401:
! 402: if as_func_ret_failure; then
! 403: exitcode=1
! 404: echo as_func_ret_failure succeeded.
! 405: fi
! 406:
! 407: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
! 408: :
! 409: else
! 410: exitcode=1
! 411: echo positional parameters were not saved.
! 412: fi
! 413:
! 414: test \$exitcode = 0") || {
! 415: echo No shell found that supports shell functions.
! 416: echo Please tell [email protected] about your system,
! 417: echo including any error possibly output before this
! 418: echo message
! 419: }
! 420:
! 421:
! 422:
! 423: as_lineno_1=$LINENO
! 424: as_lineno_2=$LINENO
! 425: test "x$as_lineno_1" != "x$as_lineno_2" &&
! 426: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1.1 root 427:
428: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429: # uniformly replaced by the line number. The first 'sed' inserts a
1.1.1.6 ! root 430: # line-number line after each line using $LINENO; the second 'sed'
! 431: # does the real work. The second script uses 'N' to pair each
! 432: # line-number line with the line containing $LINENO, and appends
! 433: # trailing '-' during substitution so that $LINENO is not a special
! 434: # case at line end.
1.1 root 435: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1.1.1.6 ! root 436: # scripts with optimization help from Paolo Bonzini. Blame Lee
! 437: # E. McMahon (1931-1989) for sed's syntax. :-)
! 438: sed -n '
! 439: p
! 440: /[$]LINENO/=
! 441: ' <$as_myself |
1.1 root 442: sed '
1.1.1.6 ! root 443: s/[$]LINENO.*/&-/
! 444: t lineno
! 445: b
! 446: :lineno
1.1 root 447: N
1.1.1.6 ! root 448: :loop
! 449: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.1 root 450: t loop
1.1.1.6 ! root 451: s/-\n.*//
1.1 root 452: ' >$as_me.lineno &&
1.1.1.6 ! root 453: chmod +x "$as_me.lineno" ||
1.1 root 454: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455: { (exit 1); exit 1; }; }
456:
457: # Don't try to exec as it changes $[0], causing all sort of problems
458: # (the dirname of $[0] is not the place where we might find the
1.1.1.6 ! root 459: # original and so on. Autoconf is especially sensitive to this).
! 460: . "./$as_me.lineno"
1.1 root 461: # Exit status is that of the last command.
462: exit
463: }
464:
465:
1.1.1.6 ! root 466: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
! 467: as_dirname=dirname
! 468: else
! 469: as_dirname=false
! 470: fi
! 471:
! 472: ECHO_C= ECHO_N= ECHO_T=
! 473: case `echo -n x` in
! 474: -n*)
! 475: case `echo 'x\c'` in
! 476: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
! 477: *) ECHO_C='\c';;
! 478: esac;;
! 479: *)
! 480: ECHO_N='-n';;
1.1 root 481: esac
482:
1.1.1.6 ! root 483: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 484: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1 root 485: as_expr=expr
486: else
487: as_expr=false
488: fi
489:
490: rm -f conf$$ conf$$.exe conf$$.file
1.1.1.6 ! root 491: if test -d conf$$.dir; then
! 492: rm -f conf$$.dir/conf$$.file
! 493: else
! 494: rm -f conf$$.dir
! 495: mkdir conf$$.dir
! 496: fi
1.1 root 497: echo >conf$$.file
498: if ln -s conf$$.file conf$$ 2>/dev/null; then
1.1.1.6 ! root 499: as_ln_s='ln -s'
! 500: # ... but there are two gotchas:
! 501: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
! 502: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
! 503: # In both cases, we have to default to `cp -p'.
! 504: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.1 root 505: as_ln_s='cp -p'
506: elif ln conf$$.file conf$$ 2>/dev/null; then
507: as_ln_s=ln
508: else
509: as_ln_s='cp -p'
510: fi
1.1.1.6 ! root 511: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
! 512: rmdir conf$$.dir 2>/dev/null
1.1 root 513:
1.1.1.3 root 514: if mkdir -p . 2>/dev/null; then
515: as_mkdir_p=:
516: else
517: test -d ./-p && rmdir ./-p
518: as_mkdir_p=false
519: fi
520:
1.1.1.6 ! root 521: if test -x / >/dev/null 2>&1; then
! 522: as_test_x='test -x'
! 523: else
! 524: if ls -dL / >/dev/null 2>&1; then
! 525: as_ls_L_option=L
! 526: else
! 527: as_ls_L_option=
! 528: fi
! 529: as_test_x='
! 530: eval sh -c '\''
! 531: if test -d "$1"; then
! 532: test -d "$1/.";
! 533: else
! 534: case $1 in
! 535: -*)set "./$1";;
! 536: esac;
! 537: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
! 538: ???[sx]*):;;*)false;;esac;fi
! 539: '\'' sh
! 540: '
! 541: fi
! 542: as_executable_p=$as_test_x
1.1 root 543:
544: # Sed expression to map a string onto a valid CPP name.
1.1.1.3 root 545: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.1 root 546:
547: # Sed expression to map a string onto a valid variable name.
1.1.1.3 root 548: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.1 root 549:
550:
551:
1.1.1.6 ! root 552: exec 7<&0 </dev/null 6>&1
1.1 root 553:
554: # Name of the host.
555: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556: # so uname gets run too.
557: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558:
559: #
560: # Initializations.
561: #
562: ac_default_prefix=/usr/local
1.1.1.6 ! root 563: ac_clean_files=
1.1.1.3 root 564: ac_config_libobj_dir=.
1.1.1.6 ! root 565: LIBOBJS=
1.1 root 566: cross_compiling=no
567: subdirs=
568: MFLAGS=
569: MAKEFLAGS=
570: SHELL=${CONFIG_SHELL-/bin/sh}
571:
572: # Identity of this package.
573: PACKAGE_NAME='hatari'
574: PACKAGE_TARNAME='hatari'
1.1.1.6 ! root 575: PACKAGE_VERSION='1.0.0'
! 576: PACKAGE_STRING='hatari 1.0.0'
1.1 root 577: PACKAGE_BUGREPORT=''
578:
579: ac_unique_file="src/main.c"
580: # Factoring default headers for most tests.
581: ac_includes_default="\
582: #include <stdio.h>
1.1.1.6 ! root 583: #ifdef HAVE_SYS_TYPES_H
1.1 root 584: # include <sys/types.h>
585: #endif
1.1.1.6 ! root 586: #ifdef HAVE_SYS_STAT_H
1.1 root 587: # include <sys/stat.h>
588: #endif
1.1.1.6 ! root 589: #ifdef STDC_HEADERS
1.1 root 590: # include <stdlib.h>
591: # include <stddef.h>
592: #else
1.1.1.6 ! root 593: # ifdef HAVE_STDLIB_H
1.1 root 594: # include <stdlib.h>
595: # endif
596: #endif
1.1.1.6 ! root 597: #ifdef HAVE_STRING_H
! 598: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1.1 root 599: # include <memory.h>
600: # endif
601: # include <string.h>
602: #endif
1.1.1.6 ! root 603: #ifdef HAVE_STRINGS_H
1.1 root 604: # include <strings.h>
605: #endif
1.1.1.6 ! root 606: #ifdef HAVE_INTTYPES_H
1.1 root 607: # include <inttypes.h>
608: #endif
1.1.1.6 ! root 609: #ifdef HAVE_STDINT_H
! 610: # include <stdint.h>
! 611: #endif
! 612: #ifdef HAVE_UNISTD_H
1.1 root 613: # include <unistd.h>
614: #endif"
615:
1.1.1.6 ! root 616: ac_subst_vars='SHELL
! 617: PATH_SEPARATOR
! 618: PACKAGE_NAME
! 619: PACKAGE_TARNAME
! 620: PACKAGE_VERSION
! 621: PACKAGE_STRING
! 622: PACKAGE_BUGREPORT
! 623: exec_prefix
! 624: prefix
! 625: program_transform_name
! 626: bindir
! 627: sbindir
! 628: libexecdir
! 629: datarootdir
! 630: datadir
! 631: sysconfdir
! 632: sharedstatedir
! 633: localstatedir
! 634: includedir
! 635: oldincludedir
! 636: docdir
! 637: infodir
! 638: htmldir
! 639: dvidir
! 640: pdfdir
! 641: psdir
! 642: libdir
! 643: localedir
! 644: mandir
! 645: DEFS
! 646: ECHO_C
! 647: ECHO_N
! 648: ECHO_T
! 649: LIBS
! 650: build_alias
! 651: host_alias
! 652: target_alias
! 653: build
! 654: build_cpu
! 655: build_vendor
! 656: build_os
! 657: host
! 658: host_cpu
! 659: host_vendor
! 660: host_os
! 661: target
! 662: target_cpu
! 663: target_vendor
! 664: target_os
! 665: CC
! 666: CFLAGS
! 667: LDFLAGS
! 668: CPPFLAGS
! 669: ac_ct_CC
! 670: EXEEXT
! 671: OBJEXT
! 672: INSTALL_PROGRAM
! 673: INSTALL_SCRIPT
! 674: INSTALL_DATA
! 675: RANLIB
! 676: SDL_CONFIG
! 677: SDL_CFLAGS
! 678: SDL_LIBS
! 679: CPP
! 680: GREP
! 681: EGREP
! 682: HAVE_PKG_CONFIG
! 683: PKG_CONFIG
! 684: X_CFLAGS
! 685: X_LIBS
! 686: XMKMF
! 687: X_PRE_LIBS
! 688: X_EXTRA_LIBS
! 689: LIBOBJS
! 690: HOSTCC
! 691: HOSTCFLAGS
! 692: HOSTLDFLAGS
! 693: LTLIBOBJS'
1.1.1.3 root 694: ac_subst_files=''
1.1.1.6 ! root 695: ac_precious_vars='build_alias
! 696: host_alias
! 697: target_alias
! 698: CC
! 699: CFLAGS
! 700: LDFLAGS
! 701: LIBS
! 702: CPPFLAGS
! 703: CPP
! 704: PKG_CONFIG
! 705: X_CFLAGS
! 706: X_LIBS
! 707: XMKMF'
! 708:
1.1 root 709:
710: # Initialize some variables set by options.
711: ac_init_help=
712: ac_init_version=false
713: # The variables have the same names as the options, with
714: # dashes changed to underlines.
715: cache_file=/dev/null
716: exec_prefix=NONE
717: no_create=
718: no_recursion=
719: prefix=NONE
720: program_prefix=NONE
721: program_suffix=NONE
722: program_transform_name=s,x,x,
723: silent=
724: site=
725: srcdir=
726: verbose=
727: x_includes=NONE
728: x_libraries=NONE
729:
730: # Installation directory options.
731: # These are left unexpanded so users can "make install exec_prefix=/foo"
732: # and all the variables that are supposed to be based on exec_prefix
733: # by default will actually change.
734: # Use braces instead of parens because sh, perl, etc. also accept them.
1.1.1.6 ! root 735: # (The list follows the same order as the GNU Coding Standards.)
1.1 root 736: bindir='${exec_prefix}/bin'
737: sbindir='${exec_prefix}/sbin'
738: libexecdir='${exec_prefix}/libexec'
1.1.1.6 ! root 739: datarootdir='${prefix}/share'
! 740: datadir='${datarootdir}'
1.1 root 741: sysconfdir='${prefix}/etc'
742: sharedstatedir='${prefix}/com'
743: localstatedir='${prefix}/var'
744: includedir='${prefix}/include'
745: oldincludedir='/usr/include'
1.1.1.6 ! root 746: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
! 747: infodir='${datarootdir}/info'
! 748: htmldir='${docdir}'
! 749: dvidir='${docdir}'
! 750: pdfdir='${docdir}'
! 751: psdir='${docdir}'
! 752: libdir='${exec_prefix}/lib'
! 753: localedir='${datarootdir}/locale'
! 754: mandir='${datarootdir}/man'
1.1 root 755:
756: ac_prev=
1.1.1.6 ! root 757: ac_dashdash=
1.1 root 758: for ac_option
759: do
760: # If the previous option needs an argument, assign it.
761: if test -n "$ac_prev"; then
1.1.1.6 ! root 762: eval $ac_prev=\$ac_option
1.1 root 763: ac_prev=
764: continue
765: fi
766:
1.1.1.6 ! root 767: case $ac_option in
! 768: *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
! 769: *) ac_optarg=yes ;;
! 770: esac
1.1 root 771:
772: # Accept the important Cygnus configure options, so we can diagnose typos.
773:
1.1.1.6 ! root 774: case $ac_dashdash$ac_option in
! 775: --)
! 776: ac_dashdash=yes ;;
1.1 root 777:
778: -bindir | --bindir | --bindi | --bind | --bin | --bi)
779: ac_prev=bindir ;;
780: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
781: bindir=$ac_optarg ;;
782:
783: -build | --build | --buil | --bui | --bu)
784: ac_prev=build_alias ;;
785: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
786: build_alias=$ac_optarg ;;
787:
788: -cache-file | --cache-file | --cache-fil | --cache-fi \
789: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
790: ac_prev=cache_file ;;
791: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
792: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
793: cache_file=$ac_optarg ;;
794:
795: --config-cache | -C)
796: cache_file=config.cache ;;
797:
1.1.1.6 ! root 798: -datadir | --datadir | --datadi | --datad)
1.1 root 799: ac_prev=datadir ;;
1.1.1.6 ! root 800: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.1 root 801: datadir=$ac_optarg ;;
802:
1.1.1.6 ! root 803: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
! 804: | --dataroo | --dataro | --datar)
! 805: ac_prev=datarootdir ;;
! 806: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
! 807: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
! 808: datarootdir=$ac_optarg ;;
! 809:
1.1 root 810: -disable-* | --disable-*)
811: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
812: # Reject names that are not valid shell variable names.
1.1.1.6 ! root 813: expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.1 root 814: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
815: { (exit 1); exit 1; }; }
1.1.1.6 ! root 816: ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
! 817: eval enable_$ac_feature=no ;;
! 818:
! 819: -docdir | --docdir | --docdi | --doc | --do)
! 820: ac_prev=docdir ;;
! 821: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
! 822: docdir=$ac_optarg ;;
! 823:
! 824: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
! 825: ac_prev=dvidir ;;
! 826: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
! 827: dvidir=$ac_optarg ;;
1.1 root 828:
829: -enable-* | --enable-*)
830: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
831: # Reject names that are not valid shell variable names.
1.1.1.6 ! root 832: expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.1 root 833: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
834: { (exit 1); exit 1; }; }
1.1.1.6 ! root 835: ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
! 836: eval enable_$ac_feature=\$ac_optarg ;;
1.1 root 837:
838: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
839: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
840: | --exec | --exe | --ex)
841: ac_prev=exec_prefix ;;
842: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
843: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
844: | --exec=* | --exe=* | --ex=*)
845: exec_prefix=$ac_optarg ;;
846:
847: -gas | --gas | --ga | --g)
848: # Obsolete; use --with-gas.
849: with_gas=yes ;;
850:
851: -help | --help | --hel | --he | -h)
852: ac_init_help=long ;;
853: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
854: ac_init_help=recursive ;;
855: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
856: ac_init_help=short ;;
857:
858: -host | --host | --hos | --ho)
859: ac_prev=host_alias ;;
860: -host=* | --host=* | --hos=* | --ho=*)
861: host_alias=$ac_optarg ;;
862:
1.1.1.6 ! root 863: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
! 864: ac_prev=htmldir ;;
! 865: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
! 866: | --ht=*)
! 867: htmldir=$ac_optarg ;;
! 868:
1.1 root 869: -includedir | --includedir | --includedi | --included | --include \
870: | --includ | --inclu | --incl | --inc)
871: ac_prev=includedir ;;
872: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
873: | --includ=* | --inclu=* | --incl=* | --inc=*)
874: includedir=$ac_optarg ;;
875:
876: -infodir | --infodir | --infodi | --infod | --info | --inf)
877: ac_prev=infodir ;;
878: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
879: infodir=$ac_optarg ;;
880:
881: -libdir | --libdir | --libdi | --libd)
882: ac_prev=libdir ;;
883: -libdir=* | --libdir=* | --libdi=* | --libd=*)
884: libdir=$ac_optarg ;;
885:
886: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
887: | --libexe | --libex | --libe)
888: ac_prev=libexecdir ;;
889: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
890: | --libexe=* | --libex=* | --libe=*)
891: libexecdir=$ac_optarg ;;
892:
1.1.1.6 ! root 893: -localedir | --localedir | --localedi | --localed | --locale)
! 894: ac_prev=localedir ;;
! 895: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
! 896: localedir=$ac_optarg ;;
! 897:
1.1 root 898: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.1.1.6 ! root 899: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 root 900: ac_prev=localstatedir ;;
901: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.1.1.6 ! root 902: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.1 root 903: localstatedir=$ac_optarg ;;
904:
905: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
906: ac_prev=mandir ;;
907: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
908: mandir=$ac_optarg ;;
909:
910: -nfp | --nfp | --nf)
911: # Obsolete; use --without-fp.
912: with_fp=no ;;
913:
914: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
915: | --no-cr | --no-c | -n)
916: no_create=yes ;;
917:
918: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
919: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
920: no_recursion=yes ;;
921:
922: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
923: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
924: | --oldin | --oldi | --old | --ol | --o)
925: ac_prev=oldincludedir ;;
926: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
927: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
928: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
929: oldincludedir=$ac_optarg ;;
930:
931: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
932: ac_prev=prefix ;;
933: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
934: prefix=$ac_optarg ;;
935:
936: -program-prefix | --program-prefix | --program-prefi | --program-pref \
937: | --program-pre | --program-pr | --program-p)
938: ac_prev=program_prefix ;;
939: -program-prefix=* | --program-prefix=* | --program-prefi=* \
940: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
941: program_prefix=$ac_optarg ;;
942:
943: -program-suffix | --program-suffix | --program-suffi | --program-suff \
944: | --program-suf | --program-su | --program-s)
945: ac_prev=program_suffix ;;
946: -program-suffix=* | --program-suffix=* | --program-suffi=* \
947: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
948: program_suffix=$ac_optarg ;;
949:
950: -program-transform-name | --program-transform-name \
951: | --program-transform-nam | --program-transform-na \
952: | --program-transform-n | --program-transform- \
953: | --program-transform | --program-transfor \
954: | --program-transfo | --program-transf \
955: | --program-trans | --program-tran \
956: | --progr-tra | --program-tr | --program-t)
957: ac_prev=program_transform_name ;;
958: -program-transform-name=* | --program-transform-name=* \
959: | --program-transform-nam=* | --program-transform-na=* \
960: | --program-transform-n=* | --program-transform-=* \
961: | --program-transform=* | --program-transfor=* \
962: | --program-transfo=* | --program-transf=* \
963: | --program-trans=* | --program-tran=* \
964: | --progr-tra=* | --program-tr=* | --program-t=*)
965: program_transform_name=$ac_optarg ;;
966:
1.1.1.6 ! root 967: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
! 968: ac_prev=pdfdir ;;
! 969: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
! 970: pdfdir=$ac_optarg ;;
! 971:
! 972: -psdir | --psdir | --psdi | --psd | --ps)
! 973: ac_prev=psdir ;;
! 974: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
! 975: psdir=$ac_optarg ;;
! 976:
1.1 root 977: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
978: | -silent | --silent | --silen | --sile | --sil)
979: silent=yes ;;
980:
981: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
982: ac_prev=sbindir ;;
983: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
984: | --sbi=* | --sb=*)
985: sbindir=$ac_optarg ;;
986:
987: -sharedstatedir | --sharedstatedir | --sharedstatedi \
988: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
989: | --sharedst | --shareds | --shared | --share | --shar \
990: | --sha | --sh)
991: ac_prev=sharedstatedir ;;
992: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
993: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
994: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
995: | --sha=* | --sh=*)
996: sharedstatedir=$ac_optarg ;;
997:
998: -site | --site | --sit)
999: ac_prev=site ;;
1000: -site=* | --site=* | --sit=*)
1001: site=$ac_optarg ;;
1002:
1003: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1004: ac_prev=srcdir ;;
1005: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1006: srcdir=$ac_optarg ;;
1007:
1008: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1009: | --syscon | --sysco | --sysc | --sys | --sy)
1010: ac_prev=sysconfdir ;;
1011: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1012: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1013: sysconfdir=$ac_optarg ;;
1014:
1015: -target | --target | --targe | --targ | --tar | --ta | --t)
1016: ac_prev=target_alias ;;
1017: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1018: target_alias=$ac_optarg ;;
1019:
1020: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1021: verbose=yes ;;
1022:
1023: -version | --version | --versio | --versi | --vers | -V)
1024: ac_init_version=: ;;
1025:
1026: -with-* | --with-*)
1027: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1028: # Reject names that are not valid shell variable names.
1.1.1.6 ! root 1029: expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.1 root 1030: { echo "$as_me: error: invalid package name: $ac_package" >&2
1031: { (exit 1); exit 1; }; }
1.1.1.6 ! root 1032: ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
! 1033: eval with_$ac_package=\$ac_optarg ;;
1.1 root 1034:
1035: -without-* | --without-*)
1036: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1037: # Reject names that are not valid shell variable names.
1.1.1.6 ! root 1038: expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.1 root 1039: { echo "$as_me: error: invalid package name: $ac_package" >&2
1040: { (exit 1); exit 1; }; }
1.1.1.6 ! root 1041: ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
! 1042: eval with_$ac_package=no ;;
1.1 root 1043:
1044: --x)
1045: # Obsolete; use --with-x.
1046: with_x=yes ;;
1047:
1048: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1049: | --x-incl | --x-inc | --x-in | --x-i)
1050: ac_prev=x_includes ;;
1051: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1052: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1053: x_includes=$ac_optarg ;;
1054:
1055: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1056: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1057: ac_prev=x_libraries ;;
1058: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1059: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1060: x_libraries=$ac_optarg ;;
1061:
1062: -*) { echo "$as_me: error: unrecognized option: $ac_option
1063: Try \`$0 --help' for more information." >&2
1064: { (exit 1); exit 1; }; }
1065: ;;
1066:
1067: *=*)
1068: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1069: # Reject names that are not valid shell variable names.
1070: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1071: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1072: { (exit 1); exit 1; }; }
1.1.1.6 ! root 1073: eval $ac_envvar=\$ac_optarg
1.1 root 1074: export $ac_envvar ;;
1075:
1076: *)
1077: # FIXME: should be removed in autoconf 3.0.
1078: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1079: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1080: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1081: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1082: ;;
1083:
1084: esac
1085: done
1086:
1087: if test -n "$ac_prev"; then
1088: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1089: { echo "$as_me: error: missing argument to $ac_option" >&2
1090: { (exit 1); exit 1; }; }
1091: fi
1092:
1.1.1.6 ! root 1093: # Be sure to have absolute directory names.
! 1094: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
! 1095: datadir sysconfdir sharedstatedir localstatedir includedir \
! 1096: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
! 1097: libdir localedir mandir
1.1 root 1098: do
1.1.1.6 ! root 1099: eval ac_val=\$$ac_var
1.1 root 1100: case $ac_val in
1.1.1.6 ! root 1101: [\\/$]* | ?:[\\/]* ) continue;;
! 1102: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 root 1103: esac
1.1.1.6 ! root 1104: { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
! 1105: { (exit 1); exit 1; }; }
1.1 root 1106: done
1107:
1108: # There might be people who depend on the old broken behavior: `$host'
1109: # used to hold the argument of --host etc.
1110: # FIXME: To remove some day.
1111: build=$build_alias
1112: host=$host_alias
1113: target=$target_alias
1114:
1115: # FIXME: To remove some day.
1116: if test "x$host_alias" != x; then
1117: if test "x$build_alias" = x; then
1118: cross_compiling=maybe
1119: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1120: If a cross compiler is detected then cross compile mode will be used." >&2
1121: elif test "x$build_alias" != "x$host_alias"; then
1122: cross_compiling=yes
1123: fi
1124: fi
1125:
1126: ac_tool_prefix=
1127: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1128:
1129: test "$silent" = yes && exec 6>/dev/null
1130:
1131:
1.1.1.6 ! root 1132: ac_pwd=`pwd` && test -n "$ac_pwd" &&
! 1133: ac_ls_di=`ls -di .` &&
! 1134: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
! 1135: { echo "$as_me: error: Working directory cannot be determined" >&2
! 1136: { (exit 1); exit 1; }; }
! 1137: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
! 1138: { echo "$as_me: error: pwd does not report name of working directory" >&2
! 1139: { (exit 1); exit 1; }; }
! 1140:
! 1141:
1.1 root 1142: # Find the source files, if location was not specified.
1143: if test -z "$srcdir"; then
1144: ac_srcdir_defaulted=yes
1.1.1.6 ! root 1145: # Try the directory containing this script, then the parent directory.
! 1146: ac_confdir=`$as_dirname -- "$0" ||
1.1 root 1147: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.1.1.3 root 1148: X"$0" : 'X\(//\)[^/]' \| \
1149: X"$0" : 'X\(//\)$' \| \
1.1.1.6 ! root 1150: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.1 root 1151: echo X"$0" |
1.1.1.6 ! root 1152: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 1153: s//\1/
! 1154: q
! 1155: }
! 1156: /^X\(\/\/\)[^/].*/{
! 1157: s//\1/
! 1158: q
! 1159: }
! 1160: /^X\(\/\/\)$/{
! 1161: s//\1/
! 1162: q
! 1163: }
! 1164: /^X\(\/\).*/{
! 1165: s//\1/
! 1166: q
! 1167: }
! 1168: s/.*/./; q'`
1.1 root 1169: srcdir=$ac_confdir
1.1.1.6 ! root 1170: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 root 1171: srcdir=..
1172: fi
1173: else
1174: ac_srcdir_defaulted=no
1175: fi
1.1.1.6 ! root 1176: if test ! -r "$srcdir/$ac_unique_file"; then
! 1177: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
! 1178: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1.1 root 1179: { (exit 1); exit 1; }; }
1180: fi
1.1.1.6 ! root 1181: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
! 1182: ac_abs_confdir=`(
! 1183: cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1.1.1.3 root 1184: { (exit 1); exit 1; }; }
1.1.1.6 ! root 1185: pwd)`
! 1186: # When building in place, set srcdir=.
! 1187: if test "$ac_abs_confdir" = "$ac_pwd"; then
! 1188: srcdir=.
! 1189: fi
! 1190: # Remove unnecessary trailing slashes from srcdir.
! 1191: # Double slashes in file names in object file debugging info
! 1192: # mess up M-x gdb in Emacs.
! 1193: case $srcdir in
! 1194: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
! 1195: esac
! 1196: for ac_var in $ac_precious_vars; do
! 1197: eval ac_env_${ac_var}_set=\${${ac_var}+set}
! 1198: eval ac_env_${ac_var}_value=\$${ac_var}
! 1199: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
! 1200: eval ac_cv_env_${ac_var}_value=\$${ac_var}
! 1201: done
! 1202:
! 1203: #
1.1 root 1204: # Report the --help message.
1205: #
1206: if test "$ac_init_help" = "long"; then
1207: # Omit some internal or obsolete options to make the list less imposing.
1208: # This message is too long to be a string in the A/UX 3.1 sh.
1209: cat <<_ACEOF
1.1.1.6 ! root 1210: \`configure' configures hatari 1.0.0 to adapt to many kinds of systems.
1.1 root 1211:
1212: Usage: $0 [OPTION]... [VAR=VALUE]...
1213:
1214: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1215: VAR=VALUE. See below for descriptions of some of the useful variables.
1216:
1217: Defaults for the options are specified in brackets.
1218:
1219: Configuration:
1220: -h, --help display this help and exit
1221: --help=short display options specific to this package
1222: --help=recursive display the short help of all the included packages
1223: -V, --version display version information and exit
1224: -q, --quiet, --silent do not print \`checking...' messages
1225: --cache-file=FILE cache test results in FILE [disabled]
1226: -C, --config-cache alias for \`--cache-file=config.cache'
1227: -n, --no-create do not create output files
1228: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1229:
1230: Installation directories:
1231: --prefix=PREFIX install architecture-independent files in PREFIX
1.1.1.3 root 1232: [$ac_default_prefix]
1.1 root 1233: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.1.1.3 root 1234: [PREFIX]
1.1 root 1235:
1236: By default, \`make install' will install all the files in
1237: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1238: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1239: for instance \`--prefix=\$HOME'.
1240:
1241: For better control, use the options below.
1242:
1243: Fine tuning of the installation directories:
1244: --bindir=DIR user executables [EPREFIX/bin]
1245: --sbindir=DIR system admin executables [EPREFIX/sbin]
1246: --libexecdir=DIR program executables [EPREFIX/libexec]
1247: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1248: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1249: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1250: --libdir=DIR object code libraries [EPREFIX/lib]
1251: --includedir=DIR C header files [PREFIX/include]
1252: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1.1.1.6 ! root 1253: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
! 1254: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
! 1255: --infodir=DIR info documentation [DATAROOTDIR/info]
! 1256: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
! 1257: --mandir=DIR man documentation [DATAROOTDIR/man]
! 1258: --docdir=DIR documentation root [DATAROOTDIR/doc/hatari]
! 1259: --htmldir=DIR html documentation [DOCDIR]
! 1260: --dvidir=DIR dvi documentation [DOCDIR]
! 1261: --pdfdir=DIR pdf documentation [DOCDIR]
! 1262: --psdir=DIR ps documentation [DOCDIR]
1.1 root 1263: _ACEOF
1264:
1265: cat <<\_ACEOF
1266:
1.1.1.6 ! root 1267: X features:
! 1268: --x-includes=DIR X include files are in DIR
! 1269: --x-libraries=DIR X library files are in DIR
! 1270:
1.1 root 1271: System types:
1272: --build=BUILD configure for building on BUILD [guessed]
1273: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1274: --target=TARGET configure for building compilers for TARGET [HOST]
1275: _ACEOF
1276: fi
1277:
1278: if test -n "$ac_init_help"; then
1279: case $ac_init_help in
1.1.1.6 ! root 1280: short | recursive ) echo "Configuration of hatari 1.0.0:";;
1.1 root 1281: esac
1282: cat <<\_ACEOF
1283:
1284: Optional Features:
1285: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1286: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1287: --enable-werror Compile with the "-Werror" C flag
1.1.1.6 ! root 1288: --enable-small-mem Use less memory - at the expense of emulation speed
1.1 root 1289: --disable-sdltest Do not try to compile and run a test SDL program
1290:
1291: Optional Packages:
1292: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1293: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1294: --with-extra-inc=DIR additional include files are in DIR
1295: --with-extra-lib=DIR additional library files are in DIR
1296: --with-hostcc=x Use x as compiler for the host system
1297: --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1298: --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1.1.1.6 ! root 1299: --with-x use the X Window System
1.1 root 1300:
1301: Some influential environment variables:
1302: CC C compiler command
1303: CFLAGS C compiler flags
1304: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1305: nonstandard directory <lib dir>
1.1.1.6 ! root 1306: LIBS libraries to pass to the linker, e.g. -l<library>
! 1307: CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
! 1308: you have headers in a nonstandard directory <include dir>
1.1 root 1309: CPP C preprocessor
1.1.1.6 ! root 1310: PKG_CONFIG path to pkg-config utility
! 1311: X_CFLAGS C compiler flags for X, overriding pkg-config
! 1312: X_LIBS linker flags for X, overriding pkg-config
! 1313: XMKMF Path to xmkmf, Makefile generator for X Window System
1.1 root 1314:
1315: Use these variables to override the choices made by `configure' or to help
1316: it to find libraries and programs with nonstandard names/locations.
1317:
1318: _ACEOF
1.1.1.6 ! root 1319: ac_status=$?
1.1 root 1320: fi
1321:
1322: if test "$ac_init_help" = "recursive"; then
1323: # If there are subdirs, report their specific --help.
1324: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.1.1.6 ! root 1325: test -d "$ac_dir" || continue
1.1 root 1326: ac_builddir=.
1327:
1.1.1.6 ! root 1328: case "$ac_dir" in
! 1329: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 1330: *)
1.1 root 1331: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1.1.1.6 ! root 1332: # A ".." for each directory in $ac_dir_suffix.
! 1333: ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
! 1334: case $ac_top_builddir_sub in
! 1335: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 1336: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
! 1337: esac ;;
! 1338: esac
! 1339: ac_abs_top_builddir=$ac_pwd
! 1340: ac_abs_builddir=$ac_pwd$ac_dir_suffix
! 1341: # for backward compatibility:
! 1342: ac_top_builddir=$ac_top_build_prefix
1.1 root 1343:
1344: case $srcdir in
1.1.1.6 ! root 1345: .) # We are building in place.
1.1 root 1346: ac_srcdir=.
1.1.1.6 ! root 1347: ac_top_srcdir=$ac_top_builddir_sub
! 1348: ac_abs_top_srcdir=$ac_pwd ;;
! 1349: [\\/]* | ?:[\\/]* ) # Absolute name.
1.1 root 1350: ac_srcdir=$srcdir$ac_dir_suffix;
1.1.1.6 ! root 1351: ac_top_srcdir=$srcdir
! 1352: ac_abs_top_srcdir=$srcdir ;;
! 1353: *) # Relative name.
! 1354: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
! 1355: ac_top_srcdir=$ac_top_build_prefix$srcdir
! 1356: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.1.1.3 root 1357: esac
1.1.1.6 ! root 1358: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1 root 1359:
1.1.1.6 ! root 1360: cd "$ac_dir" || { ac_status=$?; continue; }
! 1361: # Check for guested configure.
! 1362: if test -f "$ac_srcdir/configure.gnu"; then
! 1363: echo &&
! 1364: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
! 1365: elif test -f "$ac_srcdir/configure"; then
! 1366: echo &&
! 1367: $SHELL "$ac_srcdir/configure" --help=recursive
1.1 root 1368: else
1369: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1.1.6 ! root 1370: fi || ac_status=$?
! 1371: cd "$ac_pwd" || { ac_status=$?; break; }
1.1 root 1372: done
1373: fi
1374:
1.1.1.6 ! root 1375: test -n "$ac_init_help" && exit $ac_status
1.1 root 1376: if $ac_init_version; then
1377: cat <<\_ACEOF
1.1.1.6 ! root 1378: hatari configure 1.0.0
! 1379: generated by GNU Autoconf 2.61
1.1 root 1380:
1.1.1.6 ! root 1381: Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
! 1382: 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1.1 root 1383: This configure script is free software; the Free Software Foundation
1384: gives unlimited permission to copy, distribute and modify it.
1385: _ACEOF
1.1.1.6 ! root 1386: exit
1.1 root 1387: fi
1.1.1.6 ! root 1388: cat >config.log <<_ACEOF
1.1 root 1389: This file contains any messages produced by compilers while
1390: running configure, to aid debugging if configure makes a mistake.
1391:
1.1.1.6 ! root 1392: It was created by hatari $as_me 1.0.0, which was
! 1393: generated by GNU Autoconf 2.61. Invocation command line was
1.1 root 1394:
1395: $ $0 $@
1396:
1397: _ACEOF
1.1.1.6 ! root 1398: exec 5>>config.log
1.1 root 1399: {
1400: cat <<_ASUNAME
1401: ## --------- ##
1402: ## Platform. ##
1403: ## --------- ##
1404:
1405: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1406: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1407: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1408: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1409: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1410:
1411: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1412: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1413:
1414: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1415: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1416: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.1.1.6 ! root 1417: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.1 root 1418: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1419: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1420: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1421:
1422: _ASUNAME
1423:
1424: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1425: for as_dir in $PATH
1426: do
1427: IFS=$as_save_IFS
1428: test -z "$as_dir" && as_dir=.
1429: echo "PATH: $as_dir"
1430: done
1.1.1.6 ! root 1431: IFS=$as_save_IFS
1.1 root 1432:
1433: } >&5
1434:
1435: cat >&5 <<_ACEOF
1436:
1437:
1438: ## ----------- ##
1439: ## Core tests. ##
1440: ## ----------- ##
1441:
1442: _ACEOF
1443:
1444:
1445: # Keep a trace of the command line.
1446: # Strip out --no-create and --no-recursion so they do not pile up.
1.1.1.3 root 1447: # Strip out --silent because we don't want to record it for future runs.
1.1 root 1448: # Also quote any args containing shell meta-characters.
1.1.1.3 root 1449: # Make two passes to allow for proper duplicate-argument suppression.
1.1 root 1450: ac_configure_args=
1.1.1.3 root 1451: ac_configure_args0=
1452: ac_configure_args1=
1453: ac_must_keep_next=false
1454: for ac_pass in 1 2
1.1 root 1455: do
1.1.1.3 root 1456: for ac_arg
1457: do
1458: case $ac_arg in
1459: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1460: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1461: | -silent | --silent | --silen | --sile | --sil)
1462: continue ;;
1.1.1.6 ! root 1463: *\'*)
1.1.1.3 root 1464: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1465: esac
1466: case $ac_pass in
1467: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1468: 2)
1469: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1470: if test $ac_must_keep_next = true; then
1471: ac_must_keep_next=false # Got value, back to normal.
1472: else
1473: case $ac_arg in
1474: *=* | --config-cache | -C | -disable-* | --disable-* \
1475: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1476: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1477: | -with-* | --with-* | -without-* | --without-* | --x)
1478: case "$ac_configure_args0 " in
1479: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1480: esac
1481: ;;
1482: -* ) ac_must_keep_next=true ;;
1483: esac
1484: fi
1.1.1.6 ! root 1485: ac_configure_args="$ac_configure_args '$ac_arg'"
1.1.1.3 root 1486: ;;
1487: esac
1488: done
1.1 root 1489: done
1.1.1.3 root 1490: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1491: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1.1 root 1492:
1493: # When interrupted or exit'd, cleanup temporary files, and complete
1494: # config.log. We remove comments because anyway the quotes in there
1495: # would cause problems or look ugly.
1.1.1.6 ! root 1496: # WARNING: Use '\'' to represent an apostrophe within the trap.
! 1497: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.1 root 1498: trap 'exit_status=$?
1499: # Save into config.log some information that might help in debugging.
1500: {
1501: echo
1.1.1.3 root 1502:
1.1 root 1503: cat <<\_ASBOX
1504: ## ---------------- ##
1505: ## Cache variables. ##
1506: ## ---------------- ##
1507: _ASBOX
1508: echo
1509: # The following way of writing the cache mishandles newlines in values,
1.1.1.6 ! root 1510: (
! 1511: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
! 1512: eval ac_val=\$$ac_var
! 1513: case $ac_val in #(
! 1514: *${as_nl}*)
! 1515: case $ac_var in #(
! 1516: *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
! 1517: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
! 1518: esac
! 1519: case $ac_var in #(
! 1520: _ | IFS | as_nl) ;; #(
! 1521: *) $as_unset $ac_var ;;
! 1522: esac ;;
! 1523: esac
! 1524: done
1.1 root 1525: (set) 2>&1 |
1.1.1.6 ! root 1526: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
! 1527: *${as_nl}ac_space=\ *)
1.1 root 1528: sed -n \
1.1.1.6 ! root 1529: "s/'\''/'\''\\\\'\'''\''/g;
! 1530: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
! 1531: ;; #(
1.1 root 1532: *)
1.1.1.6 ! root 1533: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.1 root 1534: ;;
1.1.1.6 ! root 1535: esac |
! 1536: sort
! 1537: )
1.1 root 1538: echo
1.1.1.3 root 1539:
1540: cat <<\_ASBOX
1541: ## ----------------- ##
1542: ## Output variables. ##
1543: ## ----------------- ##
1544: _ASBOX
1545: echo
1546: for ac_var in $ac_subst_vars
1547: do
1.1.1.6 ! root 1548: eval ac_val=\$$ac_var
! 1549: case $ac_val in
! 1550: *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
! 1551: esac
! 1552: echo "$ac_var='\''$ac_val'\''"
1.1.1.3 root 1553: done | sort
1554: echo
1555:
1556: if test -n "$ac_subst_files"; then
1557: cat <<\_ASBOX
1.1.1.6 ! root 1558: ## ------------------- ##
! 1559: ## File substitutions. ##
! 1560: ## ------------------- ##
1.1.1.3 root 1561: _ASBOX
1562: echo
1563: for ac_var in $ac_subst_files
1564: do
1.1.1.6 ! root 1565: eval ac_val=\$$ac_var
! 1566: case $ac_val in
! 1567: *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
! 1568: esac
! 1569: echo "$ac_var='\''$ac_val'\''"
1.1.1.3 root 1570: done | sort
1571: echo
1572: fi
1573:
1.1 root 1574: if test -s confdefs.h; then
1575: cat <<\_ASBOX
1576: ## ----------- ##
1577: ## confdefs.h. ##
1578: ## ----------- ##
1579: _ASBOX
1580: echo
1.1.1.6 ! root 1581: cat confdefs.h
1.1 root 1582: echo
1583: fi
1584: test "$ac_signal" != 0 &&
1585: echo "$as_me: caught signal $ac_signal"
1586: echo "$as_me: exit $exit_status"
1587: } >&5
1.1.1.6 ! root 1588: rm -f core *.core core.conftest.* &&
! 1589: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.1 root 1590: exit $exit_status
1.1.1.6 ! root 1591: ' 0
1.1 root 1592: for ac_signal in 1 2 13 15; do
1593: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1594: done
1595: ac_signal=0
1596:
1597: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.1.1.6 ! root 1598: rm -f -r conftest* confdefs.h
1.1 root 1599:
1600: # Predefined preprocessor variables.
1601:
1602: cat >>confdefs.h <<_ACEOF
1603: #define PACKAGE_NAME "$PACKAGE_NAME"
1604: _ACEOF
1605:
1606:
1607: cat >>confdefs.h <<_ACEOF
1608: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1609: _ACEOF
1610:
1611:
1612: cat >>confdefs.h <<_ACEOF
1613: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1614: _ACEOF
1615:
1616:
1617: cat >>confdefs.h <<_ACEOF
1618: #define PACKAGE_STRING "$PACKAGE_STRING"
1619: _ACEOF
1620:
1621:
1622: cat >>confdefs.h <<_ACEOF
1623: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1624: _ACEOF
1625:
1626:
1627: # Let the site file select an alternate cache file if it wants to.
1628: # Prefer explicitly selected file to automatically selected ones.
1.1.1.6 ! root 1629: if test -n "$CONFIG_SITE"; then
! 1630: set x "$CONFIG_SITE"
! 1631: elif test "x$prefix" != xNONE; then
! 1632: set x "$prefix/share/config.site" "$prefix/etc/config.site"
! 1633: else
! 1634: set x "$ac_default_prefix/share/config.site" \
! 1635: "$ac_default_prefix/etc/config.site"
1.1 root 1636: fi
1.1.1.6 ! root 1637: shift
! 1638: for ac_site_file
! 1639: do
1.1 root 1640: if test -r "$ac_site_file"; then
1641: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1642: echo "$as_me: loading site script $ac_site_file" >&6;}
1643: sed 's/^/| /' "$ac_site_file" >&5
1644: . "$ac_site_file"
1645: fi
1646: done
1647:
1648: if test -r "$cache_file"; then
1649: # Some versions of bash will fail to source /dev/null (special
1650: # files actually), so we avoid doing that.
1651: if test -f "$cache_file"; then
1652: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1653: echo "$as_me: loading cache $cache_file" >&6;}
1654: case $cache_file in
1.1.1.6 ! root 1655: [\\/]* | ?:[\\/]* ) . "$cache_file";;
! 1656: *) . "./$cache_file";;
1.1 root 1657: esac
1658: fi
1659: else
1660: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1661: echo "$as_me: creating cache $cache_file" >&6;}
1662: >$cache_file
1663: fi
1664:
1665: # Check that the precious variables saved in the cache have kept the same
1666: # value.
1667: ac_cache_corrupted=false
1.1.1.6 ! root 1668: for ac_var in $ac_precious_vars; do
1.1 root 1669: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1670: eval ac_new_set=\$ac_env_${ac_var}_set
1.1.1.6 ! root 1671: eval ac_old_val=\$ac_cv_env_${ac_var}_value
! 1672: eval ac_new_val=\$ac_env_${ac_var}_value
1.1 root 1673: case $ac_old_set,$ac_new_set in
1674: set,)
1675: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1676: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1677: ac_cache_corrupted=: ;;
1678: ,set)
1679: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1680: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1681: ac_cache_corrupted=: ;;
1682: ,);;
1683: *)
1684: if test "x$ac_old_val" != "x$ac_new_val"; then
1.1.1.3 root 1685: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.1 root 1686: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.1.1.3 root 1687: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1.1 root 1688: echo "$as_me: former value: $ac_old_val" >&2;}
1.1.1.3 root 1689: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1.1 root 1690: echo "$as_me: current value: $ac_new_val" >&2;}
1.1.1.3 root 1691: ac_cache_corrupted=:
1.1 root 1692: fi;;
1693: esac
1694: # Pass precious variables to config.status.
1695: if test "$ac_new_set" = set; then
1696: case $ac_new_val in
1.1.1.6 ! root 1697: *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 root 1698: *) ac_arg=$ac_var=$ac_new_val ;;
1699: esac
1700: case " $ac_configure_args " in
1701: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1702: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1703: esac
1704: fi
1705: done
1706: if $ac_cache_corrupted; then
1707: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1708: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1709: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1710: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1711: { (exit 1); exit 1; }; }
1712: fi
1713:
1714:
1715:
1716:
1717:
1718:
1719:
1720:
1721:
1722:
1723:
1724:
1725:
1726:
1727:
1728:
1729:
1730:
1731:
1732:
1733:
1734:
1735:
1736:
1737:
1.1.1.6 ! root 1738: ac_ext=c
! 1739: ac_cpp='$CPP $CPPFLAGS'
! 1740: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 1741: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 1742: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 1743:
1.1 root 1744:
1745:
1746:
1747:
1.1.1.6 ! root 1748: ac_config_headers="$ac_config_headers config.h"
1.1 root 1749:
1.1.1.3 root 1750:
1.1 root 1751: #AC_CANONICAL_HOST
1752: ac_aux_dir=
1.1.1.6 ! root 1753: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
! 1754: if test -f "$ac_dir/install-sh"; then
1.1 root 1755: ac_aux_dir=$ac_dir
1756: ac_install_sh="$ac_aux_dir/install-sh -c"
1757: break
1.1.1.6 ! root 1758: elif test -f "$ac_dir/install.sh"; then
1.1 root 1759: ac_aux_dir=$ac_dir
1760: ac_install_sh="$ac_aux_dir/install.sh -c"
1761: break
1.1.1.6 ! root 1762: elif test -f "$ac_dir/shtool"; then
1.1 root 1763: ac_aux_dir=$ac_dir
1764: ac_install_sh="$ac_aux_dir/shtool install -c"
1765: break
1766: fi
1767: done
1768: if test -z "$ac_aux_dir"; then
1.1.1.6 ! root 1769: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
! 1770: echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1.1 root 1771: { (exit 1); exit 1; }; }
1772: fi
1.1.1.6 ! root 1773:
! 1774: # These three variables are undocumented and unsupported,
! 1775: # and are intended to be withdrawn in a future Autoconf release.
! 1776: # They can cause serious problems if a builder's source tree is in a directory
! 1777: # whose full name contains unusual characters.
! 1778: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
! 1779: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
! 1780: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
! 1781:
1.1 root 1782:
1783: # Make sure we can run config.sub.
1.1.1.6 ! root 1784: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
! 1785: { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
! 1786: echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1.1 root 1787: { (exit 1); exit 1; }; }
1788:
1.1.1.6 ! root 1789: { echo "$as_me:$LINENO: checking build system type" >&5
! 1790: echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1.1 root 1791: if test "${ac_cv_build+set}" = set; then
1792: echo $ECHO_N "(cached) $ECHO_C" >&6
1793: else
1.1.1.6 ! root 1794: ac_build_alias=$build_alias
! 1795: test "x$ac_build_alias" = x &&
! 1796: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
! 1797: test "x$ac_build_alias" = x &&
1.1 root 1798: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1799: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1800: { (exit 1); exit 1; }; }
1.1.1.6 ! root 1801: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
! 1802: { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
! 1803: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1.1 root 1804: { (exit 1); exit 1; }; }
1805:
1806: fi
1.1.1.6 ! root 1807: { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
! 1808: echo "${ECHO_T}$ac_cv_build" >&6; }
! 1809: case $ac_cv_build in
! 1810: *-*-*) ;;
! 1811: *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
! 1812: echo "$as_me: error: invalid value of canonical build" >&2;}
! 1813: { (exit 1); exit 1; }; };;
! 1814: esac
1.1 root 1815: build=$ac_cv_build
1.1.1.6 ! root 1816: ac_save_IFS=$IFS; IFS='-'
! 1817: set x $ac_cv_build
! 1818: shift
! 1819: build_cpu=$1
! 1820: build_vendor=$2
! 1821: shift; shift
! 1822: # Remember, the first character of IFS is used to create $*,
! 1823: # except with old shells:
! 1824: build_os=$*
! 1825: IFS=$ac_save_IFS
! 1826: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.1 root 1827:
1828:
1.1.1.6 ! root 1829: { echo "$as_me:$LINENO: checking host system type" >&5
! 1830: echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1.1 root 1831: if test "${ac_cv_host+set}" = set; then
1832: echo $ECHO_N "(cached) $ECHO_C" >&6
1833: else
1.1.1.6 ! root 1834: if test "x$host_alias" = x; then
! 1835: ac_cv_host=$ac_cv_build
! 1836: else
! 1837: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
! 1838: { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
! 1839: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1.1 root 1840: { (exit 1); exit 1; }; }
1.1.1.6 ! root 1841: fi
1.1 root 1842:
1843: fi
1.1.1.6 ! root 1844: { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
! 1845: echo "${ECHO_T}$ac_cv_host" >&6; }
! 1846: case $ac_cv_host in
! 1847: *-*-*) ;;
! 1848: *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
! 1849: echo "$as_me: error: invalid value of canonical host" >&2;}
! 1850: { (exit 1); exit 1; }; };;
! 1851: esac
1.1 root 1852: host=$ac_cv_host
1.1.1.6 ! root 1853: ac_save_IFS=$IFS; IFS='-'
! 1854: set x $ac_cv_host
! 1855: shift
! 1856: host_cpu=$1
! 1857: host_vendor=$2
! 1858: shift; shift
! 1859: # Remember, the first character of IFS is used to create $*,
! 1860: # except with old shells:
! 1861: host_os=$*
! 1862: IFS=$ac_save_IFS
! 1863: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.1 root 1864:
1865:
1.1.1.6 ! root 1866: { echo "$as_me:$LINENO: checking target system type" >&5
! 1867: echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1.1 root 1868: if test "${ac_cv_target+set}" = set; then
1869: echo $ECHO_N "(cached) $ECHO_C" >&6
1870: else
1.1.1.6 ! root 1871: if test "x$target_alias" = x; then
! 1872: ac_cv_target=$ac_cv_host
! 1873: else
! 1874: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
! 1875: { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
! 1876: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1.1 root 1877: { (exit 1); exit 1; }; }
1.1.1.6 ! root 1878: fi
1.1 root 1879:
1880: fi
1.1.1.6 ! root 1881: { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
! 1882: echo "${ECHO_T}$ac_cv_target" >&6; }
! 1883: case $ac_cv_target in
! 1884: *-*-*) ;;
! 1885: *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
! 1886: echo "$as_me: error: invalid value of canonical target" >&2;}
! 1887: { (exit 1); exit 1; }; };;
! 1888: esac
1.1 root 1889: target=$ac_cv_target
1.1.1.6 ! root 1890: ac_save_IFS=$IFS; IFS='-'
! 1891: set x $ac_cv_target
! 1892: shift
! 1893: target_cpu=$1
! 1894: target_vendor=$2
! 1895: shift; shift
! 1896: # Remember, the first character of IFS is used to create $*,
! 1897: # except with old shells:
! 1898: target_os=$*
! 1899: IFS=$ac_save_IFS
! 1900: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1.1 root 1901:
1902:
1903: # The aliases save the names the user supplied, while $host etc.
1904: # will get canonicalized.
1905: test -n "$target_alias" &&
1906: test "$program_prefix$program_suffix$program_transform_name" = \
1907: NONENONEs,x,x, &&
1908: program_prefix=${target_alias}-
1909:
1910: ac_ext=c
1911: ac_cpp='$CPP $CPPFLAGS'
1912: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1913: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1914: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1915: if test -n "$ac_tool_prefix"; then
1916: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1917: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.1.1.6 ! root 1918: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 1919: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 1920: if test "${ac_cv_prog_CC+set}" = set; then
1921: echo $ECHO_N "(cached) $ECHO_C" >&6
1922: else
1923: if test -n "$CC"; then
1924: ac_cv_prog_CC="$CC" # Let the user override the test.
1925: else
1926: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927: for as_dir in $PATH
1928: do
1929: IFS=$as_save_IFS
1930: test -z "$as_dir" && as_dir=.
1931: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! root 1932: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 1933: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1934: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935: break 2
1936: fi
1937: done
1938: done
1.1.1.6 ! root 1939: IFS=$as_save_IFS
1.1 root 1940:
1941: fi
1942: fi
1943: CC=$ac_cv_prog_CC
1944: if test -n "$CC"; then
1.1.1.6 ! root 1945: { echo "$as_me:$LINENO: result: $CC" >&5
! 1946: echo "${ECHO_T}$CC" >&6; }
1.1 root 1947: else
1.1.1.6 ! root 1948: { echo "$as_me:$LINENO: result: no" >&5
! 1949: echo "${ECHO_T}no" >&6; }
1.1 root 1950: fi
1951:
1.1.1.6 ! root 1952:
1.1 root 1953: fi
1954: if test -z "$ac_cv_prog_CC"; then
1955: ac_ct_CC=$CC
1956: # Extract the first word of "gcc", so it can be a program name with args.
1957: set dummy gcc; ac_word=$2
1.1.1.6 ! root 1958: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 1959: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 1960: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1961: echo $ECHO_N "(cached) $ECHO_C" >&6
1962: else
1963: if test -n "$ac_ct_CC"; then
1964: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1965: else
1966: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967: for as_dir in $PATH
1968: do
1969: IFS=$as_save_IFS
1970: test -z "$as_dir" && as_dir=.
1971: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! root 1972: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 1973: ac_cv_prog_ac_ct_CC="gcc"
1974: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1975: break 2
1976: fi
1977: done
1978: done
1.1.1.6 ! root 1979: IFS=$as_save_IFS
1.1 root 1980:
1981: fi
1982: fi
1983: ac_ct_CC=$ac_cv_prog_ac_ct_CC
1984: if test -n "$ac_ct_CC"; then
1.1.1.6 ! root 1985: { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
! 1986: echo "${ECHO_T}$ac_ct_CC" >&6; }
1.1 root 1987: else
1.1.1.6 ! root 1988: { echo "$as_me:$LINENO: result: no" >&5
! 1989: echo "${ECHO_T}no" >&6; }
1.1 root 1990: fi
1991:
1.1.1.6 ! root 1992: if test "x$ac_ct_CC" = x; then
! 1993: CC=""
! 1994: else
! 1995: case $cross_compiling:$ac_tool_warned in
! 1996: yes:)
! 1997: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 1998: whose name does not start with the host triplet. If you think this
! 1999: configuration is useful to you, please write to [email protected]." >&5
! 2000: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 2001: whose name does not start with the host triplet. If you think this
! 2002: configuration is useful to you, please write to [email protected]." >&2;}
! 2003: ac_tool_warned=yes ;;
! 2004: esac
! 2005: CC=$ac_ct_CC
! 2006: fi
1.1 root 2007: else
2008: CC="$ac_cv_prog_CC"
2009: fi
2010:
2011: if test -z "$CC"; then
1.1.1.6 ! root 2012: if test -n "$ac_tool_prefix"; then
! 2013: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.1 root 2014: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.1.1.6 ! root 2015: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2016: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 2017: if test "${ac_cv_prog_CC+set}" = set; then
2018: echo $ECHO_N "(cached) $ECHO_C" >&6
2019: else
2020: if test -n "$CC"; then
2021: ac_cv_prog_CC="$CC" # Let the user override the test.
2022: else
2023: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024: for as_dir in $PATH
2025: do
2026: IFS=$as_save_IFS
2027: test -z "$as_dir" && as_dir=.
2028: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! root 2029: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 2030: ac_cv_prog_CC="${ac_tool_prefix}cc"
2031: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032: break 2
2033: fi
2034: done
2035: done
1.1.1.6 ! root 2036: IFS=$as_save_IFS
1.1 root 2037:
2038: fi
2039: fi
2040: CC=$ac_cv_prog_CC
2041: if test -n "$CC"; then
1.1.1.6 ! root 2042: { echo "$as_me:$LINENO: result: $CC" >&5
! 2043: echo "${ECHO_T}$CC" >&6; }
1.1 root 2044: else
1.1.1.6 ! root 2045: { echo "$as_me:$LINENO: result: no" >&5
! 2046: echo "${ECHO_T}no" >&6; }
1.1 root 2047: fi
2048:
2049:
1.1.1.6 ! root 2050: fi
1.1 root 2051: fi
2052: if test -z "$CC"; then
2053: # Extract the first word of "cc", so it can be a program name with args.
2054: set dummy cc; ac_word=$2
1.1.1.6 ! root 2055: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2056: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 2057: if test "${ac_cv_prog_CC+set}" = set; then
2058: echo $ECHO_N "(cached) $ECHO_C" >&6
2059: else
2060: if test -n "$CC"; then
2061: ac_cv_prog_CC="$CC" # Let the user override the test.
2062: else
2063: ac_prog_rejected=no
2064: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065: for as_dir in $PATH
2066: do
2067: IFS=$as_save_IFS
2068: test -z "$as_dir" && as_dir=.
2069: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! root 2070: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 2071: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2072: ac_prog_rejected=yes
2073: continue
2074: fi
2075: ac_cv_prog_CC="cc"
2076: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2077: break 2
2078: fi
2079: done
2080: done
1.1.1.6 ! root 2081: IFS=$as_save_IFS
1.1 root 2082:
2083: if test $ac_prog_rejected = yes; then
2084: # We found a bogon in the path, so make sure we never use it.
2085: set dummy $ac_cv_prog_CC
2086: shift
2087: if test $# != 0; then
2088: # We chose a different compiler from the bogus one.
2089: # However, it has the same basename, so the bogon will be chosen
2090: # first if we set CC to just the basename; use the full file name.
2091: shift
1.1.1.3 root 2092: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 root 2093: fi
2094: fi
2095: fi
2096: fi
2097: CC=$ac_cv_prog_CC
2098: if test -n "$CC"; then
1.1.1.6 ! root 2099: { echo "$as_me:$LINENO: result: $CC" >&5
! 2100: echo "${ECHO_T}$CC" >&6; }
1.1 root 2101: else
1.1.1.6 ! root 2102: { echo "$as_me:$LINENO: result: no" >&5
! 2103: echo "${ECHO_T}no" >&6; }
1.1 root 2104: fi
2105:
1.1.1.6 ! root 2106:
1.1 root 2107: fi
2108: if test -z "$CC"; then
2109: if test -n "$ac_tool_prefix"; then
1.1.1.6 ! root 2110: for ac_prog in cl.exe
1.1 root 2111: do
2112: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2113: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.1.1.6 ! root 2114: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2115: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 2116: if test "${ac_cv_prog_CC+set}" = set; then
2117: echo $ECHO_N "(cached) $ECHO_C" >&6
2118: else
2119: if test -n "$CC"; then
2120: ac_cv_prog_CC="$CC" # Let the user override the test.
2121: else
2122: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123: for as_dir in $PATH
2124: do
2125: IFS=$as_save_IFS
2126: test -z "$as_dir" && as_dir=.
2127: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! root 2128: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 2129: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2130: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2131: break 2
2132: fi
2133: done
2134: done
1.1.1.6 ! root 2135: IFS=$as_save_IFS
1.1 root 2136:
2137: fi
2138: fi
2139: CC=$ac_cv_prog_CC
2140: if test -n "$CC"; then
1.1.1.6 ! root 2141: { echo "$as_me:$LINENO: result: $CC" >&5
! 2142: echo "${ECHO_T}$CC" >&6; }
1.1 root 2143: else
1.1.1.6 ! root 2144: { echo "$as_me:$LINENO: result: no" >&5
! 2145: echo "${ECHO_T}no" >&6; }
1.1 root 2146: fi
2147:
1.1.1.6 ! root 2148:
1.1 root 2149: test -n "$CC" && break
2150: done
2151: fi
2152: if test -z "$CC"; then
2153: ac_ct_CC=$CC
1.1.1.6 ! root 2154: for ac_prog in cl.exe
1.1 root 2155: do
2156: # Extract the first word of "$ac_prog", so it can be a program name with args.
2157: set dummy $ac_prog; ac_word=$2
1.1.1.6 ! root 2158: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2159: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 2160: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2161: echo $ECHO_N "(cached) $ECHO_C" >&6
2162: else
2163: if test -n "$ac_ct_CC"; then
2164: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2165: else
2166: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167: for as_dir in $PATH
2168: do
2169: IFS=$as_save_IFS
2170: test -z "$as_dir" && as_dir=.
2171: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! root 2172: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 2173: ac_cv_prog_ac_ct_CC="$ac_prog"
2174: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2175: break 2
2176: fi
2177: done
2178: done
1.1.1.6 ! root 2179: IFS=$as_save_IFS
1.1 root 2180:
2181: fi
2182: fi
2183: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2184: if test -n "$ac_ct_CC"; then
1.1.1.6 ! root 2185: { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
! 2186: echo "${ECHO_T}$ac_ct_CC" >&6; }
1.1 root 2187: else
1.1.1.6 ! root 2188: { echo "$as_me:$LINENO: result: no" >&5
! 2189: echo "${ECHO_T}no" >&6; }
1.1 root 2190: fi
2191:
1.1.1.6 ! root 2192:
1.1 root 2193: test -n "$ac_ct_CC" && break
2194: done
2195:
1.1.1.6 ! root 2196: if test "x$ac_ct_CC" = x; then
! 2197: CC=""
! 2198: else
! 2199: case $cross_compiling:$ac_tool_warned in
! 2200: yes:)
! 2201: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 2202: whose name does not start with the host triplet. If you think this
! 2203: configuration is useful to you, please write to [email protected]." >&5
! 2204: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 2205: whose name does not start with the host triplet. If you think this
! 2206: configuration is useful to you, please write to [email protected]." >&2;}
! 2207: ac_tool_warned=yes ;;
! 2208: esac
! 2209: CC=$ac_ct_CC
! 2210: fi
1.1 root 2211: fi
2212:
2213: fi
2214:
2215:
1.1.1.3 root 2216: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2217: See \`config.log' for more details." >&5
2218: echo "$as_me: error: no acceptable C compiler found in \$PATH
2219: See \`config.log' for more details." >&2;}
1.1 root 2220: { (exit 1); exit 1; }; }
2221:
2222: # Provide some information about the compiler.
1.1.1.6 ! root 2223: echo "$as_me:$LINENO: checking for C compiler version" >&5
1.1 root 2224: ac_compiler=`set X $ac_compile; echo $2`
1.1.1.6 ! root 2225: { (ac_try="$ac_compiler --version >&5"
! 2226: case "(($ac_try" in
! 2227: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2228: *) ac_try_echo=$ac_try;;
! 2229: esac
! 2230: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2231: (eval "$ac_compiler --version >&5") 2>&5
1.1 root 2232: ac_status=$?
2233: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234: (exit $ac_status); }
1.1.1.6 ! root 2235: { (ac_try="$ac_compiler -v >&5"
! 2236: case "(($ac_try" in
! 2237: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2238: *) ac_try_echo=$ac_try;;
! 2239: esac
! 2240: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2241: (eval "$ac_compiler -v >&5") 2>&5
1.1 root 2242: ac_status=$?
2243: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244: (exit $ac_status); }
1.1.1.6 ! root 2245: { (ac_try="$ac_compiler -V >&5"
! 2246: case "(($ac_try" in
! 2247: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2248: *) ac_try_echo=$ac_try;;
! 2249: esac
! 2250: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2251: (eval "$ac_compiler -V >&5") 2>&5
1.1 root 2252: ac_status=$?
2253: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254: (exit $ac_status); }
2255:
2256: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 2257: /* confdefs.h. */
2258: _ACEOF
2259: cat confdefs.h >>conftest.$ac_ext
2260: cat >>conftest.$ac_ext <<_ACEOF
2261: /* end confdefs.h. */
1.1 root 2262:
2263: int
2264: main ()
2265: {
2266:
2267: ;
2268: return 0;
2269: }
2270: _ACEOF
2271: ac_clean_files_save=$ac_clean_files
1.1.1.3 root 2272: ac_clean_files="$ac_clean_files a.out a.exe b.out"
1.1 root 2273: # Try to create an executable without -o first, disregard a.out.
2274: # It will help us diagnose broken compilers, and finding out an intuition
2275: # of exeext.
1.1.1.6 ! root 2276: { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
! 2277: echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
1.1 root 2278: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.1.1.6 ! root 2279: #
! 2280: # List of possible output files, starting from the most likely.
! 2281: # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
! 2282: # only as a last resort. b.out is created by i960 compilers.
! 2283: ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
! 2284: #
! 2285: # The IRIX 6 linker writes into existing files which may not be
! 2286: # executable, retaining their permissions. Remove them first so a
! 2287: # subsequent execution test works.
! 2288: ac_rmfiles=
! 2289: for ac_file in $ac_files
! 2290: do
! 2291: case $ac_file in
! 2292: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
! 2293: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
! 2294: esac
! 2295: done
! 2296: rm -f $ac_rmfiles
! 2297:
! 2298: if { (ac_try="$ac_link_default"
! 2299: case "(($ac_try" in
! 2300: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2301: *) ac_try_echo=$ac_try;;
! 2302: esac
! 2303: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2304: (eval "$ac_link_default") 2>&5
1.1 root 2305: ac_status=$?
2306: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307: (exit $ac_status); }; then
1.1.1.6 ! root 2308: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
! 2309: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
! 2310: # in a Makefile. We should not override ac_cv_exeext if it was cached,
! 2311: # so that the user can short-circuit this test for compilers unknown to
! 2312: # Autoconf.
! 2313: for ac_file in $ac_files ''
1.1.1.3 root 2314: do
2315: test -f "$ac_file" || continue
1.1 root 2316: case $ac_file in
1.1.1.6 ! root 2317: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
1.1.1.3 root 2318: ;;
2319: [ab].out )
2320: # We found the default executable, but exeext='' is most
2321: # certainly right.
2322: break;;
2323: *.* )
1.1.1.6 ! root 2324: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
! 2325: then :; else
! 2326: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
! 2327: fi
! 2328: # We set ac_cv_exeext here because the later test for it is not
! 2329: # safe: cross compilers may not add the suffix if given an `-o'
! 2330: # argument, so we may need to know it at that point already.
! 2331: # Even if this section looks crufty: it has the advantage of
! 2332: # actually working.
1.1.1.3 root 2333: break;;
2334: * )
2335: break;;
1.1 root 2336: esac
2337: done
1.1.1.6 ! root 2338: test "$ac_cv_exeext" = no && ac_cv_exeext=
! 2339:
1.1 root 2340: else
1.1.1.6 ! root 2341: ac_file=''
! 2342: fi
! 2343:
! 2344: { echo "$as_me:$LINENO: result: $ac_file" >&5
! 2345: echo "${ECHO_T}$ac_file" >&6; }
! 2346: if test -z "$ac_file"; then
1.1 root 2347: echo "$as_me: failed program was:" >&5
1.1.1.3 root 2348: sed 's/^/| /' conftest.$ac_ext >&5
2349:
2350: { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2351: See \`config.log' for more details." >&5
2352: echo "$as_me: error: C compiler cannot create executables
2353: See \`config.log' for more details." >&2;}
1.1 root 2354: { (exit 77); exit 77; }; }
2355: fi
2356:
2357: ac_exeext=$ac_cv_exeext
2358:
1.1.1.6 ! root 2359: # Check that the compiler produces executables we can run. If not, either
1.1 root 2360: # the compiler is broken, or we cross compile.
1.1.1.6 ! root 2361: { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
! 2362: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
1.1 root 2363: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2364: # If not cross compiling, check that we can run a simple program.
2365: if test "$cross_compiling" != yes; then
2366: if { ac_try='./$ac_file'
1.1.1.6 ! root 2367: { (case "(($ac_try" in
! 2368: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2369: *) ac_try_echo=$ac_try;;
! 2370: esac
! 2371: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2372: (eval "$ac_try") 2>&5
1.1 root 2373: ac_status=$?
2374: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375: (exit $ac_status); }; }; then
2376: cross_compiling=no
2377: else
2378: if test "$cross_compiling" = maybe; then
2379: cross_compiling=yes
2380: else
2381: { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1.1.1.3 root 2382: If you meant to cross compile, use \`--host'.
2383: See \`config.log' for more details." >&5
1.1 root 2384: echo "$as_me: error: cannot run C compiled programs.
1.1.1.3 root 2385: If you meant to cross compile, use \`--host'.
2386: See \`config.log' for more details." >&2;}
1.1 root 2387: { (exit 1); exit 1; }; }
2388: fi
2389: fi
2390: fi
1.1.1.6 ! root 2391: { echo "$as_me:$LINENO: result: yes" >&5
! 2392: echo "${ECHO_T}yes" >&6; }
1.1 root 2393:
1.1.1.3 root 2394: rm -f a.out a.exe conftest$ac_cv_exeext b.out
1.1 root 2395: ac_clean_files=$ac_clean_files_save
1.1.1.6 ! root 2396: # Check that the compiler produces executables we can run. If not, either
1.1 root 2397: # the compiler is broken, or we cross compile.
1.1.1.6 ! root 2398: { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
! 2399: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
! 2400: { echo "$as_me:$LINENO: result: $cross_compiling" >&5
! 2401: echo "${ECHO_T}$cross_compiling" >&6; }
! 2402:
! 2403: { echo "$as_me:$LINENO: checking for suffix of executables" >&5
! 2404: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
! 2405: if { (ac_try="$ac_link"
! 2406: case "(($ac_try" in
! 2407: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2408: *) ac_try_echo=$ac_try;;
! 2409: esac
! 2410: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2411: (eval "$ac_link") 2>&5
1.1 root 2412: ac_status=$?
2413: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414: (exit $ac_status); }; then
2415: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2416: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2417: # work properly (i.e., refer to `conftest.exe'), while it won't with
2418: # `rm'.
1.1.1.3 root 2419: for ac_file in conftest.exe conftest conftest.*; do
2420: test -f "$ac_file" || continue
1.1 root 2421: case $ac_file in
1.1.1.6 ! root 2422: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1.1 root 2423: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.1.1.3 root 2424: break;;
1.1 root 2425: * ) break;;
2426: esac
2427: done
2428: else
1.1.1.3 root 2429: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2430: See \`config.log' for more details." >&5
2431: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2432: See \`config.log' for more details." >&2;}
1.1 root 2433: { (exit 1); exit 1; }; }
2434: fi
2435:
2436: rm -f conftest$ac_cv_exeext
1.1.1.6 ! root 2437: { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
! 2438: echo "${ECHO_T}$ac_cv_exeext" >&6; }
1.1 root 2439:
2440: rm -f conftest.$ac_ext
2441: EXEEXT=$ac_cv_exeext
2442: ac_exeext=$EXEEXT
1.1.1.6 ! root 2443: { echo "$as_me:$LINENO: checking for suffix of object files" >&5
! 2444: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
1.1 root 2445: if test "${ac_cv_objext+set}" = set; then
2446: echo $ECHO_N "(cached) $ECHO_C" >&6
2447: else
2448: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 2449: /* confdefs.h. */
2450: _ACEOF
2451: cat confdefs.h >>conftest.$ac_ext
2452: cat >>conftest.$ac_ext <<_ACEOF
2453: /* end confdefs.h. */
1.1 root 2454:
2455: int
2456: main ()
2457: {
2458:
2459: ;
2460: return 0;
2461: }
2462: _ACEOF
2463: rm -f conftest.o conftest.obj
1.1.1.6 ! root 2464: if { (ac_try="$ac_compile"
! 2465: case "(($ac_try" in
! 2466: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2467: *) ac_try_echo=$ac_try;;
! 2468: esac
! 2469: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2470: (eval "$ac_compile") 2>&5
1.1 root 2471: ac_status=$?
2472: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473: (exit $ac_status); }; then
1.1.1.6 ! root 2474: for ac_file in conftest.o conftest.obj conftest.*; do
! 2475: test -f "$ac_file" || continue;
1.1 root 2476: case $ac_file in
1.1.1.6 ! root 2477: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
1.1 root 2478: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2479: break;;
2480: esac
2481: done
2482: else
2483: echo "$as_me: failed program was:" >&5
1.1.1.3 root 2484: sed 's/^/| /' conftest.$ac_ext >&5
2485:
2486: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2487: See \`config.log' for more details." >&5
2488: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2489: See \`config.log' for more details." >&2;}
1.1 root 2490: { (exit 1); exit 1; }; }
2491: fi
2492:
2493: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2494: fi
1.1.1.6 ! root 2495: { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
! 2496: echo "${ECHO_T}$ac_cv_objext" >&6; }
1.1 root 2497: OBJEXT=$ac_cv_objext
2498: ac_objext=$OBJEXT
1.1.1.6 ! root 2499: { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
! 2500: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1.1 root 2501: if test "${ac_cv_c_compiler_gnu+set}" = set; then
2502: echo $ECHO_N "(cached) $ECHO_C" >&6
2503: else
2504: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 2505: /* confdefs.h. */
2506: _ACEOF
2507: cat confdefs.h >>conftest.$ac_ext
2508: cat >>conftest.$ac_ext <<_ACEOF
2509: /* end confdefs.h. */
1.1 root 2510:
2511: int
2512: main ()
2513: {
2514: #ifndef __GNUC__
2515: choke me
2516: #endif
2517:
2518: ;
2519: return 0;
2520: }
2521: _ACEOF
2522: rm -f conftest.$ac_objext
1.1.1.6 ! root 2523: if { (ac_try="$ac_compile"
! 2524: case "(($ac_try" in
! 2525: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2526: *) ac_try_echo=$ac_try;;
! 2527: esac
! 2528: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2529: (eval "$ac_compile") 2>conftest.er1
1.1 root 2530: ac_status=$?
1.1.1.3 root 2531: grep -v '^ *+' conftest.er1 >conftest.err
2532: rm -f conftest.er1
2533: cat conftest.err >&5
1.1 root 2534: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.6 ! root 2535: (exit $ac_status); } && {
! 2536: test -z "$ac_c_werror_flag" ||
! 2537: test ! -s conftest.err
! 2538: } && test -s conftest.$ac_objext; then
1.1 root 2539: ac_compiler_gnu=yes
2540: else
2541: echo "$as_me: failed program was:" >&5
1.1.1.3 root 2542: sed 's/^/| /' conftest.$ac_ext >&5
2543:
1.1.1.6 ! root 2544: ac_compiler_gnu=no
1.1 root 2545: fi
1.1.1.6 ! root 2546:
! 2547: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 2548: ac_cv_c_compiler_gnu=$ac_compiler_gnu
2549:
2550: fi
1.1.1.6 ! root 2551: { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
! 2552: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1.1 root 2553: GCC=`test $ac_compiler_gnu = yes && echo yes`
2554: ac_test_CFLAGS=${CFLAGS+set}
2555: ac_save_CFLAGS=$CFLAGS
1.1.1.6 ! root 2556: { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
! 2557: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
1.1 root 2558: if test "${ac_cv_prog_cc_g+set}" = set; then
2559: echo $ECHO_N "(cached) $ECHO_C" >&6
2560: else
1.1.1.6 ! root 2561: ac_save_c_werror_flag=$ac_c_werror_flag
! 2562: ac_c_werror_flag=yes
! 2563: ac_cv_prog_cc_g=no
! 2564: CFLAGS="-g"
! 2565: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 2566: /* confdefs.h. */
2567: _ACEOF
2568: cat confdefs.h >>conftest.$ac_ext
2569: cat >>conftest.$ac_ext <<_ACEOF
2570: /* end confdefs.h. */
1.1 root 2571:
2572: int
2573: main ()
2574: {
2575:
2576: ;
2577: return 0;
2578: }
2579: _ACEOF
2580: rm -f conftest.$ac_objext
1.1.1.6 ! root 2581: if { (ac_try="$ac_compile"
! 2582: case "(($ac_try" in
! 2583: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2584: *) ac_try_echo=$ac_try;;
! 2585: esac
! 2586: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2587: (eval "$ac_compile") 2>conftest.er1
1.1 root 2588: ac_status=$?
1.1.1.3 root 2589: grep -v '^ *+' conftest.er1 >conftest.err
2590: rm -f conftest.er1
2591: cat conftest.err >&5
1.1 root 2592: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.6 ! root 2593: (exit $ac_status); } && {
! 2594: test -z "$ac_c_werror_flag" ||
! 2595: test ! -s conftest.err
! 2596: } && test -s conftest.$ac_objext; then
! 2597: ac_cv_prog_cc_g=yes
! 2598: else
! 2599: echo "$as_me: failed program was:" >&5
! 2600: sed 's/^/| /' conftest.$ac_ext >&5
! 2601:
! 2602: CFLAGS=""
! 2603: cat >conftest.$ac_ext <<_ACEOF
! 2604: /* confdefs.h. */
! 2605: _ACEOF
! 2606: cat confdefs.h >>conftest.$ac_ext
! 2607: cat >>conftest.$ac_ext <<_ACEOF
! 2608: /* end confdefs.h. */
! 2609:
! 2610: int
! 2611: main ()
! 2612: {
! 2613:
! 2614: ;
! 2615: return 0;
! 2616: }
! 2617: _ACEOF
! 2618: rm -f conftest.$ac_objext
! 2619: if { (ac_try="$ac_compile"
! 2620: case "(($ac_try" in
! 2621: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2622: *) ac_try_echo=$ac_try;;
! 2623: esac
! 2624: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2625: (eval "$ac_compile") 2>conftest.er1
1.1.1.3 root 2626: ac_status=$?
1.1.1.6 ! root 2627: grep -v '^ *+' conftest.er1 >conftest.err
! 2628: rm -f conftest.er1
! 2629: cat conftest.err >&5
1.1.1.3 root 2630: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.6 ! root 2631: (exit $ac_status); } && {
! 2632: test -z "$ac_c_werror_flag" ||
! 2633: test ! -s conftest.err
! 2634: } && test -s conftest.$ac_objext; then
! 2635: :
! 2636: else
! 2637: echo "$as_me: failed program was:" >&5
! 2638: sed 's/^/| /' conftest.$ac_ext >&5
! 2639:
! 2640: ac_c_werror_flag=$ac_save_c_werror_flag
! 2641: CFLAGS="-g"
! 2642: cat >conftest.$ac_ext <<_ACEOF
! 2643: /* confdefs.h. */
! 2644: _ACEOF
! 2645: cat confdefs.h >>conftest.$ac_ext
! 2646: cat >>conftest.$ac_ext <<_ACEOF
! 2647: /* end confdefs.h. */
! 2648:
! 2649: int
! 2650: main ()
! 2651: {
! 2652:
! 2653: ;
! 2654: return 0;
! 2655: }
! 2656: _ACEOF
! 2657: rm -f conftest.$ac_objext
! 2658: if { (ac_try="$ac_compile"
! 2659: case "(($ac_try" in
! 2660: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2661: *) ac_try_echo=$ac_try;;
! 2662: esac
! 2663: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2664: (eval "$ac_compile") 2>conftest.er1
1.1 root 2665: ac_status=$?
1.1.1.6 ! root 2666: grep -v '^ *+' conftest.er1 >conftest.err
! 2667: rm -f conftest.er1
! 2668: cat conftest.err >&5
1.1 root 2669: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.6 ! root 2670: (exit $ac_status); } && {
! 2671: test -z "$ac_c_werror_flag" ||
! 2672: test ! -s conftest.err
! 2673: } && test -s conftest.$ac_objext; then
1.1 root 2674: ac_cv_prog_cc_g=yes
2675: else
2676: echo "$as_me: failed program was:" >&5
1.1.1.3 root 2677: sed 's/^/| /' conftest.$ac_ext >&5
2678:
1.1.1.6 ! root 2679:
! 2680: fi
! 2681:
! 2682: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 2683: fi
1.1.1.6 ! root 2684:
! 2685: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 2686: fi
! 2687:
! 2688: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 2689: ac_c_werror_flag=$ac_save_c_werror_flag
1.1 root 2690: fi
1.1.1.6 ! root 2691: { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
! 2692: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
1.1 root 2693: if test "$ac_test_CFLAGS" = set; then
2694: CFLAGS=$ac_save_CFLAGS
2695: elif test $ac_cv_prog_cc_g = yes; then
2696: if test "$GCC" = yes; then
2697: CFLAGS="-g -O2"
2698: else
2699: CFLAGS="-g"
2700: fi
2701: else
2702: if test "$GCC" = yes; then
2703: CFLAGS="-O2"
2704: else
2705: CFLAGS=
2706: fi
2707: fi
1.1.1.6 ! root 2708: { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
! 2709: echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
! 2710: if test "${ac_cv_prog_cc_c89+set}" = set; then
1.1.1.3 root 2711: echo $ECHO_N "(cached) $ECHO_C" >&6
2712: else
1.1.1.6 ! root 2713: ac_cv_prog_cc_c89=no
1.1.1.3 root 2714: ac_save_CC=$CC
2715: cat >conftest.$ac_ext <<_ACEOF
2716: /* confdefs.h. */
2717: _ACEOF
2718: cat confdefs.h >>conftest.$ac_ext
2719: cat >>conftest.$ac_ext <<_ACEOF
2720: /* end confdefs.h. */
2721: #include <stdarg.h>
2722: #include <stdio.h>
2723: #include <sys/types.h>
2724: #include <sys/stat.h>
2725: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2726: struct buf { int x; };
2727: FILE * (*rcsopen) (struct buf *, struct stat *, int);
2728: static char *e (p, i)
2729: char **p;
2730: int i;
2731: {
2732: return p[i];
2733: }
2734: static char *f (char * (*g) (char **, int), char **p, ...)
2735: {
2736: char *s;
2737: va_list v;
2738: va_start (v,p);
2739: s = g (p, va_arg (v,int));
2740: va_end (v);
2741: return s;
2742: }
2743:
2744: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2745: function prototypes and stuff, but not '\xHH' hex character constants.
2746: These don't provoke an error unfortunately, instead are silently treated
1.1.1.6 ! root 2747: as 'x'. The following induces an error, until -std is added to get
1.1.1.3 root 2748: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2749: array size at least. It's necessary to write '\x00'==0 to get something
1.1.1.6 ! root 2750: that's true only with -std. */
1.1.1.3 root 2751: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2752:
1.1.1.6 ! root 2753: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
! 2754: inside strings and character constants. */
! 2755: #define FOO(x) 'x'
! 2756: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
! 2757:
1.1.1.3 root 2758: int test (int i, double x);
2759: struct s1 {int (*f) (int a);};
2760: struct s2 {int (*f) (double a);};
2761: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2762: int argc;
2763: char **argv;
2764: int
2765: main ()
2766: {
2767: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2768: ;
2769: return 0;
2770: }
2771: _ACEOF
1.1.1.6 ! root 2772: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
! 2773: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.1.1.3 root 2774: do
2775: CC="$ac_save_CC $ac_arg"
2776: rm -f conftest.$ac_objext
1.1.1.6 ! root 2777: if { (ac_try="$ac_compile"
! 2778: case "(($ac_try" in
! 2779: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2780: *) ac_try_echo=$ac_try;;
! 2781: esac
! 2782: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2783: (eval "$ac_compile") 2>conftest.er1
1.1.1.3 root 2784: ac_status=$?
2785: grep -v '^ *+' conftest.er1 >conftest.err
2786: rm -f conftest.er1
2787: cat conftest.err >&5
2788: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.6 ! root 2789: (exit $ac_status); } && {
! 2790: test -z "$ac_c_werror_flag" ||
! 2791: test ! -s conftest.err
! 2792: } && test -s conftest.$ac_objext; then
! 2793: ac_cv_prog_cc_c89=$ac_arg
1.1.1.3 root 2794: else
2795: echo "$as_me: failed program was:" >&5
2796: sed 's/^/| /' conftest.$ac_ext >&5
2797:
1.1.1.6 ! root 2798:
1.1.1.3 root 2799: fi
1.1.1.6 ! root 2800:
! 2801: rm -f core conftest.err conftest.$ac_objext
! 2802: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.1.1.3 root 2803: done
1.1.1.6 ! root 2804: rm -f conftest.$ac_ext
1.1.1.3 root 2805: CC=$ac_save_CC
2806:
2807: fi
1.1.1.6 ! root 2808: # AC_CACHE_VAL
! 2809: case "x$ac_cv_prog_cc_c89" in
! 2810: x)
! 2811: { echo "$as_me:$LINENO: result: none needed" >&5
! 2812: echo "${ECHO_T}none needed" >&6; } ;;
! 2813: xno)
! 2814: { echo "$as_me:$LINENO: result: unsupported" >&5
! 2815: echo "${ECHO_T}unsupported" >&6; } ;;
1.1.1.3 root 2816: *)
1.1.1.6 ! root 2817: CC="$CC $ac_cv_prog_cc_c89"
! 2818: { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
! 2819: echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
1.1.1.3 root 2820: esac
2821:
2822:
1.1 root 2823: ac_ext=c
2824: ac_cpp='$CPP $CPPFLAGS'
2825: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2826: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2827: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2828:
2829: # Find a good install program. We prefer a C program (faster),
2830: # so one script is as good as another. But avoid the broken or
2831: # incompatible versions:
2832: # SysV /etc/install, /usr/sbin/install
2833: # SunOS /usr/etc/install
2834: # IRIX /sbin/install
2835: # AIX /bin/install
2836: # AmigaOS /C/install, which installs bootblocks on floppy discs
2837: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2838: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2839: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.1.1.3 root 2840: # OS/2's system install, which has a completely different semantic
1.1 root 2841: # ./install, which can be erroneously created by make from ./install.sh.
1.1.1.6 ! root 2842: { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
! 2843: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1.1 root 2844: if test -z "$INSTALL"; then
2845: if test "${ac_cv_path_install+set}" = set; then
2846: echo $ECHO_N "(cached) $ECHO_C" >&6
2847: else
2848: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849: for as_dir in $PATH
2850: do
2851: IFS=$as_save_IFS
2852: test -z "$as_dir" && as_dir=.
2853: # Account for people who put trailing slashes in PATH elements.
2854: case $as_dir/ in
2855: ./ | .// | /cC/* | \
2856: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.1.1.3 root 2857: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.1 root 2858: /usr/ucb/* ) ;;
2859: *)
2860: # OSF1 and SCO ODT 3.0 have their own names for install.
2861: # Don't use installbsd from OSF since it installs stuff as root
2862: # by default.
2863: for ac_prog in ginstall scoinst install; do
2864: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! root 2865: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1.1.1.3 root 2866: if test $ac_prog = install &&
2867: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2868: # AIX install. It has an incompatible calling convention.
2869: :
2870: elif test $ac_prog = install &&
2871: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2872: # program-specific install script used by HP pwplus--don't use.
2873: :
2874: else
2875: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2876: break 3
2877: fi
2878: fi
1.1 root 2879: done
2880: done
2881: ;;
2882: esac
2883: done
1.1.1.6 ! root 2884: IFS=$as_save_IFS
1.1 root 2885:
2886:
2887: fi
2888: if test "${ac_cv_path_install+set}" = set; then
2889: INSTALL=$ac_cv_path_install
2890: else
1.1.1.6 ! root 2891: # As a last resort, use the slow shell script. Don't cache a
! 2892: # value for INSTALL within a source directory, because that will
1.1 root 2893: # break other packages using the cache if that directory is
1.1.1.6 ! root 2894: # removed, or if the value is a relative name.
1.1 root 2895: INSTALL=$ac_install_sh
2896: fi
2897: fi
1.1.1.6 ! root 2898: { echo "$as_me:$LINENO: result: $INSTALL" >&5
! 2899: echo "${ECHO_T}$INSTALL" >&6; }
1.1 root 2900:
2901: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2902: # It thinks the first close brace ends the variable substitution.
2903: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2904:
2905: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2906:
2907: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2908:
1.1.1.6 ! root 2909: if test -n "$ac_tool_prefix"; then
! 2910: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
! 2911: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
! 2912: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2913: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 2914: if test "${ac_cv_prog_RANLIB+set}" = set; then
! 2915: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2916: else
! 2917: if test -n "$RANLIB"; then
! 2918: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
! 2919: else
! 2920: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2921: for as_dir in $PATH
! 2922: do
! 2923: IFS=$as_save_IFS
! 2924: test -z "$as_dir" && as_dir=.
! 2925: for ac_exec_ext in '' $ac_executable_extensions; do
! 2926: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 2927: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
! 2928: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 2929: break 2
! 2930: fi
! 2931: done
! 2932: done
! 2933: IFS=$as_save_IFS
! 2934:
! 2935: fi
! 2936: fi
! 2937: RANLIB=$ac_cv_prog_RANLIB
! 2938: if test -n "$RANLIB"; then
! 2939: { echo "$as_me:$LINENO: result: $RANLIB" >&5
! 2940: echo "${ECHO_T}$RANLIB" >&6; }
! 2941: else
! 2942: { echo "$as_me:$LINENO: result: no" >&5
! 2943: echo "${ECHO_T}no" >&6; }
! 2944: fi
! 2945:
! 2946:
! 2947: fi
! 2948: if test -z "$ac_cv_prog_RANLIB"; then
! 2949: ac_ct_RANLIB=$RANLIB
! 2950: # Extract the first word of "ranlib", so it can be a program name with args.
! 2951: set dummy ranlib; ac_word=$2
! 2952: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2953: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 2954: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
! 2955: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2956: else
! 2957: if test -n "$ac_ct_RANLIB"; then
! 2958: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
! 2959: else
! 2960: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2961: for as_dir in $PATH
! 2962: do
! 2963: IFS=$as_save_IFS
! 2964: test -z "$as_dir" && as_dir=.
! 2965: for ac_exec_ext in '' $ac_executable_extensions; do
! 2966: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 2967: ac_cv_prog_ac_ct_RANLIB="ranlib"
! 2968: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 2969: break 2
! 2970: fi
! 2971: done
! 2972: done
! 2973: IFS=$as_save_IFS
! 2974:
! 2975: fi
! 2976: fi
! 2977: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
! 2978: if test -n "$ac_ct_RANLIB"; then
! 2979: { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
! 2980: echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
! 2981: else
! 2982: { echo "$as_me:$LINENO: result: no" >&5
! 2983: echo "${ECHO_T}no" >&6; }
! 2984: fi
! 2985:
! 2986: if test "x$ac_ct_RANLIB" = x; then
! 2987: RANLIB=":"
! 2988: else
! 2989: case $cross_compiling:$ac_tool_warned in
! 2990: yes:)
! 2991: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 2992: whose name does not start with the host triplet. If you think this
! 2993: configuration is useful to you, please write to [email protected]." >&5
! 2994: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 2995: whose name does not start with the host triplet. If you think this
! 2996: configuration is useful to you, please write to [email protected]." >&2;}
! 2997: ac_tool_warned=yes ;;
! 2998: esac
! 2999: RANLIB=$ac_ct_RANLIB
! 3000: fi
! 3001: else
! 3002: RANLIB="$ac_cv_prog_RANLIB"
! 3003: fi
! 3004:
1.1 root 3005:
3006: # extra command line options
3007:
1.1.1.6 ! root 3008: # Check whether --enable-werror was given.
1.1 root 3009: if test "${enable_werror+set}" = set; then
1.1.1.6 ! root 3010: enableval=$enable_werror; ENABLE_WERROR="${enableval}"
1.1 root 3011: else
3012: ENABLE_WERROR="no"
1.1.1.6 ! root 3013: fi
! 3014:
! 3015:
! 3016: # Check whether --enable-small-mem was given.
! 3017: if test "${enable_small_mem+set}" = set; then
! 3018: enableval=$enable_small_mem;
! 3019: cat >>confdefs.h <<\_ACEOF
! 3020: #define ENABLE_SMALL_MEM 1
! 3021: _ACEOF
! 3022:
! 3023: fi
! 3024:
1.1 root 3025:
3026:
1.1.1.6 ! root 3027: # Check whether --with-extra-inc was given.
1.1 root 3028: if test "${with_extra_inc+set}" = set; then
1.1.1.6 ! root 3029: withval=$with_extra_inc; if test "${withval}" != no; then
1.1 root 3030: if test "${withval}" != yes; then
3031: INCL="${INCL} -I${withval}"
3032: fi
3033: fi
1.1.1.6 ! root 3034: fi
! 3035:
1.1 root 3036:
3037:
1.1.1.6 ! root 3038: # Check whether --with-extra-lib was given.
1.1 root 3039: if test "${with_extra_lib+set}" = set; then
1.1.1.6 ! root 3040: withval=$with_extra_lib; if test "${withval}" != no; then
1.1 root 3041: if test "${withval}" != yes; then
3042: LDFLAGS="${LDFLAGS} -L${withval}"
3043: if test x"${GCC}" = xyes; then
3044: LDFLAGS="${LDFLAGS} -Wl,-rpath,${withval}/lib"
3045: fi
3046: fi
3047: fi
1.1.1.6 ! root 3048: fi
! 3049:
1.1 root 3050:
3051:
1.1.1.6 ! root 3052: # Check whether --with-hostcc was given.
1.1 root 3053: if test "${with_hostcc+set}" = set; then
1.1.1.6 ! root 3054: withval=$with_hostcc; HOSTCC=$withval
1.1 root 3055: else
3056: HOSTCC=$CC
1.1.1.6 ! root 3057: fi
! 3058:
1.1 root 3059:
3060:
3061:
3062:
3063:
1.1.1.6 ! root 3064: { echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
! 3065: echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
1.1 root 3066: if test "${ac_cv_lib_z_gzopen+set}" = set; then
3067: echo $ECHO_N "(cached) $ECHO_C" >&6
3068: else
3069: ac_check_lib_save_LIBS=$LIBS
3070: LIBS="-lz $LIBS"
3071: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 3072: /* confdefs.h. */
3073: _ACEOF
3074: cat confdefs.h >>conftest.$ac_ext
3075: cat >>conftest.$ac_ext <<_ACEOF
3076: /* end confdefs.h. */
1.1 root 3077:
1.1.1.6 ! root 3078: /* Override any GCC internal prototype to avoid an error.
! 3079: Use char because int might match the return type of a GCC
! 3080: builtin and then its argument prototype would still apply. */
1.1 root 3081: #ifdef __cplusplus
3082: extern "C"
3083: #endif
3084: char gzopen ();
3085: int
3086: main ()
3087: {
1.1.1.6 ! root 3088: return gzopen ();
1.1 root 3089: ;
3090: return 0;
3091: }
3092: _ACEOF
3093: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.6 ! root 3094: if { (ac_try="$ac_link"
! 3095: case "(($ac_try" in
! 3096: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3097: *) ac_try_echo=$ac_try;;
! 3098: esac
! 3099: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3100: (eval "$ac_link") 2>conftest.er1
1.1 root 3101: ac_status=$?
1.1.1.3 root 3102: grep -v '^ *+' conftest.er1 >conftest.err
3103: rm -f conftest.er1
3104: cat conftest.err >&5
1.1 root 3105: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.6 ! root 3106: (exit $ac_status); } && {
! 3107: test -z "$ac_c_werror_flag" ||
! 3108: test ! -s conftest.err
! 3109: } && test -s conftest$ac_exeext &&
! 3110: $as_test_x conftest$ac_exeext; then
1.1 root 3111: ac_cv_lib_z_gzopen=yes
3112: else
3113: echo "$as_me: failed program was:" >&5
1.1.1.3 root 3114: sed 's/^/| /' conftest.$ac_ext >&5
3115:
1.1.1.6 ! root 3116: ac_cv_lib_z_gzopen=no
1.1 root 3117: fi
1.1.1.6 ! root 3118:
! 3119: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.3 root 3120: conftest$ac_exeext conftest.$ac_ext
1.1 root 3121: LIBS=$ac_check_lib_save_LIBS
3122: fi
1.1.1.6 ! root 3123: { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
! 3124: echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
1.1 root 3125: if test $ac_cv_lib_z_gzopen = yes; then
3126: cat >>confdefs.h <<_ACEOF
3127: #define HAVE_LIBZ 1
3128: _ACEOF
3129:
3130: LIBS="-lz $LIBS"
3131:
3132: else
3133: { { echo "$as_me:$LINENO: error: You need the zlib to compile this program!" >&5
3134: echo "$as_me: error: You need the zlib to compile this program!" >&2;}
3135: { (exit 1); exit 1; }; }
3136: fi
3137:
3138:
3139: SDL_VERSION=1.2.0
3140:
1.1.1.6 ! root 3141: # Check whether --with-sdl-prefix was given.
1.1 root 3142: if test "${with_sdl_prefix+set}" = set; then
1.1.1.6 ! root 3143: withval=$with_sdl_prefix; sdl_prefix="$withval"
1.1 root 3144: else
3145: sdl_prefix=""
1.1.1.6 ! root 3146: fi
1.1 root 3147:
1.1.1.6 ! root 3148:
! 3149: # Check whether --with-sdl-exec-prefix was given.
1.1 root 3150: if test "${with_sdl_exec_prefix+set}" = set; then
1.1.1.6 ! root 3151: withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
1.1 root 3152: else
3153: sdl_exec_prefix=""
1.1.1.6 ! root 3154: fi
1.1 root 3155:
1.1.1.6 ! root 3156: # Check whether --enable-sdltest was given.
! 3157: if test "${enable_sdltest+set}" = set; then
! 3158: enableval=$enable_sdltest;
1.1 root 3159: else
3160: enable_sdltest=yes
1.1.1.6 ! root 3161: fi
! 3162:
1.1 root 3163:
3164: if test x$sdl_exec_prefix != x ; then
1.1.1.6 ! root 3165: sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
! 3166: if test x${SDL_CONFIG+set} != xset ; then
! 3167: SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
! 3168: fi
1.1 root 3169: fi
3170: if test x$sdl_prefix != x ; then
1.1.1.6 ! root 3171: sdl_args="$sdl_args --prefix=$sdl_prefix"
! 3172: if test x${SDL_CONFIG+set} != xset ; then
! 3173: SDL_CONFIG=$sdl_prefix/bin/sdl-config
! 3174: fi
1.1 root 3175: fi
3176:
1.1.1.6 ! root 3177: if test "x$prefix" != xNONE; then
! 3178: PATH="$prefix/bin:$prefix/usr/bin:$PATH"
! 3179: fi
1.1 root 3180: # Extract the first word of "sdl-config", so it can be a program name with args.
3181: set dummy sdl-config; ac_word=$2
1.1.1.6 ! root 3182: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 3183: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 3184: if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
3185: echo $ECHO_N "(cached) $ECHO_C" >&6
3186: else
3187: case $SDL_CONFIG in
3188: [\\/]* | ?:[\\/]*)
3189: ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
3190: ;;
3191: *)
3192: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193: for as_dir in $PATH
3194: do
3195: IFS=$as_save_IFS
3196: test -z "$as_dir" && as_dir=.
3197: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.6 ! root 3198: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 3199: ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3200: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3201: break 2
3202: fi
3203: done
3204: done
1.1.1.6 ! root 3205: IFS=$as_save_IFS
1.1 root 3206:
3207: test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
3208: ;;
3209: esac
3210: fi
3211: SDL_CONFIG=$ac_cv_path_SDL_CONFIG
3212: if test -n "$SDL_CONFIG"; then
1.1.1.6 ! root 3213: { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
! 3214: echo "${ECHO_T}$SDL_CONFIG" >&6; }
1.1 root 3215: else
1.1.1.6 ! root 3216: { echo "$as_me:$LINENO: result: no" >&5
! 3217: echo "${ECHO_T}no" >&6; }
1.1 root 3218: fi
3219:
1.1.1.6 ! root 3220:
1.1 root 3221: min_sdl_version=$SDL_VERSION
1.1.1.6 ! root 3222: { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
! 3223: echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
1.1 root 3224: no_sdl=""
3225: if test "$SDL_CONFIG" = "no" ; then
3226: no_sdl=yes
3227: else
3228: SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
3229: SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
3230:
3231: sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
3232: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
3233: sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
3234: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
3235: sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
3236: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
3237: if test "x$enable_sdltest" = "xyes" ; then
3238: ac_save_CFLAGS="$CFLAGS"
1.1.1.6 ! root 3239: ac_save_CXXFLAGS="$CXXFLAGS"
1.1 root 3240: ac_save_LIBS="$LIBS"
3241: CFLAGS="$CFLAGS $SDL_CFLAGS"
1.1.1.6 ! root 3242: CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
1.1 root 3243: LIBS="$LIBS $SDL_LIBS"
3244: rm -f conf.sdltest
3245: if test "$cross_compiling" = yes; then
3246: echo $ac_n "cross compiling; assumed OK... $ac_c"
3247: else
3248: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 3249: /* confdefs.h. */
3250: _ACEOF
3251: cat confdefs.h >>conftest.$ac_ext
3252: cat >>conftest.$ac_ext <<_ACEOF
3253: /* end confdefs.h. */
1.1 root 3254:
3255: #include <stdio.h>
3256: #include <stdlib.h>
3257: #include <string.h>
3258: #include "SDL.h"
3259:
3260: char*
3261: my_strdup (char *str)
3262: {
3263: char *new_str;
3264:
3265: if (str)
3266: {
3267: new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
3268: strcpy (new_str, str);
3269: }
3270: else
3271: new_str = NULL;
3272:
3273: return new_str;
3274: }
3275:
3276: int main (int argc, char *argv[])
3277: {
3278: int major, minor, micro;
3279: char *tmp_version;
3280:
3281: /* This hangs on some systems (?)
3282: system ("touch conf.sdltest");
3283: */
3284: { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
3285:
3286: /* HP/UX 9 (%@#!) writes to sscanf strings */
3287: tmp_version = my_strdup("$min_sdl_version");
3288: if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
3289: printf("%s, bad version string\n", "$min_sdl_version");
3290: exit(1);
3291: }
3292:
3293: if (($sdl_major_version > major) ||
3294: (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
3295: (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
3296: {
3297: return 0;
3298: }
3299: else
3300: {
3301: printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
3302: printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
3303: printf("*** best to upgrade to the required version.\n");
3304: printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
3305: printf("*** to point to the correct copy of sdl-config, and remove the file\n");
3306: printf("*** config.cache before re-running configure\n");
3307: return 1;
3308: }
3309: }
3310:
3311:
3312: _ACEOF
3313: rm -f conftest$ac_exeext
1.1.1.6 ! root 3314: if { (ac_try="$ac_link"
! 3315: case "(($ac_try" in
! 3316: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3317: *) ac_try_echo=$ac_try;;
! 3318: esac
! 3319: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3320: (eval "$ac_link") 2>&5
1.1 root 3321: ac_status=$?
3322: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.6 ! root 3324: { (case "(($ac_try" in
! 3325: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3326: *) ac_try_echo=$ac_try;;
! 3327: esac
! 3328: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3329: (eval "$ac_try") 2>&5
1.1 root 3330: ac_status=$?
3331: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332: (exit $ac_status); }; }; then
3333: :
3334: else
3335: echo "$as_me: program exited with status $ac_status" >&5
3336: echo "$as_me: failed program was:" >&5
1.1.1.3 root 3337: sed 's/^/| /' conftest.$ac_ext >&5
3338:
1.1 root 3339: ( exit $ac_status )
3340: no_sdl=yes
3341: fi
1.1.1.6 ! root 3342: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 root 3343: fi
1.1.1.6 ! root 3344:
! 3345:
1.1 root 3346: CFLAGS="$ac_save_CFLAGS"
1.1.1.6 ! root 3347: CXXFLAGS="$ac_save_CXXFLAGS"
1.1 root 3348: LIBS="$ac_save_LIBS"
3349: fi
3350: fi
3351: if test "x$no_sdl" = x ; then
1.1.1.6 ! root 3352: { echo "$as_me:$LINENO: result: yes" >&5
! 3353: echo "${ECHO_T}yes" >&6; }
1.1 root 3354: :
3355: else
1.1.1.6 ! root 3356: { echo "$as_me:$LINENO: result: no" >&5
! 3357: echo "${ECHO_T}no" >&6; }
1.1 root 3358: if test "$SDL_CONFIG" = "no" ; then
3359: echo "*** The sdl-config script installed by SDL could not be found"
3360: echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
3361: echo "*** your path, or set the SDL_CONFIG environment variable to the"
3362: echo "*** full path to sdl-config."
3363: else
3364: if test -f conf.sdltest ; then
3365: :
3366: else
3367: echo "*** Could not run SDL test program, checking why..."
3368: CFLAGS="$CFLAGS $SDL_CFLAGS"
1.1.1.6 ! root 3369: CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
1.1 root 3370: LIBS="$LIBS $SDL_LIBS"
3371: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 3372: /* confdefs.h. */
3373: _ACEOF
3374: cat confdefs.h >>conftest.$ac_ext
3375: cat >>conftest.$ac_ext <<_ACEOF
3376: /* end confdefs.h. */
1.1 root 3377:
3378: #include <stdio.h>
3379: #include "SDL.h"
3380:
3381: int main(int argc, char *argv[])
3382: { return 0; }
3383: #undef main
3384: #define main K_and_R_C_main
3385:
3386: int
3387: main ()
3388: {
3389: return 0;
3390: ;
3391: return 0;
3392: }
3393: _ACEOF
3394: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.6 ! root 3395: if { (ac_try="$ac_link"
! 3396: case "(($ac_try" in
! 3397: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3398: *) ac_try_echo=$ac_try;;
! 3399: esac
! 3400: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3401: (eval "$ac_link") 2>conftest.er1
1.1 root 3402: ac_status=$?
1.1.1.3 root 3403: grep -v '^ *+' conftest.er1 >conftest.err
3404: rm -f conftest.er1
3405: cat conftest.err >&5
1.1 root 3406: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.6 ! root 3407: (exit $ac_status); } && {
! 3408: test -z "$ac_c_werror_flag" ||
! 3409: test ! -s conftest.err
! 3410: } && test -s conftest$ac_exeext &&
! 3411: $as_test_x conftest$ac_exeext; then
1.1 root 3412: echo "*** The test program compiled, but did not run. This usually means"
3413: echo "*** that the run-time linker is not finding SDL or finding the wrong"
3414: echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
3415: echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
3416: echo "*** to the installed location Also, make sure you have run ldconfig if that"
3417: echo "*** is required on your system"
3418: echo "***"
3419: echo "*** If you have an old version installed, it is best to remove it, although"
3420: echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
3421: else
3422: echo "$as_me: failed program was:" >&5
1.1.1.3 root 3423: sed 's/^/| /' conftest.$ac_ext >&5
3424:
1.1.1.6 ! root 3425: echo "*** The test program failed to compile or link. See the file config.log for the"
1.1 root 3426: echo "*** exact error that occured. This usually means SDL was incorrectly installed"
3427: echo "*** or that you have moved SDL since it was installed. In the latter case, you"
3428: echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
3429: fi
1.1.1.6 ! root 3430:
! 3431: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.3 root 3432: conftest$ac_exeext conftest.$ac_ext
1.1 root 3433: CFLAGS="$ac_save_CFLAGS"
1.1.1.6 ! root 3434: CXXFLAGS="$ac_save_CXXFLAGS"
1.1 root 3435: LIBS="$ac_save_LIBS"
3436: fi
3437: fi
3438: SDL_CFLAGS=""
3439: SDL_LIBS=""
3440: { { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5
3441: echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;}
3442: { (exit 1); exit 1; }; }
3443: fi
3444:
3445:
3446: rm -f conf.sdltest
3447:
3448:
3449: ac_ext=c
3450: ac_cpp='$CPP $CPPFLAGS'
3451: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1.1.6 ! root 3454: { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
! 3455: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
1.1 root 3456: # On Suns, sometimes $CPP names a directory.
3457: if test -n "$CPP" && test -d "$CPP"; then
3458: CPP=
3459: fi
3460: if test -z "$CPP"; then
3461: if test "${ac_cv_prog_CPP+set}" = set; then
3462: echo $ECHO_N "(cached) $ECHO_C" >&6
3463: else
3464: # Double quotes because CPP needs to be expanded
3465: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3466: do
3467: ac_preproc_ok=false
3468: for ac_c_preproc_warn_flag in '' yes
3469: do
3470: # Use a header file that comes with gcc, so configuring glibc
3471: # with a fresh cross-compiler works.
1.1.1.3 root 3472: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3473: # <limits.h> exists even on freestanding compilers.
1.1 root 3474: # On the NeXT, cc -E runs the code through the compiler's parser,
3475: # not just through cpp. "Syntax error" is here to catch this case.
3476: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 3477: /* confdefs.h. */
3478: _ACEOF
3479: cat confdefs.h >>conftest.$ac_ext
3480: cat >>conftest.$ac_ext <<_ACEOF
3481: /* end confdefs.h. */
3482: #ifdef __STDC__
3483: # include <limits.h>
3484: #else
3485: # include <assert.h>
3486: #endif
3487: Syntax error
1.1 root 3488: _ACEOF
1.1.1.6 ! root 3489: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 3490: case "(($ac_try" in
! 3491: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3492: *) ac_try_echo=$ac_try;;
! 3493: esac
! 3494: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3495: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 3496: ac_status=$?
1.1.1.3 root 3497: grep -v '^ *+' conftest.er1 >conftest.err
1.1 root 3498: rm -f conftest.er1
3499: cat conftest.err >&5
3500: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.6 ! root 3501: (exit $ac_status); } >/dev/null && {
! 3502: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 3503: test ! -s conftest.err
! 3504: }; then
1.1 root 3505: :
3506: else
3507: echo "$as_me: failed program was:" >&5
1.1.1.3 root 3508: sed 's/^/| /' conftest.$ac_ext >&5
3509:
1.1 root 3510: # Broken: fails on valid input.
3511: continue
3512: fi
1.1.1.6 ! root 3513:
1.1 root 3514: rm -f conftest.err conftest.$ac_ext
3515:
1.1.1.6 ! root 3516: # OK, works on sane cases. Now check whether nonexistent headers
1.1 root 3517: # can be detected and how.
3518: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 3519: /* confdefs.h. */
3520: _ACEOF
3521: cat confdefs.h >>conftest.$ac_ext
3522: cat >>conftest.$ac_ext <<_ACEOF
3523: /* end confdefs.h. */
1.1 root 3524: #include <ac_nonexistent.h>
3525: _ACEOF
1.1.1.6 ! root 3526: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 3527: case "(($ac_try" in
! 3528: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3529: *) ac_try_echo=$ac_try;;
! 3530: esac
! 3531: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3532: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 3533: ac_status=$?
1.1.1.3 root 3534: grep -v '^ *+' conftest.er1 >conftest.err
1.1 root 3535: rm -f conftest.er1
3536: cat conftest.err >&5
3537: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.6 ! root 3538: (exit $ac_status); } >/dev/null && {
! 3539: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 3540: test ! -s conftest.err
! 3541: }; then
1.1 root 3542: # Broken: success on invalid input.
3543: continue
3544: else
3545: echo "$as_me: failed program was:" >&5
1.1.1.3 root 3546: sed 's/^/| /' conftest.$ac_ext >&5
3547:
1.1 root 3548: # Passes both tests.
3549: ac_preproc_ok=:
3550: break
3551: fi
1.1.1.6 ! root 3552:
1.1 root 3553: rm -f conftest.err conftest.$ac_ext
3554:
3555: done
3556: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3557: rm -f conftest.err conftest.$ac_ext
3558: if $ac_preproc_ok; then
3559: break
3560: fi
3561:
3562: done
3563: ac_cv_prog_CPP=$CPP
3564:
3565: fi
3566: CPP=$ac_cv_prog_CPP
3567: else
3568: ac_cv_prog_CPP=$CPP
3569: fi
1.1.1.6 ! root 3570: { echo "$as_me:$LINENO: result: $CPP" >&5
! 3571: echo "${ECHO_T}$CPP" >&6; }
1.1 root 3572: ac_preproc_ok=false
3573: for ac_c_preproc_warn_flag in '' yes
3574: do
3575: # Use a header file that comes with gcc, so configuring glibc
3576: # with a fresh cross-compiler works.
1.1.1.3 root 3577: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3578: # <limits.h> exists even on freestanding compilers.
1.1 root 3579: # On the NeXT, cc -E runs the code through the compiler's parser,
3580: # not just through cpp. "Syntax error" is here to catch this case.
3581: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 3582: /* confdefs.h. */
3583: _ACEOF
3584: cat confdefs.h >>conftest.$ac_ext
3585: cat >>conftest.$ac_ext <<_ACEOF
3586: /* end confdefs.h. */
3587: #ifdef __STDC__
3588: # include <limits.h>
3589: #else
3590: # include <assert.h>
3591: #endif
3592: Syntax error
1.1 root 3593: _ACEOF
1.1.1.6 ! root 3594: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 3595: case "(($ac_try" in
! 3596: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3597: *) ac_try_echo=$ac_try;;
! 3598: esac
! 3599: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3600: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 3601: ac_status=$?
1.1.1.3 root 3602: grep -v '^ *+' conftest.er1 >conftest.err
1.1 root 3603: rm -f conftest.er1
3604: cat conftest.err >&5
3605: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.6 ! root 3606: (exit $ac_status); } >/dev/null && {
! 3607: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 3608: test ! -s conftest.err
! 3609: }; then
1.1 root 3610: :
3611: else
3612: echo "$as_me: failed program was:" >&5
1.1.1.3 root 3613: sed 's/^/| /' conftest.$ac_ext >&5
3614:
1.1 root 3615: # Broken: fails on valid input.
3616: continue
3617: fi
1.1.1.6 ! root 3618:
1.1 root 3619: rm -f conftest.err conftest.$ac_ext
3620:
1.1.1.6 ! root 3621: # OK, works on sane cases. Now check whether nonexistent headers
1.1 root 3622: # can be detected and how.
3623: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 3624: /* confdefs.h. */
3625: _ACEOF
3626: cat confdefs.h >>conftest.$ac_ext
3627: cat >>conftest.$ac_ext <<_ACEOF
3628: /* end confdefs.h. */
1.1 root 3629: #include <ac_nonexistent.h>
3630: _ACEOF
1.1.1.6 ! root 3631: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 3632: case "(($ac_try" in
! 3633: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3634: *) ac_try_echo=$ac_try;;
! 3635: esac
! 3636: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3637: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 3638: ac_status=$?
1.1.1.3 root 3639: grep -v '^ *+' conftest.er1 >conftest.err
1.1 root 3640: rm -f conftest.er1
3641: cat conftest.err >&5
3642: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.6 ! root 3643: (exit $ac_status); } >/dev/null && {
! 3644: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 3645: test ! -s conftest.err
! 3646: }; then
1.1 root 3647: # Broken: success on invalid input.
3648: continue
3649: else
3650: echo "$as_me: failed program was:" >&5
1.1.1.3 root 3651: sed 's/^/| /' conftest.$ac_ext >&5
3652:
1.1 root 3653: # Passes both tests.
3654: ac_preproc_ok=:
3655: break
3656: fi
1.1.1.6 ! root 3657:
1.1 root 3658: rm -f conftest.err conftest.$ac_ext
3659:
3660: done
3661: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3662: rm -f conftest.err conftest.$ac_ext
3663: if $ac_preproc_ok; then
3664: :
3665: else
1.1.1.3 root 3666: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3667: See \`config.log' for more details." >&5
3668: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3669: See \`config.log' for more details." >&2;}
1.1 root 3670: { (exit 1); exit 1; }; }
3671: fi
3672:
3673: ac_ext=c
3674: ac_cpp='$CPP $CPPFLAGS'
3675: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3676: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3677: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3678:
3679:
1.1.1.6 ! root 3680: { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
! 3681: echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
! 3682: if test "${ac_cv_path_GREP+set}" = set; then
! 3683: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3684: else
! 3685: # Extract the first word of "grep ggrep" to use in msg output
! 3686: if test -z "$GREP"; then
! 3687: set dummy grep ggrep; ac_prog_name=$2
! 3688: if test "${ac_cv_path_GREP+set}" = set; then
! 3689: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3690: else
! 3691: ac_path_GREP_found=false
! 3692: # Loop through the user's path and test for each of PROGNAME-LIST
! 3693: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 3694: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
! 3695: do
! 3696: IFS=$as_save_IFS
! 3697: test -z "$as_dir" && as_dir=.
! 3698: for ac_prog in grep ggrep; do
! 3699: for ac_exec_ext in '' $ac_executable_extensions; do
! 3700: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
! 3701: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
! 3702: # Check for GNU ac_path_GREP and select it if it is found.
! 3703: # Check for GNU $ac_path_GREP
! 3704: case `"$ac_path_GREP" --version 2>&1` in
! 3705: *GNU*)
! 3706: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
! 3707: *)
! 3708: ac_count=0
! 3709: echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
! 3710: while :
! 3711: do
! 3712: cat "conftest.in" "conftest.in" >"conftest.tmp"
! 3713: mv "conftest.tmp" "conftest.in"
! 3714: cp "conftest.in" "conftest.nl"
! 3715: echo 'GREP' >> "conftest.nl"
! 3716: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
! 3717: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
! 3718: ac_count=`expr $ac_count + 1`
! 3719: if test $ac_count -gt ${ac_path_GREP_max-0}; then
! 3720: # Best one so far, save it but keep looking for a better one
! 3721: ac_cv_path_GREP="$ac_path_GREP"
! 3722: ac_path_GREP_max=$ac_count
! 3723: fi
! 3724: # 10*(2^10) chars as input seems more than enough
! 3725: test $ac_count -gt 10 && break
! 3726: done
! 3727: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
! 3728: esac
! 3729:
! 3730:
! 3731: $ac_path_GREP_found && break 3
! 3732: done
! 3733: done
! 3734:
! 3735: done
! 3736: IFS=$as_save_IFS
! 3737:
! 3738:
! 3739: fi
! 3740:
! 3741: GREP="$ac_cv_path_GREP"
! 3742: if test -z "$GREP"; then
! 3743: { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
! 3744: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
! 3745: { (exit 1); exit 1; }; }
! 3746: fi
! 3747:
! 3748: else
! 3749: ac_cv_path_GREP=$GREP
! 3750: fi
! 3751:
! 3752:
! 3753: fi
! 3754: { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
! 3755: echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
! 3756: GREP="$ac_cv_path_GREP"
! 3757:
! 3758:
! 3759: { echo "$as_me:$LINENO: checking for egrep" >&5
! 3760: echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
! 3761: if test "${ac_cv_path_EGREP+set}" = set; then
! 3762: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3763: else
! 3764: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
! 3765: then ac_cv_path_EGREP="$GREP -E"
! 3766: else
! 3767: # Extract the first word of "egrep" to use in msg output
! 3768: if test -z "$EGREP"; then
! 3769: set dummy egrep; ac_prog_name=$2
! 3770: if test "${ac_cv_path_EGREP+set}" = set; then
1.1.1.3 root 3771: echo $ECHO_N "(cached) $ECHO_C" >&6
3772: else
1.1.1.6 ! root 3773: ac_path_EGREP_found=false
! 3774: # Loop through the user's path and test for each of PROGNAME-LIST
! 3775: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 3776: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
! 3777: do
! 3778: IFS=$as_save_IFS
! 3779: test -z "$as_dir" && as_dir=.
! 3780: for ac_prog in egrep; do
! 3781: for ac_exec_ext in '' $ac_executable_extensions; do
! 3782: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
! 3783: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
! 3784: # Check for GNU ac_path_EGREP and select it if it is found.
! 3785: # Check for GNU $ac_path_EGREP
! 3786: case `"$ac_path_EGREP" --version 2>&1` in
! 3787: *GNU*)
! 3788: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
! 3789: *)
! 3790: ac_count=0
! 3791: echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
! 3792: while :
! 3793: do
! 3794: cat "conftest.in" "conftest.in" >"conftest.tmp"
! 3795: mv "conftest.tmp" "conftest.in"
! 3796: cp "conftest.in" "conftest.nl"
! 3797: echo 'EGREP' >> "conftest.nl"
! 3798: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
! 3799: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
! 3800: ac_count=`expr $ac_count + 1`
! 3801: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
! 3802: # Best one so far, save it but keep looking for a better one
! 3803: ac_cv_path_EGREP="$ac_path_EGREP"
! 3804: ac_path_EGREP_max=$ac_count
1.1.1.3 root 3805: fi
1.1.1.6 ! root 3806: # 10*(2^10) chars as input seems more than enough
! 3807: test $ac_count -gt 10 && break
! 3808: done
! 3809: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
! 3810: esac
! 3811:
! 3812:
! 3813: $ac_path_EGREP_found && break 3
! 3814: done
! 3815: done
! 3816:
! 3817: done
! 3818: IFS=$as_save_IFS
! 3819:
! 3820:
! 3821: fi
! 3822:
! 3823: EGREP="$ac_cv_path_EGREP"
! 3824: if test -z "$EGREP"; then
! 3825: { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
! 3826: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
! 3827: { (exit 1); exit 1; }; }
! 3828: fi
! 3829:
! 3830: else
! 3831: ac_cv_path_EGREP=$EGREP
1.1.1.3 root 3832: fi
3833:
3834:
1.1.1.6 ! root 3835: fi
! 3836: fi
! 3837: { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
! 3838: echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
! 3839: EGREP="$ac_cv_path_EGREP"
! 3840:
! 3841:
! 3842: { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
! 3843: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
1.1 root 3844: if test "${ac_cv_header_stdc+set}" = set; then
3845: echo $ECHO_N "(cached) $ECHO_C" >&6
3846: else
3847: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 3848: /* confdefs.h. */
3849: _ACEOF
3850: cat confdefs.h >>conftest.$ac_ext
3851: cat >>conftest.$ac_ext <<_ACEOF
3852: /* end confdefs.h. */
1.1 root 3853: #include <stdlib.h>
3854: #include <stdarg.h>
3855: #include <string.h>
3856: #include <float.h>
3857:
1.1.1.3 root 3858: int
3859: main ()
3860: {
3861:
3862: ;
3863: return 0;
3864: }
1.1 root 3865: _ACEOF
1.1.1.3 root 3866: rm -f conftest.$ac_objext
1.1.1.6 ! root 3867: if { (ac_try="$ac_compile"
! 3868: case "(($ac_try" in
! 3869: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3870: *) ac_try_echo=$ac_try;;
! 3871: esac
! 3872: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3873: (eval "$ac_compile") 2>conftest.er1
1.1 root 3874: ac_status=$?
1.1.1.3 root 3875: grep -v '^ *+' conftest.er1 >conftest.err
1.1 root 3876: rm -f conftest.er1
3877: cat conftest.err >&5
3878: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.6 ! root 3879: (exit $ac_status); } && {
! 3880: test -z "$ac_c_werror_flag" ||
! 3881: test ! -s conftest.err
! 3882: } && test -s conftest.$ac_objext; then
1.1 root 3883: ac_cv_header_stdc=yes
3884: else
3885: echo "$as_me: failed program was:" >&5
1.1.1.3 root 3886: sed 's/^/| /' conftest.$ac_ext >&5
3887:
1.1.1.6 ! root 3888: ac_cv_header_stdc=no
1.1 root 3889: fi
1.1.1.6 ! root 3890:
! 3891: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 3892:
3893: if test $ac_cv_header_stdc = yes; then
3894: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3895: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 3896: /* confdefs.h. */
3897: _ACEOF
3898: cat confdefs.h >>conftest.$ac_ext
3899: cat >>conftest.$ac_ext <<_ACEOF
3900: /* end confdefs.h. */
1.1 root 3901: #include <string.h>
3902:
3903: _ACEOF
3904: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.3 root 3905: $EGREP "memchr" >/dev/null 2>&1; then
1.1 root 3906: :
3907: else
3908: ac_cv_header_stdc=no
3909: fi
3910: rm -f conftest*
3911:
3912: fi
3913:
3914: if test $ac_cv_header_stdc = yes; then
3915: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3916: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 3917: /* confdefs.h. */
3918: _ACEOF
3919: cat confdefs.h >>conftest.$ac_ext
3920: cat >>conftest.$ac_ext <<_ACEOF
3921: /* end confdefs.h. */
1.1 root 3922: #include <stdlib.h>
3923:
3924: _ACEOF
3925: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.3 root 3926: $EGREP "free" >/dev/null 2>&1; then
1.1 root 3927: :
3928: else
3929: ac_cv_header_stdc=no
3930: fi
3931: rm -f conftest*
3932:
3933: fi
3934:
3935: if test $ac_cv_header_stdc = yes; then
3936: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3937: if test "$cross_compiling" = yes; then
3938: :
3939: else
3940: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 3941: /* confdefs.h. */
3942: _ACEOF
3943: cat confdefs.h >>conftest.$ac_ext
3944: cat >>conftest.$ac_ext <<_ACEOF
3945: /* end confdefs.h. */
1.1 root 3946: #include <ctype.h>
1.1.1.6 ! root 3947: #include <stdlib.h>
1.1 root 3948: #if ((' ' & 0x0FF) == 0x020)
3949: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3950: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3951: #else
1.1.1.3 root 3952: # define ISLOWER(c) \
3953: (('a' <= (c) && (c) <= 'i') \
3954: || ('j' <= (c) && (c) <= 'r') \
3955: || ('s' <= (c) && (c) <= 'z'))
1.1 root 3956: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3957: #endif
3958:
3959: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3960: int
3961: main ()
3962: {
3963: int i;
3964: for (i = 0; i < 256; i++)
3965: if (XOR (islower (i), ISLOWER (i))
1.1.1.3 root 3966: || toupper (i) != TOUPPER (i))
1.1.1.6 ! root 3967: return 2;
! 3968: return 0;
1.1 root 3969: }
3970: _ACEOF
3971: rm -f conftest$ac_exeext
1.1.1.6 ! root 3972: if { (ac_try="$ac_link"
! 3973: case "(($ac_try" in
! 3974: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3975: *) ac_try_echo=$ac_try;;
! 3976: esac
! 3977: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3978: (eval "$ac_link") 2>&5
1.1 root 3979: ac_status=$?
3980: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.6 ! root 3982: { (case "(($ac_try" in
! 3983: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3984: *) ac_try_echo=$ac_try;;
! 3985: esac
! 3986: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3987: (eval "$ac_try") 2>&5
1.1 root 3988: ac_status=$?
3989: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990: (exit $ac_status); }; }; then
3991: :
3992: else
3993: echo "$as_me: program exited with status $ac_status" >&5
3994: echo "$as_me: failed program was:" >&5
1.1.1.3 root 3995: sed 's/^/| /' conftest.$ac_ext >&5
3996:
1.1 root 3997: ( exit $ac_status )
3998: ac_cv_header_stdc=no
3999: fi
1.1.1.6 ! root 4000: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 root 4001: fi
1.1.1.6 ! root 4002:
! 4003:
1.1 root 4004: fi
4005: fi
1.1.1.6 ! root 4006: { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
! 4007: echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
1.1 root 4008: if test $ac_cv_header_stdc = yes; then
4009:
4010: cat >>confdefs.h <<\_ACEOF
4011: #define STDC_HEADERS 1
4012: _ACEOF
4013:
4014: fi
4015:
1.1.1.6 ! root 4016: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.1 root 4017:
4018:
4019:
4020:
4021:
1.1.1.6 ! root 4022:
! 4023:
! 4024:
! 4025:
! 4026: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
! 4027: inttypes.h stdint.h unistd.h
! 4028: do
! 4029: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 4030: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 4031: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 4032: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 4033: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4034: else
! 4035: cat >conftest.$ac_ext <<_ACEOF
! 4036: /* confdefs.h. */
! 4037: _ACEOF
! 4038: cat confdefs.h >>conftest.$ac_ext
! 4039: cat >>conftest.$ac_ext <<_ACEOF
! 4040: /* end confdefs.h. */
! 4041: $ac_includes_default
! 4042:
! 4043: #include <$ac_header>
! 4044: _ACEOF
! 4045: rm -f conftest.$ac_objext
! 4046: if { (ac_try="$ac_compile"
! 4047: case "(($ac_try" in
! 4048: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4049: *) ac_try_echo=$ac_try;;
! 4050: esac
! 4051: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4052: (eval "$ac_compile") 2>conftest.er1
! 4053: ac_status=$?
! 4054: grep -v '^ *+' conftest.er1 >conftest.err
! 4055: rm -f conftest.er1
! 4056: cat conftest.err >&5
! 4057: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4058: (exit $ac_status); } && {
! 4059: test -z "$ac_c_werror_flag" ||
! 4060: test ! -s conftest.err
! 4061: } && test -s conftest.$ac_objext; then
! 4062: eval "$as_ac_Header=yes"
! 4063: else
! 4064: echo "$as_me: failed program was:" >&5
! 4065: sed 's/^/| /' conftest.$ac_ext >&5
! 4066:
! 4067: eval "$as_ac_Header=no"
! 4068: fi
! 4069:
! 4070: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 4071: fi
! 4072: ac_res=`eval echo '${'$as_ac_Header'}'`
! 4073: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 4074: echo "${ECHO_T}$ac_res" >&6; }
! 4075: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 4076: cat >>confdefs.h <<_ACEOF
! 4077: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 4078: _ACEOF
! 4079:
! 4080: fi
! 4081:
! 4082: done
! 4083:
! 4084:
! 4085:
! 4086: { echo "$as_me:$LINENO: checking for a readline compatible library" >&5
! 4087: echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6; }
! 4088: if test "${vl_cv_lib_readline+set}" = set; then
! 4089: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4090: else
! 4091:
! 4092: ORIG_LIBS="$LIBS"
! 4093: for readline_lib in readline edit editline; do
! 4094: for termcap_lib in "" termcap curses ncurses; do
! 4095: if test -z "$termcap_lib"; then
! 4096: TRY_LIB="-l$readline_lib"
! 4097: else
! 4098: TRY_LIB="-l$readline_lib -l$termcap_lib"
! 4099: fi
! 4100: LIBS="$ORIG_LIBS $TRY_LIB"
! 4101: cat >conftest.$ac_ext <<_ACEOF
! 4102: /* confdefs.h. */
! 4103: _ACEOF
! 4104: cat confdefs.h >>conftest.$ac_ext
! 4105: cat >>conftest.$ac_ext <<_ACEOF
! 4106: /* end confdefs.h. */
! 4107:
! 4108: /* Override any GCC internal prototype to avoid an error.
! 4109: Use char because int might match the return type of a GCC
! 4110: builtin and then its argument prototype would still apply. */
! 4111: #ifdef __cplusplus
! 4112: extern "C"
! 4113: #endif
! 4114: char readline ();
! 4115: int
! 4116: main ()
! 4117: {
! 4118: return readline ();
! 4119: ;
! 4120: return 0;
! 4121: }
! 4122: _ACEOF
! 4123: rm -f conftest.$ac_objext conftest$ac_exeext
! 4124: if { (ac_try="$ac_link"
! 4125: case "(($ac_try" in
! 4126: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4127: *) ac_try_echo=$ac_try;;
! 4128: esac
! 4129: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4130: (eval "$ac_link") 2>conftest.er1
! 4131: ac_status=$?
! 4132: grep -v '^ *+' conftest.er1 >conftest.err
! 4133: rm -f conftest.er1
! 4134: cat conftest.err >&5
! 4135: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4136: (exit $ac_status); } && {
! 4137: test -z "$ac_c_werror_flag" ||
! 4138: test ! -s conftest.err
! 4139: } && test -s conftest$ac_exeext &&
! 4140: $as_test_x conftest$ac_exeext; then
! 4141: vl_cv_lib_readline="$TRY_LIB"
! 4142: else
! 4143: echo "$as_me: failed program was:" >&5
! 4144: sed 's/^/| /' conftest.$ac_ext >&5
! 4145:
! 4146:
! 4147: fi
! 4148:
! 4149: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 4150: conftest$ac_exeext conftest.$ac_ext
! 4151: if test -n "$vl_cv_lib_readline"; then
! 4152: break
! 4153: fi
! 4154: done
! 4155: if test -n "$vl_cv_lib_readline"; then
! 4156: break
! 4157: fi
! 4158: done
! 4159: if test -z "$vl_cv_lib_readline"; then
! 4160: vl_cv_lib_readline="no"
! 4161: LIBS="$ORIG_LIBS"
! 4162: fi
! 4163:
! 4164: fi
! 4165: { echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
! 4166: echo "${ECHO_T}$vl_cv_lib_readline" >&6; }
! 4167:
! 4168: if test "$vl_cv_lib_readline" != "no"; then
! 4169:
! 4170: cat >>confdefs.h <<\_ACEOF
! 4171: #define HAVE_LIBREADLINE 1
! 4172: _ACEOF
! 4173:
! 4174:
! 4175:
! 4176: for ac_header in readline.h readline/readline.h
! 4177: do
! 4178: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 4179: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 4180: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 4181: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 4182: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 4183: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4184: fi
! 4185: ac_res=`eval echo '${'$as_ac_Header'}'`
! 4186: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 4187: echo "${ECHO_T}$ac_res" >&6; }
! 4188: else
! 4189: # Is the header compilable?
! 4190: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 4191: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
! 4192: cat >conftest.$ac_ext <<_ACEOF
! 4193: /* confdefs.h. */
! 4194: _ACEOF
! 4195: cat confdefs.h >>conftest.$ac_ext
! 4196: cat >>conftest.$ac_ext <<_ACEOF
! 4197: /* end confdefs.h. */
! 4198: $ac_includes_default
! 4199: #include <$ac_header>
! 4200: _ACEOF
! 4201: rm -f conftest.$ac_objext
! 4202: if { (ac_try="$ac_compile"
! 4203: case "(($ac_try" in
! 4204: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4205: *) ac_try_echo=$ac_try;;
! 4206: esac
! 4207: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4208: (eval "$ac_compile") 2>conftest.er1
! 4209: ac_status=$?
! 4210: grep -v '^ *+' conftest.er1 >conftest.err
! 4211: rm -f conftest.er1
! 4212: cat conftest.err >&5
! 4213: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4214: (exit $ac_status); } && {
! 4215: test -z "$ac_c_werror_flag" ||
! 4216: test ! -s conftest.err
! 4217: } && test -s conftest.$ac_objext; then
! 4218: ac_header_compiler=yes
! 4219: else
! 4220: echo "$as_me: failed program was:" >&5
! 4221: sed 's/^/| /' conftest.$ac_ext >&5
! 4222:
! 4223: ac_header_compiler=no
! 4224: fi
! 4225:
! 4226: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 4227: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 4228: echo "${ECHO_T}$ac_header_compiler" >&6; }
! 4229:
! 4230: # Is the header present?
! 4231: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 4232: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
! 4233: cat >conftest.$ac_ext <<_ACEOF
! 4234: /* confdefs.h. */
! 4235: _ACEOF
! 4236: cat confdefs.h >>conftest.$ac_ext
! 4237: cat >>conftest.$ac_ext <<_ACEOF
! 4238: /* end confdefs.h. */
! 4239: #include <$ac_header>
! 4240: _ACEOF
! 4241: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 4242: case "(($ac_try" in
! 4243: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4244: *) ac_try_echo=$ac_try;;
! 4245: esac
! 4246: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4247: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 4248: ac_status=$?
! 4249: grep -v '^ *+' conftest.er1 >conftest.err
! 4250: rm -f conftest.er1
! 4251: cat conftest.err >&5
! 4252: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4253: (exit $ac_status); } >/dev/null && {
! 4254: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 4255: test ! -s conftest.err
! 4256: }; then
! 4257: ac_header_preproc=yes
! 4258: else
! 4259: echo "$as_me: failed program was:" >&5
! 4260: sed 's/^/| /' conftest.$ac_ext >&5
! 4261:
! 4262: ac_header_preproc=no
! 4263: fi
! 4264:
! 4265: rm -f conftest.err conftest.$ac_ext
! 4266: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 4267: echo "${ECHO_T}$ac_header_preproc" >&6; }
! 4268:
! 4269: # So? What about this header?
! 4270: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 4271: yes:no: )
! 4272: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 4273: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 4274: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 4275: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 4276: ac_header_preproc=yes
! 4277: ;;
! 4278: no:yes:* )
! 4279: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 4280: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 4281: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 4282: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 4283: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 4284: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 4285: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 4286: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 4287: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 4288: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 4289: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 4290: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 4291:
! 4292: ;;
! 4293: esac
! 4294: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 4295: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 4296: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 4297: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4298: else
! 4299: eval "$as_ac_Header=\$ac_header_preproc"
! 4300: fi
! 4301: ac_res=`eval echo '${'$as_ac_Header'}'`
! 4302: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 4303: echo "${ECHO_T}$ac_res" >&6; }
! 4304:
! 4305: fi
! 4306: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 4307: cat >>confdefs.h <<_ACEOF
! 4308: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 4309: _ACEOF
! 4310:
! 4311: fi
! 4312:
! 4313: done
! 4314:
! 4315: { echo "$as_me:$LINENO: checking whether readline supports history" >&5
! 4316: echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6; }
! 4317: if test "${vl_cv_lib_readline_history+set}" = set; then
! 4318: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4319: else
! 4320:
! 4321: vl_cv_lib_readline_history="no"
! 4322: cat >conftest.$ac_ext <<_ACEOF
! 4323: /* confdefs.h. */
! 4324: _ACEOF
! 4325: cat confdefs.h >>conftest.$ac_ext
! 4326: cat >>conftest.$ac_ext <<_ACEOF
! 4327: /* end confdefs.h. */
! 4328:
! 4329: /* Override any GCC internal prototype to avoid an error.
! 4330: Use char because int might match the return type of a GCC
! 4331: builtin and then its argument prototype would still apply. */
! 4332: #ifdef __cplusplus
! 4333: extern "C"
! 4334: #endif
! 4335: char add_history ();
! 4336: int
! 4337: main ()
! 4338: {
! 4339: return add_history ();
! 4340: ;
! 4341: return 0;
! 4342: }
! 4343: _ACEOF
! 4344: rm -f conftest.$ac_objext conftest$ac_exeext
! 4345: if { (ac_try="$ac_link"
! 4346: case "(($ac_try" in
! 4347: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4348: *) ac_try_echo=$ac_try;;
! 4349: esac
! 4350: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4351: (eval "$ac_link") 2>conftest.er1
! 4352: ac_status=$?
! 4353: grep -v '^ *+' conftest.er1 >conftest.err
! 4354: rm -f conftest.er1
! 4355: cat conftest.err >&5
! 4356: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4357: (exit $ac_status); } && {
! 4358: test -z "$ac_c_werror_flag" ||
! 4359: test ! -s conftest.err
! 4360: } && test -s conftest$ac_exeext &&
! 4361: $as_test_x conftest$ac_exeext; then
! 4362: vl_cv_lib_readline_history="yes"
! 4363: else
! 4364: echo "$as_me: failed program was:" >&5
! 4365: sed 's/^/| /' conftest.$ac_ext >&5
! 4366:
! 4367:
! 4368: fi
! 4369:
! 4370: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 4371: conftest$ac_exeext conftest.$ac_ext
! 4372:
! 4373: fi
! 4374: { echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
! 4375: echo "${ECHO_T}$vl_cv_lib_readline_history" >&6; }
! 4376: if test "$vl_cv_lib_readline_history" = "yes"; then
! 4377:
! 4378: cat >>confdefs.h <<\_ACEOF
! 4379: #define HAVE_READLINE_HISTORY 1
! 4380: _ACEOF
! 4381:
! 4382:
! 4383:
! 4384: for ac_header in history.h readline/history.h
! 4385: do
! 4386: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 4387: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 4388: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 4389: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 4390: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 4391: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4392: fi
! 4393: ac_res=`eval echo '${'$as_ac_Header'}'`
! 4394: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 4395: echo "${ECHO_T}$ac_res" >&6; }
! 4396: else
! 4397: # Is the header compilable?
! 4398: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 4399: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
! 4400: cat >conftest.$ac_ext <<_ACEOF
! 4401: /* confdefs.h. */
! 4402: _ACEOF
! 4403: cat confdefs.h >>conftest.$ac_ext
! 4404: cat >>conftest.$ac_ext <<_ACEOF
! 4405: /* end confdefs.h. */
! 4406: $ac_includes_default
! 4407: #include <$ac_header>
! 4408: _ACEOF
! 4409: rm -f conftest.$ac_objext
! 4410: if { (ac_try="$ac_compile"
! 4411: case "(($ac_try" in
! 4412: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4413: *) ac_try_echo=$ac_try;;
! 4414: esac
! 4415: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4416: (eval "$ac_compile") 2>conftest.er1
! 4417: ac_status=$?
! 4418: grep -v '^ *+' conftest.er1 >conftest.err
! 4419: rm -f conftest.er1
! 4420: cat conftest.err >&5
! 4421: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4422: (exit $ac_status); } && {
! 4423: test -z "$ac_c_werror_flag" ||
! 4424: test ! -s conftest.err
! 4425: } && test -s conftest.$ac_objext; then
! 4426: ac_header_compiler=yes
! 4427: else
! 4428: echo "$as_me: failed program was:" >&5
! 4429: sed 's/^/| /' conftest.$ac_ext >&5
! 4430:
! 4431: ac_header_compiler=no
! 4432: fi
! 4433:
! 4434: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 4435: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 4436: echo "${ECHO_T}$ac_header_compiler" >&6; }
! 4437:
! 4438: # Is the header present?
! 4439: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 4440: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
! 4441: cat >conftest.$ac_ext <<_ACEOF
! 4442: /* confdefs.h. */
! 4443: _ACEOF
! 4444: cat confdefs.h >>conftest.$ac_ext
! 4445: cat >>conftest.$ac_ext <<_ACEOF
! 4446: /* end confdefs.h. */
! 4447: #include <$ac_header>
! 4448: _ACEOF
! 4449: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 4450: case "(($ac_try" in
! 4451: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4452: *) ac_try_echo=$ac_try;;
! 4453: esac
! 4454: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4455: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 4456: ac_status=$?
! 4457: grep -v '^ *+' conftest.er1 >conftest.err
! 4458: rm -f conftest.er1
! 4459: cat conftest.err >&5
! 4460: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4461: (exit $ac_status); } >/dev/null && {
! 4462: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 4463: test ! -s conftest.err
! 4464: }; then
! 4465: ac_header_preproc=yes
! 4466: else
! 4467: echo "$as_me: failed program was:" >&5
! 4468: sed 's/^/| /' conftest.$ac_ext >&5
! 4469:
! 4470: ac_header_preproc=no
! 4471: fi
! 4472:
! 4473: rm -f conftest.err conftest.$ac_ext
! 4474: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 4475: echo "${ECHO_T}$ac_header_preproc" >&6; }
! 4476:
! 4477: # So? What about this header?
! 4478: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 4479: yes:no: )
! 4480: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 4481: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 4482: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 4483: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 4484: ac_header_preproc=yes
! 4485: ;;
! 4486: no:yes:* )
! 4487: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 4488: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 4489: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 4490: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 4491: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 4492: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 4493: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 4494: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 4495: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 4496: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 4497: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 4498: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 4499:
! 4500: ;;
! 4501: esac
! 4502: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 4503: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 4504: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 4505: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4506: else
! 4507: eval "$as_ac_Header=\$ac_header_preproc"
! 4508: fi
! 4509: ac_res=`eval echo '${'$as_ac_Header'}'`
! 4510: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 4511: echo "${ECHO_T}$ac_res" >&6; }
! 4512:
! 4513: fi
! 4514: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 4515: cat >>confdefs.h <<_ACEOF
! 4516: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 4517: _ACEOF
! 4518:
! 4519: fi
! 4520:
! 4521: done
! 4522:
! 4523: fi
! 4524: fi
! 4525:
! 4526:
! 4527: no_x=yes
! 4528: # Extract the first word of "pkg-config", so it can be a program name with args.
! 4529: set dummy pkg-config; ac_word=$2
! 4530: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 4531: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 4532: if test "${ac_cv_prog_HAVE_PKG_CONFIG+set}" = set; then
! 4533: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4534: else
! 4535: if test -n "$HAVE_PKG_CONFIG"; then
! 4536: ac_cv_prog_HAVE_PKG_CONFIG="$HAVE_PKG_CONFIG" # Let the user override the test.
! 4537: else
! 4538: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 4539: for as_dir in $PATH
! 4540: do
! 4541: IFS=$as_save_IFS
! 4542: test -z "$as_dir" && as_dir=.
! 4543: for ac_exec_ext in '' $ac_executable_extensions; do
! 4544: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 4545: ac_cv_prog_HAVE_PKG_CONFIG="yes"
! 4546: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 4547: break 2
! 4548: fi
! 4549: done
! 4550: done
! 4551: IFS=$as_save_IFS
! 4552:
! 4553: fi
! 4554: fi
! 4555: HAVE_PKG_CONFIG=$ac_cv_prog_HAVE_PKG_CONFIG
! 4556: if test -n "$HAVE_PKG_CONFIG"; then
! 4557: { echo "$as_me:$LINENO: result: $HAVE_PKG_CONFIG" >&5
! 4558: echo "${ECHO_T}$HAVE_PKG_CONFIG" >&6; }
! 4559: else
! 4560: { echo "$as_me:$LINENO: result: no" >&5
! 4561: echo "${ECHO_T}no" >&6; }
! 4562: fi
! 4563:
! 4564:
! 4565: if test "x${HAVE_PKG_CONFIG}" = "xyes"; then
! 4566:
! 4567:
! 4568: if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
! 4569: if test -n "$ac_tool_prefix"; then
! 4570: # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
! 4571: set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
! 4572: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 4573: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 4574: if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
! 4575: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4576: else
! 4577: case $PKG_CONFIG in
! 4578: [\\/]* | ?:[\\/]*)
! 4579: ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
! 4580: ;;
! 4581: *)
! 4582: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 4583: for as_dir in $PATH
! 4584: do
! 4585: IFS=$as_save_IFS
! 4586: test -z "$as_dir" && as_dir=.
! 4587: for ac_exec_ext in '' $ac_executable_extensions; do
! 4588: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 4589: ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
! 4590: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 4591: break 2
! 4592: fi
! 4593: done
! 4594: done
! 4595: IFS=$as_save_IFS
! 4596:
! 4597: ;;
! 4598: esac
! 4599: fi
! 4600: PKG_CONFIG=$ac_cv_path_PKG_CONFIG
! 4601: if test -n "$PKG_CONFIG"; then
! 4602: { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
! 4603: echo "${ECHO_T}$PKG_CONFIG" >&6; }
! 4604: else
! 4605: { echo "$as_me:$LINENO: result: no" >&5
! 4606: echo "${ECHO_T}no" >&6; }
! 4607: fi
! 4608:
! 4609:
! 4610: fi
! 4611: if test -z "$ac_cv_path_PKG_CONFIG"; then
! 4612: ac_pt_PKG_CONFIG=$PKG_CONFIG
! 4613: # Extract the first word of "pkg-config", so it can be a program name with args.
! 4614: set dummy pkg-config; ac_word=$2
! 4615: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 4616: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 4617: if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
! 4618: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4619: else
! 4620: case $ac_pt_PKG_CONFIG in
! 4621: [\\/]* | ?:[\\/]*)
! 4622: ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
! 4623: ;;
! 4624: *)
! 4625: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 4626: for as_dir in $PATH
! 4627: do
! 4628: IFS=$as_save_IFS
! 4629: test -z "$as_dir" && as_dir=.
! 4630: for ac_exec_ext in '' $ac_executable_extensions; do
! 4631: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 4632: ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
! 4633: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 4634: break 2
! 4635: fi
! 4636: done
! 4637: done
! 4638: IFS=$as_save_IFS
! 4639:
! 4640: ;;
! 4641: esac
! 4642: fi
! 4643: ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
! 4644: if test -n "$ac_pt_PKG_CONFIG"; then
! 4645: { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
! 4646: echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
! 4647: else
! 4648: { echo "$as_me:$LINENO: result: no" >&5
! 4649: echo "${ECHO_T}no" >&6; }
! 4650: fi
! 4651:
! 4652: if test "x$ac_pt_PKG_CONFIG" = x; then
! 4653: PKG_CONFIG=""
! 4654: else
! 4655: case $cross_compiling:$ac_tool_warned in
! 4656: yes:)
! 4657: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 4658: whose name does not start with the host triplet. If you think this
! 4659: configuration is useful to you, please write to [email protected]." >&5
! 4660: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 4661: whose name does not start with the host triplet. If you think this
! 4662: configuration is useful to you, please write to [email protected]." >&2;}
! 4663: ac_tool_warned=yes ;;
! 4664: esac
! 4665: PKG_CONFIG=$ac_pt_PKG_CONFIG
! 4666: fi
! 4667: else
! 4668: PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
! 4669: fi
! 4670:
! 4671: fi
! 4672: if test -n "$PKG_CONFIG"; then
! 4673: _pkg_min_version=0.9.0
! 4674: { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
! 4675: echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
! 4676: if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
! 4677: { echo "$as_me:$LINENO: result: yes" >&5
! 4678: echo "${ECHO_T}yes" >&6; }
! 4679: else
! 4680: { echo "$as_me:$LINENO: result: no" >&5
! 4681: echo "${ECHO_T}no" >&6; }
! 4682: PKG_CONFIG=""
! 4683: fi
! 4684:
! 4685: fi
! 4686:
! 4687: pkg_failed=no
! 4688: { echo "$as_me:$LINENO: checking for X" >&5
! 4689: echo $ECHO_N "checking for X... $ECHO_C" >&6; }
! 4690:
! 4691: if test -n "$PKG_CONFIG"; then
! 4692: if test -n "$X_CFLAGS"; then
! 4693: pkg_cv_X_CFLAGS="$X_CFLAGS"
! 4694: else
! 4695: if test -n "$PKG_CONFIG" && \
! 4696: { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
! 4697: ($PKG_CONFIG --exists --print-errors "x11") 2>&5
! 4698: ac_status=$?
! 4699: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4700: (exit $ac_status); }; then
! 4701: pkg_cv_X_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
! 4702: else
! 4703: pkg_failed=yes
! 4704: fi
! 4705: fi
! 4706: else
! 4707: pkg_failed=untried
! 4708: fi
! 4709: if test -n "$PKG_CONFIG"; then
! 4710: if test -n "$X_LIBS"; then
! 4711: pkg_cv_X_LIBS="$X_LIBS"
! 4712: else
! 4713: if test -n "$PKG_CONFIG" && \
! 4714: { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
! 4715: ($PKG_CONFIG --exists --print-errors "x11") 2>&5
! 4716: ac_status=$?
! 4717: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4718: (exit $ac_status); }; then
! 4719: pkg_cv_X_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
! 4720: else
! 4721: pkg_failed=yes
! 4722: fi
! 4723: fi
! 4724: else
! 4725: pkg_failed=untried
! 4726: fi
! 4727:
! 4728:
! 4729:
! 4730: if test $pkg_failed = yes; then
! 4731:
! 4732: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
! 4733: _pkg_short_errors_supported=yes
! 4734: else
! 4735: _pkg_short_errors_supported=no
! 4736: fi
! 4737: if test $_pkg_short_errors_supported = yes; then
! 4738: X_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11"`
! 4739: else
! 4740: X_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11"`
! 4741: fi
! 4742: # Put the nasty error message in config.log where it belongs
! 4743: echo "$X_PKG_ERRORS" >&5
! 4744:
! 4745: { echo "$as_me:$LINENO: result: no" >&5
! 4746: echo "${ECHO_T}no" >&6; }
! 4747: no_x=yes
! 4748: elif test $pkg_failed = untried; then
! 4749: no_x=yes
! 4750: else
! 4751: X_CFLAGS=$pkg_cv_X_CFLAGS
! 4752: X_LIBS=$pkg_cv_X_LIBS
! 4753: { echo "$as_me:$LINENO: result: yes" >&5
! 4754: echo "${ECHO_T}yes" >&6; }
! 4755: no_x=no
! 4756: fi
! 4757: fi
! 4758: if test "x${no_x}" = "xyes"; then
! 4759: { echo "$as_me:$LINENO: checking for X" >&5
! 4760: echo $ECHO_N "checking for X... $ECHO_C" >&6; }
! 4761:
! 4762:
! 4763: # Check whether --with-x was given.
! 4764: if test "${with_x+set}" = set; then
! 4765: withval=$with_x;
! 4766: fi
! 4767:
! 4768: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
! 4769: if test "x$with_x" = xno; then
! 4770: # The user explicitly disabled X.
! 4771: have_x=disabled
! 4772: else
! 4773: case $x_includes,$x_libraries in #(
! 4774: *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
! 4775: echo "$as_me: error: Cannot use X directory names containing '" >&2;}
! 4776: { (exit 1); exit 1; }; };; #(
! 4777: *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
! 4778: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4779: else
! 4780: # One or both of the vars are not set, and there is no cached value.
! 4781: ac_x_includes=no ac_x_libraries=no
! 4782: rm -f -r conftest.dir
! 4783: if mkdir conftest.dir; then
! 4784: cd conftest.dir
! 4785: cat >Imakefile <<'_ACEOF'
! 4786: incroot:
! 4787: @echo incroot='${INCROOT}'
! 4788: usrlibdir:
! 4789: @echo usrlibdir='${USRLIBDIR}'
! 4790: libdir:
! 4791: @echo libdir='${LIBDIR}'
! 4792: _ACEOF
! 4793: if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
! 4794: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
! 4795: for ac_var in incroot usrlibdir libdir; do
! 4796: eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
! 4797: done
! 4798: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
! 4799: for ac_extension in a so sl; do
! 4800: if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
! 4801: test -f "$ac_im_libdir/libX11.$ac_extension"; then
! 4802: ac_im_usrlibdir=$ac_im_libdir; break
! 4803: fi
! 4804: done
! 4805: # Screen out bogus values from the imake configuration. They are
! 4806: # bogus both because they are the default anyway, and because
! 4807: # using them would break gcc on systems where it needs fixed includes.
! 4808: case $ac_im_incroot in
! 4809: /usr/include) ac_x_includes= ;;
! 4810: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
! 4811: esac
! 4812: case $ac_im_usrlibdir in
! 4813: /usr/lib | /lib) ;;
! 4814: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
! 4815: esac
! 4816: fi
! 4817: cd ..
! 4818: rm -f -r conftest.dir
! 4819: fi
! 4820:
! 4821: # Standard set of common directories for X headers.
! 4822: # Check X11 before X11Rn because it is often a symlink to the current release.
! 4823: ac_x_header_dirs='
! 4824: /usr/X11/include
! 4825: /usr/X11R6/include
! 4826: /usr/X11R5/include
! 4827: /usr/X11R4/include
! 4828:
! 4829: /usr/include/X11
! 4830: /usr/include/X11R6
! 4831: /usr/include/X11R5
! 4832: /usr/include/X11R4
! 4833:
! 4834: /usr/local/X11/include
! 4835: /usr/local/X11R6/include
! 4836: /usr/local/X11R5/include
! 4837: /usr/local/X11R4/include
! 4838:
! 4839: /usr/local/include/X11
! 4840: /usr/local/include/X11R6
! 4841: /usr/local/include/X11R5
! 4842: /usr/local/include/X11R4
! 4843:
! 4844: /usr/X386/include
! 4845: /usr/x386/include
! 4846: /usr/XFree86/include/X11
! 4847:
! 4848: /usr/include
! 4849: /usr/local/include
! 4850: /usr/unsupported/include
! 4851: /usr/athena/include
! 4852: /usr/local/x11r5/include
! 4853: /usr/lpp/Xamples/include
! 4854:
! 4855: /usr/openwin/include
! 4856: /usr/openwin/share/include'
! 4857:
! 4858: if test "$ac_x_includes" = no; then
! 4859: # Guess where to find include files, by looking for Xlib.h.
! 4860: # First, try using that file with no special directory specified.
! 4861: cat >conftest.$ac_ext <<_ACEOF
! 4862: /* confdefs.h. */
! 4863: _ACEOF
! 4864: cat confdefs.h >>conftest.$ac_ext
! 4865: cat >>conftest.$ac_ext <<_ACEOF
! 4866: /* end confdefs.h. */
! 4867: #include <X11/Xlib.h>
! 4868: _ACEOF
! 4869: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 4870: case "(($ac_try" in
! 4871: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4872: *) ac_try_echo=$ac_try;;
! 4873: esac
! 4874: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4875: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 4876: ac_status=$?
! 4877: grep -v '^ *+' conftest.er1 >conftest.err
! 4878: rm -f conftest.er1
! 4879: cat conftest.err >&5
! 4880: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4881: (exit $ac_status); } >/dev/null && {
! 4882: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 4883: test ! -s conftest.err
! 4884: }; then
! 4885: # We can compile using X headers with no special include directory.
! 4886: ac_x_includes=
! 4887: else
! 4888: echo "$as_me: failed program was:" >&5
! 4889: sed 's/^/| /' conftest.$ac_ext >&5
! 4890:
! 4891: for ac_dir in $ac_x_header_dirs; do
! 4892: if test -r "$ac_dir/X11/Xlib.h"; then
! 4893: ac_x_includes=$ac_dir
! 4894: break
! 4895: fi
! 4896: done
! 4897: fi
! 4898:
! 4899: rm -f conftest.err conftest.$ac_ext
! 4900: fi # $ac_x_includes = no
! 4901:
! 4902: if test "$ac_x_libraries" = no; then
! 4903: # Check for the libraries.
! 4904: # See if we find them without any special options.
! 4905: # Don't add to $LIBS permanently.
! 4906: ac_save_LIBS=$LIBS
! 4907: LIBS="-lX11 $LIBS"
! 4908: cat >conftest.$ac_ext <<_ACEOF
! 4909: /* confdefs.h. */
! 4910: _ACEOF
! 4911: cat confdefs.h >>conftest.$ac_ext
! 4912: cat >>conftest.$ac_ext <<_ACEOF
! 4913: /* end confdefs.h. */
! 4914: #include <X11/Xlib.h>
! 4915: int
! 4916: main ()
! 4917: {
! 4918: XrmInitialize ()
! 4919: ;
! 4920: return 0;
! 4921: }
! 4922: _ACEOF
! 4923: rm -f conftest.$ac_objext conftest$ac_exeext
! 4924: if { (ac_try="$ac_link"
! 4925: case "(($ac_try" in
! 4926: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4927: *) ac_try_echo=$ac_try;;
! 4928: esac
! 4929: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4930: (eval "$ac_link") 2>conftest.er1
! 4931: ac_status=$?
! 4932: grep -v '^ *+' conftest.er1 >conftest.err
! 4933: rm -f conftest.er1
! 4934: cat conftest.err >&5
! 4935: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4936: (exit $ac_status); } && {
! 4937: test -z "$ac_c_werror_flag" ||
! 4938: test ! -s conftest.err
! 4939: } && test -s conftest$ac_exeext &&
! 4940: $as_test_x conftest$ac_exeext; then
! 4941: LIBS=$ac_save_LIBS
! 4942: # We can link X programs with no special library path.
! 4943: ac_x_libraries=
! 4944: else
! 4945: echo "$as_me: failed program was:" >&5
! 4946: sed 's/^/| /' conftest.$ac_ext >&5
! 4947:
! 4948: LIBS=$ac_save_LIBS
! 4949: for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
! 4950: do
! 4951: # Don't even attempt the hair of trying to link an X program!
! 4952: for ac_extension in a so sl; do
! 4953: if test -r "$ac_dir/libX11.$ac_extension"; then
! 4954: ac_x_libraries=$ac_dir
! 4955: break 2
! 4956: fi
! 4957: done
! 4958: done
! 4959: fi
! 4960:
! 4961: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 4962: conftest$ac_exeext conftest.$ac_ext
! 4963: fi # $ac_x_libraries = no
! 4964:
! 4965: case $ac_x_includes,$ac_x_libraries in #(
! 4966: no,* | *,no | *\'*)
! 4967: # Didn't find X, or a directory has "'" in its name.
! 4968: ac_cv_have_x="have_x=no";; #(
! 4969: *)
! 4970: # Record where we found X for the cache.
! 4971: ac_cv_have_x="have_x=yes\
! 4972: ac_x_includes='$ac_x_includes'\
! 4973: ac_x_libraries='$ac_x_libraries'"
! 4974: esac
! 4975: fi
! 4976: ;; #(
! 4977: *) have_x=yes;;
! 4978: esac
! 4979: eval "$ac_cv_have_x"
! 4980: fi # $with_x != no
! 4981:
! 4982: if test "$have_x" != yes; then
! 4983: { echo "$as_me:$LINENO: result: $have_x" >&5
! 4984: echo "${ECHO_T}$have_x" >&6; }
! 4985: no_x=yes
! 4986: else
! 4987: # If each of the values was on the command line, it overrides each guess.
! 4988: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
! 4989: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
! 4990: # Update the cache value to reflect the command line values.
! 4991: ac_cv_have_x="have_x=yes\
! 4992: ac_x_includes='$x_includes'\
! 4993: ac_x_libraries='$x_libraries'"
! 4994: { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
! 4995: echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
! 4996: fi
! 4997:
! 4998: if test "$no_x" = yes; then
! 4999: # Not all programs may use this symbol, but it does not hurt to define it.
! 5000:
! 5001: cat >>confdefs.h <<\_ACEOF
! 5002: #define X_DISPLAY_MISSING 1
! 5003: _ACEOF
! 5004:
! 5005: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
! 5006: else
! 5007: if test -n "$x_includes"; then
! 5008: X_CFLAGS="$X_CFLAGS -I$x_includes"
! 5009: fi
! 5010:
! 5011: # It would also be nice to do this for all -L options, not just this one.
! 5012: if test -n "$x_libraries"; then
! 5013: X_LIBS="$X_LIBS -L$x_libraries"
! 5014: # For Solaris; some versions of Sun CC require a space after -R and
! 5015: # others require no space. Words are not sufficient . . . .
! 5016: { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
! 5017: echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
! 5018: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
! 5019: ac_xsave_c_werror_flag=$ac_c_werror_flag
! 5020: ac_c_werror_flag=yes
! 5021: cat >conftest.$ac_ext <<_ACEOF
! 5022: /* confdefs.h. */
! 5023: _ACEOF
! 5024: cat confdefs.h >>conftest.$ac_ext
! 5025: cat >>conftest.$ac_ext <<_ACEOF
! 5026: /* end confdefs.h. */
! 5027:
! 5028: int
! 5029: main ()
! 5030: {
! 5031:
! 5032: ;
! 5033: return 0;
! 5034: }
! 5035: _ACEOF
! 5036: rm -f conftest.$ac_objext conftest$ac_exeext
! 5037: if { (ac_try="$ac_link"
! 5038: case "(($ac_try" in
! 5039: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5040: *) ac_try_echo=$ac_try;;
! 5041: esac
! 5042: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5043: (eval "$ac_link") 2>conftest.er1
! 5044: ac_status=$?
! 5045: grep -v '^ *+' conftest.er1 >conftest.err
! 5046: rm -f conftest.er1
! 5047: cat conftest.err >&5
! 5048: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5049: (exit $ac_status); } && {
! 5050: test -z "$ac_c_werror_flag" ||
! 5051: test ! -s conftest.err
! 5052: } && test -s conftest$ac_exeext &&
! 5053: $as_test_x conftest$ac_exeext; then
! 5054: { echo "$as_me:$LINENO: result: no" >&5
! 5055: echo "${ECHO_T}no" >&6; }
! 5056: X_LIBS="$X_LIBS -R$x_libraries"
! 5057: else
! 5058: echo "$as_me: failed program was:" >&5
! 5059: sed 's/^/| /' conftest.$ac_ext >&5
! 5060:
! 5061: LIBS="$ac_xsave_LIBS -R $x_libraries"
! 5062: cat >conftest.$ac_ext <<_ACEOF
! 5063: /* confdefs.h. */
! 5064: _ACEOF
! 5065: cat confdefs.h >>conftest.$ac_ext
! 5066: cat >>conftest.$ac_ext <<_ACEOF
! 5067: /* end confdefs.h. */
! 5068:
! 5069: int
! 5070: main ()
! 5071: {
! 5072:
! 5073: ;
! 5074: return 0;
! 5075: }
! 5076: _ACEOF
! 5077: rm -f conftest.$ac_objext conftest$ac_exeext
! 5078: if { (ac_try="$ac_link"
! 5079: case "(($ac_try" in
! 5080: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5081: *) ac_try_echo=$ac_try;;
! 5082: esac
! 5083: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5084: (eval "$ac_link") 2>conftest.er1
! 5085: ac_status=$?
! 5086: grep -v '^ *+' conftest.er1 >conftest.err
! 5087: rm -f conftest.er1
! 5088: cat conftest.err >&5
! 5089: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5090: (exit $ac_status); } && {
! 5091: test -z "$ac_c_werror_flag" ||
! 5092: test ! -s conftest.err
! 5093: } && test -s conftest$ac_exeext &&
! 5094: $as_test_x conftest$ac_exeext; then
! 5095: { echo "$as_me:$LINENO: result: yes" >&5
! 5096: echo "${ECHO_T}yes" >&6; }
! 5097: X_LIBS="$X_LIBS -R $x_libraries"
! 5098: else
! 5099: echo "$as_me: failed program was:" >&5
! 5100: sed 's/^/| /' conftest.$ac_ext >&5
! 5101:
! 5102: { echo "$as_me:$LINENO: result: neither works" >&5
! 5103: echo "${ECHO_T}neither works" >&6; }
! 5104: fi
! 5105:
! 5106: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 5107: conftest$ac_exeext conftest.$ac_ext
! 5108: fi
! 5109:
! 5110: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 5111: conftest$ac_exeext conftest.$ac_ext
! 5112: ac_c_werror_flag=$ac_xsave_c_werror_flag
! 5113: LIBS=$ac_xsave_LIBS
! 5114: fi
! 5115:
! 5116: # Check for system-dependent libraries X programs must link with.
! 5117: # Do this before checking for the system-independent R6 libraries
! 5118: # (-lICE), since we may need -lsocket or whatever for X linking.
! 5119:
! 5120: if test "$ISC" = yes; then
! 5121: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
! 5122: else
! 5123: # Martyn Johnson says this is needed for Ultrix, if the X
! 5124: # libraries were built with DECnet support. And Karl Berry says
! 5125: # the Alpha needs dnet_stub (dnet does not exist).
! 5126: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
! 5127: cat >conftest.$ac_ext <<_ACEOF
! 5128: /* confdefs.h. */
! 5129: _ACEOF
! 5130: cat confdefs.h >>conftest.$ac_ext
! 5131: cat >>conftest.$ac_ext <<_ACEOF
! 5132: /* end confdefs.h. */
! 5133:
! 5134: /* Override any GCC internal prototype to avoid an error.
! 5135: Use char because int might match the return type of a GCC
! 5136: builtin and then its argument prototype would still apply. */
! 5137: #ifdef __cplusplus
! 5138: extern "C"
! 5139: #endif
! 5140: char XOpenDisplay ();
! 5141: int
! 5142: main ()
! 5143: {
! 5144: return XOpenDisplay ();
! 5145: ;
! 5146: return 0;
! 5147: }
! 5148: _ACEOF
! 5149: rm -f conftest.$ac_objext conftest$ac_exeext
! 5150: if { (ac_try="$ac_link"
! 5151: case "(($ac_try" in
! 5152: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5153: *) ac_try_echo=$ac_try;;
! 5154: esac
! 5155: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5156: (eval "$ac_link") 2>conftest.er1
! 5157: ac_status=$?
! 5158: grep -v '^ *+' conftest.er1 >conftest.err
! 5159: rm -f conftest.er1
! 5160: cat conftest.err >&5
! 5161: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5162: (exit $ac_status); } && {
! 5163: test -z "$ac_c_werror_flag" ||
! 5164: test ! -s conftest.err
! 5165: } && test -s conftest$ac_exeext &&
! 5166: $as_test_x conftest$ac_exeext; then
! 5167: :
! 5168: else
! 5169: echo "$as_me: failed program was:" >&5
! 5170: sed 's/^/| /' conftest.$ac_ext >&5
! 5171:
! 5172: { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
! 5173: echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
! 5174: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
! 5175: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5176: else
! 5177: ac_check_lib_save_LIBS=$LIBS
! 5178: LIBS="-ldnet $LIBS"
! 5179: cat >conftest.$ac_ext <<_ACEOF
! 5180: /* confdefs.h. */
! 5181: _ACEOF
! 5182: cat confdefs.h >>conftest.$ac_ext
! 5183: cat >>conftest.$ac_ext <<_ACEOF
! 5184: /* end confdefs.h. */
! 5185:
! 5186: /* Override any GCC internal prototype to avoid an error.
! 5187: Use char because int might match the return type of a GCC
! 5188: builtin and then its argument prototype would still apply. */
! 5189: #ifdef __cplusplus
! 5190: extern "C"
! 5191: #endif
! 5192: char dnet_ntoa ();
! 5193: int
! 5194: main ()
! 5195: {
! 5196: return dnet_ntoa ();
! 5197: ;
! 5198: return 0;
! 5199: }
! 5200: _ACEOF
! 5201: rm -f conftest.$ac_objext conftest$ac_exeext
! 5202: if { (ac_try="$ac_link"
! 5203: case "(($ac_try" in
! 5204: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5205: *) ac_try_echo=$ac_try;;
! 5206: esac
! 5207: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5208: (eval "$ac_link") 2>conftest.er1
! 5209: ac_status=$?
! 5210: grep -v '^ *+' conftest.er1 >conftest.err
! 5211: rm -f conftest.er1
! 5212: cat conftest.err >&5
! 5213: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5214: (exit $ac_status); } && {
! 5215: test -z "$ac_c_werror_flag" ||
! 5216: test ! -s conftest.err
! 5217: } && test -s conftest$ac_exeext &&
! 5218: $as_test_x conftest$ac_exeext; then
! 5219: ac_cv_lib_dnet_dnet_ntoa=yes
! 5220: else
! 5221: echo "$as_me: failed program was:" >&5
! 5222: sed 's/^/| /' conftest.$ac_ext >&5
! 5223:
! 5224: ac_cv_lib_dnet_dnet_ntoa=no
! 5225: fi
! 5226:
! 5227: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 5228: conftest$ac_exeext conftest.$ac_ext
! 5229: LIBS=$ac_check_lib_save_LIBS
! 5230: fi
! 5231: { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
! 5232: echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
! 5233: if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
! 5234: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
! 5235: fi
! 5236:
! 5237: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
! 5238: { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
! 5239: echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
! 5240: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
! 5241: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5242: else
! 5243: ac_check_lib_save_LIBS=$LIBS
! 5244: LIBS="-ldnet_stub $LIBS"
! 5245: cat >conftest.$ac_ext <<_ACEOF
! 5246: /* confdefs.h. */
! 5247: _ACEOF
! 5248: cat confdefs.h >>conftest.$ac_ext
! 5249: cat >>conftest.$ac_ext <<_ACEOF
! 5250: /* end confdefs.h. */
! 5251:
! 5252: /* Override any GCC internal prototype to avoid an error.
! 5253: Use char because int might match the return type of a GCC
! 5254: builtin and then its argument prototype would still apply. */
! 5255: #ifdef __cplusplus
! 5256: extern "C"
! 5257: #endif
! 5258: char dnet_ntoa ();
! 5259: int
! 5260: main ()
! 5261: {
! 5262: return dnet_ntoa ();
! 5263: ;
! 5264: return 0;
! 5265: }
! 5266: _ACEOF
! 5267: rm -f conftest.$ac_objext conftest$ac_exeext
! 5268: if { (ac_try="$ac_link"
! 5269: case "(($ac_try" in
! 5270: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5271: *) ac_try_echo=$ac_try;;
! 5272: esac
! 5273: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5274: (eval "$ac_link") 2>conftest.er1
! 5275: ac_status=$?
! 5276: grep -v '^ *+' conftest.er1 >conftest.err
! 5277: rm -f conftest.er1
! 5278: cat conftest.err >&5
! 5279: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5280: (exit $ac_status); } && {
! 5281: test -z "$ac_c_werror_flag" ||
! 5282: test ! -s conftest.err
! 5283: } && test -s conftest$ac_exeext &&
! 5284: $as_test_x conftest$ac_exeext; then
! 5285: ac_cv_lib_dnet_stub_dnet_ntoa=yes
! 5286: else
! 5287: echo "$as_me: failed program was:" >&5
! 5288: sed 's/^/| /' conftest.$ac_ext >&5
! 5289:
! 5290: ac_cv_lib_dnet_stub_dnet_ntoa=no
! 5291: fi
! 5292:
! 5293: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 5294: conftest$ac_exeext conftest.$ac_ext
! 5295: LIBS=$ac_check_lib_save_LIBS
! 5296: fi
! 5297: { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
! 5298: echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
! 5299: if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
! 5300: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
! 5301: fi
! 5302:
! 5303: fi
! 5304: fi
! 5305:
! 5306: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 5307: conftest$ac_exeext conftest.$ac_ext
! 5308: LIBS="$ac_xsave_LIBS"
! 5309:
! 5310: # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
! 5311: # to get the SysV transport functions.
! 5312: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
! 5313: # needs -lnsl.
! 5314: # The nsl library prevents programs from opening the X display
! 5315: # on Irix 5.2, according to T.E. Dickey.
! 5316: # The functions gethostbyname, getservbyname, and inet_addr are
! 5317: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
! 5318: { echo "$as_me:$LINENO: checking for gethostbyname" >&5
! 5319: echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
! 5320: if test "${ac_cv_func_gethostbyname+set}" = set; then
! 5321: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5322: else
! 5323: cat >conftest.$ac_ext <<_ACEOF
! 5324: /* confdefs.h. */
! 5325: _ACEOF
! 5326: cat confdefs.h >>conftest.$ac_ext
! 5327: cat >>conftest.$ac_ext <<_ACEOF
! 5328: /* end confdefs.h. */
! 5329: /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
! 5330: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 5331: #define gethostbyname innocuous_gethostbyname
! 5332:
! 5333: /* System header to define __stub macros and hopefully few prototypes,
! 5334: which can conflict with char gethostbyname (); below.
! 5335: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 5336: <limits.h> exists even on freestanding compilers. */
! 5337:
! 5338: #ifdef __STDC__
! 5339: # include <limits.h>
! 5340: #else
! 5341: # include <assert.h>
! 5342: #endif
! 5343:
! 5344: #undef gethostbyname
! 5345:
! 5346: /* Override any GCC internal prototype to avoid an error.
! 5347: Use char because int might match the return type of a GCC
! 5348: builtin and then its argument prototype would still apply. */
! 5349: #ifdef __cplusplus
! 5350: extern "C"
! 5351: #endif
! 5352: char gethostbyname ();
! 5353: /* The GNU C library defines this for functions which it implements
! 5354: to always fail with ENOSYS. Some functions are actually named
! 5355: something starting with __ and the normal name is an alias. */
! 5356: #if defined __stub_gethostbyname || defined __stub___gethostbyname
! 5357: choke me
! 5358: #endif
! 5359:
! 5360: int
! 5361: main ()
! 5362: {
! 5363: return gethostbyname ();
! 5364: ;
! 5365: return 0;
! 5366: }
! 5367: _ACEOF
! 5368: rm -f conftest.$ac_objext conftest$ac_exeext
! 5369: if { (ac_try="$ac_link"
! 5370: case "(($ac_try" in
! 5371: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5372: *) ac_try_echo=$ac_try;;
! 5373: esac
! 5374: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5375: (eval "$ac_link") 2>conftest.er1
! 5376: ac_status=$?
! 5377: grep -v '^ *+' conftest.er1 >conftest.err
! 5378: rm -f conftest.er1
! 5379: cat conftest.err >&5
! 5380: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5381: (exit $ac_status); } && {
! 5382: test -z "$ac_c_werror_flag" ||
! 5383: test ! -s conftest.err
! 5384: } && test -s conftest$ac_exeext &&
! 5385: $as_test_x conftest$ac_exeext; then
! 5386: ac_cv_func_gethostbyname=yes
! 5387: else
! 5388: echo "$as_me: failed program was:" >&5
! 5389: sed 's/^/| /' conftest.$ac_ext >&5
! 5390:
! 5391: ac_cv_func_gethostbyname=no
! 5392: fi
! 5393:
! 5394: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 5395: conftest$ac_exeext conftest.$ac_ext
! 5396: fi
! 5397: { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
! 5398: echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
! 5399:
! 5400: if test $ac_cv_func_gethostbyname = no; then
! 5401: { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
! 5402: echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
! 5403: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
! 5404: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5405: else
! 5406: ac_check_lib_save_LIBS=$LIBS
! 5407: LIBS="-lnsl $LIBS"
! 5408: cat >conftest.$ac_ext <<_ACEOF
! 5409: /* confdefs.h. */
! 5410: _ACEOF
! 5411: cat confdefs.h >>conftest.$ac_ext
! 5412: cat >>conftest.$ac_ext <<_ACEOF
! 5413: /* end confdefs.h. */
! 5414:
! 5415: /* Override any GCC internal prototype to avoid an error.
! 5416: Use char because int might match the return type of a GCC
! 5417: builtin and then its argument prototype would still apply. */
! 5418: #ifdef __cplusplus
! 5419: extern "C"
! 5420: #endif
! 5421: char gethostbyname ();
! 5422: int
! 5423: main ()
! 5424: {
! 5425: return gethostbyname ();
! 5426: ;
! 5427: return 0;
! 5428: }
! 5429: _ACEOF
! 5430: rm -f conftest.$ac_objext conftest$ac_exeext
! 5431: if { (ac_try="$ac_link"
! 5432: case "(($ac_try" in
! 5433: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5434: *) ac_try_echo=$ac_try;;
! 5435: esac
! 5436: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5437: (eval "$ac_link") 2>conftest.er1
! 5438: ac_status=$?
! 5439: grep -v '^ *+' conftest.er1 >conftest.err
! 5440: rm -f conftest.er1
! 5441: cat conftest.err >&5
! 5442: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5443: (exit $ac_status); } && {
! 5444: test -z "$ac_c_werror_flag" ||
! 5445: test ! -s conftest.err
! 5446: } && test -s conftest$ac_exeext &&
! 5447: $as_test_x conftest$ac_exeext; then
! 5448: ac_cv_lib_nsl_gethostbyname=yes
! 5449: else
! 5450: echo "$as_me: failed program was:" >&5
! 5451: sed 's/^/| /' conftest.$ac_ext >&5
! 5452:
! 5453: ac_cv_lib_nsl_gethostbyname=no
! 5454: fi
! 5455:
! 5456: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 5457: conftest$ac_exeext conftest.$ac_ext
! 5458: LIBS=$ac_check_lib_save_LIBS
! 5459: fi
! 5460: { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
! 5461: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
! 5462: if test $ac_cv_lib_nsl_gethostbyname = yes; then
! 5463: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
! 5464: fi
! 5465:
! 5466: if test $ac_cv_lib_nsl_gethostbyname = no; then
! 5467: { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
! 5468: echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
! 5469: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
! 5470: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5471: else
! 5472: ac_check_lib_save_LIBS=$LIBS
! 5473: LIBS="-lbsd $LIBS"
! 5474: cat >conftest.$ac_ext <<_ACEOF
! 5475: /* confdefs.h. */
! 5476: _ACEOF
! 5477: cat confdefs.h >>conftest.$ac_ext
! 5478: cat >>conftest.$ac_ext <<_ACEOF
! 5479: /* end confdefs.h. */
! 5480:
! 5481: /* Override any GCC internal prototype to avoid an error.
! 5482: Use char because int might match the return type of a GCC
! 5483: builtin and then its argument prototype would still apply. */
! 5484: #ifdef __cplusplus
! 5485: extern "C"
! 5486: #endif
! 5487: char gethostbyname ();
! 5488: int
! 5489: main ()
! 5490: {
! 5491: return gethostbyname ();
! 5492: ;
! 5493: return 0;
! 5494: }
! 5495: _ACEOF
! 5496: rm -f conftest.$ac_objext conftest$ac_exeext
! 5497: if { (ac_try="$ac_link"
! 5498: case "(($ac_try" in
! 5499: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5500: *) ac_try_echo=$ac_try;;
! 5501: esac
! 5502: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5503: (eval "$ac_link") 2>conftest.er1
! 5504: ac_status=$?
! 5505: grep -v '^ *+' conftest.er1 >conftest.err
! 5506: rm -f conftest.er1
! 5507: cat conftest.err >&5
! 5508: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5509: (exit $ac_status); } && {
! 5510: test -z "$ac_c_werror_flag" ||
! 5511: test ! -s conftest.err
! 5512: } && test -s conftest$ac_exeext &&
! 5513: $as_test_x conftest$ac_exeext; then
! 5514: ac_cv_lib_bsd_gethostbyname=yes
! 5515: else
! 5516: echo "$as_me: failed program was:" >&5
! 5517: sed 's/^/| /' conftest.$ac_ext >&5
! 5518:
! 5519: ac_cv_lib_bsd_gethostbyname=no
! 5520: fi
! 5521:
! 5522: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 5523: conftest$ac_exeext conftest.$ac_ext
! 5524: LIBS=$ac_check_lib_save_LIBS
! 5525: fi
! 5526: { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
! 5527: echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
! 5528: if test $ac_cv_lib_bsd_gethostbyname = yes; then
! 5529: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
! 5530: fi
! 5531:
! 5532: fi
! 5533: fi
! 5534:
! 5535: # [email protected] says without -lsocket,
! 5536: # socket/setsockopt and other routines are undefined under SCO ODT
! 5537: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
! 5538: # on later versions), says Simon Leinen: it contains gethostby*
! 5539: # variants that don't use the name server (or something). -lsocket
! 5540: # must be given before -lnsl if both are needed. We assume that
! 5541: # if connect needs -lnsl, so does gethostbyname.
! 5542: { echo "$as_me:$LINENO: checking for connect" >&5
! 5543: echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
! 5544: if test "${ac_cv_func_connect+set}" = set; then
! 5545: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5546: else
! 5547: cat >conftest.$ac_ext <<_ACEOF
! 5548: /* confdefs.h. */
! 5549: _ACEOF
! 5550: cat confdefs.h >>conftest.$ac_ext
! 5551: cat >>conftest.$ac_ext <<_ACEOF
! 5552: /* end confdefs.h. */
! 5553: /* Define connect to an innocuous variant, in case <limits.h> declares connect.
! 5554: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 5555: #define connect innocuous_connect
! 5556:
! 5557: /* System header to define __stub macros and hopefully few prototypes,
! 5558: which can conflict with char connect (); below.
! 5559: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 5560: <limits.h> exists even on freestanding compilers. */
! 5561:
! 5562: #ifdef __STDC__
! 5563: # include <limits.h>
! 5564: #else
! 5565: # include <assert.h>
! 5566: #endif
! 5567:
! 5568: #undef connect
! 5569:
! 5570: /* Override any GCC internal prototype to avoid an error.
! 5571: Use char because int might match the return type of a GCC
! 5572: builtin and then its argument prototype would still apply. */
! 5573: #ifdef __cplusplus
! 5574: extern "C"
! 5575: #endif
! 5576: char connect ();
! 5577: /* The GNU C library defines this for functions which it implements
! 5578: to always fail with ENOSYS. Some functions are actually named
! 5579: something starting with __ and the normal name is an alias. */
! 5580: #if defined __stub_connect || defined __stub___connect
! 5581: choke me
! 5582: #endif
! 5583:
! 5584: int
! 5585: main ()
! 5586: {
! 5587: return connect ();
! 5588: ;
! 5589: return 0;
! 5590: }
! 5591: _ACEOF
! 5592: rm -f conftest.$ac_objext conftest$ac_exeext
! 5593: if { (ac_try="$ac_link"
! 5594: case "(($ac_try" in
! 5595: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5596: *) ac_try_echo=$ac_try;;
! 5597: esac
! 5598: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5599: (eval "$ac_link") 2>conftest.er1
! 5600: ac_status=$?
! 5601: grep -v '^ *+' conftest.er1 >conftest.err
! 5602: rm -f conftest.er1
! 5603: cat conftest.err >&5
! 5604: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5605: (exit $ac_status); } && {
! 5606: test -z "$ac_c_werror_flag" ||
! 5607: test ! -s conftest.err
! 5608: } && test -s conftest$ac_exeext &&
! 5609: $as_test_x conftest$ac_exeext; then
! 5610: ac_cv_func_connect=yes
! 5611: else
! 5612: echo "$as_me: failed program was:" >&5
! 5613: sed 's/^/| /' conftest.$ac_ext >&5
! 5614:
! 5615: ac_cv_func_connect=no
! 5616: fi
! 5617:
! 5618: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 5619: conftest$ac_exeext conftest.$ac_ext
! 5620: fi
! 5621: { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
! 5622: echo "${ECHO_T}$ac_cv_func_connect" >&6; }
! 5623:
! 5624: if test $ac_cv_func_connect = no; then
! 5625: { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
! 5626: echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
! 5627: if test "${ac_cv_lib_socket_connect+set}" = set; then
! 5628: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5629: else
! 5630: ac_check_lib_save_LIBS=$LIBS
! 5631: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
! 5632: cat >conftest.$ac_ext <<_ACEOF
! 5633: /* confdefs.h. */
! 5634: _ACEOF
! 5635: cat confdefs.h >>conftest.$ac_ext
! 5636: cat >>conftest.$ac_ext <<_ACEOF
! 5637: /* end confdefs.h. */
! 5638:
! 5639: /* Override any GCC internal prototype to avoid an error.
! 5640: Use char because int might match the return type of a GCC
! 5641: builtin and then its argument prototype would still apply. */
! 5642: #ifdef __cplusplus
! 5643: extern "C"
! 5644: #endif
! 5645: char connect ();
! 5646: int
! 5647: main ()
! 5648: {
! 5649: return connect ();
! 5650: ;
! 5651: return 0;
! 5652: }
! 5653: _ACEOF
! 5654: rm -f conftest.$ac_objext conftest$ac_exeext
! 5655: if { (ac_try="$ac_link"
! 5656: case "(($ac_try" in
! 5657: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5658: *) ac_try_echo=$ac_try;;
! 5659: esac
! 5660: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5661: (eval "$ac_link") 2>conftest.er1
! 5662: ac_status=$?
! 5663: grep -v '^ *+' conftest.er1 >conftest.err
! 5664: rm -f conftest.er1
! 5665: cat conftest.err >&5
! 5666: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5667: (exit $ac_status); } && {
! 5668: test -z "$ac_c_werror_flag" ||
! 5669: test ! -s conftest.err
! 5670: } && test -s conftest$ac_exeext &&
! 5671: $as_test_x conftest$ac_exeext; then
! 5672: ac_cv_lib_socket_connect=yes
! 5673: else
! 5674: echo "$as_me: failed program was:" >&5
! 5675: sed 's/^/| /' conftest.$ac_ext >&5
! 5676:
! 5677: ac_cv_lib_socket_connect=no
! 5678: fi
! 5679:
! 5680: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 5681: conftest$ac_exeext conftest.$ac_ext
! 5682: LIBS=$ac_check_lib_save_LIBS
! 5683: fi
! 5684: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
! 5685: echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
! 5686: if test $ac_cv_lib_socket_connect = yes; then
! 5687: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
! 5688: fi
! 5689:
! 5690: fi
! 5691:
! 5692: # Guillermo Gomez says -lposix is necessary on A/UX.
! 5693: { echo "$as_me:$LINENO: checking for remove" >&5
! 5694: echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
! 5695: if test "${ac_cv_func_remove+set}" = set; then
! 5696: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5697: else
! 5698: cat >conftest.$ac_ext <<_ACEOF
! 5699: /* confdefs.h. */
! 5700: _ACEOF
! 5701: cat confdefs.h >>conftest.$ac_ext
! 5702: cat >>conftest.$ac_ext <<_ACEOF
! 5703: /* end confdefs.h. */
! 5704: /* Define remove to an innocuous variant, in case <limits.h> declares remove.
! 5705: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 5706: #define remove innocuous_remove
! 5707:
! 5708: /* System header to define __stub macros and hopefully few prototypes,
! 5709: which can conflict with char remove (); below.
! 5710: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 5711: <limits.h> exists even on freestanding compilers. */
! 5712:
! 5713: #ifdef __STDC__
! 5714: # include <limits.h>
! 5715: #else
! 5716: # include <assert.h>
! 5717: #endif
! 5718:
! 5719: #undef remove
! 5720:
! 5721: /* Override any GCC internal prototype to avoid an error.
! 5722: Use char because int might match the return type of a GCC
! 5723: builtin and then its argument prototype would still apply. */
! 5724: #ifdef __cplusplus
! 5725: extern "C"
! 5726: #endif
! 5727: char remove ();
! 5728: /* The GNU C library defines this for functions which it implements
! 5729: to always fail with ENOSYS. Some functions are actually named
! 5730: something starting with __ and the normal name is an alias. */
! 5731: #if defined __stub_remove || defined __stub___remove
! 5732: choke me
! 5733: #endif
! 5734:
! 5735: int
! 5736: main ()
! 5737: {
! 5738: return remove ();
! 5739: ;
! 5740: return 0;
! 5741: }
! 5742: _ACEOF
! 5743: rm -f conftest.$ac_objext conftest$ac_exeext
! 5744: if { (ac_try="$ac_link"
! 5745: case "(($ac_try" in
! 5746: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5747: *) ac_try_echo=$ac_try;;
! 5748: esac
! 5749: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5750: (eval "$ac_link") 2>conftest.er1
! 5751: ac_status=$?
! 5752: grep -v '^ *+' conftest.er1 >conftest.err
! 5753: rm -f conftest.er1
! 5754: cat conftest.err >&5
! 5755: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5756: (exit $ac_status); } && {
! 5757: test -z "$ac_c_werror_flag" ||
! 5758: test ! -s conftest.err
! 5759: } && test -s conftest$ac_exeext &&
! 5760: $as_test_x conftest$ac_exeext; then
! 5761: ac_cv_func_remove=yes
! 5762: else
! 5763: echo "$as_me: failed program was:" >&5
! 5764: sed 's/^/| /' conftest.$ac_ext >&5
! 5765:
! 5766: ac_cv_func_remove=no
! 5767: fi
! 5768:
! 5769: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 5770: conftest$ac_exeext conftest.$ac_ext
! 5771: fi
! 5772: { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
! 5773: echo "${ECHO_T}$ac_cv_func_remove" >&6; }
! 5774:
! 5775: if test $ac_cv_func_remove = no; then
! 5776: { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
! 5777: echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
! 5778: if test "${ac_cv_lib_posix_remove+set}" = set; then
! 5779: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5780: else
! 5781: ac_check_lib_save_LIBS=$LIBS
! 5782: LIBS="-lposix $LIBS"
! 5783: cat >conftest.$ac_ext <<_ACEOF
! 5784: /* confdefs.h. */
! 5785: _ACEOF
! 5786: cat confdefs.h >>conftest.$ac_ext
! 5787: cat >>conftest.$ac_ext <<_ACEOF
! 5788: /* end confdefs.h. */
! 5789:
! 5790: /* Override any GCC internal prototype to avoid an error.
! 5791: Use char because int might match the return type of a GCC
! 5792: builtin and then its argument prototype would still apply. */
! 5793: #ifdef __cplusplus
! 5794: extern "C"
! 5795: #endif
! 5796: char remove ();
! 5797: int
! 5798: main ()
! 5799: {
! 5800: return remove ();
! 5801: ;
! 5802: return 0;
! 5803: }
! 5804: _ACEOF
! 5805: rm -f conftest.$ac_objext conftest$ac_exeext
! 5806: if { (ac_try="$ac_link"
! 5807: case "(($ac_try" in
! 5808: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5809: *) ac_try_echo=$ac_try;;
! 5810: esac
! 5811: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5812: (eval "$ac_link") 2>conftest.er1
! 5813: ac_status=$?
! 5814: grep -v '^ *+' conftest.er1 >conftest.err
! 5815: rm -f conftest.er1
! 5816: cat conftest.err >&5
! 5817: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5818: (exit $ac_status); } && {
! 5819: test -z "$ac_c_werror_flag" ||
! 5820: test ! -s conftest.err
! 5821: } && test -s conftest$ac_exeext &&
! 5822: $as_test_x conftest$ac_exeext; then
! 5823: ac_cv_lib_posix_remove=yes
! 5824: else
! 5825: echo "$as_me: failed program was:" >&5
! 5826: sed 's/^/| /' conftest.$ac_ext >&5
! 5827:
! 5828: ac_cv_lib_posix_remove=no
! 5829: fi
! 5830:
! 5831: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 5832: conftest$ac_exeext conftest.$ac_ext
! 5833: LIBS=$ac_check_lib_save_LIBS
! 5834: fi
! 5835: { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
! 5836: echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
! 5837: if test $ac_cv_lib_posix_remove = yes; then
! 5838: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
! 5839: fi
! 5840:
! 5841: fi
! 5842:
! 5843: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
! 5844: { echo "$as_me:$LINENO: checking for shmat" >&5
! 5845: echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
! 5846: if test "${ac_cv_func_shmat+set}" = set; then
! 5847: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5848: else
! 5849: cat >conftest.$ac_ext <<_ACEOF
! 5850: /* confdefs.h. */
! 5851: _ACEOF
! 5852: cat confdefs.h >>conftest.$ac_ext
! 5853: cat >>conftest.$ac_ext <<_ACEOF
! 5854: /* end confdefs.h. */
! 5855: /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
! 5856: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 5857: #define shmat innocuous_shmat
! 5858:
! 5859: /* System header to define __stub macros and hopefully few prototypes,
! 5860: which can conflict with char shmat (); below.
! 5861: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 5862: <limits.h> exists even on freestanding compilers. */
! 5863:
! 5864: #ifdef __STDC__
! 5865: # include <limits.h>
! 5866: #else
! 5867: # include <assert.h>
! 5868: #endif
! 5869:
! 5870: #undef shmat
! 5871:
! 5872: /* Override any GCC internal prototype to avoid an error.
! 5873: Use char because int might match the return type of a GCC
! 5874: builtin and then its argument prototype would still apply. */
! 5875: #ifdef __cplusplus
! 5876: extern "C"
! 5877: #endif
! 5878: char shmat ();
! 5879: /* The GNU C library defines this for functions which it implements
! 5880: to always fail with ENOSYS. Some functions are actually named
! 5881: something starting with __ and the normal name is an alias. */
! 5882: #if defined __stub_shmat || defined __stub___shmat
! 5883: choke me
! 5884: #endif
! 5885:
! 5886: int
! 5887: main ()
! 5888: {
! 5889: return shmat ();
! 5890: ;
! 5891: return 0;
! 5892: }
! 5893: _ACEOF
! 5894: rm -f conftest.$ac_objext conftest$ac_exeext
! 5895: if { (ac_try="$ac_link"
! 5896: case "(($ac_try" in
! 5897: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5898: *) ac_try_echo=$ac_try;;
! 5899: esac
! 5900: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5901: (eval "$ac_link") 2>conftest.er1
! 5902: ac_status=$?
! 5903: grep -v '^ *+' conftest.er1 >conftest.err
! 5904: rm -f conftest.er1
! 5905: cat conftest.err >&5
! 5906: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5907: (exit $ac_status); } && {
! 5908: test -z "$ac_c_werror_flag" ||
! 5909: test ! -s conftest.err
! 5910: } && test -s conftest$ac_exeext &&
! 5911: $as_test_x conftest$ac_exeext; then
! 5912: ac_cv_func_shmat=yes
! 5913: else
! 5914: echo "$as_me: failed program was:" >&5
! 5915: sed 's/^/| /' conftest.$ac_ext >&5
! 5916:
! 5917: ac_cv_func_shmat=no
! 5918: fi
! 5919:
! 5920: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 5921: conftest$ac_exeext conftest.$ac_ext
! 5922: fi
! 5923: { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
! 5924: echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
! 5925:
! 5926: if test $ac_cv_func_shmat = no; then
! 5927: { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
! 5928: echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
! 5929: if test "${ac_cv_lib_ipc_shmat+set}" = set; then
! 5930: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5931: else
! 5932: ac_check_lib_save_LIBS=$LIBS
! 5933: LIBS="-lipc $LIBS"
! 5934: cat >conftest.$ac_ext <<_ACEOF
! 5935: /* confdefs.h. */
! 5936: _ACEOF
! 5937: cat confdefs.h >>conftest.$ac_ext
! 5938: cat >>conftest.$ac_ext <<_ACEOF
! 5939: /* end confdefs.h. */
! 5940:
! 5941: /* Override any GCC internal prototype to avoid an error.
! 5942: Use char because int might match the return type of a GCC
! 5943: builtin and then its argument prototype would still apply. */
! 5944: #ifdef __cplusplus
! 5945: extern "C"
! 5946: #endif
! 5947: char shmat ();
! 5948: int
! 5949: main ()
! 5950: {
! 5951: return shmat ();
! 5952: ;
! 5953: return 0;
! 5954: }
! 5955: _ACEOF
! 5956: rm -f conftest.$ac_objext conftest$ac_exeext
! 5957: if { (ac_try="$ac_link"
! 5958: case "(($ac_try" in
! 5959: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5960: *) ac_try_echo=$ac_try;;
! 5961: esac
! 5962: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5963: (eval "$ac_link") 2>conftest.er1
! 5964: ac_status=$?
! 5965: grep -v '^ *+' conftest.er1 >conftest.err
! 5966: rm -f conftest.er1
! 5967: cat conftest.err >&5
! 5968: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5969: (exit $ac_status); } && {
! 5970: test -z "$ac_c_werror_flag" ||
! 5971: test ! -s conftest.err
! 5972: } && test -s conftest$ac_exeext &&
! 5973: $as_test_x conftest$ac_exeext; then
! 5974: ac_cv_lib_ipc_shmat=yes
! 5975: else
! 5976: echo "$as_me: failed program was:" >&5
! 5977: sed 's/^/| /' conftest.$ac_ext >&5
! 5978:
! 5979: ac_cv_lib_ipc_shmat=no
! 5980: fi
! 5981:
! 5982: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 5983: conftest$ac_exeext conftest.$ac_ext
! 5984: LIBS=$ac_check_lib_save_LIBS
! 5985: fi
! 5986: { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
! 5987: echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
! 5988: if test $ac_cv_lib_ipc_shmat = yes; then
! 5989: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
! 5990: fi
! 5991:
! 5992: fi
! 5993: fi
! 5994:
! 5995: # Check for libraries that X11R6 Xt/Xaw programs need.
! 5996: ac_save_LDFLAGS=$LDFLAGS
! 5997: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
! 5998: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
! 5999: # check for ICE first), but we must link in the order -lSM -lICE or
! 6000: # we get undefined symbols. So assume we have SM if we have ICE.
! 6001: # These have to be linked with before -lX11, unlike the other
! 6002: # libraries we check for below, so use a different variable.
! 6003: # John Interrante, Karl Berry
! 6004: { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
! 6005: echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
! 6006: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
! 6007: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6008: else
! 6009: ac_check_lib_save_LIBS=$LIBS
! 6010: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
! 6011: cat >conftest.$ac_ext <<_ACEOF
! 6012: /* confdefs.h. */
! 6013: _ACEOF
! 6014: cat confdefs.h >>conftest.$ac_ext
! 6015: cat >>conftest.$ac_ext <<_ACEOF
! 6016: /* end confdefs.h. */
! 6017:
! 6018: /* Override any GCC internal prototype to avoid an error.
! 6019: Use char because int might match the return type of a GCC
! 6020: builtin and then its argument prototype would still apply. */
! 6021: #ifdef __cplusplus
! 6022: extern "C"
! 6023: #endif
! 6024: char IceConnectionNumber ();
! 6025: int
! 6026: main ()
! 6027: {
! 6028: return IceConnectionNumber ();
! 6029: ;
! 6030: return 0;
! 6031: }
! 6032: _ACEOF
! 6033: rm -f conftest.$ac_objext conftest$ac_exeext
! 6034: if { (ac_try="$ac_link"
! 6035: case "(($ac_try" in
! 6036: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6037: *) ac_try_echo=$ac_try;;
! 6038: esac
! 6039: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6040: (eval "$ac_link") 2>conftest.er1
! 6041: ac_status=$?
! 6042: grep -v '^ *+' conftest.er1 >conftest.err
! 6043: rm -f conftest.er1
! 6044: cat conftest.err >&5
! 6045: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6046: (exit $ac_status); } && {
! 6047: test -z "$ac_c_werror_flag" ||
! 6048: test ! -s conftest.err
! 6049: } && test -s conftest$ac_exeext &&
! 6050: $as_test_x conftest$ac_exeext; then
! 6051: ac_cv_lib_ICE_IceConnectionNumber=yes
! 6052: else
! 6053: echo "$as_me: failed program was:" >&5
! 6054: sed 's/^/| /' conftest.$ac_ext >&5
! 6055:
! 6056: ac_cv_lib_ICE_IceConnectionNumber=no
! 6057: fi
! 6058:
! 6059: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 6060: conftest$ac_exeext conftest.$ac_ext
! 6061: LIBS=$ac_check_lib_save_LIBS
! 6062: fi
! 6063: { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
! 6064: echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
! 6065: if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
! 6066: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
! 6067: fi
! 6068:
! 6069: LDFLAGS=$ac_save_LDFLAGS
! 6070:
! 6071: fi
! 6072:
! 6073: fi
! 6074: if test "x$with_x" = xno; then
! 6075: no_x=yes
! 6076: fi
! 6077: if test "x${no_x}" = "xyes"; then
! 6078: { echo "$as_me:$LINENO: No X11, disabled Hatari embedding support" >&5
! 6079: echo "$as_me: No X11, disabled Hatari embedding support" >&6;}
! 6080: else
! 6081:
! 6082: cat >>confdefs.h <<\_ACEOF
! 6083: #define HAVE_X11 1
! 6084: _ACEOF
! 6085:
! 6086: fi
! 6087:
! 6088: CPPFLAGS="${CPPFLAGS} ${INCL}"
! 6089:
! 6090:
! 6091:
! 6092: { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
! 6093: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
! 6094: if test "${ac_cv_header_stdc+set}" = set; then
! 6095: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6096: else
! 6097: cat >conftest.$ac_ext <<_ACEOF
! 6098: /* confdefs.h. */
! 6099: _ACEOF
! 6100: cat confdefs.h >>conftest.$ac_ext
! 6101: cat >>conftest.$ac_ext <<_ACEOF
! 6102: /* end confdefs.h. */
! 6103: #include <stdlib.h>
! 6104: #include <stdarg.h>
! 6105: #include <string.h>
! 6106: #include <float.h>
! 6107:
! 6108: int
! 6109: main ()
! 6110: {
! 6111:
! 6112: ;
! 6113: return 0;
! 6114: }
! 6115: _ACEOF
! 6116: rm -f conftest.$ac_objext
! 6117: if { (ac_try="$ac_compile"
! 6118: case "(($ac_try" in
! 6119: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6120: *) ac_try_echo=$ac_try;;
! 6121: esac
! 6122: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6123: (eval "$ac_compile") 2>conftest.er1
! 6124: ac_status=$?
! 6125: grep -v '^ *+' conftest.er1 >conftest.err
! 6126: rm -f conftest.er1
! 6127: cat conftest.err >&5
! 6128: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6129: (exit $ac_status); } && {
! 6130: test -z "$ac_c_werror_flag" ||
! 6131: test ! -s conftest.err
! 6132: } && test -s conftest.$ac_objext; then
! 6133: ac_cv_header_stdc=yes
! 6134: else
! 6135: echo "$as_me: failed program was:" >&5
! 6136: sed 's/^/| /' conftest.$ac_ext >&5
! 6137:
! 6138: ac_cv_header_stdc=no
! 6139: fi
! 6140:
! 6141: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 6142:
! 6143: if test $ac_cv_header_stdc = yes; then
! 6144: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
! 6145: cat >conftest.$ac_ext <<_ACEOF
! 6146: /* confdefs.h. */
! 6147: _ACEOF
! 6148: cat confdefs.h >>conftest.$ac_ext
! 6149: cat >>conftest.$ac_ext <<_ACEOF
! 6150: /* end confdefs.h. */
! 6151: #include <string.h>
! 6152:
! 6153: _ACEOF
! 6154: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 6155: $EGREP "memchr" >/dev/null 2>&1; then
! 6156: :
! 6157: else
! 6158: ac_cv_header_stdc=no
! 6159: fi
! 6160: rm -f conftest*
! 6161:
! 6162: fi
! 6163:
! 6164: if test $ac_cv_header_stdc = yes; then
! 6165: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
! 6166: cat >conftest.$ac_ext <<_ACEOF
! 6167: /* confdefs.h. */
! 6168: _ACEOF
! 6169: cat confdefs.h >>conftest.$ac_ext
! 6170: cat >>conftest.$ac_ext <<_ACEOF
! 6171: /* end confdefs.h. */
! 6172: #include <stdlib.h>
! 6173:
! 6174: _ACEOF
! 6175: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 6176: $EGREP "free" >/dev/null 2>&1; then
! 6177: :
! 6178: else
! 6179: ac_cv_header_stdc=no
! 6180: fi
! 6181: rm -f conftest*
! 6182:
! 6183: fi
! 6184:
! 6185: if test $ac_cv_header_stdc = yes; then
! 6186: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
! 6187: if test "$cross_compiling" = yes; then
! 6188: :
! 6189: else
! 6190: cat >conftest.$ac_ext <<_ACEOF
! 6191: /* confdefs.h. */
! 6192: _ACEOF
! 6193: cat confdefs.h >>conftest.$ac_ext
! 6194: cat >>conftest.$ac_ext <<_ACEOF
1.1.1.3 root 6195: /* end confdefs.h. */
1.1.1.6 ! root 6196: #include <ctype.h>
! 6197: #include <stdlib.h>
! 6198: #if ((' ' & 0x0FF) == 0x020)
! 6199: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
! 6200: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
! 6201: #else
! 6202: # define ISLOWER(c) \
! 6203: (('a' <= (c) && (c) <= 'i') \
! 6204: || ('j' <= (c) && (c) <= 'r') \
! 6205: || ('s' <= (c) && (c) <= 'z'))
! 6206: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
! 6207: #endif
1.1 root 6208:
1.1.1.6 ! root 6209: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.1 root 6210: int
6211: main ()
6212: {
1.1.1.6 ! root 6213: int i;
! 6214: for (i = 0; i < 256; i++)
! 6215: if (XOR (islower (i), ISLOWER (i))
! 6216: || toupper (i) != TOUPPER (i))
! 6217: return 2;
1.1 root 6218: return 0;
6219: }
6220: _ACEOF
1.1.1.6 ! root 6221: rm -f conftest$ac_exeext
! 6222: if { (ac_try="$ac_link"
! 6223: case "(($ac_try" in
! 6224: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6225: *) ac_try_echo=$ac_try;;
! 6226: esac
! 6227: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6228: (eval "$ac_link") 2>&5
1.1.1.3 root 6229: ac_status=$?
6230: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.6 ! root 6231: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 6232: { (case "(($ac_try" in
! 6233: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6234: *) ac_try_echo=$ac_try;;
! 6235: esac
! 6236: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6237: (eval "$ac_try") 2>&5
1.1 root 6238: ac_status=$?
6239: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240: (exit $ac_status); }; }; then
1.1.1.6 ! root 6241: :
1.1 root 6242: else
1.1.1.6 ! root 6243: echo "$as_me: program exited with status $ac_status" >&5
! 6244: echo "$as_me: failed program was:" >&5
1.1.1.3 root 6245: sed 's/^/| /' conftest.$ac_ext >&5
6246:
1.1.1.6 ! root 6247: ( exit $ac_status )
! 6248: ac_cv_header_stdc=no
! 6249: fi
! 6250: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 6251: fi
! 6252:
! 6253:
1.1 root 6254: fi
6255: fi
1.1.1.6 ! root 6256: { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
! 6257: echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
! 6258: if test $ac_cv_header_stdc = yes; then
! 6259:
! 6260: cat >>confdefs.h <<\_ACEOF
! 6261: #define STDC_HEADERS 1
1.1 root 6262: _ACEOF
6263:
6264: fi
6265:
1.1.1.6 ! root 6266:
! 6267:
! 6268:
! 6269:
! 6270:
! 6271: ac_header_dirent=no
! 6272: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
! 6273: as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
! 6274: { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
! 6275: echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
! 6276: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 6277: echo $ECHO_N "(cached) $ECHO_C" >&6
6278: else
1.1.1.6 ! root 6279: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 6280: /* confdefs.h. */
6281: _ACEOF
6282: cat confdefs.h >>conftest.$ac_ext
6283: cat >>conftest.$ac_ext <<_ACEOF
6284: /* end confdefs.h. */
1.1.1.6 ! root 6285: #include <sys/types.h>
! 6286: #include <$ac_hdr>
1.1 root 6287:
6288: int
6289: main ()
6290: {
1.1.1.6 ! root 6291: if ((DIR *) 0)
! 6292: return 0;
1.1 root 6293: ;
6294: return 0;
6295: }
6296: _ACEOF
1.1.1.6 ! root 6297: rm -f conftest.$ac_objext
! 6298: if { (ac_try="$ac_compile"
! 6299: case "(($ac_try" in
! 6300: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6301: *) ac_try_echo=$ac_try;;
! 6302: esac
! 6303: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6304: (eval "$ac_compile") 2>conftest.er1
1.1 root 6305: ac_status=$?
1.1.1.3 root 6306: grep -v '^ *+' conftest.er1 >conftest.err
6307: rm -f conftest.er1
6308: cat conftest.err >&5
1.1 root 6309: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.6 ! root 6310: (exit $ac_status); } && {
! 6311: test -z "$ac_c_werror_flag" ||
! 6312: test ! -s conftest.err
! 6313: } && test -s conftest.$ac_objext; then
! 6314: eval "$as_ac_Header=yes"
1.1 root 6315: else
6316: echo "$as_me: failed program was:" >&5
1.1.1.3 root 6317: sed 's/^/| /' conftest.$ac_ext >&5
6318:
1.1.1.6 ! root 6319: eval "$as_ac_Header=no"
1.1 root 6320: fi
1.1.1.6 ! root 6321:
! 6322: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 6323: fi
! 6324: ac_res=`eval echo '${'$as_ac_Header'}'`
! 6325: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 6326: echo "${ECHO_T}$ac_res" >&6; }
! 6327: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 6328: cat >>confdefs.h <<_ACEOF
! 6329: #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
! 6330: _ACEOF
! 6331:
! 6332: ac_header_dirent=$ac_hdr; break
! 6333: fi
! 6334:
! 6335: done
! 6336: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
! 6337: if test $ac_header_dirent = dirent.h; then
! 6338: { echo "$as_me:$LINENO: checking for library containing opendir" >&5
! 6339: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
! 6340: if test "${ac_cv_search_opendir+set}" = set; then
! 6341: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6342: else
! 6343: ac_func_search_save_LIBS=$LIBS
! 6344: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 6345: /* confdefs.h. */
6346: _ACEOF
6347: cat confdefs.h >>conftest.$ac_ext
6348: cat >>conftest.$ac_ext <<_ACEOF
6349: /* end confdefs.h. */
1.1 root 6350:
1.1.1.6 ! root 6351: /* Override any GCC internal prototype to avoid an error.
! 6352: Use char because int might match the return type of a GCC
! 6353: builtin and then its argument prototype would still apply. */
1.1 root 6354: #ifdef __cplusplus
6355: extern "C"
6356: #endif
6357: char opendir ();
6358: int
6359: main ()
6360: {
1.1.1.6 ! root 6361: return opendir ();
1.1 root 6362: ;
6363: return 0;
6364: }
6365: _ACEOF
1.1.1.6 ! root 6366: for ac_lib in '' dir; do
! 6367: if test -z "$ac_lib"; then
! 6368: ac_res="none required"
! 6369: else
! 6370: ac_res=-l$ac_lib
! 6371: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
! 6372: fi
! 6373: rm -f conftest.$ac_objext conftest$ac_exeext
! 6374: if { (ac_try="$ac_link"
! 6375: case "(($ac_try" in
! 6376: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6377: *) ac_try_echo=$ac_try;;
! 6378: esac
! 6379: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6380: (eval "$ac_link") 2>conftest.er1
1.1 root 6381: ac_status=$?
1.1.1.3 root 6382: grep -v '^ *+' conftest.er1 >conftest.err
6383: rm -f conftest.er1
6384: cat conftest.err >&5
1.1 root 6385: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.6 ! root 6386: (exit $ac_status); } && {
! 6387: test -z "$ac_c_werror_flag" ||
! 6388: test ! -s conftest.err
! 6389: } && test -s conftest$ac_exeext &&
! 6390: $as_test_x conftest$ac_exeext; then
! 6391: ac_cv_search_opendir=$ac_res
1.1 root 6392: else
6393: echo "$as_me: failed program was:" >&5
1.1.1.3 root 6394: sed 's/^/| /' conftest.$ac_ext >&5
6395:
1.1.1.6 ! root 6396:
1.1 root 6397: fi
1.1.1.6 ! root 6398:
! 6399: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 6400: conftest$ac_exeext
! 6401: if test "${ac_cv_search_opendir+set}" = set; then
! 6402: break
! 6403: fi
! 6404: done
! 6405: if test "${ac_cv_search_opendir+set}" = set; then
! 6406: :
! 6407: else
! 6408: ac_cv_search_opendir=no
1.1 root 6409: fi
1.1.1.6 ! root 6410: rm conftest.$ac_ext
1.1 root 6411: LIBS=$ac_func_search_save_LIBS
6412: fi
1.1.1.6 ! root 6413: { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
! 6414: echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
! 6415: ac_res=$ac_cv_search_opendir
! 6416: if test "$ac_res" != no; then
! 6417: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1 root 6418:
6419: fi
6420:
6421: else
1.1.1.6 ! root 6422: { echo "$as_me:$LINENO: checking for library containing opendir" >&5
! 6423: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
1.1 root 6424: if test "${ac_cv_search_opendir+set}" = set; then
6425: echo $ECHO_N "(cached) $ECHO_C" >&6
6426: else
6427: ac_func_search_save_LIBS=$LIBS
6428: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 6429: /* confdefs.h. */
6430: _ACEOF
6431: cat confdefs.h >>conftest.$ac_ext
6432: cat >>conftest.$ac_ext <<_ACEOF
6433: /* end confdefs.h. */
1.1 root 6434:
1.1.1.6 ! root 6435: /* Override any GCC internal prototype to avoid an error.
! 6436: Use char because int might match the return type of a GCC
! 6437: builtin and then its argument prototype would still apply. */
1.1 root 6438: #ifdef __cplusplus
6439: extern "C"
6440: #endif
6441: char opendir ();
6442: int
6443: main ()
6444: {
1.1.1.6 ! root 6445: return opendir ();
1.1 root 6446: ;
6447: return 0;
6448: }
6449: _ACEOF
1.1.1.6 ! root 6450: for ac_lib in '' x; do
! 6451: if test -z "$ac_lib"; then
! 6452: ac_res="none required"
! 6453: else
! 6454: ac_res=-l$ac_lib
! 6455: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
! 6456: fi
! 6457: rm -f conftest.$ac_objext conftest$ac_exeext
! 6458: if { (ac_try="$ac_link"
! 6459: case "(($ac_try" in
! 6460: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6461: *) ac_try_echo=$ac_try;;
! 6462: esac
! 6463: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6464: (eval "$ac_link") 2>conftest.er1
1.1 root 6465: ac_status=$?
1.1.1.3 root 6466: grep -v '^ *+' conftest.er1 >conftest.err
6467: rm -f conftest.er1
6468: cat conftest.err >&5
1.1 root 6469: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.6 ! root 6470: (exit $ac_status); } && {
! 6471: test -z "$ac_c_werror_flag" ||
! 6472: test ! -s conftest.err
! 6473: } && test -s conftest$ac_exeext &&
! 6474: $as_test_x conftest$ac_exeext; then
! 6475: ac_cv_search_opendir=$ac_res
1.1 root 6476: else
6477: echo "$as_me: failed program was:" >&5
1.1.1.3 root 6478: sed 's/^/| /' conftest.$ac_ext >&5
6479:
1.1 root 6480:
1.1.1.6 ! root 6481: fi
1.1.1.3 root 6482:
1.1.1.6 ! root 6483: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 6484: conftest$ac_exeext
! 6485: if test "${ac_cv_search_opendir+set}" = set; then
! 6486: break
1.1 root 6487: fi
1.1.1.6 ! root 6488: done
! 6489: if test "${ac_cv_search_opendir+set}" = set; then
! 6490: :
! 6491: else
! 6492: ac_cv_search_opendir=no
1.1 root 6493: fi
1.1.1.6 ! root 6494: rm conftest.$ac_ext
1.1 root 6495: LIBS=$ac_func_search_save_LIBS
6496: fi
1.1.1.6 ! root 6497: { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
! 6498: echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
! 6499: ac_res=$ac_cv_search_opendir
! 6500: if test "$ac_res" != no; then
! 6501: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1 root 6502:
6503: fi
6504:
6505: fi
6506:
6507:
6508:
6509:
1.1.1.6 ! root 6510: for ac_header in unistd.h zlib.h
1.1 root 6511: do
6512: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.6 ! root 6513: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 6514: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 6515: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 6516: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 6517: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.6 ! root 6518: fi
! 6519: ac_res=`eval echo '${'$as_ac_Header'}'`
! 6520: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 6521: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 6522: else
1.1.1.6 ! root 6523: # Is the header compilable?
! 6524: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 6525: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
! 6526: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 6527: /* confdefs.h. */
6528: _ACEOF
6529: cat confdefs.h >>conftest.$ac_ext
6530: cat >>conftest.$ac_ext <<_ACEOF
6531: /* end confdefs.h. */
1.1 root 6532: $ac_includes_default
6533: #include <$ac_header>
6534: _ACEOF
6535: rm -f conftest.$ac_objext
1.1.1.6 ! root 6536: if { (ac_try="$ac_compile"
! 6537: case "(($ac_try" in
! 6538: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6539: *) ac_try_echo=$ac_try;;
! 6540: esac
! 6541: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6542: (eval "$ac_compile") 2>conftest.er1
1.1 root 6543: ac_status=$?
1.1.1.3 root 6544: grep -v '^ *+' conftest.er1 >conftest.err
6545: rm -f conftest.er1
6546: cat conftest.err >&5
1.1 root 6547: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.6 ! root 6548: (exit $ac_status); } && {
! 6549: test -z "$ac_c_werror_flag" ||
! 6550: test ! -s conftest.err
! 6551: } && test -s conftest.$ac_objext; then
! 6552: ac_header_compiler=yes
! 6553: else
! 6554: echo "$as_me: failed program was:" >&5
! 6555: sed 's/^/| /' conftest.$ac_ext >&5
! 6556:
! 6557: ac_header_compiler=no
! 6558: fi
! 6559:
! 6560: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 6561: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 6562: echo "${ECHO_T}$ac_header_compiler" >&6; }
! 6563:
! 6564: # Is the header present?
! 6565: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 6566: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
! 6567: cat >conftest.$ac_ext <<_ACEOF
! 6568: /* confdefs.h. */
! 6569: _ACEOF
! 6570: cat confdefs.h >>conftest.$ac_ext
! 6571: cat >>conftest.$ac_ext <<_ACEOF
! 6572: /* end confdefs.h. */
! 6573: #include <$ac_header>
! 6574: _ACEOF
! 6575: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 6576: case "(($ac_try" in
! 6577: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6578: *) ac_try_echo=$ac_try;;
! 6579: esac
! 6580: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6581: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 6582: ac_status=$?
1.1.1.6 ! root 6583: grep -v '^ *+' conftest.er1 >conftest.err
! 6584: rm -f conftest.er1
! 6585: cat conftest.err >&5
1.1 root 6586: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.6 ! root 6587: (exit $ac_status); } >/dev/null && {
! 6588: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 6589: test ! -s conftest.err
! 6590: }; then
! 6591: ac_header_preproc=yes
1.1 root 6592: else
6593: echo "$as_me: failed program was:" >&5
1.1.1.3 root 6594: sed 's/^/| /' conftest.$ac_ext >&5
6595:
1.1.1.6 ! root 6596: ac_header_preproc=no
! 6597: fi
! 6598:
! 6599: rm -f conftest.err conftest.$ac_ext
! 6600: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 6601: echo "${ECHO_T}$ac_header_preproc" >&6; }
! 6602:
! 6603: # So? What about this header?
! 6604: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 6605: yes:no: )
! 6606: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 6607: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 6608: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 6609: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 6610: ac_header_preproc=yes
! 6611: ;;
! 6612: no:yes:* )
! 6613: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 6614: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 6615: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 6616: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 6617: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 6618: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 6619: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 6620: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 6621: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 6622: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 6623: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 6624: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 6625:
! 6626: ;;
! 6627: esac
! 6628: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 6629: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 6630: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 6631: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6632: else
! 6633: eval "$as_ac_Header=\$ac_header_preproc"
1.1 root 6634: fi
1.1.1.6 ! root 6635: ac_res=`eval echo '${'$as_ac_Header'}'`
! 6636: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 6637: echo "${ECHO_T}$ac_res" >&6; }
! 6638:
1.1 root 6639: fi
6640: if test `eval echo '${'$as_ac_Header'}'` = yes; then
6641: cat >>confdefs.h <<_ACEOF
6642: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6643: _ACEOF
6644:
1.1.1.6 ! root 6645: else
! 6646: { { echo "$as_me:$LINENO: error: header file not found!" >&5
! 6647: echo "$as_me: error: header file not found!" >&2;}
! 6648: { (exit 1); exit 1; }; }
1.1 root 6649: fi
6650:
6651: done
6652:
6653:
6654:
1.1.1.6 ! root 6655: for ac_header in termios.h glob.h
1.1 root 6656: do
6657: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.6 ! root 6658: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 6659: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 6660: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 6661: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 6662: echo $ECHO_N "(cached) $ECHO_C" >&6
6663: fi
1.1.1.6 ! root 6664: ac_res=`eval echo '${'$as_ac_Header'}'`
! 6665: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 6666: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 6667: else
6668: # Is the header compilable?
1.1.1.6 ! root 6669: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 6670: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.1 root 6671: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 6672: /* confdefs.h. */
6673: _ACEOF
6674: cat confdefs.h >>conftest.$ac_ext
6675: cat >>conftest.$ac_ext <<_ACEOF
6676: /* end confdefs.h. */
1.1 root 6677: $ac_includes_default
6678: #include <$ac_header>
6679: _ACEOF
6680: rm -f conftest.$ac_objext
1.1.1.6 ! root 6681: if { (ac_try="$ac_compile"
! 6682: case "(($ac_try" in
! 6683: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6684: *) ac_try_echo=$ac_try;;
! 6685: esac
! 6686: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6687: (eval "$ac_compile") 2>conftest.er1
1.1 root 6688: ac_status=$?
1.1.1.3 root 6689: grep -v '^ *+' conftest.er1 >conftest.err
6690: rm -f conftest.er1
6691: cat conftest.err >&5
1.1 root 6692: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.6 ! root 6693: (exit $ac_status); } && {
! 6694: test -z "$ac_c_werror_flag" ||
! 6695: test ! -s conftest.err
! 6696: } && test -s conftest.$ac_objext; then
1.1 root 6697: ac_header_compiler=yes
6698: else
6699: echo "$as_me: failed program was:" >&5
1.1.1.3 root 6700: sed 's/^/| /' conftest.$ac_ext >&5
6701:
1.1.1.6 ! root 6702: ac_header_compiler=no
1.1 root 6703: fi
1.1.1.6 ! root 6704:
! 6705: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 6706: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 6707: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1 root 6708:
6709: # Is the header present?
1.1.1.6 ! root 6710: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 6711: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.1 root 6712: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 6713: /* confdefs.h. */
6714: _ACEOF
6715: cat confdefs.h >>conftest.$ac_ext
6716: cat >>conftest.$ac_ext <<_ACEOF
6717: /* end confdefs.h. */
1.1 root 6718: #include <$ac_header>
6719: _ACEOF
1.1.1.6 ! root 6720: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 6721: case "(($ac_try" in
! 6722: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6723: *) ac_try_echo=$ac_try;;
! 6724: esac
! 6725: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6726: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 6727: ac_status=$?
1.1.1.3 root 6728: grep -v '^ *+' conftest.er1 >conftest.err
1.1 root 6729: rm -f conftest.er1
6730: cat conftest.err >&5
6731: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.6 ! root 6732: (exit $ac_status); } >/dev/null && {
! 6733: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 6734: test ! -s conftest.err
! 6735: }; then
1.1 root 6736: ac_header_preproc=yes
6737: else
6738: echo "$as_me: failed program was:" >&5
1.1.1.3 root 6739: sed 's/^/| /' conftest.$ac_ext >&5
6740:
1.1 root 6741: ac_header_preproc=no
6742: fi
1.1.1.6 ! root 6743:
1.1 root 6744: rm -f conftest.err conftest.$ac_ext
1.1.1.6 ! root 6745: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 6746: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1 root 6747:
6748: # So? What about this header?
1.1.1.3 root 6749: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6750: yes:no: )
1.1 root 6751: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6752: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.1.1.3 root 6753: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6754: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6755: ac_header_preproc=yes
6756: ;;
6757: no:yes:* )
1.1 root 6758: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6759: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.1.1.3 root 6760: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6761: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6762: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6763: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6764: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6765: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
1.1 root 6766: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
1.1.1.3 root 6767: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6768: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6769: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1.1.6 ! root 6770:
1.1.1.3 root 6771: ;;
1.1 root 6772: esac
1.1.1.6 ! root 6773: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 6774: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 6775: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 6776: echo $ECHO_N "(cached) $ECHO_C" >&6
6777: else
1.1.1.3 root 6778: eval "$as_ac_Header=\$ac_header_preproc"
1.1 root 6779: fi
1.1.1.6 ! root 6780: ac_res=`eval echo '${'$as_ac_Header'}'`
! 6781: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 6782: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 6783:
6784: fi
6785: if test `eval echo '${'$as_ac_Header'}'` = yes; then
6786: cat >>confdefs.h <<_ACEOF
6787: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6788: _ACEOF
6789:
6790: fi
6791:
6792: done
6793:
6794:
1.1.1.6 ! root 6795: { echo "$as_me:$LINENO: checking for mode_t" >&5
! 6796: echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
1.1 root 6797: if test "${ac_cv_type_mode_t+set}" = set; then
6798: echo $ECHO_N "(cached) $ECHO_C" >&6
6799: else
6800: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 6801: /* confdefs.h. */
6802: _ACEOF
6803: cat confdefs.h >>conftest.$ac_ext
6804: cat >>conftest.$ac_ext <<_ACEOF
6805: /* end confdefs.h. */
1.1 root 6806: $ac_includes_default
1.1.1.6 ! root 6807: typedef mode_t ac__type_new_;
1.1 root 6808: int
6809: main ()
6810: {
1.1.1.6 ! root 6811: if ((ac__type_new_ *) 0)
1.1 root 6812: return 0;
1.1.1.6 ! root 6813: if (sizeof (ac__type_new_))
1.1 root 6814: return 0;
6815: ;
6816: return 0;
6817: }
6818: _ACEOF
6819: rm -f conftest.$ac_objext
1.1.1.6 ! root 6820: if { (ac_try="$ac_compile"
! 6821: case "(($ac_try" in
! 6822: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6823: *) ac_try_echo=$ac_try;;
! 6824: esac
! 6825: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6826: (eval "$ac_compile") 2>conftest.er1
1.1 root 6827: ac_status=$?
1.1.1.3 root 6828: grep -v '^ *+' conftest.er1 >conftest.err
6829: rm -f conftest.er1
6830: cat conftest.err >&5
1.1 root 6831: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.6 ! root 6832: (exit $ac_status); } && {
! 6833: test -z "$ac_c_werror_flag" ||
! 6834: test ! -s conftest.err
! 6835: } && test -s conftest.$ac_objext; then
1.1 root 6836: ac_cv_type_mode_t=yes
6837: else
6838: echo "$as_me: failed program was:" >&5
1.1.1.3 root 6839: sed 's/^/| /' conftest.$ac_ext >&5
6840:
1.1.1.6 ! root 6841: ac_cv_type_mode_t=no
1.1 root 6842: fi
1.1.1.6 ! root 6843:
! 6844: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 6845: fi
1.1.1.6 ! root 6846: { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
! 6847: echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
1.1 root 6848: if test $ac_cv_type_mode_t = yes; then
6849: :
6850: else
6851:
6852: cat >>confdefs.h <<_ACEOF
6853: #define mode_t int
6854: _ACEOF
6855:
6856: fi
6857:
1.1.1.6 ! root 6858: { echo "$as_me:$LINENO: checking for size_t" >&5
! 6859: echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
1.1 root 6860: if test "${ac_cv_type_size_t+set}" = set; then
6861: echo $ECHO_N "(cached) $ECHO_C" >&6
6862: else
6863: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 6864: /* confdefs.h. */
6865: _ACEOF
6866: cat confdefs.h >>conftest.$ac_ext
6867: cat >>conftest.$ac_ext <<_ACEOF
6868: /* end confdefs.h. */
1.1 root 6869: $ac_includes_default
1.1.1.6 ! root 6870: typedef size_t ac__type_new_;
1.1 root 6871: int
6872: main ()
6873: {
1.1.1.6 ! root 6874: if ((ac__type_new_ *) 0)
1.1 root 6875: return 0;
1.1.1.6 ! root 6876: if (sizeof (ac__type_new_))
1.1 root 6877: return 0;
6878: ;
6879: return 0;
6880: }
6881: _ACEOF
6882: rm -f conftest.$ac_objext
1.1.1.6 ! root 6883: if { (ac_try="$ac_compile"
! 6884: case "(($ac_try" in
! 6885: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6886: *) ac_try_echo=$ac_try;;
! 6887: esac
! 6888: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6889: (eval "$ac_compile") 2>conftest.er1
1.1 root 6890: ac_status=$?
1.1.1.3 root 6891: grep -v '^ *+' conftest.er1 >conftest.err
6892: rm -f conftest.er1
6893: cat conftest.err >&5
1.1 root 6894: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.6 ! root 6895: (exit $ac_status); } && {
! 6896: test -z "$ac_c_werror_flag" ||
! 6897: test ! -s conftest.err
! 6898: } && test -s conftest.$ac_objext; then
1.1 root 6899: ac_cv_type_size_t=yes
6900: else
6901: echo "$as_me: failed program was:" >&5
1.1.1.3 root 6902: sed 's/^/| /' conftest.$ac_ext >&5
6903:
1.1.1.6 ! root 6904: ac_cv_type_size_t=no
1.1 root 6905: fi
1.1.1.6 ! root 6906:
! 6907: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 6908: fi
1.1.1.6 ! root 6909: { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
! 6910: echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
1.1 root 6911: if test $ac_cv_type_size_t = yes; then
6912: :
6913: else
6914:
6915: cat >>confdefs.h <<_ACEOF
1.1.1.6 ! root 6916: #define size_t unsigned int
1.1 root 6917: _ACEOF
6918:
6919: fi
6920:
6921:
1.1.1.6 ! root 6922: { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
! 6923: echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
1.1 root 6924: if test "${ac_cv_struct_tm+set}" = set; then
6925: echo $ECHO_N "(cached) $ECHO_C" >&6
6926: else
6927: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 6928: /* confdefs.h. */
6929: _ACEOF
6930: cat confdefs.h >>conftest.$ac_ext
6931: cat >>conftest.$ac_ext <<_ACEOF
6932: /* end confdefs.h. */
1.1 root 6933: #include <sys/types.h>
6934: #include <time.h>
6935:
6936: int
6937: main ()
6938: {
1.1.1.6 ! root 6939: struct tm tm;
! 6940: int *p = &tm.tm_sec;
! 6941: return !p;
1.1 root 6942: ;
6943: return 0;
6944: }
6945: _ACEOF
6946: rm -f conftest.$ac_objext
1.1.1.6 ! root 6947: if { (ac_try="$ac_compile"
! 6948: case "(($ac_try" in
! 6949: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6950: *) ac_try_echo=$ac_try;;
! 6951: esac
! 6952: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6953: (eval "$ac_compile") 2>conftest.er1
1.1 root 6954: ac_status=$?
1.1.1.3 root 6955: grep -v '^ *+' conftest.er1 >conftest.err
6956: rm -f conftest.er1
6957: cat conftest.err >&5
1.1 root 6958: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.6 ! root 6959: (exit $ac_status); } && {
! 6960: test -z "$ac_c_werror_flag" ||
! 6961: test ! -s conftest.err
! 6962: } && test -s conftest.$ac_objext; then
1.1 root 6963: ac_cv_struct_tm=time.h
6964: else
6965: echo "$as_me: failed program was:" >&5
1.1.1.3 root 6966: sed 's/^/| /' conftest.$ac_ext >&5
6967:
1.1.1.6 ! root 6968: ac_cv_struct_tm=sys/time.h
1.1 root 6969: fi
1.1.1.6 ! root 6970:
! 6971: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 6972: fi
1.1.1.6 ! root 6973: { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
! 6974: echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
1.1 root 6975: if test $ac_cv_struct_tm = sys/time.h; then
6976:
6977: cat >>confdefs.h <<\_ACEOF
6978: #define TM_IN_SYS_TIME 1
6979: _ACEOF
6980:
6981: fi
6982:
6983:
6984:
1.1.1.6 ! root 6985: { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
! 6986: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
1.1 root 6987: if test "${ac_cv_c_const+set}" = set; then
6988: echo $ECHO_N "(cached) $ECHO_C" >&6
6989: else
6990: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 6991: /* confdefs.h. */
6992: _ACEOF
6993: cat confdefs.h >>conftest.$ac_ext
6994: cat >>conftest.$ac_ext <<_ACEOF
6995: /* end confdefs.h. */
1.1 root 6996:
6997: int
6998: main ()
6999: {
7000: /* FIXME: Include the comments suggested by Paul. */
7001: #ifndef __cplusplus
7002: /* Ultrix mips cc rejects this. */
7003: typedef int charset[2];
1.1.1.6 ! root 7004: const charset cs;
1.1 root 7005: /* SunOS 4.1.1 cc rejects this. */
1.1.1.6 ! root 7006: char const *const *pcpcc;
! 7007: char **ppc;
1.1 root 7008: /* NEC SVR4.0.2 mips cc rejects this. */
7009: struct point {int x, y;};
7010: static struct point const zero = {0,0};
7011: /* AIX XL C 1.02.0.0 rejects this.
7012: It does not let you subtract one const X* pointer from another in
7013: an arm of an if-expression whose if-part is not a constant
7014: expression */
7015: const char *g = "string";
1.1.1.6 ! root 7016: pcpcc = &g + (g ? g-g : 0);
1.1 root 7017: /* HPUX 7.0 cc rejects these. */
1.1.1.6 ! root 7018: ++pcpcc;
! 7019: ppc = (char**) pcpcc;
! 7020: pcpcc = (char const *const *) ppc;
1.1 root 7021: { /* SCO 3.2v4 cc rejects this. */
7022: char *t;
7023: char const *s = 0 ? (char *) 0 : (char const *) 0;
7024:
7025: *t++ = 0;
1.1.1.6 ! root 7026: if (s) return 0;
1.1 root 7027: }
7028: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7029: int x[] = {25, 17};
7030: const int *foo = &x[0];
7031: ++foo;
7032: }
7033: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7034: typedef const int *iptr;
7035: iptr p = 0;
7036: ++p;
7037: }
7038: { /* AIX XL C 1.02.0.0 rejects this saying
7039: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7040: struct s { int j; const int *ap[3]; };
7041: struct s *b; b->j = 5;
7042: }
7043: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7044: const int foo = 10;
1.1.1.6 ! root 7045: if (!foo) return 0;
1.1 root 7046: }
1.1.1.6 ! root 7047: return !cs[0] && !zero.x;
1.1 root 7048: #endif
7049:
7050: ;
7051: return 0;
7052: }
7053: _ACEOF
7054: rm -f conftest.$ac_objext
1.1.1.6 ! root 7055: if { (ac_try="$ac_compile"
! 7056: case "(($ac_try" in
! 7057: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7058: *) ac_try_echo=$ac_try;;
! 7059: esac
! 7060: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7061: (eval "$ac_compile") 2>conftest.er1
1.1 root 7062: ac_status=$?
1.1.1.3 root 7063: grep -v '^ *+' conftest.er1 >conftest.err
7064: rm -f conftest.er1
7065: cat conftest.err >&5
1.1 root 7066: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.6 ! root 7067: (exit $ac_status); } && {
! 7068: test -z "$ac_c_werror_flag" ||
! 7069: test ! -s conftest.err
! 7070: } && test -s conftest.$ac_objext; then
1.1 root 7071: ac_cv_c_const=yes
7072: else
7073: echo "$as_me: failed program was:" >&5
1.1.1.3 root 7074: sed 's/^/| /' conftest.$ac_ext >&5
7075:
1.1.1.6 ! root 7076: ac_cv_c_const=no
1.1 root 7077: fi
1.1.1.6 ! root 7078:
! 7079: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 7080: fi
1.1.1.6 ! root 7081: { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
! 7082: echo "${ECHO_T}$ac_cv_c_const" >&6; }
1.1 root 7083: if test $ac_cv_c_const = no; then
7084:
7085: cat >>confdefs.h <<\_ACEOF
7086: #define const
7087: _ACEOF
7088:
7089: fi
7090:
1.1.1.6 ! root 7091: { echo "$as_me:$LINENO: checking for inline" >&5
! 7092: echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
1.1 root 7093: if test "${ac_cv_c_inline+set}" = set; then
7094: echo $ECHO_N "(cached) $ECHO_C" >&6
7095: else
7096: ac_cv_c_inline=no
7097: for ac_kw in inline __inline__ __inline; do
7098: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 7099: /* confdefs.h. */
7100: _ACEOF
7101: cat confdefs.h >>conftest.$ac_ext
7102: cat >>conftest.$ac_ext <<_ACEOF
7103: /* end confdefs.h. */
1.1 root 7104: #ifndef __cplusplus
1.1.1.3 root 7105: typedef int foo_t;
7106: static $ac_kw foo_t static_foo () {return 0; }
7107: $ac_kw foo_t foo () {return 0; }
1.1 root 7108: #endif
7109:
7110: _ACEOF
7111: rm -f conftest.$ac_objext
1.1.1.6 ! root 7112: if { (ac_try="$ac_compile"
! 7113: case "(($ac_try" in
! 7114: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7115: *) ac_try_echo=$ac_try;;
! 7116: esac
! 7117: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7118: (eval "$ac_compile") 2>conftest.er1
1.1 root 7119: ac_status=$?
1.1.1.3 root 7120: grep -v '^ *+' conftest.er1 >conftest.err
7121: rm -f conftest.er1
7122: cat conftest.err >&5
1.1 root 7123: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.6 ! root 7124: (exit $ac_status); } && {
! 7125: test -z "$ac_c_werror_flag" ||
! 7126: test ! -s conftest.err
! 7127: } && test -s conftest.$ac_objext; then
! 7128: ac_cv_c_inline=$ac_kw
1.1 root 7129: else
7130: echo "$as_me: failed program was:" >&5
1.1.1.3 root 7131: sed 's/^/| /' conftest.$ac_ext >&5
7132:
1.1.1.6 ! root 7133:
1.1 root 7134: fi
1.1.1.6 ! root 7135:
! 7136: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 7137: test "$ac_cv_c_inline" != no && break
1.1 root 7138: done
7139:
7140: fi
1.1.1.6 ! root 7141: { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
! 7142: echo "${ECHO_T}$ac_cv_c_inline" >&6; }
1.1.1.3 root 7143:
7144:
1.1 root 7145: case $ac_cv_c_inline in
7146: inline | yes) ;;
1.1.1.3 root 7147: *)
7148: case $ac_cv_c_inline in
7149: no) ac_val=;;
7150: *) ac_val=$ac_cv_c_inline;;
7151: esac
7152: cat >>confdefs.h <<_ACEOF
7153: #ifndef __cplusplus
7154: #define inline $ac_val
7155: #endif
1.1 root 7156: _ACEOF
1.1.1.3 root 7157: ;;
1.1 root 7158: esac
7159:
1.1.1.6 ! root 7160: { echo "$as_me:$LINENO: checking for working volatile" >&5
! 7161: echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
1.1 root 7162: if test "${ac_cv_c_volatile+set}" = set; then
7163: echo $ECHO_N "(cached) $ECHO_C" >&6
7164: else
7165: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 7166: /* confdefs.h. */
7167: _ACEOF
7168: cat confdefs.h >>conftest.$ac_ext
7169: cat >>conftest.$ac_ext <<_ACEOF
7170: /* end confdefs.h. */
1.1 root 7171:
7172: int
7173: main ()
7174: {
7175:
7176: volatile int x;
1.1.1.6 ! root 7177: int * volatile y = (int *) 0;
! 7178: return !x && !y;
1.1 root 7179: ;
7180: return 0;
7181: }
7182: _ACEOF
7183: rm -f conftest.$ac_objext
1.1.1.6 ! root 7184: if { (ac_try="$ac_compile"
! 7185: case "(($ac_try" in
! 7186: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7187: *) ac_try_echo=$ac_try;;
! 7188: esac
! 7189: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7190: (eval "$ac_compile") 2>conftest.er1
1.1 root 7191: ac_status=$?
1.1.1.3 root 7192: grep -v '^ *+' conftest.er1 >conftest.err
7193: rm -f conftest.er1
7194: cat conftest.err >&5
1.1 root 7195: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.6 ! root 7196: (exit $ac_status); } && {
! 7197: test -z "$ac_c_werror_flag" ||
! 7198: test ! -s conftest.err
! 7199: } && test -s conftest.$ac_objext; then
1.1 root 7200: ac_cv_c_volatile=yes
7201: else
7202: echo "$as_me: failed program was:" >&5
1.1.1.3 root 7203: sed 's/^/| /' conftest.$ac_ext >&5
7204:
1.1.1.6 ! root 7205: ac_cv_c_volatile=no
1.1 root 7206: fi
1.1.1.6 ! root 7207:
! 7208: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 7209: fi
1.1.1.6 ! root 7210: { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
! 7211: echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
1.1 root 7212: if test $ac_cv_c_volatile = no; then
7213:
7214: cat >>confdefs.h <<\_ACEOF
7215: #define volatile
7216: _ACEOF
7217:
7218: fi
7219:
7220:
7221: # Do we have GNU-C ?
7222: if test x"${GCC}" = xyes; then
7223:
7224: GCCVERSION=`${CC} -dumpversion`
7225: case $GCCVERSION in
7226: 2.96*)
7227: { echo "$as_me:$LINENO: WARNING: You have GCC $GCCVERSION - This compiler is probably buggy." >&5
7228: echo "$as_me: WARNING: You have GCC $GCCVERSION - This compiler is probably buggy." >&2;}
7229: { echo "$as_me:$LINENO: WARNING: So I am using -O instead of -O2 (or greater) now!" >&5
7230: echo "$as_me: WARNING: So I am using -O instead of -O2 (or greater) now!" >&2;}
7231: CFLAGS=`echo "${CFLAGS}" | sed 's/-O[2-9]/-O/'`
7232: ;;
7233: esac
7234:
7235: if test x"${ENABLE_WERROR}" != xno; then
7236: CFLAGS="${CFLAGS} -Werror"
7237: fi
7238: CFLAGS="${CFLAGS} -Wall"
7239:
7240: fi
7241:
7242:
7243: # Cross-compiling ?
7244:
7245: HOSTCFLAGS="-O"
7246: HOSTLDFLAGS=""
7247: if test "${build}" != "${target}" -a "${HOSTCC}" == "${CC}"; then
7248: { echo "$as_me:$LINENO: WARNING: Cross compiling... I will now use cc as host compiler!" >&5
7249: echo "$as_me: WARNING: Cross compiling... I will now use cc as host compiler!" >&2;}
7250: HOSTCC=cc
7251: else
7252: HOSTCFLAGS="${CFLAGS}"
7253: HOSTLDFLAGS="${LDFLAGS}"
7254: fi
7255:
7256:
7257:
7258: for ac_header in stdlib.h
7259: do
7260: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.6 ! root 7261: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 7262: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 7263: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 7264: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 7265: echo $ECHO_N "(cached) $ECHO_C" >&6
7266: fi
1.1.1.6 ! root 7267: ac_res=`eval echo '${'$as_ac_Header'}'`
! 7268: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 7269: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 7270: else
7271: # Is the header compilable?
1.1.1.6 ! root 7272: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 7273: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.1 root 7274: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 7275: /* confdefs.h. */
7276: _ACEOF
7277: cat confdefs.h >>conftest.$ac_ext
7278: cat >>conftest.$ac_ext <<_ACEOF
7279: /* end confdefs.h. */
1.1 root 7280: $ac_includes_default
7281: #include <$ac_header>
7282: _ACEOF
7283: rm -f conftest.$ac_objext
1.1.1.6 ! root 7284: if { (ac_try="$ac_compile"
! 7285: case "(($ac_try" in
! 7286: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7287: *) ac_try_echo=$ac_try;;
! 7288: esac
! 7289: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7290: (eval "$ac_compile") 2>conftest.er1
1.1 root 7291: ac_status=$?
1.1.1.3 root 7292: grep -v '^ *+' conftest.er1 >conftest.err
7293: rm -f conftest.er1
7294: cat conftest.err >&5
1.1 root 7295: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.6 ! root 7296: (exit $ac_status); } && {
! 7297: test -z "$ac_c_werror_flag" ||
! 7298: test ! -s conftest.err
! 7299: } && test -s conftest.$ac_objext; then
1.1 root 7300: ac_header_compiler=yes
7301: else
7302: echo "$as_me: failed program was:" >&5
1.1.1.3 root 7303: sed 's/^/| /' conftest.$ac_ext >&5
7304:
1.1.1.6 ! root 7305: ac_header_compiler=no
1.1 root 7306: fi
1.1.1.6 ! root 7307:
! 7308: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 7309: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 7310: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1 root 7311:
7312: # Is the header present?
1.1.1.6 ! root 7313: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 7314: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.1 root 7315: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 7316: /* confdefs.h. */
7317: _ACEOF
7318: cat confdefs.h >>conftest.$ac_ext
7319: cat >>conftest.$ac_ext <<_ACEOF
7320: /* end confdefs.h. */
1.1 root 7321: #include <$ac_header>
7322: _ACEOF
1.1.1.6 ! root 7323: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 7324: case "(($ac_try" in
! 7325: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7326: *) ac_try_echo=$ac_try;;
! 7327: esac
! 7328: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7329: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 7330: ac_status=$?
1.1.1.3 root 7331: grep -v '^ *+' conftest.er1 >conftest.err
1.1 root 7332: rm -f conftest.er1
7333: cat conftest.err >&5
7334: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.6 ! root 7335: (exit $ac_status); } >/dev/null && {
! 7336: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 7337: test ! -s conftest.err
! 7338: }; then
1.1 root 7339: ac_header_preproc=yes
7340: else
7341: echo "$as_me: failed program was:" >&5
1.1.1.3 root 7342: sed 's/^/| /' conftest.$ac_ext >&5
7343:
1.1 root 7344: ac_header_preproc=no
7345: fi
1.1.1.6 ! root 7346:
1.1 root 7347: rm -f conftest.err conftest.$ac_ext
1.1.1.6 ! root 7348: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 7349: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1 root 7350:
7351: # So? What about this header?
1.1.1.3 root 7352: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7353: yes:no: )
1.1 root 7354: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7355: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.1.1.3 root 7356: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7357: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7358: ac_header_preproc=yes
7359: ;;
7360: no:yes:* )
1.1 root 7361: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7362: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.1.1.3 root 7363: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7364: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7365: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7366: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7367: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7368: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
1.1 root 7369: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
1.1.1.3 root 7370: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7371: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7372: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1.1.6 ! root 7373:
1.1.1.3 root 7374: ;;
1.1 root 7375: esac
1.1.1.6 ! root 7376: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 7377: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 7378: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 7379: echo $ECHO_N "(cached) $ECHO_C" >&6
7380: else
1.1.1.3 root 7381: eval "$as_ac_Header=\$ac_header_preproc"
1.1 root 7382: fi
1.1.1.6 ! root 7383: ac_res=`eval echo '${'$as_ac_Header'}'`
! 7384: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 7385: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 7386:
7387: fi
7388: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7389: cat >>confdefs.h <<_ACEOF
7390: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7391: _ACEOF
7392:
7393: fi
7394:
7395: done
7396:
1.1.1.6 ! root 7397: { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
! 7398: echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
1.1.1.3 root 7399: if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
1.1 root 7400: echo $ECHO_N "(cached) $ECHO_C" >&6
7401: else
7402: if test "$cross_compiling" = yes; then
1.1.1.3 root 7403: ac_cv_func_malloc_0_nonnull=no
1.1 root 7404: else
7405: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 7406: /* confdefs.h. */
7407: _ACEOF
7408: cat confdefs.h >>conftest.$ac_ext
7409: cat >>conftest.$ac_ext <<_ACEOF
7410: /* end confdefs.h. */
1.1.1.6 ! root 7411: #if defined STDC_HEADERS || defined HAVE_STDLIB_H
1.1 root 7412: # include <stdlib.h>
7413: #else
7414: char *malloc ();
7415: #endif
7416:
7417: int
7418: main ()
7419: {
1.1.1.6 ! root 7420: return ! malloc (0);
1.1 root 7421: ;
7422: return 0;
7423: }
7424: _ACEOF
7425: rm -f conftest$ac_exeext
1.1.1.6 ! root 7426: if { (ac_try="$ac_link"
! 7427: case "(($ac_try" in
! 7428: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7429: *) ac_try_echo=$ac_try;;
! 7430: esac
! 7431: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7432: (eval "$ac_link") 2>&5
1.1 root 7433: ac_status=$?
7434: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.6 ! root 7436: { (case "(($ac_try" in
! 7437: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7438: *) ac_try_echo=$ac_try;;
! 7439: esac
! 7440: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7441: (eval "$ac_try") 2>&5
1.1 root 7442: ac_status=$?
7443: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444: (exit $ac_status); }; }; then
1.1.1.3 root 7445: ac_cv_func_malloc_0_nonnull=yes
1.1 root 7446: else
7447: echo "$as_me: program exited with status $ac_status" >&5
7448: echo "$as_me: failed program was:" >&5
1.1.1.3 root 7449: sed 's/^/| /' conftest.$ac_ext >&5
7450:
1.1 root 7451: ( exit $ac_status )
1.1.1.3 root 7452: ac_cv_func_malloc_0_nonnull=no
1.1 root 7453: fi
1.1.1.6 ! root 7454: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 root 7455: fi
1.1.1.6 ! root 7456:
! 7457:
1.1 root 7458: fi
1.1.1.6 ! root 7459: { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
! 7460: echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
1.1.1.3 root 7461: if test $ac_cv_func_malloc_0_nonnull = yes; then
1.1 root 7462:
7463: cat >>confdefs.h <<\_ACEOF
7464: #define HAVE_MALLOC 1
7465: _ACEOF
7466:
1.1.1.3 root 7467: else
7468: cat >>confdefs.h <<\_ACEOF
7469: #define HAVE_MALLOC 0
7470: _ACEOF
7471:
1.1.1.6 ! root 7472: case " $LIBOBJS " in
1.1.1.3 root 7473: *" malloc.$ac_objext "* ) ;;
1.1.1.6 ! root 7474: *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
! 7475: ;;
1.1.1.3 root 7476: esac
7477:
7478:
7479: cat >>confdefs.h <<\_ACEOF
7480: #define malloc rpl_malloc
7481: _ACEOF
7482:
1.1 root 7483: fi
7484:
1.1.1.3 root 7485:
7486:
1.1.1.6 ! root 7487: { echo "$as_me:$LINENO: checking for working memcmp" >&5
! 7488: echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
1.1 root 7489: if test "${ac_cv_func_memcmp_working+set}" = set; then
7490: echo $ECHO_N "(cached) $ECHO_C" >&6
7491: else
7492: if test "$cross_compiling" = yes; then
7493: ac_cv_func_memcmp_working=no
7494: else
7495: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 7496: /* confdefs.h. */
7497: _ACEOF
7498: cat confdefs.h >>conftest.$ac_ext
7499: cat >>conftest.$ac_ext <<_ACEOF
7500: /* end confdefs.h. */
7501: $ac_includes_default
1.1 root 7502: int
7503: main ()
7504: {
7505:
7506: /* Some versions of memcmp are not 8-bit clean. */
1.1.1.6 ! root 7507: char c0 = '\100', c1 = '\200', c2 = '\201';
1.1 root 7508: if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
1.1.1.6 ! root 7509: return 1;
1.1 root 7510:
7511: /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7512: or more and with at least one buffer not starting on a 4-byte boundary.
7513: William Lewis provided this test program. */
7514: {
7515: char foo[21];
7516: char bar[21];
7517: int i;
7518: for (i = 0; i < 4; i++)
7519: {
1.1.1.3 root 7520: char *a = foo + i;
7521: char *b = bar + i;
7522: strcpy (a, "--------01111111");
7523: strcpy (b, "--------10000000");
7524: if (memcmp (a, b, 16) >= 0)
1.1.1.6 ! root 7525: return 1;
1.1 root 7526: }
1.1.1.6 ! root 7527: return 0;
1.1 root 7528: }
7529:
7530: ;
7531: return 0;
7532: }
7533: _ACEOF
7534: rm -f conftest$ac_exeext
1.1.1.6 ! root 7535: if { (ac_try="$ac_link"
! 7536: case "(($ac_try" in
! 7537: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7538: *) ac_try_echo=$ac_try;;
! 7539: esac
! 7540: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7541: (eval "$ac_link") 2>&5
1.1 root 7542: ac_status=$?
7543: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.6 ! root 7545: { (case "(($ac_try" in
! 7546: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7547: *) ac_try_echo=$ac_try;;
! 7548: esac
! 7549: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7550: (eval "$ac_try") 2>&5
1.1 root 7551: ac_status=$?
7552: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553: (exit $ac_status); }; }; then
7554: ac_cv_func_memcmp_working=yes
7555: else
7556: echo "$as_me: program exited with status $ac_status" >&5
7557: echo "$as_me: failed program was:" >&5
1.1.1.3 root 7558: sed 's/^/| /' conftest.$ac_ext >&5
7559:
1.1 root 7560: ( exit $ac_status )
7561: ac_cv_func_memcmp_working=no
7562: fi
1.1.1.6 ! root 7563: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 root 7564: fi
1.1.1.6 ! root 7565:
! 7566:
1.1 root 7567: fi
1.1.1.6 ! root 7568: { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
! 7569: echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
! 7570: test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
1.1.1.3 root 7571: *" memcmp.$ac_objext "* ) ;;
1.1.1.6 ! root 7572: *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
! 7573: ;;
1.1.1.3 root 7574: esac
7575:
1.1 root 7576:
7577: #AC_FUNC_REALLOC
1.1.1.6 ! root 7578: { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
! 7579: echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
1.1 root 7580: if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
7581: echo $ECHO_N "(cached) $ECHO_C" >&6
7582: else
7583: rm -f conftest.sym conftest.file
7584: echo >conftest.file
7585: if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7586: if test "$cross_compiling" = yes; then
7587: ac_cv_func_lstat_dereferences_slashed_symlink=no
7588: else
7589: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 7590: /* confdefs.h. */
7591: _ACEOF
7592: cat confdefs.h >>conftest.$ac_ext
7593: cat >>conftest.$ac_ext <<_ACEOF
7594: /* end confdefs.h. */
1.1 root 7595: $ac_includes_default
7596: int
7597: main ()
7598: {
7599: struct stat sbuf;
7600: /* Linux will dereference the symlink and fail.
1.1.1.3 root 7601: That is better in the sense that it means we will not
7602: have to compile and use the lstat wrapper. */
1.1.1.6 ! root 7603: return lstat ("conftest.sym/", &sbuf) == 0;
1.1 root 7604: ;
7605: return 0;
7606: }
7607: _ACEOF
7608: rm -f conftest$ac_exeext
1.1.1.6 ! root 7609: if { (ac_try="$ac_link"
! 7610: case "(($ac_try" in
! 7611: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7612: *) ac_try_echo=$ac_try;;
! 7613: esac
! 7614: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7615: (eval "$ac_link") 2>&5
1.1 root 7616: ac_status=$?
7617: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.6 ! root 7619: { (case "(($ac_try" in
! 7620: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7621: *) ac_try_echo=$ac_try;;
! 7622: esac
! 7623: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7624: (eval "$ac_try") 2>&5
1.1 root 7625: ac_status=$?
7626: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627: (exit $ac_status); }; }; then
7628: ac_cv_func_lstat_dereferences_slashed_symlink=yes
7629: else
7630: echo "$as_me: program exited with status $ac_status" >&5
7631: echo "$as_me: failed program was:" >&5
1.1.1.3 root 7632: sed 's/^/| /' conftest.$ac_ext >&5
7633:
1.1 root 7634: ( exit $ac_status )
7635: ac_cv_func_lstat_dereferences_slashed_symlink=no
7636: fi
1.1.1.6 ! root 7637: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 root 7638: fi
1.1.1.6 ! root 7639:
! 7640:
1.1 root 7641: else
7642: # If the `ln -s' command failed, then we probably don't even
7643: # have an lstat function.
7644: ac_cv_func_lstat_dereferences_slashed_symlink=no
7645: fi
7646: rm -f conftest.sym conftest.file
7647:
7648: fi
1.1.1.6 ! root 7649: { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
! 7650: echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
1.1 root 7651:
7652: test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7653:
7654: cat >>confdefs.h <<_ACEOF
7655: #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7656: _ACEOF
7657:
7658:
7659: if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
1.1.1.6 ! root 7660: case " $LIBOBJS " in
1.1.1.3 root 7661: *" lstat.$ac_objext "* ) ;;
1.1.1.6 ! root 7662: *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
! 7663: ;;
1.1.1.3 root 7664: esac
7665:
1.1 root 7666: fi
7667:
1.1.1.6 ! root 7668: { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
! 7669: echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
1.1 root 7670: if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
7671: echo $ECHO_N "(cached) $ECHO_C" >&6
7672: else
7673: if test "$cross_compiling" = yes; then
7674: ac_cv_func_stat_empty_string_bug=yes
7675: else
7676: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 7677: /* confdefs.h. */
7678: _ACEOF
7679: cat confdefs.h >>conftest.$ac_ext
7680: cat >>conftest.$ac_ext <<_ACEOF
7681: /* end confdefs.h. */
1.1 root 7682: $ac_includes_default
7683: int
7684: main ()
7685: {
7686: struct stat sbuf;
1.1.1.6 ! root 7687: return stat ("", &sbuf) == 0;
1.1 root 7688: ;
7689: return 0;
7690: }
7691: _ACEOF
7692: rm -f conftest$ac_exeext
1.1.1.6 ! root 7693: if { (ac_try="$ac_link"
! 7694: case "(($ac_try" in
! 7695: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7696: *) ac_try_echo=$ac_try;;
! 7697: esac
! 7698: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7699: (eval "$ac_link") 2>&5
1.1 root 7700: ac_status=$?
7701: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.6 ! root 7703: { (case "(($ac_try" in
! 7704: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7705: *) ac_try_echo=$ac_try;;
! 7706: esac
! 7707: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7708: (eval "$ac_try") 2>&5
1.1 root 7709: ac_status=$?
7710: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711: (exit $ac_status); }; }; then
1.1.1.6 ! root 7712: ac_cv_func_stat_empty_string_bug=no
1.1 root 7713: else
7714: echo "$as_me: program exited with status $ac_status" >&5
7715: echo "$as_me: failed program was:" >&5
1.1.1.3 root 7716: sed 's/^/| /' conftest.$ac_ext >&5
7717:
1.1 root 7718: ( exit $ac_status )
1.1.1.6 ! root 7719: ac_cv_func_stat_empty_string_bug=yes
1.1 root 7720: fi
1.1.1.6 ! root 7721: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 root 7722: fi
1.1.1.6 ! root 7723:
! 7724:
1.1 root 7725: fi
1.1.1.6 ! root 7726: { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
! 7727: echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
1.1 root 7728: if test $ac_cv_func_stat_empty_string_bug = yes; then
1.1.1.6 ! root 7729: case " $LIBOBJS " in
1.1.1.3 root 7730: *" stat.$ac_objext "* ) ;;
1.1.1.6 ! root 7731: *) LIBOBJS="$LIBOBJS stat.$ac_objext"
! 7732: ;;
1.1.1.3 root 7733: esac
7734:
1.1 root 7735:
7736: cat >>confdefs.h <<_ACEOF
7737: #define HAVE_STAT_EMPTY_STRING_BUG 1
7738: _ACEOF
7739:
7740: fi
7741:
7742:
7743:
7744:
7745:
7746:
7747:
7748:
7749:
7750:
7751:
7752:
7753: for ac_func in getcwd memmove memset mkdir rmdir strcasecmp \
7754: strchr strerror strncasecmp strrchr strstr
7755: do
7756: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.1.1.6 ! root 7757: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 7758: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 7759: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 7760: echo $ECHO_N "(cached) $ECHO_C" >&6
7761: else
7762: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 7763: /* confdefs.h. */
7764: _ACEOF
7765: cat confdefs.h >>conftest.$ac_ext
7766: cat >>conftest.$ac_ext <<_ACEOF
7767: /* end confdefs.h. */
7768: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7769: For example, HP-UX 11i <limits.h> declares gettimeofday. */
7770: #define $ac_func innocuous_$ac_func
7771:
1.1 root 7772: /* System header to define __stub macros and hopefully few prototypes,
1.1.1.3 root 7773: which can conflict with char $ac_func (); below.
7774: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7775: <limits.h> exists even on freestanding compilers. */
7776:
7777: #ifdef __STDC__
7778: # include <limits.h>
7779: #else
7780: # include <assert.h>
7781: #endif
7782:
7783: #undef $ac_func
7784:
1.1.1.6 ! root 7785: /* Override any GCC internal prototype to avoid an error.
! 7786: Use char because int might match the return type of a GCC
! 7787: builtin and then its argument prototype would still apply. */
1.1 root 7788: #ifdef __cplusplus
7789: extern "C"
7790: #endif
7791: char $ac_func ();
7792: /* The GNU C library defines this for functions which it implements
7793: to always fail with ENOSYS. Some functions are actually named
7794: something starting with __ and the normal name is an alias. */
1.1.1.6 ! root 7795: #if defined __stub_$ac_func || defined __stub___$ac_func
1.1 root 7796: choke me
7797: #endif
7798:
1.1.1.3 root 7799: int
7800: main ()
7801: {
1.1.1.6 ! root 7802: return $ac_func ();
1.1 root 7803: ;
7804: return 0;
7805: }
7806: _ACEOF
7807: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.6 ! root 7808: if { (ac_try="$ac_link"
! 7809: case "(($ac_try" in
! 7810: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7811: *) ac_try_echo=$ac_try;;
! 7812: esac
! 7813: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7814: (eval "$ac_link") 2>conftest.er1
1.1 root 7815: ac_status=$?
1.1.1.3 root 7816: grep -v '^ *+' conftest.er1 >conftest.err
7817: rm -f conftest.er1
7818: cat conftest.err >&5
1.1 root 7819: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.6 ! root 7820: (exit $ac_status); } && {
! 7821: test -z "$ac_c_werror_flag" ||
! 7822: test ! -s conftest.err
! 7823: } && test -s conftest$ac_exeext &&
! 7824: $as_test_x conftest$ac_exeext; then
1.1 root 7825: eval "$as_ac_var=yes"
7826: else
7827: echo "$as_me: failed program was:" >&5
1.1.1.3 root 7828: sed 's/^/| /' conftest.$ac_ext >&5
7829:
1.1.1.6 ! root 7830: eval "$as_ac_var=no"
1.1 root 7831: fi
1.1.1.6 ! root 7832:
! 7833: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.3 root 7834: conftest$ac_exeext conftest.$ac_ext
1.1 root 7835: fi
1.1.1.6 ! root 7836: ac_res=`eval echo '${'$as_ac_var'}'`
! 7837: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 7838: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 7839: if test `eval echo '${'$as_ac_var'}'` = yes; then
7840: cat >>confdefs.h <<_ACEOF
7841: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7842: _ACEOF
7843:
7844: else
7845: { { echo "$as_me:$LINENO: error: A necessary function could not be found." >&5
7846: echo "$as_me: error: A necessary function could not be found." >&2;}
7847: { (exit 1); exit 1; }; }
7848: fi
7849: done
7850:
7851:
7852:
1.1.1.6 ! root 7853: for ac_func in cfmakeraw setenv
! 7854: do
! 7855: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 7856: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 7857: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 7858: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 7859: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7860: else
! 7861: cat >conftest.$ac_ext <<_ACEOF
! 7862: /* confdefs.h. */
! 7863: _ACEOF
! 7864: cat confdefs.h >>conftest.$ac_ext
! 7865: cat >>conftest.$ac_ext <<_ACEOF
! 7866: /* end confdefs.h. */
! 7867: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 7868: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 7869: #define $ac_func innocuous_$ac_func
! 7870:
! 7871: /* System header to define __stub macros and hopefully few prototypes,
! 7872: which can conflict with char $ac_func (); below.
! 7873: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 7874: <limits.h> exists even on freestanding compilers. */
! 7875:
! 7876: #ifdef __STDC__
! 7877: # include <limits.h>
! 7878: #else
! 7879: # include <assert.h>
! 7880: #endif
! 7881:
! 7882: #undef $ac_func
! 7883:
! 7884: /* Override any GCC internal prototype to avoid an error.
! 7885: Use char because int might match the return type of a GCC
! 7886: builtin and then its argument prototype would still apply. */
! 7887: #ifdef __cplusplus
! 7888: extern "C"
! 7889: #endif
! 7890: char $ac_func ();
! 7891: /* The GNU C library defines this for functions which it implements
! 7892: to always fail with ENOSYS. Some functions are actually named
! 7893: something starting with __ and the normal name is an alias. */
! 7894: #if defined __stub_$ac_func || defined __stub___$ac_func
! 7895: choke me
! 7896: #endif
! 7897:
! 7898: int
! 7899: main ()
! 7900: {
! 7901: return $ac_func ();
! 7902: ;
! 7903: return 0;
! 7904: }
! 7905: _ACEOF
! 7906: rm -f conftest.$ac_objext conftest$ac_exeext
! 7907: if { (ac_try="$ac_link"
! 7908: case "(($ac_try" in
! 7909: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7910: *) ac_try_echo=$ac_try;;
! 7911: esac
! 7912: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7913: (eval "$ac_link") 2>conftest.er1
! 7914: ac_status=$?
! 7915: grep -v '^ *+' conftest.er1 >conftest.err
! 7916: rm -f conftest.er1
! 7917: cat conftest.err >&5
! 7918: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7919: (exit $ac_status); } && {
! 7920: test -z "$ac_c_werror_flag" ||
! 7921: test ! -s conftest.err
! 7922: } && test -s conftest$ac_exeext &&
! 7923: $as_test_x conftest$ac_exeext; then
! 7924: eval "$as_ac_var=yes"
! 7925: else
! 7926: echo "$as_me: failed program was:" >&5
! 7927: sed 's/^/| /' conftest.$ac_ext >&5
! 7928:
! 7929: eval "$as_ac_var=no"
! 7930: fi
! 7931:
! 7932: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 7933: conftest$ac_exeext conftest.$ac_ext
! 7934: fi
! 7935: ac_res=`eval echo '${'$as_ac_var'}'`
! 7936: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 7937: echo "${ECHO_T}$ac_res" >&6; }
! 7938: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 7939: cat >>confdefs.h <<_ACEOF
! 7940: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 7941: _ACEOF
! 7942:
! 7943: fi
! 7944: done
! 7945:
! 7946:
1.1 root 7947:
7948:
1.1.1.6 ! root 7949: # Convert e.g. /usr/share to /usr/share/hatari :
1.1 root 7950: if test "${datadir}" = '${prefix}/share'; then
7951: datadir='${prefix}/share/hatari'
7952: fi
1.1.1.6 ! root 7953: if test "${datadir}" = '${datarootdir}'; then
! 7954: datadir='${datarootdir}/hatari'
! 7955: fi
! 7956:
! 7957: for _lcl_i in bindir:datadir:bin2datadir; do
! 7958: _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
! 7959: _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
! 7960: _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
! 7961: _lcl_receval="$_lcl_from"
! 7962: _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
! 7963: test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
! 7964: _lcl_receval_old=''
! 7965: while test "$_lcl_receval_old" != "$_lcl_receval"; do
! 7966: _lcl_receval_old="$_lcl_receval"
! 7967: eval _lcl_receval="\"$_lcl_receval\""
! 7968: done
! 7969: echo "$_lcl_receval")`
! 7970: _lcl_receval="$_lcl_to"
! 7971: _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
! 7972: test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
! 7973: _lcl_receval_old=''
! 7974: while test "$_lcl_receval_old" != "$_lcl_receval"; do
! 7975: _lcl_receval_old="$_lcl_receval"
! 7976: eval _lcl_receval="\"$_lcl_receval\""
! 7977: done
! 7978: echo "$_lcl_receval")`
! 7979: _lcl_notation="$_lcl_from$_lcl_to"
! 7980: case ":$_lcl_from:" in
! 7981: # change empty paths to '.'
! 7982: ::) _lcl_from='.' ;;
! 7983: # strip trailing slashes
! 7984: :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
! 7985: :*:) ;;
! 7986: esac
! 7987: # squeze repeated slashes
! 7988: case '/' in
! 7989: # if the path contains any backslashes, turn slashes into backslashes
! 7990: *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
! 7991: # if the path contains slashes, also turn backslashes into slashes
! 7992: *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
! 7993: esac
! 7994: case ":$_lcl_to:" in
! 7995: # change empty paths to '.'
! 7996: ::) _lcl_to='.' ;;
! 7997: # strip trailing slashes
! 7998: :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
! 7999: :*:) ;;
! 8000: esac
! 8001: # squeze repeated slashes
! 8002: case '/' in
! 8003: # if the path contains any backslashes, turn slashes into backslashes
! 8004: *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
! 8005: # if the path contains slashes, also turn backslashes into slashes
! 8006: *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
! 8007: esac
! 8008: _lcl_common_prefix=''
! 8009: _lcl_second_prefix_match=''
! 8010: while test "$_lcl_second_prefix_match" != 0; do
! 8011: _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
! 8012: _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
! 8013: if test "$_lcl_second_prefix_match" != 0; then
! 8014: if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
! 8015: _lcl_common_prefix="$_lcl_first_prefix"
! 8016: else
! 8017: _lcl_second_prefix_match=0
! 8018: fi
! 8019: fi
! 8020: done
! 8021: _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
! 8022: _lcl_first_rel=''
! 8023: _lcl_tmp='xxx'
! 8024: while test "$_lcl_tmp" != ''; do
! 8025: _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
! 8026: if test "$_lcl_first_suffix" != ''; then
! 8027: _lcl_first_suffix="$_lcl_tmp"
! 8028: _lcl_first_rel="../$_lcl_first_rel"
! 8029: fi
! 8030: done
! 8031: _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
! 8032: _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
! 8033: case ":$_lcl_result_tmp:" in
! 8034: # change empty paths to '.'
! 8035: ::) _lcl_result_tmp='.' ;;
! 8036: # strip trailing slashes
! 8037: :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
! 8038: :*:) ;;
! 8039: esac
! 8040: # squeze repeated slashes
! 8041: case "$_lcl_notation" in
! 8042: # if the path contains any backslashes, turn slashes into backslashes
! 8043: *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
! 8044: # if the path contains slashes, also turn backslashes into slashes
! 8045: *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
! 8046: esac
! 8047: eval $_lcl_result_var='$_lcl_result_tmp'
! 8048: done
! 8049:
! 8050: cat >>confdefs.h <<_ACEOF
! 8051: #define BIN2DATADIR "${bin2datadir}"
! 8052: _ACEOF
! 8053:
1.1 root 8054:
8055:
8056:
8057:
8058:
1.1.1.6 ! root 8059: ac_config_files="$ac_config_files Makefile.cnf"
! 8060:
1.1 root 8061: cat >confcache <<\_ACEOF
8062: # This file is a shell script that caches the results of configure
8063: # tests run on this system so they can be shared between configure
8064: # scripts and configure runs, see configure's option --config-cache.
8065: # It is not useful on other systems. If it contains results you don't
8066: # want to keep, you may remove or edit it.
8067: #
8068: # config.status only pays attention to the cache file if you give it
8069: # the --recheck option to rerun configure.
8070: #
1.1.1.3 root 8071: # `ac_cv_env_foo' variables (set or unset) will be overridden when
1.1 root 8072: # loading this file, other *unset* `ac_cv_foo' will be assigned the
8073: # following values.
8074:
8075: _ACEOF
8076:
8077: # The following way of writing the cache mishandles newlines in values,
8078: # but we know of no workaround that is simple, portable, and efficient.
1.1.1.6 ! root 8079: # So, we kill variables containing newlines.
1.1 root 8080: # Ultrix sh set writes to stderr and can't be redirected directly,
8081: # and sets the high bit in the cache file unless we assign to the vars.
1.1.1.6 ! root 8082: (
! 8083: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
! 8084: eval ac_val=\$$ac_var
! 8085: case $ac_val in #(
! 8086: *${as_nl}*)
! 8087: case $ac_var in #(
! 8088: *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
! 8089: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
! 8090: esac
! 8091: case $ac_var in #(
! 8092: _ | IFS | as_nl) ;; #(
! 8093: *) $as_unset $ac_var ;;
! 8094: esac ;;
! 8095: esac
! 8096: done
! 8097:
1.1 root 8098: (set) 2>&1 |
1.1.1.6 ! root 8099: case $as_nl`(ac_space=' '; set) 2>&1` in #(
! 8100: *${as_nl}ac_space=\ *)
1.1 root 8101: # `set' does not quote correctly, so add quotes (double-quote
8102: # substitution turns \\\\ into \\, and sed turns \\ into \).
8103: sed -n \
1.1.1.3 root 8104: "s/'/'\\\\''/g;
8105: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.1.1.6 ! root 8106: ;; #(
1.1 root 8107: *)
8108: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.1.1.6 ! root 8109: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.1 root 8110: ;;
1.1.1.6 ! root 8111: esac |
! 8112: sort
! 8113: ) |
1.1 root 8114: sed '
1.1.1.6 ! root 8115: /^ac_cv_env_/b end
1.1 root 8116: t clear
1.1.1.6 ! root 8117: :clear
1.1 root 8118: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8119: t end
1.1.1.6 ! root 8120: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
! 8121: :end' >>confcache
! 8122: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
! 8123: if test -w "$cache_file"; then
! 8124: test "x$cache_file" != "x/dev/null" &&
! 8125: { echo "$as_me:$LINENO: updating cache $cache_file" >&5
! 8126: echo "$as_me: updating cache $cache_file" >&6;}
1.1 root 8127: cat confcache >$cache_file
8128: else
1.1.1.6 ! root 8129: { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
! 8130: echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 root 8131: fi
8132: fi
8133: rm -f confcache
8134:
8135: test "x$prefix" = xNONE && prefix=$ac_default_prefix
8136: # Let make expand exec_prefix.
8137: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8138:
1.1.1.6 ! root 8139: DEFS=-DHAVE_CONFIG_H
1.1 root 8140:
1.1.1.3 root 8141: ac_libobjs=
8142: ac_ltlibobjs=
8143: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8144: # 1. Remove the extension, and $U if already installed.
1.1.1.6 ! root 8145: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
! 8146: ac_i=`echo "$ac_i" | sed "$ac_script"`
! 8147: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
! 8148: # will be set to the directory where LIBOBJS objects are built.
! 8149: ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
! 8150: ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
1.1.1.3 root 8151: done
8152: LIBOBJS=$ac_libobjs
8153:
8154: LTLIBOBJS=$ac_ltlibobjs
8155:
8156:
1.1 root 8157:
8158: : ${CONFIG_STATUS=./config.status}
8159: ac_clean_files_save=$ac_clean_files
8160: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8161: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8162: echo "$as_me: creating $CONFIG_STATUS" >&6;}
8163: cat >$CONFIG_STATUS <<_ACEOF
8164: #! $SHELL
8165: # Generated by $as_me.
8166: # Run this file to recreate the current configuration.
8167: # Compiler output produced by configure, useful for debugging
8168: # configure, is in config.log if it exists.
8169:
8170: debug=false
1.1.1.3 root 8171: ac_cs_recheck=false
8172: ac_cs_silent=false
1.1 root 8173: SHELL=\${CONFIG_SHELL-$SHELL}
8174: _ACEOF
8175:
8176: cat >>$CONFIG_STATUS <<\_ACEOF
8177: ## --------------------- ##
8178: ## M4sh Initialization. ##
8179: ## --------------------- ##
8180:
1.1.1.6 ! root 8181: # Be more Bourne compatible
! 8182: DUALCASE=1; export DUALCASE # for MKS sh
1.1 root 8183: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8184: emulate sh
8185: NULLCMD=:
1.1.1.3 root 8186: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8187: # is contrary to our usage. Disable this feature.
8188: alias -g '${1+"$@"}'='"$@"'
1.1.1.6 ! root 8189: setopt NO_GLOB_SUBST
! 8190: else
! 8191: case `(set -o) 2>/dev/null` in
! 8192: *posix*) set -o posix ;;
! 8193: esac
! 8194:
! 8195: fi
! 8196:
! 8197:
! 8198:
! 8199:
! 8200: # PATH needs CR
! 8201: # Avoid depending upon Character Ranges.
! 8202: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
! 8203: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
! 8204: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
! 8205: as_cr_digits='0123456789'
! 8206: as_cr_alnum=$as_cr_Letters$as_cr_digits
! 8207:
! 8208: # The user is always right.
! 8209: if test "${PATH_SEPARATOR+set}" != set; then
! 8210: echo "#! /bin/sh" >conf$$.sh
! 8211: echo "exit 0" >>conf$$.sh
! 8212: chmod +x conf$$.sh
! 8213: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
! 8214: PATH_SEPARATOR=';'
! 8215: else
! 8216: PATH_SEPARATOR=:
! 8217: fi
! 8218: rm -f conf$$.sh
1.1 root 8219: fi
8220:
8221: # Support unset when possible.
1.1.1.3 root 8222: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.1 root 8223: as_unset=unset
8224: else
8225: as_unset=false
8226: fi
8227:
1.1.1.3 root 8228:
1.1.1.6 ! root 8229: # IFS
! 8230: # We need space, tab and new line, in precisely that order. Quoting is
! 8231: # there to prevent editors from complaining about space-tab.
! 8232: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
! 8233: # splitting by setting IFS to empty value.)
! 8234: as_nl='
! 8235: '
! 8236: IFS=" "" $as_nl"
! 8237:
! 8238: # Find who we are. Look in the path if we contain no directory separator.
! 8239: case $0 in
! 8240: *[\\/]* ) as_myself=$0 ;;
! 8241: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 8242: for as_dir in $PATH
! 8243: do
! 8244: IFS=$as_save_IFS
! 8245: test -z "$as_dir" && as_dir=.
! 8246: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
! 8247: done
! 8248: IFS=$as_save_IFS
! 8249:
! 8250: ;;
! 8251: esac
! 8252: # We did not find ourselves, most probably we were run as `sh COMMAND'
! 8253: # in which case we are not to be found in the path.
! 8254: if test "x$as_myself" = x; then
! 8255: as_myself=$0
! 8256: fi
! 8257: if test ! -f "$as_myself"; then
! 8258: echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
! 8259: { (exit 1); exit 1; }
! 8260: fi
! 8261:
1.1.1.3 root 8262: # Work around bugs in pre-3.0 UWIN ksh.
1.1.1.6 ! root 8263: for as_var in ENV MAIL MAILPATH
! 8264: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
! 8265: done
1.1.1.3 root 8266: PS1='$ '
8267: PS2='> '
8268: PS4='+ '
8269:
8270: # NLS nuisances.
8271: for as_var in \
8272: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8273: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8274: LC_TELEPHONE LC_TIME
8275: do
8276: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8277: eval $as_var=C; export $as_var
8278: else
1.1.1.6 ! root 8279: ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
1.1.1.3 root 8280: fi
8281: done
8282:
8283: # Required to use basename.
1.1.1.6 ! root 8284: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 8285: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1.1.3 root 8286: as_expr=expr
8287: else
8288: as_expr=false
8289: fi
8290:
1.1.1.6 ! root 8291: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.1.1.3 root 8292: as_basename=basename
8293: else
8294: as_basename=false
8295: fi
1.1 root 8296:
8297:
8298: # Name of the executable.
1.1.1.6 ! root 8299: as_me=`$as_basename -- "$0" ||
1.1 root 8300: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8301: X"$0" : 'X\(//\)$' \| \
1.1.1.6 ! root 8302: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.1 root 8303: echo X/"$0" |
1.1.1.6 ! root 8304: sed '/^.*\/\([^/][^/]*\)\/*$/{
! 8305: s//\1/
! 8306: q
! 8307: }
! 8308: /^X\/\(\/\/\)$/{
! 8309: s//\1/
! 8310: q
! 8311: }
! 8312: /^X\/\(\/\).*/{
! 8313: s//\1/
! 8314: q
! 8315: }
! 8316: s/.*/./; q'`
1.1 root 8317:
1.1.1.6 ! root 8318: # CDPATH.
! 8319: $as_unset CDPATH
1.1 root 8320:
8321:
8322:
8323: as_lineno_1=$LINENO
8324: as_lineno_2=$LINENO
8325: test "x$as_lineno_1" != "x$as_lineno_2" &&
1.1.1.6 ! root 8326: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1.1 root 8327:
8328: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8329: # uniformly replaced by the line number. The first 'sed' inserts a
1.1.1.6 ! root 8330: # line-number line after each line using $LINENO; the second 'sed'
! 8331: # does the real work. The second script uses 'N' to pair each
! 8332: # line-number line with the line containing $LINENO, and appends
! 8333: # trailing '-' during substitution so that $LINENO is not a special
! 8334: # case at line end.
1.1 root 8335: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1.1.1.6 ! root 8336: # scripts with optimization help from Paolo Bonzini. Blame Lee
! 8337: # E. McMahon (1931-1989) for sed's syntax. :-)
! 8338: sed -n '
! 8339: p
! 8340: /[$]LINENO/=
! 8341: ' <$as_myself |
1.1 root 8342: sed '
1.1.1.6 ! root 8343: s/[$]LINENO.*/&-/
! 8344: t lineno
! 8345: b
! 8346: :lineno
1.1 root 8347: N
1.1.1.6 ! root 8348: :loop
! 8349: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.1 root 8350: t loop
1.1.1.6 ! root 8351: s/-\n.*//
1.1 root 8352: ' >$as_me.lineno &&
1.1.1.6 ! root 8353: chmod +x "$as_me.lineno" ||
! 8354: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
1.1 root 8355: { (exit 1); exit 1; }; }
8356:
8357: # Don't try to exec as it changes $[0], causing all sort of problems
8358: # (the dirname of $[0] is not the place where we might find the
1.1.1.6 ! root 8359: # original and so on. Autoconf is especially sensitive to this).
! 8360: . "./$as_me.lineno"
1.1 root 8361: # Exit status is that of the last command.
8362: exit
8363: }
8364:
8365:
1.1.1.6 ! root 8366: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
! 8367: as_dirname=dirname
! 8368: else
! 8369: as_dirname=false
! 8370: fi
! 8371:
! 8372: ECHO_C= ECHO_N= ECHO_T=
! 8373: case `echo -n x` in
! 8374: -n*)
! 8375: case `echo 'x\c'` in
! 8376: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
! 8377: *) ECHO_C='\c';;
! 8378: esac;;
! 8379: *)
! 8380: ECHO_N='-n';;
1.1 root 8381: esac
8382:
1.1.1.6 ! root 8383: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 8384: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1 root 8385: as_expr=expr
8386: else
8387: as_expr=false
8388: fi
8389:
8390: rm -f conf$$ conf$$.exe conf$$.file
1.1.1.6 ! root 8391: if test -d conf$$.dir; then
! 8392: rm -f conf$$.dir/conf$$.file
! 8393: else
! 8394: rm -f conf$$.dir
! 8395: mkdir conf$$.dir
! 8396: fi
1.1 root 8397: echo >conf$$.file
8398: if ln -s conf$$.file conf$$ 2>/dev/null; then
1.1.1.6 ! root 8399: as_ln_s='ln -s'
! 8400: # ... but there are two gotchas:
! 8401: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
! 8402: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
! 8403: # In both cases, we have to default to `cp -p'.
! 8404: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.1 root 8405: as_ln_s='cp -p'
8406: elif ln conf$$.file conf$$ 2>/dev/null; then
8407: as_ln_s=ln
8408: else
8409: as_ln_s='cp -p'
8410: fi
1.1.1.6 ! root 8411: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
! 8412: rmdir conf$$.dir 2>/dev/null
1.1 root 8413:
1.1.1.3 root 8414: if mkdir -p . 2>/dev/null; then
8415: as_mkdir_p=:
8416: else
8417: test -d ./-p && rmdir ./-p
8418: as_mkdir_p=false
8419: fi
8420:
1.1.1.6 ! root 8421: if test -x / >/dev/null 2>&1; then
! 8422: as_test_x='test -x'
! 8423: else
! 8424: if ls -dL / >/dev/null 2>&1; then
! 8425: as_ls_L_option=L
! 8426: else
! 8427: as_ls_L_option=
! 8428: fi
! 8429: as_test_x='
! 8430: eval sh -c '\''
! 8431: if test -d "$1"; then
! 8432: test -d "$1/.";
! 8433: else
! 8434: case $1 in
! 8435: -*)set "./$1";;
! 8436: esac;
! 8437: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
! 8438: ???[sx]*):;;*)false;;esac;fi
! 8439: '\'' sh
! 8440: '
! 8441: fi
! 8442: as_executable_p=$as_test_x
1.1 root 8443:
8444: # Sed expression to map a string onto a valid CPP name.
1.1.1.3 root 8445: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.1 root 8446:
8447: # Sed expression to map a string onto a valid variable name.
1.1.1.3 root 8448: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.1 root 8449:
8450:
8451: exec 6>&1
8452:
1.1.1.6 ! root 8453: # Save the log message, to keep $[0] and so on meaningful, and to
1.1 root 8454: # report actual input values of CONFIG_FILES etc. instead of their
1.1.1.6 ! root 8455: # values after options handling.
! 8456: ac_log="
! 8457: This file was extended by hatari $as_me 1.0.0, which was
! 8458: generated by GNU Autoconf 2.61. Invocation command line was
1.1 root 8459:
8460: CONFIG_FILES = $CONFIG_FILES
8461: CONFIG_HEADERS = $CONFIG_HEADERS
8462: CONFIG_LINKS = $CONFIG_LINKS
8463: CONFIG_COMMANDS = $CONFIG_COMMANDS
8464: $ $0 $@
8465:
1.1.1.6 ! root 8466: on `(hostname || uname -n) 2>/dev/null | sed 1q`
! 8467: "
! 8468:
1.1 root 8469: _ACEOF
8470:
1.1.1.6 ! root 8471: cat >>$CONFIG_STATUS <<_ACEOF
1.1 root 8472: # Files that config.status was made for.
1.1.1.6 ! root 8473: config_files="$ac_config_files"
! 8474: config_headers="$ac_config_headers"
1.1 root 8475:
1.1.1.6 ! root 8476: _ACEOF
1.1 root 8477:
8478: cat >>$CONFIG_STATUS <<\_ACEOF
8479: ac_cs_usage="\
8480: \`$as_me' instantiates files from templates according to the
8481: current configuration.
8482:
8483: Usage: $0 [OPTIONS] [FILE]...
8484:
8485: -h, --help print this help, then exit
1.1.1.6 ! root 8486: -V, --version print version number and configuration settings, then exit
1.1.1.3 root 8487: -q, --quiet do not print progress messages
1.1 root 8488: -d, --debug don't remove temporary files
8489: --recheck update $as_me by reconfiguring in the same conditions
8490: --file=FILE[:TEMPLATE]
1.1.1.3 root 8491: instantiate the configuration file FILE
1.1.1.6 ! root 8492: --header=FILE[:TEMPLATE]
! 8493: instantiate the configuration header FILE
1.1 root 8494:
8495: Configuration files:
8496: $config_files
8497:
1.1.1.6 ! root 8498: Configuration headers:
! 8499: $config_headers
! 8500:
1.1 root 8501: Report bugs to <[email protected]>."
8502:
1.1.1.6 ! root 8503: _ACEOF
1.1 root 8504: cat >>$CONFIG_STATUS <<_ACEOF
8505: ac_cs_version="\\
1.1.1.6 ! root 8506: hatari config.status 1.0.0
! 8507: configured by $0, generated by GNU Autoconf 2.61,
! 8508: with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1.1 root 8509:
1.1.1.6 ! root 8510: Copyright (C) 2006 Free Software Foundation, Inc.
1.1 root 8511: This config.status script is free software; the Free Software Foundation
8512: gives unlimited permission to copy, distribute and modify it."
1.1.1.6 ! root 8513:
! 8514: ac_pwd='$ac_pwd'
! 8515: srcdir='$srcdir'
! 8516: INSTALL='$INSTALL'
1.1 root 8517: _ACEOF
8518:
8519: cat >>$CONFIG_STATUS <<\_ACEOF
8520: # If no file are specified by the user, then we need to provide default
8521: # value. By we need to know if files were specified by the user.
8522: ac_need_defaults=:
8523: while test $# != 0
8524: do
8525: case $1 in
8526: --*=*)
1.1.1.6 ! root 8527: ac_option=`expr "X$1" : 'X\([^=]*\)='`
! 8528: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1.1.1.3 root 8529: ac_shift=:
8530: ;;
1.1.1.6 ! root 8531: *)
1.1.1.3 root 8532: ac_option=$1
8533: ac_optarg=$2
8534: ac_shift=shift
1.1 root 8535: ;;
8536: esac
8537:
1.1.1.3 root 8538: case $ac_option in
1.1 root 8539: # Handling of the options.
1.1.1.3 root 8540: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8541: ac_cs_recheck=: ;;
1.1.1.6 ! root 8542: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
! 8543: echo "$ac_cs_version"; exit ;;
! 8544: --debug | --debu | --deb | --de | --d | -d )
1.1 root 8545: debug=: ;;
8546: --file | --fil | --fi | --f )
1.1.1.3 root 8547: $ac_shift
8548: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
1.1 root 8549: ac_need_defaults=false;;
8550: --header | --heade | --head | --hea )
1.1.1.3 root 8551: $ac_shift
8552: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
1.1 root 8553: ac_need_defaults=false;;
1.1.1.6 ! root 8554: --he | --h)
! 8555: # Conflict between --help and --header
! 8556: { echo "$as_me: error: ambiguous option: $1
! 8557: Try \`$0 --help' for more information." >&2
! 8558: { (exit 1); exit 1; }; };;
! 8559: --help | --hel | -h )
! 8560: echo "$ac_cs_usage"; exit ;;
1.1.1.3 root 8561: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8562: | -silent | --silent | --silen | --sile | --sil | --si | --s)
8563: ac_cs_silent=: ;;
1.1 root 8564:
8565: # This is an error.
1.1.1.6 ! root 8566: -*) { echo "$as_me: error: unrecognized option: $1
! 8567: Try \`$0 --help' for more information." >&2
1.1 root 8568: { (exit 1); exit 1; }; } ;;
8569:
1.1.1.6 ! root 8570: *) ac_config_targets="$ac_config_targets $1"
! 8571: ac_need_defaults=false ;;
1.1 root 8572:
8573: esac
8574: shift
8575: done
8576:
1.1.1.3 root 8577: ac_configure_extra_args=
8578:
8579: if $ac_cs_silent; then
8580: exec 6>/dev/null
8581: ac_configure_extra_args="$ac_configure_extra_args --silent"
8582: fi
8583:
8584: _ACEOF
8585: cat >>$CONFIG_STATUS <<_ACEOF
8586: if \$ac_cs_recheck; then
1.1.1.6 ! root 8587: echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
! 8588: CONFIG_SHELL=$SHELL
! 8589: export CONFIG_SHELL
! 8590: exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.1.1.3 root 8591: fi
8592:
1.1 root 8593: _ACEOF
1.1.1.6 ! root 8594: cat >>$CONFIG_STATUS <<\_ACEOF
! 8595: exec 5>>config.log
! 8596: {
! 8597: echo
! 8598: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
! 8599: ## Running $as_me. ##
! 8600: _ASBOX
! 8601: echo "$ac_log"
! 8602: } >&5
1.1 root 8603:
1.1.1.6 ! root 8604: _ACEOF
! 8605: cat >>$CONFIG_STATUS <<_ACEOF
! 8606: _ACEOF
1.1 root 8607:
8608: cat >>$CONFIG_STATUS <<\_ACEOF
1.1.1.6 ! root 8609:
! 8610: # Handling of arguments.
1.1 root 8611: for ac_config_target in $ac_config_targets
8612: do
1.1.1.6 ! root 8613: case $ac_config_target in
! 8614: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
! 8615: "Makefile.cnf") CONFIG_FILES="$CONFIG_FILES Makefile.cnf" ;;
! 8616:
1.1 root 8617: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8618: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8619: { (exit 1); exit 1; }; };;
8620: esac
8621: done
8622:
1.1.1.6 ! root 8623:
1.1 root 8624: # If the user did not use the arguments to specify the items to instantiate,
8625: # then the envvar interface is used. Set only those that are not.
8626: # We use the long form for the default assignment because of an extremely
8627: # bizarre bug on SunOS 4.1.3.
8628: if $ac_need_defaults; then
8629: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
1.1.1.6 ! root 8630: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
1.1 root 8631: fi
8632:
1.1.1.3 root 8633: # Have a temporary directory for convenience. Make it in the build tree
1.1.1.6 ! root 8634: # simply because there is no reason against having it here, and in addition,
1.1.1.3 root 8635: # creating and moving files from /tmp can sometimes cause problems.
1.1.1.6 ! root 8636: # Hook for its removal unless debugging.
! 8637: # Note that there is a small window in which the directory will not be cleaned:
! 8638: # after its creation but before its name has been assigned to `$tmp'.
1.1 root 8639: $debug ||
8640: {
1.1.1.6 ! root 8641: tmp=
! 8642: trap 'exit_status=$?
! 8643: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
! 8644: ' 0
1.1 root 8645: trap '{ (exit 1); exit 1; }' 1 2 13 15
8646: }
8647: # Create a (secure) tmp directory for tmp files.
1.1.1.3 root 8648:
1.1 root 8649: {
1.1.1.6 ! root 8650: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.1 root 8651: test -n "$tmp" && test -d "$tmp"
8652: } ||
8653: {
1.1.1.6 ! root 8654: tmp=./conf$$-$RANDOM
! 8655: (umask 077 && mkdir "$tmp")
1.1 root 8656: } ||
8657: {
1.1.1.3 root 8658: echo "$me: cannot create a temporary directory in ." >&2
1.1 root 8659: { (exit 1); exit 1; }
8660: }
8661:
8662: #
1.1.1.6 ! root 8663: # Set up the sed scripts for CONFIG_FILES section.
1.1 root 8664: #
8665:
8666: # No need to generate the scripts if there are no CONFIG_FILES.
8667: # This happens for instance when ./config.status config.h
1.1.1.6 ! root 8668: if test -n "$CONFIG_FILES"; then
! 8669:
! 8670: _ACEOF
! 8671:
! 8672:
! 8673:
! 8674: ac_delim='%!_!# '
! 8675: for ac_last_try in false false false false false :; do
! 8676: cat >conf$$subs.sed <<_ACEOF
! 8677: SHELL!$SHELL$ac_delim
! 8678: PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
! 8679: PACKAGE_NAME!$PACKAGE_NAME$ac_delim
! 8680: PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
! 8681: PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
! 8682: PACKAGE_STRING!$PACKAGE_STRING$ac_delim
! 8683: PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
! 8684: exec_prefix!$exec_prefix$ac_delim
! 8685: prefix!$prefix$ac_delim
! 8686: program_transform_name!$program_transform_name$ac_delim
! 8687: bindir!$bindir$ac_delim
! 8688: sbindir!$sbindir$ac_delim
! 8689: libexecdir!$libexecdir$ac_delim
! 8690: datarootdir!$datarootdir$ac_delim
! 8691: datadir!$datadir$ac_delim
! 8692: sysconfdir!$sysconfdir$ac_delim
! 8693: sharedstatedir!$sharedstatedir$ac_delim
! 8694: localstatedir!$localstatedir$ac_delim
! 8695: includedir!$includedir$ac_delim
! 8696: oldincludedir!$oldincludedir$ac_delim
! 8697: docdir!$docdir$ac_delim
! 8698: infodir!$infodir$ac_delim
! 8699: htmldir!$htmldir$ac_delim
! 8700: dvidir!$dvidir$ac_delim
! 8701: pdfdir!$pdfdir$ac_delim
! 8702: psdir!$psdir$ac_delim
! 8703: libdir!$libdir$ac_delim
! 8704: localedir!$localedir$ac_delim
! 8705: mandir!$mandir$ac_delim
! 8706: DEFS!$DEFS$ac_delim
! 8707: ECHO_C!$ECHO_C$ac_delim
! 8708: ECHO_N!$ECHO_N$ac_delim
! 8709: ECHO_T!$ECHO_T$ac_delim
! 8710: LIBS!$LIBS$ac_delim
! 8711: build_alias!$build_alias$ac_delim
! 8712: host_alias!$host_alias$ac_delim
! 8713: target_alias!$target_alias$ac_delim
! 8714: build!$build$ac_delim
! 8715: build_cpu!$build_cpu$ac_delim
! 8716: build_vendor!$build_vendor$ac_delim
! 8717: build_os!$build_os$ac_delim
! 8718: host!$host$ac_delim
! 8719: host_cpu!$host_cpu$ac_delim
! 8720: host_vendor!$host_vendor$ac_delim
! 8721: host_os!$host_os$ac_delim
! 8722: target!$target$ac_delim
! 8723: target_cpu!$target_cpu$ac_delim
! 8724: target_vendor!$target_vendor$ac_delim
! 8725: target_os!$target_os$ac_delim
! 8726: CC!$CC$ac_delim
! 8727: CFLAGS!$CFLAGS$ac_delim
! 8728: LDFLAGS!$LDFLAGS$ac_delim
! 8729: CPPFLAGS!$CPPFLAGS$ac_delim
! 8730: ac_ct_CC!$ac_ct_CC$ac_delim
! 8731: EXEEXT!$EXEEXT$ac_delim
! 8732: OBJEXT!$OBJEXT$ac_delim
! 8733: INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
! 8734: INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
! 8735: INSTALL_DATA!$INSTALL_DATA$ac_delim
! 8736: RANLIB!$RANLIB$ac_delim
! 8737: SDL_CONFIG!$SDL_CONFIG$ac_delim
! 8738: SDL_CFLAGS!$SDL_CFLAGS$ac_delim
! 8739: SDL_LIBS!$SDL_LIBS$ac_delim
! 8740: CPP!$CPP$ac_delim
! 8741: GREP!$GREP$ac_delim
! 8742: EGREP!$EGREP$ac_delim
! 8743: HAVE_PKG_CONFIG!$HAVE_PKG_CONFIG$ac_delim
! 8744: PKG_CONFIG!$PKG_CONFIG$ac_delim
! 8745: X_CFLAGS!$X_CFLAGS$ac_delim
! 8746: X_LIBS!$X_LIBS$ac_delim
! 8747: XMKMF!$XMKMF$ac_delim
! 8748: X_PRE_LIBS!$X_PRE_LIBS$ac_delim
! 8749: X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
! 8750: LIBOBJS!$LIBOBJS$ac_delim
! 8751: HOSTCC!$HOSTCC$ac_delim
! 8752: HOSTCFLAGS!$HOSTCFLAGS$ac_delim
! 8753: HOSTLDFLAGS!$HOSTLDFLAGS$ac_delim
! 8754: LTLIBOBJS!$LTLIBOBJS$ac_delim
! 8755: _ACEOF
! 8756:
! 8757: if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 78; then
! 8758: break
! 8759: elif $ac_last_try; then
! 8760: { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
! 8761: echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
! 8762: { (exit 1); exit 1; }; }
! 8763: else
! 8764: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.1 root 8765: fi
1.1.1.6 ! root 8766: done
! 8767:
! 8768: ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
! 8769: if test -n "$ac_eof"; then
! 8770: ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
! 8771: ac_eof=`expr $ac_eof + 1`
! 8772: fi
1.1 root 8773:
1.1.1.6 ! root 8774: cat >>$CONFIG_STATUS <<_ACEOF
! 8775: cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
! 8776: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
1.1 root 8777: _ACEOF
1.1.1.6 ! root 8778: sed '
! 8779: s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
! 8780: s/^/s,@/; s/!/@,|#_!!_#|/
! 8781: :n
! 8782: t n
! 8783: s/'"$ac_delim"'$/,g/; t
! 8784: s/$/\\/; p
! 8785: N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
! 8786: ' >>$CONFIG_STATUS <conf$$subs.sed
! 8787: rm -f conf$$subs.sed
! 8788: cat >>$CONFIG_STATUS <<_ACEOF
! 8789: :end
! 8790: s/|#_!!_#|//g
! 8791: CEOF$ac_eof
! 8792: _ACEOF
! 8793:
! 8794:
! 8795: # VPATH may cause trouble with some makes, so we remove $(srcdir),
! 8796: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
! 8797: # trailing colons and then remove the whole line if VPATH becomes empty
! 8798: # (actually we leave an empty line to preserve line numbers).
! 8799: if test "x$srcdir" = x.; then
! 8800: ac_vpsub='/^[ ]*VPATH[ ]*=/{
! 8801: s/:*\$(srcdir):*/:/
! 8802: s/:*\${srcdir}:*/:/
! 8803: s/:*@srcdir@:*/:/
! 8804: s/^\([^=]*=[ ]*\):*/\1/
! 8805: s/:*$//
! 8806: s/^[^=]*=[ ]*$//
! 8807: }'
! 8808: fi
! 8809:
1.1 root 8810: cat >>$CONFIG_STATUS <<\_ACEOF
1.1.1.6 ! root 8811: fi # test -n "$CONFIG_FILES"
! 8812:
! 8813:
! 8814: for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
! 8815: do
! 8816: case $ac_tag in
! 8817: :[FHLC]) ac_mode=$ac_tag; continue;;
! 8818: esac
! 8819: case $ac_mode$ac_tag in
! 8820: :[FHL]*:*);;
! 8821: :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
! 8822: echo "$as_me: error: Invalid tag $ac_tag." >&2;}
! 8823: { (exit 1); exit 1; }; };;
! 8824: :[FH]-) ac_tag=-:-;;
! 8825: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
! 8826: esac
! 8827: ac_save_IFS=$IFS
! 8828: IFS=:
! 8829: set x $ac_tag
! 8830: IFS=$ac_save_IFS
! 8831: shift
! 8832: ac_file=$1
! 8833: shift
! 8834:
! 8835: case $ac_mode in
! 8836: :L) ac_source=$1;;
! 8837: :[FH])
! 8838: ac_file_inputs=
! 8839: for ac_f
! 8840: do
! 8841: case $ac_f in
! 8842: -) ac_f="$tmp/stdin";;
! 8843: *) # Look for the file first in the build tree, then in the source tree
! 8844: # (if the path is not absolute). The absolute path cannot be DOS-style,
! 8845: # because $ac_f cannot contain `:'.
! 8846: test -f "$ac_f" ||
! 8847: case $ac_f in
! 8848: [\\/$]*) false;;
! 8849: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
! 8850: esac ||
! 8851: { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
! 8852: echo "$as_me: error: cannot find input file: $ac_f" >&2;}
! 8853: { (exit 1); exit 1; }; };;
! 8854: esac
! 8855: ac_file_inputs="$ac_file_inputs $ac_f"
! 8856: done
! 8857:
! 8858: # Let's still pretend it is `configure' which instantiates (i.e., don't
! 8859: # use $as_me), people would be surprised to read:
! 8860: # /* config.h. Generated by config.status. */
! 8861: configure_input="Generated from "`IFS=:
! 8862: echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
! 8863: if test x"$ac_file" != x-; then
! 8864: configure_input="$ac_file. $configure_input"
! 8865: { echo "$as_me:$LINENO: creating $ac_file" >&5
! 8866: echo "$as_me: creating $ac_file" >&6;}
! 8867: fi
! 8868:
! 8869: case $ac_tag in
! 8870: *:-:* | *:-) cat >"$tmp/stdin";;
! 8871: esac
! 8872: ;;
1.1 root 8873: esac
8874:
1.1.1.6 ! root 8875: ac_dir=`$as_dirname -- "$ac_file" ||
1.1 root 8876: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.1.1.3 root 8877: X"$ac_file" : 'X\(//\)[^/]' \| \
8878: X"$ac_file" : 'X\(//\)$' \| \
1.1.1.6 ! root 8879: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.1 root 8880: echo X"$ac_file" |
1.1.1.6 ! root 8881: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 8882: s//\1/
! 8883: q
! 8884: }
! 8885: /^X\(\/\/\)[^/].*/{
! 8886: s//\1/
! 8887: q
! 8888: }
! 8889: /^X\(\/\/\)$/{
! 8890: s//\1/
! 8891: q
! 8892: }
! 8893: /^X\(\/\).*/{
! 8894: s//\1/
! 8895: q
! 8896: }
! 8897: s/.*/./; q'`
! 8898: { as_dir="$ac_dir"
! 8899: case $as_dir in #(
! 8900: -*) as_dir=./$as_dir;;
! 8901: esac
! 8902: test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
1.1.1.3 root 8903: as_dirs=
1.1.1.6 ! root 8904: while :; do
! 8905: case $as_dir in #(
! 8906: *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
! 8907: *) as_qdir=$as_dir;;
! 8908: esac
! 8909: as_dirs="'$as_qdir' $as_dirs"
! 8910: as_dir=`$as_dirname -- "$as_dir" ||
1.1.1.3 root 8911: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8912: X"$as_dir" : 'X\(//\)[^/]' \| \
8913: X"$as_dir" : 'X\(//\)$' \| \
1.1.1.6 ! root 8914: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.1.1.3 root 8915: echo X"$as_dir" |
1.1.1.6 ! root 8916: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 8917: s//\1/
! 8918: q
! 8919: }
! 8920: /^X\(\/\/\)[^/].*/{
! 8921: s//\1/
! 8922: q
! 8923: }
! 8924: /^X\(\/\/\)$/{
! 8925: s//\1/
! 8926: q
! 8927: }
! 8928: /^X\(\/\).*/{
! 8929: s//\1/
! 8930: q
! 8931: }
! 8932: s/.*/./; q'`
! 8933: test -d "$as_dir" && break
1.1.1.3 root 8934: done
1.1.1.6 ! root 8935: test -z "$as_dirs" || eval "mkdir $as_dirs"
! 8936: } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
! 8937: echo "$as_me: error: cannot create directory $as_dir" >&2;}
1.1.1.3 root 8938: { (exit 1); exit 1; }; }; }
1.1 root 8939: ac_builddir=.
8940:
1.1.1.6 ! root 8941: case "$ac_dir" in
! 8942: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 8943: *)
1.1 root 8944: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1.1.1.6 ! root 8945: # A ".." for each directory in $ac_dir_suffix.
! 8946: ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
! 8947: case $ac_top_builddir_sub in
! 8948: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 8949: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
! 8950: esac ;;
! 8951: esac
! 8952: ac_abs_top_builddir=$ac_pwd
! 8953: ac_abs_builddir=$ac_pwd$ac_dir_suffix
! 8954: # for backward compatibility:
! 8955: ac_top_builddir=$ac_top_build_prefix
1.1 root 8956:
8957: case $srcdir in
1.1.1.6 ! root 8958: .) # We are building in place.
1.1 root 8959: ac_srcdir=.
1.1.1.6 ! root 8960: ac_top_srcdir=$ac_top_builddir_sub
! 8961: ac_abs_top_srcdir=$ac_pwd ;;
! 8962: [\\/]* | ?:[\\/]* ) # Absolute name.
1.1 root 8963: ac_srcdir=$srcdir$ac_dir_suffix;
1.1.1.6 ! root 8964: ac_top_srcdir=$srcdir
! 8965: ac_abs_top_srcdir=$srcdir ;;
! 8966: *) # Relative name.
! 8967: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
! 8968: ac_top_srcdir=$ac_top_build_prefix$srcdir
! 8969: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.1 root 8970: esac
1.1.1.6 ! root 8971: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1.1.3 root 8972:
1.1 root 8973:
1.1.1.6 ! root 8974: case $ac_mode in
! 8975: :F)
! 8976: #
! 8977: # CONFIG_FILE
! 8978: #
1.1 root 8979:
8980: case $INSTALL in
8981: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.1.1.6 ! root 8982: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1.1 root 8983: esac
1.1.1.6 ! root 8984: _ACEOF
1.1 root 8985:
1.1.1.6 ! root 8986: cat >>$CONFIG_STATUS <<\_ACEOF
! 8987: # If the template does not know about datarootdir, expand it.
! 8988: # FIXME: This hack should be removed a few years after 2.60.
! 8989: ac_datarootdir_hack=; ac_datarootdir_seen=
! 8990:
! 8991: case `sed -n '/datarootdir/ {
! 8992: p
! 8993: q
! 8994: }
! 8995: /@datadir@/p
! 8996: /@docdir@/p
! 8997: /@infodir@/p
! 8998: /@localedir@/p
! 8999: /@mandir@/p
! 9000: ' $ac_file_inputs` in
! 9001: *datarootdir*) ac_datarootdir_seen=yes;;
! 9002: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
! 9003: { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
! 9004: echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.1 root 9005: _ACEOF
9006: cat >>$CONFIG_STATUS <<_ACEOF
1.1.1.6 ! root 9007: ac_datarootdir_hack='
! 9008: s&@datadir@&$datadir&g
! 9009: s&@docdir@&$docdir&g
! 9010: s&@infodir@&$infodir&g
! 9011: s&@localedir@&$localedir&g
! 9012: s&@mandir@&$mandir&g
! 9013: s&\\\${datarootdir}&$datarootdir&g' ;;
! 9014: esac
! 9015: _ACEOF
! 9016:
! 9017: # Neutralize VPATH when `$srcdir' = `.'.
! 9018: # Shell code in configure.ac might set extrasub.
! 9019: # FIXME: do we really want to maintain this feature?
! 9020: cat >>$CONFIG_STATUS <<_ACEOF
1.1 root 9021: sed "$ac_vpsub
9022: $extrasub
9023: _ACEOF
9024: cat >>$CONFIG_STATUS <<\_ACEOF
9025: :t
9026: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.1.1.6 ! root 9027: s&@configure_input@&$configure_input&;t t
! 9028: s&@top_builddir@&$ac_top_builddir_sub&;t t
! 9029: s&@srcdir@&$ac_srcdir&;t t
! 9030: s&@abs_srcdir@&$ac_abs_srcdir&;t t
! 9031: s&@top_srcdir@&$ac_top_srcdir&;t t
! 9032: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
! 9033: s&@builddir@&$ac_builddir&;t t
! 9034: s&@abs_builddir@&$ac_abs_builddir&;t t
! 9035: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
! 9036: s&@INSTALL@&$ac_INSTALL&;t t
! 9037: $ac_datarootdir_hack
! 9038: " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
! 9039:
! 9040: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
! 9041: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
! 9042: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
! 9043: { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
! 9044: which seems to be undefined. Please make sure it is defined." >&5
! 9045: echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
! 9046: which seems to be undefined. Please make sure it is defined." >&2;}
! 9047:
! 9048: rm -f "$tmp/stdin"
! 9049: case $ac_file in
! 9050: -) cat "$tmp/out"; rm -f "$tmp/out";;
! 9051: *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
! 9052: esac
! 9053: ;;
! 9054: :H)
! 9055: #
! 9056: # CONFIG_HEADER
! 9057: #
! 9058: _ACEOF
! 9059:
! 9060: # Transform confdefs.h into a sed script `conftest.defines', that
! 9061: # substitutes the proper values into config.h.in to produce config.h.
! 9062: rm -f conftest.defines conftest.tail
! 9063: # First, append a space to every undef/define line, to ease matching.
! 9064: echo 's/$/ /' >conftest.defines
! 9065: # Then, protect against being on the right side of a sed subst, or in
! 9066: # an unquoted here document, in config.status. If some macros were
! 9067: # called several times there might be several #defines for the same
! 9068: # symbol, which is useless. But do not sort them, since the last
! 9069: # AC_DEFINE must be honored.
! 9070: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
! 9071: # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
! 9072: # NAME is the cpp macro being defined, VALUE is the value it is being given.
! 9073: # PARAMS is the parameter list in the macro definition--in most cases, it's
! 9074: # just an empty string.
! 9075: ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
! 9076: ac_dB='\\)[ (].*,\\1define\\2'
! 9077: ac_dC=' '
! 9078: ac_dD=' ,'
! 9079:
! 9080: uniq confdefs.h |
! 9081: sed -n '
! 9082: t rset
! 9083: :rset
! 9084: s/^[ ]*#[ ]*define[ ][ ]*//
! 9085: t ok
! 9086: d
! 9087: :ok
! 9088: s/[\\&,]/\\&/g
! 9089: s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
! 9090: s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
! 9091: ' >>conftest.defines
! 9092:
! 9093: # Remove the space that was appended to ease matching.
! 9094: # Then replace #undef with comments. This is necessary, for
! 9095: # example, in the case of _POSIX_SOURCE, which is predefined and required
! 9096: # on some systems where configure will not decide to define it.
! 9097: # (The regexp can be short, since the line contains either #define or #undef.)
! 9098: echo 's/ $//
! 9099: s,^[ #]*u.*,/* & */,' >>conftest.defines
! 9100:
! 9101: # Break up conftest.defines:
! 9102: ac_max_sed_lines=50
! 9103:
! 9104: # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
! 9105: # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
! 9106: # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
! 9107: # et cetera.
! 9108: ac_in='$ac_file_inputs'
! 9109: ac_out='"$tmp/out1"'
! 9110: ac_nxt='"$tmp/out2"'
! 9111:
! 9112: while :
! 9113: do
! 9114: # Write a here document:
! 9115: cat >>$CONFIG_STATUS <<_ACEOF
! 9116: # First, check the format of the line:
! 9117: cat >"\$tmp/defines.sed" <<\\CEOF
! 9118: /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
! 9119: /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
! 9120: b
! 9121: :def
! 9122: _ACEOF
! 9123: sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
! 9124: echo 'CEOF
! 9125: sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
! 9126: ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
! 9127: sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
! 9128: grep . conftest.tail >/dev/null || break
! 9129: rm -f conftest.defines
! 9130: mv conftest.tail conftest.defines
! 9131: done
! 9132: rm -f conftest.defines conftest.tail
! 9133:
! 9134: echo "ac_result=$ac_in" >>$CONFIG_STATUS
! 9135: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 root 9136: if test x"$ac_file" != x-; then
1.1.1.6 ! root 9137: echo "/* $configure_input */" >"$tmp/config.h"
! 9138: cat "$ac_result" >>"$tmp/config.h"
! 9139: if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
! 9140: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
! 9141: echo "$as_me: $ac_file is unchanged" >&6;}
! 9142: else
! 9143: rm -f $ac_file
! 9144: mv "$tmp/config.h" $ac_file
! 9145: fi
1.1 root 9146: else
1.1.1.6 ! root 9147: echo "/* $configure_input */"
! 9148: cat "$ac_result"
1.1 root 9149: fi
1.1.1.6 ! root 9150: rm -f "$tmp/out12"
! 9151: ;;
1.1 root 9152:
9153:
1.1.1.6 ! root 9154: esac
! 9155:
! 9156: done # for ac_tag
! 9157:
1.1 root 9158:
9159: { (exit 0); exit 0; }
9160: _ACEOF
9161: chmod +x $CONFIG_STATUS
9162: ac_clean_files=$ac_clean_files_save
9163:
9164:
9165: # configure is writing to config.log, and then calls config.status.
9166: # config.status does its own redirection, appending to config.log.
9167: # Unfortunately, on DOS this fails, as config.log is still kept open
9168: # by configure, so config.status won't be able to write to it; its
9169: # output is simply discarded. So we exec the FD to /dev/null,
9170: # effectively closing config.log, so it can be properly (re)opened and
9171: # appended to by config.status. When coming back to configure, we
9172: # need to make the FD available again.
9173: if test "$no_create" != yes; then
9174: ac_cs_success=:
1.1.1.3 root 9175: ac_config_status_args=
9176: test "$silent" = yes &&
9177: ac_config_status_args="$ac_config_status_args --quiet"
1.1 root 9178: exec 5>/dev/null
1.1.1.3 root 9179: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1.1 root 9180: exec 5>>config.log
9181: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9182: # would make configure fail if this is the last instruction.
9183: $ac_cs_success || { (exit 1); exit 1; }
9184: fi
9185:
9186:
9187:
9188: { echo "$as_me:$LINENO: +-----------------------------------------------------+" >&5
9189: echo "$as_me: +-----------------------------------------------------+" >&6;}
9190: { echo "$as_me:$LINENO: | |" >&5
9191: echo "$as_me: | |" >&6;}
9192: { echo "$as_me:$LINENO: | Configuration finished. Now you can compile Hatari. |" >&5
9193: echo "$as_me: | Configuration finished. Now you can compile Hatari. |" >&6;}
9194: { echo "$as_me:$LINENO: | Note that you have to use GNU-Make to build it. |" >&5
9195: echo "$as_me: | Note that you have to use GNU-Make to build it. |" >&6;}
9196: { echo "$as_me:$LINENO: | |" >&5
9197: echo "$as_me: | |" >&6;}
9198: { echo "$as_me:$LINENO: | - If you are using Linux then type: make |" >&5
9199: echo "$as_me: | - If you are using Linux then type: make |" >&6;}
9200: { echo "$as_me:$LINENO: | - If you are using *BSD then try : gmake |" >&5
9201: echo "$as_me: | - If you are using *BSD then try : gmake |" >&6;}
9202: { echo "$as_me:$LINENO: | |" >&5
9203: echo "$as_me: | |" >&6;}
9204: { echo "$as_me:$LINENO: | After compiling, you can install the program by |" >&5
9205: echo "$as_me: | After compiling, you can install the program by |" >&6;}
9206: { echo "$as_me:$LINENO: | typing: make install (or: gmake install) |" >&5
9207: echo "$as_me: | typing: make install (or: gmake install) |" >&6;}
9208: { echo "$as_me:$LINENO: | |" >&5
9209: echo "$as_me: | |" >&6;}
9210: { echo "$as_me:$LINENO: | For information about the configuration variables, |" >&5
9211: echo "$as_me: | For information about the configuration variables, |" >&6;}
1.1.1.6 ! root 9212: { echo "$as_me:$LINENO: | please have a look at Makefile.cnf and config.h. |" >&5
! 9213: echo "$as_me: | please have a look at Makefile.cnf and config.h. |" >&6;}
1.1 root 9214: { echo "$as_me:$LINENO: | |" >&5
9215: echo "$as_me: | |" >&6;}
9216: { echo "$as_me:$LINENO: +-----------------------------------------------------+" >&5
9217: echo "$as_me: +-----------------------------------------------------+" >&6;}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.