|
|
1.1 root 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.1.1.10! root 3: # Generated by GNU Autoconf 2.63 for hatari 1.3.0.
1.1 root 4: #
1.1.1.6 root 5: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1.1.1.10! root 6: # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1.1 root 7: # This configure script is free software; the Free Software Foundation
8: # gives unlimited permission to copy, distribute and modify it.
9: ## --------------------- ##
10: ## M4sh Initialization. ##
11: ## --------------------- ##
12:
1.1.1.9 root 13: # Be more Bourne compatible
14: DUALCASE=1; export DUALCASE # for MKS sh
1.1 root 15: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16: emulate sh
17: NULLCMD=:
1.1.1.10! root 18: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1.1.3 root 19: # is contrary to our usage. Disable this feature.
20: alias -g '${1+"$@"}'='"$@"'
1.1.1.6 root 21: setopt NO_GLOB_SUBST
22: else
1.1.1.9 root 23: case `(set -o) 2>/dev/null` in
24: *posix*) set -o posix ;;
25: esac
26:
1.1.1.6 root 27: fi
1.1.1.9 root 28:
29:
1.1.1.6 root 30:
31:
32: # PATH needs CR
33: # Avoid depending upon Character Ranges.
34: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37: as_cr_digits='0123456789'
38: as_cr_alnum=$as_cr_Letters$as_cr_digits
39:
1.1.1.10! root 40: as_nl='
! 41: '
! 42: export as_nl
! 43: # Printing a long string crashes Solaris 7 /usr/bin/printf.
! 44: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
! 45: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
! 46: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
! 47: if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
! 48: as_echo='printf %s\n'
! 49: as_echo_n='printf %s'
! 50: else
! 51: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
! 52: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
! 53: as_echo_n='/usr/ucb/echo -n'
1.1.1.6 root 54: else
1.1.1.10! root 55: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
! 56: as_echo_n_body='eval
! 57: arg=$1;
! 58: case $arg in
! 59: *"$as_nl"*)
! 60: expr "X$arg" : "X\\(.*\\)$as_nl";
! 61: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
! 62: esac;
! 63: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
! 64: '
! 65: export as_echo_n_body
! 66: as_echo_n='sh -c $as_echo_n_body as_echo'
1.1.1.6 root 67: fi
1.1.1.10! root 68: export as_echo_body
! 69: as_echo='sh -c $as_echo_body as_echo'
! 70: fi
! 71:
! 72: # The user is always right.
! 73: if test "${PATH_SEPARATOR+set}" != set; then
! 74: PATH_SEPARATOR=:
! 75: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
! 76: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
! 77: PATH_SEPARATOR=';'
! 78: }
1.1 root 79: fi
80:
81: # Support unset when possible.
1.1.1.3 root 82: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.1 root 83: as_unset=unset
84: else
85: as_unset=false
86: fi
87:
1.1.1.3 root 88:
1.1.1.6 root 89: # IFS
90: # We need space, tab and new line, in precisely that order. Quoting is
91: # there to prevent editors from complaining about space-tab.
92: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93: # splitting by setting IFS to empty value.)
94: IFS=" "" $as_nl"
95:
96: # Find who we are. Look in the path if we contain no directory separator.
97: case $0 in
98: *[\\/]* ) as_myself=$0 ;;
99: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100: for as_dir in $PATH
101: do
102: IFS=$as_save_IFS
103: test -z "$as_dir" && as_dir=.
104: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105: done
106: IFS=$as_save_IFS
107:
108: ;;
109: esac
110: # We did not find ourselves, most probably we were run as `sh COMMAND'
111: # in which case we are not to be found in the path.
112: if test "x$as_myself" = x; then
113: as_myself=$0
114: fi
115: if test ! -f "$as_myself"; then
1.1.1.10! root 116: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1.1.1.6 root 117: { (exit 1); exit 1; }
118: fi
119:
1.1.1.3 root 120: # Work around bugs in pre-3.0 UWIN ksh.
1.1.1.6 root 121: for as_var in ENV MAIL MAILPATH
122: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123: done
1.1.1.3 root 124: PS1='$ '
125: PS2='> '
126: PS4='+ '
127:
128: # NLS nuisances.
1.1.1.10! root 129: LC_ALL=C
! 130: export LC_ALL
! 131: LANGUAGE=C
! 132: export LANGUAGE
1.1.1.3 root 133:
134: # Required to use basename.
1.1.1.6 root 135: if expr a : '\(a\)' >/dev/null 2>&1 &&
136: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1.1.3 root 137: as_expr=expr
138: else
139: as_expr=false
140: fi
141:
1.1.1.6 root 142: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.1.1.3 root 143: as_basename=basename
144: else
145: as_basename=false
146: fi
1.1 root 147:
148:
149: # Name of the executable.
1.1.1.6 root 150: as_me=`$as_basename -- "$0" ||
1.1 root 151: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152: X"$0" : 'X\(//\)$' \| \
1.1.1.6 root 153: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.1.1.10! root 154: $as_echo X/"$0" |
1.1.1.6 root 155: sed '/^.*\/\([^/][^/]*\)\/*$/{
156: s//\1/
157: q
158: }
159: /^X\/\(\/\/\)$/{
160: s//\1/
161: q
162: }
163: /^X\/\(\/\).*/{
164: s//\1/
165: q
166: }
167: s/.*/./; q'`
1.1 root 168:
1.1.1.6 root 169: # CDPATH.
170: $as_unset CDPATH
1.1.1.3 root 171:
1.1 root 172:
1.1.1.6 root 173: if test "x$CONFIG_SHELL" = x; then
174: if (eval ":") 2>/dev/null; then
175: as_have_required=yes
176: else
177: as_have_required=no
178: fi
179:
1.1.1.10! root 180: if test $as_have_required = yes && (eval ":
1.1.1.6 root 181: (as_func_return () {
182: (exit \$1)
183: }
184: as_func_success () {
185: as_func_return 0
186: }
187: as_func_failure () {
188: as_func_return 1
189: }
190: as_func_ret_success () {
191: return 0
192: }
193: as_func_ret_failure () {
194: return 1
195: }
196:
197: exitcode=0
198: if as_func_success; then
199: :
200: else
201: exitcode=1
202: echo as_func_success failed.
1.1 root 203: fi
204:
1.1.1.6 root 205: if as_func_failure; then
206: exitcode=1
207: echo as_func_failure succeeded.
208: fi
1.1 root 209:
1.1.1.6 root 210: if as_func_ret_success; then
211: :
212: else
213: exitcode=1
214: echo as_func_ret_success failed.
215: fi
1.1 root 216:
1.1.1.6 root 217: if as_func_ret_failure; then
218: exitcode=1
219: echo as_func_ret_failure succeeded.
220: fi
221:
222: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223: :
224: else
225: exitcode=1
226: echo positional parameters were not saved.
227: fi
228:
229: test \$exitcode = 0) || { (exit 1); exit 1; }
230:
231: (
232: as_lineno_1=\$LINENO
233: as_lineno_2=\$LINENO
234: test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235: test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236: ") 2> /dev/null; then
237: :
238: else
239: as_candidate_shells=
1.1 root 240: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1.1.9 root 241: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1.1 root 242: do
243: IFS=$as_save_IFS
244: test -z "$as_dir" && as_dir=.
1.1.1.6 root 245: case $as_dir in
1.1 root 246: /*)
1.1.1.6 root 247: for as_base in sh bash ksh sh5; do
248: as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249: done;;
250: esac
251: done
252: IFS=$as_save_IFS
253:
254:
255: for as_shell in $as_candidate_shells $SHELL; do
256: # Try only shells that exist, to save several forks.
257: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258: { ("$as_shell") 2> /dev/null <<\_ASEOF
259: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260: emulate sh
261: NULLCMD=:
1.1.1.10! root 262: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1.1.6 root 263: # is contrary to our usage. Disable this feature.
264: alias -g '${1+"$@"}'='"$@"'
265: setopt NO_GLOB_SUBST
266: else
1.1.1.9 root 267: case `(set -o) 2>/dev/null` in
268: *posix*) set -o posix ;;
269: esac
270:
1.1.1.6 root 271: fi
1.1.1.9 root 272:
1.1.1.6 root 273:
274: :
275: _ASEOF
276: }; then
277: CONFIG_SHELL=$as_shell
278: as_have_required=yes
279: if { "$as_shell" 2> /dev/null <<\_ASEOF
280: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281: emulate sh
282: NULLCMD=:
1.1.1.10! root 283: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1.1.6 root 284: # is contrary to our usage. Disable this feature.
285: alias -g '${1+"$@"}'='"$@"'
286: setopt NO_GLOB_SUBST
287: else
1.1.1.9 root 288: case `(set -o) 2>/dev/null` in
289: *posix*) set -o posix ;;
290: esac
291:
1.1.1.6 root 292: fi
1.1.1.9 root 293:
1.1.1.6 root 294:
295: :
296: (as_func_return () {
297: (exit $1)
298: }
299: as_func_success () {
300: as_func_return 0
301: }
302: as_func_failure () {
303: as_func_return 1
304: }
305: as_func_ret_success () {
306: return 0
307: }
308: as_func_ret_failure () {
309: return 1
310: }
311:
312: exitcode=0
313: if as_func_success; then
314: :
315: else
316: exitcode=1
317: echo as_func_success failed.
318: fi
319:
320: if as_func_failure; then
321: exitcode=1
322: echo as_func_failure succeeded.
323: fi
324:
325: if as_func_ret_success; then
326: :
327: else
328: exitcode=1
329: echo as_func_ret_success failed.
330: fi
331:
332: if as_func_ret_failure; then
333: exitcode=1
334: echo as_func_ret_failure succeeded.
335: fi
336:
337: if ( set x; as_func_ret_success y && test x = "$1" ); then
338: :
339: else
340: exitcode=1
341: echo positional parameters were not saved.
342: fi
343:
344: test $exitcode = 0) || { (exit 1); exit 1; }
345:
346: (
1.1 root 347: as_lineno_1=$LINENO
348: as_lineno_2=$LINENO
349: test "x$as_lineno_1" != "x$as_lineno_2" &&
1.1.1.6 root 350: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351:
352: _ASEOF
353: }; then
354: break
355: fi
356:
357: fi
358:
359: done
360:
361: if test "x$CONFIG_SHELL" != x; then
362: for as_var in BASH_ENV ENV
1.1.1.10! root 363: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
! 364: done
! 365: export CONFIG_SHELL
! 366: exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
1.1.1.6 root 367: fi
368:
369:
370: if test $as_have_required = no; then
371: echo This script requires a shell more modern than all the
372: echo shells that I found on your system. Please install a
373: echo modern shell, or manually run the script under such a
374: echo shell if you do have one.
375: { (exit 1); exit 1; }
376: fi
377:
378:
379: fi
380:
381: fi
382:
383:
384:
385: (eval "as_func_return () {
386: (exit \$1)
387: }
388: as_func_success () {
389: as_func_return 0
390: }
391: as_func_failure () {
392: as_func_return 1
393: }
394: as_func_ret_success () {
395: return 0
396: }
397: as_func_ret_failure () {
398: return 1
399: }
400:
401: exitcode=0
402: if as_func_success; then
403: :
404: else
405: exitcode=1
406: echo as_func_success failed.
407: fi
408:
409: if as_func_failure; then
410: exitcode=1
411: echo as_func_failure succeeded.
412: fi
413:
414: if as_func_ret_success; then
415: :
416: else
417: exitcode=1
418: echo as_func_ret_success failed.
419: fi
420:
421: if as_func_ret_failure; then
422: exitcode=1
423: echo as_func_ret_failure succeeded.
424: fi
425:
426: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427: :
428: else
429: exitcode=1
430: echo positional parameters were not saved.
431: fi
432:
433: test \$exitcode = 0") || {
434: echo No shell found that supports shell functions.
1.1.1.10! root 435: echo Please tell [email protected] about your system,
! 436: echo including any error possibly output before this message.
! 437: echo This can help us improve future autoconf versions.
! 438: echo Configuration will now proceed without shell functions.
1.1.1.6 root 439: }
440:
441:
442:
443: as_lineno_1=$LINENO
444: as_lineno_2=$LINENO
445: test "x$as_lineno_1" != "x$as_lineno_2" &&
446: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1.1 root 447:
448: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449: # uniformly replaced by the line number. The first 'sed' inserts a
1.1.1.6 root 450: # line-number line after each line using $LINENO; the second 'sed'
451: # does the real work. The second script uses 'N' to pair each
452: # line-number line with the line containing $LINENO, and appends
453: # trailing '-' during substitution so that $LINENO is not a special
454: # case at line end.
1.1 root 455: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1.1.1.6 root 456: # scripts with optimization help from Paolo Bonzini. Blame Lee
457: # E. McMahon (1931-1989) for sed's syntax. :-)
458: sed -n '
459: p
460: /[$]LINENO/=
461: ' <$as_myself |
1.1 root 462: sed '
1.1.1.6 root 463: s/[$]LINENO.*/&-/
464: t lineno
465: b
466: :lineno
1.1 root 467: N
1.1.1.6 root 468: :loop
469: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.1 root 470: t loop
1.1.1.6 root 471: s/-\n.*//
1.1 root 472: ' >$as_me.lineno &&
1.1.1.6 root 473: chmod +x "$as_me.lineno" ||
1.1.1.10! root 474: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
1.1 root 475: { (exit 1); exit 1; }; }
476:
477: # Don't try to exec as it changes $[0], causing all sort of problems
478: # (the dirname of $[0] is not the place where we might find the
1.1.1.6 root 479: # original and so on. Autoconf is especially sensitive to this).
480: . "./$as_me.lineno"
1.1 root 481: # Exit status is that of the last command.
482: exit
483: }
484:
485:
1.1.1.6 root 486: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487: as_dirname=dirname
488: else
489: as_dirname=false
490: fi
491:
492: ECHO_C= ECHO_N= ECHO_T=
493: case `echo -n x` in
494: -n*)
495: case `echo 'x\c'` in
496: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497: *) ECHO_C='\c';;
498: esac;;
499: *)
500: ECHO_N='-n';;
1.1 root 501: esac
1.1.1.6 root 502: if expr a : '\(a\)' >/dev/null 2>&1 &&
503: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1 root 504: as_expr=expr
505: else
506: as_expr=false
507: fi
508:
509: rm -f conf$$ conf$$.exe conf$$.file
1.1.1.6 root 510: if test -d conf$$.dir; then
511: rm -f conf$$.dir/conf$$.file
512: else
513: rm -f conf$$.dir
1.1.1.10! root 514: mkdir conf$$.dir 2>/dev/null
1.1.1.6 root 515: fi
1.1.1.10! root 516: if (echo >conf$$.file) 2>/dev/null; then
! 517: if ln -s conf$$.file conf$$ 2>/dev/null; then
! 518: as_ln_s='ln -s'
! 519: # ... but there are two gotchas:
! 520: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
! 521: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
! 522: # In both cases, we have to default to `cp -p'.
! 523: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
! 524: as_ln_s='cp -p'
! 525: elif ln conf$$.file conf$$ 2>/dev/null; then
! 526: as_ln_s=ln
! 527: else
1.1 root 528: as_ln_s='cp -p'
1.1.1.10! root 529: fi
1.1 root 530: else
531: as_ln_s='cp -p'
532: fi
1.1.1.6 root 533: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534: rmdir conf$$.dir 2>/dev/null
1.1 root 535:
1.1.1.3 root 536: if mkdir -p . 2>/dev/null; then
537: as_mkdir_p=:
538: else
539: test -d ./-p && rmdir ./-p
540: as_mkdir_p=false
541: fi
542:
1.1.1.9 root 543: if test -x / >/dev/null 2>&1; then
544: as_test_x='test -x'
1.1.1.6 root 545: else
1.1.1.9 root 546: if ls -dL / >/dev/null 2>&1; then
547: as_ls_L_option=L
548: else
549: as_ls_L_option=
550: fi
551: as_test_x='
552: eval sh -c '\''
553: if test -d "$1"; then
1.1.1.10! root 554: test -d "$1/.";
1.1.1.9 root 555: else
556: case $1 in
1.1.1.10! root 557: -*)set "./$1";;
1.1.1.9 root 558: esac;
559: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560: ???[sx]*):;;*)false;;esac;fi
561: '\'' sh
562: '
1.1.1.6 root 563: fi
1.1.1.9 root 564: as_executable_p=$as_test_x
1.1 root 565:
566: # Sed expression to map a string onto a valid CPP name.
1.1.1.3 root 567: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.1 root 568:
569: # Sed expression to map a string onto a valid variable name.
1.1.1.3 root 570: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.1 root 571:
572:
573:
1.1.1.6 root 574: exec 7<&0 </dev/null 6>&1
1.1 root 575:
576: # Name of the host.
577: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578: # so uname gets run too.
579: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580:
581: #
582: # Initializations.
583: #
584: ac_default_prefix=/usr/local
1.1.1.6 root 585: ac_clean_files=
1.1.1.3 root 586: ac_config_libobj_dir=.
1.1.1.6 root 587: LIBOBJS=
1.1 root 588: cross_compiling=no
589: subdirs=
590: MFLAGS=
591: MAKEFLAGS=
592: SHELL=${CONFIG_SHELL-/bin/sh}
593:
594: # Identity of this package.
595: PACKAGE_NAME='hatari'
596: PACKAGE_TARNAME='hatari'
1.1.1.10! root 597: PACKAGE_VERSION='1.3.0'
! 598: PACKAGE_STRING='hatari 1.3.0'
1.1 root 599: PACKAGE_BUGREPORT=''
600:
601: ac_unique_file="src/main.c"
602: # Factoring default headers for most tests.
603: ac_includes_default="\
604: #include <stdio.h>
1.1.1.9 root 605: #ifdef HAVE_SYS_TYPES_H
1.1 root 606: # include <sys/types.h>
607: #endif
1.1.1.9 root 608: #ifdef HAVE_SYS_STAT_H
1.1 root 609: # include <sys/stat.h>
610: #endif
1.1.1.9 root 611: #ifdef STDC_HEADERS
1.1 root 612: # include <stdlib.h>
613: # include <stddef.h>
614: #else
1.1.1.9 root 615: # ifdef HAVE_STDLIB_H
1.1 root 616: # include <stdlib.h>
617: # endif
618: #endif
1.1.1.9 root 619: #ifdef HAVE_STRING_H
620: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1.1 root 621: # include <memory.h>
622: # endif
623: # include <string.h>
624: #endif
1.1.1.9 root 625: #ifdef HAVE_STRINGS_H
1.1 root 626: # include <strings.h>
627: #endif
1.1.1.9 root 628: #ifdef HAVE_INTTYPES_H
1.1 root 629: # include <inttypes.h>
630: #endif
1.1.1.9 root 631: #ifdef HAVE_STDINT_H
1.1.1.6 root 632: # include <stdint.h>
633: #endif
1.1.1.9 root 634: #ifdef HAVE_UNISTD_H
1.1 root 635: # include <unistd.h>
636: #endif"
637:
1.1.1.10! root 638: ac_subst_vars='LTLIBOBJS
1.1.1.6 root 639: HOSTLDFLAGS
1.1.1.10! root 640: HOSTCFLAGS
! 641: HOSTCC
! 642: LIBOBJS
! 643: X_EXTRA_LIBS
! 644: X_PRE_LIBS
! 645: XMKMF
! 646: X_LIBS
! 647: X_CFLAGS
! 648: PKG_CONFIG
! 649: HAVE_PKG_CONFIG
! 650: SDL_LIBS
! 651: SDL_CFLAGS
! 652: SDL_CONFIG
! 653: EGREP
! 654: GREP
! 655: CPP
! 656: RANLIB
! 657: INSTALL_DATA
! 658: INSTALL_SCRIPT
! 659: INSTALL_PROGRAM
! 660: OBJEXT
! 661: EXEEXT
! 662: ac_ct_CC
! 663: CPPFLAGS
! 664: LDFLAGS
! 665: CFLAGS
! 666: CC
! 667: target_os
! 668: target_vendor
! 669: target_cpu
! 670: target
! 671: host_os
! 672: host_vendor
! 673: host_cpu
! 674: host
! 675: build_os
! 676: build_vendor
! 677: build_cpu
! 678: build
! 679: target_alias
! 680: host_alias
! 681: build_alias
! 682: LIBS
! 683: ECHO_T
! 684: ECHO_N
! 685: ECHO_C
! 686: DEFS
! 687: mandir
! 688: localedir
! 689: libdir
! 690: psdir
! 691: pdfdir
! 692: dvidir
! 693: htmldir
! 694: infodir
! 695: docdir
! 696: oldincludedir
! 697: includedir
! 698: localstatedir
! 699: sharedstatedir
! 700: sysconfdir
! 701: datadir
! 702: datarootdir
! 703: libexecdir
! 704: sbindir
! 705: bindir
! 706: program_transform_name
! 707: prefix
! 708: exec_prefix
! 709: PACKAGE_BUGREPORT
! 710: PACKAGE_STRING
! 711: PACKAGE_VERSION
! 712: PACKAGE_TARNAME
! 713: PACKAGE_NAME
! 714: PATH_SEPARATOR
! 715: SHELL'
1.1.1.3 root 716: ac_subst_files=''
1.1.1.10! root 717: ac_user_opts='
! 718: enable_option_checking
! 719: enable_werror
! 720: enable_tracing
! 721: enable_small_mem
! 722: with_extra_inc
! 723: with_extra_lib
! 724: with_hostcc
! 725: with_sdl_prefix
! 726: with_sdl_exec_prefix
! 727: enable_sdltest
! 728: with_x
! 729: '
1.1.1.6 root 730: ac_precious_vars='build_alias
731: host_alias
732: target_alias
733: CC
734: CFLAGS
735: LDFLAGS
1.1.1.9 root 736: LIBS
1.1.1.6 root 737: CPPFLAGS
738: CPP
739: PKG_CONFIG
740: X_CFLAGS
741: X_LIBS
742: XMKMF'
743:
1.1 root 744:
745: # Initialize some variables set by options.
746: ac_init_help=
747: ac_init_version=false
1.1.1.10! root 748: ac_unrecognized_opts=
! 749: ac_unrecognized_sep=
1.1 root 750: # The variables have the same names as the options, with
751: # dashes changed to underlines.
752: cache_file=/dev/null
753: exec_prefix=NONE
754: no_create=
755: no_recursion=
756: prefix=NONE
757: program_prefix=NONE
758: program_suffix=NONE
759: program_transform_name=s,x,x,
760: silent=
761: site=
762: srcdir=
763: verbose=
764: x_includes=NONE
765: x_libraries=NONE
766:
767: # Installation directory options.
768: # These are left unexpanded so users can "make install exec_prefix=/foo"
769: # and all the variables that are supposed to be based on exec_prefix
770: # by default will actually change.
771: # Use braces instead of parens because sh, perl, etc. also accept them.
1.1.1.6 root 772: # (The list follows the same order as the GNU Coding Standards.)
1.1 root 773: bindir='${exec_prefix}/bin'
774: sbindir='${exec_prefix}/sbin'
775: libexecdir='${exec_prefix}/libexec'
1.1.1.6 root 776: datarootdir='${prefix}/share'
777: datadir='${datarootdir}'
1.1 root 778: sysconfdir='${prefix}/etc'
779: sharedstatedir='${prefix}/com'
780: localstatedir='${prefix}/var'
781: includedir='${prefix}/include'
782: oldincludedir='/usr/include'
1.1.1.6 root 783: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
784: infodir='${datarootdir}/info'
785: htmldir='${docdir}'
786: dvidir='${docdir}'
787: pdfdir='${docdir}'
788: psdir='${docdir}'
789: libdir='${exec_prefix}/lib'
790: localedir='${datarootdir}/locale'
791: mandir='${datarootdir}/man'
1.1 root 792:
793: ac_prev=
1.1.1.6 root 794: ac_dashdash=
1.1 root 795: for ac_option
796: do
797: # If the previous option needs an argument, assign it.
798: if test -n "$ac_prev"; then
1.1.1.6 root 799: eval $ac_prev=\$ac_option
1.1 root 800: ac_prev=
801: continue
802: fi
803:
1.1.1.6 root 804: case $ac_option in
805: *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806: *) ac_optarg=yes ;;
807: esac
1.1 root 808:
809: # Accept the important Cygnus configure options, so we can diagnose typos.
810:
1.1.1.6 root 811: case $ac_dashdash$ac_option in
812: --)
813: ac_dashdash=yes ;;
1.1 root 814:
815: -bindir | --bindir | --bindi | --bind | --bin | --bi)
816: ac_prev=bindir ;;
817: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
818: bindir=$ac_optarg ;;
819:
820: -build | --build | --buil | --bui | --bu)
821: ac_prev=build_alias ;;
822: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
823: build_alias=$ac_optarg ;;
824:
825: -cache-file | --cache-file | --cache-fil | --cache-fi \
826: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
827: ac_prev=cache_file ;;
828: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
829: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
830: cache_file=$ac_optarg ;;
831:
832: --config-cache | -C)
833: cache_file=config.cache ;;
834:
1.1.1.6 root 835: -datadir | --datadir | --datadi | --datad)
1.1 root 836: ac_prev=datadir ;;
1.1.1.6 root 837: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.1 root 838: datadir=$ac_optarg ;;
839:
1.1.1.6 root 840: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
841: | --dataroo | --dataro | --datar)
842: ac_prev=datarootdir ;;
843: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
844: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
845: datarootdir=$ac_optarg ;;
846:
1.1 root 847: -disable-* | --disable-*)
1.1.1.10! root 848: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 root 849: # Reject names that are not valid shell variable names.
1.1.1.10! root 850: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
! 851: { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1.1 root 852: { (exit 1); exit 1; }; }
1.1.1.10! root 853: ac_useropt_orig=$ac_useropt
! 854: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
! 855: case $ac_user_opts in
! 856: *"
! 857: "enable_$ac_useropt"
! 858: "*) ;;
! 859: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
! 860: ac_unrecognized_sep=', ';;
! 861: esac
! 862: eval enable_$ac_useropt=no ;;
1.1.1.6 root 863:
864: -docdir | --docdir | --docdi | --doc | --do)
865: ac_prev=docdir ;;
866: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
867: docdir=$ac_optarg ;;
868:
869: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
870: ac_prev=dvidir ;;
871: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
872: dvidir=$ac_optarg ;;
1.1 root 873:
874: -enable-* | --enable-*)
1.1.1.10! root 875: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 root 876: # Reject names that are not valid shell variable names.
1.1.1.10! root 877: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
! 878: { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1.1 root 879: { (exit 1); exit 1; }; }
1.1.1.10! root 880: ac_useropt_orig=$ac_useropt
! 881: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
! 882: case $ac_user_opts in
! 883: *"
! 884: "enable_$ac_useropt"
! 885: "*) ;;
! 886: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
! 887: ac_unrecognized_sep=', ';;
! 888: esac
! 889: eval enable_$ac_useropt=\$ac_optarg ;;
1.1 root 890:
891: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
892: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
893: | --exec | --exe | --ex)
894: ac_prev=exec_prefix ;;
895: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
896: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
897: | --exec=* | --exe=* | --ex=*)
898: exec_prefix=$ac_optarg ;;
899:
900: -gas | --gas | --ga | --g)
901: # Obsolete; use --with-gas.
902: with_gas=yes ;;
903:
904: -help | --help | --hel | --he | -h)
905: ac_init_help=long ;;
906: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
907: ac_init_help=recursive ;;
908: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
909: ac_init_help=short ;;
910:
911: -host | --host | --hos | --ho)
912: ac_prev=host_alias ;;
913: -host=* | --host=* | --hos=* | --ho=*)
914: host_alias=$ac_optarg ;;
915:
1.1.1.6 root 916: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
917: ac_prev=htmldir ;;
918: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
919: | --ht=*)
920: htmldir=$ac_optarg ;;
921:
1.1 root 922: -includedir | --includedir | --includedi | --included | --include \
923: | --includ | --inclu | --incl | --inc)
924: ac_prev=includedir ;;
925: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
926: | --includ=* | --inclu=* | --incl=* | --inc=*)
927: includedir=$ac_optarg ;;
928:
929: -infodir | --infodir | --infodi | --infod | --info | --inf)
930: ac_prev=infodir ;;
931: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
932: infodir=$ac_optarg ;;
933:
934: -libdir | --libdir | --libdi | --libd)
935: ac_prev=libdir ;;
936: -libdir=* | --libdir=* | --libdi=* | --libd=*)
937: libdir=$ac_optarg ;;
938:
939: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
940: | --libexe | --libex | --libe)
941: ac_prev=libexecdir ;;
942: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
943: | --libexe=* | --libex=* | --libe=*)
944: libexecdir=$ac_optarg ;;
945:
1.1.1.6 root 946: -localedir | --localedir | --localedi | --localed | --locale)
947: ac_prev=localedir ;;
948: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
949: localedir=$ac_optarg ;;
950:
1.1 root 951: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.1.1.6 root 952: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 root 953: ac_prev=localstatedir ;;
954: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.1.1.6 root 955: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.1 root 956: localstatedir=$ac_optarg ;;
957:
958: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
959: ac_prev=mandir ;;
960: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
961: mandir=$ac_optarg ;;
962:
963: -nfp | --nfp | --nf)
964: # Obsolete; use --without-fp.
965: with_fp=no ;;
966:
967: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
968: | --no-cr | --no-c | -n)
969: no_create=yes ;;
970:
971: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
972: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
973: no_recursion=yes ;;
974:
975: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
976: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
977: | --oldin | --oldi | --old | --ol | --o)
978: ac_prev=oldincludedir ;;
979: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
980: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
981: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
982: oldincludedir=$ac_optarg ;;
983:
984: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
985: ac_prev=prefix ;;
986: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
987: prefix=$ac_optarg ;;
988:
989: -program-prefix | --program-prefix | --program-prefi | --program-pref \
990: | --program-pre | --program-pr | --program-p)
991: ac_prev=program_prefix ;;
992: -program-prefix=* | --program-prefix=* | --program-prefi=* \
993: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
994: program_prefix=$ac_optarg ;;
995:
996: -program-suffix | --program-suffix | --program-suffi | --program-suff \
997: | --program-suf | --program-su | --program-s)
998: ac_prev=program_suffix ;;
999: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1000: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1001: program_suffix=$ac_optarg ;;
1002:
1003: -program-transform-name | --program-transform-name \
1004: | --program-transform-nam | --program-transform-na \
1005: | --program-transform-n | --program-transform- \
1006: | --program-transform | --program-transfor \
1007: | --program-transfo | --program-transf \
1008: | --program-trans | --program-tran \
1009: | --progr-tra | --program-tr | --program-t)
1010: ac_prev=program_transform_name ;;
1011: -program-transform-name=* | --program-transform-name=* \
1012: | --program-transform-nam=* | --program-transform-na=* \
1013: | --program-transform-n=* | --program-transform-=* \
1014: | --program-transform=* | --program-transfor=* \
1015: | --program-transfo=* | --program-transf=* \
1016: | --program-trans=* | --program-tran=* \
1017: | --progr-tra=* | --program-tr=* | --program-t=*)
1018: program_transform_name=$ac_optarg ;;
1019:
1.1.1.6 root 1020: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1021: ac_prev=pdfdir ;;
1022: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1023: pdfdir=$ac_optarg ;;
1024:
1025: -psdir | --psdir | --psdi | --psd | --ps)
1026: ac_prev=psdir ;;
1027: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1028: psdir=$ac_optarg ;;
1029:
1.1 root 1030: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1031: | -silent | --silent | --silen | --sile | --sil)
1032: silent=yes ;;
1033:
1034: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1035: ac_prev=sbindir ;;
1036: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1037: | --sbi=* | --sb=*)
1038: sbindir=$ac_optarg ;;
1039:
1040: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1041: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1042: | --sharedst | --shareds | --shared | --share | --shar \
1043: | --sha | --sh)
1044: ac_prev=sharedstatedir ;;
1045: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1046: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1047: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1048: | --sha=* | --sh=*)
1049: sharedstatedir=$ac_optarg ;;
1050:
1051: -site | --site | --sit)
1052: ac_prev=site ;;
1053: -site=* | --site=* | --sit=*)
1054: site=$ac_optarg ;;
1055:
1056: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1057: ac_prev=srcdir ;;
1058: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1059: srcdir=$ac_optarg ;;
1060:
1061: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1062: | --syscon | --sysco | --sysc | --sys | --sy)
1063: ac_prev=sysconfdir ;;
1064: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1065: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1066: sysconfdir=$ac_optarg ;;
1067:
1068: -target | --target | --targe | --targ | --tar | --ta | --t)
1069: ac_prev=target_alias ;;
1070: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1071: target_alias=$ac_optarg ;;
1072:
1073: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1074: verbose=yes ;;
1075:
1076: -version | --version | --versio | --versi | --vers | -V)
1077: ac_init_version=: ;;
1078:
1079: -with-* | --with-*)
1.1.1.10! root 1080: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 root 1081: # Reject names that are not valid shell variable names.
1.1.1.10! root 1082: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
! 1083: { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1.1 root 1084: { (exit 1); exit 1; }; }
1.1.1.10! root 1085: ac_useropt_orig=$ac_useropt
! 1086: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
! 1087: case $ac_user_opts in
! 1088: *"
! 1089: "with_$ac_useropt"
! 1090: "*) ;;
! 1091: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
! 1092: ac_unrecognized_sep=', ';;
! 1093: esac
! 1094: eval with_$ac_useropt=\$ac_optarg ;;
1.1 root 1095:
1096: -without-* | --without-*)
1.1.1.10! root 1097: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 root 1098: # Reject names that are not valid shell variable names.
1.1.1.10! root 1099: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
! 1100: { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1.1 root 1101: { (exit 1); exit 1; }; }
1.1.1.10! root 1102: ac_useropt_orig=$ac_useropt
! 1103: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
! 1104: case $ac_user_opts in
! 1105: *"
! 1106: "with_$ac_useropt"
! 1107: "*) ;;
! 1108: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
! 1109: ac_unrecognized_sep=', ';;
! 1110: esac
! 1111: eval with_$ac_useropt=no ;;
1.1 root 1112:
1113: --x)
1114: # Obsolete; use --with-x.
1115: with_x=yes ;;
1116:
1117: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1118: | --x-incl | --x-inc | --x-in | --x-i)
1119: ac_prev=x_includes ;;
1120: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1121: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1122: x_includes=$ac_optarg ;;
1123:
1124: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1125: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1126: ac_prev=x_libraries ;;
1127: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1128: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1129: x_libraries=$ac_optarg ;;
1130:
1.1.1.10! root 1131: -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1.1 root 1132: Try \`$0 --help' for more information." >&2
1133: { (exit 1); exit 1; }; }
1134: ;;
1135:
1136: *=*)
1137: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1138: # Reject names that are not valid shell variable names.
1139: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1.1.1.10! root 1140: { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1.1 root 1141: { (exit 1); exit 1; }; }
1.1.1.6 root 1142: eval $ac_envvar=\$ac_optarg
1.1 root 1143: export $ac_envvar ;;
1144:
1145: *)
1146: # FIXME: should be removed in autoconf 3.0.
1.1.1.10! root 1147: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.1 root 1148: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.1.1.10! root 1149: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.1 root 1150: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1151: ;;
1152:
1153: esac
1154: done
1155:
1156: if test -n "$ac_prev"; then
1157: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.1.1.10! root 1158: { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1.1 root 1159: { (exit 1); exit 1; }; }
1160: fi
1161:
1.1.1.10! root 1162: if test -n "$ac_unrecognized_opts"; then
! 1163: case $enable_option_checking in
! 1164: no) ;;
! 1165: fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
! 1166: { (exit 1); exit 1; }; } ;;
! 1167: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
! 1168: esac
! 1169: fi
! 1170:
! 1171: # Check all directory arguments for consistency.
1.1.1.6 root 1172: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1173: datadir sysconfdir sharedstatedir localstatedir includedir \
1174: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1175: libdir localedir mandir
1.1 root 1176: do
1.1.1.6 root 1177: eval ac_val=\$$ac_var
1.1.1.10! root 1178: # Remove trailing slashes.
! 1179: case $ac_val in
! 1180: */ )
! 1181: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
! 1182: eval $ac_var=\$ac_val;;
! 1183: esac
! 1184: # Be sure to have absolute directory names.
1.1 root 1185: case $ac_val in
1.1.1.6 root 1186: [\\/$]* | ?:[\\/]* ) continue;;
1187: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 root 1188: esac
1.1.1.10! root 1189: { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1.1.1.6 root 1190: { (exit 1); exit 1; }; }
1.1 root 1191: done
1192:
1193: # There might be people who depend on the old broken behavior: `$host'
1194: # used to hold the argument of --host etc.
1195: # FIXME: To remove some day.
1196: build=$build_alias
1197: host=$host_alias
1198: target=$target_alias
1199:
1200: # FIXME: To remove some day.
1201: if test "x$host_alias" != x; then
1202: if test "x$build_alias" = x; then
1203: cross_compiling=maybe
1.1.1.10! root 1204: $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1.1 root 1205: If a cross compiler is detected then cross compile mode will be used." >&2
1206: elif test "x$build_alias" != "x$host_alias"; then
1207: cross_compiling=yes
1208: fi
1209: fi
1210:
1211: ac_tool_prefix=
1212: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1213:
1214: test "$silent" = yes && exec 6>/dev/null
1215:
1216:
1.1.1.6 root 1217: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218: ac_ls_di=`ls -di .` &&
1219: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1.1.1.10! root 1220: { $as_echo "$as_me: error: working directory cannot be determined" >&2
1.1.1.6 root 1221: { (exit 1); exit 1; }; }
1222: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1.1.1.10! root 1223: { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1.1.1.6 root 1224: { (exit 1); exit 1; }; }
1225:
1226:
1.1 root 1227: # Find the source files, if location was not specified.
1228: if test -z "$srcdir"; then
1229: ac_srcdir_defaulted=yes
1.1.1.6 root 1230: # Try the directory containing this script, then the parent directory.
1.1.1.10! root 1231: ac_confdir=`$as_dirname -- "$as_myself" ||
! 1232: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 1233: X"$as_myself" : 'X\(//\)[^/]' \| \
! 1234: X"$as_myself" : 'X\(//\)$' \| \
! 1235: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
! 1236: $as_echo X"$as_myself" |
1.1.1.6 root 1237: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1238: s//\1/
1239: q
1240: }
1241: /^X\(\/\/\)[^/].*/{
1242: s//\1/
1243: q
1244: }
1245: /^X\(\/\/\)$/{
1246: s//\1/
1247: q
1248: }
1249: /^X\(\/\).*/{
1250: s//\1/
1251: q
1252: }
1253: s/.*/./; q'`
1.1 root 1254: srcdir=$ac_confdir
1.1.1.6 root 1255: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 root 1256: srcdir=..
1257: fi
1258: else
1259: ac_srcdir_defaulted=no
1260: fi
1.1.1.6 root 1261: if test ! -r "$srcdir/$ac_unique_file"; then
1262: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1.1.1.10! root 1263: { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1.1 root 1264: { (exit 1); exit 1; }; }
1265: fi
1.1.1.6 root 1266: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1267: ac_abs_confdir=`(
1.1.1.10! root 1268: cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1.1.1.3 root 1269: { (exit 1); exit 1; }; }
1.1.1.6 root 1270: pwd)`
1271: # When building in place, set srcdir=.
1272: if test "$ac_abs_confdir" = "$ac_pwd"; then
1273: srcdir=.
1274: fi
1275: # Remove unnecessary trailing slashes from srcdir.
1276: # Double slashes in file names in object file debugging info
1277: # mess up M-x gdb in Emacs.
1278: case $srcdir in
1279: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1280: esac
1281: for ac_var in $ac_precious_vars; do
1282: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283: eval ac_env_${ac_var}_value=\$${ac_var}
1284: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1286: done
1287:
1288: #
1.1 root 1289: # Report the --help message.
1290: #
1291: if test "$ac_init_help" = "long"; then
1292: # Omit some internal or obsolete options to make the list less imposing.
1293: # This message is too long to be a string in the A/UX 3.1 sh.
1294: cat <<_ACEOF
1.1.1.10! root 1295: \`configure' configures hatari 1.3.0 to adapt to many kinds of systems.
1.1 root 1296:
1297: Usage: $0 [OPTION]... [VAR=VALUE]...
1298:
1299: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300: VAR=VALUE. See below for descriptions of some of the useful variables.
1301:
1302: Defaults for the options are specified in brackets.
1303:
1304: Configuration:
1305: -h, --help display this help and exit
1306: --help=short display options specific to this package
1307: --help=recursive display the short help of all the included packages
1308: -V, --version display version information and exit
1309: -q, --quiet, --silent do not print \`checking...' messages
1310: --cache-file=FILE cache test results in FILE [disabled]
1311: -C, --config-cache alias for \`--cache-file=config.cache'
1312: -n, --no-create do not create output files
1313: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1314:
1315: Installation directories:
1316: --prefix=PREFIX install architecture-independent files in PREFIX
1.1.1.10! root 1317: [$ac_default_prefix]
1.1 root 1318: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.1.1.10! root 1319: [PREFIX]
1.1 root 1320:
1321: By default, \`make install' will install all the files in
1322: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1323: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324: for instance \`--prefix=\$HOME'.
1325:
1326: For better control, use the options below.
1327:
1328: Fine tuning of the installation directories:
1.1.1.10! root 1329: --bindir=DIR user executables [EPREFIX/bin]
! 1330: --sbindir=DIR system admin executables [EPREFIX/sbin]
! 1331: --libexecdir=DIR program executables [EPREFIX/libexec]
! 1332: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
! 1333: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
! 1334: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
! 1335: --libdir=DIR object code libraries [EPREFIX/lib]
! 1336: --includedir=DIR C header files [PREFIX/include]
! 1337: --oldincludedir=DIR C header files for non-gcc [/usr/include]
! 1338: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
! 1339: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
! 1340: --infodir=DIR info documentation [DATAROOTDIR/info]
! 1341: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
! 1342: --mandir=DIR man documentation [DATAROOTDIR/man]
! 1343: --docdir=DIR documentation root [DATAROOTDIR/doc/hatari]
! 1344: --htmldir=DIR html documentation [DOCDIR]
! 1345: --dvidir=DIR dvi documentation [DOCDIR]
! 1346: --pdfdir=DIR pdf documentation [DOCDIR]
! 1347: --psdir=DIR ps documentation [DOCDIR]
1.1 root 1348: _ACEOF
1349:
1350: cat <<\_ACEOF
1351:
1.1.1.6 root 1352: X features:
1353: --x-includes=DIR X include files are in DIR
1354: --x-libraries=DIR X library files are in DIR
1355:
1.1 root 1356: System types:
1357: --build=BUILD configure for building on BUILD [guessed]
1358: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1359: --target=TARGET configure for building compilers for TARGET [HOST]
1360: _ACEOF
1361: fi
1362:
1363: if test -n "$ac_init_help"; then
1364: case $ac_init_help in
1.1.1.10! root 1365: short | recursive ) echo "Configuration of hatari 1.3.0:";;
1.1 root 1366: esac
1367: cat <<\_ACEOF
1368:
1369: Optional Features:
1.1.1.10! root 1370: --disable-option-checking ignore unrecognized --enable/--with options
1.1 root 1371: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1372: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1373: --enable-werror Compile with the "-Werror" C flag
1.1.1.8 root 1374: --enable-tracing Enable tracing
1.1.1.6 root 1375: --enable-small-mem Use less memory - at the expense of emulation speed
1.1 root 1376: --disable-sdltest Do not try to compile and run a test SDL program
1377:
1378: Optional Packages:
1379: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1380: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1381: --with-extra-inc=DIR additional include files are in DIR
1382: --with-extra-lib=DIR additional library files are in DIR
1383: --with-hostcc=x Use x as compiler for the host system
1384: --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1385: --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1.1.1.6 root 1386: --with-x use the X Window System
1.1 root 1387:
1388: Some influential environment variables:
1389: CC C compiler command
1390: CFLAGS C compiler flags
1391: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1392: nonstandard directory <lib dir>
1.1.1.9 root 1393: LIBS libraries to pass to the linker, e.g. -l<library>
1.1.1.6 root 1394: CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1395: you have headers in a nonstandard directory <include dir>
1.1 root 1396: CPP C preprocessor
1.1.1.6 root 1397: PKG_CONFIG path to pkg-config utility
1398: X_CFLAGS C compiler flags for X, overriding pkg-config
1399: X_LIBS linker flags for X, overriding pkg-config
1400: XMKMF Path to xmkmf, Makefile generator for X Window System
1.1 root 1401:
1402: Use these variables to override the choices made by `configure' or to help
1403: it to find libraries and programs with nonstandard names/locations.
1404:
1405: _ACEOF
1.1.1.6 root 1406: ac_status=$?
1.1 root 1407: fi
1408:
1409: if test "$ac_init_help" = "recursive"; then
1410: # If there are subdirs, report their specific --help.
1411: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.1.1.10! root 1412: test -d "$ac_dir" ||
! 1413: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
! 1414: continue
1.1 root 1415: ac_builddir=.
1416:
1.1.1.6 root 1417: case "$ac_dir" in
1418: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1419: *)
1.1.1.10! root 1420: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1.1.6 root 1421: # A ".." for each directory in $ac_dir_suffix.
1.1.1.10! root 1422: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1.1.6 root 1423: case $ac_top_builddir_sub in
1424: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1425: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1426: esac ;;
1427: esac
1428: ac_abs_top_builddir=$ac_pwd
1429: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1430: # for backward compatibility:
1431: ac_top_builddir=$ac_top_build_prefix
1.1 root 1432:
1433: case $srcdir in
1.1.1.6 root 1434: .) # We are building in place.
1.1 root 1435: ac_srcdir=.
1.1.1.6 root 1436: ac_top_srcdir=$ac_top_builddir_sub
1437: ac_abs_top_srcdir=$ac_pwd ;;
1438: [\\/]* | ?:[\\/]* ) # Absolute name.
1.1 root 1439: ac_srcdir=$srcdir$ac_dir_suffix;
1.1.1.6 root 1440: ac_top_srcdir=$srcdir
1441: ac_abs_top_srcdir=$srcdir ;;
1442: *) # Relative name.
1443: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1444: ac_top_srcdir=$ac_top_build_prefix$srcdir
1445: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.1.1.3 root 1446: esac
1.1.1.6 root 1447: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1 root 1448:
1.1.1.6 root 1449: cd "$ac_dir" || { ac_status=$?; continue; }
1450: # Check for guested configure.
1451: if test -f "$ac_srcdir/configure.gnu"; then
1452: echo &&
1453: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1454: elif test -f "$ac_srcdir/configure"; then
1455: echo &&
1456: $SHELL "$ac_srcdir/configure" --help=recursive
1.1 root 1457: else
1.1.1.10! root 1458: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1.1.6 root 1459: fi || ac_status=$?
1460: cd "$ac_pwd" || { ac_status=$?; break; }
1.1 root 1461: done
1462: fi
1463:
1.1.1.6 root 1464: test -n "$ac_init_help" && exit $ac_status
1.1 root 1465: if $ac_init_version; then
1466: cat <<\_ACEOF
1.1.1.10! root 1467: hatari configure 1.3.0
! 1468: generated by GNU Autoconf 2.63
1.1 root 1469:
1.1.1.6 root 1470: Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1.1.1.10! root 1471: 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1.1 root 1472: This configure script is free software; the Free Software Foundation
1473: gives unlimited permission to copy, distribute and modify it.
1474: _ACEOF
1.1.1.6 root 1475: exit
1.1 root 1476: fi
1.1.1.6 root 1477: cat >config.log <<_ACEOF
1.1 root 1478: This file contains any messages produced by compilers while
1479: running configure, to aid debugging if configure makes a mistake.
1480:
1.1.1.10! root 1481: It was created by hatari $as_me 1.3.0, which was
! 1482: generated by GNU Autoconf 2.63. Invocation command line was
1.1 root 1483:
1484: $ $0 $@
1485:
1486: _ACEOF
1.1.1.6 root 1487: exec 5>>config.log
1.1 root 1488: {
1489: cat <<_ASUNAME
1490: ## --------- ##
1491: ## Platform. ##
1492: ## --------- ##
1493:
1494: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1495: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1496: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1497: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1498: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1499:
1500: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1501: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1502:
1503: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1504: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1505: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.1.1.6 root 1506: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.1 root 1507: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1508: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1509: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1510:
1511: _ASUNAME
1512:
1513: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1514: for as_dir in $PATH
1515: do
1516: IFS=$as_save_IFS
1517: test -z "$as_dir" && as_dir=.
1.1.1.10! root 1518: $as_echo "PATH: $as_dir"
1.1 root 1519: done
1.1.1.6 root 1520: IFS=$as_save_IFS
1.1 root 1521:
1522: } >&5
1523:
1524: cat >&5 <<_ACEOF
1525:
1526:
1527: ## ----------- ##
1528: ## Core tests. ##
1529: ## ----------- ##
1530:
1531: _ACEOF
1532:
1533:
1534: # Keep a trace of the command line.
1535: # Strip out --no-create and --no-recursion so they do not pile up.
1.1.1.3 root 1536: # Strip out --silent because we don't want to record it for future runs.
1.1 root 1537: # Also quote any args containing shell meta-characters.
1.1.1.3 root 1538: # Make two passes to allow for proper duplicate-argument suppression.
1.1 root 1539: ac_configure_args=
1.1.1.3 root 1540: ac_configure_args0=
1541: ac_configure_args1=
1542: ac_must_keep_next=false
1543: for ac_pass in 1 2
1.1 root 1544: do
1.1.1.3 root 1545: for ac_arg
1546: do
1547: case $ac_arg in
1548: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1549: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1550: | -silent | --silent | --silen | --sile | --sil)
1551: continue ;;
1.1.1.6 root 1552: *\'*)
1.1.1.10! root 1553: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1.1.3 root 1554: esac
1555: case $ac_pass in
1556: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1557: 2)
1558: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1559: if test $ac_must_keep_next = true; then
1560: ac_must_keep_next=false # Got value, back to normal.
1561: else
1562: case $ac_arg in
1563: *=* | --config-cache | -C | -disable-* | --disable-* \
1564: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1565: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1566: | -with-* | --with-* | -without-* | --without-* | --x)
1567: case "$ac_configure_args0 " in
1568: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1569: esac
1570: ;;
1571: -* ) ac_must_keep_next=true ;;
1572: esac
1573: fi
1.1.1.6 root 1574: ac_configure_args="$ac_configure_args '$ac_arg'"
1.1.1.3 root 1575: ;;
1576: esac
1577: done
1.1 root 1578: done
1.1.1.3 root 1579: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1580: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1.1 root 1581:
1582: # When interrupted or exit'd, cleanup temporary files, and complete
1583: # config.log. We remove comments because anyway the quotes in there
1584: # would cause problems or look ugly.
1.1.1.6 root 1585: # WARNING: Use '\'' to represent an apostrophe within the trap.
1586: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.1 root 1587: trap 'exit_status=$?
1588: # Save into config.log some information that might help in debugging.
1589: {
1590: echo
1.1.1.3 root 1591:
1.1 root 1592: cat <<\_ASBOX
1593: ## ---------------- ##
1594: ## Cache variables. ##
1595: ## ---------------- ##
1596: _ASBOX
1597: echo
1598: # The following way of writing the cache mishandles newlines in values,
1.1.1.6 root 1599: (
1600: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1601: eval ac_val=\$$ac_var
1602: case $ac_val in #(
1603: *${as_nl}*)
1604: case $ac_var in #(
1.1.1.10! root 1605: *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
! 1606: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1.1.6 root 1607: esac
1608: case $ac_var in #(
1609: _ | IFS | as_nl) ;; #(
1.1.1.10! root 1610: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1.1.1.6 root 1611: *) $as_unset $ac_var ;;
1612: esac ;;
1613: esac
1614: done
1.1 root 1615: (set) 2>&1 |
1.1.1.6 root 1616: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1617: *${as_nl}ac_space=\ *)
1.1 root 1618: sed -n \
1.1.1.6 root 1619: "s/'\''/'\''\\\\'\'''\''/g;
1620: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1621: ;; #(
1.1 root 1622: *)
1.1.1.6 root 1623: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.1 root 1624: ;;
1.1.1.6 root 1625: esac |
1626: sort
1627: )
1.1 root 1628: echo
1.1.1.3 root 1629:
1630: cat <<\_ASBOX
1631: ## ----------------- ##
1632: ## Output variables. ##
1633: ## ----------------- ##
1634: _ASBOX
1635: echo
1636: for ac_var in $ac_subst_vars
1637: do
1.1.1.6 root 1638: eval ac_val=\$$ac_var
1639: case $ac_val in
1.1.1.10! root 1640: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.1.1.6 root 1641: esac
1.1.1.10! root 1642: $as_echo "$ac_var='\''$ac_val'\''"
1.1.1.3 root 1643: done | sort
1644: echo
1645:
1646: if test -n "$ac_subst_files"; then
1647: cat <<\_ASBOX
1.1.1.6 root 1648: ## ------------------- ##
1649: ## File substitutions. ##
1650: ## ------------------- ##
1.1.1.3 root 1651: _ASBOX
1652: echo
1653: for ac_var in $ac_subst_files
1654: do
1.1.1.6 root 1655: eval ac_val=\$$ac_var
1656: case $ac_val in
1.1.1.10! root 1657: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.1.1.6 root 1658: esac
1.1.1.10! root 1659: $as_echo "$ac_var='\''$ac_val'\''"
1.1.1.3 root 1660: done | sort
1661: echo
1662: fi
1663:
1.1 root 1664: if test -s confdefs.h; then
1665: cat <<\_ASBOX
1666: ## ----------- ##
1667: ## confdefs.h. ##
1668: ## ----------- ##
1669: _ASBOX
1670: echo
1.1.1.6 root 1671: cat confdefs.h
1.1 root 1672: echo
1673: fi
1674: test "$ac_signal" != 0 &&
1.1.1.10! root 1675: $as_echo "$as_me: caught signal $ac_signal"
! 1676: $as_echo "$as_me: exit $exit_status"
1.1 root 1677: } >&5
1.1.1.6 root 1678: rm -f core *.core core.conftest.* &&
1679: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.1 root 1680: exit $exit_status
1.1.1.6 root 1681: ' 0
1.1 root 1682: for ac_signal in 1 2 13 15; do
1683: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1684: done
1685: ac_signal=0
1686:
1687: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.1.1.6 root 1688: rm -f -r conftest* confdefs.h
1.1 root 1689:
1690: # Predefined preprocessor variables.
1691:
1692: cat >>confdefs.h <<_ACEOF
1693: #define PACKAGE_NAME "$PACKAGE_NAME"
1694: _ACEOF
1695:
1696:
1697: cat >>confdefs.h <<_ACEOF
1698: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1699: _ACEOF
1700:
1701:
1702: cat >>confdefs.h <<_ACEOF
1703: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1704: _ACEOF
1705:
1706:
1707: cat >>confdefs.h <<_ACEOF
1708: #define PACKAGE_STRING "$PACKAGE_STRING"
1709: _ACEOF
1710:
1711:
1712: cat >>confdefs.h <<_ACEOF
1713: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1714: _ACEOF
1715:
1716:
1717: # Let the site file select an alternate cache file if it wants to.
1.1.1.10! root 1718: # Prefer an explicitly selected file to automatically selected ones.
! 1719: ac_site_file1=NONE
! 1720: ac_site_file2=NONE
1.1.1.6 root 1721: if test -n "$CONFIG_SITE"; then
1.1.1.10! root 1722: ac_site_file1=$CONFIG_SITE
1.1.1.6 root 1723: elif test "x$prefix" != xNONE; then
1.1.1.10! root 1724: ac_site_file1=$prefix/share/config.site
! 1725: ac_site_file2=$prefix/etc/config.site
1.1.1.6 root 1726: else
1.1.1.10! root 1727: ac_site_file1=$ac_default_prefix/share/config.site
! 1728: ac_site_file2=$ac_default_prefix/etc/config.site
1.1 root 1729: fi
1.1.1.10! root 1730: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1.1.1.6 root 1731: do
1.1.1.10! root 1732: test "x$ac_site_file" = xNONE && continue
1.1 root 1733: if test -r "$ac_site_file"; then
1.1.1.10! root 1734: { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
! 1735: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1.1 root 1736: sed 's/^/| /' "$ac_site_file" >&5
1737: . "$ac_site_file"
1738: fi
1739: done
1740:
1741: if test -r "$cache_file"; then
1742: # Some versions of bash will fail to source /dev/null (special
1743: # files actually), so we avoid doing that.
1744: if test -f "$cache_file"; then
1.1.1.10! root 1745: { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
! 1746: $as_echo "$as_me: loading cache $cache_file" >&6;}
1.1 root 1747: case $cache_file in
1.1.1.6 root 1748: [\\/]* | ?:[\\/]* ) . "$cache_file";;
1749: *) . "./$cache_file";;
1.1 root 1750: esac
1751: fi
1752: else
1.1.1.10! root 1753: { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
! 1754: $as_echo "$as_me: creating cache $cache_file" >&6;}
1.1 root 1755: >$cache_file
1756: fi
1757:
1758: # Check that the precious variables saved in the cache have kept the same
1759: # value.
1760: ac_cache_corrupted=false
1.1.1.6 root 1761: for ac_var in $ac_precious_vars; do
1.1 root 1762: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1763: eval ac_new_set=\$ac_env_${ac_var}_set
1.1.1.6 root 1764: eval ac_old_val=\$ac_cv_env_${ac_var}_value
1765: eval ac_new_val=\$ac_env_${ac_var}_value
1.1 root 1766: case $ac_old_set,$ac_new_set in
1767: set,)
1.1.1.10! root 1768: { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
! 1769: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1.1 root 1770: ac_cache_corrupted=: ;;
1771: ,set)
1.1.1.10! root 1772: { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
! 1773: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1.1 root 1774: ac_cache_corrupted=: ;;
1775: ,);;
1776: *)
1777: if test "x$ac_old_val" != "x$ac_new_val"; then
1.1.1.10! root 1778: # differences in whitespace do not lead to failure.
! 1779: ac_old_val_w=`echo x $ac_old_val`
! 1780: ac_new_val_w=`echo x $ac_new_val`
! 1781: if test "$ac_old_val_w" != "$ac_new_val_w"; then
! 1782: { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
! 1783: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
! 1784: ac_cache_corrupted=:
! 1785: else
! 1786: { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
! 1787: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
! 1788: eval $ac_var=\$ac_old_val
! 1789: fi
! 1790: { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
! 1791: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
! 1792: { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
! 1793: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1.1 root 1794: fi;;
1795: esac
1796: # Pass precious variables to config.status.
1797: if test "$ac_new_set" = set; then
1798: case $ac_new_val in
1.1.1.10! root 1799: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 root 1800: *) ac_arg=$ac_var=$ac_new_val ;;
1801: esac
1802: case " $ac_configure_args " in
1803: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1804: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1805: esac
1806: fi
1807: done
1808: if $ac_cache_corrupted; then
1.1.1.10! root 1809: { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
! 1810: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 1811: { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
! 1812: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
! 1813: { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
! 1814: $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1.1 root 1815: { (exit 1); exit 1; }; }
1816: fi
1817:
1818:
1819:
1820:
1821:
1822:
1823:
1824:
1825:
1826:
1827:
1828:
1829:
1830:
1831:
1832:
1833:
1834:
1835:
1836:
1837:
1838:
1839:
1840:
1841:
1.1.1.6 root 1842: ac_ext=c
1843: ac_cpp='$CPP $CPPFLAGS'
1844: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1845: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1846: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1847:
1.1 root 1848:
1849:
1850:
1851:
1.1.1.6 root 1852: ac_config_headers="$ac_config_headers config.h"
1.1 root 1853:
1.1.1.3 root 1854:
1.1 root 1855: #AC_CANONICAL_HOST
1856: ac_aux_dir=
1.1.1.6 root 1857: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1858: if test -f "$ac_dir/install-sh"; then
1.1 root 1859: ac_aux_dir=$ac_dir
1860: ac_install_sh="$ac_aux_dir/install-sh -c"
1861: break
1.1.1.6 root 1862: elif test -f "$ac_dir/install.sh"; then
1.1 root 1863: ac_aux_dir=$ac_dir
1864: ac_install_sh="$ac_aux_dir/install.sh -c"
1865: break
1.1.1.6 root 1866: elif test -f "$ac_dir/shtool"; then
1.1 root 1867: ac_aux_dir=$ac_dir
1868: ac_install_sh="$ac_aux_dir/shtool install -c"
1869: break
1870: fi
1871: done
1872: if test -z "$ac_aux_dir"; then
1.1.1.10! root 1873: { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
! 1874: $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1.1 root 1875: { (exit 1); exit 1; }; }
1876: fi
1.1.1.6 root 1877:
1878: # These three variables are undocumented and unsupported,
1879: # and are intended to be withdrawn in a future Autoconf release.
1880: # They can cause serious problems if a builder's source tree is in a directory
1881: # whose full name contains unusual characters.
1882: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1883: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1884: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1885:
1.1 root 1886:
1887: # Make sure we can run config.sub.
1.1.1.6 root 1888: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1.1.1.10! root 1889: { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
! 1890: $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1.1 root 1891: { (exit 1); exit 1; }; }
1892:
1.1.1.10! root 1893: { $as_echo "$as_me:$LINENO: checking build system type" >&5
! 1894: $as_echo_n "checking build system type... " >&6; }
1.1 root 1895: if test "${ac_cv_build+set}" = set; then
1.1.1.10! root 1896: $as_echo_n "(cached) " >&6
1.1 root 1897: else
1.1.1.6 root 1898: ac_build_alias=$build_alias
1899: test "x$ac_build_alias" = x &&
1900: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1901: test "x$ac_build_alias" = x &&
1.1.1.10! root 1902: { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
! 1903: $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1.1 root 1904: { (exit 1); exit 1; }; }
1.1.1.6 root 1905: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1.1.1.10! root 1906: { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
! 1907: $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1.1 root 1908: { (exit 1); exit 1; }; }
1909:
1910: fi
1.1.1.10! root 1911: { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
! 1912: $as_echo "$ac_cv_build" >&6; }
1.1.1.6 root 1913: case $ac_cv_build in
1914: *-*-*) ;;
1.1.1.10! root 1915: *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
! 1916: $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1.1.1.6 root 1917: { (exit 1); exit 1; }; };;
1918: esac
1.1 root 1919: build=$ac_cv_build
1.1.1.6 root 1920: ac_save_IFS=$IFS; IFS='-'
1921: set x $ac_cv_build
1922: shift
1923: build_cpu=$1
1924: build_vendor=$2
1925: shift; shift
1926: # Remember, the first character of IFS is used to create $*,
1927: # except with old shells:
1928: build_os=$*
1929: IFS=$ac_save_IFS
1930: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.1 root 1931:
1932:
1.1.1.10! root 1933: { $as_echo "$as_me:$LINENO: checking host system type" >&5
! 1934: $as_echo_n "checking host system type... " >&6; }
1.1 root 1935: if test "${ac_cv_host+set}" = set; then
1.1.1.10! root 1936: $as_echo_n "(cached) " >&6
1.1 root 1937: else
1.1.1.6 root 1938: if test "x$host_alias" = x; then
1939: ac_cv_host=$ac_cv_build
1940: else
1941: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1.1.1.10! root 1942: { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
! 1943: $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1.1 root 1944: { (exit 1); exit 1; }; }
1.1.1.6 root 1945: fi
1.1 root 1946:
1947: fi
1.1.1.10! root 1948: { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
! 1949: $as_echo "$ac_cv_host" >&6; }
1.1.1.6 root 1950: case $ac_cv_host in
1951: *-*-*) ;;
1.1.1.10! root 1952: *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
! 1953: $as_echo "$as_me: error: invalid value of canonical host" >&2;}
1.1.1.6 root 1954: { (exit 1); exit 1; }; };;
1955: esac
1.1 root 1956: host=$ac_cv_host
1.1.1.6 root 1957: ac_save_IFS=$IFS; IFS='-'
1958: set x $ac_cv_host
1959: shift
1960: host_cpu=$1
1961: host_vendor=$2
1962: shift; shift
1963: # Remember, the first character of IFS is used to create $*,
1964: # except with old shells:
1965: host_os=$*
1966: IFS=$ac_save_IFS
1967: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.1 root 1968:
1969:
1.1.1.10! root 1970: { $as_echo "$as_me:$LINENO: checking target system type" >&5
! 1971: $as_echo_n "checking target system type... " >&6; }
1.1 root 1972: if test "${ac_cv_target+set}" = set; then
1.1.1.10! root 1973: $as_echo_n "(cached) " >&6
1.1 root 1974: else
1.1.1.6 root 1975: if test "x$target_alias" = x; then
1976: ac_cv_target=$ac_cv_host
1977: else
1978: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1.1.1.10! root 1979: { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
! 1980: $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1.1 root 1981: { (exit 1); exit 1; }; }
1.1.1.6 root 1982: fi
1.1 root 1983:
1984: fi
1.1.1.10! root 1985: { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
! 1986: $as_echo "$ac_cv_target" >&6; }
1.1.1.6 root 1987: case $ac_cv_target in
1988: *-*-*) ;;
1.1.1.10! root 1989: *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
! 1990: $as_echo "$as_me: error: invalid value of canonical target" >&2;}
1.1.1.6 root 1991: { (exit 1); exit 1; }; };;
1992: esac
1.1 root 1993: target=$ac_cv_target
1.1.1.6 root 1994: ac_save_IFS=$IFS; IFS='-'
1995: set x $ac_cv_target
1996: shift
1997: target_cpu=$1
1998: target_vendor=$2
1999: shift; shift
2000: # Remember, the first character of IFS is used to create $*,
2001: # except with old shells:
2002: target_os=$*
2003: IFS=$ac_save_IFS
2004: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1.1 root 2005:
2006:
2007: # The aliases save the names the user supplied, while $host etc.
2008: # will get canonicalized.
2009: test -n "$target_alias" &&
2010: test "$program_prefix$program_suffix$program_transform_name" = \
2011: NONENONEs,x,x, &&
2012: program_prefix=${target_alias}-
2013:
2014: ac_ext=c
2015: ac_cpp='$CPP $CPPFLAGS'
2016: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2017: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2018: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2019: if test -n "$ac_tool_prefix"; then
2020: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2021: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.1.1.10! root 2022: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2023: $as_echo_n "checking for $ac_word... " >&6; }
1.1 root 2024: if test "${ac_cv_prog_CC+set}" = set; then
1.1.1.10! root 2025: $as_echo_n "(cached) " >&6
1.1 root 2026: else
2027: if test -n "$CC"; then
2028: ac_cv_prog_CC="$CC" # Let the user override the test.
2029: else
2030: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031: for as_dir in $PATH
2032: do
2033: IFS=$as_save_IFS
2034: test -z "$as_dir" && as_dir=.
2035: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.9 root 2036: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 2037: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.1.1.10! root 2038: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 root 2039: break 2
2040: fi
2041: done
2042: done
1.1.1.6 root 2043: IFS=$as_save_IFS
1.1 root 2044:
2045: fi
2046: fi
2047: CC=$ac_cv_prog_CC
2048: if test -n "$CC"; then
1.1.1.10! root 2049: { $as_echo "$as_me:$LINENO: result: $CC" >&5
! 2050: $as_echo "$CC" >&6; }
1.1 root 2051: else
1.1.1.10! root 2052: { $as_echo "$as_me:$LINENO: result: no" >&5
! 2053: $as_echo "no" >&6; }
1.1 root 2054: fi
2055:
1.1.1.6 root 2056:
1.1 root 2057: fi
2058: if test -z "$ac_cv_prog_CC"; then
2059: ac_ct_CC=$CC
2060: # Extract the first word of "gcc", so it can be a program name with args.
2061: set dummy gcc; ac_word=$2
1.1.1.10! root 2062: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2063: $as_echo_n "checking for $ac_word... " >&6; }
1.1 root 2064: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.1.1.10! root 2065: $as_echo_n "(cached) " >&6
1.1 root 2066: else
2067: if test -n "$ac_ct_CC"; then
2068: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2069: else
2070: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071: for as_dir in $PATH
2072: do
2073: IFS=$as_save_IFS
2074: test -z "$as_dir" && as_dir=.
2075: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.9 root 2076: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 2077: ac_cv_prog_ac_ct_CC="gcc"
1.1.1.10! root 2078: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 root 2079: break 2
2080: fi
2081: done
2082: done
1.1.1.6 root 2083: IFS=$as_save_IFS
1.1 root 2084:
2085: fi
2086: fi
2087: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2088: if test -n "$ac_ct_CC"; then
1.1.1.10! root 2089: { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
! 2090: $as_echo "$ac_ct_CC" >&6; }
1.1 root 2091: else
1.1.1.10! root 2092: { $as_echo "$as_me:$LINENO: result: no" >&5
! 2093: $as_echo "no" >&6; }
1.1 root 2094: fi
2095:
1.1.1.6 root 2096: if test "x$ac_ct_CC" = x; then
2097: CC=""
2098: else
2099: case $cross_compiling:$ac_tool_warned in
2100: yes:)
1.1.1.10! root 2101: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
! 2102: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1.1.6 root 2103: ac_tool_warned=yes ;;
2104: esac
2105: CC=$ac_ct_CC
2106: fi
1.1 root 2107: else
2108: CC="$ac_cv_prog_CC"
2109: fi
2110:
2111: if test -z "$CC"; then
1.1.1.6 root 2112: if test -n "$ac_tool_prefix"; then
2113: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.1 root 2114: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.1.1.10! root 2115: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2116: $as_echo_n "checking for $ac_word... " >&6; }
1.1 root 2117: if test "${ac_cv_prog_CC+set}" = set; then
1.1.1.10! root 2118: $as_echo_n "(cached) " >&6
1.1 root 2119: else
2120: if test -n "$CC"; then
2121: ac_cv_prog_CC="$CC" # Let the user override the test.
2122: else
2123: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2124: for as_dir in $PATH
2125: do
2126: IFS=$as_save_IFS
2127: test -z "$as_dir" && as_dir=.
2128: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.9 root 2129: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 2130: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.1.1.10! root 2131: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 root 2132: break 2
2133: fi
2134: done
2135: done
1.1.1.6 root 2136: IFS=$as_save_IFS
1.1 root 2137:
2138: fi
2139: fi
2140: CC=$ac_cv_prog_CC
2141: if test -n "$CC"; then
1.1.1.10! root 2142: { $as_echo "$as_me:$LINENO: result: $CC" >&5
! 2143: $as_echo "$CC" >&6; }
1.1 root 2144: else
1.1.1.10! root 2145: { $as_echo "$as_me:$LINENO: result: no" >&5
! 2146: $as_echo "no" >&6; }
1.1 root 2147: fi
2148:
2149:
1.1.1.6 root 2150: fi
1.1 root 2151: fi
2152: if test -z "$CC"; then
2153: # Extract the first word of "cc", so it can be a program name with args.
2154: set dummy cc; ac_word=$2
1.1.1.10! root 2155: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2156: $as_echo_n "checking for $ac_word... " >&6; }
1.1 root 2157: if test "${ac_cv_prog_CC+set}" = set; then
1.1.1.10! root 2158: $as_echo_n "(cached) " >&6
1.1 root 2159: else
2160: if test -n "$CC"; then
2161: ac_cv_prog_CC="$CC" # Let the user override the test.
2162: else
2163: ac_prog_rejected=no
2164: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165: for as_dir in $PATH
2166: do
2167: IFS=$as_save_IFS
2168: test -z "$as_dir" && as_dir=.
2169: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.9 root 2170: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 2171: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2172: ac_prog_rejected=yes
2173: continue
2174: fi
2175: ac_cv_prog_CC="cc"
1.1.1.10! root 2176: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 root 2177: break 2
2178: fi
2179: done
2180: done
1.1.1.6 root 2181: IFS=$as_save_IFS
1.1 root 2182:
2183: if test $ac_prog_rejected = yes; then
2184: # We found a bogon in the path, so make sure we never use it.
2185: set dummy $ac_cv_prog_CC
2186: shift
2187: if test $# != 0; then
2188: # We chose a different compiler from the bogus one.
2189: # However, it has the same basename, so the bogon will be chosen
2190: # first if we set CC to just the basename; use the full file name.
2191: shift
1.1.1.3 root 2192: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 root 2193: fi
2194: fi
2195: fi
2196: fi
2197: CC=$ac_cv_prog_CC
2198: if test -n "$CC"; then
1.1.1.10! root 2199: { $as_echo "$as_me:$LINENO: result: $CC" >&5
! 2200: $as_echo "$CC" >&6; }
1.1 root 2201: else
1.1.1.10! root 2202: { $as_echo "$as_me:$LINENO: result: no" >&5
! 2203: $as_echo "no" >&6; }
1.1 root 2204: fi
2205:
1.1.1.6 root 2206:
1.1 root 2207: fi
2208: if test -z "$CC"; then
2209: if test -n "$ac_tool_prefix"; then
1.1.1.6 root 2210: for ac_prog in cl.exe
1.1 root 2211: do
2212: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2213: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.1.1.10! root 2214: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2215: $as_echo_n "checking for $ac_word... " >&6; }
1.1 root 2216: if test "${ac_cv_prog_CC+set}" = set; then
1.1.1.10! root 2217: $as_echo_n "(cached) " >&6
1.1 root 2218: else
2219: if test -n "$CC"; then
2220: ac_cv_prog_CC="$CC" # Let the user override the test.
2221: else
2222: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223: for as_dir in $PATH
2224: do
2225: IFS=$as_save_IFS
2226: test -z "$as_dir" && as_dir=.
2227: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.9 root 2228: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 2229: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.1.1.10! root 2230: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 root 2231: break 2
2232: fi
2233: done
2234: done
1.1.1.6 root 2235: IFS=$as_save_IFS
1.1 root 2236:
2237: fi
2238: fi
2239: CC=$ac_cv_prog_CC
2240: if test -n "$CC"; then
1.1.1.10! root 2241: { $as_echo "$as_me:$LINENO: result: $CC" >&5
! 2242: $as_echo "$CC" >&6; }
1.1 root 2243: else
1.1.1.10! root 2244: { $as_echo "$as_me:$LINENO: result: no" >&5
! 2245: $as_echo "no" >&6; }
1.1 root 2246: fi
2247:
1.1.1.6 root 2248:
1.1 root 2249: test -n "$CC" && break
2250: done
2251: fi
2252: if test -z "$CC"; then
2253: ac_ct_CC=$CC
1.1.1.6 root 2254: for ac_prog in cl.exe
1.1 root 2255: do
2256: # Extract the first word of "$ac_prog", so it can be a program name with args.
2257: set dummy $ac_prog; ac_word=$2
1.1.1.10! root 2258: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2259: $as_echo_n "checking for $ac_word... " >&6; }
1.1 root 2260: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.1.1.10! root 2261: $as_echo_n "(cached) " >&6
1.1 root 2262: else
2263: if test -n "$ac_ct_CC"; then
2264: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2265: else
2266: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267: for as_dir in $PATH
2268: do
2269: IFS=$as_save_IFS
2270: test -z "$as_dir" && as_dir=.
2271: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.9 root 2272: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 2273: ac_cv_prog_ac_ct_CC="$ac_prog"
1.1.1.10! root 2274: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 root 2275: break 2
2276: fi
2277: done
2278: done
1.1.1.6 root 2279: IFS=$as_save_IFS
1.1 root 2280:
2281: fi
2282: fi
2283: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2284: if test -n "$ac_ct_CC"; then
1.1.1.10! root 2285: { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
! 2286: $as_echo "$ac_ct_CC" >&6; }
1.1 root 2287: else
1.1.1.10! root 2288: { $as_echo "$as_me:$LINENO: result: no" >&5
! 2289: $as_echo "no" >&6; }
1.1 root 2290: fi
2291:
1.1.1.6 root 2292:
1.1 root 2293: test -n "$ac_ct_CC" && break
2294: done
2295:
1.1.1.6 root 2296: if test "x$ac_ct_CC" = x; then
2297: CC=""
2298: else
2299: case $cross_compiling:$ac_tool_warned in
2300: yes:)
1.1.1.10! root 2301: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
! 2302: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1.1.6 root 2303: ac_tool_warned=yes ;;
2304: esac
2305: CC=$ac_ct_CC
2306: fi
1.1 root 2307: fi
2308:
2309: fi
2310:
2311:
1.1.1.10! root 2312: test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
! 2313: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 2314: { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1.1.1.3 root 2315: See \`config.log' for more details." >&5
1.1.1.10! root 2316: $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
1.1.1.3 root 2317: See \`config.log' for more details." >&2;}
1.1.1.10! root 2318: { (exit 1); exit 1; }; }; }
1.1 root 2319:
2320: # Provide some information about the compiler.
1.1.1.10! root 2321: $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
! 2322: set X $ac_compile
! 2323: ac_compiler=$2
1.1.1.6 root 2324: { (ac_try="$ac_compiler --version >&5"
2325: case "(($ac_try" in
2326: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327: *) ac_try_echo=$ac_try;;
2328: esac
1.1.1.10! root 2329: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 2330: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 2331: (eval "$ac_compiler --version >&5") 2>&5
1.1 root 2332: ac_status=$?
1.1.1.10! root 2333: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 root 2334: (exit $ac_status); }
1.1.1.6 root 2335: { (ac_try="$ac_compiler -v >&5"
2336: case "(($ac_try" in
2337: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2338: *) ac_try_echo=$ac_try;;
2339: esac
1.1.1.10! root 2340: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 2341: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 2342: (eval "$ac_compiler -v >&5") 2>&5
1.1 root 2343: ac_status=$?
1.1.1.10! root 2344: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 root 2345: (exit $ac_status); }
1.1.1.6 root 2346: { (ac_try="$ac_compiler -V >&5"
2347: case "(($ac_try" in
2348: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2349: *) ac_try_echo=$ac_try;;
2350: esac
1.1.1.10! root 2351: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 2352: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 2353: (eval "$ac_compiler -V >&5") 2>&5
1.1 root 2354: ac_status=$?
1.1.1.10! root 2355: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 root 2356: (exit $ac_status); }
2357:
2358: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 2359: /* confdefs.h. */
2360: _ACEOF
2361: cat confdefs.h >>conftest.$ac_ext
2362: cat >>conftest.$ac_ext <<_ACEOF
2363: /* end confdefs.h. */
1.1 root 2364:
2365: int
2366: main ()
2367: {
2368:
2369: ;
2370: return 0;
2371: }
2372: _ACEOF
2373: ac_clean_files_save=$ac_clean_files
1.1.1.10! root 2374: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1.1 root 2375: # Try to create an executable without -o first, disregard a.out.
2376: # It will help us diagnose broken compilers, and finding out an intuition
2377: # of exeext.
1.1.1.10! root 2378: { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
! 2379: $as_echo_n "checking for C compiler default output file name... " >&6; }
! 2380: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
! 2381:
! 2382: # The possible output files:
! 2383: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
! 2384:
1.1.1.6 root 2385: ac_rmfiles=
2386: for ac_file in $ac_files
2387: do
2388: case $ac_file in
1.1.1.10! root 2389: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.1.1.6 root 2390: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2391: esac
2392: done
2393: rm -f $ac_rmfiles
2394:
2395: if { (ac_try="$ac_link_default"
2396: case "(($ac_try" in
2397: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398: *) ac_try_echo=$ac_try;;
2399: esac
1.1.1.10! root 2400: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 2401: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 2402: (eval "$ac_link_default") 2>&5
1.1 root 2403: ac_status=$?
1.1.1.10! root 2404: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 root 2405: (exit $ac_status); }; then
1.1.1.6 root 2406: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2407: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2408: # in a Makefile. We should not override ac_cv_exeext if it was cached,
2409: # so that the user can short-circuit this test for compilers unknown to
2410: # Autoconf.
1.1.1.9 root 2411: for ac_file in $ac_files ''
1.1.1.3 root 2412: do
2413: test -f "$ac_file" || continue
1.1 root 2414: case $ac_file in
1.1.1.10! root 2415: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1.1.1.3 root 2416: ;;
2417: [ab].out )
2418: # We found the default executable, but exeext='' is most
2419: # certainly right.
2420: break;;
2421: *.* )
1.1.1.6 root 2422: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2423: then :; else
2424: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2425: fi
2426: # We set ac_cv_exeext here because the later test for it is not
2427: # safe: cross compilers may not add the suffix if given an `-o'
2428: # argument, so we may need to know it at that point already.
2429: # Even if this section looks crufty: it has the advantage of
2430: # actually working.
1.1.1.3 root 2431: break;;
2432: * )
2433: break;;
1.1 root 2434: esac
2435: done
1.1.1.6 root 2436: test "$ac_cv_exeext" = no && ac_cv_exeext=
2437:
1.1 root 2438: else
1.1.1.9 root 2439: ac_file=''
2440: fi
2441:
1.1.1.10! root 2442: { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
! 2443: $as_echo "$ac_file" >&6; }
1.1.1.9 root 2444: if test -z "$ac_file"; then
1.1.1.10! root 2445: $as_echo "$as_me: failed program was:" >&5
1.1.1.3 root 2446: sed 's/^/| /' conftest.$ac_ext >&5
2447:
1.1.1.10! root 2448: { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
! 2449: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 2450: { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
1.1.1.3 root 2451: See \`config.log' for more details." >&5
1.1.1.10! root 2452: $as_echo "$as_me: error: C compiler cannot create executables
1.1.1.3 root 2453: See \`config.log' for more details." >&2;}
1.1.1.10! root 2454: { (exit 77); exit 77; }; }; }
1.1 root 2455: fi
2456:
2457: ac_exeext=$ac_cv_exeext
2458:
1.1.1.6 root 2459: # Check that the compiler produces executables we can run. If not, either
1.1 root 2460: # the compiler is broken, or we cross compile.
1.1.1.10! root 2461: { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
! 2462: $as_echo_n "checking whether the C compiler works... " >&6; }
1.1 root 2463: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2464: # If not cross compiling, check that we can run a simple program.
2465: if test "$cross_compiling" != yes; then
2466: if { ac_try='./$ac_file'
1.1.1.6 root 2467: { (case "(($ac_try" in
2468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2469: *) ac_try_echo=$ac_try;;
2470: esac
1.1.1.10! root 2471: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 2472: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 2473: (eval "$ac_try") 2>&5
1.1 root 2474: ac_status=$?
1.1.1.10! root 2475: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 root 2476: (exit $ac_status); }; }; then
2477: cross_compiling=no
2478: else
2479: if test "$cross_compiling" = maybe; then
2480: cross_compiling=yes
2481: else
1.1.1.10! root 2482: { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
! 2483: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 2484: { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
1.1.1.3 root 2485: If you meant to cross compile, use \`--host'.
2486: See \`config.log' for more details." >&5
1.1.1.10! root 2487: $as_echo "$as_me: error: cannot run C compiled programs.
1.1.1.3 root 2488: If you meant to cross compile, use \`--host'.
2489: See \`config.log' for more details." >&2;}
1.1.1.10! root 2490: { (exit 1); exit 1; }; }; }
1.1 root 2491: fi
2492: fi
2493: fi
1.1.1.10! root 2494: { $as_echo "$as_me:$LINENO: result: yes" >&5
! 2495: $as_echo "yes" >&6; }
1.1 root 2496:
1.1.1.10! root 2497: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1.1 root 2498: ac_clean_files=$ac_clean_files_save
1.1.1.6 root 2499: # Check that the compiler produces executables we can run. If not, either
1.1 root 2500: # the compiler is broken, or we cross compile.
1.1.1.10! root 2501: { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
! 2502: $as_echo_n "checking whether we are cross compiling... " >&6; }
! 2503: { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
! 2504: $as_echo "$cross_compiling" >&6; }
1.1.1.6 root 2505:
1.1.1.10! root 2506: { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
! 2507: $as_echo_n "checking for suffix of executables... " >&6; }
1.1.1.6 root 2508: if { (ac_try="$ac_link"
2509: case "(($ac_try" in
2510: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511: *) ac_try_echo=$ac_try;;
2512: esac
1.1.1.10! root 2513: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 2514: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 2515: (eval "$ac_link") 2>&5
1.1 root 2516: ac_status=$?
1.1.1.10! root 2517: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 root 2518: (exit $ac_status); }; then
2519: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2520: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2521: # work properly (i.e., refer to `conftest.exe'), while it won't with
2522: # `rm'.
1.1.1.3 root 2523: for ac_file in conftest.exe conftest conftest.*; do
2524: test -f "$ac_file" || continue
1.1 root 2525: case $ac_file in
1.1.1.10! root 2526: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.1 root 2527: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.1.1.3 root 2528: break;;
1.1 root 2529: * ) break;;
2530: esac
2531: done
2532: else
1.1.1.10! root 2533: { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
! 2534: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 2535: { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1.1.1.3 root 2536: See \`config.log' for more details." >&5
1.1.1.10! root 2537: $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1.1.1.3 root 2538: See \`config.log' for more details." >&2;}
1.1.1.10! root 2539: { (exit 1); exit 1; }; }; }
1.1 root 2540: fi
2541:
2542: rm -f conftest$ac_cv_exeext
1.1.1.10! root 2543: { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
! 2544: $as_echo "$ac_cv_exeext" >&6; }
1.1 root 2545:
2546: rm -f conftest.$ac_ext
2547: EXEEXT=$ac_cv_exeext
2548: ac_exeext=$EXEEXT
1.1.1.10! root 2549: { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
! 2550: $as_echo_n "checking for suffix of object files... " >&6; }
1.1 root 2551: if test "${ac_cv_objext+set}" = set; then
1.1.1.10! root 2552: $as_echo_n "(cached) " >&6
1.1 root 2553: else
2554: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 2555: /* confdefs.h. */
2556: _ACEOF
2557: cat confdefs.h >>conftest.$ac_ext
2558: cat >>conftest.$ac_ext <<_ACEOF
2559: /* end confdefs.h. */
1.1 root 2560:
2561: int
2562: main ()
2563: {
2564:
2565: ;
2566: return 0;
2567: }
2568: _ACEOF
2569: rm -f conftest.o conftest.obj
1.1.1.6 root 2570: if { (ac_try="$ac_compile"
2571: case "(($ac_try" in
2572: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573: *) ac_try_echo=$ac_try;;
2574: esac
1.1.1.10! root 2575: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 2576: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 2577: (eval "$ac_compile") 2>&5
1.1 root 2578: ac_status=$?
1.1.1.10! root 2579: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 root 2580: (exit $ac_status); }; then
1.1.1.6 root 2581: for ac_file in conftest.o conftest.obj conftest.*; do
2582: test -f "$ac_file" || continue;
1.1 root 2583: case $ac_file in
1.1.1.10! root 2584: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1.1 root 2585: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2586: break;;
2587: esac
2588: done
2589: else
1.1.1.10! root 2590: $as_echo "$as_me: failed program was:" >&5
1.1.1.3 root 2591: sed 's/^/| /' conftest.$ac_ext >&5
2592:
1.1.1.10! root 2593: { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
! 2594: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 2595: { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1.1.1.3 root 2596: See \`config.log' for more details." >&5
1.1.1.10! root 2597: $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
1.1.1.3 root 2598: See \`config.log' for more details." >&2;}
1.1.1.10! root 2599: { (exit 1); exit 1; }; }; }
1.1 root 2600: fi
2601:
2602: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2603: fi
1.1.1.10! root 2604: { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
! 2605: $as_echo "$ac_cv_objext" >&6; }
1.1 root 2606: OBJEXT=$ac_cv_objext
2607: ac_objext=$OBJEXT
1.1.1.10! root 2608: { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
! 2609: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
1.1 root 2610: if test "${ac_cv_c_compiler_gnu+set}" = set; then
1.1.1.10! root 2611: $as_echo_n "(cached) " >&6
1.1 root 2612: else
2613: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 2614: /* confdefs.h. */
2615: _ACEOF
2616: cat confdefs.h >>conftest.$ac_ext
2617: cat >>conftest.$ac_ext <<_ACEOF
2618: /* end confdefs.h. */
1.1 root 2619:
2620: int
2621: main ()
2622: {
2623: #ifndef __GNUC__
2624: choke me
2625: #endif
2626:
2627: ;
2628: return 0;
2629: }
2630: _ACEOF
2631: rm -f conftest.$ac_objext
1.1.1.6 root 2632: if { (ac_try="$ac_compile"
2633: case "(($ac_try" in
2634: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635: *) ac_try_echo=$ac_try;;
2636: esac
1.1.1.10! root 2637: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 2638: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 2639: (eval "$ac_compile") 2>conftest.er1
1.1 root 2640: ac_status=$?
1.1.1.3 root 2641: grep -v '^ *+' conftest.er1 >conftest.err
2642: rm -f conftest.er1
2643: cat conftest.err >&5
1.1.1.10! root 2644: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 2645: (exit $ac_status); } && {
2646: test -z "$ac_c_werror_flag" ||
2647: test ! -s conftest.err
2648: } && test -s conftest.$ac_objext; then
1.1 root 2649: ac_compiler_gnu=yes
2650: else
1.1.1.10! root 2651: $as_echo "$as_me: failed program was:" >&5
1.1.1.3 root 2652: sed 's/^/| /' conftest.$ac_ext >&5
2653:
1.1.1.6 root 2654: ac_compiler_gnu=no
1.1 root 2655: fi
1.1.1.6 root 2656:
2657: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 2658: ac_cv_c_compiler_gnu=$ac_compiler_gnu
2659:
2660: fi
1.1.1.10! root 2661: { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
! 2662: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
! 2663: if test $ac_compiler_gnu = yes; then
! 2664: GCC=yes
! 2665: else
! 2666: GCC=
! 2667: fi
1.1 root 2668: ac_test_CFLAGS=${CFLAGS+set}
2669: ac_save_CFLAGS=$CFLAGS
1.1.1.10! root 2670: { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
! 2671: $as_echo_n "checking whether $CC accepts -g... " >&6; }
1.1 root 2672: if test "${ac_cv_prog_cc_g+set}" = set; then
1.1.1.10! root 2673: $as_echo_n "(cached) " >&6
1.1 root 2674: else
1.1.1.6 root 2675: ac_save_c_werror_flag=$ac_c_werror_flag
2676: ac_c_werror_flag=yes
2677: ac_cv_prog_cc_g=no
2678: CFLAGS="-g"
2679: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 2680: /* confdefs.h. */
2681: _ACEOF
2682: cat confdefs.h >>conftest.$ac_ext
2683: cat >>conftest.$ac_ext <<_ACEOF
2684: /* end confdefs.h. */
1.1 root 2685:
2686: int
2687: main ()
2688: {
2689:
2690: ;
2691: return 0;
2692: }
2693: _ACEOF
2694: rm -f conftest.$ac_objext
1.1.1.6 root 2695: if { (ac_try="$ac_compile"
2696: case "(($ac_try" in
2697: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698: *) ac_try_echo=$ac_try;;
2699: esac
1.1.1.10! root 2700: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 2701: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 2702: (eval "$ac_compile") 2>conftest.er1
1.1 root 2703: ac_status=$?
1.1.1.3 root 2704: grep -v '^ *+' conftest.er1 >conftest.err
2705: rm -f conftest.er1
2706: cat conftest.err >&5
1.1.1.10! root 2707: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 2708: (exit $ac_status); } && {
2709: test -z "$ac_c_werror_flag" ||
2710: test ! -s conftest.err
2711: } && test -s conftest.$ac_objext; then
1.1.1.6 root 2712: ac_cv_prog_cc_g=yes
2713: else
1.1.1.10! root 2714: $as_echo "$as_me: failed program was:" >&5
1.1.1.6 root 2715: sed 's/^/| /' conftest.$ac_ext >&5
2716:
2717: CFLAGS=""
2718: cat >conftest.$ac_ext <<_ACEOF
2719: /* confdefs.h. */
2720: _ACEOF
2721: cat confdefs.h >>conftest.$ac_ext
2722: cat >>conftest.$ac_ext <<_ACEOF
2723: /* end confdefs.h. */
2724:
2725: int
2726: main ()
2727: {
2728:
2729: ;
2730: return 0;
2731: }
2732: _ACEOF
2733: rm -f conftest.$ac_objext
2734: if { (ac_try="$ac_compile"
2735: case "(($ac_try" in
2736: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737: *) ac_try_echo=$ac_try;;
2738: esac
1.1.1.10! root 2739: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 2740: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 2741: (eval "$ac_compile") 2>conftest.er1
1.1.1.3 root 2742: ac_status=$?
1.1.1.6 root 2743: grep -v '^ *+' conftest.er1 >conftest.err
2744: rm -f conftest.er1
2745: cat conftest.err >&5
1.1.1.10! root 2746: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 2747: (exit $ac_status); } && {
2748: test -z "$ac_c_werror_flag" ||
2749: test ! -s conftest.err
2750: } && test -s conftest.$ac_objext; then
1.1.1.6 root 2751: :
2752: else
1.1.1.10! root 2753: $as_echo "$as_me: failed program was:" >&5
1.1.1.6 root 2754: sed 's/^/| /' conftest.$ac_ext >&5
2755:
2756: ac_c_werror_flag=$ac_save_c_werror_flag
2757: CFLAGS="-g"
2758: cat >conftest.$ac_ext <<_ACEOF
2759: /* confdefs.h. */
2760: _ACEOF
2761: cat confdefs.h >>conftest.$ac_ext
2762: cat >>conftest.$ac_ext <<_ACEOF
2763: /* end confdefs.h. */
2764:
2765: int
2766: main ()
2767: {
2768:
2769: ;
2770: return 0;
2771: }
2772: _ACEOF
2773: rm -f conftest.$ac_objext
2774: if { (ac_try="$ac_compile"
2775: case "(($ac_try" in
2776: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777: *) ac_try_echo=$ac_try;;
2778: esac
1.1.1.10! root 2779: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 2780: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 2781: (eval "$ac_compile") 2>conftest.er1
1.1 root 2782: ac_status=$?
1.1.1.6 root 2783: grep -v '^ *+' conftest.er1 >conftest.err
2784: rm -f conftest.er1
2785: cat conftest.err >&5
1.1.1.10! root 2786: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 2787: (exit $ac_status); } && {
2788: test -z "$ac_c_werror_flag" ||
2789: test ! -s conftest.err
2790: } && test -s conftest.$ac_objext; then
1.1 root 2791: ac_cv_prog_cc_g=yes
2792: else
1.1.1.10! root 2793: $as_echo "$as_me: failed program was:" >&5
1.1.1.3 root 2794: sed 's/^/| /' conftest.$ac_ext >&5
2795:
1.1.1.6 root 2796:
2797: fi
2798:
2799: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 2800: fi
1.1.1.6 root 2801:
2802: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2803: fi
2804:
2805: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2806: ac_c_werror_flag=$ac_save_c_werror_flag
1.1 root 2807: fi
1.1.1.10! root 2808: { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
! 2809: $as_echo "$ac_cv_prog_cc_g" >&6; }
1.1 root 2810: if test "$ac_test_CFLAGS" = set; then
2811: CFLAGS=$ac_save_CFLAGS
2812: elif test $ac_cv_prog_cc_g = yes; then
2813: if test "$GCC" = yes; then
2814: CFLAGS="-g -O2"
2815: else
2816: CFLAGS="-g"
2817: fi
2818: else
2819: if test "$GCC" = yes; then
2820: CFLAGS="-O2"
2821: else
2822: CFLAGS=
2823: fi
2824: fi
1.1.1.10! root 2825: { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
! 2826: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
1.1.1.6 root 2827: if test "${ac_cv_prog_cc_c89+set}" = set; then
1.1.1.10! root 2828: $as_echo_n "(cached) " >&6
1.1.1.3 root 2829: else
1.1.1.6 root 2830: ac_cv_prog_cc_c89=no
1.1.1.3 root 2831: ac_save_CC=$CC
2832: cat >conftest.$ac_ext <<_ACEOF
2833: /* confdefs.h. */
2834: _ACEOF
2835: cat confdefs.h >>conftest.$ac_ext
2836: cat >>conftest.$ac_ext <<_ACEOF
2837: /* end confdefs.h. */
2838: #include <stdarg.h>
2839: #include <stdio.h>
2840: #include <sys/types.h>
2841: #include <sys/stat.h>
2842: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2843: struct buf { int x; };
2844: FILE * (*rcsopen) (struct buf *, struct stat *, int);
2845: static char *e (p, i)
2846: char **p;
2847: int i;
2848: {
2849: return p[i];
2850: }
2851: static char *f (char * (*g) (char **, int), char **p, ...)
2852: {
2853: char *s;
2854: va_list v;
2855: va_start (v,p);
2856: s = g (p, va_arg (v,int));
2857: va_end (v);
2858: return s;
2859: }
2860:
2861: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2862: function prototypes and stuff, but not '\xHH' hex character constants.
2863: These don't provoke an error unfortunately, instead are silently treated
1.1.1.6 root 2864: as 'x'. The following induces an error, until -std is added to get
1.1.1.3 root 2865: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2866: array size at least. It's necessary to write '\x00'==0 to get something
1.1.1.6 root 2867: that's true only with -std. */
1.1.1.3 root 2868: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2869:
1.1.1.6 root 2870: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2871: inside strings and character constants. */
2872: #define FOO(x) 'x'
2873: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2874:
1.1.1.3 root 2875: int test (int i, double x);
2876: struct s1 {int (*f) (int a);};
2877: struct s2 {int (*f) (double a);};
2878: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2879: int argc;
2880: char **argv;
2881: int
2882: main ()
2883: {
2884: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2885: ;
2886: return 0;
2887: }
2888: _ACEOF
1.1.1.6 root 2889: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2890: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.1.1.3 root 2891: do
2892: CC="$ac_save_CC $ac_arg"
2893: rm -f conftest.$ac_objext
1.1.1.6 root 2894: if { (ac_try="$ac_compile"
2895: case "(($ac_try" in
2896: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897: *) ac_try_echo=$ac_try;;
2898: esac
1.1.1.10! root 2899: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 2900: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 2901: (eval "$ac_compile") 2>conftest.er1
1.1.1.3 root 2902: ac_status=$?
2903: grep -v '^ *+' conftest.er1 >conftest.err
2904: rm -f conftest.er1
2905: cat conftest.err >&5
1.1.1.10! root 2906: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 2907: (exit $ac_status); } && {
2908: test -z "$ac_c_werror_flag" ||
2909: test ! -s conftest.err
2910: } && test -s conftest.$ac_objext; then
1.1.1.6 root 2911: ac_cv_prog_cc_c89=$ac_arg
1.1.1.3 root 2912: else
1.1.1.10! root 2913: $as_echo "$as_me: failed program was:" >&5
1.1.1.3 root 2914: sed 's/^/| /' conftest.$ac_ext >&5
2915:
1.1.1.6 root 2916:
1.1.1.3 root 2917: fi
1.1.1.6 root 2918:
2919: rm -f core conftest.err conftest.$ac_objext
2920: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.1.1.3 root 2921: done
1.1.1.6 root 2922: rm -f conftest.$ac_ext
1.1.1.3 root 2923: CC=$ac_save_CC
2924:
2925: fi
1.1.1.6 root 2926: # AC_CACHE_VAL
2927: case "x$ac_cv_prog_cc_c89" in
2928: x)
1.1.1.10! root 2929: { $as_echo "$as_me:$LINENO: result: none needed" >&5
! 2930: $as_echo "none needed" >&6; } ;;
1.1.1.6 root 2931: xno)
1.1.1.10! root 2932: { $as_echo "$as_me:$LINENO: result: unsupported" >&5
! 2933: $as_echo "unsupported" >&6; } ;;
1.1.1.3 root 2934: *)
1.1.1.6 root 2935: CC="$CC $ac_cv_prog_cc_c89"
1.1.1.10! root 2936: { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
! 2937: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.1.1.3 root 2938: esac
2939:
2940:
1.1 root 2941: ac_ext=c
2942: ac_cpp='$CPP $CPPFLAGS'
2943: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2944: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2945: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2946:
2947: # Find a good install program. We prefer a C program (faster),
2948: # so one script is as good as another. But avoid the broken or
2949: # incompatible versions:
2950: # SysV /etc/install, /usr/sbin/install
2951: # SunOS /usr/etc/install
2952: # IRIX /sbin/install
2953: # AIX /bin/install
2954: # AmigaOS /C/install, which installs bootblocks on floppy discs
2955: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2956: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2957: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.1.1.3 root 2958: # OS/2's system install, which has a completely different semantic
1.1 root 2959: # ./install, which can be erroneously created by make from ./install.sh.
1.1.1.10! root 2960: # Reject install programs that cannot install multiple files.
! 2961: { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
! 2962: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.1 root 2963: if test -z "$INSTALL"; then
2964: if test "${ac_cv_path_install+set}" = set; then
1.1.1.10! root 2965: $as_echo_n "(cached) " >&6
1.1 root 2966: else
2967: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968: for as_dir in $PATH
2969: do
2970: IFS=$as_save_IFS
2971: test -z "$as_dir" && as_dir=.
2972: # Account for people who put trailing slashes in PATH elements.
2973: case $as_dir/ in
2974: ./ | .// | /cC/* | \
2975: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.1.1.3 root 2976: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.1 root 2977: /usr/ucb/* ) ;;
2978: *)
2979: # OSF1 and SCO ODT 3.0 have their own names for install.
2980: # Don't use installbsd from OSF since it installs stuff as root
2981: # by default.
2982: for ac_prog in ginstall scoinst install; do
2983: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.9 root 2984: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1.1.1.3 root 2985: if test $ac_prog = install &&
2986: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2987: # AIX install. It has an incompatible calling convention.
2988: :
2989: elif test $ac_prog = install &&
2990: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2991: # program-specific install script used by HP pwplus--don't use.
2992: :
2993: else
1.1.1.10! root 2994: rm -rf conftest.one conftest.two conftest.dir
! 2995: echo one > conftest.one
! 2996: echo two > conftest.two
! 2997: mkdir conftest.dir
! 2998: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
! 2999: test -s conftest.one && test -s conftest.two &&
! 3000: test -s conftest.dir/conftest.one &&
! 3001: test -s conftest.dir/conftest.two
! 3002: then
! 3003: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
! 3004: break 3
! 3005: fi
1.1.1.3 root 3006: fi
3007: fi
1.1 root 3008: done
3009: done
3010: ;;
3011: esac
1.1.1.10! root 3012:
1.1 root 3013: done
1.1.1.6 root 3014: IFS=$as_save_IFS
1.1 root 3015:
1.1.1.10! root 3016: rm -rf conftest.one conftest.two conftest.dir
1.1 root 3017:
3018: fi
3019: if test "${ac_cv_path_install+set}" = set; then
3020: INSTALL=$ac_cv_path_install
3021: else
1.1.1.6 root 3022: # As a last resort, use the slow shell script. Don't cache a
3023: # value for INSTALL within a source directory, because that will
1.1 root 3024: # break other packages using the cache if that directory is
1.1.1.6 root 3025: # removed, or if the value is a relative name.
1.1 root 3026: INSTALL=$ac_install_sh
3027: fi
3028: fi
1.1.1.10! root 3029: { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
! 3030: $as_echo "$INSTALL" >&6; }
1.1 root 3031:
3032: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3033: # It thinks the first close brace ends the variable substitution.
3034: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3035:
3036: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3037:
3038: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3039:
1.1.1.6 root 3040: if test -n "$ac_tool_prefix"; then
3041: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3042: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.1.1.10! root 3043: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
! 3044: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.6 root 3045: if test "${ac_cv_prog_RANLIB+set}" = set; then
1.1.1.10! root 3046: $as_echo_n "(cached) " >&6
1.1.1.6 root 3047: else
3048: if test -n "$RANLIB"; then
3049: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3050: else
3051: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052: for as_dir in $PATH
3053: do
3054: IFS=$as_save_IFS
3055: test -z "$as_dir" && as_dir=.
3056: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.9 root 3057: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.6 root 3058: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.1.1.10! root 3059: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.1.6 root 3060: break 2
3061: fi
3062: done
3063: done
3064: IFS=$as_save_IFS
3065:
3066: fi
3067: fi
3068: RANLIB=$ac_cv_prog_RANLIB
3069: if test -n "$RANLIB"; then
1.1.1.10! root 3070: { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
! 3071: $as_echo "$RANLIB" >&6; }
1.1.1.6 root 3072: else
1.1.1.10! root 3073: { $as_echo "$as_me:$LINENO: result: no" >&5
! 3074: $as_echo "no" >&6; }
1.1.1.6 root 3075: fi
3076:
3077:
3078: fi
3079: if test -z "$ac_cv_prog_RANLIB"; then
3080: ac_ct_RANLIB=$RANLIB
3081: # Extract the first word of "ranlib", so it can be a program name with args.
3082: set dummy ranlib; ac_word=$2
1.1.1.10! root 3083: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
! 3084: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.6 root 3085: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1.1.1.10! root 3086: $as_echo_n "(cached) " >&6
1.1.1.6 root 3087: else
3088: if test -n "$ac_ct_RANLIB"; then
3089: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3090: else
3091: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092: for as_dir in $PATH
3093: do
3094: IFS=$as_save_IFS
3095: test -z "$as_dir" && as_dir=.
3096: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.9 root 3097: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.6 root 3098: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.1.1.10! root 3099: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.1.6 root 3100: break 2
3101: fi
3102: done
3103: done
3104: IFS=$as_save_IFS
3105:
3106: fi
3107: fi
3108: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3109: if test -n "$ac_ct_RANLIB"; then
1.1.1.10! root 3110: { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
! 3111: $as_echo "$ac_ct_RANLIB" >&6; }
1.1.1.6 root 3112: else
1.1.1.10! root 3113: { $as_echo "$as_me:$LINENO: result: no" >&5
! 3114: $as_echo "no" >&6; }
1.1.1.6 root 3115: fi
3116:
3117: if test "x$ac_ct_RANLIB" = x; then
3118: RANLIB=":"
3119: else
3120: case $cross_compiling:$ac_tool_warned in
3121: yes:)
1.1.1.10! root 3122: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
! 3123: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1.1.6 root 3124: ac_tool_warned=yes ;;
3125: esac
3126: RANLIB=$ac_ct_RANLIB
3127: fi
3128: else
3129: RANLIB="$ac_cv_prog_RANLIB"
3130: fi
3131:
1.1 root 3132:
3133: # extra command line options
3134:
1.1.1.6 root 3135: # Check whether --enable-werror was given.
1.1 root 3136: if test "${enable_werror+set}" = set; then
1.1.1.6 root 3137: enableval=$enable_werror; ENABLE_WERROR="${enableval}"
1.1 root 3138: else
3139: ENABLE_WERROR="no"
1.1.1.6 root 3140: fi
3141:
3142:
1.1.1.8 root 3143: # Check whether --enable-tracing was given.
3144: if test "${enable_tracing+set}" = set; then
3145: enableval=$enable_tracing; enable_tracing="${enableval}"
3146: else
3147: enable_tracing="yes"
3148: fi
3149:
3150: if test "${enable_tracing}" = "yes"; then
3151:
3152: cat >>confdefs.h <<\_ACEOF
1.1.1.10! root 3153: #define ENABLE_TRACING 1
1.1.1.8 root 3154: _ACEOF
3155:
3156: else
1.1.1.10! root 3157: { $as_echo "$as_me:$LINENO: Tracing disabled" >&5
! 3158: $as_echo "$as_me: Tracing disabled" >&6;}
1.1.1.8 root 3159: fi
3160:
1.1.1.6 root 3161: # Check whether --enable-small-mem was given.
3162: if test "${enable_small_mem+set}" = set; then
1.1.1.8 root 3163: enableval=$enable_small_mem; enable_smallmem="${enableval}"
3164: else
3165: enable_smallmem="no"
3166: fi
3167:
3168: if test "${enable_smallmem}" = "yes"; then
3169:
1.1.1.6 root 3170: cat >>confdefs.h <<\_ACEOF
3171: #define ENABLE_SMALL_MEM 1
3172: _ACEOF
3173:
3174: fi
3175:
1.1 root 3176:
1.1.1.6 root 3177: # Check whether --with-extra-inc was given.
1.1 root 3178: if test "${with_extra_inc+set}" = set; then
1.1.1.6 root 3179: withval=$with_extra_inc; if test "${withval}" != no; then
1.1 root 3180: if test "${withval}" != yes; then
3181: INCL="${INCL} -I${withval}"
3182: fi
3183: fi
1.1.1.6 root 3184: fi
3185:
1.1 root 3186:
3187:
1.1.1.6 root 3188: # Check whether --with-extra-lib was given.
1.1 root 3189: if test "${with_extra_lib+set}" = set; then
1.1.1.6 root 3190: withval=$with_extra_lib; if test "${withval}" != no; then
1.1 root 3191: if test "${withval}" != yes; then
3192: LDFLAGS="${LDFLAGS} -L${withval}"
3193: if test x"${GCC}" = xyes; then
3194: LDFLAGS="${LDFLAGS} -Wl,-rpath,${withval}/lib"
3195: fi
3196: fi
3197: fi
1.1.1.6 root 3198: fi
3199:
1.1 root 3200:
3201:
1.1.1.6 root 3202: # Check whether --with-hostcc was given.
1.1 root 3203: if test "${with_hostcc+set}" = set; then
1.1.1.6 root 3204: withval=$with_hostcc; HOSTCC=$withval
1.1 root 3205: else
3206: HOSTCC=$CC
1.1.1.6 root 3207: fi
3208:
1.1 root 3209:
3210:
3211:
3212:
3213:
1.1.1.10! root 3214: { $as_echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
! 3215: $as_echo_n "checking for gzopen in -lz... " >&6; }
1.1 root 3216: if test "${ac_cv_lib_z_gzopen+set}" = set; then
1.1.1.10! root 3217: $as_echo_n "(cached) " >&6
1.1 root 3218: else
3219: ac_check_lib_save_LIBS=$LIBS
3220: LIBS="-lz $LIBS"
3221: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 3222: /* confdefs.h. */
3223: _ACEOF
3224: cat confdefs.h >>conftest.$ac_ext
3225: cat >>conftest.$ac_ext <<_ACEOF
3226: /* end confdefs.h. */
1.1 root 3227:
1.1.1.6 root 3228: /* Override any GCC internal prototype to avoid an error.
3229: Use char because int might match the return type of a GCC
3230: builtin and then its argument prototype would still apply. */
1.1 root 3231: #ifdef __cplusplus
3232: extern "C"
3233: #endif
3234: char gzopen ();
3235: int
3236: main ()
3237: {
1.1.1.6 root 3238: return gzopen ();
1.1 root 3239: ;
3240: return 0;
3241: }
3242: _ACEOF
3243: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.6 root 3244: if { (ac_try="$ac_link"
3245: case "(($ac_try" in
3246: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247: *) ac_try_echo=$ac_try;;
3248: esac
1.1.1.10! root 3249: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 3250: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 3251: (eval "$ac_link") 2>conftest.er1
1.1 root 3252: ac_status=$?
1.1.1.3 root 3253: grep -v '^ *+' conftest.er1 >conftest.err
3254: rm -f conftest.er1
3255: cat conftest.err >&5
1.1.1.10! root 3256: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 3257: (exit $ac_status); } && {
3258: test -z "$ac_c_werror_flag" ||
3259: test ! -s conftest.err
1.1.1.10! root 3260: } && test -s conftest$ac_exeext && {
! 3261: test "$cross_compiling" = yes ||
! 3262: $as_test_x conftest$ac_exeext
! 3263: }; then
1.1 root 3264: ac_cv_lib_z_gzopen=yes
3265: else
1.1.1.10! root 3266: $as_echo "$as_me: failed program was:" >&5
1.1.1.3 root 3267: sed 's/^/| /' conftest.$ac_ext >&5
3268:
1.1.1.6 root 3269: ac_cv_lib_z_gzopen=no
1.1 root 3270: fi
1.1.1.6 root 3271:
1.1.1.10! root 3272: rm -rf conftest.dSYM
1.1.1.9 root 3273: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.3 root 3274: conftest$ac_exeext conftest.$ac_ext
1.1 root 3275: LIBS=$ac_check_lib_save_LIBS
3276: fi
1.1.1.10! root 3277: { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
! 3278: $as_echo "$ac_cv_lib_z_gzopen" >&6; }
! 3279: if test "x$ac_cv_lib_z_gzopen" = x""yes; then
1.1 root 3280: cat >>confdefs.h <<_ACEOF
3281: #define HAVE_LIBZ 1
3282: _ACEOF
3283:
3284: LIBS="-lz $LIBS"
3285:
3286: else
1.1.1.10! root 3287: { { $as_echo "$as_me:$LINENO: error: You need the zlib to compile this program!" >&5
! 3288: $as_echo "$as_me: error: You need the zlib to compile this program!" >&2;}
1.1 root 3289: { (exit 1); exit 1; }; }
3290: fi
3291:
3292:
1.1.1.8 root 3293: ac_ext=c
3294: ac_cpp='$CPP $CPPFLAGS'
3295: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3296: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3297: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1.1.10! root 3298: { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
! 3299: $as_echo_n "checking how to run the C preprocessor... " >&6; }
1.1.1.8 root 3300: # On Suns, sometimes $CPP names a directory.
3301: if test -n "$CPP" && test -d "$CPP"; then
3302: CPP=
1.1.1.6 root 3303: fi
1.1.1.8 root 3304: if test -z "$CPP"; then
3305: if test "${ac_cv_prog_CPP+set}" = set; then
1.1.1.10! root 3306: $as_echo_n "(cached) " >&6
1.1 root 3307: else
1.1.1.8 root 3308: # Double quotes because CPP needs to be expanded
3309: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3310: do
3311: ac_preproc_ok=false
3312: for ac_c_preproc_warn_flag in '' yes
3313: do
3314: # Use a header file that comes with gcc, so configuring glibc
3315: # with a fresh cross-compiler works.
3316: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3317: # <limits.h> exists even on freestanding compilers.
3318: # On the NeXT, cc -E runs the code through the compiler's parser,
3319: # not just through cpp. "Syntax error" is here to catch this case.
3320: cat >conftest.$ac_ext <<_ACEOF
3321: /* confdefs.h. */
3322: _ACEOF
3323: cat confdefs.h >>conftest.$ac_ext
3324: cat >>conftest.$ac_ext <<_ACEOF
3325: /* end confdefs.h. */
3326: #ifdef __STDC__
3327: # include <limits.h>
3328: #else
3329: # include <assert.h>
3330: #endif
3331: Syntax error
3332: _ACEOF
3333: if { (ac_try="$ac_cpp conftest.$ac_ext"
3334: case "(($ac_try" in
3335: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336: *) ac_try_echo=$ac_try;;
3337: esac
1.1.1.10! root 3338: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 3339: $as_echo "$ac_try_echo") >&5
1.1.1.8 root 3340: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3341: ac_status=$?
3342: grep -v '^ *+' conftest.er1 >conftest.err
3343: rm -f conftest.er1
3344: cat conftest.err >&5
1.1.1.10! root 3345: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 3346: (exit $ac_status); } >/dev/null && {
3347: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3348: test ! -s conftest.err
3349: }; then
1.1.1.8 root 3350: :
1.1 root 3351: else
1.1.1.10! root 3352: $as_echo "$as_me: failed program was:" >&5
1.1.1.8 root 3353: sed 's/^/| /' conftest.$ac_ext >&5
3354:
3355: # Broken: fails on valid input.
3356: continue
1.1.1.6 root 3357: fi
3358:
1.1.1.8 root 3359: rm -f conftest.err conftest.$ac_ext
1.1 root 3360:
1.1.1.8 root 3361: # OK, works on sane cases. Now check whether nonexistent headers
3362: # can be detected and how.
3363: cat >conftest.$ac_ext <<_ACEOF
3364: /* confdefs.h. */
3365: _ACEOF
3366: cat confdefs.h >>conftest.$ac_ext
3367: cat >>conftest.$ac_ext <<_ACEOF
3368: /* end confdefs.h. */
3369: #include <ac_nonexistent.h>
3370: _ACEOF
3371: if { (ac_try="$ac_cpp conftest.$ac_ext"
3372: case "(($ac_try" in
3373: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374: *) ac_try_echo=$ac_try;;
3375: esac
1.1.1.10! root 3376: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 3377: $as_echo "$ac_try_echo") >&5
1.1.1.8 root 3378: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3379: ac_status=$?
3380: grep -v '^ *+' conftest.er1 >conftest.err
3381: rm -f conftest.er1
3382: cat conftest.err >&5
1.1.1.10! root 3383: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 3384: (exit $ac_status); } >/dev/null && {
3385: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3386: test ! -s conftest.err
3387: }; then
1.1.1.8 root 3388: # Broken: success on invalid input.
3389: continue
1.1 root 3390: else
1.1.1.10! root 3391: $as_echo "$as_me: failed program was:" >&5
1.1.1.8 root 3392: sed 's/^/| /' conftest.$ac_ext >&5
3393:
3394: # Passes both tests.
3395: ac_preproc_ok=:
3396: break
1.1 root 3397: fi
3398:
1.1.1.8 root 3399: rm -f conftest.err conftest.$ac_ext
1.1.1.6 root 3400:
1.1.1.8 root 3401: done
3402: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3403: rm -f conftest.err conftest.$ac_ext
3404: if $ac_preproc_ok; then
3405: break
3406: fi
1.1 root 3407:
1.1.1.8 root 3408: done
3409: ac_cv_prog_CPP=$CPP
3410:
3411: fi
3412: CPP=$ac_cv_prog_CPP
1.1 root 3413: else
1.1.1.8 root 3414: ac_cv_prog_CPP=$CPP
3415: fi
1.1.1.10! root 3416: { $as_echo "$as_me:$LINENO: result: $CPP" >&5
! 3417: $as_echo "$CPP" >&6; }
1.1.1.8 root 3418: ac_preproc_ok=false
3419: for ac_c_preproc_warn_flag in '' yes
3420: do
3421: # Use a header file that comes with gcc, so configuring glibc
3422: # with a fresh cross-compiler works.
3423: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3424: # <limits.h> exists even on freestanding compilers.
3425: # On the NeXT, cc -E runs the code through the compiler's parser,
3426: # not just through cpp. "Syntax error" is here to catch this case.
1.1 root 3427: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 3428: /* confdefs.h. */
3429: _ACEOF
3430: cat confdefs.h >>conftest.$ac_ext
3431: cat >>conftest.$ac_ext <<_ACEOF
3432: /* end confdefs.h. */
1.1.1.8 root 3433: #ifdef __STDC__
3434: # include <limits.h>
3435: #else
3436: # include <assert.h>
3437: #endif
3438: Syntax error
1.1 root 3439: _ACEOF
1.1.1.8 root 3440: if { (ac_try="$ac_cpp conftest.$ac_ext"
1.1.1.6 root 3441: case "(($ac_try" in
3442: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443: *) ac_try_echo=$ac_try;;
3444: esac
1.1.1.10! root 3445: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 3446: $as_echo "$ac_try_echo") >&5
1.1.1.8 root 3447: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 3448: ac_status=$?
1.1.1.8 root 3449: grep -v '^ *+' conftest.er1 >conftest.err
3450: rm -f conftest.er1
3451: cat conftest.err >&5
1.1.1.10! root 3452: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 3453: (exit $ac_status); } >/dev/null && {
3454: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3455: test ! -s conftest.err
3456: }; then
1.1 root 3457: :
3458: else
1.1.1.10! root 3459: $as_echo "$as_me: failed program was:" >&5
1.1.1.3 root 3460: sed 's/^/| /' conftest.$ac_ext >&5
3461:
1.1.1.8 root 3462: # Broken: fails on valid input.
3463: continue
1.1 root 3464: fi
1.1.1.6 root 3465:
1.1.1.8 root 3466: rm -f conftest.err conftest.$ac_ext
1.1.1.6 root 3467:
1.1.1.8 root 3468: # OK, works on sane cases. Now check whether nonexistent headers
3469: # can be detected and how.
3470: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 3471: /* confdefs.h. */
3472: _ACEOF
3473: cat confdefs.h >>conftest.$ac_ext
3474: cat >>conftest.$ac_ext <<_ACEOF
3475: /* end confdefs.h. */
1.1.1.8 root 3476: #include <ac_nonexistent.h>
1.1 root 3477: _ACEOF
1.1.1.8 root 3478: if { (ac_try="$ac_cpp conftest.$ac_ext"
1.1.1.6 root 3479: case "(($ac_try" in
3480: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481: *) ac_try_echo=$ac_try;;
3482: esac
1.1.1.10! root 3483: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 3484: $as_echo "$ac_try_echo") >&5
1.1.1.8 root 3485: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 3486: ac_status=$?
1.1.1.3 root 3487: grep -v '^ *+' conftest.er1 >conftest.err
3488: rm -f conftest.er1
3489: cat conftest.err >&5
1.1.1.10! root 3490: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 3491: (exit $ac_status); } >/dev/null && {
3492: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3493: test ! -s conftest.err
3494: }; then
1.1 root 3495: # Broken: success on invalid input.
3496: continue
3497: else
1.1.1.10! root 3498: $as_echo "$as_me: failed program was:" >&5
1.1.1.3 root 3499: sed 's/^/| /' conftest.$ac_ext >&5
3500:
1.1 root 3501: # Passes both tests.
3502: ac_preproc_ok=:
3503: break
3504: fi
1.1.1.6 root 3505:
1.1 root 3506: rm -f conftest.err conftest.$ac_ext
3507:
3508: done
3509: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3510: rm -f conftest.err conftest.$ac_ext
3511: if $ac_preproc_ok; then
3512: :
3513: else
1.1.1.10! root 3514: { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
! 3515: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 3516: { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1.1.1.3 root 3517: See \`config.log' for more details." >&5
1.1.1.10! root 3518: $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
1.1.1.3 root 3519: See \`config.log' for more details." >&2;}
1.1.1.10! root 3520: { (exit 1); exit 1; }; }; }
1.1 root 3521: fi
3522:
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
3528:
3529:
1.1.1.10! root 3530: { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
! 3531: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
1.1.1.6 root 3532: if test "${ac_cv_path_GREP+set}" = set; then
1.1.1.10! root 3533: $as_echo_n "(cached) " >&6
1.1.1.6 root 3534: else
1.1.1.10! root 3535: if test -z "$GREP"; then
1.1.1.6 root 3536: ac_path_GREP_found=false
1.1.1.10! root 3537: # Loop through the user's path and test for each of PROGNAME-LIST
! 3538: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1.1.6 root 3539: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3540: do
3541: IFS=$as_save_IFS
3542: test -z "$as_dir" && as_dir=.
3543: for ac_prog in grep ggrep; do
1.1.1.10! root 3544: for ac_exec_ext in '' $ac_executable_extensions; do
! 3545: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
! 3546: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
! 3547: # Check for GNU ac_path_GREP and select it if it is found.
1.1.1.6 root 3548: # Check for GNU $ac_path_GREP
3549: case `"$ac_path_GREP" --version 2>&1` in
3550: *GNU*)
3551: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3552: *)
3553: ac_count=0
1.1.1.10! root 3554: $as_echo_n 0123456789 >"conftest.in"
1.1.1.6 root 3555: while :
3556: do
3557: cat "conftest.in" "conftest.in" >"conftest.tmp"
3558: mv "conftest.tmp" "conftest.in"
3559: cp "conftest.in" "conftest.nl"
1.1.1.10! root 3560: $as_echo 'GREP' >> "conftest.nl"
1.1.1.6 root 3561: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3562: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3563: ac_count=`expr $ac_count + 1`
3564: if test $ac_count -gt ${ac_path_GREP_max-0}; then
3565: # Best one so far, save it but keep looking for a better one
3566: ac_cv_path_GREP="$ac_path_GREP"
3567: ac_path_GREP_max=$ac_count
3568: fi
3569: # 10*(2^10) chars as input seems more than enough
3570: test $ac_count -gt 10 && break
3571: done
3572: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3573: esac
3574:
1.1.1.10! root 3575: $ac_path_GREP_found && break 3
! 3576: done
1.1.1.6 root 3577: done
3578: done
3579: IFS=$as_save_IFS
1.1.1.10! root 3580: if test -z "$ac_cv_path_GREP"; then
! 3581: { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
! 3582: $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
1.1.1.6 root 3583: { (exit 1); exit 1; }; }
1.1.1.10! root 3584: fi
1.1.1.6 root 3585: else
3586: ac_cv_path_GREP=$GREP
3587: fi
3588:
3589: fi
1.1.1.10! root 3590: { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
! 3591: $as_echo "$ac_cv_path_GREP" >&6; }
1.1.1.6 root 3592: GREP="$ac_cv_path_GREP"
3593:
3594:
1.1.1.10! root 3595: { $as_echo "$as_me:$LINENO: checking for egrep" >&5
! 3596: $as_echo_n "checking for egrep... " >&6; }
1.1.1.6 root 3597: if test "${ac_cv_path_EGREP+set}" = set; then
1.1.1.10! root 3598: $as_echo_n "(cached) " >&6
1.1.1.6 root 3599: else
3600: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3601: then ac_cv_path_EGREP="$GREP -E"
3602: else
1.1.1.10! root 3603: if test -z "$EGREP"; then
1.1.1.6 root 3604: ac_path_EGREP_found=false
1.1.1.10! root 3605: # Loop through the user's path and test for each of PROGNAME-LIST
! 3606: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1.1.6 root 3607: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3608: do
3609: IFS=$as_save_IFS
3610: test -z "$as_dir" && as_dir=.
3611: for ac_prog in egrep; do
1.1.1.10! root 3612: for ac_exec_ext in '' $ac_executable_extensions; do
! 3613: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
! 3614: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
! 3615: # Check for GNU ac_path_EGREP and select it if it is found.
1.1.1.6 root 3616: # Check for GNU $ac_path_EGREP
3617: case `"$ac_path_EGREP" --version 2>&1` in
3618: *GNU*)
3619: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3620: *)
3621: ac_count=0
1.1.1.10! root 3622: $as_echo_n 0123456789 >"conftest.in"
1.1.1.6 root 3623: while :
3624: do
3625: cat "conftest.in" "conftest.in" >"conftest.tmp"
3626: mv "conftest.tmp" "conftest.in"
3627: cp "conftest.in" "conftest.nl"
1.1.1.10! root 3628: $as_echo 'EGREP' >> "conftest.nl"
1.1.1.6 root 3629: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3630: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3631: ac_count=`expr $ac_count + 1`
3632: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3633: # Best one so far, save it but keep looking for a better one
3634: ac_cv_path_EGREP="$ac_path_EGREP"
3635: ac_path_EGREP_max=$ac_count
1.1.1.3 root 3636: fi
1.1.1.6 root 3637: # 10*(2^10) chars as input seems more than enough
3638: test $ac_count -gt 10 && break
3639: done
3640: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3641: esac
3642:
1.1.1.10! root 3643: $ac_path_EGREP_found && break 3
! 3644: done
1.1.1.6 root 3645: done
3646: done
3647: IFS=$as_save_IFS
1.1.1.10! root 3648: if test -z "$ac_cv_path_EGREP"; then
! 3649: { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
! 3650: $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
1.1.1.6 root 3651: { (exit 1); exit 1; }; }
1.1.1.10! root 3652: fi
1.1.1.6 root 3653: else
3654: ac_cv_path_EGREP=$EGREP
1.1.1.3 root 3655: fi
3656:
1.1.1.6 root 3657: fi
3658: fi
1.1.1.10! root 3659: { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
! 3660: $as_echo "$ac_cv_path_EGREP" >&6; }
1.1.1.6 root 3661: EGREP="$ac_cv_path_EGREP"
3662:
3663:
1.1.1.10! root 3664: { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
! 3665: $as_echo_n "checking for ANSI C header files... " >&6; }
1.1 root 3666: if test "${ac_cv_header_stdc+set}" = set; then
1.1.1.10! root 3667: $as_echo_n "(cached) " >&6
1.1 root 3668: else
3669: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 3670: /* confdefs.h. */
3671: _ACEOF
3672: cat confdefs.h >>conftest.$ac_ext
3673: cat >>conftest.$ac_ext <<_ACEOF
3674: /* end confdefs.h. */
1.1 root 3675: #include <stdlib.h>
3676: #include <stdarg.h>
3677: #include <string.h>
3678: #include <float.h>
3679:
1.1.1.3 root 3680: int
3681: main ()
3682: {
3683:
3684: ;
3685: return 0;
3686: }
1.1 root 3687: _ACEOF
1.1.1.3 root 3688: rm -f conftest.$ac_objext
1.1.1.6 root 3689: if { (ac_try="$ac_compile"
3690: case "(($ac_try" in
3691: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692: *) ac_try_echo=$ac_try;;
3693: esac
1.1.1.10! root 3694: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 3695: $as_echo "$ac_try_echo") >&5
1.1.1.8 root 3696: (eval "$ac_compile") 2>conftest.er1
3697: ac_status=$?
3698: grep -v '^ *+' conftest.er1 >conftest.err
3699: rm -f conftest.er1
3700: cat conftest.err >&5
1.1.1.10! root 3701: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 3702: (exit $ac_status); } && {
3703: test -z "$ac_c_werror_flag" ||
3704: test ! -s conftest.err
3705: } && test -s conftest.$ac_objext; then
1.1.1.8 root 3706: ac_cv_header_stdc=yes
3707: else
1.1.1.10! root 3708: $as_echo "$as_me: failed program was:" >&5
1.1.1.8 root 3709: sed 's/^/| /' conftest.$ac_ext >&5
3710:
3711: ac_cv_header_stdc=no
3712: fi
3713:
3714: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3715:
3716: if test $ac_cv_header_stdc = yes; then
3717: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3718: cat >conftest.$ac_ext <<_ACEOF
3719: /* confdefs.h. */
3720: _ACEOF
3721: cat confdefs.h >>conftest.$ac_ext
3722: cat >>conftest.$ac_ext <<_ACEOF
3723: /* end confdefs.h. */
3724: #include <string.h>
3725:
3726: _ACEOF
3727: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3728: $EGREP "memchr" >/dev/null 2>&1; then
3729: :
3730: else
3731: ac_cv_header_stdc=no
3732: fi
3733: rm -f conftest*
3734:
3735: fi
3736:
3737: if test $ac_cv_header_stdc = yes; then
3738: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3739: cat >conftest.$ac_ext <<_ACEOF
3740: /* confdefs.h. */
3741: _ACEOF
3742: cat confdefs.h >>conftest.$ac_ext
3743: cat >>conftest.$ac_ext <<_ACEOF
3744: /* end confdefs.h. */
3745: #include <stdlib.h>
3746:
3747: _ACEOF
3748: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3749: $EGREP "free" >/dev/null 2>&1; then
3750: :
3751: else
3752: ac_cv_header_stdc=no
3753: fi
3754: rm -f conftest*
3755:
3756: fi
3757:
3758: if test $ac_cv_header_stdc = yes; then
3759: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3760: if test "$cross_compiling" = yes; then
3761: :
3762: else
3763: cat >conftest.$ac_ext <<_ACEOF
3764: /* confdefs.h. */
3765: _ACEOF
3766: cat confdefs.h >>conftest.$ac_ext
3767: cat >>conftest.$ac_ext <<_ACEOF
3768: /* end confdefs.h. */
3769: #include <ctype.h>
3770: #include <stdlib.h>
3771: #if ((' ' & 0x0FF) == 0x020)
3772: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3773: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3774: #else
3775: # define ISLOWER(c) \
3776: (('a' <= (c) && (c) <= 'i') \
3777: || ('j' <= (c) && (c) <= 'r') \
3778: || ('s' <= (c) && (c) <= 'z'))
3779: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3780: #endif
3781:
3782: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3783: int
3784: main ()
3785: {
3786: int i;
3787: for (i = 0; i < 256; i++)
3788: if (XOR (islower (i), ISLOWER (i))
3789: || toupper (i) != TOUPPER (i))
3790: return 2;
3791: return 0;
3792: }
3793: _ACEOF
3794: rm -f conftest$ac_exeext
3795: if { (ac_try="$ac_link"
3796: case "(($ac_try" in
3797: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798: *) ac_try_echo=$ac_try;;
3799: esac
1.1.1.10! root 3800: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 3801: $as_echo "$ac_try_echo") >&5
1.1.1.8 root 3802: (eval "$ac_link") 2>&5
3803: ac_status=$?
1.1.1.10! root 3804: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 root 3805: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3806: { (case "(($ac_try" in
3807: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808: *) ac_try_echo=$ac_try;;
3809: esac
1.1.1.10! root 3810: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 3811: $as_echo "$ac_try_echo") >&5
1.1.1.8 root 3812: (eval "$ac_try") 2>&5
3813: ac_status=$?
1.1.1.10! root 3814: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 root 3815: (exit $ac_status); }; }; then
3816: :
3817: else
1.1.1.10! root 3818: $as_echo "$as_me: program exited with status $ac_status" >&5
! 3819: $as_echo "$as_me: failed program was:" >&5
1.1.1.8 root 3820: sed 's/^/| /' conftest.$ac_ext >&5
3821:
3822: ( exit $ac_status )
3823: ac_cv_header_stdc=no
3824: fi
1.1.1.10! root 3825: rm -rf conftest.dSYM
1.1.1.8 root 3826: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3827: fi
3828:
3829:
3830: fi
3831: fi
1.1.1.10! root 3832: { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
! 3833: $as_echo "$ac_cv_header_stdc" >&6; }
1.1.1.8 root 3834: if test $ac_cv_header_stdc = yes; then
3835:
3836: cat >>confdefs.h <<\_ACEOF
3837: #define STDC_HEADERS 1
3838: _ACEOF
3839:
3840: fi
3841:
3842: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3843:
3844:
3845:
3846:
3847:
3848:
3849:
3850:
3851:
3852: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3853: inttypes.h stdint.h unistd.h
3854: do
1.1.1.10! root 3855: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 3856: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
! 3857: $as_echo_n "checking for $ac_header... " >&6; }
1.1.1.8 root 3858: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.10! root 3859: $as_echo_n "(cached) " >&6
1.1.1.8 root 3860: else
3861: cat >conftest.$ac_ext <<_ACEOF
3862: /* confdefs.h. */
3863: _ACEOF
3864: cat confdefs.h >>conftest.$ac_ext
3865: cat >>conftest.$ac_ext <<_ACEOF
3866: /* end confdefs.h. */
3867: $ac_includes_default
3868:
3869: #include <$ac_header>
3870: _ACEOF
3871: rm -f conftest.$ac_objext
3872: if { (ac_try="$ac_compile"
3873: case "(($ac_try" in
3874: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875: *) ac_try_echo=$ac_try;;
3876: esac
1.1.1.10! root 3877: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 3878: $as_echo "$ac_try_echo") >&5
1.1.1.8 root 3879: (eval "$ac_compile") 2>conftest.er1
3880: ac_status=$?
3881: grep -v '^ *+' conftest.er1 >conftest.err
3882: rm -f conftest.er1
3883: cat conftest.err >&5
1.1.1.10! root 3884: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 3885: (exit $ac_status); } && {
3886: test -z "$ac_c_werror_flag" ||
3887: test ! -s conftest.err
3888: } && test -s conftest.$ac_objext; then
1.1.1.8 root 3889: eval "$as_ac_Header=yes"
3890: else
1.1.1.10! root 3891: $as_echo "$as_me: failed program was:" >&5
1.1.1.8 root 3892: sed 's/^/| /' conftest.$ac_ext >&5
3893:
3894: eval "$as_ac_Header=no"
3895: fi
3896:
3897: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3898: fi
1.1.1.10! root 3899: ac_res=`eval 'as_val=${'$as_ac_Header'}
! 3900: $as_echo "$as_val"'`
! 3901: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
! 3902: $as_echo "$ac_res" >&6; }
! 3903: as_val=`eval 'as_val=${'$as_ac_Header'}
! 3904: $as_echo "$as_val"'`
! 3905: if test "x$as_val" = x""yes; then
1.1.1.8 root 3906: cat >>confdefs.h <<_ACEOF
1.1.1.10! root 3907: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1.1.8 root 3908: _ACEOF
3909:
3910: fi
3911:
3912: done
3913:
3914:
1.1.1.10! root 3915: { $as_echo "$as_me:$LINENO: checking for png_create_info_struct in -lpng" >&5
! 3916: $as_echo_n "checking for png_create_info_struct in -lpng... " >&6; }
1.1.1.8 root 3917: if test "${ac_cv_lib_png_png_create_info_struct+set}" = set; then
1.1.1.10! root 3918: $as_echo_n "(cached) " >&6
1.1.1.8 root 3919: else
3920: ac_check_lib_save_LIBS=$LIBS
3921: LIBS="-lpng -lz -lm $LIBS"
3922: cat >conftest.$ac_ext <<_ACEOF
3923: /* confdefs.h. */
3924: _ACEOF
3925: cat confdefs.h >>conftest.$ac_ext
3926: cat >>conftest.$ac_ext <<_ACEOF
3927: /* end confdefs.h. */
3928:
3929: /* Override any GCC internal prototype to avoid an error.
3930: Use char because int might match the return type of a GCC
3931: builtin and then its argument prototype would still apply. */
3932: #ifdef __cplusplus
3933: extern "C"
3934: #endif
3935: char png_create_info_struct ();
3936: int
3937: main ()
3938: {
3939: return png_create_info_struct ();
3940: ;
3941: return 0;
3942: }
3943: _ACEOF
3944: rm -f conftest.$ac_objext conftest$ac_exeext
3945: if { (ac_try="$ac_link"
3946: case "(($ac_try" in
3947: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948: *) ac_try_echo=$ac_try;;
3949: esac
1.1.1.10! root 3950: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 3951: $as_echo "$ac_try_echo") >&5
1.1.1.8 root 3952: (eval "$ac_link") 2>conftest.er1
3953: ac_status=$?
3954: grep -v '^ *+' conftest.er1 >conftest.err
3955: rm -f conftest.er1
3956: cat conftest.err >&5
1.1.1.10! root 3957: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 3958: (exit $ac_status); } && {
3959: test -z "$ac_c_werror_flag" ||
3960: test ! -s conftest.err
1.1.1.10! root 3961: } && test -s conftest$ac_exeext && {
! 3962: test "$cross_compiling" = yes ||
! 3963: $as_test_x conftest$ac_exeext
! 3964: }; then
1.1.1.8 root 3965: ac_cv_lib_png_png_create_info_struct=yes
3966: else
1.1.1.10! root 3967: $as_echo "$as_me: failed program was:" >&5
1.1.1.8 root 3968: sed 's/^/| /' conftest.$ac_ext >&5
3969:
3970: ac_cv_lib_png_png_create_info_struct=no
3971: fi
3972:
1.1.1.10! root 3973: rm -rf conftest.dSYM
1.1.1.9 root 3974: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.8 root 3975: conftest$ac_exeext conftest.$ac_ext
3976: LIBS=$ac_check_lib_save_LIBS
3977: fi
1.1.1.10! root 3978: { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_create_info_struct" >&5
! 3979: $as_echo "$ac_cv_lib_png_png_create_info_struct" >&6; }
! 3980: if test "x$ac_cv_lib_png_png_create_info_struct" = x""yes; then
1.1.1.8 root 3981: if test "${ac_cv_header_png_h+set}" = set; then
1.1.1.10! root 3982: { $as_echo "$as_me:$LINENO: checking for png.h" >&5
! 3983: $as_echo_n "checking for png.h... " >&6; }
1.1.1.8 root 3984: if test "${ac_cv_header_png_h+set}" = set; then
1.1.1.10! root 3985: $as_echo_n "(cached) " >&6
1.1.1.8 root 3986: fi
1.1.1.10! root 3987: { $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
! 3988: $as_echo "$ac_cv_header_png_h" >&6; }
1.1.1.8 root 3989: else
3990: # Is the header compilable?
1.1.1.10! root 3991: { $as_echo "$as_me:$LINENO: checking png.h usability" >&5
! 3992: $as_echo_n "checking png.h usability... " >&6; }
1.1.1.8 root 3993: cat >conftest.$ac_ext <<_ACEOF
3994: /* confdefs.h. */
3995: _ACEOF
3996: cat confdefs.h >>conftest.$ac_ext
3997: cat >>conftest.$ac_ext <<_ACEOF
3998: /* end confdefs.h. */
3999: $ac_includes_default
4000: #include <png.h>
4001: _ACEOF
4002: rm -f conftest.$ac_objext
4003: if { (ac_try="$ac_compile"
4004: case "(($ac_try" in
4005: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006: *) ac_try_echo=$ac_try;;
4007: esac
1.1.1.10! root 4008: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 4009: $as_echo "$ac_try_echo") >&5
1.1.1.8 root 4010: (eval "$ac_compile") 2>conftest.er1
4011: ac_status=$?
4012: grep -v '^ *+' conftest.er1 >conftest.err
4013: rm -f conftest.er1
4014: cat conftest.err >&5
1.1.1.10! root 4015: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 4016: (exit $ac_status); } && {
4017: test -z "$ac_c_werror_flag" ||
4018: test ! -s conftest.err
4019: } && test -s conftest.$ac_objext; then
1.1.1.8 root 4020: ac_header_compiler=yes
4021: else
1.1.1.10! root 4022: $as_echo "$as_me: failed program was:" >&5
1.1.1.8 root 4023: sed 's/^/| /' conftest.$ac_ext >&5
4024:
4025: ac_header_compiler=no
4026: fi
4027:
4028: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.10! root 4029: { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 4030: $as_echo "$ac_header_compiler" >&6; }
1.1.1.8 root 4031:
4032: # Is the header present?
1.1.1.10! root 4033: { $as_echo "$as_me:$LINENO: checking png.h presence" >&5
! 4034: $as_echo_n "checking png.h presence... " >&6; }
1.1.1.8 root 4035: cat >conftest.$ac_ext <<_ACEOF
4036: /* confdefs.h. */
4037: _ACEOF
4038: cat confdefs.h >>conftest.$ac_ext
4039: cat >>conftest.$ac_ext <<_ACEOF
4040: /* end confdefs.h. */
4041: #include <png.h>
4042: _ACEOF
4043: if { (ac_try="$ac_cpp conftest.$ac_ext"
4044: case "(($ac_try" in
4045: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046: *) ac_try_echo=$ac_try;;
4047: esac
1.1.1.10! root 4048: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 4049: $as_echo "$ac_try_echo") >&5
1.1.1.8 root 4050: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4051: ac_status=$?
4052: grep -v '^ *+' conftest.er1 >conftest.err
4053: rm -f conftest.er1
4054: cat conftest.err >&5
1.1.1.10! root 4055: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 4056: (exit $ac_status); } >/dev/null && {
4057: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4058: test ! -s conftest.err
4059: }; then
1.1.1.8 root 4060: ac_header_preproc=yes
4061: else
1.1.1.10! root 4062: $as_echo "$as_me: failed program was:" >&5
1.1.1.8 root 4063: sed 's/^/| /' conftest.$ac_ext >&5
4064:
4065: ac_header_preproc=no
4066: fi
4067:
4068: rm -f conftest.err conftest.$ac_ext
1.1.1.10! root 4069: { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 4070: $as_echo "$ac_header_preproc" >&6; }
1.1.1.8 root 4071:
4072: # So? What about this header?
4073: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4074: yes:no: )
1.1.1.10! root 4075: { $as_echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
! 4076: $as_echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 4077: { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
! 4078: $as_echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
1.1.1.8 root 4079: ac_header_preproc=yes
4080: ;;
4081: no:yes:* )
1.1.1.10! root 4082: { $as_echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
! 4083: $as_echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
! 4084: { $as_echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
! 4085: $as_echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
! 4086: { $as_echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
! 4087: $as_echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
! 4088: { $as_echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
! 4089: $as_echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
! 4090: { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
! 4091: $as_echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
! 4092: { $as_echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
! 4093: $as_echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
1.1.1.8 root 4094:
4095: ;;
4096: esac
1.1.1.10! root 4097: { $as_echo "$as_me:$LINENO: checking for png.h" >&5
! 4098: $as_echo_n "checking for png.h... " >&6; }
1.1.1.8 root 4099: if test "${ac_cv_header_png_h+set}" = set; then
1.1.1.10! root 4100: $as_echo_n "(cached) " >&6
1.1.1.8 root 4101: else
4102: ac_cv_header_png_h=$ac_header_preproc
4103: fi
1.1.1.10! root 4104: { $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
! 4105: $as_echo "$ac_cv_header_png_h" >&6; }
1.1.1.8 root 4106:
4107: fi
1.1.1.10! root 4108: if test "x$ac_cv_header_png_h" = x""yes; then
1.1.1.8 root 4109: png_ok=yes
4110: else
4111: png_ok=no
4112: fi
4113:
4114:
4115: else
4116: png_ok=no
4117: fi
4118:
4119: if test "x${png_ok}" = "xyes"; then
4120:
4121: cat >>confdefs.h <<\_ACEOF
4122: #define HAVE_LIBPNG 1
4123: _ACEOF
4124:
4125: LIBS="${LIBS} -lpng"
4126: else
1.1.1.10! root 4127: { $as_echo "$as_me:$LINENO: WARNING: *** Saving PNG screenshots will not be supported! ***" >&5
! 4128: $as_echo "$as_me: WARNING: *** Saving PNG screenshots will not be supported! ***" >&2;}
1.1.1.8 root 4129: fi
4130:
4131: SDL_VERSION=1.2.0
4132:
4133: # Check whether --with-sdl-prefix was given.
4134: if test "${with_sdl_prefix+set}" = set; then
4135: withval=$with_sdl_prefix; sdl_prefix="$withval"
4136: else
4137: sdl_prefix=""
4138: fi
4139:
4140:
4141: # Check whether --with-sdl-exec-prefix was given.
4142: if test "${with_sdl_exec_prefix+set}" = set; then
4143: withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
4144: else
4145: sdl_exec_prefix=""
4146: fi
4147:
4148: # Check whether --enable-sdltest was given.
4149: if test "${enable_sdltest+set}" = set; then
4150: enableval=$enable_sdltest;
4151: else
4152: enable_sdltest=yes
4153: fi
4154:
4155:
4156: if test x$sdl_exec_prefix != x ; then
1.1.1.10! root 4157: sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
1.1.1.8 root 4158: if test x${SDL_CONFIG+set} != xset ; then
4159: SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
4160: fi
4161: fi
4162: if test x$sdl_prefix != x ; then
1.1.1.10! root 4163: sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
1.1.1.8 root 4164: if test x${SDL_CONFIG+set} != xset ; then
4165: SDL_CONFIG=$sdl_prefix/bin/sdl-config
4166: fi
4167: fi
4168:
4169: if test "x$prefix" != xNONE; then
4170: PATH="$prefix/bin:$prefix/usr/bin:$PATH"
4171: fi
4172: # Extract the first word of "sdl-config", so it can be a program name with args.
4173: set dummy sdl-config; ac_word=$2
1.1.1.10! root 4174: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
! 4175: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.8 root 4176: if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
1.1.1.10! root 4177: $as_echo_n "(cached) " >&6
1.1.1.8 root 4178: else
4179: case $SDL_CONFIG in
4180: [\\/]* | ?:[\\/]*)
4181: ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
4182: ;;
4183: *)
4184: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185: for as_dir in $PATH
4186: do
4187: IFS=$as_save_IFS
4188: test -z "$as_dir" && as_dir=.
4189: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.9 root 4190: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.8 root 4191: ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1.1.1.10! root 4192: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.1.8 root 4193: break 2
4194: fi
4195: done
4196: done
4197: IFS=$as_save_IFS
4198:
4199: test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
4200: ;;
4201: esac
4202: fi
4203: SDL_CONFIG=$ac_cv_path_SDL_CONFIG
4204: if test -n "$SDL_CONFIG"; then
1.1.1.10! root 4205: { $as_echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
! 4206: $as_echo "$SDL_CONFIG" >&6; }
1.1 root 4207: else
1.1.1.10! root 4208: { $as_echo "$as_me:$LINENO: result: no" >&5
! 4209: $as_echo "no" >&6; }
1.1 root 4210: fi
1.1.1.6 root 4211:
1.1 root 4212:
1.1.1.8 root 4213: min_sdl_version=$SDL_VERSION
1.1.1.10! root 4214: { $as_echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
! 4215: $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
1.1.1.8 root 4216: no_sdl=""
4217: if test "$SDL_CONFIG" = "no" ; then
4218: no_sdl=yes
4219: else
1.1.1.10! root 4220: SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
! 4221: SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
1.1 root 4222:
1.1.1.10! root 4223: sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
1.1.1.8 root 4224: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
1.1.1.10! root 4225: sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
1.1.1.8 root 4226: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4227: sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
4228: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
4229: if test "x$enable_sdltest" = "xyes" ; then
4230: ac_save_CFLAGS="$CFLAGS"
4231: ac_save_CXXFLAGS="$CXXFLAGS"
4232: ac_save_LIBS="$LIBS"
4233: CFLAGS="$CFLAGS $SDL_CFLAGS"
4234: CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
4235: LIBS="$LIBS $SDL_LIBS"
4236: rm -f conf.sdltest
4237: if test "$cross_compiling" = yes; then
4238: echo $ac_n "cross compiling; assumed OK... $ac_c"
1.1 root 4239: else
4240: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 4241: /* confdefs.h. */
4242: _ACEOF
4243: cat confdefs.h >>conftest.$ac_ext
4244: cat >>conftest.$ac_ext <<_ACEOF
4245: /* end confdefs.h. */
1.1.1.8 root 4246:
4247: #include <stdio.h>
1.1 root 4248: #include <stdlib.h>
1.1.1.8 root 4249: #include <string.h>
4250: #include "SDL.h"
1.1 root 4251:
1.1.1.8 root 4252: char*
4253: my_strdup (char *str)
4254: {
4255: char *new_str;
1.1 root 4256:
1.1.1.8 root 4257: if (str)
4258: {
4259: new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
4260: strcpy (new_str, str);
4261: }
4262: else
4263: new_str = NULL;
1.1 root 4264:
1.1.1.8 root 4265: return new_str;
4266: }
1.1 root 4267:
1.1.1.8 root 4268: int main (int argc, char *argv[])
1.1 root 4269: {
1.1.1.8 root 4270: int major, minor, micro;
4271: char *tmp_version;
4272:
4273: /* This hangs on some systems (?)
4274: system ("touch conf.sdltest");
4275: */
4276: { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
4277:
4278: /* HP/UX 9 (%@#!) writes to sscanf strings */
4279: tmp_version = my_strdup("$min_sdl_version");
4280: if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
4281: printf("%s, bad version string\n", "$min_sdl_version");
4282: exit(1);
4283: }
4284:
4285: if (($sdl_major_version > major) ||
4286: (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
4287: (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
4288: {
4289: return 0;
4290: }
4291: else
4292: {
4293: printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
4294: printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
4295: printf("*** best to upgrade to the required version.\n");
4296: printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
4297: printf("*** to point to the correct copy of sdl-config, and remove the file\n");
4298: printf("*** config.cache before re-running configure\n");
4299: return 1;
4300: }
1.1 root 4301: }
1.1.1.8 root 4302:
4303:
1.1 root 4304: _ACEOF
4305: rm -f conftest$ac_exeext
1.1.1.6 root 4306: if { (ac_try="$ac_link"
4307: case "(($ac_try" in
4308: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309: *) ac_try_echo=$ac_try;;
4310: esac
1.1.1.10! root 4311: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 4312: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 4313: (eval "$ac_link") 2>&5
1.1 root 4314: ac_status=$?
1.1.1.10! root 4315: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 root 4316: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.6 root 4317: { (case "(($ac_try" in
4318: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319: *) ac_try_echo=$ac_try;;
4320: esac
1.1.1.10! root 4321: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 4322: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 4323: (eval "$ac_try") 2>&5
1.1 root 4324: ac_status=$?
1.1.1.10! root 4325: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 root 4326: (exit $ac_status); }; }; then
4327: :
4328: else
1.1.1.10! root 4329: $as_echo "$as_me: program exited with status $ac_status" >&5
! 4330: $as_echo "$as_me: failed program was:" >&5
1.1.1.3 root 4331: sed 's/^/| /' conftest.$ac_ext >&5
4332:
1.1 root 4333: ( exit $ac_status )
1.1.1.8 root 4334: no_sdl=yes
1.1 root 4335: fi
1.1.1.10! root 4336: rm -rf conftest.dSYM
1.1.1.6 root 4337: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 root 4338: fi
1.1.1.6 root 4339:
4340:
1.1.1.8 root 4341: CFLAGS="$ac_save_CFLAGS"
4342: CXXFLAGS="$ac_save_CXXFLAGS"
4343: LIBS="$ac_save_LIBS"
4344: fi
4345: fi
4346: if test "x$no_sdl" = x ; then
1.1.1.10! root 4347: { $as_echo "$as_me:$LINENO: result: yes" >&5
! 4348: $as_echo "yes" >&6; }
1.1.1.8 root 4349: :
4350: else
1.1.1.10! root 4351: { $as_echo "$as_me:$LINENO: result: no" >&5
! 4352: $as_echo "no" >&6; }
1.1.1.8 root 4353: if test "$SDL_CONFIG" = "no" ; then
4354: echo "*** The sdl-config script installed by SDL could not be found"
4355: echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
4356: echo "*** your path, or set the SDL_CONFIG environment variable to the"
4357: echo "*** full path to sdl-config."
4358: else
4359: if test -f conf.sdltest ; then
4360: :
4361: else
4362: echo "*** Could not run SDL test program, checking why..."
4363: CFLAGS="$CFLAGS $SDL_CFLAGS"
4364: CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
4365: LIBS="$LIBS $SDL_LIBS"
4366: cat >conftest.$ac_ext <<_ACEOF
1.1.1.6 root 4367: /* confdefs.h. */
4368: _ACEOF
4369: cat confdefs.h >>conftest.$ac_ext
4370: cat >>conftest.$ac_ext <<_ACEOF
4371: /* end confdefs.h. */
4372:
1.1.1.8 root 4373: #include <stdio.h>
4374: #include "SDL.h"
4375:
4376: int main(int argc, char *argv[])
4377: { return 0; }
4378: #undef main
4379: #define main K_and_R_C_main
4380:
4381: int
4382: main ()
4383: {
4384: return 0;
4385: ;
4386: return 0;
4387: }
1.1.1.6 root 4388: _ACEOF
1.1.1.8 root 4389: rm -f conftest.$ac_objext conftest$ac_exeext
4390: if { (ac_try="$ac_link"
1.1.1.6 root 4391: case "(($ac_try" in
4392: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393: *) ac_try_echo=$ac_try;;
4394: esac
1.1.1.10! root 4395: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 4396: $as_echo "$ac_try_echo") >&5
1.1.1.8 root 4397: (eval "$ac_link") 2>conftest.er1
4398: ac_status=$?
4399: grep -v '^ *+' conftest.er1 >conftest.err
4400: rm -f conftest.er1
4401: cat conftest.err >&5
1.1.1.10! root 4402: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 4403: (exit $ac_status); } && {
4404: test -z "$ac_c_werror_flag" ||
4405: test ! -s conftest.err
1.1.1.10! root 4406: } && test -s conftest$ac_exeext && {
! 4407: test "$cross_compiling" = yes ||
! 4408: $as_test_x conftest$ac_exeext
! 4409: }; then
1.1.1.8 root 4410: echo "*** The test program compiled, but did not run. This usually means"
4411: echo "*** that the run-time linker is not finding SDL or finding the wrong"
4412: echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
4413: echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
4414: echo "*** to the installed location Also, make sure you have run ldconfig if that"
4415: echo "*** is required on your system"
4416: echo "***"
4417: echo "*** If you have an old version installed, it is best to remove it, although"
4418: echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
1.1.1.6 root 4419: else
1.1.1.10! root 4420: $as_echo "$as_me: failed program was:" >&5
1.1.1.6 root 4421: sed 's/^/| /' conftest.$ac_ext >&5
4422:
1.1.1.8 root 4423: echo "*** The test program failed to compile or link. See the file config.log for the"
4424: echo "*** exact error that occured. This usually means SDL was incorrectly installed"
4425: echo "*** or that you have moved SDL since it was installed. In the latter case, you"
4426: echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
1.1.1.6 root 4427: fi
4428:
1.1.1.10! root 4429: rm -rf conftest.dSYM
1.1.1.9 root 4430: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.8 root 4431: conftest$ac_exeext conftest.$ac_ext
4432: CFLAGS="$ac_save_CFLAGS"
4433: CXXFLAGS="$ac_save_CXXFLAGS"
4434: LIBS="$ac_save_LIBS"
4435: fi
4436: fi
4437: SDL_CFLAGS=""
4438: SDL_LIBS=""
1.1.1.10! root 4439: { { $as_echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5
! 4440: $as_echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;}
1.1.1.8 root 4441: { (exit 1); exit 1; }; }
4442: fi
1.1.1.6 root 4443:
4444:
1.1.1.8 root 4445: rm -f conf.sdltest
1.1.1.6 root 4446:
4447:
4448:
1.1.1.10! root 4449: { $as_echo "$as_me:$LINENO: checking for a readline compatible library" >&5
! 4450: $as_echo_n "checking for a readline compatible library... " >&6; }
1.1.1.6 root 4451: if test "${vl_cv_lib_readline+set}" = set; then
1.1.1.10! root 4452: $as_echo_n "(cached) " >&6
1.1.1.6 root 4453: else
4454:
4455: ORIG_LIBS="$LIBS"
4456: for readline_lib in readline edit editline; do
4457: for termcap_lib in "" termcap curses ncurses; do
4458: if test -z "$termcap_lib"; then
4459: TRY_LIB="-l$readline_lib"
4460: else
4461: TRY_LIB="-l$readline_lib -l$termcap_lib"
4462: fi
4463: LIBS="$ORIG_LIBS $TRY_LIB"
4464: cat >conftest.$ac_ext <<_ACEOF
4465: /* confdefs.h. */
4466: _ACEOF
4467: cat confdefs.h >>conftest.$ac_ext
4468: cat >>conftest.$ac_ext <<_ACEOF
4469: /* end confdefs.h. */
4470:
4471: /* Override any GCC internal prototype to avoid an error.
4472: Use char because int might match the return type of a GCC
4473: builtin and then its argument prototype would still apply. */
4474: #ifdef __cplusplus
4475: extern "C"
4476: #endif
4477: char readline ();
4478: int
4479: main ()
4480: {
4481: return readline ();
4482: ;
4483: return 0;
4484: }
4485: _ACEOF
4486: rm -f conftest.$ac_objext conftest$ac_exeext
4487: if { (ac_try="$ac_link"
4488: case "(($ac_try" in
4489: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490: *) ac_try_echo=$ac_try;;
4491: esac
1.1.1.10! root 4492: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 4493: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 4494: (eval "$ac_link") 2>conftest.er1
4495: ac_status=$?
4496: grep -v '^ *+' conftest.er1 >conftest.err
4497: rm -f conftest.er1
4498: cat conftest.err >&5
1.1.1.10! root 4499: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 4500: (exit $ac_status); } && {
4501: test -z "$ac_c_werror_flag" ||
4502: test ! -s conftest.err
1.1.1.10! root 4503: } && test -s conftest$ac_exeext && {
! 4504: test "$cross_compiling" = yes ||
! 4505: $as_test_x conftest$ac_exeext
! 4506: }; then
1.1.1.6 root 4507: vl_cv_lib_readline="$TRY_LIB"
4508: else
1.1.1.10! root 4509: $as_echo "$as_me: failed program was:" >&5
1.1.1.6 root 4510: sed 's/^/| /' conftest.$ac_ext >&5
4511:
4512:
4513: fi
4514:
1.1.1.10! root 4515: rm -rf conftest.dSYM
1.1.1.9 root 4516: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 4517: conftest$ac_exeext conftest.$ac_ext
4518: if test -n "$vl_cv_lib_readline"; then
4519: break
4520: fi
4521: done
4522: if test -n "$vl_cv_lib_readline"; then
4523: break
4524: fi
4525: done
4526: if test -z "$vl_cv_lib_readline"; then
4527: vl_cv_lib_readline="no"
4528: LIBS="$ORIG_LIBS"
4529: fi
4530:
4531: fi
1.1.1.10! root 4532: { $as_echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
! 4533: $as_echo "$vl_cv_lib_readline" >&6; }
1.1.1.6 root 4534:
4535: if test "$vl_cv_lib_readline" != "no"; then
4536:
4537: cat >>confdefs.h <<\_ACEOF
4538: #define HAVE_LIBREADLINE 1
4539: _ACEOF
4540:
4541:
4542:
4543: for ac_header in readline.h readline/readline.h
4544: do
1.1.1.10! root 4545: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.6 root 4546: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.10! root 4547: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
! 4548: $as_echo_n "checking for $ac_header... " >&6; }
1.1.1.6 root 4549: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.10! root 4550: $as_echo_n "(cached) " >&6
1.1.1.6 root 4551: fi
1.1.1.10! root 4552: ac_res=`eval 'as_val=${'$as_ac_Header'}
! 4553: $as_echo "$as_val"'`
! 4554: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
! 4555: $as_echo "$ac_res" >&6; }
1.1.1.6 root 4556: else
4557: # Is the header compilable?
1.1.1.10! root 4558: { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 4559: $as_echo_n "checking $ac_header usability... " >&6; }
1.1.1.6 root 4560: cat >conftest.$ac_ext <<_ACEOF
4561: /* confdefs.h. */
4562: _ACEOF
4563: cat confdefs.h >>conftest.$ac_ext
4564: cat >>conftest.$ac_ext <<_ACEOF
4565: /* end confdefs.h. */
4566: $ac_includes_default
4567: #include <$ac_header>
4568: _ACEOF
4569: rm -f conftest.$ac_objext
4570: if { (ac_try="$ac_compile"
4571: case "(($ac_try" in
4572: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573: *) ac_try_echo=$ac_try;;
4574: esac
1.1.1.10! root 4575: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 4576: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 4577: (eval "$ac_compile") 2>conftest.er1
4578: ac_status=$?
4579: grep -v '^ *+' conftest.er1 >conftest.err
4580: rm -f conftest.er1
4581: cat conftest.err >&5
1.1.1.10! root 4582: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 4583: (exit $ac_status); } && {
4584: test -z "$ac_c_werror_flag" ||
4585: test ! -s conftest.err
4586: } && test -s conftest.$ac_objext; then
1.1.1.6 root 4587: ac_header_compiler=yes
4588: else
1.1.1.10! root 4589: $as_echo "$as_me: failed program was:" >&5
1.1.1.6 root 4590: sed 's/^/| /' conftest.$ac_ext >&5
4591:
4592: ac_header_compiler=no
4593: fi
4594:
4595: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.10! root 4596: { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 4597: $as_echo "$ac_header_compiler" >&6; }
1.1.1.6 root 4598:
4599: # Is the header present?
1.1.1.10! root 4600: { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 4601: $as_echo_n "checking $ac_header presence... " >&6; }
1.1.1.6 root 4602: cat >conftest.$ac_ext <<_ACEOF
4603: /* confdefs.h. */
4604: _ACEOF
4605: cat confdefs.h >>conftest.$ac_ext
4606: cat >>conftest.$ac_ext <<_ACEOF
4607: /* end confdefs.h. */
4608: #include <$ac_header>
4609: _ACEOF
4610: if { (ac_try="$ac_cpp conftest.$ac_ext"
4611: case "(($ac_try" in
4612: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613: *) ac_try_echo=$ac_try;;
4614: esac
1.1.1.10! root 4615: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 4616: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 4617: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4618: ac_status=$?
4619: grep -v '^ *+' conftest.er1 >conftest.err
4620: rm -f conftest.er1
4621: cat conftest.err >&5
1.1.1.10! root 4622: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 4623: (exit $ac_status); } >/dev/null && {
4624: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4625: test ! -s conftest.err
4626: }; then
1.1.1.6 root 4627: ac_header_preproc=yes
4628: else
1.1.1.10! root 4629: $as_echo "$as_me: failed program was:" >&5
1.1.1.6 root 4630: sed 's/^/| /' conftest.$ac_ext >&5
4631:
4632: ac_header_preproc=no
4633: fi
4634:
4635: rm -f conftest.err conftest.$ac_ext
1.1.1.10! root 4636: { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 4637: $as_echo "$ac_header_preproc" >&6; }
1.1.1.6 root 4638:
4639: # So? What about this header?
4640: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4641: yes:no: )
1.1.1.10! root 4642: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 4643: $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 4644: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 4645: $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
1.1.1.6 root 4646: ac_header_preproc=yes
4647: ;;
4648: no:yes:* )
1.1.1.10! root 4649: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 4650: $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 4651: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 4652: $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 4653: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 4654: $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 4655: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 4656: $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 4657: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 4658: $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 4659: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 4660: $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1.1.6 root 4661:
4662: ;;
4663: esac
1.1.1.10! root 4664: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
! 4665: $as_echo_n "checking for $ac_header... " >&6; }
1.1.1.6 root 4666: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.10! root 4667: $as_echo_n "(cached) " >&6
1.1.1.6 root 4668: else
4669: eval "$as_ac_Header=\$ac_header_preproc"
4670: fi
1.1.1.10! root 4671: ac_res=`eval 'as_val=${'$as_ac_Header'}
! 4672: $as_echo "$as_val"'`
! 4673: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
! 4674: $as_echo "$ac_res" >&6; }
1.1.1.6 root 4675:
4676: fi
1.1.1.10! root 4677: as_val=`eval 'as_val=${'$as_ac_Header'}
! 4678: $as_echo "$as_val"'`
! 4679: if test "x$as_val" = x""yes; then
1.1.1.6 root 4680: cat >>confdefs.h <<_ACEOF
1.1.1.10! root 4681: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1.1.6 root 4682: _ACEOF
4683:
4684: fi
4685:
4686: done
4687:
1.1.1.10! root 4688: { $as_echo "$as_me:$LINENO: checking whether readline supports history" >&5
! 4689: $as_echo_n "checking whether readline supports history... " >&6; }
1.1.1.6 root 4690: if test "${vl_cv_lib_readline_history+set}" = set; then
1.1.1.10! root 4691: $as_echo_n "(cached) " >&6
1.1.1.6 root 4692: else
4693:
4694: vl_cv_lib_readline_history="no"
4695: cat >conftest.$ac_ext <<_ACEOF
4696: /* confdefs.h. */
4697: _ACEOF
4698: cat confdefs.h >>conftest.$ac_ext
4699: cat >>conftest.$ac_ext <<_ACEOF
4700: /* end confdefs.h. */
4701:
4702: /* Override any GCC internal prototype to avoid an error.
4703: Use char because int might match the return type of a GCC
4704: builtin and then its argument prototype would still apply. */
4705: #ifdef __cplusplus
4706: extern "C"
4707: #endif
4708: char add_history ();
4709: int
4710: main ()
4711: {
4712: return add_history ();
4713: ;
4714: return 0;
4715: }
4716: _ACEOF
4717: rm -f conftest.$ac_objext conftest$ac_exeext
4718: if { (ac_try="$ac_link"
4719: case "(($ac_try" in
4720: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721: *) ac_try_echo=$ac_try;;
4722: esac
1.1.1.10! root 4723: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 4724: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 4725: (eval "$ac_link") 2>conftest.er1
4726: ac_status=$?
4727: grep -v '^ *+' conftest.er1 >conftest.err
4728: rm -f conftest.er1
4729: cat conftest.err >&5
1.1.1.10! root 4730: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 4731: (exit $ac_status); } && {
4732: test -z "$ac_c_werror_flag" ||
4733: test ! -s conftest.err
1.1.1.10! root 4734: } && test -s conftest$ac_exeext && {
! 4735: test "$cross_compiling" = yes ||
! 4736: $as_test_x conftest$ac_exeext
! 4737: }; then
1.1.1.6 root 4738: vl_cv_lib_readline_history="yes"
4739: else
1.1.1.10! root 4740: $as_echo "$as_me: failed program was:" >&5
1.1.1.6 root 4741: sed 's/^/| /' conftest.$ac_ext >&5
4742:
4743:
4744: fi
4745:
1.1.1.10! root 4746: rm -rf conftest.dSYM
1.1.1.9 root 4747: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 4748: conftest$ac_exeext conftest.$ac_ext
4749:
4750: fi
1.1.1.10! root 4751: { $as_echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
! 4752: $as_echo "$vl_cv_lib_readline_history" >&6; }
1.1.1.6 root 4753: if test "$vl_cv_lib_readline_history" = "yes"; then
4754:
4755: cat >>confdefs.h <<\_ACEOF
4756: #define HAVE_READLINE_HISTORY 1
4757: _ACEOF
4758:
4759:
4760:
4761: for ac_header in history.h readline/history.h
4762: do
1.1.1.10! root 4763: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.6 root 4764: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.10! root 4765: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
! 4766: $as_echo_n "checking for $ac_header... " >&6; }
1.1.1.6 root 4767: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.10! root 4768: $as_echo_n "(cached) " >&6
1.1.1.6 root 4769: fi
1.1.1.10! root 4770: ac_res=`eval 'as_val=${'$as_ac_Header'}
! 4771: $as_echo "$as_val"'`
! 4772: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
! 4773: $as_echo "$ac_res" >&6; }
1.1.1.6 root 4774: else
4775: # Is the header compilable?
1.1.1.10! root 4776: { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 4777: $as_echo_n "checking $ac_header usability... " >&6; }
1.1.1.6 root 4778: cat >conftest.$ac_ext <<_ACEOF
4779: /* confdefs.h. */
4780: _ACEOF
4781: cat confdefs.h >>conftest.$ac_ext
4782: cat >>conftest.$ac_ext <<_ACEOF
4783: /* end confdefs.h. */
4784: $ac_includes_default
4785: #include <$ac_header>
4786: _ACEOF
4787: rm -f conftest.$ac_objext
4788: if { (ac_try="$ac_compile"
4789: case "(($ac_try" in
4790: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4791: *) ac_try_echo=$ac_try;;
4792: esac
1.1.1.10! root 4793: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 4794: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 4795: (eval "$ac_compile") 2>conftest.er1
4796: ac_status=$?
4797: grep -v '^ *+' conftest.er1 >conftest.err
4798: rm -f conftest.er1
4799: cat conftest.err >&5
1.1.1.10! root 4800: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 4801: (exit $ac_status); } && {
4802: test -z "$ac_c_werror_flag" ||
4803: test ! -s conftest.err
4804: } && test -s conftest.$ac_objext; then
1.1.1.6 root 4805: ac_header_compiler=yes
4806: else
1.1.1.10! root 4807: $as_echo "$as_me: failed program was:" >&5
1.1.1.6 root 4808: sed 's/^/| /' conftest.$ac_ext >&5
4809:
4810: ac_header_compiler=no
4811: fi
4812:
4813: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.10! root 4814: { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 4815: $as_echo "$ac_header_compiler" >&6; }
1.1.1.6 root 4816:
4817: # Is the header present?
1.1.1.10! root 4818: { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 4819: $as_echo_n "checking $ac_header presence... " >&6; }
1.1.1.6 root 4820: cat >conftest.$ac_ext <<_ACEOF
4821: /* confdefs.h. */
4822: _ACEOF
4823: cat confdefs.h >>conftest.$ac_ext
4824: cat >>conftest.$ac_ext <<_ACEOF
4825: /* end confdefs.h. */
4826: #include <$ac_header>
4827: _ACEOF
4828: if { (ac_try="$ac_cpp conftest.$ac_ext"
4829: case "(($ac_try" in
4830: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4831: *) ac_try_echo=$ac_try;;
4832: esac
1.1.1.10! root 4833: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 4834: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 4835: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4836: ac_status=$?
4837: grep -v '^ *+' conftest.er1 >conftest.err
4838: rm -f conftest.er1
4839: cat conftest.err >&5
1.1.1.10! root 4840: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 4841: (exit $ac_status); } >/dev/null && {
4842: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4843: test ! -s conftest.err
4844: }; then
1.1.1.6 root 4845: ac_header_preproc=yes
4846: else
1.1.1.10! root 4847: $as_echo "$as_me: failed program was:" >&5
1.1.1.6 root 4848: sed 's/^/| /' conftest.$ac_ext >&5
4849:
4850: ac_header_preproc=no
4851: fi
4852:
4853: rm -f conftest.err conftest.$ac_ext
1.1.1.10! root 4854: { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 4855: $as_echo "$ac_header_preproc" >&6; }
1.1.1.6 root 4856:
4857: # So? What about this header?
4858: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4859: yes:no: )
1.1.1.10! root 4860: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 4861: $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 4862: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 4863: $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
1.1.1.6 root 4864: ac_header_preproc=yes
4865: ;;
4866: no:yes:* )
1.1.1.10! root 4867: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 4868: $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 4869: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 4870: $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 4871: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 4872: $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 4873: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 4874: $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 4875: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 4876: $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 4877: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 4878: $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1.1.6 root 4879:
4880: ;;
4881: esac
1.1.1.10! root 4882: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
! 4883: $as_echo_n "checking for $ac_header... " >&6; }
1.1.1.6 root 4884: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.10! root 4885: $as_echo_n "(cached) " >&6
1.1.1.6 root 4886: else
4887: eval "$as_ac_Header=\$ac_header_preproc"
4888: fi
1.1.1.10! root 4889: ac_res=`eval 'as_val=${'$as_ac_Header'}
! 4890: $as_echo "$as_val"'`
! 4891: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
! 4892: $as_echo "$ac_res" >&6; }
1.1.1.6 root 4893:
4894: fi
1.1.1.10! root 4895: as_val=`eval 'as_val=${'$as_ac_Header'}
! 4896: $as_echo "$as_val"'`
! 4897: if test "x$as_val" = x""yes; then
1.1.1.6 root 4898: cat >>confdefs.h <<_ACEOF
1.1.1.10! root 4899: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1.1.6 root 4900: _ACEOF
4901:
4902: fi
4903:
4904: done
4905:
4906: fi
4907: fi
4908:
4909:
4910: no_x=yes
4911: # Extract the first word of "pkg-config", so it can be a program name with args.
4912: set dummy pkg-config; ac_word=$2
1.1.1.10! root 4913: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
! 4914: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.6 root 4915: if test "${ac_cv_prog_HAVE_PKG_CONFIG+set}" = set; then
1.1.1.10! root 4916: $as_echo_n "(cached) " >&6
1.1.1.6 root 4917: else
4918: if test -n "$HAVE_PKG_CONFIG"; then
4919: ac_cv_prog_HAVE_PKG_CONFIG="$HAVE_PKG_CONFIG" # Let the user override the test.
4920: else
4921: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922: for as_dir in $PATH
4923: do
4924: IFS=$as_save_IFS
4925: test -z "$as_dir" && as_dir=.
4926: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.9 root 4927: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.6 root 4928: ac_cv_prog_HAVE_PKG_CONFIG="yes"
1.1.1.10! root 4929: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.1.6 root 4930: break 2
4931: fi
4932: done
4933: done
4934: IFS=$as_save_IFS
4935:
4936: fi
4937: fi
4938: HAVE_PKG_CONFIG=$ac_cv_prog_HAVE_PKG_CONFIG
4939: if test -n "$HAVE_PKG_CONFIG"; then
1.1.1.10! root 4940: { $as_echo "$as_me:$LINENO: result: $HAVE_PKG_CONFIG" >&5
! 4941: $as_echo "$HAVE_PKG_CONFIG" >&6; }
1.1.1.6 root 4942: else
1.1.1.10! root 4943: { $as_echo "$as_me:$LINENO: result: no" >&5
! 4944: $as_echo "no" >&6; }
1.1.1.6 root 4945: fi
4946:
4947:
4948: if test "x${HAVE_PKG_CONFIG}" = "xyes"; then
4949:
4950:
4951: if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4952: if test -n "$ac_tool_prefix"; then
4953: # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4954: set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
1.1.1.10! root 4955: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
! 4956: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.6 root 4957: if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
1.1.1.10! root 4958: $as_echo_n "(cached) " >&6
1.1.1.6 root 4959: else
4960: case $PKG_CONFIG in
4961: [\\/]* | ?:[\\/]*)
4962: ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4963: ;;
4964: *)
4965: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966: for as_dir in $PATH
4967: do
4968: IFS=$as_save_IFS
4969: test -z "$as_dir" && as_dir=.
4970: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.9 root 4971: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.6 root 4972: ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1.1.1.10! root 4973: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.1.6 root 4974: break 2
4975: fi
4976: done
4977: done
4978: IFS=$as_save_IFS
4979:
4980: ;;
4981: esac
4982: fi
4983: PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4984: if test -n "$PKG_CONFIG"; then
1.1.1.10! root 4985: { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
! 4986: $as_echo "$PKG_CONFIG" >&6; }
1.1.1.6 root 4987: else
1.1.1.10! root 4988: { $as_echo "$as_me:$LINENO: result: no" >&5
! 4989: $as_echo "no" >&6; }
1.1.1.6 root 4990: fi
4991:
4992:
4993: fi
4994: if test -z "$ac_cv_path_PKG_CONFIG"; then
4995: ac_pt_PKG_CONFIG=$PKG_CONFIG
4996: # Extract the first word of "pkg-config", so it can be a program name with args.
4997: set dummy pkg-config; ac_word=$2
1.1.1.10! root 4998: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
! 4999: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.6 root 5000: if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
1.1.1.10! root 5001: $as_echo_n "(cached) " >&6
1.1.1.6 root 5002: else
5003: case $ac_pt_PKG_CONFIG in
5004: [\\/]* | ?:[\\/]*)
5005: ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5006: ;;
5007: *)
5008: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009: for as_dir in $PATH
5010: do
5011: IFS=$as_save_IFS
5012: test -z "$as_dir" && as_dir=.
5013: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.9 root 5014: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.6 root 5015: ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1.1.1.10! root 5016: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1.1.6 root 5017: break 2
5018: fi
5019: done
5020: done
5021: IFS=$as_save_IFS
5022:
5023: ;;
5024: esac
5025: fi
5026: ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5027: if test -n "$ac_pt_PKG_CONFIG"; then
1.1.1.10! root 5028: { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
! 5029: $as_echo "$ac_pt_PKG_CONFIG" >&6; }
1.1.1.6 root 5030: else
1.1.1.10! root 5031: { $as_echo "$as_me:$LINENO: result: no" >&5
! 5032: $as_echo "no" >&6; }
1.1.1.6 root 5033: fi
5034:
5035: if test "x$ac_pt_PKG_CONFIG" = x; then
5036: PKG_CONFIG=""
5037: else
5038: case $cross_compiling:$ac_tool_warned in
5039: yes:)
1.1.1.10! root 5040: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
! 5041: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1.1.6 root 5042: ac_tool_warned=yes ;;
5043: esac
5044: PKG_CONFIG=$ac_pt_PKG_CONFIG
5045: fi
5046: else
5047: PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5048: fi
5049:
5050: fi
5051: if test -n "$PKG_CONFIG"; then
5052: _pkg_min_version=0.9.0
1.1.1.10! root 5053: { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
! 5054: $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
1.1.1.6 root 5055: if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
1.1.1.10! root 5056: { $as_echo "$as_me:$LINENO: result: yes" >&5
! 5057: $as_echo "yes" >&6; }
1.1.1.6 root 5058: else
1.1.1.10! root 5059: { $as_echo "$as_me:$LINENO: result: no" >&5
! 5060: $as_echo "no" >&6; }
1.1.1.6 root 5061: PKG_CONFIG=""
5062: fi
5063:
5064: fi
5065:
5066: pkg_failed=no
1.1.1.10! root 5067: { $as_echo "$as_me:$LINENO: checking for X" >&5
! 5068: $as_echo_n "checking for X... " >&6; }
1.1.1.6 root 5069:
5070: if test -n "$PKG_CONFIG"; then
5071: if test -n "$X_CFLAGS"; then
5072: pkg_cv_X_CFLAGS="$X_CFLAGS"
5073: else
5074: if test -n "$PKG_CONFIG" && \
1.1.1.10! root 5075: { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
1.1.1.6 root 5076: ($PKG_CONFIG --exists --print-errors "x11") 2>&5
5077: ac_status=$?
1.1.1.10! root 5078: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.6 root 5079: (exit $ac_status); }; then
5080: pkg_cv_X_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
5081: else
5082: pkg_failed=yes
5083: fi
5084: fi
5085: else
5086: pkg_failed=untried
5087: fi
5088: if test -n "$PKG_CONFIG"; then
5089: if test -n "$X_LIBS"; then
5090: pkg_cv_X_LIBS="$X_LIBS"
5091: else
5092: if test -n "$PKG_CONFIG" && \
1.1.1.10! root 5093: { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
1.1.1.6 root 5094: ($PKG_CONFIG --exists --print-errors "x11") 2>&5
5095: ac_status=$?
1.1.1.10! root 5096: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.6 root 5097: (exit $ac_status); }; then
5098: pkg_cv_X_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
5099: else
5100: pkg_failed=yes
5101: fi
5102: fi
5103: else
5104: pkg_failed=untried
5105: fi
5106:
5107:
5108:
5109: if test $pkg_failed = yes; then
5110:
5111: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5112: _pkg_short_errors_supported=yes
5113: else
5114: _pkg_short_errors_supported=no
5115: fi
5116: if test $_pkg_short_errors_supported = yes; then
5117: X_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11"`
5118: else
5119: X_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11"`
5120: fi
5121: # Put the nasty error message in config.log where it belongs
5122: echo "$X_PKG_ERRORS" >&5
5123:
1.1.1.10! root 5124: { $as_echo "$as_me:$LINENO: result: no" >&5
! 5125: $as_echo "no" >&6; }
1.1.1.6 root 5126: no_x=yes
5127: elif test $pkg_failed = untried; then
5128: no_x=yes
5129: else
5130: X_CFLAGS=$pkg_cv_X_CFLAGS
5131: X_LIBS=$pkg_cv_X_LIBS
1.1.1.10! root 5132: { $as_echo "$as_me:$LINENO: result: yes" >&5
! 5133: $as_echo "yes" >&6; }
1.1.1.6 root 5134: no_x=no
5135: fi
5136: fi
5137: if test "x${no_x}" = "xyes"; then
1.1.1.10! root 5138: { $as_echo "$as_me:$LINENO: checking for X" >&5
! 5139: $as_echo_n "checking for X... " >&6; }
1.1.1.6 root 5140:
5141:
5142: # Check whether --with-x was given.
5143: if test "${with_x+set}" = set; then
5144: withval=$with_x;
5145: fi
5146:
5147: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5148: if test "x$with_x" = xno; then
5149: # The user explicitly disabled X.
5150: have_x=disabled
5151: else
5152: case $x_includes,$x_libraries in #(
1.1.1.10! root 5153: *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
! 5154: $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
1.1.1.6 root 5155: { (exit 1); exit 1; }; };; #(
5156: *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
1.1.1.10! root 5157: $as_echo_n "(cached) " >&6
1.1.1.6 root 5158: else
5159: # One or both of the vars are not set, and there is no cached value.
5160: ac_x_includes=no ac_x_libraries=no
5161: rm -f -r conftest.dir
5162: if mkdir conftest.dir; then
5163: cd conftest.dir
5164: cat >Imakefile <<'_ACEOF'
5165: incroot:
5166: @echo incroot='${INCROOT}'
5167: usrlibdir:
5168: @echo usrlibdir='${USRLIBDIR}'
5169: libdir:
5170: @echo libdir='${LIBDIR}'
5171: _ACEOF
5172: if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5173: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5174: for ac_var in incroot usrlibdir libdir; do
5175: eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5176: done
5177: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1.1.1.10! root 5178: for ac_extension in a so sl dylib la dll; do
1.1.1.6 root 5179: if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5180: test -f "$ac_im_libdir/libX11.$ac_extension"; then
5181: ac_im_usrlibdir=$ac_im_libdir; break
5182: fi
5183: done
5184: # Screen out bogus values from the imake configuration. They are
5185: # bogus both because they are the default anyway, and because
5186: # using them would break gcc on systems where it needs fixed includes.
5187: case $ac_im_incroot in
5188: /usr/include) ac_x_includes= ;;
5189: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5190: esac
5191: case $ac_im_usrlibdir in
1.1.1.10! root 5192: /usr/lib | /usr/lib64 | /lib | /lib64) ;;
1.1.1.6 root 5193: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5194: esac
5195: fi
5196: cd ..
5197: rm -f -r conftest.dir
5198: fi
5199:
5200: # Standard set of common directories for X headers.
5201: # Check X11 before X11Rn because it is often a symlink to the current release.
5202: ac_x_header_dirs='
5203: /usr/X11/include
5204: /usr/X11R6/include
5205: /usr/X11R5/include
5206: /usr/X11R4/include
5207:
5208: /usr/include/X11
5209: /usr/include/X11R6
5210: /usr/include/X11R5
5211: /usr/include/X11R4
5212:
5213: /usr/local/X11/include
5214: /usr/local/X11R6/include
5215: /usr/local/X11R5/include
5216: /usr/local/X11R4/include
5217:
5218: /usr/local/include/X11
5219: /usr/local/include/X11R6
5220: /usr/local/include/X11R5
5221: /usr/local/include/X11R4
5222:
5223: /usr/X386/include
5224: /usr/x386/include
5225: /usr/XFree86/include/X11
5226:
5227: /usr/include
5228: /usr/local/include
5229: /usr/unsupported/include
5230: /usr/athena/include
5231: /usr/local/x11r5/include
5232: /usr/lpp/Xamples/include
5233:
5234: /usr/openwin/include
5235: /usr/openwin/share/include'
5236:
5237: if test "$ac_x_includes" = no; then
5238: # Guess where to find include files, by looking for Xlib.h.
5239: # First, try using that file with no special directory specified.
5240: cat >conftest.$ac_ext <<_ACEOF
5241: /* confdefs.h. */
5242: _ACEOF
5243: cat confdefs.h >>conftest.$ac_ext
5244: cat >>conftest.$ac_ext <<_ACEOF
5245: /* end confdefs.h. */
5246: #include <X11/Xlib.h>
5247: _ACEOF
5248: if { (ac_try="$ac_cpp conftest.$ac_ext"
5249: case "(($ac_try" in
5250: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5251: *) ac_try_echo=$ac_try;;
5252: esac
1.1.1.10! root 5253: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 5254: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 5255: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5256: ac_status=$?
5257: grep -v '^ *+' conftest.er1 >conftest.err
5258: rm -f conftest.er1
5259: cat conftest.err >&5
1.1.1.10! root 5260: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 5261: (exit $ac_status); } >/dev/null && {
5262: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5263: test ! -s conftest.err
5264: }; then
1.1.1.6 root 5265: # We can compile using X headers with no special include directory.
5266: ac_x_includes=
5267: else
1.1.1.10! root 5268: $as_echo "$as_me: failed program was:" >&5
1.1.1.6 root 5269: sed 's/^/| /' conftest.$ac_ext >&5
5270:
5271: for ac_dir in $ac_x_header_dirs; do
5272: if test -r "$ac_dir/X11/Xlib.h"; then
5273: ac_x_includes=$ac_dir
5274: break
5275: fi
5276: done
5277: fi
5278:
5279: rm -f conftest.err conftest.$ac_ext
5280: fi # $ac_x_includes = no
5281:
5282: if test "$ac_x_libraries" = no; then
5283: # Check for the libraries.
5284: # See if we find them without any special options.
5285: # Don't add to $LIBS permanently.
5286: ac_save_LIBS=$LIBS
1.1.1.9 root 5287: LIBS="-lX11 $LIBS"
1.1.1.6 root 5288: cat >conftest.$ac_ext <<_ACEOF
5289: /* confdefs.h. */
5290: _ACEOF
5291: cat confdefs.h >>conftest.$ac_ext
5292: cat >>conftest.$ac_ext <<_ACEOF
5293: /* end confdefs.h. */
5294: #include <X11/Xlib.h>
5295: int
5296: main ()
5297: {
5298: XrmInitialize ()
5299: ;
5300: return 0;
5301: }
5302: _ACEOF
5303: rm -f conftest.$ac_objext conftest$ac_exeext
5304: if { (ac_try="$ac_link"
5305: case "(($ac_try" in
5306: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5307: *) ac_try_echo=$ac_try;;
5308: esac
1.1.1.10! root 5309: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 5310: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 5311: (eval "$ac_link") 2>conftest.er1
5312: ac_status=$?
5313: grep -v '^ *+' conftest.er1 >conftest.err
5314: rm -f conftest.er1
5315: cat conftest.err >&5
1.1.1.10! root 5316: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 5317: (exit $ac_status); } && {
5318: test -z "$ac_c_werror_flag" ||
5319: test ! -s conftest.err
1.1.1.10! root 5320: } && test -s conftest$ac_exeext && {
! 5321: test "$cross_compiling" = yes ||
! 5322: $as_test_x conftest$ac_exeext
! 5323: }; then
1.1.1.6 root 5324: LIBS=$ac_save_LIBS
5325: # We can link X programs with no special library path.
5326: ac_x_libraries=
5327: else
1.1.1.10! root 5328: $as_echo "$as_me: failed program was:" >&5
1.1.1.6 root 5329: sed 's/^/| /' conftest.$ac_ext >&5
5330:
5331: LIBS=$ac_save_LIBS
1.1.1.10! root 5332: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
1.1.1.6 root 5333: do
5334: # Don't even attempt the hair of trying to link an X program!
1.1.1.10! root 5335: for ac_extension in a so sl dylib la dll; do
1.1.1.9 root 5336: if test -r "$ac_dir/libX11.$ac_extension"; then
1.1.1.6 root 5337: ac_x_libraries=$ac_dir
5338: break 2
5339: fi
5340: done
5341: done
5342: fi
5343:
1.1.1.10! root 5344: rm -rf conftest.dSYM
1.1.1.9 root 5345: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 5346: conftest$ac_exeext conftest.$ac_ext
5347: fi # $ac_x_libraries = no
5348:
5349: case $ac_x_includes,$ac_x_libraries in #(
5350: no,* | *,no | *\'*)
5351: # Didn't find X, or a directory has "'" in its name.
5352: ac_cv_have_x="have_x=no";; #(
5353: *)
5354: # Record where we found X for the cache.
5355: ac_cv_have_x="have_x=yes\
5356: ac_x_includes='$ac_x_includes'\
5357: ac_x_libraries='$ac_x_libraries'"
5358: esac
5359: fi
5360: ;; #(
5361: *) have_x=yes;;
5362: esac
5363: eval "$ac_cv_have_x"
5364: fi # $with_x != no
5365:
5366: if test "$have_x" != yes; then
1.1.1.10! root 5367: { $as_echo "$as_me:$LINENO: result: $have_x" >&5
! 5368: $as_echo "$have_x" >&6; }
1.1.1.6 root 5369: no_x=yes
5370: else
5371: # If each of the values was on the command line, it overrides each guess.
5372: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5373: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5374: # Update the cache value to reflect the command line values.
5375: ac_cv_have_x="have_x=yes\
5376: ac_x_includes='$x_includes'\
5377: ac_x_libraries='$x_libraries'"
1.1.1.10! root 5378: { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
! 5379: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
1.1.1.6 root 5380: fi
5381:
5382: if test "$no_x" = yes; then
5383: # Not all programs may use this symbol, but it does not hurt to define it.
5384:
5385: cat >>confdefs.h <<\_ACEOF
5386: #define X_DISPLAY_MISSING 1
5387: _ACEOF
5388:
5389: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5390: else
5391: if test -n "$x_includes"; then
5392: X_CFLAGS="$X_CFLAGS -I$x_includes"
5393: fi
5394:
5395: # It would also be nice to do this for all -L options, not just this one.
5396: if test -n "$x_libraries"; then
5397: X_LIBS="$X_LIBS -L$x_libraries"
5398: # For Solaris; some versions of Sun CC require a space after -R and
5399: # others require no space. Words are not sufficient . . . .
1.1.1.10! root 5400: { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
! 5401: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
1.1.1.9 root 5402: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5403: ac_xsave_c_werror_flag=$ac_c_werror_flag
5404: ac_c_werror_flag=yes
5405: cat >conftest.$ac_ext <<_ACEOF
1.1.1.6 root 5406: /* confdefs.h. */
5407: _ACEOF
5408: cat confdefs.h >>conftest.$ac_ext
5409: cat >>conftest.$ac_ext <<_ACEOF
5410: /* end confdefs.h. */
5411:
5412: int
5413: main ()
5414: {
5415:
5416: ;
5417: return 0;
5418: }
5419: _ACEOF
5420: rm -f conftest.$ac_objext conftest$ac_exeext
5421: if { (ac_try="$ac_link"
5422: case "(($ac_try" in
5423: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5424: *) ac_try_echo=$ac_try;;
5425: esac
1.1.1.10! root 5426: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 5427: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 5428: (eval "$ac_link") 2>conftest.er1
5429: ac_status=$?
5430: grep -v '^ *+' conftest.er1 >conftest.err
5431: rm -f conftest.er1
5432: cat conftest.err >&5
1.1.1.10! root 5433: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 5434: (exit $ac_status); } && {
5435: test -z "$ac_c_werror_flag" ||
5436: test ! -s conftest.err
1.1.1.10! root 5437: } && test -s conftest$ac_exeext && {
! 5438: test "$cross_compiling" = yes ||
! 5439: $as_test_x conftest$ac_exeext
! 5440: }; then
! 5441: { $as_echo "$as_me:$LINENO: result: no" >&5
! 5442: $as_echo "no" >&6; }
1.1.1.9 root 5443: X_LIBS="$X_LIBS -R$x_libraries"
1.1.1.6 root 5444: else
1.1.1.10! root 5445: $as_echo "$as_me: failed program was:" >&5
1.1.1.6 root 5446: sed 's/^/| /' conftest.$ac_ext >&5
5447:
5448: LIBS="$ac_xsave_LIBS -R $x_libraries"
1.1.1.9 root 5449: cat >conftest.$ac_ext <<_ACEOF
1.1.1.6 root 5450: /* confdefs.h. */
5451: _ACEOF
5452: cat confdefs.h >>conftest.$ac_ext
5453: cat >>conftest.$ac_ext <<_ACEOF
5454: /* end confdefs.h. */
5455:
5456: int
5457: main ()
5458: {
5459:
5460: ;
5461: return 0;
5462: }
5463: _ACEOF
5464: rm -f conftest.$ac_objext conftest$ac_exeext
5465: if { (ac_try="$ac_link"
5466: case "(($ac_try" in
5467: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5468: *) ac_try_echo=$ac_try;;
5469: esac
1.1.1.10! root 5470: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 5471: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 5472: (eval "$ac_link") 2>conftest.er1
5473: ac_status=$?
5474: grep -v '^ *+' conftest.er1 >conftest.err
5475: rm -f conftest.er1
5476: cat conftest.err >&5
1.1.1.10! root 5477: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 5478: (exit $ac_status); } && {
5479: test -z "$ac_c_werror_flag" ||
5480: test ! -s conftest.err
1.1.1.10! root 5481: } && test -s conftest$ac_exeext && {
! 5482: test "$cross_compiling" = yes ||
! 5483: $as_test_x conftest$ac_exeext
! 5484: }; then
! 5485: { $as_echo "$as_me:$LINENO: result: yes" >&5
! 5486: $as_echo "yes" >&6; }
1.1.1.9 root 5487: X_LIBS="$X_LIBS -R $x_libraries"
1.1.1.6 root 5488: else
1.1.1.10! root 5489: $as_echo "$as_me: failed program was:" >&5
1.1.1.6 root 5490: sed 's/^/| /' conftest.$ac_ext >&5
5491:
1.1.1.10! root 5492: { $as_echo "$as_me:$LINENO: result: neither works" >&5
! 5493: $as_echo "neither works" >&6; }
1.1.1.6 root 5494: fi
5495:
1.1.1.10! root 5496: rm -rf conftest.dSYM
1.1.1.9 root 5497: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 5498: conftest$ac_exeext conftest.$ac_ext
1.1.1.9 root 5499: fi
5500:
1.1.1.10! root 5501: rm -rf conftest.dSYM
1.1.1.9 root 5502: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5503: conftest$ac_exeext conftest.$ac_ext
5504: ac_c_werror_flag=$ac_xsave_c_werror_flag
5505: LIBS=$ac_xsave_LIBS
1.1.1.6 root 5506: fi
5507:
5508: # Check for system-dependent libraries X programs must link with.
5509: # Do this before checking for the system-independent R6 libraries
5510: # (-lICE), since we may need -lsocket or whatever for X linking.
5511:
5512: if test "$ISC" = yes; then
5513: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5514: else
5515: # Martyn Johnson says this is needed for Ultrix, if the X
5516: # libraries were built with DECnet support. And Karl Berry says
5517: # the Alpha needs dnet_stub (dnet does not exist).
5518: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5519: cat >conftest.$ac_ext <<_ACEOF
5520: /* confdefs.h. */
5521: _ACEOF
5522: cat confdefs.h >>conftest.$ac_ext
5523: cat >>conftest.$ac_ext <<_ACEOF
5524: /* end confdefs.h. */
5525:
5526: /* Override any GCC internal prototype to avoid an error.
5527: Use char because int might match the return type of a GCC
5528: builtin and then its argument prototype would still apply. */
5529: #ifdef __cplusplus
5530: extern "C"
5531: #endif
5532: char XOpenDisplay ();
5533: int
5534: main ()
5535: {
5536: return XOpenDisplay ();
5537: ;
5538: return 0;
5539: }
5540: _ACEOF
5541: rm -f conftest.$ac_objext conftest$ac_exeext
5542: if { (ac_try="$ac_link"
5543: case "(($ac_try" in
5544: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545: *) ac_try_echo=$ac_try;;
5546: esac
1.1.1.10! root 5547: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 5548: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 5549: (eval "$ac_link") 2>conftest.er1
5550: ac_status=$?
5551: grep -v '^ *+' conftest.er1 >conftest.err
5552: rm -f conftest.er1
5553: cat conftest.err >&5
1.1.1.10! root 5554: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 5555: (exit $ac_status); } && {
5556: test -z "$ac_c_werror_flag" ||
5557: test ! -s conftest.err
1.1.1.10! root 5558: } && test -s conftest$ac_exeext && {
! 5559: test "$cross_compiling" = yes ||
! 5560: $as_test_x conftest$ac_exeext
! 5561: }; then
1.1.1.6 root 5562: :
5563: else
1.1.1.10! root 5564: $as_echo "$as_me: failed program was:" >&5
1.1.1.6 root 5565: sed 's/^/| /' conftest.$ac_ext >&5
5566:
1.1.1.10! root 5567: { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
! 5568: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
1.1.1.6 root 5569: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
1.1.1.10! root 5570: $as_echo_n "(cached) " >&6
1.1.1.6 root 5571: else
5572: ac_check_lib_save_LIBS=$LIBS
5573: LIBS="-ldnet $LIBS"
5574: cat >conftest.$ac_ext <<_ACEOF
5575: /* confdefs.h. */
5576: _ACEOF
5577: cat confdefs.h >>conftest.$ac_ext
5578: cat >>conftest.$ac_ext <<_ACEOF
5579: /* end confdefs.h. */
5580:
5581: /* Override any GCC internal prototype to avoid an error.
5582: Use char because int might match the return type of a GCC
5583: builtin and then its argument prototype would still apply. */
5584: #ifdef __cplusplus
5585: extern "C"
5586: #endif
5587: char dnet_ntoa ();
5588: int
5589: main ()
5590: {
5591: return dnet_ntoa ();
5592: ;
5593: return 0;
5594: }
5595: _ACEOF
5596: rm -f conftest.$ac_objext conftest$ac_exeext
5597: if { (ac_try="$ac_link"
5598: case "(($ac_try" in
5599: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5600: *) ac_try_echo=$ac_try;;
5601: esac
1.1.1.10! root 5602: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 5603: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 5604: (eval "$ac_link") 2>conftest.er1
5605: ac_status=$?
5606: grep -v '^ *+' conftest.er1 >conftest.err
5607: rm -f conftest.er1
5608: cat conftest.err >&5
1.1.1.10! root 5609: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 5610: (exit $ac_status); } && {
5611: test -z "$ac_c_werror_flag" ||
5612: test ! -s conftest.err
1.1.1.10! root 5613: } && test -s conftest$ac_exeext && {
! 5614: test "$cross_compiling" = yes ||
! 5615: $as_test_x conftest$ac_exeext
! 5616: }; then
1.1.1.6 root 5617: ac_cv_lib_dnet_dnet_ntoa=yes
5618: else
1.1.1.10! root 5619: $as_echo "$as_me: failed program was:" >&5
1.1.1.6 root 5620: sed 's/^/| /' conftest.$ac_ext >&5
5621:
5622: ac_cv_lib_dnet_dnet_ntoa=no
5623: fi
5624:
1.1.1.10! root 5625: rm -rf conftest.dSYM
1.1.1.9 root 5626: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 5627: conftest$ac_exeext conftest.$ac_ext
5628: LIBS=$ac_check_lib_save_LIBS
5629: fi
1.1.1.10! root 5630: { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
! 5631: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
! 5632: if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
1.1.1.6 root 5633: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5634: fi
5635:
5636: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1.1.1.10! root 5637: { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
! 5638: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
1.1.1.6 root 5639: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
1.1.1.10! root 5640: $as_echo_n "(cached) " >&6
1.1.1.6 root 5641: else
5642: ac_check_lib_save_LIBS=$LIBS
5643: LIBS="-ldnet_stub $LIBS"
5644: cat >conftest.$ac_ext <<_ACEOF
5645: /* confdefs.h. */
5646: _ACEOF
5647: cat confdefs.h >>conftest.$ac_ext
5648: cat >>conftest.$ac_ext <<_ACEOF
5649: /* end confdefs.h. */
5650:
5651: /* Override any GCC internal prototype to avoid an error.
5652: Use char because int might match the return type of a GCC
5653: builtin and then its argument prototype would still apply. */
5654: #ifdef __cplusplus
5655: extern "C"
5656: #endif
5657: char dnet_ntoa ();
5658: int
5659: main ()
5660: {
5661: return dnet_ntoa ();
5662: ;
5663: return 0;
5664: }
5665: _ACEOF
5666: rm -f conftest.$ac_objext conftest$ac_exeext
5667: if { (ac_try="$ac_link"
5668: case "(($ac_try" in
5669: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5670: *) ac_try_echo=$ac_try;;
5671: esac
1.1.1.10! root 5672: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 5673: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 5674: (eval "$ac_link") 2>conftest.er1
5675: ac_status=$?
5676: grep -v '^ *+' conftest.er1 >conftest.err
5677: rm -f conftest.er1
5678: cat conftest.err >&5
1.1.1.10! root 5679: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 5680: (exit $ac_status); } && {
5681: test -z "$ac_c_werror_flag" ||
5682: test ! -s conftest.err
1.1.1.10! root 5683: } && test -s conftest$ac_exeext && {
! 5684: test "$cross_compiling" = yes ||
! 5685: $as_test_x conftest$ac_exeext
! 5686: }; then
1.1.1.6 root 5687: ac_cv_lib_dnet_stub_dnet_ntoa=yes
5688: else
1.1.1.10! root 5689: $as_echo "$as_me: failed program was:" >&5
1.1.1.6 root 5690: sed 's/^/| /' conftest.$ac_ext >&5
5691:
5692: ac_cv_lib_dnet_stub_dnet_ntoa=no
5693: fi
5694:
1.1.1.10! root 5695: rm -rf conftest.dSYM
1.1.1.9 root 5696: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 5697: conftest$ac_exeext conftest.$ac_ext
5698: LIBS=$ac_check_lib_save_LIBS
5699: fi
1.1.1.10! root 5700: { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
! 5701: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
! 5702: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
1.1.1.6 root 5703: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5704: fi
5705:
5706: fi
5707: fi
5708:
1.1.1.10! root 5709: rm -rf conftest.dSYM
1.1.1.9 root 5710: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 5711: conftest$ac_exeext conftest.$ac_ext
5712: LIBS="$ac_xsave_LIBS"
5713:
5714: # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
5715: # to get the SysV transport functions.
5716: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5717: # needs -lnsl.
5718: # The nsl library prevents programs from opening the X display
5719: # on Irix 5.2, according to T.E. Dickey.
5720: # The functions gethostbyname, getservbyname, and inet_addr are
5721: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
1.1.1.10! root 5722: { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
! 5723: $as_echo_n "checking for gethostbyname... " >&6; }
1.1.1.6 root 5724: if test "${ac_cv_func_gethostbyname+set}" = set; then
1.1.1.10! root 5725: $as_echo_n "(cached) " >&6
1.1.1.6 root 5726: else
5727: cat >conftest.$ac_ext <<_ACEOF
5728: /* confdefs.h. */
5729: _ACEOF
5730: cat confdefs.h >>conftest.$ac_ext
5731: cat >>conftest.$ac_ext <<_ACEOF
5732: /* end confdefs.h. */
5733: /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5734: For example, HP-UX 11i <limits.h> declares gettimeofday. */
5735: #define gethostbyname innocuous_gethostbyname
5736:
5737: /* System header to define __stub macros and hopefully few prototypes,
5738: which can conflict with char gethostbyname (); below.
5739: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5740: <limits.h> exists even on freestanding compilers. */
5741:
5742: #ifdef __STDC__
5743: # include <limits.h>
5744: #else
5745: # include <assert.h>
5746: #endif
5747:
5748: #undef gethostbyname
5749:
5750: /* Override any GCC internal prototype to avoid an error.
5751: Use char because int might match the return type of a GCC
5752: builtin and then its argument prototype would still apply. */
5753: #ifdef __cplusplus
5754: extern "C"
5755: #endif
5756: char gethostbyname ();
5757: /* The GNU C library defines this for functions which it implements
5758: to always fail with ENOSYS. Some functions are actually named
5759: something starting with __ and the normal name is an alias. */
5760: #if defined __stub_gethostbyname || defined __stub___gethostbyname
5761: choke me
5762: #endif
5763:
5764: int
5765: main ()
5766: {
5767: return gethostbyname ();
5768: ;
5769: return 0;
5770: }
5771: _ACEOF
5772: rm -f conftest.$ac_objext conftest$ac_exeext
5773: if { (ac_try="$ac_link"
5774: case "(($ac_try" in
5775: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776: *) ac_try_echo=$ac_try;;
5777: esac
1.1.1.10! root 5778: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 5779: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 5780: (eval "$ac_link") 2>conftest.er1
5781: ac_status=$?
5782: grep -v '^ *+' conftest.er1 >conftest.err
5783: rm -f conftest.er1
5784: cat conftest.err >&5
1.1.1.10! root 5785: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 5786: (exit $ac_status); } && {
5787: test -z "$ac_c_werror_flag" ||
5788: test ! -s conftest.err
1.1.1.10! root 5789: } && test -s conftest$ac_exeext && {
! 5790: test "$cross_compiling" = yes ||
! 5791: $as_test_x conftest$ac_exeext
! 5792: }; then
1.1.1.6 root 5793: ac_cv_func_gethostbyname=yes
5794: else
1.1.1.10! root 5795: $as_echo "$as_me: failed program was:" >&5
1.1.1.6 root 5796: sed 's/^/| /' conftest.$ac_ext >&5
5797:
5798: ac_cv_func_gethostbyname=no
5799: fi
5800:
1.1.1.10! root 5801: rm -rf conftest.dSYM
1.1.1.9 root 5802: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 5803: conftest$ac_exeext conftest.$ac_ext
5804: fi
1.1.1.10! root 5805: { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
! 5806: $as_echo "$ac_cv_func_gethostbyname" >&6; }
1.1.1.6 root 5807:
5808: if test $ac_cv_func_gethostbyname = no; then
1.1.1.10! root 5809: { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
! 5810: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
1.1.1.6 root 5811: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
1.1.1.10! root 5812: $as_echo_n "(cached) " >&6
1.1.1.6 root 5813: else
5814: ac_check_lib_save_LIBS=$LIBS
5815: LIBS="-lnsl $LIBS"
5816: cat >conftest.$ac_ext <<_ACEOF
5817: /* confdefs.h. */
5818: _ACEOF
5819: cat confdefs.h >>conftest.$ac_ext
5820: cat >>conftest.$ac_ext <<_ACEOF
5821: /* end confdefs.h. */
5822:
5823: /* Override any GCC internal prototype to avoid an error.
5824: Use char because int might match the return type of a GCC
5825: builtin and then its argument prototype would still apply. */
5826: #ifdef __cplusplus
5827: extern "C"
5828: #endif
5829: char gethostbyname ();
5830: int
5831: main ()
5832: {
5833: return gethostbyname ();
5834: ;
5835: return 0;
5836: }
5837: _ACEOF
5838: rm -f conftest.$ac_objext conftest$ac_exeext
5839: if { (ac_try="$ac_link"
5840: case "(($ac_try" in
5841: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5842: *) ac_try_echo=$ac_try;;
5843: esac
1.1.1.10! root 5844: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 5845: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 5846: (eval "$ac_link") 2>conftest.er1
5847: ac_status=$?
5848: grep -v '^ *+' conftest.er1 >conftest.err
5849: rm -f conftest.er1
5850: cat conftest.err >&5
1.1.1.10! root 5851: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 5852: (exit $ac_status); } && {
5853: test -z "$ac_c_werror_flag" ||
5854: test ! -s conftest.err
1.1.1.10! root 5855: } && test -s conftest$ac_exeext && {
! 5856: test "$cross_compiling" = yes ||
! 5857: $as_test_x conftest$ac_exeext
! 5858: }; then
1.1.1.6 root 5859: ac_cv_lib_nsl_gethostbyname=yes
5860: else
1.1.1.10! root 5861: $as_echo "$as_me: failed program was:" >&5
1.1.1.6 root 5862: sed 's/^/| /' conftest.$ac_ext >&5
5863:
5864: ac_cv_lib_nsl_gethostbyname=no
5865: fi
5866:
1.1.1.10! root 5867: rm -rf conftest.dSYM
1.1.1.9 root 5868: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 5869: conftest$ac_exeext conftest.$ac_ext
5870: LIBS=$ac_check_lib_save_LIBS
5871: fi
1.1.1.10! root 5872: { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
! 5873: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
! 5874: if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
1.1.1.6 root 5875: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5876: fi
5877:
5878: if test $ac_cv_lib_nsl_gethostbyname = no; then
1.1.1.10! root 5879: { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
! 5880: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
1.1.1.6 root 5881: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
1.1.1.10! root 5882: $as_echo_n "(cached) " >&6
1.1.1.6 root 5883: else
5884: ac_check_lib_save_LIBS=$LIBS
5885: LIBS="-lbsd $LIBS"
5886: cat >conftest.$ac_ext <<_ACEOF
5887: /* confdefs.h. */
5888: _ACEOF
5889: cat confdefs.h >>conftest.$ac_ext
5890: cat >>conftest.$ac_ext <<_ACEOF
5891: /* end confdefs.h. */
5892:
5893: /* Override any GCC internal prototype to avoid an error.
5894: Use char because int might match the return type of a GCC
5895: builtin and then its argument prototype would still apply. */
5896: #ifdef __cplusplus
5897: extern "C"
5898: #endif
5899: char gethostbyname ();
5900: int
5901: main ()
5902: {
5903: return gethostbyname ();
5904: ;
5905: return 0;
5906: }
5907: _ACEOF
5908: rm -f conftest.$ac_objext conftest$ac_exeext
5909: if { (ac_try="$ac_link"
5910: case "(($ac_try" in
5911: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912: *) ac_try_echo=$ac_try;;
5913: esac
1.1.1.10! root 5914: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 5915: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 5916: (eval "$ac_link") 2>conftest.er1
5917: ac_status=$?
5918: grep -v '^ *+' conftest.er1 >conftest.err
5919: rm -f conftest.er1
5920: cat conftest.err >&5
1.1.1.10! root 5921: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 5922: (exit $ac_status); } && {
5923: test -z "$ac_c_werror_flag" ||
5924: test ! -s conftest.err
1.1.1.10! root 5925: } && test -s conftest$ac_exeext && {
! 5926: test "$cross_compiling" = yes ||
! 5927: $as_test_x conftest$ac_exeext
! 5928: }; then
1.1.1.6 root 5929: ac_cv_lib_bsd_gethostbyname=yes
5930: else
1.1.1.10! root 5931: $as_echo "$as_me: failed program was:" >&5
1.1.1.6 root 5932: sed 's/^/| /' conftest.$ac_ext >&5
5933:
5934: ac_cv_lib_bsd_gethostbyname=no
5935: fi
5936:
1.1.1.10! root 5937: rm -rf conftest.dSYM
1.1.1.9 root 5938: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 5939: conftest$ac_exeext conftest.$ac_ext
5940: LIBS=$ac_check_lib_save_LIBS
5941: fi
1.1.1.10! root 5942: { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
! 5943: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
! 5944: if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
1.1.1.6 root 5945: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5946: fi
5947:
5948: fi
5949: fi
5950:
5951: # [email protected] says without -lsocket,
5952: # socket/setsockopt and other routines are undefined under SCO ODT
5953: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5954: # on later versions), says Simon Leinen: it contains gethostby*
5955: # variants that don't use the name server (or something). -lsocket
5956: # must be given before -lnsl if both are needed. We assume that
5957: # if connect needs -lnsl, so does gethostbyname.
1.1.1.10! root 5958: { $as_echo "$as_me:$LINENO: checking for connect" >&5
! 5959: $as_echo_n "checking for connect... " >&6; }
1.1.1.6 root 5960: if test "${ac_cv_func_connect+set}" = set; then
1.1.1.10! root 5961: $as_echo_n "(cached) " >&6
1.1.1.6 root 5962: else
5963: cat >conftest.$ac_ext <<_ACEOF
5964: /* confdefs.h. */
5965: _ACEOF
5966: cat confdefs.h >>conftest.$ac_ext
5967: cat >>conftest.$ac_ext <<_ACEOF
5968: /* end confdefs.h. */
5969: /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5970: For example, HP-UX 11i <limits.h> declares gettimeofday. */
5971: #define connect innocuous_connect
5972:
5973: /* System header to define __stub macros and hopefully few prototypes,
5974: which can conflict with char connect (); below.
5975: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5976: <limits.h> exists even on freestanding compilers. */
5977:
5978: #ifdef __STDC__
5979: # include <limits.h>
5980: #else
5981: # include <assert.h>
5982: #endif
5983:
5984: #undef connect
5985:
5986: /* Override any GCC internal prototype to avoid an error.
5987: Use char because int might match the return type of a GCC
5988: builtin and then its argument prototype would still apply. */
5989: #ifdef __cplusplus
5990: extern "C"
5991: #endif
5992: char connect ();
5993: /* The GNU C library defines this for functions which it implements
5994: to always fail with ENOSYS. Some functions are actually named
5995: something starting with __ and the normal name is an alias. */
5996: #if defined __stub_connect || defined __stub___connect
5997: choke me
5998: #endif
5999:
6000: int
6001: main ()
6002: {
6003: return connect ();
6004: ;
6005: return 0;
6006: }
6007: _ACEOF
6008: rm -f conftest.$ac_objext conftest$ac_exeext
6009: if { (ac_try="$ac_link"
6010: case "(($ac_try" in
6011: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012: *) ac_try_echo=$ac_try;;
6013: esac
1.1.1.10! root 6014: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 6015: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 6016: (eval "$ac_link") 2>conftest.er1
6017: ac_status=$?
6018: grep -v '^ *+' conftest.er1 >conftest.err
6019: rm -f conftest.er1
6020: cat conftest.err >&5
1.1.1.10! root 6021: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 6022: (exit $ac_status); } && {
6023: test -z "$ac_c_werror_flag" ||
6024: test ! -s conftest.err
1.1.1.10! root 6025: } && test -s conftest$ac_exeext && {
! 6026: test "$cross_compiling" = yes ||
! 6027: $as_test_x conftest$ac_exeext
! 6028: }; then
1.1.1.6 root 6029: ac_cv_func_connect=yes
6030: else
1.1.1.10! root 6031: $as_echo "$as_me: failed program was:" >&5
1.1.1.6 root 6032: sed 's/^/| /' conftest.$ac_ext >&5
6033:
6034: ac_cv_func_connect=no
6035: fi
6036:
1.1.1.10! root 6037: rm -rf conftest.dSYM
1.1.1.9 root 6038: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 6039: conftest$ac_exeext conftest.$ac_ext
6040: fi
1.1.1.10! root 6041: { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
! 6042: $as_echo "$ac_cv_func_connect" >&6; }
1.1.1.6 root 6043:
6044: if test $ac_cv_func_connect = no; then
1.1.1.10! root 6045: { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
! 6046: $as_echo_n "checking for connect in -lsocket... " >&6; }
1.1.1.6 root 6047: if test "${ac_cv_lib_socket_connect+set}" = set; then
1.1.1.10! root 6048: $as_echo_n "(cached) " >&6
1.1.1.6 root 6049: else
6050: ac_check_lib_save_LIBS=$LIBS
6051: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6052: cat >conftest.$ac_ext <<_ACEOF
6053: /* confdefs.h. */
6054: _ACEOF
6055: cat confdefs.h >>conftest.$ac_ext
6056: cat >>conftest.$ac_ext <<_ACEOF
6057: /* end confdefs.h. */
6058:
6059: /* Override any GCC internal prototype to avoid an error.
6060: Use char because int might match the return type of a GCC
6061: builtin and then its argument prototype would still apply. */
6062: #ifdef __cplusplus
6063: extern "C"
6064: #endif
6065: char connect ();
6066: int
6067: main ()
6068: {
6069: return connect ();
6070: ;
6071: return 0;
6072: }
6073: _ACEOF
6074: rm -f conftest.$ac_objext conftest$ac_exeext
6075: if { (ac_try="$ac_link"
6076: case "(($ac_try" in
6077: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6078: *) ac_try_echo=$ac_try;;
6079: esac
1.1.1.10! root 6080: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 6081: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 6082: (eval "$ac_link") 2>conftest.er1
6083: ac_status=$?
6084: grep -v '^ *+' conftest.er1 >conftest.err
6085: rm -f conftest.er1
6086: cat conftest.err >&5
1.1.1.10! root 6087: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 6088: (exit $ac_status); } && {
6089: test -z "$ac_c_werror_flag" ||
6090: test ! -s conftest.err
1.1.1.10! root 6091: } && test -s conftest$ac_exeext && {
! 6092: test "$cross_compiling" = yes ||
! 6093: $as_test_x conftest$ac_exeext
! 6094: }; then
1.1.1.6 root 6095: ac_cv_lib_socket_connect=yes
6096: else
1.1.1.10! root 6097: $as_echo "$as_me: failed program was:" >&5
1.1.1.6 root 6098: sed 's/^/| /' conftest.$ac_ext >&5
6099:
6100: ac_cv_lib_socket_connect=no
6101: fi
6102:
1.1.1.10! root 6103: rm -rf conftest.dSYM
1.1.1.9 root 6104: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 6105: conftest$ac_exeext conftest.$ac_ext
6106: LIBS=$ac_check_lib_save_LIBS
6107: fi
1.1.1.10! root 6108: { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
! 6109: $as_echo "$ac_cv_lib_socket_connect" >&6; }
! 6110: if test "x$ac_cv_lib_socket_connect" = x""yes; then
1.1.1.6 root 6111: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6112: fi
6113:
6114: fi
6115:
6116: # Guillermo Gomez says -lposix is necessary on A/UX.
1.1.1.10! root 6117: { $as_echo "$as_me:$LINENO: checking for remove" >&5
! 6118: $as_echo_n "checking for remove... " >&6; }
1.1.1.6 root 6119: if test "${ac_cv_func_remove+set}" = set; then
1.1.1.10! root 6120: $as_echo_n "(cached) " >&6
1.1.1.6 root 6121: else
6122: cat >conftest.$ac_ext <<_ACEOF
6123: /* confdefs.h. */
6124: _ACEOF
6125: cat confdefs.h >>conftest.$ac_ext
6126: cat >>conftest.$ac_ext <<_ACEOF
6127: /* end confdefs.h. */
6128: /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6129: For example, HP-UX 11i <limits.h> declares gettimeofday. */
6130: #define remove innocuous_remove
6131:
6132: /* System header to define __stub macros and hopefully few prototypes,
6133: which can conflict with char remove (); below.
6134: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6135: <limits.h> exists even on freestanding compilers. */
6136:
6137: #ifdef __STDC__
6138: # include <limits.h>
6139: #else
6140: # include <assert.h>
6141: #endif
6142:
6143: #undef remove
6144:
6145: /* Override any GCC internal prototype to avoid an error.
6146: Use char because int might match the return type of a GCC
6147: builtin and then its argument prototype would still apply. */
6148: #ifdef __cplusplus
6149: extern "C"
6150: #endif
6151: char remove ();
6152: /* The GNU C library defines this for functions which it implements
6153: to always fail with ENOSYS. Some functions are actually named
6154: something starting with __ and the normal name is an alias. */
6155: #if defined __stub_remove || defined __stub___remove
6156: choke me
6157: #endif
6158:
6159: int
6160: main ()
6161: {
6162: return remove ();
6163: ;
6164: return 0;
6165: }
6166: _ACEOF
6167: rm -f conftest.$ac_objext conftest$ac_exeext
6168: if { (ac_try="$ac_link"
6169: case "(($ac_try" in
6170: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171: *) ac_try_echo=$ac_try;;
6172: esac
1.1.1.10! root 6173: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 6174: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 6175: (eval "$ac_link") 2>conftest.er1
6176: ac_status=$?
6177: grep -v '^ *+' conftest.er1 >conftest.err
6178: rm -f conftest.er1
6179: cat conftest.err >&5
1.1.1.10! root 6180: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 6181: (exit $ac_status); } && {
6182: test -z "$ac_c_werror_flag" ||
6183: test ! -s conftest.err
1.1.1.10! root 6184: } && test -s conftest$ac_exeext && {
! 6185: test "$cross_compiling" = yes ||
! 6186: $as_test_x conftest$ac_exeext
! 6187: }; then
1.1.1.6 root 6188: ac_cv_func_remove=yes
6189: else
1.1.1.10! root 6190: $as_echo "$as_me: failed program was:" >&5
1.1.1.6 root 6191: sed 's/^/| /' conftest.$ac_ext >&5
6192:
6193: ac_cv_func_remove=no
6194: fi
6195:
1.1.1.10! root 6196: rm -rf conftest.dSYM
1.1.1.9 root 6197: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 6198: conftest$ac_exeext conftest.$ac_ext
6199: fi
1.1.1.10! root 6200: { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
! 6201: $as_echo "$ac_cv_func_remove" >&6; }
1.1.1.6 root 6202:
6203: if test $ac_cv_func_remove = no; then
1.1.1.10! root 6204: { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
! 6205: $as_echo_n "checking for remove in -lposix... " >&6; }
1.1.1.6 root 6206: if test "${ac_cv_lib_posix_remove+set}" = set; then
1.1.1.10! root 6207: $as_echo_n "(cached) " >&6
1.1.1.6 root 6208: else
6209: ac_check_lib_save_LIBS=$LIBS
6210: LIBS="-lposix $LIBS"
6211: cat >conftest.$ac_ext <<_ACEOF
6212: /* confdefs.h. */
6213: _ACEOF
6214: cat confdefs.h >>conftest.$ac_ext
6215: cat >>conftest.$ac_ext <<_ACEOF
6216: /* end confdefs.h. */
6217:
6218: /* Override any GCC internal prototype to avoid an error.
6219: Use char because int might match the return type of a GCC
6220: builtin and then its argument prototype would still apply. */
6221: #ifdef __cplusplus
6222: extern "C"
6223: #endif
6224: char remove ();
6225: int
6226: main ()
6227: {
6228: return remove ();
6229: ;
6230: return 0;
6231: }
6232: _ACEOF
6233: rm -f conftest.$ac_objext conftest$ac_exeext
6234: if { (ac_try="$ac_link"
6235: case "(($ac_try" in
6236: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237: *) ac_try_echo=$ac_try;;
6238: esac
1.1.1.10! root 6239: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 6240: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 6241: (eval "$ac_link") 2>conftest.er1
6242: ac_status=$?
6243: grep -v '^ *+' conftest.er1 >conftest.err
6244: rm -f conftest.er1
6245: cat conftest.err >&5
1.1.1.10! root 6246: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 6247: (exit $ac_status); } && {
6248: test -z "$ac_c_werror_flag" ||
6249: test ! -s conftest.err
1.1.1.10! root 6250: } && test -s conftest$ac_exeext && {
! 6251: test "$cross_compiling" = yes ||
! 6252: $as_test_x conftest$ac_exeext
! 6253: }; then
1.1.1.6 root 6254: ac_cv_lib_posix_remove=yes
6255: else
1.1.1.10! root 6256: $as_echo "$as_me: failed program was:" >&5
1.1.1.6 root 6257: sed 's/^/| /' conftest.$ac_ext >&5
6258:
6259: ac_cv_lib_posix_remove=no
6260: fi
6261:
1.1.1.10! root 6262: rm -rf conftest.dSYM
1.1.1.9 root 6263: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 6264: conftest$ac_exeext conftest.$ac_ext
6265: LIBS=$ac_check_lib_save_LIBS
6266: fi
1.1.1.10! root 6267: { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
! 6268: $as_echo "$ac_cv_lib_posix_remove" >&6; }
! 6269: if test "x$ac_cv_lib_posix_remove" = x""yes; then
1.1.1.6 root 6270: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6271: fi
6272:
6273: fi
6274:
6275: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1.1.1.10! root 6276: { $as_echo "$as_me:$LINENO: checking for shmat" >&5
! 6277: $as_echo_n "checking for shmat... " >&6; }
1.1.1.6 root 6278: if test "${ac_cv_func_shmat+set}" = set; then
1.1.1.10! root 6279: $as_echo_n "(cached) " >&6
1.1.1.6 root 6280: else
6281: cat >conftest.$ac_ext <<_ACEOF
6282: /* confdefs.h. */
6283: _ACEOF
6284: cat confdefs.h >>conftest.$ac_ext
6285: cat >>conftest.$ac_ext <<_ACEOF
6286: /* end confdefs.h. */
6287: /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6288: For example, HP-UX 11i <limits.h> declares gettimeofday. */
6289: #define shmat innocuous_shmat
6290:
6291: /* System header to define __stub macros and hopefully few prototypes,
6292: which can conflict with char shmat (); below.
6293: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6294: <limits.h> exists even on freestanding compilers. */
6295:
6296: #ifdef __STDC__
6297: # include <limits.h>
6298: #else
6299: # include <assert.h>
6300: #endif
6301:
6302: #undef shmat
6303:
6304: /* Override any GCC internal prototype to avoid an error.
6305: Use char because int might match the return type of a GCC
6306: builtin and then its argument prototype would still apply. */
6307: #ifdef __cplusplus
6308: extern "C"
6309: #endif
6310: char shmat ();
6311: /* The GNU C library defines this for functions which it implements
6312: to always fail with ENOSYS. Some functions are actually named
6313: something starting with __ and the normal name is an alias. */
6314: #if defined __stub_shmat || defined __stub___shmat
6315: choke me
6316: #endif
6317:
6318: int
6319: main ()
6320: {
6321: return shmat ();
6322: ;
6323: return 0;
6324: }
6325: _ACEOF
6326: rm -f conftest.$ac_objext conftest$ac_exeext
6327: if { (ac_try="$ac_link"
6328: case "(($ac_try" in
6329: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6330: *) ac_try_echo=$ac_try;;
6331: esac
1.1.1.10! root 6332: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 6333: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 6334: (eval "$ac_link") 2>conftest.er1
6335: ac_status=$?
6336: grep -v '^ *+' conftest.er1 >conftest.err
6337: rm -f conftest.er1
6338: cat conftest.err >&5
1.1.1.10! root 6339: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 6340: (exit $ac_status); } && {
6341: test -z "$ac_c_werror_flag" ||
6342: test ! -s conftest.err
1.1.1.10! root 6343: } && test -s conftest$ac_exeext && {
! 6344: test "$cross_compiling" = yes ||
! 6345: $as_test_x conftest$ac_exeext
! 6346: }; then
1.1.1.6 root 6347: ac_cv_func_shmat=yes
6348: else
1.1.1.10! root 6349: $as_echo "$as_me: failed program was:" >&5
1.1.1.6 root 6350: sed 's/^/| /' conftest.$ac_ext >&5
6351:
6352: ac_cv_func_shmat=no
6353: fi
6354:
1.1.1.10! root 6355: rm -rf conftest.dSYM
1.1.1.9 root 6356: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 6357: conftest$ac_exeext conftest.$ac_ext
6358: fi
1.1.1.10! root 6359: { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
! 6360: $as_echo "$ac_cv_func_shmat" >&6; }
1.1.1.6 root 6361:
6362: if test $ac_cv_func_shmat = no; then
1.1.1.10! root 6363: { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
! 6364: $as_echo_n "checking for shmat in -lipc... " >&6; }
1.1.1.6 root 6365: if test "${ac_cv_lib_ipc_shmat+set}" = set; then
1.1.1.10! root 6366: $as_echo_n "(cached) " >&6
1.1.1.6 root 6367: else
6368: ac_check_lib_save_LIBS=$LIBS
6369: LIBS="-lipc $LIBS"
6370: cat >conftest.$ac_ext <<_ACEOF
6371: /* confdefs.h. */
6372: _ACEOF
6373: cat confdefs.h >>conftest.$ac_ext
6374: cat >>conftest.$ac_ext <<_ACEOF
6375: /* end confdefs.h. */
6376:
6377: /* Override any GCC internal prototype to avoid an error.
6378: Use char because int might match the return type of a GCC
6379: builtin and then its argument prototype would still apply. */
6380: #ifdef __cplusplus
6381: extern "C"
6382: #endif
6383: char shmat ();
6384: int
6385: main ()
6386: {
6387: return shmat ();
6388: ;
6389: return 0;
6390: }
6391: _ACEOF
6392: rm -f conftest.$ac_objext conftest$ac_exeext
6393: if { (ac_try="$ac_link"
6394: case "(($ac_try" in
6395: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6396: *) ac_try_echo=$ac_try;;
6397: esac
1.1.1.10! root 6398: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 6399: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 6400: (eval "$ac_link") 2>conftest.er1
6401: ac_status=$?
6402: grep -v '^ *+' conftest.er1 >conftest.err
6403: rm -f conftest.er1
6404: cat conftest.err >&5
1.1.1.10! root 6405: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 6406: (exit $ac_status); } && {
6407: test -z "$ac_c_werror_flag" ||
6408: test ! -s conftest.err
1.1.1.10! root 6409: } && test -s conftest$ac_exeext && {
! 6410: test "$cross_compiling" = yes ||
! 6411: $as_test_x conftest$ac_exeext
! 6412: }; then
1.1.1.6 root 6413: ac_cv_lib_ipc_shmat=yes
6414: else
1.1.1.10! root 6415: $as_echo "$as_me: failed program was:" >&5
1.1.1.6 root 6416: sed 's/^/| /' conftest.$ac_ext >&5
6417:
6418: ac_cv_lib_ipc_shmat=no
6419: fi
6420:
1.1.1.10! root 6421: rm -rf conftest.dSYM
1.1.1.9 root 6422: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 6423: conftest$ac_exeext conftest.$ac_ext
6424: LIBS=$ac_check_lib_save_LIBS
6425: fi
1.1.1.10! root 6426: { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
! 6427: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
! 6428: if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
1.1.1.6 root 6429: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6430: fi
6431:
6432: fi
6433: fi
6434:
6435: # Check for libraries that X11R6 Xt/Xaw programs need.
6436: ac_save_LDFLAGS=$LDFLAGS
6437: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6438: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6439: # check for ICE first), but we must link in the order -lSM -lICE or
6440: # we get undefined symbols. So assume we have SM if we have ICE.
6441: # These have to be linked with before -lX11, unlike the other
6442: # libraries we check for below, so use a different variable.
6443: # John Interrante, Karl Berry
1.1.1.10! root 6444: { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
! 6445: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
1.1.1.6 root 6446: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
1.1.1.10! root 6447: $as_echo_n "(cached) " >&6
1.1.1.6 root 6448: else
6449: ac_check_lib_save_LIBS=$LIBS
6450: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6451: cat >conftest.$ac_ext <<_ACEOF
6452: /* confdefs.h. */
6453: _ACEOF
6454: cat confdefs.h >>conftest.$ac_ext
6455: cat >>conftest.$ac_ext <<_ACEOF
6456: /* end confdefs.h. */
6457:
6458: /* Override any GCC internal prototype to avoid an error.
6459: Use char because int might match the return type of a GCC
6460: builtin and then its argument prototype would still apply. */
6461: #ifdef __cplusplus
6462: extern "C"
6463: #endif
6464: char IceConnectionNumber ();
6465: int
6466: main ()
6467: {
6468: return IceConnectionNumber ();
6469: ;
6470: return 0;
6471: }
6472: _ACEOF
6473: rm -f conftest.$ac_objext conftest$ac_exeext
6474: if { (ac_try="$ac_link"
6475: case "(($ac_try" in
6476: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6477: *) ac_try_echo=$ac_try;;
6478: esac
1.1.1.10! root 6479: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 6480: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 6481: (eval "$ac_link") 2>conftest.er1
6482: ac_status=$?
6483: grep -v '^ *+' conftest.er1 >conftest.err
6484: rm -f conftest.er1
6485: cat conftest.err >&5
1.1.1.10! root 6486: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 6487: (exit $ac_status); } && {
6488: test -z "$ac_c_werror_flag" ||
6489: test ! -s conftest.err
1.1.1.10! root 6490: } && test -s conftest$ac_exeext && {
! 6491: test "$cross_compiling" = yes ||
! 6492: $as_test_x conftest$ac_exeext
! 6493: }; then
1.1.1.6 root 6494: ac_cv_lib_ICE_IceConnectionNumber=yes
6495: else
1.1.1.10! root 6496: $as_echo "$as_me: failed program was:" >&5
1.1.1.6 root 6497: sed 's/^/| /' conftest.$ac_ext >&5
6498:
6499: ac_cv_lib_ICE_IceConnectionNumber=no
6500: fi
6501:
1.1.1.10! root 6502: rm -rf conftest.dSYM
1.1.1.9 root 6503: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 6504: conftest$ac_exeext conftest.$ac_ext
6505: LIBS=$ac_check_lib_save_LIBS
6506: fi
1.1.1.10! root 6507: { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
! 6508: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
! 6509: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
1.1.1.6 root 6510: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6511: fi
6512:
6513: LDFLAGS=$ac_save_LDFLAGS
6514:
6515: fi
6516:
6517: fi
6518: if test "x$with_x" = xno; then
6519: no_x=yes
6520: fi
6521: if test "x${no_x}" = "xyes"; then
1.1.1.10! root 6522: { $as_echo "$as_me:$LINENO: No X11, disabled Hatari embedding support" >&5
! 6523: $as_echo "$as_me: No X11, disabled Hatari embedding support" >&6;}
1.1.1.6 root 6524: else
6525:
6526: cat >>confdefs.h <<\_ACEOF
6527: #define HAVE_X11 1
6528: _ACEOF
6529:
6530: fi
6531:
6532: CPPFLAGS="${CPPFLAGS} ${INCL}"
6533:
6534:
6535:
1.1.1.10! root 6536: { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
! 6537: $as_echo_n "checking for ANSI C header files... " >&6; }
1.1.1.6 root 6538: if test "${ac_cv_header_stdc+set}" = set; then
1.1.1.10! root 6539: $as_echo_n "(cached) " >&6
1.1.1.6 root 6540: else
6541: cat >conftest.$ac_ext <<_ACEOF
6542: /* confdefs.h. */
6543: _ACEOF
6544: cat confdefs.h >>conftest.$ac_ext
6545: cat >>conftest.$ac_ext <<_ACEOF
6546: /* end confdefs.h. */
6547: #include <stdlib.h>
6548: #include <stdarg.h>
6549: #include <string.h>
6550: #include <float.h>
6551:
6552: int
6553: main ()
6554: {
6555:
6556: ;
6557: return 0;
6558: }
6559: _ACEOF
6560: rm -f conftest.$ac_objext
6561: if { (ac_try="$ac_compile"
6562: case "(($ac_try" in
6563: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6564: *) ac_try_echo=$ac_try;;
6565: esac
1.1.1.10! root 6566: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 6567: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 6568: (eval "$ac_compile") 2>conftest.er1
6569: ac_status=$?
6570: grep -v '^ *+' conftest.er1 >conftest.err
6571: rm -f conftest.er1
6572: cat conftest.err >&5
1.1.1.10! root 6573: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 6574: (exit $ac_status); } && {
6575: test -z "$ac_c_werror_flag" ||
6576: test ! -s conftest.err
6577: } && test -s conftest.$ac_objext; then
1.1.1.6 root 6578: ac_cv_header_stdc=yes
6579: else
1.1.1.10! root 6580: $as_echo "$as_me: failed program was:" >&5
1.1.1.6 root 6581: sed 's/^/| /' conftest.$ac_ext >&5
6582:
6583: ac_cv_header_stdc=no
6584: fi
6585:
6586: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6587:
6588: if test $ac_cv_header_stdc = yes; then
6589: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6590: cat >conftest.$ac_ext <<_ACEOF
6591: /* confdefs.h. */
6592: _ACEOF
6593: cat confdefs.h >>conftest.$ac_ext
6594: cat >>conftest.$ac_ext <<_ACEOF
6595: /* end confdefs.h. */
6596: #include <string.h>
6597:
6598: _ACEOF
6599: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6600: $EGREP "memchr" >/dev/null 2>&1; then
6601: :
6602: else
6603: ac_cv_header_stdc=no
6604: fi
6605: rm -f conftest*
6606:
6607: fi
6608:
6609: if test $ac_cv_header_stdc = yes; then
6610: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6611: cat >conftest.$ac_ext <<_ACEOF
6612: /* confdefs.h. */
6613: _ACEOF
6614: cat confdefs.h >>conftest.$ac_ext
6615: cat >>conftest.$ac_ext <<_ACEOF
6616: /* end confdefs.h. */
6617: #include <stdlib.h>
6618:
6619: _ACEOF
6620: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6621: $EGREP "free" >/dev/null 2>&1; then
6622: :
6623: else
6624: ac_cv_header_stdc=no
6625: fi
6626: rm -f conftest*
6627:
6628: fi
6629:
6630: if test $ac_cv_header_stdc = yes; then
6631: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6632: if test "$cross_compiling" = yes; then
6633: :
6634: else
6635: cat >conftest.$ac_ext <<_ACEOF
6636: /* confdefs.h. */
6637: _ACEOF
6638: cat confdefs.h >>conftest.$ac_ext
6639: cat >>conftest.$ac_ext <<_ACEOF
1.1.1.3 root 6640: /* end confdefs.h. */
1.1.1.6 root 6641: #include <ctype.h>
6642: #include <stdlib.h>
6643: #if ((' ' & 0x0FF) == 0x020)
6644: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6645: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6646: #else
6647: # define ISLOWER(c) \
6648: (('a' <= (c) && (c) <= 'i') \
6649: || ('j' <= (c) && (c) <= 'r') \
6650: || ('s' <= (c) && (c) <= 'z'))
6651: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6652: #endif
1.1 root 6653:
1.1.1.6 root 6654: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.1 root 6655: int
6656: main ()
6657: {
1.1.1.6 root 6658: int i;
6659: for (i = 0; i < 256; i++)
6660: if (XOR (islower (i), ISLOWER (i))
6661: || toupper (i) != TOUPPER (i))
6662: return 2;
1.1 root 6663: return 0;
6664: }
6665: _ACEOF
1.1.1.6 root 6666: rm -f conftest$ac_exeext
6667: if { (ac_try="$ac_link"
6668: case "(($ac_try" in
6669: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6670: *) ac_try_echo=$ac_try;;
6671: esac
1.1.1.10! root 6672: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 6673: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 6674: (eval "$ac_link") 2>&5
1.1.1.3 root 6675: ac_status=$?
1.1.1.10! root 6676: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.6 root 6677: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6678: { (case "(($ac_try" in
6679: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6680: *) ac_try_echo=$ac_try;;
6681: esac
1.1.1.10! root 6682: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 6683: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 6684: (eval "$ac_try") 2>&5
1.1 root 6685: ac_status=$?
1.1.1.10! root 6686: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 root 6687: (exit $ac_status); }; }; then
1.1.1.6 root 6688: :
1.1 root 6689: else
1.1.1.10! root 6690: $as_echo "$as_me: program exited with status $ac_status" >&5
! 6691: $as_echo "$as_me: failed program was:" >&5
1.1.1.3 root 6692: sed 's/^/| /' conftest.$ac_ext >&5
6693:
1.1.1.6 root 6694: ( exit $ac_status )
6695: ac_cv_header_stdc=no
6696: fi
1.1.1.10! root 6697: rm -rf conftest.dSYM
1.1.1.6 root 6698: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6699: fi
6700:
6701:
1.1 root 6702: fi
6703: fi
1.1.1.10! root 6704: { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
! 6705: $as_echo "$ac_cv_header_stdc" >&6; }
1.1.1.6 root 6706: if test $ac_cv_header_stdc = yes; then
6707:
6708: cat >>confdefs.h <<\_ACEOF
6709: #define STDC_HEADERS 1
1.1 root 6710: _ACEOF
6711:
6712: fi
6713:
1.1.1.6 root 6714:
6715:
6716:
6717:
6718:
6719: ac_header_dirent=no
6720: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
1.1.1.10! root 6721: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
! 6722: { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
! 6723: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
1.1.1.6 root 6724: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.10! root 6725: $as_echo_n "(cached) " >&6
1.1 root 6726: else
1.1.1.6 root 6727: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 6728: /* confdefs.h. */
6729: _ACEOF
6730: cat confdefs.h >>conftest.$ac_ext
6731: cat >>conftest.$ac_ext <<_ACEOF
6732: /* end confdefs.h. */
1.1.1.6 root 6733: #include <sys/types.h>
6734: #include <$ac_hdr>
1.1 root 6735:
6736: int
6737: main ()
6738: {
1.1.1.6 root 6739: if ((DIR *) 0)
6740: return 0;
1.1 root 6741: ;
6742: return 0;
6743: }
6744: _ACEOF
1.1.1.6 root 6745: rm -f conftest.$ac_objext
6746: if { (ac_try="$ac_compile"
6747: case "(($ac_try" in
6748: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6749: *) ac_try_echo=$ac_try;;
6750: esac
1.1.1.10! root 6751: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 6752: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 6753: (eval "$ac_compile") 2>conftest.er1
1.1 root 6754: ac_status=$?
1.1.1.3 root 6755: grep -v '^ *+' conftest.er1 >conftest.err
6756: rm -f conftest.er1
6757: cat conftest.err >&5
1.1.1.10! root 6758: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 6759: (exit $ac_status); } && {
6760: test -z "$ac_c_werror_flag" ||
6761: test ! -s conftest.err
6762: } && test -s conftest.$ac_objext; then
1.1.1.6 root 6763: eval "$as_ac_Header=yes"
1.1 root 6764: else
1.1.1.10! root 6765: $as_echo "$as_me: failed program was:" >&5
1.1.1.3 root 6766: sed 's/^/| /' conftest.$ac_ext >&5
6767:
1.1.1.6 root 6768: eval "$as_ac_Header=no"
1.1 root 6769: fi
1.1.1.6 root 6770:
6771: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6772: fi
1.1.1.10! root 6773: ac_res=`eval 'as_val=${'$as_ac_Header'}
! 6774: $as_echo "$as_val"'`
! 6775: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
! 6776: $as_echo "$ac_res" >&6; }
! 6777: as_val=`eval 'as_val=${'$as_ac_Header'}
! 6778: $as_echo "$as_val"'`
! 6779: if test "x$as_val" = x""yes; then
1.1.1.6 root 6780: cat >>confdefs.h <<_ACEOF
1.1.1.10! root 6781: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
1.1.1.6 root 6782: _ACEOF
6783:
6784: ac_header_dirent=$ac_hdr; break
6785: fi
6786:
6787: done
6788: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6789: if test $ac_header_dirent = dirent.h; then
1.1.1.10! root 6790: { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
! 6791: $as_echo_n "checking for library containing opendir... " >&6; }
1.1.1.6 root 6792: if test "${ac_cv_search_opendir+set}" = set; then
1.1.1.10! root 6793: $as_echo_n "(cached) " >&6
1.1.1.6 root 6794: else
6795: ac_func_search_save_LIBS=$LIBS
6796: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 6797: /* confdefs.h. */
6798: _ACEOF
6799: cat confdefs.h >>conftest.$ac_ext
6800: cat >>conftest.$ac_ext <<_ACEOF
6801: /* end confdefs.h. */
1.1 root 6802:
1.1.1.6 root 6803: /* Override any GCC internal prototype to avoid an error.
6804: Use char because int might match the return type of a GCC
6805: builtin and then its argument prototype would still apply. */
1.1 root 6806: #ifdef __cplusplus
6807: extern "C"
6808: #endif
6809: char opendir ();
6810: int
6811: main ()
6812: {
1.1.1.6 root 6813: return opendir ();
1.1 root 6814: ;
6815: return 0;
6816: }
6817: _ACEOF
1.1.1.6 root 6818: for ac_lib in '' dir; do
6819: if test -z "$ac_lib"; then
6820: ac_res="none required"
6821: else
6822: ac_res=-l$ac_lib
6823: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6824: fi
6825: rm -f conftest.$ac_objext conftest$ac_exeext
6826: if { (ac_try="$ac_link"
6827: case "(($ac_try" in
6828: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6829: *) ac_try_echo=$ac_try;;
6830: esac
1.1.1.10! root 6831: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 6832: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 6833: (eval "$ac_link") 2>conftest.er1
1.1 root 6834: ac_status=$?
1.1.1.3 root 6835: grep -v '^ *+' conftest.er1 >conftest.err
6836: rm -f conftest.er1
6837: cat conftest.err >&5
1.1.1.10! root 6838: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 6839: (exit $ac_status); } && {
6840: test -z "$ac_c_werror_flag" ||
6841: test ! -s conftest.err
1.1.1.10! root 6842: } && test -s conftest$ac_exeext && {
! 6843: test "$cross_compiling" = yes ||
! 6844: $as_test_x conftest$ac_exeext
! 6845: }; then
1.1.1.6 root 6846: ac_cv_search_opendir=$ac_res
1.1 root 6847: else
1.1.1.10! root 6848: $as_echo "$as_me: failed program was:" >&5
1.1.1.3 root 6849: sed 's/^/| /' conftest.$ac_ext >&5
6850:
1.1.1.6 root 6851:
1.1 root 6852: fi
1.1.1.6 root 6853:
1.1.1.10! root 6854: rm -rf conftest.dSYM
1.1.1.9 root 6855: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 6856: conftest$ac_exeext
6857: if test "${ac_cv_search_opendir+set}" = set; then
6858: break
6859: fi
6860: done
6861: if test "${ac_cv_search_opendir+set}" = set; then
6862: :
6863: else
6864: ac_cv_search_opendir=no
1.1 root 6865: fi
1.1.1.6 root 6866: rm conftest.$ac_ext
1.1 root 6867: LIBS=$ac_func_search_save_LIBS
6868: fi
1.1.1.10! root 6869: { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
! 6870: $as_echo "$ac_cv_search_opendir" >&6; }
1.1.1.6 root 6871: ac_res=$ac_cv_search_opendir
6872: if test "$ac_res" != no; then
6873: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1 root 6874:
6875: fi
6876:
6877: else
1.1.1.10! root 6878: { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
! 6879: $as_echo_n "checking for library containing opendir... " >&6; }
1.1 root 6880: if test "${ac_cv_search_opendir+set}" = set; then
1.1.1.10! root 6881: $as_echo_n "(cached) " >&6
1.1 root 6882: else
6883: ac_func_search_save_LIBS=$LIBS
6884: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 6885: /* confdefs.h. */
6886: _ACEOF
6887: cat confdefs.h >>conftest.$ac_ext
6888: cat >>conftest.$ac_ext <<_ACEOF
6889: /* end confdefs.h. */
1.1 root 6890:
1.1.1.6 root 6891: /* Override any GCC internal prototype to avoid an error.
6892: Use char because int might match the return type of a GCC
6893: builtin and then its argument prototype would still apply. */
1.1 root 6894: #ifdef __cplusplus
6895: extern "C"
6896: #endif
6897: char opendir ();
6898: int
6899: main ()
6900: {
1.1.1.6 root 6901: return opendir ();
1.1 root 6902: ;
6903: return 0;
6904: }
6905: _ACEOF
1.1.1.6 root 6906: for ac_lib in '' x; do
6907: if test -z "$ac_lib"; then
6908: ac_res="none required"
6909: else
6910: ac_res=-l$ac_lib
6911: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6912: fi
6913: rm -f conftest.$ac_objext conftest$ac_exeext
6914: if { (ac_try="$ac_link"
6915: case "(($ac_try" in
6916: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6917: *) ac_try_echo=$ac_try;;
6918: esac
1.1.1.10! root 6919: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 6920: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 6921: (eval "$ac_link") 2>conftest.er1
1.1 root 6922: ac_status=$?
1.1.1.3 root 6923: grep -v '^ *+' conftest.er1 >conftest.err
6924: rm -f conftest.er1
6925: cat conftest.err >&5
1.1.1.10! root 6926: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 6927: (exit $ac_status); } && {
6928: test -z "$ac_c_werror_flag" ||
6929: test ! -s conftest.err
1.1.1.10! root 6930: } && test -s conftest$ac_exeext && {
! 6931: test "$cross_compiling" = yes ||
! 6932: $as_test_x conftest$ac_exeext
! 6933: }; then
1.1.1.6 root 6934: ac_cv_search_opendir=$ac_res
1.1 root 6935: else
1.1.1.10! root 6936: $as_echo "$as_me: failed program was:" >&5
1.1.1.3 root 6937: sed 's/^/| /' conftest.$ac_ext >&5
6938:
1.1 root 6939:
1.1.1.6 root 6940: fi
1.1.1.3 root 6941:
1.1.1.10! root 6942: rm -rf conftest.dSYM
1.1.1.9 root 6943: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 6944: conftest$ac_exeext
6945: if test "${ac_cv_search_opendir+set}" = set; then
6946: break
1.1 root 6947: fi
1.1.1.6 root 6948: done
6949: if test "${ac_cv_search_opendir+set}" = set; then
6950: :
6951: else
6952: ac_cv_search_opendir=no
1.1 root 6953: fi
1.1.1.6 root 6954: rm conftest.$ac_ext
1.1 root 6955: LIBS=$ac_func_search_save_LIBS
6956: fi
1.1.1.10! root 6957: { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
! 6958: $as_echo "$ac_cv_search_opendir" >&6; }
1.1.1.6 root 6959: ac_res=$ac_cv_search_opendir
6960: if test "$ac_res" != no; then
6961: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1 root 6962:
6963: fi
6964:
6965: fi
6966:
6967:
6968:
6969:
1.1.1.6 root 6970: for ac_header in unistd.h zlib.h
1.1 root 6971: do
1.1.1.10! root 6972: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.6 root 6973: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.10! root 6974: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
! 6975: $as_echo_n "checking for $ac_header... " >&6; }
1.1.1.6 root 6976: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.10! root 6977: $as_echo_n "(cached) " >&6
1.1.1.6 root 6978: fi
1.1.1.10! root 6979: ac_res=`eval 'as_val=${'$as_ac_Header'}
! 6980: $as_echo "$as_val"'`
! 6981: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
! 6982: $as_echo "$ac_res" >&6; }
1.1 root 6983: else
1.1.1.6 root 6984: # Is the header compilable?
1.1.1.10! root 6985: { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 6986: $as_echo_n "checking $ac_header usability... " >&6; }
1.1.1.6 root 6987: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 6988: /* confdefs.h. */
6989: _ACEOF
6990: cat confdefs.h >>conftest.$ac_ext
6991: cat >>conftest.$ac_ext <<_ACEOF
6992: /* end confdefs.h. */
1.1 root 6993: $ac_includes_default
6994: #include <$ac_header>
6995: _ACEOF
6996: rm -f conftest.$ac_objext
1.1.1.6 root 6997: if { (ac_try="$ac_compile"
6998: case "(($ac_try" in
6999: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7000: *) ac_try_echo=$ac_try;;
7001: esac
1.1.1.10! root 7002: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 7003: $as_echo "$ac_try_echo") >&5
1.1.1.8 root 7004: (eval "$ac_compile") 2>conftest.er1
7005: ac_status=$?
7006: grep -v '^ *+' conftest.er1 >conftest.err
7007: rm -f conftest.er1
7008: cat conftest.err >&5
1.1.1.10! root 7009: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 7010: (exit $ac_status); } && {
7011: test -z "$ac_c_werror_flag" ||
7012: test ! -s conftest.err
7013: } && test -s conftest.$ac_objext; then
1.1.1.6 root 7014: ac_header_compiler=yes
7015: else
1.1.1.10! root 7016: $as_echo "$as_me: failed program was:" >&5
1.1.1.6 root 7017: sed 's/^/| /' conftest.$ac_ext >&5
7018:
7019: ac_header_compiler=no
7020: fi
7021:
7022: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.10! root 7023: { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 7024: $as_echo "$ac_header_compiler" >&6; }
1.1.1.6 root 7025:
7026: # Is the header present?
1.1.1.10! root 7027: { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 7028: $as_echo_n "checking $ac_header presence... " >&6; }
1.1.1.6 root 7029: cat >conftest.$ac_ext <<_ACEOF
7030: /* confdefs.h. */
7031: _ACEOF
7032: cat confdefs.h >>conftest.$ac_ext
7033: cat >>conftest.$ac_ext <<_ACEOF
7034: /* end confdefs.h. */
7035: #include <$ac_header>
7036: _ACEOF
7037: if { (ac_try="$ac_cpp conftest.$ac_ext"
7038: case "(($ac_try" in
7039: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7040: *) ac_try_echo=$ac_try;;
7041: esac
1.1.1.10! root 7042: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 7043: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 7044: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 7045: ac_status=$?
1.1.1.6 root 7046: grep -v '^ *+' conftest.er1 >conftest.err
7047: rm -f conftest.er1
7048: cat conftest.err >&5
1.1.1.10! root 7049: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 7050: (exit $ac_status); } >/dev/null && {
7051: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7052: test ! -s conftest.err
7053: }; then
1.1.1.6 root 7054: ac_header_preproc=yes
1.1 root 7055: else
1.1.1.10! root 7056: $as_echo "$as_me: failed program was:" >&5
1.1.1.3 root 7057: sed 's/^/| /' conftest.$ac_ext >&5
7058:
1.1.1.6 root 7059: ac_header_preproc=no
7060: fi
7061:
7062: rm -f conftest.err conftest.$ac_ext
1.1.1.10! root 7063: { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 7064: $as_echo "$ac_header_preproc" >&6; }
1.1.1.6 root 7065:
7066: # So? What about this header?
7067: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7068: yes:no: )
1.1.1.10! root 7069: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 7070: $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 7071: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 7072: $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
1.1.1.6 root 7073: ac_header_preproc=yes
7074: ;;
7075: no:yes:* )
1.1.1.10! root 7076: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 7077: $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 7078: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 7079: $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 7080: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 7081: $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 7082: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 7083: $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 7084: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 7085: $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 7086: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 7087: $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1.1.6 root 7088:
7089: ;;
7090: esac
1.1.1.10! root 7091: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
! 7092: $as_echo_n "checking for $ac_header... " >&6; }
1.1.1.6 root 7093: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.10! root 7094: $as_echo_n "(cached) " >&6
1.1.1.6 root 7095: else
7096: eval "$as_ac_Header=\$ac_header_preproc"
1.1 root 7097: fi
1.1.1.10! root 7098: ac_res=`eval 'as_val=${'$as_ac_Header'}
! 7099: $as_echo "$as_val"'`
! 7100: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
! 7101: $as_echo "$ac_res" >&6; }
1.1.1.6 root 7102:
1.1 root 7103: fi
1.1.1.10! root 7104: as_val=`eval 'as_val=${'$as_ac_Header'}
! 7105: $as_echo "$as_val"'`
! 7106: if test "x$as_val" = x""yes; then
1.1 root 7107: cat >>confdefs.h <<_ACEOF
1.1.1.10! root 7108: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1 root 7109: _ACEOF
7110:
1.1.1.6 root 7111: else
1.1.1.10! root 7112: { { $as_echo "$as_me:$LINENO: error: header file not found!" >&5
! 7113: $as_echo "$as_me: error: header file not found!" >&2;}
1.1.1.6 root 7114: { (exit 1); exit 1; }; }
1.1 root 7115: fi
7116:
7117: done
7118:
7119:
7120:
1.1.1.9 root 7121:
7122: for ac_header in termios.h glob.h malloc.h
1.1 root 7123: do
1.1.1.10! root 7124: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 7125: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 7126: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
! 7127: $as_echo_n "checking for $ac_header... " >&6; }
! 7128: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 7129: $as_echo_n "(cached) " >&6
! 7130: fi
! 7131: ac_res=`eval 'as_val=${'$as_ac_Header'}
! 7132: $as_echo "$as_val"'`
! 7133: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
! 7134: $as_echo "$ac_res" >&6; }
! 7135: else
! 7136: # Is the header compilable?
! 7137: { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 7138: $as_echo_n "checking $ac_header usability... " >&6; }
! 7139: cat >conftest.$ac_ext <<_ACEOF
! 7140: /* confdefs.h. */
! 7141: _ACEOF
! 7142: cat confdefs.h >>conftest.$ac_ext
! 7143: cat >>conftest.$ac_ext <<_ACEOF
! 7144: /* end confdefs.h. */
! 7145: $ac_includes_default
! 7146: #include <$ac_header>
! 7147: _ACEOF
! 7148: rm -f conftest.$ac_objext
! 7149: if { (ac_try="$ac_compile"
! 7150: case "(($ac_try" in
! 7151: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7152: *) ac_try_echo=$ac_try;;
! 7153: esac
! 7154: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 7155: $as_echo "$ac_try_echo") >&5
! 7156: (eval "$ac_compile") 2>conftest.er1
! 7157: ac_status=$?
! 7158: grep -v '^ *+' conftest.er1 >conftest.err
! 7159: rm -f conftest.er1
! 7160: cat conftest.err >&5
! 7161: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7162: (exit $ac_status); } && {
! 7163: test -z "$ac_c_werror_flag" ||
! 7164: test ! -s conftest.err
! 7165: } && test -s conftest.$ac_objext; then
! 7166: ac_header_compiler=yes
! 7167: else
! 7168: $as_echo "$as_me: failed program was:" >&5
! 7169: sed 's/^/| /' conftest.$ac_ext >&5
! 7170:
! 7171: ac_header_compiler=no
! 7172: fi
! 7173:
! 7174: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 7175: { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 7176: $as_echo "$ac_header_compiler" >&6; }
! 7177:
! 7178: # Is the header present?
! 7179: { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 7180: $as_echo_n "checking $ac_header presence... " >&6; }
! 7181: cat >conftest.$ac_ext <<_ACEOF
! 7182: /* confdefs.h. */
! 7183: _ACEOF
! 7184: cat confdefs.h >>conftest.$ac_ext
! 7185: cat >>conftest.$ac_ext <<_ACEOF
! 7186: /* end confdefs.h. */
! 7187: #include <$ac_header>
! 7188: _ACEOF
! 7189: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 7190: case "(($ac_try" in
! 7191: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7192: *) ac_try_echo=$ac_try;;
! 7193: esac
! 7194: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 7195: $as_echo "$ac_try_echo") >&5
! 7196: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 7197: ac_status=$?
! 7198: grep -v '^ *+' conftest.er1 >conftest.err
! 7199: rm -f conftest.er1
! 7200: cat conftest.err >&5
! 7201: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7202: (exit $ac_status); } >/dev/null && {
! 7203: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 7204: test ! -s conftest.err
! 7205: }; then
! 7206: ac_header_preproc=yes
! 7207: else
! 7208: $as_echo "$as_me: failed program was:" >&5
! 7209: sed 's/^/| /' conftest.$ac_ext >&5
! 7210:
! 7211: ac_header_preproc=no
! 7212: fi
! 7213:
! 7214: rm -f conftest.err conftest.$ac_ext
! 7215: { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 7216: $as_echo "$ac_header_preproc" >&6; }
! 7217:
! 7218: # So? What about this header?
! 7219: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 7220: yes:no: )
! 7221: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 7222: $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 7223: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 7224: $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 7225: ac_header_preproc=yes
! 7226: ;;
! 7227: no:yes:* )
! 7228: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 7229: $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 7230: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 7231: $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 7232: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 7233: $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 7234: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 7235: $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 7236: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 7237: $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 7238: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 7239: $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 7240:
! 7241: ;;
! 7242: esac
! 7243: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
! 7244: $as_echo_n "checking for $ac_header... " >&6; }
! 7245: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 7246: $as_echo_n "(cached) " >&6
! 7247: else
! 7248: eval "$as_ac_Header=\$ac_header_preproc"
! 7249: fi
! 7250: ac_res=`eval 'as_val=${'$as_ac_Header'}
! 7251: $as_echo "$as_val"'`
! 7252: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
! 7253: $as_echo "$ac_res" >&6; }
! 7254:
! 7255: fi
! 7256: as_val=`eval 'as_val=${'$as_ac_Header'}
! 7257: $as_echo "$as_val"'`
! 7258: if test "x$as_val" = x""yes; then
! 7259: cat >>confdefs.h <<_ACEOF
! 7260: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 7261: _ACEOF
! 7262:
! 7263: fi
! 7264:
! 7265: done
! 7266:
! 7267:
! 7268: for ac_header in SDL/SDL_config.h
! 7269: do
! 7270: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 7271: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 7272: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
! 7273: $as_echo_n "checking for $ac_header... " >&6; }
! 7274: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 7275: $as_echo_n "(cached) " >&6
! 7276: fi
! 7277: ac_res=`eval 'as_val=${'$as_ac_Header'}
! 7278: $as_echo "$as_val"'`
! 7279: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
! 7280: $as_echo "$ac_res" >&6; }
! 7281: else
! 7282: # Is the header compilable?
! 7283: { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 7284: $as_echo_n "checking $ac_header usability... " >&6; }
! 7285: cat >conftest.$ac_ext <<_ACEOF
! 7286: /* confdefs.h. */
! 7287: _ACEOF
! 7288: cat confdefs.h >>conftest.$ac_ext
! 7289: cat >>conftest.$ac_ext <<_ACEOF
! 7290: /* end confdefs.h. */
! 7291: $ac_includes_default
! 7292: #include <$ac_header>
! 7293: _ACEOF
! 7294: rm -f conftest.$ac_objext
! 7295: if { (ac_try="$ac_compile"
! 7296: case "(($ac_try" in
! 7297: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7298: *) ac_try_echo=$ac_try;;
! 7299: esac
! 7300: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 7301: $as_echo "$ac_try_echo") >&5
! 7302: (eval "$ac_compile") 2>conftest.er1
! 7303: ac_status=$?
! 7304: grep -v '^ *+' conftest.er1 >conftest.err
! 7305: rm -f conftest.er1
! 7306: cat conftest.err >&5
! 7307: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7308: (exit $ac_status); } && {
! 7309: test -z "$ac_c_werror_flag" ||
! 7310: test ! -s conftest.err
! 7311: } && test -s conftest.$ac_objext; then
! 7312: ac_header_compiler=yes
! 7313: else
! 7314: $as_echo "$as_me: failed program was:" >&5
! 7315: sed 's/^/| /' conftest.$ac_ext >&5
! 7316:
! 7317: ac_header_compiler=no
! 7318: fi
! 7319:
! 7320: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 7321: { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 7322: $as_echo "$ac_header_compiler" >&6; }
! 7323:
! 7324: # Is the header present?
! 7325: { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 7326: $as_echo_n "checking $ac_header presence... " >&6; }
! 7327: cat >conftest.$ac_ext <<_ACEOF
! 7328: /* confdefs.h. */
! 7329: _ACEOF
! 7330: cat confdefs.h >>conftest.$ac_ext
! 7331: cat >>conftest.$ac_ext <<_ACEOF
! 7332: /* end confdefs.h. */
! 7333: #include <$ac_header>
! 7334: _ACEOF
! 7335: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 7336: case "(($ac_try" in
! 7337: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7338: *) ac_try_echo=$ac_try;;
! 7339: esac
! 7340: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 7341: $as_echo "$ac_try_echo") >&5
! 7342: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 7343: ac_status=$?
! 7344: grep -v '^ *+' conftest.er1 >conftest.err
! 7345: rm -f conftest.er1
! 7346: cat conftest.err >&5
! 7347: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7348: (exit $ac_status); } >/dev/null && {
! 7349: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 7350: test ! -s conftest.err
! 7351: }; then
! 7352: ac_header_preproc=yes
! 7353: else
! 7354: $as_echo "$as_me: failed program was:" >&5
! 7355: sed 's/^/| /' conftest.$ac_ext >&5
! 7356:
! 7357: ac_header_preproc=no
! 7358: fi
! 7359:
! 7360: rm -f conftest.err conftest.$ac_ext
! 7361: { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 7362: $as_echo "$ac_header_preproc" >&6; }
! 7363:
! 7364: # So? What about this header?
! 7365: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 7366: yes:no: )
! 7367: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 7368: $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 7369: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 7370: $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 7371: ac_header_preproc=yes
! 7372: ;;
! 7373: no:yes:* )
! 7374: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 7375: $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 7376: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 7377: $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 7378: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 7379: $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 7380: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 7381: $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 7382: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 7383: $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 7384: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 7385: $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 7386:
! 7387: ;;
! 7388: esac
! 7389: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
! 7390: $as_echo_n "checking for $ac_header... " >&6; }
! 7391: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 7392: $as_echo_n "(cached) " >&6
! 7393: else
! 7394: eval "$as_ac_Header=\$ac_header_preproc"
! 7395: fi
! 7396: ac_res=`eval 'as_val=${'$as_ac_Header'}
! 7397: $as_echo "$as_val"'`
! 7398: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
! 7399: $as_echo "$ac_res" >&6; }
! 7400:
! 7401: fi
! 7402: as_val=`eval 'as_val=${'$as_ac_Header'}
! 7403: $as_echo "$as_val"'`
! 7404: if test "x$as_val" = x""yes; then
! 7405: cat >>confdefs.h <<_ACEOF
! 7406: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 7407: _ACEOF
! 7408:
! 7409: fi
! 7410:
! 7411: done
! 7412:
! 7413:
! 7414: for ac_header in sys/times.h
! 7415: do
! 7416: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.6 root 7417: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.10! root 7418: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
! 7419: $as_echo_n "checking for $ac_header... " >&6; }
1.1.1.6 root 7420: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.10! root 7421: $as_echo_n "(cached) " >&6
1.1 root 7422: fi
1.1.1.10! root 7423: ac_res=`eval 'as_val=${'$as_ac_Header'}
! 7424: $as_echo "$as_val"'`
! 7425: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
! 7426: $as_echo "$ac_res" >&6; }
1.1 root 7427: else
7428: # Is the header compilable?
1.1.1.10! root 7429: { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 7430: $as_echo_n "checking $ac_header usability... " >&6; }
1.1 root 7431: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 7432: /* confdefs.h. */
7433: _ACEOF
7434: cat confdefs.h >>conftest.$ac_ext
7435: cat >>conftest.$ac_ext <<_ACEOF
7436: /* end confdefs.h. */
1.1 root 7437: $ac_includes_default
7438: #include <$ac_header>
7439: _ACEOF
7440: rm -f conftest.$ac_objext
1.1.1.6 root 7441: if { (ac_try="$ac_compile"
7442: case "(($ac_try" in
7443: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7444: *) ac_try_echo=$ac_try;;
7445: esac
1.1.1.10! root 7446: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 7447: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 7448: (eval "$ac_compile") 2>conftest.er1
1.1 root 7449: ac_status=$?
1.1.1.3 root 7450: grep -v '^ *+' conftest.er1 >conftest.err
7451: rm -f conftest.er1
7452: cat conftest.err >&5
1.1.1.10! root 7453: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 7454: (exit $ac_status); } && {
7455: test -z "$ac_c_werror_flag" ||
7456: test ! -s conftest.err
7457: } && test -s conftest.$ac_objext; then
1.1 root 7458: ac_header_compiler=yes
7459: else
1.1.1.10! root 7460: $as_echo "$as_me: failed program was:" >&5
1.1.1.3 root 7461: sed 's/^/| /' conftest.$ac_ext >&5
7462:
1.1.1.6 root 7463: ac_header_compiler=no
1.1 root 7464: fi
1.1.1.6 root 7465:
7466: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.10! root 7467: { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 7468: $as_echo "$ac_header_compiler" >&6; }
1.1 root 7469:
7470: # Is the header present?
1.1.1.10! root 7471: { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 7472: $as_echo_n "checking $ac_header presence... " >&6; }
1.1 root 7473: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 7474: /* confdefs.h. */
7475: _ACEOF
7476: cat confdefs.h >>conftest.$ac_ext
7477: cat >>conftest.$ac_ext <<_ACEOF
7478: /* end confdefs.h. */
1.1 root 7479: #include <$ac_header>
7480: _ACEOF
1.1.1.6 root 7481: if { (ac_try="$ac_cpp conftest.$ac_ext"
7482: case "(($ac_try" in
7483: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7484: *) ac_try_echo=$ac_try;;
7485: esac
1.1.1.10! root 7486: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 7487: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 7488: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 7489: ac_status=$?
1.1.1.3 root 7490: grep -v '^ *+' conftest.er1 >conftest.err
1.1 root 7491: rm -f conftest.er1
7492: cat conftest.err >&5
1.1.1.10! root 7493: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 7494: (exit $ac_status); } >/dev/null && {
7495: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7496: test ! -s conftest.err
7497: }; then
1.1 root 7498: ac_header_preproc=yes
7499: else
1.1.1.10! root 7500: $as_echo "$as_me: failed program was:" >&5
1.1.1.3 root 7501: sed 's/^/| /' conftest.$ac_ext >&5
7502:
1.1 root 7503: ac_header_preproc=no
7504: fi
1.1.1.6 root 7505:
1.1 root 7506: rm -f conftest.err conftest.$ac_ext
1.1.1.10! root 7507: { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 7508: $as_echo "$ac_header_preproc" >&6; }
1.1 root 7509:
7510: # So? What about this header?
1.1.1.3 root 7511: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7512: yes:no: )
1.1.1.10! root 7513: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 7514: $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 7515: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 7516: $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
1.1.1.3 root 7517: ac_header_preproc=yes
7518: ;;
7519: no:yes:* )
1.1.1.10! root 7520: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 7521: $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 7522: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 7523: $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 7524: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 7525: $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 7526: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 7527: $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 7528: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 7529: $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 7530: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 7531: $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1.1.6 root 7532:
1.1.1.3 root 7533: ;;
1.1 root 7534: esac
1.1.1.10! root 7535: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
! 7536: $as_echo_n "checking for $ac_header... " >&6; }
1.1.1.6 root 7537: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.10! root 7538: $as_echo_n "(cached) " >&6
1.1 root 7539: else
1.1.1.3 root 7540: eval "$as_ac_Header=\$ac_header_preproc"
1.1 root 7541: fi
1.1.1.10! root 7542: ac_res=`eval 'as_val=${'$as_ac_Header'}
! 7543: $as_echo "$as_val"'`
! 7544: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
! 7545: $as_echo "$ac_res" >&6; }
1.1 root 7546:
7547: fi
1.1.1.10! root 7548: as_val=`eval 'as_val=${'$as_ac_Header'}
! 7549: $as_echo "$as_val"'`
! 7550: if test "x$as_val" = x""yes; then
1.1 root 7551: cat >>confdefs.h <<_ACEOF
1.1.1.10! root 7552: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1 root 7553: _ACEOF
7554:
7555: fi
7556:
7557: done
7558:
7559:
1.1.1.10! root 7560: { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
! 7561: $as_echo_n "checking for mode_t... " >&6; }
1.1 root 7562: if test "${ac_cv_type_mode_t+set}" = set; then
1.1.1.10! root 7563: $as_echo_n "(cached) " >&6
1.1 root 7564: else
1.1.1.10! root 7565: ac_cv_type_mode_t=no
! 7566: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 7567: /* confdefs.h. */
7568: _ACEOF
7569: cat confdefs.h >>conftest.$ac_ext
7570: cat >>conftest.$ac_ext <<_ACEOF
7571: /* end confdefs.h. */
1.1 root 7572: $ac_includes_default
7573: int
7574: main ()
7575: {
1.1.1.10! root 7576: if (sizeof (mode_t))
! 7577: return 0;
! 7578: ;
1.1 root 7579: return 0;
1.1.1.10! root 7580: }
! 7581: _ACEOF
! 7582: rm -f conftest.$ac_objext
! 7583: if { (ac_try="$ac_compile"
! 7584: case "(($ac_try" in
! 7585: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7586: *) ac_try_echo=$ac_try;;
! 7587: esac
! 7588: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 7589: $as_echo "$ac_try_echo") >&5
! 7590: (eval "$ac_compile") 2>conftest.er1
! 7591: ac_status=$?
! 7592: grep -v '^ *+' conftest.er1 >conftest.err
! 7593: rm -f conftest.er1
! 7594: cat conftest.err >&5
! 7595: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7596: (exit $ac_status); } && {
! 7597: test -z "$ac_c_werror_flag" ||
! 7598: test ! -s conftest.err
! 7599: } && test -s conftest.$ac_objext; then
! 7600: cat >conftest.$ac_ext <<_ACEOF
! 7601: /* confdefs.h. */
! 7602: _ACEOF
! 7603: cat confdefs.h >>conftest.$ac_ext
! 7604: cat >>conftest.$ac_ext <<_ACEOF
! 7605: /* end confdefs.h. */
! 7606: $ac_includes_default
! 7607: int
! 7608: main ()
! 7609: {
! 7610: if (sizeof ((mode_t)))
! 7611: return 0;
1.1 root 7612: ;
1.1.1.9 root 7613: return 0;
7614: }
7615: _ACEOF
7616: rm -f conftest.$ac_objext
7617: if { (ac_try="$ac_compile"
7618: case "(($ac_try" in
1.1.1.8 root 7619: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7620: *) ac_try_echo=$ac_try;;
7621: esac
1.1.1.10! root 7622: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 7623: $as_echo "$ac_try_echo") >&5
1.1.1.9 root 7624: (eval "$ac_compile") 2>conftest.er1
1.1.1.8 root 7625: ac_status=$?
1.1.1.9 root 7626: grep -v '^ *+' conftest.er1 >conftest.err
7627: rm -f conftest.er1
7628: cat conftest.err >&5
1.1.1.10! root 7629: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 7630: (exit $ac_status); } && {
7631: test -z "$ac_c_werror_flag" ||
7632: test ! -s conftest.err
7633: } && test -s conftest.$ac_objext; then
1.1.1.10! root 7634: :
1.1 root 7635: else
1.1.1.10! root 7636: $as_echo "$as_me: failed program was:" >&5
1.1.1.3 root 7637: sed 's/^/| /' conftest.$ac_ext >&5
7638:
1.1.1.10! root 7639: ac_cv_type_mode_t=yes
1.1 root 7640: fi
1.1.1.6 root 7641:
7642: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.10! root 7643: else
! 7644: $as_echo "$as_me: failed program was:" >&5
! 7645: sed 's/^/| /' conftest.$ac_ext >&5
! 7646:
! 7647:
1.1 root 7648: fi
1.1.1.10! root 7649:
! 7650: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 7651: fi
! 7652: { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
! 7653: $as_echo "$ac_cv_type_mode_t" >&6; }
! 7654: if test "x$ac_cv_type_mode_t" = x""yes; then
1.1 root 7655: :
7656: else
7657:
7658: cat >>confdefs.h <<_ACEOF
7659: #define mode_t int
7660: _ACEOF
7661:
7662: fi
7663:
1.1.1.10! root 7664: { $as_echo "$as_me:$LINENO: checking for size_t" >&5
! 7665: $as_echo_n "checking for size_t... " >&6; }
1.1 root 7666: if test "${ac_cv_type_size_t+set}" = set; then
1.1.1.10! root 7667: $as_echo_n "(cached) " >&6
1.1 root 7668: else
1.1.1.10! root 7669: ac_cv_type_size_t=no
! 7670: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 7671: /* confdefs.h. */
7672: _ACEOF
7673: cat confdefs.h >>conftest.$ac_ext
7674: cat >>conftest.$ac_ext <<_ACEOF
7675: /* end confdefs.h. */
1.1 root 7676: $ac_includes_default
7677: int
7678: main ()
7679: {
1.1.1.10! root 7680: if (sizeof (size_t))
! 7681: return 0;
! 7682: ;
1.1 root 7683: return 0;
1.1.1.10! root 7684: }
! 7685: _ACEOF
! 7686: rm -f conftest.$ac_objext
! 7687: if { (ac_try="$ac_compile"
! 7688: case "(($ac_try" in
! 7689: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7690: *) ac_try_echo=$ac_try;;
! 7691: esac
! 7692: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 7693: $as_echo "$ac_try_echo") >&5
! 7694: (eval "$ac_compile") 2>conftest.er1
! 7695: ac_status=$?
! 7696: grep -v '^ *+' conftest.er1 >conftest.err
! 7697: rm -f conftest.er1
! 7698: cat conftest.err >&5
! 7699: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7700: (exit $ac_status); } && {
! 7701: test -z "$ac_c_werror_flag" ||
! 7702: test ! -s conftest.err
! 7703: } && test -s conftest.$ac_objext; then
! 7704: cat >conftest.$ac_ext <<_ACEOF
! 7705: /* confdefs.h. */
! 7706: _ACEOF
! 7707: cat confdefs.h >>conftest.$ac_ext
! 7708: cat >>conftest.$ac_ext <<_ACEOF
! 7709: /* end confdefs.h. */
! 7710: $ac_includes_default
! 7711: int
! 7712: main ()
! 7713: {
! 7714: if (sizeof ((size_t)))
! 7715: return 0;
1.1 root 7716: ;
7717: return 0;
7718: }
7719: _ACEOF
7720: rm -f conftest.$ac_objext
1.1.1.6 root 7721: if { (ac_try="$ac_compile"
7722: case "(($ac_try" in
7723: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7724: *) ac_try_echo=$ac_try;;
7725: esac
1.1.1.10! root 7726: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 7727: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 7728: (eval "$ac_compile") 2>conftest.er1
1.1 root 7729: ac_status=$?
1.1.1.3 root 7730: grep -v '^ *+' conftest.er1 >conftest.err
7731: rm -f conftest.er1
7732: cat conftest.err >&5
1.1.1.10! root 7733: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 7734: (exit $ac_status); } && {
7735: test -z "$ac_c_werror_flag" ||
7736: test ! -s conftest.err
7737: } && test -s conftest.$ac_objext; then
1.1.1.10! root 7738: :
1.1 root 7739: else
1.1.1.10! root 7740: $as_echo "$as_me: failed program was:" >&5
1.1.1.3 root 7741: sed 's/^/| /' conftest.$ac_ext >&5
7742:
1.1.1.10! root 7743: ac_cv_type_size_t=yes
1.1 root 7744: fi
1.1.1.6 root 7745:
7746: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.10! root 7747: else
! 7748: $as_echo "$as_me: failed program was:" >&5
! 7749: sed 's/^/| /' conftest.$ac_ext >&5
! 7750:
! 7751:
1.1 root 7752: fi
1.1.1.10! root 7753:
! 7754: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 7755: fi
! 7756: { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
! 7757: $as_echo "$ac_cv_type_size_t" >&6; }
! 7758: if test "x$ac_cv_type_size_t" = x""yes; then
1.1 root 7759: :
7760: else
7761:
7762: cat >>confdefs.h <<_ACEOF
1.1.1.6 root 7763: #define size_t unsigned int
1.1 root 7764: _ACEOF
7765:
7766: fi
7767:
7768:
1.1.1.10! root 7769: { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
! 7770: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
1.1 root 7771: if test "${ac_cv_struct_tm+set}" = set; then
1.1.1.10! root 7772: $as_echo_n "(cached) " >&6
1.1 root 7773: else
7774: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 7775: /* confdefs.h. */
7776: _ACEOF
7777: cat confdefs.h >>conftest.$ac_ext
7778: cat >>conftest.$ac_ext <<_ACEOF
7779: /* end confdefs.h. */
1.1 root 7780: #include <sys/types.h>
7781: #include <time.h>
7782:
7783: int
7784: main ()
7785: {
1.1.1.9 root 7786: struct tm tm;
7787: int *p = &tm.tm_sec;
1.1.1.10! root 7788: return !p;
1.1 root 7789: ;
7790: return 0;
7791: }
7792: _ACEOF
7793: rm -f conftest.$ac_objext
1.1.1.6 root 7794: if { (ac_try="$ac_compile"
7795: case "(($ac_try" in
7796: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7797: *) ac_try_echo=$ac_try;;
7798: esac
1.1.1.10! root 7799: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 7800: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 7801: (eval "$ac_compile") 2>conftest.er1
1.1 root 7802: ac_status=$?
1.1.1.3 root 7803: grep -v '^ *+' conftest.er1 >conftest.err
7804: rm -f conftest.er1
7805: cat conftest.err >&5
1.1.1.10! root 7806: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 7807: (exit $ac_status); } && {
7808: test -z "$ac_c_werror_flag" ||
7809: test ! -s conftest.err
7810: } && test -s conftest.$ac_objext; then
1.1 root 7811: ac_cv_struct_tm=time.h
7812: else
1.1.1.10! root 7813: $as_echo "$as_me: failed program was:" >&5
1.1.1.3 root 7814: sed 's/^/| /' conftest.$ac_ext >&5
7815:
1.1.1.6 root 7816: ac_cv_struct_tm=sys/time.h
1.1 root 7817: fi
1.1.1.6 root 7818:
7819: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 7820: fi
1.1.1.10! root 7821: { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
! 7822: $as_echo "$ac_cv_struct_tm" >&6; }
1.1 root 7823: if test $ac_cv_struct_tm = sys/time.h; then
7824:
7825: cat >>confdefs.h <<\_ACEOF
7826: #define TM_IN_SYS_TIME 1
7827: _ACEOF
7828:
7829: fi
7830:
7831:
7832:
1.1.1.10! root 7833: { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
! 7834: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
1.1 root 7835: if test "${ac_cv_c_const+set}" = set; then
1.1.1.10! root 7836: $as_echo_n "(cached) " >&6
1.1 root 7837: else
7838: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 7839: /* confdefs.h. */
7840: _ACEOF
7841: cat confdefs.h >>conftest.$ac_ext
7842: cat >>conftest.$ac_ext <<_ACEOF
7843: /* end confdefs.h. */
1.1 root 7844:
7845: int
7846: main ()
7847: {
7848: /* FIXME: Include the comments suggested by Paul. */
7849: #ifndef __cplusplus
7850: /* Ultrix mips cc rejects this. */
7851: typedef int charset[2];
1.1.1.9 root 7852: const charset cs;
1.1 root 7853: /* SunOS 4.1.1 cc rejects this. */
1.1.1.9 root 7854: char const *const *pcpcc;
7855: char **ppc;
1.1 root 7856: /* NEC SVR4.0.2 mips cc rejects this. */
7857: struct point {int x, y;};
7858: static struct point const zero = {0,0};
7859: /* AIX XL C 1.02.0.0 rejects this.
7860: It does not let you subtract one const X* pointer from another in
7861: an arm of an if-expression whose if-part is not a constant
7862: expression */
7863: const char *g = "string";
1.1.1.9 root 7864: pcpcc = &g + (g ? g-g : 0);
1.1 root 7865: /* HPUX 7.0 cc rejects these. */
1.1.1.9 root 7866: ++pcpcc;
7867: ppc = (char**) pcpcc;
7868: pcpcc = (char const *const *) ppc;
1.1 root 7869: { /* SCO 3.2v4 cc rejects this. */
7870: char *t;
7871: char const *s = 0 ? (char *) 0 : (char const *) 0;
7872:
7873: *t++ = 0;
1.1.1.6 root 7874: if (s) return 0;
1.1 root 7875: }
7876: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7877: int x[] = {25, 17};
7878: const int *foo = &x[0];
7879: ++foo;
7880: }
7881: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7882: typedef const int *iptr;
7883: iptr p = 0;
7884: ++p;
7885: }
7886: { /* AIX XL C 1.02.0.0 rejects this saying
7887: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7888: struct s { int j; const int *ap[3]; };
7889: struct s *b; b->j = 5;
7890: }
7891: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7892: const int foo = 10;
1.1.1.6 root 7893: if (!foo) return 0;
1.1 root 7894: }
1.1.1.9 root 7895: return !cs[0] && !zero.x;
1.1 root 7896: #endif
7897:
7898: ;
7899: return 0;
7900: }
7901: _ACEOF
7902: rm -f conftest.$ac_objext
1.1.1.6 root 7903: if { (ac_try="$ac_compile"
7904: case "(($ac_try" in
7905: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7906: *) ac_try_echo=$ac_try;;
7907: esac
1.1.1.10! root 7908: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 7909: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 7910: (eval "$ac_compile") 2>conftest.er1
1.1 root 7911: ac_status=$?
1.1.1.3 root 7912: grep -v '^ *+' conftest.er1 >conftest.err
7913: rm -f conftest.er1
7914: cat conftest.err >&5
1.1.1.10! root 7915: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 7916: (exit $ac_status); } && {
7917: test -z "$ac_c_werror_flag" ||
7918: test ! -s conftest.err
7919: } && test -s conftest.$ac_objext; then
1.1 root 7920: ac_cv_c_const=yes
7921: else
1.1.1.10! root 7922: $as_echo "$as_me: failed program was:" >&5
1.1.1.3 root 7923: sed 's/^/| /' conftest.$ac_ext >&5
7924:
1.1.1.6 root 7925: ac_cv_c_const=no
1.1 root 7926: fi
1.1.1.6 root 7927:
7928: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 7929: fi
1.1.1.10! root 7930: { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
! 7931: $as_echo "$ac_cv_c_const" >&6; }
1.1 root 7932: if test $ac_cv_c_const = no; then
7933:
7934: cat >>confdefs.h <<\_ACEOF
1.1.1.10! root 7935: #define const /**/
1.1 root 7936: _ACEOF
7937:
7938: fi
7939:
1.1.1.10! root 7940: { $as_echo "$as_me:$LINENO: checking for inline" >&5
! 7941: $as_echo_n "checking for inline... " >&6; }
1.1 root 7942: if test "${ac_cv_c_inline+set}" = set; then
1.1.1.10! root 7943: $as_echo_n "(cached) " >&6
1.1 root 7944: else
7945: ac_cv_c_inline=no
7946: for ac_kw in inline __inline__ __inline; do
7947: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 7948: /* confdefs.h. */
7949: _ACEOF
7950: cat confdefs.h >>conftest.$ac_ext
7951: cat >>conftest.$ac_ext <<_ACEOF
7952: /* end confdefs.h. */
1.1 root 7953: #ifndef __cplusplus
1.1.1.3 root 7954: typedef int foo_t;
7955: static $ac_kw foo_t static_foo () {return 0; }
7956: $ac_kw foo_t foo () {return 0; }
1.1 root 7957: #endif
7958:
7959: _ACEOF
7960: rm -f conftest.$ac_objext
1.1.1.6 root 7961: if { (ac_try="$ac_compile"
7962: case "(($ac_try" in
7963: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7964: *) ac_try_echo=$ac_try;;
7965: esac
1.1.1.10! root 7966: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 7967: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 7968: (eval "$ac_compile") 2>conftest.er1
1.1 root 7969: ac_status=$?
1.1.1.3 root 7970: grep -v '^ *+' conftest.er1 >conftest.err
7971: rm -f conftest.er1
7972: cat conftest.err >&5
1.1.1.10! root 7973: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 7974: (exit $ac_status); } && {
7975: test -z "$ac_c_werror_flag" ||
7976: test ! -s conftest.err
7977: } && test -s conftest.$ac_objext; then
1.1.1.6 root 7978: ac_cv_c_inline=$ac_kw
1.1 root 7979: else
1.1.1.10! root 7980: $as_echo "$as_me: failed program was:" >&5
1.1.1.3 root 7981: sed 's/^/| /' conftest.$ac_ext >&5
7982:
1.1.1.6 root 7983:
1.1 root 7984: fi
1.1.1.6 root 7985:
7986: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7987: test "$ac_cv_c_inline" != no && break
1.1 root 7988: done
7989:
7990: fi
1.1.1.10! root 7991: { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
! 7992: $as_echo "$ac_cv_c_inline" >&6; }
1.1.1.3 root 7993:
7994:
1.1 root 7995: case $ac_cv_c_inline in
7996: inline | yes) ;;
1.1.1.3 root 7997: *)
7998: case $ac_cv_c_inline in
7999: no) ac_val=;;
8000: *) ac_val=$ac_cv_c_inline;;
8001: esac
8002: cat >>confdefs.h <<_ACEOF
8003: #ifndef __cplusplus
8004: #define inline $ac_val
8005: #endif
1.1 root 8006: _ACEOF
1.1.1.3 root 8007: ;;
1.1 root 8008: esac
8009:
1.1.1.10! root 8010: { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
! 8011: $as_echo_n "checking for working volatile... " >&6; }
1.1 root 8012: if test "${ac_cv_c_volatile+set}" = set; then
1.1.1.10! root 8013: $as_echo_n "(cached) " >&6
1.1 root 8014: else
8015: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 8016: /* confdefs.h. */
8017: _ACEOF
8018: cat confdefs.h >>conftest.$ac_ext
8019: cat >>conftest.$ac_ext <<_ACEOF
8020: /* end confdefs.h. */
1.1 root 8021:
8022: int
8023: main ()
8024: {
8025:
8026: volatile int x;
1.1.1.6 root 8027: int * volatile y = (int *) 0;
8028: return !x && !y;
1.1 root 8029: ;
8030: return 0;
8031: }
8032: _ACEOF
8033: rm -f conftest.$ac_objext
1.1.1.6 root 8034: if { (ac_try="$ac_compile"
8035: case "(($ac_try" in
8036: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8037: *) ac_try_echo=$ac_try;;
8038: esac
1.1.1.10! root 8039: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 8040: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 8041: (eval "$ac_compile") 2>conftest.er1
1.1 root 8042: ac_status=$?
1.1.1.3 root 8043: grep -v '^ *+' conftest.er1 >conftest.err
8044: rm -f conftest.er1
8045: cat conftest.err >&5
1.1.1.10! root 8046: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 8047: (exit $ac_status); } && {
8048: test -z "$ac_c_werror_flag" ||
8049: test ! -s conftest.err
8050: } && test -s conftest.$ac_objext; then
1.1 root 8051: ac_cv_c_volatile=yes
8052: else
1.1.1.10! root 8053: $as_echo "$as_me: failed program was:" >&5
1.1.1.3 root 8054: sed 's/^/| /' conftest.$ac_ext >&5
8055:
1.1.1.6 root 8056: ac_cv_c_volatile=no
1.1 root 8057: fi
1.1.1.6 root 8058:
8059: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 8060: fi
1.1.1.10! root 8061: { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
! 8062: $as_echo "$ac_cv_c_volatile" >&6; }
1.1 root 8063: if test $ac_cv_c_volatile = no; then
8064:
8065: cat >>confdefs.h <<\_ACEOF
1.1.1.10! root 8066: #define volatile /**/
1.1 root 8067: _ACEOF
8068:
8069: fi
8070:
8071:
8072: # Do we have GNU-C ?
8073: if test x"${GCC}" = xyes; then
8074:
8075: GCCVERSION=`${CC} -dumpversion`
8076: case $GCCVERSION in
8077: 2.96*)
1.1.1.10! root 8078: { $as_echo "$as_me:$LINENO: WARNING: You have GCC $GCCVERSION - This compiler is probably buggy." >&5
! 8079: $as_echo "$as_me: WARNING: You have GCC $GCCVERSION - This compiler is probably buggy." >&2;}
! 8080: { $as_echo "$as_me:$LINENO: WARNING: So I am using -O instead of -O2 (or greater) now!" >&5
! 8081: $as_echo "$as_me: WARNING: So I am using -O instead of -O2 (or greater) now!" >&2;}
1.1 root 8082: CFLAGS=`echo "${CFLAGS}" | sed 's/-O[2-9]/-O/'`
8083: ;;
8084: esac
8085:
8086: if test x"${ENABLE_WERROR}" != xno; then
8087: CFLAGS="${CFLAGS} -Werror"
8088: fi
8089: CFLAGS="${CFLAGS} -Wall"
8090:
8091: fi
8092:
8093:
8094: # Cross-compiling ?
8095:
8096: HOSTCFLAGS="-O"
8097: HOSTLDFLAGS=""
8098: if test "${build}" != "${target}" -a "${HOSTCC}" == "${CC}"; then
1.1.1.10! root 8099: { $as_echo "$as_me:$LINENO: WARNING: Cross compiling... I will now use cc as host compiler!" >&5
! 8100: $as_echo "$as_me: WARNING: Cross compiling... I will now use cc as host compiler!" >&2;}
1.1 root 8101: HOSTCC=cc
8102: else
8103: HOSTCFLAGS="${CFLAGS}"
8104: HOSTLDFLAGS="${LDFLAGS}"
8105: fi
8106:
8107:
8108:
8109: for ac_header in stdlib.h
8110: do
1.1.1.10! root 8111: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.6 root 8112: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.10! root 8113: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
! 8114: $as_echo_n "checking for $ac_header... " >&6; }
1.1.1.6 root 8115: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.10! root 8116: $as_echo_n "(cached) " >&6
1.1 root 8117: fi
1.1.1.10! root 8118: ac_res=`eval 'as_val=${'$as_ac_Header'}
! 8119: $as_echo "$as_val"'`
! 8120: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
! 8121: $as_echo "$ac_res" >&6; }
1.1 root 8122: else
8123: # Is the header compilable?
1.1.1.10! root 8124: { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 8125: $as_echo_n "checking $ac_header usability... " >&6; }
1.1 root 8126: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 8127: /* confdefs.h. */
8128: _ACEOF
8129: cat confdefs.h >>conftest.$ac_ext
8130: cat >>conftest.$ac_ext <<_ACEOF
8131: /* end confdefs.h. */
1.1 root 8132: $ac_includes_default
8133: #include <$ac_header>
8134: _ACEOF
8135: rm -f conftest.$ac_objext
1.1.1.6 root 8136: if { (ac_try="$ac_compile"
8137: case "(($ac_try" in
8138: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8139: *) ac_try_echo=$ac_try;;
8140: esac
1.1.1.10! root 8141: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 8142: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 8143: (eval "$ac_compile") 2>conftest.er1
1.1 root 8144: ac_status=$?
1.1.1.3 root 8145: grep -v '^ *+' conftest.er1 >conftest.err
8146: rm -f conftest.er1
8147: cat conftest.err >&5
1.1.1.10! root 8148: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 8149: (exit $ac_status); } && {
8150: test -z "$ac_c_werror_flag" ||
8151: test ! -s conftest.err
8152: } && test -s conftest.$ac_objext; then
1.1 root 8153: ac_header_compiler=yes
8154: else
1.1.1.10! root 8155: $as_echo "$as_me: failed program was:" >&5
1.1.1.3 root 8156: sed 's/^/| /' conftest.$ac_ext >&5
8157:
1.1.1.6 root 8158: ac_header_compiler=no
1.1 root 8159: fi
1.1.1.6 root 8160:
8161: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.10! root 8162: { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 8163: $as_echo "$ac_header_compiler" >&6; }
1.1 root 8164:
8165: # Is the header present?
1.1.1.10! root 8166: { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 8167: $as_echo_n "checking $ac_header presence... " >&6; }
1.1 root 8168: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 8169: /* confdefs.h. */
8170: _ACEOF
8171: cat confdefs.h >>conftest.$ac_ext
8172: cat >>conftest.$ac_ext <<_ACEOF
8173: /* end confdefs.h. */
1.1 root 8174: #include <$ac_header>
8175: _ACEOF
1.1.1.6 root 8176: if { (ac_try="$ac_cpp conftest.$ac_ext"
8177: case "(($ac_try" in
8178: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179: *) ac_try_echo=$ac_try;;
8180: esac
1.1.1.10! root 8181: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 8182: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 8183: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 8184: ac_status=$?
1.1.1.3 root 8185: grep -v '^ *+' conftest.er1 >conftest.err
1.1 root 8186: rm -f conftest.er1
8187: cat conftest.err >&5
1.1.1.10! root 8188: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 8189: (exit $ac_status); } >/dev/null && {
8190: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8191: test ! -s conftest.err
8192: }; then
1.1 root 8193: ac_header_preproc=yes
8194: else
1.1.1.10! root 8195: $as_echo "$as_me: failed program was:" >&5
1.1.1.3 root 8196: sed 's/^/| /' conftest.$ac_ext >&5
8197:
1.1 root 8198: ac_header_preproc=no
8199: fi
1.1.1.6 root 8200:
1.1 root 8201: rm -f conftest.err conftest.$ac_ext
1.1.1.10! root 8202: { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 8203: $as_echo "$ac_header_preproc" >&6; }
1.1 root 8204:
8205: # So? What about this header?
1.1.1.3 root 8206: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8207: yes:no: )
1.1.1.10! root 8208: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 8209: $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 8210: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 8211: $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
1.1.1.3 root 8212: ac_header_preproc=yes
8213: ;;
8214: no:yes:* )
1.1.1.10! root 8215: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 8216: $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 8217: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 8218: $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 8219: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 8220: $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 8221: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 8222: $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 8223: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 8224: $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 8225: { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 8226: $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1.1.6 root 8227:
1.1.1.3 root 8228: ;;
1.1 root 8229: esac
1.1.1.10! root 8230: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
! 8231: $as_echo_n "checking for $ac_header... " >&6; }
1.1.1.6 root 8232: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.10! root 8233: $as_echo_n "(cached) " >&6
1.1 root 8234: else
1.1.1.3 root 8235: eval "$as_ac_Header=\$ac_header_preproc"
1.1 root 8236: fi
1.1.1.10! root 8237: ac_res=`eval 'as_val=${'$as_ac_Header'}
! 8238: $as_echo "$as_val"'`
! 8239: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
! 8240: $as_echo "$ac_res" >&6; }
1.1 root 8241:
8242: fi
1.1.1.10! root 8243: as_val=`eval 'as_val=${'$as_ac_Header'}
! 8244: $as_echo "$as_val"'`
! 8245: if test "x$as_val" = x""yes; then
1.1 root 8246: cat >>confdefs.h <<_ACEOF
1.1.1.10! root 8247: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1 root 8248: _ACEOF
8249:
8250: fi
8251:
8252: done
8253:
1.1.1.10! root 8254: { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
! 8255: $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
1.1.1.3 root 8256: if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
1.1.1.10! root 8257: $as_echo_n "(cached) " >&6
1.1 root 8258: else
8259: if test "$cross_compiling" = yes; then
1.1.1.3 root 8260: ac_cv_func_malloc_0_nonnull=no
1.1 root 8261: else
8262: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 8263: /* confdefs.h. */
8264: _ACEOF
8265: cat confdefs.h >>conftest.$ac_ext
8266: cat >>conftest.$ac_ext <<_ACEOF
8267: /* end confdefs.h. */
1.1.1.9 root 8268: #if defined STDC_HEADERS || defined HAVE_STDLIB_H
1.1 root 8269: # include <stdlib.h>
8270: #else
8271: char *malloc ();
8272: #endif
8273:
8274: int
8275: main ()
8276: {
1.1.1.6 root 8277: return ! malloc (0);
1.1 root 8278: ;
8279: return 0;
8280: }
8281: _ACEOF
8282: rm -f conftest$ac_exeext
1.1.1.6 root 8283: if { (ac_try="$ac_link"
8284: case "(($ac_try" in
8285: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8286: *) ac_try_echo=$ac_try;;
8287: esac
1.1.1.10! root 8288: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 8289: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 8290: (eval "$ac_link") 2>&5
1.1 root 8291: ac_status=$?
1.1.1.10! root 8292: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 root 8293: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.6 root 8294: { (case "(($ac_try" in
8295: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296: *) ac_try_echo=$ac_try;;
8297: esac
1.1.1.10! root 8298: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 8299: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 8300: (eval "$ac_try") 2>&5
1.1 root 8301: ac_status=$?
1.1.1.10! root 8302: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 root 8303: (exit $ac_status); }; }; then
1.1.1.3 root 8304: ac_cv_func_malloc_0_nonnull=yes
1.1 root 8305: else
1.1.1.10! root 8306: $as_echo "$as_me: program exited with status $ac_status" >&5
! 8307: $as_echo "$as_me: failed program was:" >&5
1.1.1.3 root 8308: sed 's/^/| /' conftest.$ac_ext >&5
8309:
1.1 root 8310: ( exit $ac_status )
1.1.1.3 root 8311: ac_cv_func_malloc_0_nonnull=no
1.1 root 8312: fi
1.1.1.10! root 8313: rm -rf conftest.dSYM
1.1.1.6 root 8314: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 root 8315: fi
1.1.1.6 root 8316:
8317:
1.1 root 8318: fi
1.1.1.10! root 8319: { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
! 8320: $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
1.1.1.3 root 8321: if test $ac_cv_func_malloc_0_nonnull = yes; then
1.1 root 8322:
8323: cat >>confdefs.h <<\_ACEOF
8324: #define HAVE_MALLOC 1
8325: _ACEOF
8326:
1.1.1.3 root 8327: else
8328: cat >>confdefs.h <<\_ACEOF
8329: #define HAVE_MALLOC 0
8330: _ACEOF
8331:
1.1.1.6 root 8332: case " $LIBOBJS " in
1.1.1.3 root 8333: *" malloc.$ac_objext "* ) ;;
1.1.1.6 root 8334: *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
8335: ;;
1.1.1.3 root 8336: esac
8337:
8338:
8339: cat >>confdefs.h <<\_ACEOF
8340: #define malloc rpl_malloc
8341: _ACEOF
8342:
1.1 root 8343: fi
8344:
1.1.1.3 root 8345:
8346:
1.1.1.10! root 8347: { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
! 8348: $as_echo_n "checking for working memcmp... " >&6; }
1.1 root 8349: if test "${ac_cv_func_memcmp_working+set}" = set; then
1.1.1.10! root 8350: $as_echo_n "(cached) " >&6
1.1 root 8351: else
8352: if test "$cross_compiling" = yes; then
8353: ac_cv_func_memcmp_working=no
8354: else
8355: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 8356: /* confdefs.h. */
8357: _ACEOF
8358: cat confdefs.h >>conftest.$ac_ext
8359: cat >>conftest.$ac_ext <<_ACEOF
8360: /* end confdefs.h. */
8361: $ac_includes_default
1.1 root 8362: int
8363: main ()
8364: {
8365:
8366: /* Some versions of memcmp are not 8-bit clean. */
1.1.1.6 root 8367: char c0 = '\100', c1 = '\200', c2 = '\201';
1.1 root 8368: if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
1.1.1.6 root 8369: return 1;
1.1 root 8370:
8371: /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8372: or more and with at least one buffer not starting on a 4-byte boundary.
8373: William Lewis provided this test program. */
8374: {
8375: char foo[21];
8376: char bar[21];
8377: int i;
8378: for (i = 0; i < 4; i++)
8379: {
1.1.1.3 root 8380: char *a = foo + i;
8381: char *b = bar + i;
8382: strcpy (a, "--------01111111");
8383: strcpy (b, "--------10000000");
8384: if (memcmp (a, b, 16) >= 0)
1.1.1.6 root 8385: return 1;
1.1 root 8386: }
1.1.1.6 root 8387: return 0;
1.1 root 8388: }
8389:
8390: ;
8391: return 0;
8392: }
8393: _ACEOF
8394: rm -f conftest$ac_exeext
1.1.1.6 root 8395: if { (ac_try="$ac_link"
8396: case "(($ac_try" in
8397: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8398: *) ac_try_echo=$ac_try;;
8399: esac
1.1.1.10! root 8400: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 8401: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 8402: (eval "$ac_link") 2>&5
1.1 root 8403: ac_status=$?
1.1.1.10! root 8404: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 root 8405: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.6 root 8406: { (case "(($ac_try" in
8407: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8408: *) ac_try_echo=$ac_try;;
8409: esac
1.1.1.10! root 8410: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 8411: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 8412: (eval "$ac_try") 2>&5
1.1 root 8413: ac_status=$?
1.1.1.10! root 8414: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 root 8415: (exit $ac_status); }; }; then
8416: ac_cv_func_memcmp_working=yes
8417: else
1.1.1.10! root 8418: $as_echo "$as_me: program exited with status $ac_status" >&5
! 8419: $as_echo "$as_me: failed program was:" >&5
1.1.1.3 root 8420: sed 's/^/| /' conftest.$ac_ext >&5
8421:
1.1 root 8422: ( exit $ac_status )
8423: ac_cv_func_memcmp_working=no
8424: fi
1.1.1.10! root 8425: rm -rf conftest.dSYM
1.1.1.6 root 8426: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 root 8427: fi
1.1.1.6 root 8428:
8429:
1.1 root 8430: fi
1.1.1.10! root 8431: { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
! 8432: $as_echo "$ac_cv_func_memcmp_working" >&6; }
1.1.1.6 root 8433: test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
1.1.1.3 root 8434: *" memcmp.$ac_objext "* ) ;;
1.1.1.6 root 8435: *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8436: ;;
1.1.1.3 root 8437: esac
8438:
1.1 root 8439:
8440: #AC_FUNC_REALLOC
1.1.1.10! root 8441: { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
! 8442: $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
1.1 root 8443: if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
1.1.1.10! root 8444: $as_echo_n "(cached) " >&6
1.1 root 8445: else
8446: rm -f conftest.sym conftest.file
8447: echo >conftest.file
8448: if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
8449: if test "$cross_compiling" = yes; then
8450: ac_cv_func_lstat_dereferences_slashed_symlink=no
8451: else
8452: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 8453: /* confdefs.h. */
8454: _ACEOF
8455: cat confdefs.h >>conftest.$ac_ext
8456: cat >>conftest.$ac_ext <<_ACEOF
8457: /* end confdefs.h. */
1.1 root 8458: $ac_includes_default
8459: int
8460: main ()
8461: {
8462: struct stat sbuf;
8463: /* Linux will dereference the symlink and fail.
1.1.1.3 root 8464: That is better in the sense that it means we will not
8465: have to compile and use the lstat wrapper. */
1.1.1.6 root 8466: return lstat ("conftest.sym/", &sbuf) == 0;
1.1 root 8467: ;
8468: return 0;
8469: }
8470: _ACEOF
8471: rm -f conftest$ac_exeext
1.1.1.6 root 8472: if { (ac_try="$ac_link"
8473: case "(($ac_try" in
8474: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8475: *) ac_try_echo=$ac_try;;
8476: esac
1.1.1.10! root 8477: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 8478: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 8479: (eval "$ac_link") 2>&5
1.1 root 8480: ac_status=$?
1.1.1.10! root 8481: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 root 8482: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.6 root 8483: { (case "(($ac_try" in
8484: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8485: *) ac_try_echo=$ac_try;;
8486: esac
1.1.1.10! root 8487: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 8488: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 8489: (eval "$ac_try") 2>&5
1.1 root 8490: ac_status=$?
1.1.1.10! root 8491: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 root 8492: (exit $ac_status); }; }; then
8493: ac_cv_func_lstat_dereferences_slashed_symlink=yes
8494: else
1.1.1.10! root 8495: $as_echo "$as_me: program exited with status $ac_status" >&5
! 8496: $as_echo "$as_me: failed program was:" >&5
1.1.1.3 root 8497: sed 's/^/| /' conftest.$ac_ext >&5
8498:
1.1 root 8499: ( exit $ac_status )
8500: ac_cv_func_lstat_dereferences_slashed_symlink=no
8501: fi
1.1.1.10! root 8502: rm -rf conftest.dSYM
1.1.1.6 root 8503: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 root 8504: fi
1.1.1.6 root 8505:
8506:
1.1 root 8507: else
8508: # If the `ln -s' command failed, then we probably don't even
8509: # have an lstat function.
8510: ac_cv_func_lstat_dereferences_slashed_symlink=no
8511: fi
8512: rm -f conftest.sym conftest.file
8513:
8514: fi
1.1.1.10! root 8515: { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
! 8516: $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
1.1 root 8517:
8518: test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
8519:
8520: cat >>confdefs.h <<_ACEOF
8521: #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8522: _ACEOF
8523:
8524:
8525: if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
1.1.1.6 root 8526: case " $LIBOBJS " in
1.1.1.3 root 8527: *" lstat.$ac_objext "* ) ;;
1.1.1.6 root 8528: *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8529: ;;
1.1.1.3 root 8530: esac
8531:
1.1 root 8532: fi
8533:
1.1.1.10! root 8534: { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
! 8535: $as_echo_n "checking whether stat accepts an empty string... " >&6; }
1.1 root 8536: if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
1.1.1.10! root 8537: $as_echo_n "(cached) " >&6
1.1 root 8538: else
8539: if test "$cross_compiling" = yes; then
8540: ac_cv_func_stat_empty_string_bug=yes
8541: else
8542: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 8543: /* confdefs.h. */
8544: _ACEOF
8545: cat confdefs.h >>conftest.$ac_ext
8546: cat >>conftest.$ac_ext <<_ACEOF
8547: /* end confdefs.h. */
1.1 root 8548: $ac_includes_default
8549: int
8550: main ()
8551: {
8552: struct stat sbuf;
1.1.1.6 root 8553: return stat ("", &sbuf) == 0;
1.1 root 8554: ;
8555: return 0;
8556: }
8557: _ACEOF
8558: rm -f conftest$ac_exeext
1.1.1.6 root 8559: if { (ac_try="$ac_link"
8560: case "(($ac_try" in
8561: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8562: *) ac_try_echo=$ac_try;;
8563: esac
1.1.1.10! root 8564: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 8565: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 8566: (eval "$ac_link") 2>&5
1.1 root 8567: ac_status=$?
1.1.1.10! root 8568: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 root 8569: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.6 root 8570: { (case "(($ac_try" in
8571: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8572: *) ac_try_echo=$ac_try;;
8573: esac
1.1.1.10! root 8574: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 8575: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 8576: (eval "$ac_try") 2>&5
1.1 root 8577: ac_status=$?
1.1.1.10! root 8578: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 root 8579: (exit $ac_status); }; }; then
1.1.1.6 root 8580: ac_cv_func_stat_empty_string_bug=no
1.1 root 8581: else
1.1.1.10! root 8582: $as_echo "$as_me: program exited with status $ac_status" >&5
! 8583: $as_echo "$as_me: failed program was:" >&5
1.1.1.3 root 8584: sed 's/^/| /' conftest.$ac_ext >&5
8585:
1.1 root 8586: ( exit $ac_status )
1.1.1.6 root 8587: ac_cv_func_stat_empty_string_bug=yes
1.1 root 8588: fi
1.1.1.10! root 8589: rm -rf conftest.dSYM
1.1.1.6 root 8590: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 root 8591: fi
1.1.1.6 root 8592:
8593:
1.1 root 8594: fi
1.1.1.10! root 8595: { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
! 8596: $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
1.1 root 8597: if test $ac_cv_func_stat_empty_string_bug = yes; then
1.1.1.6 root 8598: case " $LIBOBJS " in
1.1.1.3 root 8599: *" stat.$ac_objext "* ) ;;
1.1.1.6 root 8600: *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8601: ;;
1.1.1.3 root 8602: esac
8603:
1.1 root 8604:
8605: cat >>confdefs.h <<_ACEOF
8606: #define HAVE_STAT_EMPTY_STRING_BUG 1
8607: _ACEOF
8608:
8609: fi
8610:
8611:
8612:
8613:
8614:
8615:
8616:
8617:
8618:
8619:
8620:
8621:
8622: for ac_func in getcwd memmove memset mkdir rmdir strcasecmp \
8623: strchr strerror strncasecmp strrchr strstr
8624: do
1.1.1.10! root 8625: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 8626: { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
! 8627: $as_echo_n "checking for $ac_func... " >&6; }
1.1.1.6 root 8628: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.10! root 8629: $as_echo_n "(cached) " >&6
1.1 root 8630: else
8631: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3 root 8632: /* confdefs.h. */
8633: _ACEOF
8634: cat confdefs.h >>conftest.$ac_ext
8635: cat >>conftest.$ac_ext <<_ACEOF
8636: /* end confdefs.h. */
8637: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8638: For example, HP-UX 11i <limits.h> declares gettimeofday. */
8639: #define $ac_func innocuous_$ac_func
8640:
1.1 root 8641: /* System header to define __stub macros and hopefully few prototypes,
1.1.1.3 root 8642: which can conflict with char $ac_func (); below.
8643: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8644: <limits.h> exists even on freestanding compilers. */
8645:
8646: #ifdef __STDC__
8647: # include <limits.h>
8648: #else
8649: # include <assert.h>
8650: #endif
8651:
8652: #undef $ac_func
8653:
1.1.1.6 root 8654: /* Override any GCC internal prototype to avoid an error.
8655: Use char because int might match the return type of a GCC
8656: builtin and then its argument prototype would still apply. */
1.1 root 8657: #ifdef __cplusplus
8658: extern "C"
8659: #endif
8660: char $ac_func ();
8661: /* The GNU C library defines this for functions which it implements
8662: to always fail with ENOSYS. Some functions are actually named
8663: something starting with __ and the normal name is an alias. */
1.1.1.6 root 8664: #if defined __stub_$ac_func || defined __stub___$ac_func
1.1 root 8665: choke me
8666: #endif
8667:
1.1.1.3 root 8668: int
8669: main ()
8670: {
1.1.1.6 root 8671: return $ac_func ();
1.1 root 8672: ;
8673: return 0;
8674: }
8675: _ACEOF
8676: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.6 root 8677: if { (ac_try="$ac_link"
8678: case "(($ac_try" in
8679: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8680: *) ac_try_echo=$ac_try;;
8681: esac
1.1.1.10! root 8682: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 8683: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 8684: (eval "$ac_link") 2>conftest.er1
1.1 root 8685: ac_status=$?
1.1.1.3 root 8686: grep -v '^ *+' conftest.er1 >conftest.err
8687: rm -f conftest.er1
8688: cat conftest.err >&5
1.1.1.10! root 8689: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 8690: (exit $ac_status); } && {
8691: test -z "$ac_c_werror_flag" ||
8692: test ! -s conftest.err
1.1.1.10! root 8693: } && test -s conftest$ac_exeext && {
! 8694: test "$cross_compiling" = yes ||
! 8695: $as_test_x conftest$ac_exeext
! 8696: }; then
1.1 root 8697: eval "$as_ac_var=yes"
8698: else
1.1.1.10! root 8699: $as_echo "$as_me: failed program was:" >&5
1.1.1.3 root 8700: sed 's/^/| /' conftest.$ac_ext >&5
8701:
1.1.1.6 root 8702: eval "$as_ac_var=no"
1.1 root 8703: fi
1.1.1.6 root 8704:
1.1.1.10! root 8705: rm -rf conftest.dSYM
1.1.1.9 root 8706: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.3 root 8707: conftest$ac_exeext conftest.$ac_ext
1.1 root 8708: fi
1.1.1.10! root 8709: ac_res=`eval 'as_val=${'$as_ac_var'}
! 8710: $as_echo "$as_val"'`
! 8711: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
! 8712: $as_echo "$ac_res" >&6; }
! 8713: as_val=`eval 'as_val=${'$as_ac_var'}
! 8714: $as_echo "$as_val"'`
! 8715: if test "x$as_val" = x""yes; then
1.1 root 8716: cat >>confdefs.h <<_ACEOF
1.1.1.10! root 8717: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 root 8718: _ACEOF
8719:
8720: else
1.1.1.10! root 8721: { { $as_echo "$as_me:$LINENO: error: A necessary function could not be found." >&5
! 8722: $as_echo "$as_me: error: A necessary function could not be found." >&2;}
1.1 root 8723: { (exit 1); exit 1; }; }
8724: fi
8725: done
8726:
8727:
8728:
1.1.1.10! root 8729:
! 8730: for ac_func in cfmakeraw setenv select
1.1.1.6 root 8731: do
1.1.1.10! root 8732: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 8733: { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
! 8734: $as_echo_n "checking for $ac_func... " >&6; }
1.1.1.6 root 8735: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.10! root 8736: $as_echo_n "(cached) " >&6
1.1.1.6 root 8737: else
8738: cat >conftest.$ac_ext <<_ACEOF
8739: /* confdefs.h. */
8740: _ACEOF
8741: cat confdefs.h >>conftest.$ac_ext
8742: cat >>conftest.$ac_ext <<_ACEOF
8743: /* end confdefs.h. */
8744: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8745: For example, HP-UX 11i <limits.h> declares gettimeofday. */
8746: #define $ac_func innocuous_$ac_func
8747:
8748: /* System header to define __stub macros and hopefully few prototypes,
8749: which can conflict with char $ac_func (); below.
8750: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8751: <limits.h> exists even on freestanding compilers. */
8752:
8753: #ifdef __STDC__
8754: # include <limits.h>
8755: #else
8756: # include <assert.h>
8757: #endif
8758:
8759: #undef $ac_func
8760:
8761: /* Override any GCC internal prototype to avoid an error.
8762: Use char because int might match the return type of a GCC
8763: builtin and then its argument prototype would still apply. */
8764: #ifdef __cplusplus
8765: extern "C"
8766: #endif
8767: char $ac_func ();
8768: /* The GNU C library defines this for functions which it implements
8769: to always fail with ENOSYS. Some functions are actually named
8770: something starting with __ and the normal name is an alias. */
8771: #if defined __stub_$ac_func || defined __stub___$ac_func
8772: choke me
8773: #endif
8774:
8775: int
8776: main ()
8777: {
8778: return $ac_func ();
8779: ;
8780: return 0;
8781: }
8782: _ACEOF
8783: rm -f conftest.$ac_objext conftest$ac_exeext
8784: if { (ac_try="$ac_link"
8785: case "(($ac_try" in
8786: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8787: *) ac_try_echo=$ac_try;;
8788: esac
1.1.1.10! root 8789: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 8790: $as_echo "$ac_try_echo") >&5
1.1.1.6 root 8791: (eval "$ac_link") 2>conftest.er1
8792: ac_status=$?
8793: grep -v '^ *+' conftest.er1 >conftest.err
8794: rm -f conftest.er1
8795: cat conftest.err >&5
1.1.1.10! root 8796: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 8797: (exit $ac_status); } && {
8798: test -z "$ac_c_werror_flag" ||
8799: test ! -s conftest.err
1.1.1.10! root 8800: } && test -s conftest$ac_exeext && {
! 8801: test "$cross_compiling" = yes ||
! 8802: $as_test_x conftest$ac_exeext
! 8803: }; then
1.1.1.9 root 8804: eval "$as_ac_var=yes"
8805: else
1.1.1.10! root 8806: $as_echo "$as_me: failed program was:" >&5
1.1.1.9 root 8807: sed 's/^/| /' conftest.$ac_ext >&5
8808:
8809: eval "$as_ac_var=no"
8810: fi
8811:
1.1.1.10! root 8812: rm -rf conftest.dSYM
1.1.1.9 root 8813: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8814: conftest$ac_exeext conftest.$ac_ext
8815: fi
1.1.1.10! root 8816: ac_res=`eval 'as_val=${'$as_ac_var'}
! 8817: $as_echo "$as_val"'`
! 8818: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
! 8819: $as_echo "$ac_res" >&6; }
! 8820: as_val=`eval 'as_val=${'$as_ac_var'}
! 8821: $as_echo "$as_val"'`
! 8822: if test "x$as_val" = x""yes; then
1.1.1.9 root 8823: cat >>confdefs.h <<_ACEOF
1.1.1.10! root 8824: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1.1.9 root 8825: _ACEOF
8826:
8827: fi
8828: done
8829:
8830:
8831:
8832:
8833: for ac_func in posix_memalign memalign valloc
8834: do
1.1.1.10! root 8835: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 8836: { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
! 8837: $as_echo_n "checking for $ac_func... " >&6; }
1.1.1.9 root 8838: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.10! root 8839: $as_echo_n "(cached) " >&6
1.1.1.9 root 8840: else
8841: cat >conftest.$ac_ext <<_ACEOF
8842: /* confdefs.h. */
8843: _ACEOF
8844: cat confdefs.h >>conftest.$ac_ext
8845: cat >>conftest.$ac_ext <<_ACEOF
8846: /* end confdefs.h. */
8847: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8848: For example, HP-UX 11i <limits.h> declares gettimeofday. */
8849: #define $ac_func innocuous_$ac_func
8850:
8851: /* System header to define __stub macros and hopefully few prototypes,
8852: which can conflict with char $ac_func (); below.
8853: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8854: <limits.h> exists even on freestanding compilers. */
8855:
8856: #ifdef __STDC__
8857: # include <limits.h>
8858: #else
8859: # include <assert.h>
8860: #endif
8861:
8862: #undef $ac_func
8863:
8864: /* Override any GCC internal prototype to avoid an error.
8865: Use char because int might match the return type of a GCC
8866: builtin and then its argument prototype would still apply. */
8867: #ifdef __cplusplus
8868: extern "C"
8869: #endif
8870: char $ac_func ();
8871: /* The GNU C library defines this for functions which it implements
8872: to always fail with ENOSYS. Some functions are actually named
8873: something starting with __ and the normal name is an alias. */
8874: #if defined __stub_$ac_func || defined __stub___$ac_func
8875: choke me
8876: #endif
8877:
8878: int
8879: main ()
8880: {
8881: return $ac_func ();
8882: ;
8883: return 0;
8884: }
8885: _ACEOF
8886: rm -f conftest.$ac_objext conftest$ac_exeext
8887: if { (ac_try="$ac_link"
8888: case "(($ac_try" in
1.1.1.8 root 8889: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8890: *) ac_try_echo=$ac_try;;
8891: esac
1.1.1.10! root 8892: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 8893: $as_echo "$ac_try_echo") >&5
1.1.1.9 root 8894: (eval "$ac_link") 2>conftest.er1
1.1.1.8 root 8895: ac_status=$?
1.1.1.9 root 8896: grep -v '^ *+' conftest.er1 >conftest.err
8897: rm -f conftest.er1
8898: cat conftest.err >&5
1.1.1.10! root 8899: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 8900: (exit $ac_status); } && {
8901: test -z "$ac_c_werror_flag" ||
8902: test ! -s conftest.err
1.1.1.10! root 8903: } && test -s conftest$ac_exeext && {
! 8904: test "$cross_compiling" = yes ||
! 8905: $as_test_x conftest$ac_exeext
! 8906: }; then
1.1.1.6 root 8907: eval "$as_ac_var=yes"
8908: else
1.1.1.10! root 8909: $as_echo "$as_me: failed program was:" >&5
1.1.1.6 root 8910: sed 's/^/| /' conftest.$ac_ext >&5
8911:
8912: eval "$as_ac_var=no"
8913: fi
8914:
1.1.1.10! root 8915: rm -rf conftest.dSYM
1.1.1.9 root 8916: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.6 root 8917: conftest$ac_exeext conftest.$ac_ext
8918: fi
1.1.1.10! root 8919: ac_res=`eval 'as_val=${'$as_ac_var'}
! 8920: $as_echo "$as_val"'`
! 8921: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
! 8922: $as_echo "$ac_res" >&6; }
! 8923: as_val=`eval 'as_val=${'$as_ac_var'}
! 8924: $as_echo "$as_val"'`
! 8925: if test "x$as_val" = x""yes; then
1.1.1.6 root 8926: cat >>confdefs.h <<_ACEOF
1.1.1.10! root 8927: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1.1.6 root 8928: _ACEOF
8929:
8930: fi
8931: done
8932:
8933:
1.1.1.10! root 8934: { $as_echo "$as_me:$LINENO: checking for unix domain sockets" >&5
! 8935: $as_echo_n "checking for unix domain sockets... " >&6; }
1.1.1.8 root 8936: cat >conftest.$ac_ext <<_ACEOF
8937:
8938: #include <sys/socket.h>
8939: #include <sys/un.h>
8940: int main() { return socket(AF_UNIX, SOCK_STREAM, 0); }
8941: _ACEOF
8942: rm -f conftest.$ac_objext
8943: if { (ac_try="$ac_compile"
8944: case "(($ac_try" in
8945: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8946: *) ac_try_echo=$ac_try;;
8947: esac
1.1.1.10! root 8948: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
! 8949: $as_echo "$ac_try_echo") >&5
1.1.1.8 root 8950: (eval "$ac_compile") 2>conftest.er1
8951: ac_status=$?
8952: grep -v '^ *+' conftest.er1 >conftest.err
8953: rm -f conftest.er1
8954: cat conftest.err >&5
1.1.1.10! root 8955: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.9 root 8956: (exit $ac_status); } && {
8957: test -z "$ac_c_werror_flag" ||
8958: test ! -s conftest.err
8959: } && test -s conftest.$ac_objext; then
1.1.1.10! root 8960: { $as_echo "$as_me:$LINENO: result: yes" >&5
! 8961: $as_echo "yes" >&6; }
1.1.1.8 root 8962: cat >>confdefs.h <<\_ACEOF
8963: #define HAVE_UNIX_DOMAIN_SOCKETS 1
8964: _ACEOF
8965:
8966: else
1.1.1.10! root 8967: $as_echo "$as_me: failed program was:" >&5
1.1.1.8 root 8968: sed 's/^/| /' conftest.$ac_ext >&5
8969:
1.1.1.10! root 8970: { $as_echo "$as_me:$LINENO: result: no" >&5
! 8971: $as_echo "no" >&6; }
1.1.1.8 root 8972: fi
8973:
8974: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8975:
1.1 root 8976:
8977:
1.1.1.6 root 8978: # Convert e.g. /usr/share to /usr/share/hatari :
1.1 root 8979: if test "${datadir}" = '${prefix}/share'; then
8980: datadir='${prefix}/share/hatari'
8981: fi
1.1.1.6 root 8982: if test "${datadir}" = '${datarootdir}'; then
8983: datadir='${datarootdir}/hatari'
8984: fi
8985:
8986: for _lcl_i in bindir:datadir:bin2datadir; do
8987: _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
8988: _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
8989: _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
8990: _lcl_receval="$_lcl_from"
8991: _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
8992: test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
8993: _lcl_receval_old=''
8994: while test "$_lcl_receval_old" != "$_lcl_receval"; do
8995: _lcl_receval_old="$_lcl_receval"
8996: eval _lcl_receval="\"$_lcl_receval\""
8997: done
8998: echo "$_lcl_receval")`
8999: _lcl_receval="$_lcl_to"
9000: _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9001: test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9002: _lcl_receval_old=''
9003: while test "$_lcl_receval_old" != "$_lcl_receval"; do
9004: _lcl_receval_old="$_lcl_receval"
9005: eval _lcl_receval="\"$_lcl_receval\""
9006: done
9007: echo "$_lcl_receval")`
9008: _lcl_notation="$_lcl_from$_lcl_to"
9009: case ":$_lcl_from:" in
9010: # change empty paths to '.'
9011: ::) _lcl_from='.' ;;
9012: # strip trailing slashes
9013: :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
9014: :*:) ;;
9015: esac
9016: # squeze repeated slashes
9017: case '/' in
9018: # if the path contains any backslashes, turn slashes into backslashes
9019: *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
9020: # if the path contains slashes, also turn backslashes into slashes
9021: *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9022: esac
9023: case ":$_lcl_to:" in
9024: # change empty paths to '.'
9025: ::) _lcl_to='.' ;;
9026: # strip trailing slashes
9027: :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
9028: :*:) ;;
9029: esac
9030: # squeze repeated slashes
9031: case '/' in
9032: # if the path contains any backslashes, turn slashes into backslashes
9033: *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
9034: # if the path contains slashes, also turn backslashes into slashes
9035: *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9036: esac
9037: _lcl_common_prefix=''
9038: _lcl_second_prefix_match=''
9039: while test "$_lcl_second_prefix_match" != 0; do
9040: _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
9041: _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
9042: if test "$_lcl_second_prefix_match" != 0; then
9043: if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
9044: _lcl_common_prefix="$_lcl_first_prefix"
9045: else
9046: _lcl_second_prefix_match=0
9047: fi
9048: fi
9049: done
9050: _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
9051: _lcl_first_rel=''
9052: _lcl_tmp='xxx'
9053: while test "$_lcl_tmp" != ''; do
9054: _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
9055: if test "$_lcl_first_suffix" != ''; then
9056: _lcl_first_suffix="$_lcl_tmp"
9057: _lcl_first_rel="../$_lcl_first_rel"
9058: fi
9059: done
9060: _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
9061: _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
9062: case ":$_lcl_result_tmp:" in
9063: # change empty paths to '.'
9064: ::) _lcl_result_tmp='.' ;;
9065: # strip trailing slashes
9066: :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
9067: :*:) ;;
9068: esac
9069: # squeze repeated slashes
9070: case "$_lcl_notation" in
9071: # if the path contains any backslashes, turn slashes into backslashes
9072: *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
9073: # if the path contains slashes, also turn backslashes into slashes
9074: *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
9075: esac
9076: eval $_lcl_result_var='$_lcl_result_tmp'
9077: done
9078:
9079: cat >>confdefs.h <<_ACEOF
9080: #define BIN2DATADIR "${bin2datadir}"
9081: _ACEOF
9082:
1.1 root 9083:
9084:
9085:
9086:
9087:
1.1.1.6 root 9088: ac_config_files="$ac_config_files Makefile.cnf"
9089:
1.1 root 9090: cat >confcache <<\_ACEOF
9091: # This file is a shell script that caches the results of configure
9092: # tests run on this system so they can be shared between configure
9093: # scripts and configure runs, see configure's option --config-cache.
9094: # It is not useful on other systems. If it contains results you don't
9095: # want to keep, you may remove or edit it.
9096: #
9097: # config.status only pays attention to the cache file if you give it
9098: # the --recheck option to rerun configure.
9099: #
1.1.1.3 root 9100: # `ac_cv_env_foo' variables (set or unset) will be overridden when
1.1 root 9101: # loading this file, other *unset* `ac_cv_foo' will be assigned the
9102: # following values.
9103:
9104: _ACEOF
9105:
9106: # The following way of writing the cache mishandles newlines in values,
9107: # but we know of no workaround that is simple, portable, and efficient.
1.1.1.6 root 9108: # So, we kill variables containing newlines.
1.1 root 9109: # Ultrix sh set writes to stderr and can't be redirected directly,
9110: # and sets the high bit in the cache file unless we assign to the vars.
1.1.1.6 root 9111: (
9112: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9113: eval ac_val=\$$ac_var
9114: case $ac_val in #(
9115: *${as_nl}*)
9116: case $ac_var in #(
1.1.1.10! root 9117: *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
! 9118: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1.1.6 root 9119: esac
9120: case $ac_var in #(
9121: _ | IFS | as_nl) ;; #(
1.1.1.10! root 9122: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1.1.1.6 root 9123: *) $as_unset $ac_var ;;
9124: esac ;;
9125: esac
9126: done
9127:
1.1 root 9128: (set) 2>&1 |
1.1.1.6 root 9129: case $as_nl`(ac_space=' '; set) 2>&1` in #(
9130: *${as_nl}ac_space=\ *)
1.1 root 9131: # `set' does not quote correctly, so add quotes (double-quote
9132: # substitution turns \\\\ into \\, and sed turns \\ into \).
9133: sed -n \
1.1.1.3 root 9134: "s/'/'\\\\''/g;
9135: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.1.1.6 root 9136: ;; #(
1.1 root 9137: *)
9138: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.1.1.6 root 9139: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.1 root 9140: ;;
1.1.1.6 root 9141: esac |
9142: sort
9143: ) |
1.1 root 9144: sed '
1.1.1.6 root 9145: /^ac_cv_env_/b end
1.1 root 9146: t clear
1.1.1.6 root 9147: :clear
1.1 root 9148: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9149: t end
1.1.1.6 root 9150: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9151: :end' >>confcache
9152: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9153: if test -w "$cache_file"; then
9154: test "x$cache_file" != "x/dev/null" &&
1.1.1.10! root 9155: { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
! 9156: $as_echo "$as_me: updating cache $cache_file" >&6;}
1.1 root 9157: cat confcache >$cache_file
9158: else
1.1.1.10! root 9159: { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
! 9160: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 root 9161: fi
9162: fi
9163: rm -f confcache
9164:
9165: test "x$prefix" = xNONE && prefix=$ac_default_prefix
9166: # Let make expand exec_prefix.
9167: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9168:
1.1.1.6 root 9169: DEFS=-DHAVE_CONFIG_H
1.1 root 9170:
1.1.1.3 root 9171: ac_libobjs=
9172: ac_ltlibobjs=
9173: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9174: # 1. Remove the extension, and $U if already installed.
1.1.1.6 root 9175: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.1.1.10! root 9176: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1.1.1.6 root 9177: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9178: # will be set to the directory where LIBOBJS objects are built.
9179: ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9180: ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
1.1.1.3 root 9181: done
9182: LIBOBJS=$ac_libobjs
9183:
9184: LTLIBOBJS=$ac_ltlibobjs
9185:
9186:
1.1 root 9187:
9188: : ${CONFIG_STATUS=./config.status}
1.1.1.10! root 9189: ac_write_fail=0
1.1 root 9190: ac_clean_files_save=$ac_clean_files
9191: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.1.1.10! root 9192: { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
! 9193: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
! 9194: cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 root 9195: #! $SHELL
9196: # Generated by $as_me.
9197: # Run this file to recreate the current configuration.
9198: # Compiler output produced by configure, useful for debugging
9199: # configure, is in config.log if it exists.
9200:
9201: debug=false
1.1.1.3 root 9202: ac_cs_recheck=false
9203: ac_cs_silent=false
1.1 root 9204: SHELL=\${CONFIG_SHELL-$SHELL}
9205: _ACEOF
9206:
1.1.1.10! root 9207: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 root 9208: ## --------------------- ##
9209: ## M4sh Initialization. ##
9210: ## --------------------- ##
9211:
1.1.1.9 root 9212: # Be more Bourne compatible
9213: DUALCASE=1; export DUALCASE # for MKS sh
1.1 root 9214: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9215: emulate sh
9216: NULLCMD=:
1.1.1.10! root 9217: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1.1.3 root 9218: # is contrary to our usage. Disable this feature.
9219: alias -g '${1+"$@"}'='"$@"'
1.1.1.6 root 9220: setopt NO_GLOB_SUBST
9221: else
1.1.1.9 root 9222: case `(set -o) 2>/dev/null` in
9223: *posix*) set -o posix ;;
9224: esac
9225:
1.1.1.6 root 9226: fi
1.1.1.9 root 9227:
9228:
1.1.1.6 root 9229:
9230:
9231: # PATH needs CR
9232: # Avoid depending upon Character Ranges.
9233: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9234: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9235: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9236: as_cr_digits='0123456789'
9237: as_cr_alnum=$as_cr_Letters$as_cr_digits
9238:
1.1.1.10! root 9239: as_nl='
! 9240: '
! 9241: export as_nl
! 9242: # Printing a long string crashes Solaris 7 /usr/bin/printf.
! 9243: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
! 9244: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
! 9245: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
! 9246: if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
! 9247: as_echo='printf %s\n'
! 9248: as_echo_n='printf %s'
! 9249: else
! 9250: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
! 9251: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
! 9252: as_echo_n='/usr/ucb/echo -n'
1.1.1.6 root 9253: else
1.1.1.10! root 9254: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
! 9255: as_echo_n_body='eval
! 9256: arg=$1;
! 9257: case $arg in
! 9258: *"$as_nl"*)
! 9259: expr "X$arg" : "X\\(.*\\)$as_nl";
! 9260: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
! 9261: esac;
! 9262: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
! 9263: '
! 9264: export as_echo_n_body
! 9265: as_echo_n='sh -c $as_echo_n_body as_echo'
1.1.1.6 root 9266: fi
1.1.1.10! root 9267: export as_echo_body
! 9268: as_echo='sh -c $as_echo_body as_echo'
! 9269: fi
! 9270:
! 9271: # The user is always right.
! 9272: if test "${PATH_SEPARATOR+set}" != set; then
! 9273: PATH_SEPARATOR=:
! 9274: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
! 9275: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
! 9276: PATH_SEPARATOR=';'
! 9277: }
1.1 root 9278: fi
9279:
9280: # Support unset when possible.
1.1.1.3 root 9281: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.1 root 9282: as_unset=unset
9283: else
9284: as_unset=false
9285: fi
9286:
1.1.1.3 root 9287:
1.1.1.6 root 9288: # IFS
9289: # We need space, tab and new line, in precisely that order. Quoting is
9290: # there to prevent editors from complaining about space-tab.
9291: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9292: # splitting by setting IFS to empty value.)
9293: IFS=" "" $as_nl"
9294:
9295: # Find who we are. Look in the path if we contain no directory separator.
9296: case $0 in
9297: *[\\/]* ) as_myself=$0 ;;
9298: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9299: for as_dir in $PATH
9300: do
9301: IFS=$as_save_IFS
9302: test -z "$as_dir" && as_dir=.
9303: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9304: done
9305: IFS=$as_save_IFS
9306:
9307: ;;
9308: esac
9309: # We did not find ourselves, most probably we were run as `sh COMMAND'
9310: # in which case we are not to be found in the path.
9311: if test "x$as_myself" = x; then
9312: as_myself=$0
9313: fi
9314: if test ! -f "$as_myself"; then
1.1.1.10! root 9315: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1.1.1.6 root 9316: { (exit 1); exit 1; }
9317: fi
9318:
1.1.1.3 root 9319: # Work around bugs in pre-3.0 UWIN ksh.
1.1.1.6 root 9320: for as_var in ENV MAIL MAILPATH
9321: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9322: done
1.1.1.3 root 9323: PS1='$ '
9324: PS2='> '
9325: PS4='+ '
9326:
9327: # NLS nuisances.
1.1.1.10! root 9328: LC_ALL=C
! 9329: export LC_ALL
! 9330: LANGUAGE=C
! 9331: export LANGUAGE
1.1.1.3 root 9332:
9333: # Required to use basename.
1.1.1.6 root 9334: if expr a : '\(a\)' >/dev/null 2>&1 &&
9335: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1.1.3 root 9336: as_expr=expr
9337: else
9338: as_expr=false
9339: fi
9340:
1.1.1.6 root 9341: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.1.1.3 root 9342: as_basename=basename
9343: else
9344: as_basename=false
9345: fi
1.1 root 9346:
9347:
9348: # Name of the executable.
1.1.1.6 root 9349: as_me=`$as_basename -- "$0" ||
1.1 root 9350: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9351: X"$0" : 'X\(//\)$' \| \
1.1.1.6 root 9352: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.1.1.10! root 9353: $as_echo X/"$0" |
1.1.1.6 root 9354: sed '/^.*\/\([^/][^/]*\)\/*$/{
9355: s//\1/
9356: q
9357: }
9358: /^X\/\(\/\/\)$/{
9359: s//\1/
9360: q
9361: }
9362: /^X\/\(\/\).*/{
9363: s//\1/
9364: q
9365: }
9366: s/.*/./; q'`
1.1 root 9367:
1.1.1.6 root 9368: # CDPATH.
9369: $as_unset CDPATH
1.1 root 9370:
9371:
9372:
9373: as_lineno_1=$LINENO
9374: as_lineno_2=$LINENO
9375: test "x$as_lineno_1" != "x$as_lineno_2" &&
1.1.1.6 root 9376: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1.1 root 9377:
9378: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9379: # uniformly replaced by the line number. The first 'sed' inserts a
1.1.1.6 root 9380: # line-number line after each line using $LINENO; the second 'sed'
9381: # does the real work. The second script uses 'N' to pair each
9382: # line-number line with the line containing $LINENO, and appends
9383: # trailing '-' during substitution so that $LINENO is not a special
9384: # case at line end.
1.1 root 9385: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1.1.1.6 root 9386: # scripts with optimization help from Paolo Bonzini. Blame Lee
9387: # E. McMahon (1931-1989) for sed's syntax. :-)
9388: sed -n '
9389: p
9390: /[$]LINENO/=
9391: ' <$as_myself |
1.1 root 9392: sed '
1.1.1.6 root 9393: s/[$]LINENO.*/&-/
9394: t lineno
9395: b
9396: :lineno
1.1 root 9397: N
1.1.1.6 root 9398: :loop
9399: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.1 root 9400: t loop
1.1.1.6 root 9401: s/-\n.*//
1.1 root 9402: ' >$as_me.lineno &&
1.1.1.6 root 9403: chmod +x "$as_me.lineno" ||
1.1.1.10! root 9404: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
1.1 root 9405: { (exit 1); exit 1; }; }
9406:
9407: # Don't try to exec as it changes $[0], causing all sort of problems
9408: # (the dirname of $[0] is not the place where we might find the
1.1.1.6 root 9409: # original and so on. Autoconf is especially sensitive to this).
9410: . "./$as_me.lineno"
1.1 root 9411: # Exit status is that of the last command.
9412: exit
9413: }
9414:
9415:
1.1.1.6 root 9416: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9417: as_dirname=dirname
9418: else
9419: as_dirname=false
9420: fi
9421:
9422: ECHO_C= ECHO_N= ECHO_T=
9423: case `echo -n x` in
9424: -n*)
9425: case `echo 'x\c'` in
9426: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9427: *) ECHO_C='\c';;
9428: esac;;
9429: *)
9430: ECHO_N='-n';;
1.1 root 9431: esac
1.1.1.6 root 9432: if expr a : '\(a\)' >/dev/null 2>&1 &&
9433: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1 root 9434: as_expr=expr
9435: else
9436: as_expr=false
9437: fi
9438:
9439: rm -f conf$$ conf$$.exe conf$$.file
1.1.1.6 root 9440: if test -d conf$$.dir; then
9441: rm -f conf$$.dir/conf$$.file
9442: else
9443: rm -f conf$$.dir
1.1.1.10! root 9444: mkdir conf$$.dir 2>/dev/null
1.1.1.6 root 9445: fi
1.1.1.10! root 9446: if (echo >conf$$.file) 2>/dev/null; then
! 9447: if ln -s conf$$.file conf$$ 2>/dev/null; then
! 9448: as_ln_s='ln -s'
! 9449: # ... but there are two gotchas:
! 9450: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
! 9451: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
! 9452: # In both cases, we have to default to `cp -p'.
! 9453: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
! 9454: as_ln_s='cp -p'
! 9455: elif ln conf$$.file conf$$ 2>/dev/null; then
! 9456: as_ln_s=ln
! 9457: else
1.1 root 9458: as_ln_s='cp -p'
1.1.1.10! root 9459: fi
1.1 root 9460: else
9461: as_ln_s='cp -p'
9462: fi
1.1.1.6 root 9463: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9464: rmdir conf$$.dir 2>/dev/null
1.1 root 9465:
1.1.1.3 root 9466: if mkdir -p . 2>/dev/null; then
9467: as_mkdir_p=:
9468: else
9469: test -d ./-p && rmdir ./-p
9470: as_mkdir_p=false
9471: fi
9472:
1.1.1.9 root 9473: if test -x / >/dev/null 2>&1; then
9474: as_test_x='test -x'
1.1.1.6 root 9475: else
1.1.1.9 root 9476: if ls -dL / >/dev/null 2>&1; then
9477: as_ls_L_option=L
9478: else
9479: as_ls_L_option=
9480: fi
9481: as_test_x='
9482: eval sh -c '\''
9483: if test -d "$1"; then
1.1.1.10! root 9484: test -d "$1/.";
1.1.1.9 root 9485: else
9486: case $1 in
1.1.1.10! root 9487: -*)set "./$1";;
1.1.1.9 root 9488: esac;
9489: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
9490: ???[sx]*):;;*)false;;esac;fi
9491: '\'' sh
9492: '
1.1.1.6 root 9493: fi
1.1.1.9 root 9494: as_executable_p=$as_test_x
1.1 root 9495:
9496: # Sed expression to map a string onto a valid CPP name.
1.1.1.3 root 9497: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.1 root 9498:
9499: # Sed expression to map a string onto a valid variable name.
1.1.1.3 root 9500: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.1 root 9501:
9502:
9503: exec 6>&1
9504:
1.1.1.6 root 9505: # Save the log message, to keep $[0] and so on meaningful, and to
1.1 root 9506: # report actual input values of CONFIG_FILES etc. instead of their
1.1.1.6 root 9507: # values after options handling.
9508: ac_log="
1.1.1.10! root 9509: This file was extended by hatari $as_me 1.3.0, which was
! 9510: generated by GNU Autoconf 2.63. Invocation command line was
1.1 root 9511:
9512: CONFIG_FILES = $CONFIG_FILES
9513: CONFIG_HEADERS = $CONFIG_HEADERS
9514: CONFIG_LINKS = $CONFIG_LINKS
9515: CONFIG_COMMANDS = $CONFIG_COMMANDS
9516: $ $0 $@
9517:
1.1.1.6 root 9518: on `(hostname || uname -n) 2>/dev/null | sed 1q`
9519: "
9520:
1.1 root 9521: _ACEOF
9522:
1.1.1.10! root 9523: case $ac_config_files in *"
! 9524: "*) set x $ac_config_files; shift; ac_config_files=$*;;
! 9525: esac
! 9526:
! 9527: case $ac_config_headers in *"
! 9528: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
! 9529: esac
! 9530:
! 9531:
! 9532: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 root 9533: # Files that config.status was made for.
1.1.1.6 root 9534: config_files="$ac_config_files"
9535: config_headers="$ac_config_headers"
1.1 root 9536:
1.1.1.6 root 9537: _ACEOF
1.1 root 9538:
1.1.1.10! root 9539: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 root 9540: ac_cs_usage="\
9541: \`$as_me' instantiates files from templates according to the
9542: current configuration.
9543:
1.1.1.10! root 9544: Usage: $0 [OPTION]... [FILE]...
1.1 root 9545:
9546: -h, --help print this help, then exit
1.1.1.9 root 9547: -V, --version print version number and configuration settings, then exit
1.1.1.10! root 9548: -q, --quiet, --silent
! 9549: do not print progress messages
1.1 root 9550: -d, --debug don't remove temporary files
9551: --recheck update $as_me by reconfiguring in the same conditions
1.1.1.10! root 9552: --file=FILE[:TEMPLATE]
! 9553: instantiate the configuration file FILE
! 9554: --header=FILE[:TEMPLATE]
! 9555: instantiate the configuration header FILE
1.1 root 9556:
9557: Configuration files:
9558: $config_files
9559:
1.1.1.6 root 9560: Configuration headers:
9561: $config_headers
9562:
1.1 root 9563: Report bugs to <[email protected]>."
9564:
1.1.1.6 root 9565: _ACEOF
1.1.1.10! root 9566: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 root 9567: ac_cs_version="\\
1.1.1.10! root 9568: hatari config.status 1.3.0
! 9569: configured by $0, generated by GNU Autoconf 2.63,
! 9570: with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1.1 root 9571:
1.1.1.10! root 9572: Copyright (C) 2008 Free Software Foundation, Inc.
1.1 root 9573: This config.status script is free software; the Free Software Foundation
9574: gives unlimited permission to copy, distribute and modify it."
1.1.1.6 root 9575:
9576: ac_pwd='$ac_pwd'
9577: srcdir='$srcdir'
9578: INSTALL='$INSTALL'
1.1.1.10! root 9579: test -n "\$AWK" || AWK=awk
1.1 root 9580: _ACEOF
9581:
1.1.1.10! root 9582: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
! 9583: # The default lists apply if the user does not specify any file.
1.1 root 9584: ac_need_defaults=:
9585: while test $# != 0
9586: do
9587: case $1 in
9588: --*=*)
1.1.1.6 root 9589: ac_option=`expr "X$1" : 'X\([^=]*\)='`
9590: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1.1.1.3 root 9591: ac_shift=:
9592: ;;
1.1.1.6 root 9593: *)
1.1.1.3 root 9594: ac_option=$1
9595: ac_optarg=$2
9596: ac_shift=shift
1.1 root 9597: ;;
9598: esac
9599:
1.1.1.3 root 9600: case $ac_option in
1.1 root 9601: # Handling of the options.
1.1.1.3 root 9602: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9603: ac_cs_recheck=: ;;
1.1.1.6 root 9604: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.1.1.10! root 9605: $as_echo "$ac_cs_version"; exit ;;
1.1.1.6 root 9606: --debug | --debu | --deb | --de | --d | -d )
1.1 root 9607: debug=: ;;
9608: --file | --fil | --fi | --f )
1.1.1.3 root 9609: $ac_shift
1.1.1.10! root 9610: case $ac_optarg in
! 9611: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
! 9612: esac
! 9613: CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
1.1 root 9614: ac_need_defaults=false;;
9615: --header | --heade | --head | --hea )
1.1.1.3 root 9616: $ac_shift
1.1.1.10! root 9617: case $ac_optarg in
! 9618: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
! 9619: esac
! 9620: CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
1.1 root 9621: ac_need_defaults=false;;
1.1.1.6 root 9622: --he | --h)
9623: # Conflict between --help and --header
1.1.1.10! root 9624: { $as_echo "$as_me: error: ambiguous option: $1
1.1.1.6 root 9625: Try \`$0 --help' for more information." >&2
9626: { (exit 1); exit 1; }; };;
9627: --help | --hel | -h )
1.1.1.10! root 9628: $as_echo "$ac_cs_usage"; exit ;;
1.1.1.3 root 9629: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9630: | -silent | --silent | --silen | --sile | --sil | --si | --s)
9631: ac_cs_silent=: ;;
1.1 root 9632:
9633: # This is an error.
1.1.1.10! root 9634: -*) { $as_echo "$as_me: error: unrecognized option: $1
1.1.1.6 root 9635: Try \`$0 --help' for more information." >&2
1.1 root 9636: { (exit 1); exit 1; }; } ;;
9637:
1.1.1.6 root 9638: *) ac_config_targets="$ac_config_targets $1"
9639: ac_need_defaults=false ;;
1.1 root 9640:
9641: esac
9642: shift
9643: done
9644:
1.1.1.3 root 9645: ac_configure_extra_args=
9646:
9647: if $ac_cs_silent; then
9648: exec 6>/dev/null
9649: ac_configure_extra_args="$ac_configure_extra_args --silent"
9650: fi
9651:
9652: _ACEOF
1.1.1.10! root 9653: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1.1.3 root 9654: if \$ac_cs_recheck; then
1.1.1.10! root 9655: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
! 9656: shift
! 9657: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
! 9658: CONFIG_SHELL='$SHELL'
1.1.1.6 root 9659: export CONFIG_SHELL
1.1.1.10! root 9660: exec "\$@"
1.1.1.3 root 9661: fi
9662:
1.1 root 9663: _ACEOF
1.1.1.10! root 9664: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1.1.6 root 9665: exec 5>>config.log
9666: {
9667: echo
9668: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9669: ## Running $as_me. ##
9670: _ASBOX
1.1.1.10! root 9671: $as_echo "$ac_log"
1.1.1.6 root 9672: } >&5
1.1 root 9673:
1.1.1.6 root 9674: _ACEOF
1.1.1.10! root 9675: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1.1.6 root 9676: _ACEOF
1.1 root 9677:
1.1.1.10! root 9678: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1.1.6 root 9679:
9680: # Handling of arguments.
1.1 root 9681: for ac_config_target in $ac_config_targets
9682: do
1.1.1.6 root 9683: case $ac_config_target in
9684: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9685: "Makefile.cnf") CONFIG_FILES="$CONFIG_FILES Makefile.cnf" ;;
9686:
1.1.1.10! root 9687: *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
! 9688: $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
1.1 root 9689: { (exit 1); exit 1; }; };;
9690: esac
9691: done
9692:
1.1.1.6 root 9693:
1.1 root 9694: # If the user did not use the arguments to specify the items to instantiate,
9695: # then the envvar interface is used. Set only those that are not.
9696: # We use the long form for the default assignment because of an extremely
9697: # bizarre bug on SunOS 4.1.3.
9698: if $ac_need_defaults; then
9699: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
1.1.1.6 root 9700: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
1.1 root 9701: fi
9702:
1.1.1.3 root 9703: # Have a temporary directory for convenience. Make it in the build tree
1.1.1.6 root 9704: # simply because there is no reason against having it here, and in addition,
1.1.1.3 root 9705: # creating and moving files from /tmp can sometimes cause problems.
1.1.1.6 root 9706: # Hook for its removal unless debugging.
9707: # Note that there is a small window in which the directory will not be cleaned:
9708: # after its creation but before its name has been assigned to `$tmp'.
1.1 root 9709: $debug ||
9710: {
1.1.1.6 root 9711: tmp=
9712: trap 'exit_status=$?
9713: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9714: ' 0
1.1 root 9715: trap '{ (exit 1); exit 1; }' 1 2 13 15
9716: }
9717: # Create a (secure) tmp directory for tmp files.
1.1.1.3 root 9718:
1.1 root 9719: {
1.1.1.6 root 9720: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.1 root 9721: test -n "$tmp" && test -d "$tmp"
9722: } ||
9723: {
1.1.1.6 root 9724: tmp=./conf$$-$RANDOM
9725: (umask 077 && mkdir "$tmp")
1.1 root 9726: } ||
9727: {
1.1.1.10! root 9728: $as_echo "$as_me: cannot create a temporary directory in ." >&2
1.1 root 9729: { (exit 1); exit 1; }
9730: }
9731:
1.1.1.10! root 9732: # Set up the scripts for CONFIG_FILES section.
! 9733: # No need to generate them if there are no CONFIG_FILES.
! 9734: # This happens for instance with `./config.status config.h'.
1.1.1.6 root 9735: if test -n "$CONFIG_FILES"; then
9736:
9737:
1.1.1.10! root 9738: ac_cr='
'
! 9739: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
! 9740: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
! 9741: ac_cs_awk_cr='\\r'
! 9742: else
! 9743: ac_cs_awk_cr=$ac_cr
! 9744: fi
! 9745:
! 9746: echo 'BEGIN {' >"$tmp/subs1.awk" &&
! 9747: _ACEOF
1.1.1.6 root 9748:
9749:
1.1.1.10! root 9750: {
! 9751: echo "cat >conf$$subs.awk <<_ACEOF" &&
! 9752: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
! 9753: echo "_ACEOF"
! 9754: } >conf$$subs.sh ||
! 9755: { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
! 9756: $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
! 9757: { (exit 1); exit 1; }; }
! 9758: ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1.1.1.6 root 9759: ac_delim='%!_!# '
9760: for ac_last_try in false false false false false :; do
1.1.1.10! root 9761: . ./conf$$subs.sh ||
! 9762: { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
! 9763: $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
! 9764: { (exit 1); exit 1; }; }
1.1.1.6 root 9765:
1.1.1.10! root 9766: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
! 9767: if test $ac_delim_n = $ac_delim_num; then
1.1.1.6 root 9768: break
9769: elif $ac_last_try; then
1.1.1.10! root 9770: { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
! 9771: $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1.1.1.6 root 9772: { (exit 1); exit 1; }; }
9773: else
9774: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.1 root 9775: fi
1.1.1.6 root 9776: done
1.1.1.10! root 9777: rm -f conf$$subs.sh
1.1.1.6 root 9778:
1.1.1.10! root 9779: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
! 9780: cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
1.1.1.6 root 9781: _ACEOF
1.1.1.10! root 9782: sed -n '
! 9783: h
! 9784: s/^/S["/; s/!.*/"]=/
! 9785: p
! 9786: g
! 9787: s/^[^!]*!//
! 9788: :repl
! 9789: t repl
! 9790: s/'"$ac_delim"'$//
! 9791: t delim
! 9792: :nl
! 9793: h
! 9794: s/\(.\{148\}\).*/\1/
! 9795: t more1
! 9796: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
! 9797: p
! 9798: n
! 9799: b repl
! 9800: :more1
! 9801: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
! 9802: p
! 9803: g
! 9804: s/.\{148\}//
! 9805: t nl
! 9806: :delim
! 9807: h
! 9808: s/\(.\{148\}\).*/\1/
! 9809: t more2
! 9810: s/["\\]/\\&/g; s/^/"/; s/$/"/
! 9811: p
! 9812: b
! 9813: :more2
! 9814: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
! 9815: p
! 9816: g
! 9817: s/.\{148\}//
! 9818: t delim
! 9819: ' <conf$$subs.awk | sed '
! 9820: /^[^""]/{
! 9821: N
! 9822: s/\n//
! 9823: }
! 9824: ' >>$CONFIG_STATUS || ac_write_fail=1
! 9825: rm -f conf$$subs.awk
! 9826: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
! 9827: _ACAWK
! 9828: cat >>"\$tmp/subs1.awk" <<_ACAWK &&
! 9829: for (key in S) S_is_set[key] = 1
! 9830: FS = ""
1.1.1.6 root 9831:
1.1.1.10! root 9832: }
! 9833: {
! 9834: line = $ 0
! 9835: nfields = split(line, field, "@")
! 9836: substed = 0
! 9837: len = length(field[1])
! 9838: for (i = 2; i < nfields; i++) {
! 9839: key = field[i]
! 9840: keylen = length(key)
! 9841: if (S_is_set[key]) {
! 9842: value = S[key]
! 9843: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
! 9844: len += length(value) + length(field[++i])
! 9845: substed = 1
! 9846: } else
! 9847: len += 1 + keylen
! 9848: }
! 9849:
! 9850: print line
! 9851: }
! 9852:
! 9853: _ACAWK
! 9854: _ACEOF
! 9855: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
! 9856: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
! 9857: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
! 9858: else
! 9859: cat
! 9860: fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
! 9861: || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
! 9862: $as_echo "$as_me: error: could not setup config files machinery" >&2;}
! 9863: { (exit 1); exit 1; }; }
! 9864: _ACEOF
1.1.1.6 root 9865:
9866: # VPATH may cause trouble with some makes, so we remove $(srcdir),
9867: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9868: # trailing colons and then remove the whole line if VPATH becomes empty
9869: # (actually we leave an empty line to preserve line numbers).
9870: if test "x$srcdir" = x.; then
9871: ac_vpsub='/^[ ]*VPATH[ ]*=/{
9872: s/:*\$(srcdir):*/:/
9873: s/:*\${srcdir}:*/:/
9874: s/:*@srcdir@:*/:/
9875: s/^\([^=]*=[ ]*\):*/\1/
9876: s/:*$//
9877: s/^[^=]*=[ ]*$//
9878: }'
9879: fi
9880:
1.1.1.10! root 9881: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1.1.6 root 9882: fi # test -n "$CONFIG_FILES"
9883:
1.1.1.10! root 9884: # Set up the scripts for CONFIG_HEADERS section.
! 9885: # No need to generate them if there are no CONFIG_HEADERS.
! 9886: # This happens for instance with `./config.status Makefile'.
! 9887: if test -n "$CONFIG_HEADERS"; then
! 9888: cat >"$tmp/defines.awk" <<\_ACAWK ||
! 9889: BEGIN {
! 9890: _ACEOF
! 9891:
! 9892: # Transform confdefs.h into an awk script `defines.awk', embedded as
! 9893: # here-document in config.status, that substitutes the proper values into
! 9894: # config.h.in to produce config.h.
! 9895:
! 9896: # Create a delimiter string that does not exist in confdefs.h, to ease
! 9897: # handling of long lines.
! 9898: ac_delim='%!_!# '
! 9899: for ac_last_try in false false :; do
! 9900: ac_t=`sed -n "/$ac_delim/p" confdefs.h`
! 9901: if test -z "$ac_t"; then
! 9902: break
! 9903: elif $ac_last_try; then
! 9904: { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
! 9905: $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
! 9906: { (exit 1); exit 1; }; }
! 9907: else
! 9908: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
! 9909: fi
! 9910: done
! 9911:
! 9912: # For the awk script, D is an array of macro values keyed by name,
! 9913: # likewise P contains macro parameters if any. Preserve backslash
! 9914: # newline sequences.
1.1.1.6 root 9915:
1.1.1.10! root 9916: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
! 9917: sed -n '
! 9918: s/.\{148\}/&'"$ac_delim"'/g
! 9919: t rset
! 9920: :rset
! 9921: s/^[ ]*#[ ]*define[ ][ ]*/ /
! 9922: t def
! 9923: d
! 9924: :def
! 9925: s/\\$//
! 9926: t bsnl
! 9927: s/["\\]/\\&/g
! 9928: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
! 9929: D["\1"]=" \3"/p
! 9930: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
! 9931: d
! 9932: :bsnl
! 9933: s/["\\]/\\&/g
! 9934: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
! 9935: D["\1"]=" \3\\\\\\n"\\/p
! 9936: t cont
! 9937: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
! 9938: t cont
! 9939: d
! 9940: :cont
! 9941: n
! 9942: s/.\{148\}/&'"$ac_delim"'/g
! 9943: t clear
! 9944: :clear
! 9945: s/\\$//
! 9946: t bsnlc
! 9947: s/["\\]/\\&/g; s/^/"/; s/$/"/p
! 9948: d
! 9949: :bsnlc
! 9950: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
! 9951: b cont
! 9952: ' <confdefs.h | sed '
! 9953: s/'"$ac_delim"'/"\\\
! 9954: "/g' >>$CONFIG_STATUS || ac_write_fail=1
! 9955:
! 9956: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
! 9957: for (key in D) D_is_set[key] = 1
! 9958: FS = ""
! 9959: }
! 9960: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
! 9961: line = \$ 0
! 9962: split(line, arg, " ")
! 9963: if (arg[1] == "#") {
! 9964: defundef = arg[2]
! 9965: mac1 = arg[3]
! 9966: } else {
! 9967: defundef = substr(arg[1], 2)
! 9968: mac1 = arg[2]
! 9969: }
! 9970: split(mac1, mac2, "(") #)
! 9971: macro = mac2[1]
! 9972: prefix = substr(line, 1, index(line, defundef) - 1)
! 9973: if (D_is_set[macro]) {
! 9974: # Preserve the white space surrounding the "#".
! 9975: print prefix "define", macro P[macro] D[macro]
! 9976: next
! 9977: } else {
! 9978: # Replace #undef with comments. This is necessary, for example,
! 9979: # in the case of _POSIX_SOURCE, which is predefined and required
! 9980: # on some systems where configure will not decide to define it.
! 9981: if (defundef == "undef") {
! 9982: print "/*", prefix defundef, macro, "*/"
! 9983: next
! 9984: }
! 9985: }
! 9986: }
! 9987: { print }
! 9988: _ACAWK
! 9989: _ACEOF
! 9990: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
! 9991: { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
! 9992: $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
! 9993: { (exit 1); exit 1; }; }
! 9994: fi # test -n "$CONFIG_HEADERS"
! 9995:
! 9996:
! 9997: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
! 9998: shift
! 9999: for ac_tag
1.1.1.6 root 10000: do
10001: case $ac_tag in
10002: :[FHLC]) ac_mode=$ac_tag; continue;;
10003: esac
10004: case $ac_mode$ac_tag in
10005: :[FHL]*:*);;
1.1.1.10! root 10006: :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
! 10007: $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
1.1.1.6 root 10008: { (exit 1); exit 1; }; };;
10009: :[FH]-) ac_tag=-:-;;
10010: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10011: esac
10012: ac_save_IFS=$IFS
10013: IFS=:
10014: set x $ac_tag
10015: IFS=$ac_save_IFS
10016: shift
10017: ac_file=$1
10018: shift
10019:
10020: case $ac_mode in
10021: :L) ac_source=$1;;
10022: :[FH])
10023: ac_file_inputs=
10024: for ac_f
10025: do
10026: case $ac_f in
10027: -) ac_f="$tmp/stdin";;
10028: *) # Look for the file first in the build tree, then in the source tree
10029: # (if the path is not absolute). The absolute path cannot be DOS-style,
10030: # because $ac_f cannot contain `:'.
10031: test -f "$ac_f" ||
10032: case $ac_f in
10033: [\\/$]*) false;;
10034: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10035: esac ||
1.1.1.10! root 10036: { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
! 10037: $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
1.1.1.6 root 10038: { (exit 1); exit 1; }; };;
10039: esac
1.1.1.10! root 10040: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
! 10041: ac_file_inputs="$ac_file_inputs '$ac_f'"
1.1.1.6 root 10042: done
10043:
10044: # Let's still pretend it is `configure' which instantiates (i.e., don't
10045: # use $as_me), people would be surprised to read:
10046: # /* config.h. Generated by config.status. */
1.1.1.10! root 10047: configure_input='Generated from '`
! 10048: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
! 10049: `' by configure.'
1.1.1.6 root 10050: if test x"$ac_file" != x-; then
10051: configure_input="$ac_file. $configure_input"
1.1.1.10! root 10052: { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
! 10053: $as_echo "$as_me: creating $ac_file" >&6;}
1.1.1.6 root 10054: fi
1.1.1.10! root 10055: # Neutralize special characters interpreted by sed in replacement strings.
! 10056: case $configure_input in #(
! 10057: *\&* | *\|* | *\\* )
! 10058: ac_sed_conf_input=`$as_echo "$configure_input" |
! 10059: sed 's/[\\\\&|]/\\\\&/g'`;; #(
! 10060: *) ac_sed_conf_input=$configure_input;;
! 10061: esac
1.1.1.6 root 10062:
10063: case $ac_tag in
1.1.1.10! root 10064: *:-:* | *:-) cat >"$tmp/stdin" \
! 10065: || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
! 10066: $as_echo "$as_me: error: could not create $ac_file" >&2;}
! 10067: { (exit 1); exit 1; }; } ;;
1.1.1.6 root 10068: esac
10069: ;;
1.1 root 10070: esac
10071:
1.1.1.6 root 10072: ac_dir=`$as_dirname -- "$ac_file" ||
1.1 root 10073: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.1.1.3 root 10074: X"$ac_file" : 'X\(//\)[^/]' \| \
10075: X"$ac_file" : 'X\(//\)$' \| \
1.1.1.6 root 10076: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.1.1.10! root 10077: $as_echo X"$ac_file" |
1.1.1.6 root 10078: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10079: s//\1/
10080: q
10081: }
10082: /^X\(\/\/\)[^/].*/{
10083: s//\1/
10084: q
10085: }
10086: /^X\(\/\/\)$/{
10087: s//\1/
10088: q
10089: }
10090: /^X\(\/\).*/{
10091: s//\1/
10092: q
10093: }
10094: s/.*/./; q'`
10095: { as_dir="$ac_dir"
10096: case $as_dir in #(
10097: -*) as_dir=./$as_dir;;
10098: esac
10099: test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
1.1.1.3 root 10100: as_dirs=
1.1.1.6 root 10101: while :; do
10102: case $as_dir in #(
1.1.1.10! root 10103: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1.1.1.6 root 10104: *) as_qdir=$as_dir;;
10105: esac
10106: as_dirs="'$as_qdir' $as_dirs"
10107: as_dir=`$as_dirname -- "$as_dir" ||
1.1.1.3 root 10108: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10109: X"$as_dir" : 'X\(//\)[^/]' \| \
10110: X"$as_dir" : 'X\(//\)$' \| \
1.1.1.6 root 10111: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.1.1.10! root 10112: $as_echo X"$as_dir" |
1.1.1.6 root 10113: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10114: s//\1/
10115: q
10116: }
10117: /^X\(\/\/\)[^/].*/{
10118: s//\1/
10119: q
10120: }
10121: /^X\(\/\/\)$/{
10122: s//\1/
10123: q
10124: }
10125: /^X\(\/\).*/{
10126: s//\1/
10127: q
10128: }
10129: s/.*/./; q'`
10130: test -d "$as_dir" && break
1.1.1.3 root 10131: done
1.1.1.6 root 10132: test -z "$as_dirs" || eval "mkdir $as_dirs"
1.1.1.10! root 10133: } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
! 10134: $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
1.1.1.3 root 10135: { (exit 1); exit 1; }; }; }
1.1 root 10136: ac_builddir=.
10137:
1.1.1.6 root 10138: case "$ac_dir" in
10139: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10140: *)
1.1.1.10! root 10141: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1.1.6 root 10142: # A ".." for each directory in $ac_dir_suffix.
1.1.1.10! root 10143: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1.1.6 root 10144: case $ac_top_builddir_sub in
10145: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10146: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10147: esac ;;
10148: esac
10149: ac_abs_top_builddir=$ac_pwd
10150: ac_abs_builddir=$ac_pwd$ac_dir_suffix
10151: # for backward compatibility:
10152: ac_top_builddir=$ac_top_build_prefix
1.1 root 10153:
10154: case $srcdir in
1.1.1.6 root 10155: .) # We are building in place.
1.1 root 10156: ac_srcdir=.
1.1.1.6 root 10157: ac_top_srcdir=$ac_top_builddir_sub
10158: ac_abs_top_srcdir=$ac_pwd ;;
10159: [\\/]* | ?:[\\/]* ) # Absolute name.
1.1 root 10160: ac_srcdir=$srcdir$ac_dir_suffix;
1.1.1.6 root 10161: ac_top_srcdir=$srcdir
10162: ac_abs_top_srcdir=$srcdir ;;
10163: *) # Relative name.
10164: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10165: ac_top_srcdir=$ac_top_build_prefix$srcdir
10166: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.1 root 10167: esac
1.1.1.6 root 10168: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1.1.3 root 10169:
1.1 root 10170:
1.1.1.6 root 10171: case $ac_mode in
10172: :F)
10173: #
10174: # CONFIG_FILE
10175: #
1.1 root 10176:
10177: case $INSTALL in
10178: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.1.1.6 root 10179: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1.1 root 10180: esac
1.1.1.6 root 10181: _ACEOF
1.1 root 10182:
1.1.1.10! root 10183: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1.1.6 root 10184: # If the template does not know about datarootdir, expand it.
10185: # FIXME: This hack should be removed a few years after 2.60.
10186: ac_datarootdir_hack=; ac_datarootdir_seen=
10187:
1.1.1.10! root 10188: ac_sed_dataroot='
! 10189: /datarootdir/ {
1.1.1.6 root 10190: p
10191: q
10192: }
10193: /@datadir@/p
10194: /@docdir@/p
10195: /@infodir@/p
10196: /@localedir@/p
10197: /@mandir@/p
1.1.1.10! root 10198: '
! 10199: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1.1.1.6 root 10200: *datarootdir*) ac_datarootdir_seen=yes;;
10201: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.1.1.10! root 10202: { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
! 10203: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.1 root 10204: _ACEOF
1.1.1.10! root 10205: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1.1.6 root 10206: ac_datarootdir_hack='
10207: s&@datadir@&$datadir&g
10208: s&@docdir@&$docdir&g
10209: s&@infodir@&$infodir&g
10210: s&@localedir@&$localedir&g
10211: s&@mandir@&$mandir&g
10212: s&\\\${datarootdir}&$datarootdir&g' ;;
10213: esac
10214: _ACEOF
10215:
10216: # Neutralize VPATH when `$srcdir' = `.'.
10217: # Shell code in configure.ac might set extrasub.
10218: # FIXME: do we really want to maintain this feature?
1.1.1.10! root 10219: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
! 10220: ac_sed_extra="$ac_vpsub
1.1 root 10221: $extrasub
10222: _ACEOF
1.1.1.10! root 10223: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 root 10224: :t
10225: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.1.1.10! root 10226: s|@configure_input@|$ac_sed_conf_input|;t t
1.1.1.6 root 10227: s&@top_builddir@&$ac_top_builddir_sub&;t t
1.1.1.10! root 10228: s&@top_build_prefix@&$ac_top_build_prefix&;t t
1.1.1.6 root 10229: s&@srcdir@&$ac_srcdir&;t t
10230: s&@abs_srcdir@&$ac_abs_srcdir&;t t
10231: s&@top_srcdir@&$ac_top_srcdir&;t t
10232: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10233: s&@builddir@&$ac_builddir&;t t
10234: s&@abs_builddir@&$ac_abs_builddir&;t t
10235: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10236: s&@INSTALL@&$ac_INSTALL&;t t
10237: $ac_datarootdir_hack
1.1.1.10! root 10238: "
! 10239: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
! 10240: || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
! 10241: $as_echo "$as_me: error: could not create $ac_file" >&2;}
! 10242: { (exit 1); exit 1; }; }
1.1.1.6 root 10243:
10244: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10245: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10246: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
1.1.1.10! root 10247: { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.1.1.6 root 10248: which seems to be undefined. Please make sure it is defined." >&5
1.1.1.10! root 10249: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.1.1.6 root 10250: which seems to be undefined. Please make sure it is defined." >&2;}
10251:
10252: rm -f "$tmp/stdin"
10253: case $ac_file in
1.1.1.10! root 10254: -) cat "$tmp/out" && rm -f "$tmp/out";;
! 10255: *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
! 10256: esac \
! 10257: || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
! 10258: $as_echo "$as_me: error: could not create $ac_file" >&2;}
! 10259: { (exit 1); exit 1; }; }
1.1.1.6 root 10260: ;;
10261: :H)
10262: #
10263: # CONFIG_HEADER
10264: #
1.1 root 10265: if test x"$ac_file" != x-; then
1.1.1.10! root 10266: {
! 10267: $as_echo "/* $configure_input */" \
! 10268: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
! 10269: } >"$tmp/config.h" \
! 10270: || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
! 10271: $as_echo "$as_me: error: could not create $ac_file" >&2;}
! 10272: { (exit 1); exit 1; }; }
! 10273: if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
! 10274: { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
! 10275: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.1.1.6 root 10276: else
1.1.1.10! root 10277: rm -f "$ac_file"
! 10278: mv "$tmp/config.h" "$ac_file" \
! 10279: || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
! 10280: $as_echo "$as_me: error: could not create $ac_file" >&2;}
! 10281: { (exit 1); exit 1; }; }
1.1.1.6 root 10282: fi
1.1 root 10283: else
1.1.1.10! root 10284: $as_echo "/* $configure_input */" \
! 10285: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
! 10286: || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
! 10287: $as_echo "$as_me: error: could not create -" >&2;}
! 10288: { (exit 1); exit 1; }; }
1.1 root 10289: fi
1.1.1.6 root 10290: ;;
1.1 root 10291:
10292:
1.1.1.6 root 10293: esac
10294:
10295: done # for ac_tag
10296:
1.1 root 10297:
10298: { (exit 0); exit 0; }
10299: _ACEOF
10300: chmod +x $CONFIG_STATUS
10301: ac_clean_files=$ac_clean_files_save
10302:
1.1.1.10! root 10303: test $ac_write_fail = 0 ||
! 10304: { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
! 10305: $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
! 10306: { (exit 1); exit 1; }; }
! 10307:
1.1 root 10308:
10309: # configure is writing to config.log, and then calls config.status.
10310: # config.status does its own redirection, appending to config.log.
10311: # Unfortunately, on DOS this fails, as config.log is still kept open
10312: # by configure, so config.status won't be able to write to it; its
10313: # output is simply discarded. So we exec the FD to /dev/null,
10314: # effectively closing config.log, so it can be properly (re)opened and
10315: # appended to by config.status. When coming back to configure, we
10316: # need to make the FD available again.
10317: if test "$no_create" != yes; then
10318: ac_cs_success=:
1.1.1.3 root 10319: ac_config_status_args=
10320: test "$silent" = yes &&
10321: ac_config_status_args="$ac_config_status_args --quiet"
1.1 root 10322: exec 5>/dev/null
1.1.1.3 root 10323: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1.1 root 10324: exec 5>>config.log
10325: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10326: # would make configure fail if this is the last instruction.
10327: $ac_cs_success || { (exit 1); exit 1; }
10328: fi
1.1.1.10! root 10329: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
! 10330: { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
! 10331: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
! 10332: fi
1.1 root 10333:
10334:
10335:
1.1.1.10! root 10336: { $as_echo "$as_me:$LINENO: +-----------------------------------------------------+" >&5
! 10337: $as_echo "$as_me: +-----------------------------------------------------+" >&6;}
! 10338: { $as_echo "$as_me:$LINENO: | |" >&5
! 10339: $as_echo "$as_me: | |" >&6;}
! 10340: { $as_echo "$as_me:$LINENO: | Configuration finished. Now you can compile Hatari. |" >&5
! 10341: $as_echo "$as_me: | Configuration finished. Now you can compile Hatari. |" >&6;}
! 10342: { $as_echo "$as_me:$LINENO: | Note that you have to use GNU-Make to build it. |" >&5
! 10343: $as_echo "$as_me: | Note that you have to use GNU-Make to build it. |" >&6;}
! 10344: { $as_echo "$as_me:$LINENO: | |" >&5
! 10345: $as_echo "$as_me: | |" >&6;}
! 10346: { $as_echo "$as_me:$LINENO: | - If you are using Linux then type: make |" >&5
! 10347: $as_echo "$as_me: | - If you are using Linux then type: make |" >&6;}
! 10348: { $as_echo "$as_me:$LINENO: | - If you are using *BSD then try : gmake |" >&5
! 10349: $as_echo "$as_me: | - If you are using *BSD then try : gmake |" >&6;}
! 10350: { $as_echo "$as_me:$LINENO: | |" >&5
! 10351: $as_echo "$as_me: | |" >&6;}
! 10352: { $as_echo "$as_me:$LINENO: | After compiling, you can install the program by |" >&5
! 10353: $as_echo "$as_me: | After compiling, you can install the program by |" >&6;}
! 10354: { $as_echo "$as_me:$LINENO: | typing: make install (or: gmake install) |" >&5
! 10355: $as_echo "$as_me: | typing: make install (or: gmake install) |" >&6;}
! 10356: { $as_echo "$as_me:$LINENO: | |" >&5
! 10357: $as_echo "$as_me: | |" >&6;}
! 10358: { $as_echo "$as_me:$LINENO: | For information about the configuration variables, |" >&5
! 10359: $as_echo "$as_me: | For information about the configuration variables, |" >&6;}
! 10360: { $as_echo "$as_me:$LINENO: | please have a look at Makefile.cnf and config.h. |" >&5
! 10361: $as_echo "$as_me: | please have a look at Makefile.cnf and config.h. |" >&6;}
! 10362: { $as_echo "$as_me:$LINENO: | |" >&5
! 10363: $as_echo "$as_me: | |" >&6;}
! 10364: { $as_echo "$as_me:$LINENO: +-----------------------------------------------------+" >&5
! 10365: $as_echo "$as_me: +-----------------------------------------------------+" >&6;}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.