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